jamespot-front-business 1.3.7 → 1.3.9
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 +434 -0
- package/dist/src/store/calendar/calendar.types.d.ts +22 -0
- package/dist/src/store/calendar/calendarEvents.d.ts +193 -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,39 @@
|
|
|
1
|
+
import { AdminLicensesNotAssigned, Articles, ArticleWithExtensions, AudienceAutocomplete } from 'jamespot-user-api';
|
|
2
|
+
import { Loading } from '../../types/utils';
|
|
3
|
+
export type MapCreationFront = {
|
|
4
|
+
title: string;
|
|
5
|
+
type: string;
|
|
6
|
+
flavor: string;
|
|
7
|
+
url: string;
|
|
8
|
+
audience: Partial<AudienceAutocomplete>[];
|
|
9
|
+
illustration: string;
|
|
10
|
+
assignLicense: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type MapCreateState = Loading & {
|
|
13
|
+
map: MapCreationFront;
|
|
14
|
+
status: 'success' | 'error' | undefined;
|
|
15
|
+
msg: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
export type MapCreateRootState = {
|
|
18
|
+
mapCreate: MapCreateState;
|
|
19
|
+
};
|
|
20
|
+
export type JLandMap = ArticleWithExtensions<Articles<'raw-list', 'jlandmap'>, ['licenses']>;
|
|
21
|
+
export type JLandMapFront = JLandMap & {
|
|
22
|
+
urlToJland?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
export type JLandMapListState = {
|
|
25
|
+
maps: Array<JLandMapFront>;
|
|
26
|
+
availableLicenses: AdminLicensesNotAssigned;
|
|
27
|
+
loading: 'idle' | 'pending';
|
|
28
|
+
loadingAvailableLicenses: 'idle' | 'pending';
|
|
29
|
+
loadingLicenseOperation: {
|
|
30
|
+
[key: number]: 'idle' | 'pending' | undefined;
|
|
31
|
+
};
|
|
32
|
+
loadingMapDeletion: 'idle' | 'pending';
|
|
33
|
+
};
|
|
34
|
+
export type JLandMapListRootState = {
|
|
35
|
+
jLandMapList: JLandMapListState;
|
|
36
|
+
};
|
|
37
|
+
export type JLandRootState = {
|
|
38
|
+
jland: JLandMapListRootState & MapCreateRootState;
|
|
39
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { JLandMap, MapCreateState, MapCreationFront } from './jland.types';
|
|
3
|
+
export declare const createMap: import('@reduxjs/toolkit').AsyncThunk<JLandMap[] | undefined, {
|
|
4
|
+
jlandUrlBase: string;
|
|
5
|
+
map: MapCreationFront;
|
|
6
|
+
}, {
|
|
7
|
+
dispatch: import('../..').AppDispatch;
|
|
8
|
+
state: import('../..').RootState;
|
|
9
|
+
extra: {
|
|
10
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
11
|
+
};
|
|
12
|
+
rejectValue?: unknown;
|
|
13
|
+
serializedErrorType?: unknown;
|
|
14
|
+
pendingMeta?: unknown;
|
|
15
|
+
fulfilledMeta?: unknown;
|
|
16
|
+
rejectedMeta?: unknown;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const MapCreateSlice: import('@reduxjs/toolkit').Slice<MapCreateState, {
|
|
19
|
+
setMap: (state: import('@reduxjs/toolkit').WritableDraft<MapCreateState>, action: PayloadAction<MapCreationFront>) => void;
|
|
20
|
+
resetCreateMapState: () => MapCreateState;
|
|
21
|
+
}, "mapCreate", "mapCreate", import('@reduxjs/toolkit').SliceSelectors<MapCreateState>>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare const createMapPayload: {
|
|
2
|
+
title: string;
|
|
3
|
+
type: string;
|
|
4
|
+
flavor: string;
|
|
5
|
+
url: string;
|
|
6
|
+
audience: {
|
|
7
|
+
id: string;
|
|
8
|
+
uri: string;
|
|
9
|
+
shortUri: string;
|
|
10
|
+
title: string;
|
|
11
|
+
name: string;
|
|
12
|
+
mainType: string;
|
|
13
|
+
type: string;
|
|
14
|
+
label: string;
|
|
15
|
+
cssClass: string;
|
|
16
|
+
cssColor: string;
|
|
17
|
+
class: string;
|
|
18
|
+
Pseudo: string;
|
|
19
|
+
}[];
|
|
20
|
+
illustration: string;
|
|
21
|
+
assignLicense: boolean;
|
|
22
|
+
};
|
|
23
|
+
export declare const createResponse: {
|
|
24
|
+
o: string;
|
|
25
|
+
f: string;
|
|
26
|
+
error: number;
|
|
27
|
+
messages: {
|
|
28
|
+
code: number;
|
|
29
|
+
msg: string;
|
|
30
|
+
}[];
|
|
31
|
+
result: {
|
|
32
|
+
id: number;
|
|
33
|
+
mainType: string;
|
|
34
|
+
type: string;
|
|
35
|
+
uri: string;
|
|
36
|
+
title: string;
|
|
37
|
+
_url: string;
|
|
38
|
+
dateCreation: string;
|
|
39
|
+
dateModified: string;
|
|
40
|
+
_right: {
|
|
41
|
+
create: boolean;
|
|
42
|
+
read: boolean;
|
|
43
|
+
publish: boolean;
|
|
44
|
+
administrate: boolean;
|
|
45
|
+
update: boolean;
|
|
46
|
+
delete: boolean;
|
|
47
|
+
comment: boolean;
|
|
48
|
+
member: boolean;
|
|
49
|
+
};
|
|
50
|
+
_user: {
|
|
51
|
+
id: number;
|
|
52
|
+
mainType: string;
|
|
53
|
+
type: string;
|
|
54
|
+
uri: string;
|
|
55
|
+
title: string;
|
|
56
|
+
_url: string;
|
|
57
|
+
dateCreation: string;
|
|
58
|
+
dateModified: string;
|
|
59
|
+
level: number;
|
|
60
|
+
};
|
|
61
|
+
jlandMapKind: string;
|
|
62
|
+
jlandMapFlavor: string;
|
|
63
|
+
limit: number;
|
|
64
|
+
waMapUrl: string;
|
|
65
|
+
}[];
|
|
66
|
+
};
|
|
67
|
+
export declare const createRejectResponse: {
|
|
68
|
+
o: string;
|
|
69
|
+
f: string;
|
|
70
|
+
error: number;
|
|
71
|
+
messages: {
|
|
72
|
+
code: number;
|
|
73
|
+
errorMsg: string;
|
|
74
|
+
}[];
|
|
75
|
+
};
|
|
76
|
+
export declare const assignLicenseResponse: {
|
|
77
|
+
o: string;
|
|
78
|
+
f: string;
|
|
79
|
+
error: number;
|
|
80
|
+
messages: never[];
|
|
81
|
+
result: boolean;
|
|
82
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { AdminLicensesNotAssigned } from 'jamespot-user-api';
|
|
2
|
+
import { JLandMapFront } from './jland.types';
|
|
3
|
+
export declare const fetchJLandMaps: import('@reduxjs/toolkit').AsyncThunk<JLandMapFront[], {
|
|
4
|
+
jlandUrlBase: string;
|
|
5
|
+
retrieveAllMaps: boolean;
|
|
6
|
+
}, {
|
|
7
|
+
dispatch: import('../..').AppDispatch;
|
|
8
|
+
state: import('../..').RootState;
|
|
9
|
+
extra: {
|
|
10
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
11
|
+
};
|
|
12
|
+
rejectValue?: unknown;
|
|
13
|
+
serializedErrorType?: unknown;
|
|
14
|
+
pendingMeta?: unknown;
|
|
15
|
+
fulfilledMeta?: unknown;
|
|
16
|
+
rejectedMeta?: unknown;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const fetchJLandAvailableLicenses: import('@reduxjs/toolkit').AsyncThunk<Record<string, number>, void, {
|
|
19
|
+
dispatch: import('../..').AppDispatch;
|
|
20
|
+
state: import('../..').RootState;
|
|
21
|
+
extra: {
|
|
22
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
23
|
+
};
|
|
24
|
+
rejectValue?: unknown;
|
|
25
|
+
serializedErrorType?: unknown;
|
|
26
|
+
pendingMeta?: unknown;
|
|
27
|
+
fulfilledMeta?: unknown;
|
|
28
|
+
rejectedMeta?: unknown;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const unassignLicense: import('@reduxjs/toolkit').AsyncThunk<boolean | undefined, {
|
|
31
|
+
map: JLandMapFront;
|
|
32
|
+
retrieveAllMaps: boolean;
|
|
33
|
+
}, {
|
|
34
|
+
dispatch: import('../..').AppDispatch;
|
|
35
|
+
state: import('../..').RootState;
|
|
36
|
+
extra: {
|
|
37
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
38
|
+
};
|
|
39
|
+
rejectValue?: unknown;
|
|
40
|
+
serializedErrorType?: unknown;
|
|
41
|
+
pendingMeta?: unknown;
|
|
42
|
+
fulfilledMeta?: unknown;
|
|
43
|
+
rejectedMeta?: unknown;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const deleteJlandMap: import('@reduxjs/toolkit').AsyncThunk<boolean | undefined, {
|
|
46
|
+
map: JLandMapFront;
|
|
47
|
+
retrieveAllMaps: boolean;
|
|
48
|
+
}, {
|
|
49
|
+
dispatch: import('../..').AppDispatch;
|
|
50
|
+
state: import('../..').RootState;
|
|
51
|
+
extra: {
|
|
52
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
53
|
+
};
|
|
54
|
+
rejectValue?: unknown;
|
|
55
|
+
serializedErrorType?: unknown;
|
|
56
|
+
pendingMeta?: unknown;
|
|
57
|
+
fulfilledMeta?: unknown;
|
|
58
|
+
rejectedMeta?: unknown;
|
|
59
|
+
}>;
|
|
60
|
+
export declare const assignLicense: import('@reduxjs/toolkit').AsyncThunk<boolean | undefined, {
|
|
61
|
+
map: JLandMapFront;
|
|
62
|
+
retrieveAllMaps: boolean;
|
|
63
|
+
}, {
|
|
64
|
+
dispatch: import('../..').AppDispatch;
|
|
65
|
+
state: import('../..').RootState;
|
|
66
|
+
extra: {
|
|
67
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
68
|
+
};
|
|
69
|
+
rejectValue?: unknown;
|
|
70
|
+
serializedErrorType?: unknown;
|
|
71
|
+
pendingMeta?: unknown;
|
|
72
|
+
fulfilledMeta?: unknown;
|
|
73
|
+
rejectedMeta?: unknown;
|
|
74
|
+
}>;
|
|
75
|
+
export declare const JLandMapListSlice: import('@reduxjs/toolkit').Slice<{
|
|
76
|
+
maps: Array<JLandMapFront>;
|
|
77
|
+
availableLicenses: AdminLicensesNotAssigned;
|
|
78
|
+
loading: "idle" | "pending";
|
|
79
|
+
loadingAvailableLicenses: "idle" | "pending";
|
|
80
|
+
loadingLicenseOperation: {
|
|
81
|
+
[key: number]: "idle" | "pending" | undefined;
|
|
82
|
+
};
|
|
83
|
+
loadingMapDeletion: "idle" | "pending";
|
|
84
|
+
}, {}, "jLandMapList", "jLandMapList", import('@reduxjs/toolkit').SliceSelectors<{
|
|
85
|
+
maps: Array<JLandMapFront>;
|
|
86
|
+
availableLicenses: AdminLicensesNotAssigned;
|
|
87
|
+
loading: "idle" | "pending";
|
|
88
|
+
loadingAvailableLicenses: "idle" | "pending";
|
|
89
|
+
loadingLicenseOperation: {
|
|
90
|
+
[key: number]: "idle" | "pending" | undefined;
|
|
91
|
+
};
|
|
92
|
+
loadingMapDeletion: "idle" | "pending";
|
|
93
|
+
}>>;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { ApiPagingResults, Articles, ArticleWithExtensions, Merge } from 'jamespot-user-api';
|
|
2
|
+
import { JLandMapFront } from './jland.types';
|
|
3
|
+
export declare const mapToManipulate: Merge<ArticleWithExtensions<Articles<'raw-list', 'jlandmap'>, ['licenses']>, {
|
|
4
|
+
urlToJland: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const mapUrlError: JLandMapFront;
|
|
7
|
+
export declare const mapUrlError2: JLandMapFront;
|
|
8
|
+
export declare const jlandMapList: ApiPagingResults<ArticleWithExtensions<Articles<'raw-list', 'jlandmap'>, ['licenses']>>;
|
|
9
|
+
export declare const jlandMapListEmpty: {
|
|
10
|
+
o: string;
|
|
11
|
+
f: string;
|
|
12
|
+
error: number;
|
|
13
|
+
messages: never[];
|
|
14
|
+
result: {
|
|
15
|
+
limit: number;
|
|
16
|
+
page: number;
|
|
17
|
+
cnt: number;
|
|
18
|
+
data: never[];
|
|
19
|
+
facets: null;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const jlandMapListError: {
|
|
23
|
+
o: string;
|
|
24
|
+
f: string;
|
|
25
|
+
error: number;
|
|
26
|
+
errorMsg: string;
|
|
27
|
+
messages: never[];
|
|
28
|
+
result: {
|
|
29
|
+
limit: number;
|
|
30
|
+
page: number;
|
|
31
|
+
cnt: number;
|
|
32
|
+
data: never[];
|
|
33
|
+
facets: null;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const jlandLicensesNotAssigned: {
|
|
37
|
+
o: string;
|
|
38
|
+
f: string;
|
|
39
|
+
error: number;
|
|
40
|
+
messages: never[];
|
|
41
|
+
result: {
|
|
42
|
+
JLO1: number;
|
|
43
|
+
JLO2: number;
|
|
44
|
+
JLO3: number;
|
|
45
|
+
JLO5: number;
|
|
46
|
+
JLMO2: number;
|
|
47
|
+
JLV3: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const jlandLicensesNotAssignedError: {
|
|
51
|
+
o: string;
|
|
52
|
+
f: string;
|
|
53
|
+
error: number;
|
|
54
|
+
errorMsg: string;
|
|
55
|
+
messages: never[];
|
|
56
|
+
result: {};
|
|
57
|
+
};
|
|
58
|
+
export declare const assignLicenseData: {
|
|
59
|
+
o: string;
|
|
60
|
+
f: string;
|
|
61
|
+
error: number;
|
|
62
|
+
messages: never[];
|
|
63
|
+
result: boolean;
|
|
64
|
+
};
|
|
65
|
+
export declare const assignLicenseDataError: {
|
|
66
|
+
o: string;
|
|
67
|
+
f: string;
|
|
68
|
+
error: number;
|
|
69
|
+
errorMsg: string;
|
|
70
|
+
messages: never[];
|
|
71
|
+
result: boolean;
|
|
72
|
+
};
|
|
73
|
+
export declare const unassignLicenseData: {
|
|
74
|
+
o: string;
|
|
75
|
+
f: string;
|
|
76
|
+
error: number;
|
|
77
|
+
messages: never[];
|
|
78
|
+
result: boolean;
|
|
79
|
+
};
|
|
80
|
+
export declare const unassignLicenseDataError: {
|
|
81
|
+
o: string;
|
|
82
|
+
f: string;
|
|
83
|
+
error: number;
|
|
84
|
+
errorMsg: string;
|
|
85
|
+
messages: never[];
|
|
86
|
+
result: boolean;
|
|
87
|
+
};
|
|
88
|
+
export declare const deletedMapData: {
|
|
89
|
+
o: string;
|
|
90
|
+
f: string;
|
|
91
|
+
error: number;
|
|
92
|
+
messages: {
|
|
93
|
+
code: number;
|
|
94
|
+
msg: string;
|
|
95
|
+
}[];
|
|
96
|
+
result: boolean;
|
|
97
|
+
};
|
|
98
|
+
export declare const deletedMapDataError: {
|
|
99
|
+
o: string;
|
|
100
|
+
f: string;
|
|
101
|
+
error: number;
|
|
102
|
+
errorMsg: string;
|
|
103
|
+
messages: never[];
|
|
104
|
+
result: boolean;
|
|
105
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { JLandMap, JLandMapFront } from './jland.types';
|
|
2
|
+
export declare const extractJlandUrlBaseFromMap: (map: Pick<JLandMapFront, "urlToJland">) => string | undefined;
|
|
3
|
+
export declare const buildUrlToJland: (map: Pick<JLandMap, "uri">, hostname: string, urlBase: string) => string;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { ArticlesView, PagingResults } from 'jamespot-user-api';
|
|
3
|
+
import { RootState } from '../../types/store';
|
|
4
|
+
import { MagicPadSliceRootState } from './magicPad.types';
|
|
5
|
+
export declare const magicPadSlice: import('@reduxjs/toolkit').Slice<MagicPadSliceRootState, {
|
|
6
|
+
setTab: (state: import('@reduxjs/toolkit').WritableDraft<MagicPadSliceRootState>, action: PayloadAction<MagicPadSliceRootState["tab"]>) => void;
|
|
7
|
+
setQuery: (state: import('@reduxjs/toolkit').WritableDraft<MagicPadSliceRootState>, action: PayloadAction<MagicPadSliceRootState["query"]>) => void;
|
|
8
|
+
setPage: (state: import('@reduxjs/toolkit').WritableDraft<MagicPadSliceRootState>, action: PayloadAction<MagicPadSliceRootState["page"]>) => void;
|
|
9
|
+
setFilters: (state: import('@reduxjs/toolkit').WritableDraft<MagicPadSliceRootState>, action: PayloadAction<MagicPadSliceRootState["filters"]>) => void;
|
|
10
|
+
setOrders: (state: import('@reduxjs/toolkit').WritableDraft<MagicPadSliceRootState>, action: PayloadAction<MagicPadSliceRootState["orders"]>) => void;
|
|
11
|
+
}, "magicPad", "magicPad", import('@reduxjs/toolkit').SliceSelectors<MagicPadSliceRootState>>;
|
|
12
|
+
export declare const fetchPads: import('@reduxjs/toolkit').AsyncThunk<PagingResults<ArticlesView>, {
|
|
13
|
+
idUserLogged: number;
|
|
14
|
+
}, {
|
|
15
|
+
dispatch: import('../..').AppDispatch;
|
|
16
|
+
state: RootState;
|
|
17
|
+
extra: {
|
|
18
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
19
|
+
};
|
|
20
|
+
rejectValue: {
|
|
21
|
+
error: number;
|
|
22
|
+
errorMsg: string;
|
|
23
|
+
};
|
|
24
|
+
serializedErrorType?: unknown;
|
|
25
|
+
pendingMeta?: unknown;
|
|
26
|
+
fulfilledMeta?: unknown;
|
|
27
|
+
rejectedMeta?: unknown;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const MagicPad: {
|
|
30
|
+
slice: import('@reduxjs/toolkit').Slice<MagicPadSliceRootState, {
|
|
31
|
+
setTab: (state: import('@reduxjs/toolkit').WritableDraft<MagicPadSliceRootState>, action: PayloadAction<MagicPadSliceRootState["tab"]>) => void;
|
|
32
|
+
setQuery: (state: import('@reduxjs/toolkit').WritableDraft<MagicPadSliceRootState>, action: PayloadAction<MagicPadSliceRootState["query"]>) => void;
|
|
33
|
+
setPage: (state: import('@reduxjs/toolkit').WritableDraft<MagicPadSliceRootState>, action: PayloadAction<MagicPadSliceRootState["page"]>) => void;
|
|
34
|
+
setFilters: (state: import('@reduxjs/toolkit').WritableDraft<MagicPadSliceRootState>, action: PayloadAction<MagicPadSliceRootState["filters"]>) => void;
|
|
35
|
+
setOrders: (state: import('@reduxjs/toolkit').WritableDraft<MagicPadSliceRootState>, action: PayloadAction<MagicPadSliceRootState["orders"]>) => void;
|
|
36
|
+
}, "magicPad", "magicPad", import('@reduxjs/toolkit').SliceSelectors<MagicPadSliceRootState>>;
|
|
37
|
+
actions: {
|
|
38
|
+
fetchPads: import('@reduxjs/toolkit').AsyncThunk<PagingResults<ArticlesView>, {
|
|
39
|
+
idUserLogged: number;
|
|
40
|
+
}, {
|
|
41
|
+
dispatch: import('../..').AppDispatch;
|
|
42
|
+
state: RootState;
|
|
43
|
+
extra: {
|
|
44
|
+
jApi: import('jamespot-user-api').JamespotUserApi;
|
|
45
|
+
};
|
|
46
|
+
rejectValue: {
|
|
47
|
+
error: number;
|
|
48
|
+
errorMsg: string;
|
|
49
|
+
};
|
|
50
|
+
serializedErrorType?: unknown;
|
|
51
|
+
pendingMeta?: unknown;
|
|
52
|
+
fulfilledMeta?: unknown;
|
|
53
|
+
rejectedMeta?: unknown;
|
|
54
|
+
}>;
|
|
55
|
+
};
|
|
56
|
+
selectors: {
|
|
57
|
+
selectMagicPad: (state: RootState) => MagicPadSliceRootState;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Filters, ArticlesView, Orders } from 'jamespot-user-api';
|
|
2
|
+
import { Loading } from '../../types/utils';
|
|
3
|
+
export type MagicPadSliceRootState = Loading & {
|
|
4
|
+
pads: ArticlesView[];
|
|
5
|
+
query: string;
|
|
6
|
+
page: number;
|
|
7
|
+
tab: 'my' | 'all';
|
|
8
|
+
filters: Filters;
|
|
9
|
+
orders: Orders;
|
|
10
|
+
limit: number;
|
|
11
|
+
nbResults: number;
|
|
12
|
+
};
|
|
13
|
+
export type MagicPadRootState = {
|
|
14
|
+
magicPad: MagicPadSliceRootState;
|
|
15
|
+
};
|