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,52 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { GetCommentsParams, jCommentList, CommentWithExtensions } from 'jamespot-user-api';
|
|
3
|
+
import { CommentListState, CommentsList } from './comment.types';
|
|
4
|
+
export declare const fetchComments: import('@reduxjs/toolkit').AsyncThunk<CommentsList, GetCommentsParams, {
|
|
5
|
+
dispatch: import('../..').AppDispatch;
|
|
6
|
+
state: import('../..').RootState;
|
|
7
|
+
extra: {
|
|
8
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
9
|
+
};
|
|
10
|
+
rejectValue: {
|
|
11
|
+
error: number;
|
|
12
|
+
errorMsg: string;
|
|
13
|
+
};
|
|
14
|
+
serializedErrorType?: unknown;
|
|
15
|
+
pendingMeta?: unknown;
|
|
16
|
+
fulfilledMeta?: unknown;
|
|
17
|
+
rejectedMeta?: unknown;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const deleteComment: import('@reduxjs/toolkit').AsyncThunk<boolean, {
|
|
20
|
+
idComment: number;
|
|
21
|
+
idArticle: number;
|
|
22
|
+
}, {
|
|
23
|
+
dispatch: import('../..').AppDispatch;
|
|
24
|
+
state: import('../..').RootState;
|
|
25
|
+
extra: {
|
|
26
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
27
|
+
};
|
|
28
|
+
rejectValue: {
|
|
29
|
+
error: number;
|
|
30
|
+
errorMsg: string;
|
|
31
|
+
};
|
|
32
|
+
serializedErrorType?: unknown;
|
|
33
|
+
pendingMeta?: unknown;
|
|
34
|
+
fulfilledMeta?: unknown;
|
|
35
|
+
rejectedMeta?: unknown;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const CommentListSlice: import('@reduxjs/toolkit').Slice<CommentListState, {
|
|
38
|
+
discardComments: (state: import('@reduxjs/toolkit').WritableDraft<CommentListState>, action: PayloadAction<{
|
|
39
|
+
idArticle: number;
|
|
40
|
+
}>) => void;
|
|
41
|
+
hydrateComment: (state: import('@reduxjs/toolkit').WritableDraft<CommentListState>, action: PayloadAction<{
|
|
42
|
+
idArticle: number;
|
|
43
|
+
list: CommentWithExtensions<jCommentList, ["actions"]>[];
|
|
44
|
+
}>) => void;
|
|
45
|
+
updateComment: (state: import('@reduxjs/toolkit').WritableDraft<CommentListState>, action: PayloadAction<{
|
|
46
|
+
idArticle: number;
|
|
47
|
+
idComment: number;
|
|
48
|
+
data: {
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
}>) => void;
|
|
52
|
+
}, "commentList", "commentList", import('@reduxjs/toolkit').SliceSelectors<CommentListState>>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare const jamespotCommentCreate: {
|
|
2
|
+
namespace: string;
|
|
3
|
+
function: string;
|
|
4
|
+
id: number;
|
|
5
|
+
type: string;
|
|
6
|
+
uri: string;
|
|
7
|
+
idComment: string;
|
|
8
|
+
object: {
|
|
9
|
+
idComment: string;
|
|
10
|
+
type: string;
|
|
11
|
+
idUser: string;
|
|
12
|
+
description: string;
|
|
13
|
+
sendAlert: boolean;
|
|
14
|
+
alertAuthor: boolean;
|
|
15
|
+
idArticle: number;
|
|
16
|
+
idSpot: number;
|
|
17
|
+
ip: string;
|
|
18
|
+
dateCreation: string;
|
|
19
|
+
uri: string;
|
|
20
|
+
mainType: string;
|
|
21
|
+
_cssColor: string;
|
|
22
|
+
_cssClass: string;
|
|
23
|
+
_right: {
|
|
24
|
+
create: boolean;
|
|
25
|
+
read: boolean;
|
|
26
|
+
publish: boolean;
|
|
27
|
+
administrate: boolean;
|
|
28
|
+
update: boolean;
|
|
29
|
+
delete: boolean;
|
|
30
|
+
comment: boolean;
|
|
31
|
+
member: boolean;
|
|
32
|
+
};
|
|
33
|
+
_values: {
|
|
34
|
+
type: string;
|
|
35
|
+
idArticle: number;
|
|
36
|
+
idUser: string;
|
|
37
|
+
description: string;
|
|
38
|
+
dateCreation: string;
|
|
39
|
+
IP: null;
|
|
40
|
+
idSpot: number;
|
|
41
|
+
sendAlert: boolean;
|
|
42
|
+
alertAuthor: boolean;
|
|
43
|
+
widgets: null;
|
|
44
|
+
};
|
|
45
|
+
_timezone: {
|
|
46
|
+
dateCreation: string;
|
|
47
|
+
};
|
|
48
|
+
_url: string;
|
|
49
|
+
_shortDescription: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const jamespotCommentDelete: {
|
|
53
|
+
namespace: string;
|
|
54
|
+
function: string;
|
|
55
|
+
id: string;
|
|
56
|
+
type: string;
|
|
57
|
+
uri: string;
|
|
58
|
+
idComment: number;
|
|
59
|
+
object: {
|
|
60
|
+
idComment: number;
|
|
61
|
+
type: string;
|
|
62
|
+
idArticle: string;
|
|
63
|
+
idUser: string;
|
|
64
|
+
description: string;
|
|
65
|
+
dateCreation: string;
|
|
66
|
+
IP: string;
|
|
67
|
+
idSpot: string;
|
|
68
|
+
alertAuthor: string;
|
|
69
|
+
sendAlert: string;
|
|
70
|
+
uri: string;
|
|
71
|
+
mainType: string;
|
|
72
|
+
_cssColor: string;
|
|
73
|
+
_cssClass: string;
|
|
74
|
+
_right: {
|
|
75
|
+
create: boolean;
|
|
76
|
+
read: boolean;
|
|
77
|
+
publish: boolean;
|
|
78
|
+
administrate: boolean;
|
|
79
|
+
update: boolean;
|
|
80
|
+
delete: boolean;
|
|
81
|
+
comment: boolean;
|
|
82
|
+
member: boolean;
|
|
83
|
+
};
|
|
84
|
+
_values: {
|
|
85
|
+
type: string;
|
|
86
|
+
idArticle: string;
|
|
87
|
+
idUser: string;
|
|
88
|
+
description: string;
|
|
89
|
+
dateCreation: string;
|
|
90
|
+
IP: string;
|
|
91
|
+
idSpot: string;
|
|
92
|
+
sendAlert: string;
|
|
93
|
+
alertAuthor: string;
|
|
94
|
+
widgets: null;
|
|
95
|
+
};
|
|
96
|
+
_timezone: {
|
|
97
|
+
dateCreation: string;
|
|
98
|
+
};
|
|
99
|
+
_url: string;
|
|
100
|
+
_shortDescription: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Namespaces, RTMessageHandler } from 'jamespot-user-api';
|
|
2
|
+
import { AppDispatch } from '../../types';
|
|
3
|
+
export declare const getCommentsLikeRTHandlers: (dispatch: AppDispatch, idComments: number[] | undefined, idArticle: number) => Array<RTMessageHandler<"CUSTOM-ACTION", Namespaces["CUSTOM-ACTION"]>>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export declare const customActionAddSocialLike: {
|
|
2
|
+
object: {
|
|
3
|
+
id: number;
|
|
4
|
+
mainType: string;
|
|
5
|
+
type: string;
|
|
6
|
+
uri: string;
|
|
7
|
+
dateCreation: string;
|
|
8
|
+
dateModified: string;
|
|
9
|
+
srcId: number;
|
|
10
|
+
srcType: string;
|
|
11
|
+
targetId: number;
|
|
12
|
+
targetType: string;
|
|
13
|
+
value: null;
|
|
14
|
+
_src: {
|
|
15
|
+
id: number;
|
|
16
|
+
mainType: string;
|
|
17
|
+
type: string;
|
|
18
|
+
uri: string;
|
|
19
|
+
dateCreation: string;
|
|
20
|
+
dateModified: string;
|
|
21
|
+
title: string;
|
|
22
|
+
_url: string;
|
|
23
|
+
level: number;
|
|
24
|
+
};
|
|
25
|
+
_target: {
|
|
26
|
+
id: number;
|
|
27
|
+
mainType: string;
|
|
28
|
+
type: string;
|
|
29
|
+
uri: string;
|
|
30
|
+
dateCreation: string;
|
|
31
|
+
dateModified: null;
|
|
32
|
+
description: string;
|
|
33
|
+
_user: {
|
|
34
|
+
id: number;
|
|
35
|
+
mainType: string;
|
|
36
|
+
type: string;
|
|
37
|
+
uri: string;
|
|
38
|
+
dateCreation: string;
|
|
39
|
+
dateModified: string;
|
|
40
|
+
title: string;
|
|
41
|
+
_url: string;
|
|
42
|
+
level: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
namespace: string;
|
|
47
|
+
function: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const customActionRemoveSocialLike: {
|
|
50
|
+
object: {
|
|
51
|
+
id: number;
|
|
52
|
+
mainType: string;
|
|
53
|
+
type: string;
|
|
54
|
+
uri: string;
|
|
55
|
+
dateCreation: string;
|
|
56
|
+
dateModified: string;
|
|
57
|
+
srcId: number;
|
|
58
|
+
srcType: string;
|
|
59
|
+
targetId: number;
|
|
60
|
+
targetType: string;
|
|
61
|
+
value: null;
|
|
62
|
+
_src: {
|
|
63
|
+
id: number;
|
|
64
|
+
mainType: string;
|
|
65
|
+
type: string;
|
|
66
|
+
uri: string;
|
|
67
|
+
dateCreation: string;
|
|
68
|
+
dateModified: string;
|
|
69
|
+
title: string;
|
|
70
|
+
_url: string;
|
|
71
|
+
level: number;
|
|
72
|
+
};
|
|
73
|
+
_target: {
|
|
74
|
+
id: number;
|
|
75
|
+
mainType: string;
|
|
76
|
+
type: string;
|
|
77
|
+
uri: string;
|
|
78
|
+
dateCreation: string;
|
|
79
|
+
dateModified: null;
|
|
80
|
+
description: string;
|
|
81
|
+
_user: {
|
|
82
|
+
id: number;
|
|
83
|
+
mainType: string;
|
|
84
|
+
type: string;
|
|
85
|
+
uri: string;
|
|
86
|
+
dateCreation: string;
|
|
87
|
+
dateModified: string;
|
|
88
|
+
title: string;
|
|
89
|
+
_url: string;
|
|
90
|
+
level: number;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
namespace: string;
|
|
95
|
+
function: string;
|
|
96
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { ContentReportList, ContentReportStatus, PagingResults } from 'jamespot-user-api';
|
|
3
|
+
import { RootState } from '../../types/store';
|
|
4
|
+
import { ContentReportSliceRootState } from './contentReport.types';
|
|
5
|
+
export declare const contentReportSlice: import('@reduxjs/toolkit').Slice<ContentReportSliceRootState, {
|
|
6
|
+
setTab: (state: import('@reduxjs/toolkit').WritableDraft<ContentReportSliceRootState>, action: PayloadAction<ContentReportSliceRootState["tab"]>) => void;
|
|
7
|
+
setPage: (state: import('@reduxjs/toolkit').WritableDraft<ContentReportSliceRootState>, action: PayloadAction<ContentReportSliceRootState["page"]>) => void;
|
|
8
|
+
setFilters: (state: import('@reduxjs/toolkit').WritableDraft<ContentReportSliceRootState>, action: PayloadAction<ContentReportSliceRootState["filters"]>) => void;
|
|
9
|
+
setOrders: (state: import('@reduxjs/toolkit').WritableDraft<ContentReportSliceRootState>, action: PayloadAction<ContentReportSliceRootState["orders"]>) => void;
|
|
10
|
+
}, "contentReport", "contentReport", import('@reduxjs/toolkit').SliceSelectors<ContentReportSliceRootState>>;
|
|
11
|
+
export declare const fetchReports: import('@reduxjs/toolkit').AsyncThunk<PagingResults<ContentReportList>, void, {
|
|
12
|
+
dispatch: import('../..').AppDispatch;
|
|
13
|
+
state: RootState;
|
|
14
|
+
extra: {
|
|
15
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
16
|
+
};
|
|
17
|
+
rejectValue: {
|
|
18
|
+
error: number;
|
|
19
|
+
errorMsg: string;
|
|
20
|
+
};
|
|
21
|
+
serializedErrorType?: unknown;
|
|
22
|
+
pendingMeta?: unknown;
|
|
23
|
+
fulfilledMeta?: unknown;
|
|
24
|
+
rejectedMeta?: unknown;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const updateStatus: import('@reduxjs/toolkit').AsyncThunk<boolean, {
|
|
27
|
+
uri: string;
|
|
28
|
+
status: ContentReportStatus;
|
|
29
|
+
}, {
|
|
30
|
+
dispatch: import('../..').AppDispatch;
|
|
31
|
+
state: RootState;
|
|
32
|
+
extra: {
|
|
33
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
34
|
+
};
|
|
35
|
+
rejectValue: {
|
|
36
|
+
error: number;
|
|
37
|
+
errorMsg: string;
|
|
38
|
+
};
|
|
39
|
+
serializedErrorType?: unknown;
|
|
40
|
+
pendingMeta?: unknown;
|
|
41
|
+
fulfilledMeta?: unknown;
|
|
42
|
+
rejectedMeta?: unknown;
|
|
43
|
+
}>;
|
|
44
|
+
export declare const ContentReport: {
|
|
45
|
+
slice: import('@reduxjs/toolkit').Slice<ContentReportSliceRootState, {
|
|
46
|
+
setTab: (state: import('@reduxjs/toolkit').WritableDraft<ContentReportSliceRootState>, action: PayloadAction<ContentReportSliceRootState["tab"]>) => void;
|
|
47
|
+
setPage: (state: import('@reduxjs/toolkit').WritableDraft<ContentReportSliceRootState>, action: PayloadAction<ContentReportSliceRootState["page"]>) => void;
|
|
48
|
+
setFilters: (state: import('@reduxjs/toolkit').WritableDraft<ContentReportSliceRootState>, action: PayloadAction<ContentReportSliceRootState["filters"]>) => void;
|
|
49
|
+
setOrders: (state: import('@reduxjs/toolkit').WritableDraft<ContentReportSliceRootState>, action: PayloadAction<ContentReportSliceRootState["orders"]>) => void;
|
|
50
|
+
}, "contentReport", "contentReport", import('@reduxjs/toolkit').SliceSelectors<ContentReportSliceRootState>>;
|
|
51
|
+
actions: {
|
|
52
|
+
fetchReports: import('@reduxjs/toolkit').AsyncThunk<PagingResults<ContentReportList>, void, {
|
|
53
|
+
dispatch: import('../..').AppDispatch;
|
|
54
|
+
state: RootState;
|
|
55
|
+
extra: {
|
|
56
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
57
|
+
};
|
|
58
|
+
rejectValue: {
|
|
59
|
+
error: number;
|
|
60
|
+
errorMsg: string;
|
|
61
|
+
};
|
|
62
|
+
serializedErrorType?: unknown;
|
|
63
|
+
pendingMeta?: unknown;
|
|
64
|
+
fulfilledMeta?: unknown;
|
|
65
|
+
rejectedMeta?: unknown;
|
|
66
|
+
}>;
|
|
67
|
+
updateStatus: import('@reduxjs/toolkit').AsyncThunk<boolean, {
|
|
68
|
+
uri: string;
|
|
69
|
+
status: ContentReportStatus;
|
|
70
|
+
}, {
|
|
71
|
+
dispatch: import('../..').AppDispatch;
|
|
72
|
+
state: RootState;
|
|
73
|
+
extra: {
|
|
74
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
75
|
+
};
|
|
76
|
+
rejectValue: {
|
|
77
|
+
error: number;
|
|
78
|
+
errorMsg: string;
|
|
79
|
+
};
|
|
80
|
+
serializedErrorType?: unknown;
|
|
81
|
+
pendingMeta?: unknown;
|
|
82
|
+
fulfilledMeta?: unknown;
|
|
83
|
+
rejectedMeta?: unknown;
|
|
84
|
+
}>;
|
|
85
|
+
};
|
|
86
|
+
selectors: {
|
|
87
|
+
selectContentReport: (state: RootState) => ContentReportSliceRootState;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ApiWrapper, ContentReportList, ContentReportStatus, PagingResults } from 'jamespot-user-api';
|
|
2
|
+
export declare const contentReportGetReports: ApiWrapper<PagingResults<ContentReportList>>;
|
|
3
|
+
export declare const contentReportUpdateStatus: ApiWrapper<ContentReportStatus>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ContentReportList, Filters, Orders } from 'jamespot-user-api';
|
|
2
|
+
import { Loading } from '../../types/utils';
|
|
3
|
+
export type ContentReportSliceRootState = Loading & {
|
|
4
|
+
reports: ContentReportList[];
|
|
5
|
+
page: number;
|
|
6
|
+
tab: 'my' | 'all';
|
|
7
|
+
filters: Filters;
|
|
8
|
+
orders: Orders;
|
|
9
|
+
limit: number;
|
|
10
|
+
nbResults: number;
|
|
11
|
+
pendingReports: Array<ContentReportList & {
|
|
12
|
+
requestId: string;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
export type ContentReportRootState = {
|
|
16
|
+
contentReport: ContentReportSliceRootState;
|
|
17
|
+
};
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { Filters, jExtraBotView, Orders, PagingResults } from 'jamespot-user-api';
|
|
3
|
+
import { RootState } from '../../types/store';
|
|
4
|
+
import { ExtraBotFormModalOpen, ExtraBotState } from './extraBot.types';
|
|
5
|
+
export declare const fetchExtraBotListAll: import('@reduxjs/toolkit').AsyncThunk<PagingResults<jExtraBotView>, void, {
|
|
6
|
+
dispatch: import('../..').AppDispatch;
|
|
7
|
+
state: RootState;
|
|
8
|
+
extra: {
|
|
9
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
10
|
+
};
|
|
11
|
+
rejectValue: {
|
|
12
|
+
error: number;
|
|
13
|
+
errorMsg: string;
|
|
14
|
+
};
|
|
15
|
+
serializedErrorType?: unknown;
|
|
16
|
+
pendingMeta?: unknown;
|
|
17
|
+
fulfilledMeta?: unknown;
|
|
18
|
+
rejectedMeta?: unknown;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const fetchExtraBotListMines: import('@reduxjs/toolkit').AsyncThunk<PagingResults<jExtraBotView>, void, {
|
|
21
|
+
dispatch: import('../..').AppDispatch;
|
|
22
|
+
state: RootState;
|
|
23
|
+
extra: {
|
|
24
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
25
|
+
};
|
|
26
|
+
rejectValue: {
|
|
27
|
+
error: number;
|
|
28
|
+
errorMsg: string;
|
|
29
|
+
};
|
|
30
|
+
serializedErrorType?: unknown;
|
|
31
|
+
pendingMeta?: unknown;
|
|
32
|
+
fulfilledMeta?: unknown;
|
|
33
|
+
rejectedMeta?: unknown;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const toggleExtraBotActivation: import('@reduxjs/toolkit').AsyncThunk<jExtraBotView, jExtraBotView, {
|
|
36
|
+
dispatch: import('../..').AppDispatch;
|
|
37
|
+
state: RootState;
|
|
38
|
+
extra: {
|
|
39
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
40
|
+
};
|
|
41
|
+
rejectValue: {
|
|
42
|
+
error: number;
|
|
43
|
+
errorMsg: string;
|
|
44
|
+
};
|
|
45
|
+
serializedErrorType?: unknown;
|
|
46
|
+
pendingMeta?: unknown;
|
|
47
|
+
fulfilledMeta?: unknown;
|
|
48
|
+
rejectedMeta?: unknown;
|
|
49
|
+
}>;
|
|
50
|
+
type PayloadSave = {
|
|
51
|
+
extraBot: Omit<jExtraBotView, 'image' | '_user'>;
|
|
52
|
+
};
|
|
53
|
+
export declare const saveExtraBot: import('@reduxjs/toolkit').AsyncThunk<jExtraBotView, PayloadSave, {
|
|
54
|
+
dispatch: import('../..').AppDispatch;
|
|
55
|
+
state: RootState;
|
|
56
|
+
extra: {
|
|
57
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
58
|
+
};
|
|
59
|
+
rejectValue: {
|
|
60
|
+
error: number;
|
|
61
|
+
errorMsg: string;
|
|
62
|
+
};
|
|
63
|
+
serializedErrorType?: unknown;
|
|
64
|
+
pendingMeta?: unknown;
|
|
65
|
+
fulfilledMeta?: unknown;
|
|
66
|
+
rejectedMeta?: unknown;
|
|
67
|
+
}>;
|
|
68
|
+
export declare const updateListBotProperty: <K extends keyof jExtraBotView>(state: ExtraBotState, extraBotUri: string, property: K, value: jExtraBotView[K]) => void;
|
|
69
|
+
export declare const extraBotSlice: import('@reduxjs/toolkit').Slice<ExtraBotState, {
|
|
70
|
+
setListAllOrder: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<Orders>) => void;
|
|
71
|
+
setListAllFilter: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<Filters>) => void;
|
|
72
|
+
setListAllPage: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<number>) => void;
|
|
73
|
+
setListMinesOrder: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<Orders>) => void;
|
|
74
|
+
setListMinesFilter: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<Filters>) => void;
|
|
75
|
+
setListMinesPage: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<number>) => void;
|
|
76
|
+
openFormModal: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<ExtraBotFormModalOpen>) => void;
|
|
77
|
+
closeFormModal: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>) => void;
|
|
78
|
+
}, "extraBot", "extraBot", import('@reduxjs/toolkit').SliceSelectors<ExtraBotState>>;
|
|
79
|
+
export declare const selectExtraBotListAll: (state: RootState) => import('./extraBot.types').ExtraBotListAllState;
|
|
80
|
+
export declare const selectExtraBotListMines: (state: RootState) => import('./extraBot.types').ExtraBotListMinesState;
|
|
81
|
+
export declare const ExtraBot: {
|
|
82
|
+
slice: import('@reduxjs/toolkit').Slice<ExtraBotState, {
|
|
83
|
+
setListAllOrder: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<Orders>) => void;
|
|
84
|
+
setListAllFilter: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<Filters>) => void;
|
|
85
|
+
setListAllPage: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<number>) => void;
|
|
86
|
+
setListMinesOrder: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<Orders>) => void;
|
|
87
|
+
setListMinesFilter: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<Filters>) => void;
|
|
88
|
+
setListMinesPage: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<number>) => void;
|
|
89
|
+
openFormModal: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>, action: PayloadAction<ExtraBotFormModalOpen>) => void;
|
|
90
|
+
closeFormModal: (state: import('@reduxjs/toolkit').WritableDraft<ExtraBotState>) => void;
|
|
91
|
+
}, "extraBot", "extraBot", import('@reduxjs/toolkit').SliceSelectors<ExtraBotState>>;
|
|
92
|
+
actions: {
|
|
93
|
+
setListAllOrder: import('@reduxjs/toolkit').ActionCreatorWithPayload<Orders, "extraBot/setListAllOrder">;
|
|
94
|
+
setListAllFilter: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('jamespot-user-api').Filter[], "extraBot/setListAllFilter">;
|
|
95
|
+
setListAllPage: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "extraBot/setListAllPage">;
|
|
96
|
+
setListMinesOrder: import('@reduxjs/toolkit').ActionCreatorWithPayload<Orders, "extraBot/setListMinesOrder">;
|
|
97
|
+
setListMinesFilter: import('@reduxjs/toolkit').ActionCreatorWithPayload<import('jamespot-user-api').Filter[], "extraBot/setListMinesFilter">;
|
|
98
|
+
setListMinesPage: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "extraBot/setListMinesPage">;
|
|
99
|
+
openFormModal: import('@reduxjs/toolkit').ActionCreatorWithPayload<ExtraBotFormModalOpen, "extraBot/openFormModal">;
|
|
100
|
+
closeFormModal: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"extraBot/closeFormModal">;
|
|
101
|
+
fetchExtraBotListAll: import('@reduxjs/toolkit').AsyncThunk<PagingResults<jExtraBotView>, void, {
|
|
102
|
+
dispatch: import('../..').AppDispatch;
|
|
103
|
+
state: RootState;
|
|
104
|
+
extra: {
|
|
105
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
106
|
+
};
|
|
107
|
+
rejectValue: {
|
|
108
|
+
error: number;
|
|
109
|
+
errorMsg: string;
|
|
110
|
+
};
|
|
111
|
+
serializedErrorType?: unknown;
|
|
112
|
+
pendingMeta?: unknown;
|
|
113
|
+
fulfilledMeta?: unknown;
|
|
114
|
+
rejectedMeta?: unknown;
|
|
115
|
+
}>;
|
|
116
|
+
fetchExtraBotListMines: import('@reduxjs/toolkit').AsyncThunk<PagingResults<jExtraBotView>, void, {
|
|
117
|
+
dispatch: import('../..').AppDispatch;
|
|
118
|
+
state: RootState;
|
|
119
|
+
extra: {
|
|
120
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
121
|
+
};
|
|
122
|
+
rejectValue: {
|
|
123
|
+
error: number;
|
|
124
|
+
errorMsg: string;
|
|
125
|
+
};
|
|
126
|
+
serializedErrorType?: unknown;
|
|
127
|
+
pendingMeta?: unknown;
|
|
128
|
+
fulfilledMeta?: unknown;
|
|
129
|
+
rejectedMeta?: unknown;
|
|
130
|
+
}>;
|
|
131
|
+
toggleExtraBotActivation: import('@reduxjs/toolkit').AsyncThunk<jExtraBotView, jExtraBotView, {
|
|
132
|
+
dispatch: import('../..').AppDispatch;
|
|
133
|
+
state: RootState;
|
|
134
|
+
extra: {
|
|
135
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
136
|
+
};
|
|
137
|
+
rejectValue: {
|
|
138
|
+
error: number;
|
|
139
|
+
errorMsg: string;
|
|
140
|
+
};
|
|
141
|
+
serializedErrorType?: unknown;
|
|
142
|
+
pendingMeta?: unknown;
|
|
143
|
+
fulfilledMeta?: unknown;
|
|
144
|
+
rejectedMeta?: unknown;
|
|
145
|
+
}>;
|
|
146
|
+
saveExtraBot: import('@reduxjs/toolkit').AsyncThunk<jExtraBotView, PayloadSave, {
|
|
147
|
+
dispatch: import('../..').AppDispatch;
|
|
148
|
+
state: RootState;
|
|
149
|
+
extra: {
|
|
150
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
151
|
+
};
|
|
152
|
+
rejectValue: {
|
|
153
|
+
error: number;
|
|
154
|
+
errorMsg: string;
|
|
155
|
+
};
|
|
156
|
+
serializedErrorType?: unknown;
|
|
157
|
+
pendingMeta?: unknown;
|
|
158
|
+
fulfilledMeta?: unknown;
|
|
159
|
+
rejectedMeta?: unknown;
|
|
160
|
+
}>;
|
|
161
|
+
};
|
|
162
|
+
selectors: {
|
|
163
|
+
selectExtraBotListAll: (state: RootState) => import('./extraBot.types').ExtraBotListAllState;
|
|
164
|
+
selectExtraBotListMines: (state: RootState) => import('./extraBot.types').ExtraBotListMinesState;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApiPagingResults, ApiWrapper, jExtraBotView, jUserLittle } from 'jamespot-user-api';
|
|
2
|
+
export declare const extraBotQueryListAll: ApiPagingResults<jExtraBotView>;
|
|
3
|
+
export declare const extraBotQueryListMines: ApiPagingResults<jExtraBotView>;
|
|
4
|
+
export declare const extraBotUpdate: ApiWrapper<jExtraBotView>;
|
|
5
|
+
export declare const extraBotUpdateWithoutChanges: ApiWrapper<jExtraBotView>;
|
|
6
|
+
export declare const extraBotConfigCreate: ApiWrapper<jExtraBotView[]>;
|
|
7
|
+
export declare const extraBotUserCreate: ApiWrapper<jUserLittle>;
|
|
8
|
+
export declare const extraBotUserUpdate: ApiWrapper<jUserLittle>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jExtraBotView } from 'jamespot-user-api';
|
|
2
|
+
import { Loading, PagingState } from '../../types/utils';
|
|
3
|
+
export type ExtraBotGlobalState = Loading;
|
|
4
|
+
export type ExtraBotListAllState = PagingState<jExtraBotView>;
|
|
5
|
+
export type ExtraBotListMinesState = PagingState<jExtraBotView>;
|
|
6
|
+
export type ExtraBotFormModalState = {
|
|
7
|
+
open: boolean;
|
|
8
|
+
mode: 'create' | 'edit';
|
|
9
|
+
type: 'all' | 'mines';
|
|
10
|
+
extraBot?: jExtraBotView | undefined;
|
|
11
|
+
};
|
|
12
|
+
export type ExtraBotState = {
|
|
13
|
+
global: ExtraBotGlobalState;
|
|
14
|
+
listAll: ExtraBotListAllState;
|
|
15
|
+
listMines: ExtraBotListMinesState;
|
|
16
|
+
formModal: ExtraBotFormModalState;
|
|
17
|
+
};
|
|
18
|
+
export type ExtraBotRootState = {
|
|
19
|
+
extraBot: ExtraBotState;
|
|
20
|
+
};
|
|
21
|
+
export type ExtraBotFormModalOpen = Pick<ExtraBotFormModalState, 'mode' | 'type' | 'extraBot'>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { RootState } from '../../types/store';
|
|
2
|
+
export declare const Faq: {
|
|
3
|
+
slice: {
|
|
4
|
+
name: "faq";
|
|
5
|
+
reducer: import('@reduxjs/toolkit').Reducer<{
|
|
6
|
+
config: import('./faq.types').FaqConfigState;
|
|
7
|
+
categories: import('./faq.types').FaqCategoriesState;
|
|
8
|
+
}, import('@reduxjs/toolkit').UnknownAction, Partial<{
|
|
9
|
+
config: import('./faq.types').FaqConfigState | undefined;
|
|
10
|
+
categories: import('./faq.types').FaqCategoriesState | undefined;
|
|
11
|
+
}>>;
|
|
12
|
+
};
|
|
13
|
+
actions: {
|
|
14
|
+
fetchFaqConfig: import('@reduxjs/toolkit').AsyncThunk<{
|
|
15
|
+
_web: "" | "0" | "1" | undefined;
|
|
16
|
+
} & Partial<{
|
|
17
|
+
_web?: "" | "0" | "1" | undefined;
|
|
18
|
+
appImageText?: string | undefined;
|
|
19
|
+
appImage?: string | {
|
|
20
|
+
image: {
|
|
21
|
+
type: string;
|
|
22
|
+
id: string;
|
|
23
|
+
};
|
|
24
|
+
} | undefined;
|
|
25
|
+
_displayComment?: "" | "0" | "1" | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
access: {
|
|
28
|
+
createCategory: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>, void, {
|
|
31
|
+
dispatch: import('../..').AppDispatch;
|
|
32
|
+
state: RootState;
|
|
33
|
+
extra: {
|
|
34
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
35
|
+
};
|
|
36
|
+
rejectValue: {
|
|
37
|
+
error: number;
|
|
38
|
+
errorMsg: string;
|
|
39
|
+
};
|
|
40
|
+
serializedErrorType?: unknown;
|
|
41
|
+
pendingMeta?: unknown;
|
|
42
|
+
fulfilledMeta?: unknown;
|
|
43
|
+
rejectedMeta?: unknown;
|
|
44
|
+
}>;
|
|
45
|
+
fetchFaqCategories: import('@reduxjs/toolkit').AsyncThunk<{
|
|
46
|
+
categories: import('jamespot-user-api').ExtendedFaqCategory<import('jamespot-user-api').FaqList>[];
|
|
47
|
+
}, void, {
|
|
48
|
+
dispatch: import('../..').AppDispatch;
|
|
49
|
+
state: RootState;
|
|
50
|
+
extra: {
|
|
51
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
52
|
+
};
|
|
53
|
+
rejectValue: {
|
|
54
|
+
error: number;
|
|
55
|
+
errorMsg: string;
|
|
56
|
+
};
|
|
57
|
+
serializedErrorType?: unknown;
|
|
58
|
+
pendingMeta?: unknown;
|
|
59
|
+
fulfilledMeta?: unknown;
|
|
60
|
+
rejectedMeta?: unknown;
|
|
61
|
+
}>;
|
|
62
|
+
};
|
|
63
|
+
selectors: {
|
|
64
|
+
selectFaqConfig: (state: RootState) => import('./faq.types').FaqConfigState;
|
|
65
|
+
selectFaqCategories: (state: RootState) => import('./faq.types').FaqCategoriesState;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FaqAccess, FaqHookProperties, ExtendedFaqCategory, FaqList } from 'jamespot-user-api';
|
|
2
|
+
import { Loading } from '../../types/utils';
|
|
3
|
+
export type FaqConfigState = Loading & Partial<FaqHookProperties> & {
|
|
4
|
+
access: FaqAccess;
|
|
5
|
+
};
|
|
6
|
+
export type FaqCategoriesState = Loading & {
|
|
7
|
+
categories: ExtendedFaqCategory<FaqList>[] | null;
|
|
8
|
+
};
|
|
9
|
+
export type FaqRootState = {
|
|
10
|
+
faq: {
|
|
11
|
+
config: FaqConfigState;
|
|
12
|
+
categories: FaqCategoriesState;
|
|
13
|
+
};
|
|
14
|
+
};
|