jamespot-front-business 1.1.36 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs.js +182 -28
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +181 -29
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +102 -15
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { Dispatch } from 'redux';
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { MapCreationFront as MapCreationFront$1 } from 'src/types';
|
|
10
10
|
import { Loading as Loading$1 } from 'src/types/utils';
|
|
11
|
+
import { jCommentList } from 'jamespot-user-api/lib/src/types/comment';
|
|
11
12
|
|
|
12
13
|
declare type ApplicationRootState = {
|
|
13
14
|
entities: {
|
|
@@ -436,14 +437,6 @@ declare const AssetReservation: {
|
|
|
436
437
|
};
|
|
437
438
|
};
|
|
438
439
|
|
|
439
|
-
declare type bookmarkEditState = Loading & {
|
|
440
|
-
bookmark: BookmarkRawList | undefined;
|
|
441
|
-
status: 'success' | 'error' | undefined;
|
|
442
|
-
};
|
|
443
|
-
interface bookmarkEditRootState {
|
|
444
|
-
bookmarkEdit: bookmarkEditState;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
440
|
declare type ToastType = 'success' | 'warning' | 'error';
|
|
448
441
|
declare type ToastRootState = {
|
|
449
442
|
toasts: EntityState<ToastEntity>;
|
|
@@ -507,6 +500,62 @@ declare const Toast: {
|
|
|
507
500
|
selectors: _reduxjs_toolkit.EntitySelectors<ToastEntity, ToastRootState>;
|
|
508
501
|
};
|
|
509
502
|
|
|
503
|
+
declare type CommentsList = {
|
|
504
|
+
idArticle: number;
|
|
505
|
+
list: jCommentList[];
|
|
506
|
+
};
|
|
507
|
+
declare type CommentListState = Loading & {
|
|
508
|
+
comments: Array<CommentsList>;
|
|
509
|
+
};
|
|
510
|
+
declare type CommentListRootState = {
|
|
511
|
+
commentList: CommentListState;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
declare type CommentRootState = {
|
|
515
|
+
comment: CommentListRootState;
|
|
516
|
+
};
|
|
517
|
+
declare const Comment: {
|
|
518
|
+
slice: {
|
|
519
|
+
name: "comment";
|
|
520
|
+
reducer: redux.Reducer<redux.CombinedState<{
|
|
521
|
+
commentList: CommentListState;
|
|
522
|
+
}>, redux.AnyAction>;
|
|
523
|
+
};
|
|
524
|
+
actions: {
|
|
525
|
+
discardComments: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
526
|
+
idArticle: number;
|
|
527
|
+
}, "commentList/discardComments">;
|
|
528
|
+
fetchComments: _reduxjs_toolkit.AsyncThunk<CommentsList, jamespot_user_api.GetCommentsParams, {
|
|
529
|
+
dispatch: any;
|
|
530
|
+
state: Partial<ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & CommentRootState;
|
|
531
|
+
extra: {
|
|
532
|
+
jApi: jamespot_user_api.JamespotUserApi;
|
|
533
|
+
};
|
|
534
|
+
rejectValue: {
|
|
535
|
+
error: number;
|
|
536
|
+
errorMsg: string;
|
|
537
|
+
};
|
|
538
|
+
serializedErrorType?: unknown;
|
|
539
|
+
pendingMeta?: unknown;
|
|
540
|
+
fulfilledMeta?: unknown;
|
|
541
|
+
rejectedMeta?: unknown;
|
|
542
|
+
}>;
|
|
543
|
+
};
|
|
544
|
+
selectors: {
|
|
545
|
+
commentList: (state: CommentRootState, idArticle: number) => CommentsList | undefined;
|
|
546
|
+
};
|
|
547
|
+
getCommentRTHandlers: (dispatch: redux.Dispatch<any>, idArticle: number) => jamespot_user_api.RTMessageHandler<"JAMESPOT", "comment-create" | "comment-delete" | "comment-update">[];
|
|
548
|
+
getCommentsLikeRTHandlers: (dispatch: redux.Dispatch<any>, idComments: number[] | undefined, idArticle: number) => jamespot_user_api.RTMessageHandler<"CUSTOM-ACTION", "update" | "add" | "remove">[];
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
declare type bookmarkEditState = Loading & {
|
|
552
|
+
bookmark: BookmarkRawList | undefined;
|
|
553
|
+
status: 'success' | 'error' | undefined;
|
|
554
|
+
};
|
|
555
|
+
interface bookmarkEditRootState {
|
|
556
|
+
bookmarkEdit: bookmarkEditState;
|
|
557
|
+
}
|
|
558
|
+
|
|
510
559
|
declare type bookmarkListState = Loading & {
|
|
511
560
|
bookmarks: BookmarkRawList[];
|
|
512
561
|
nbResults: number;
|
|
@@ -638,13 +687,13 @@ declare const Bookmark: {
|
|
|
638
687
|
bookmarkEditBookmark: (state: BookmarkRootState) => jamespot_user_api.BookmarkRawList<jamespot_user_api.jObjectLittle | jamespot_user_api.jUserLittle> | undefined;
|
|
639
688
|
};
|
|
640
689
|
getRTHandlers: (dispatch: redux.Dispatch<any>) => ({
|
|
641
|
-
namespace: "BOOKMARKS";
|
|
642
|
-
function: "add" | "delete" | "update";
|
|
643
|
-
handler: (message: jamespot_user_api.RTMessageObject<"BOOKMARKS", "update", jamespot_user_api.jObjectBase> | jamespot_user_api.RTMessageObject<"BOOKMARKS", "add", jamespot_user_api.jObjectBase> | jamespot_user_api.RTMessageObject<"BOOKMARKS", "delete", jamespot_user_api.jObjectBase>) => void;
|
|
644
|
-
} | {
|
|
645
690
|
namespace: "CUSTOM-ACTION";
|
|
646
|
-
function: "
|
|
647
|
-
handler: (message: jamespot_user_api.RTMessageObject<"CUSTOM-ACTION", "update",
|
|
691
|
+
function: "update" | "add" | "remove";
|
|
692
|
+
handler: (message: jamespot_user_api.RTMessageObject<"CUSTOM-ACTION", "update", {}> | jamespot_user_api.RTMessageObject<"CUSTOM-ACTION", "add", {}> | jamespot_user_api.RTMessageObject<"CUSTOM-ACTION", "remove", {}>) => void;
|
|
693
|
+
} | {
|
|
694
|
+
namespace: "BOOKMARKS";
|
|
695
|
+
function: "update" | "add" | "delete";
|
|
696
|
+
handler: (message: jamespot_user_api.RTMessageObject<"BOOKMARKS", "update", {}> | jamespot_user_api.RTMessageObject<"BOOKMARKS", "add", {}> | jamespot_user_api.RTMessageObject<"BOOKMARKS", "delete", {}>) => void;
|
|
648
697
|
})[];
|
|
649
698
|
};
|
|
650
699
|
|
|
@@ -690,11 +739,13 @@ declare const Faq: {
|
|
|
690
739
|
} | undefined;
|
|
691
740
|
appImageText: string | undefined;
|
|
692
741
|
access: jamespot_user_api.FaqAccess;
|
|
742
|
+
_displayComment: "" | "1" | "0" | undefined;
|
|
693
743
|
} | {
|
|
694
744
|
_web: string;
|
|
695
745
|
appImage?: never;
|
|
696
746
|
appImageText?: never;
|
|
697
747
|
access?: never;
|
|
748
|
+
_displayComment?: never;
|
|
698
749
|
}, void, {
|
|
699
750
|
state?: unknown;
|
|
700
751
|
dispatch?: redux.Dispatch<redux.AnyAction>;
|
|
@@ -957,6 +1008,42 @@ declare const Network: {
|
|
|
957
1008
|
};
|
|
958
1009
|
};
|
|
959
1010
|
|
|
1011
|
+
declare type PlatformConfigState = {
|
|
1012
|
+
userHighlightFields?: string[];
|
|
1013
|
+
userAccountStatus: 0 | 1;
|
|
1014
|
+
};
|
|
1015
|
+
declare const PlatformConfigSlice: _reduxjs_toolkit.Slice<PlatformConfigState, {
|
|
1016
|
+
initPlatformConfig: (_: Draft<S>, { payload }: PayloadAction<PlatformConfigState>) => PlatformConfigState;
|
|
1017
|
+
}, "config">;
|
|
1018
|
+
|
|
1019
|
+
declare const PlatformSlice: {
|
|
1020
|
+
name: "platform";
|
|
1021
|
+
reducer: redux.Reducer<redux.CombinedState<{
|
|
1022
|
+
config: PlatformConfigState;
|
|
1023
|
+
}>, redux.AnyAction>;
|
|
1024
|
+
};
|
|
1025
|
+
declare type PlatformRootState = {
|
|
1026
|
+
[PlatformSlice.name]: {
|
|
1027
|
+
[PlatformConfigSlice.name]: PlatformConfigState;
|
|
1028
|
+
};
|
|
1029
|
+
};
|
|
1030
|
+
declare const Platform: {
|
|
1031
|
+
slice: {
|
|
1032
|
+
name: "platform";
|
|
1033
|
+
reducer: redux.Reducer<redux.CombinedState<{
|
|
1034
|
+
config: PlatformConfigState;
|
|
1035
|
+
}>, redux.AnyAction>;
|
|
1036
|
+
};
|
|
1037
|
+
actions: {
|
|
1038
|
+
initPlatformConfig: _reduxjs_toolkit.ActionCreatorWithPayload<PlatformConfigState, "config/initPlatformConfig">;
|
|
1039
|
+
};
|
|
1040
|
+
selectors: {
|
|
1041
|
+
selectPlatformConfig: (state: PlatformRootState) => PlatformConfigState;
|
|
1042
|
+
selectUserHighlightFields: (state: PlatformRootState) => string[] | undefined;
|
|
1043
|
+
selectUserAccountStatus: (state: PlatformRootState) => 0 | 1;
|
|
1044
|
+
};
|
|
1045
|
+
};
|
|
1046
|
+
|
|
960
1047
|
declare type WedocAppState = {
|
|
961
1048
|
entities: WedocFileType[];
|
|
962
1049
|
nbEntities: number;
|
|
@@ -1511,4 +1598,4 @@ declare const studio: {
|
|
|
1511
1598
|
};
|
|
1512
1599
|
};
|
|
1513
1600
|
|
|
1514
|
-
export { APP_STATUS_TYPE, AUDIENCE, AppAttrSolrModel, AppAttrWidgetModel, AppFieldFormProperty, AppFieldFormPropertyTypes, AppFieldView, AppFieldsFormItem, AppFormBannedFromViews, AppFormItemTypes, AppFormUniqueList, AppInstallForType, AppLabelContentType, AppLabelsType, AppServerDisplayModel, AppServerDisplaysModel, AppServerViewModel, AppStatusKeys, AppStatusType, AppTableAttributesModel, AppTableModel, AppTypeServerModel, AppViewFieldItem, AppViewFieldsItems, AppViews, AppViewsFields, Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Bookmark, BookmarkRootState, ChannelsListRootState, ChannelsListState, CheckBoxOption, EditorProps, EditorsRootState, EditorsState, ExtraAppFieldsItemViews, Faq, FaqRootState, JLandMapFront, JLandRootState, MODE_EDIT, MODE_VIEW, MapCreationFront, MapExtraFieldsWithView, Model, ModelRootState, Network, NetworkRootState, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, TVDisplay, TVDisplayRootState, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, ViewName, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, jland, slice, studio, updateWidgetContent, viewsList };
|
|
1601
|
+
export { APP_STATUS_TYPE, AUDIENCE, AppAttrSolrModel, AppAttrWidgetModel, AppFieldFormProperty, AppFieldFormPropertyTypes, AppFieldView, AppFieldsFormItem, AppFormBannedFromViews, AppFormItemTypes, AppFormUniqueList, AppInstallForType, AppLabelContentType, AppLabelsType, AppServerDisplayModel, AppServerDisplaysModel, AppServerViewModel, AppStatusKeys, AppStatusType, AppTableAttributesModel, AppTableModel, AppTypeServerModel, AppViewFieldItem, AppViewFieldsItems, AppViews, AppViewsFields, Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Bookmark, BookmarkRootState, ChannelsListRootState, ChannelsListState, CheckBoxOption, Comment, CommentRootState, EditorProps, EditorsRootState, EditorsState, ExtraAppFieldsItemViews, Faq, FaqRootState, JLandMapFront, JLandRootState, MODE_EDIT, MODE_VIEW, MapCreationFront, MapExtraFieldsWithView, Model, ModelRootState, Network, NetworkRootState, Platform, PlatformRootState, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, TVDisplay, TVDisplayRootState, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, ViewName, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, jland, slice, studio, updateWidgetContent, viewsList };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-front-business",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.38",
|
|
4
4
|
"description": "typescript utils",
|
|
5
5
|
"main": "dist/cjs.js",
|
|
6
6
|
"module": "dist/esm.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@reduxjs/toolkit": "1.9.0",
|
|
40
40
|
"@types/uuid": "^9.0.8",
|
|
41
|
-
"jamespot-user-api": "^1.0.
|
|
41
|
+
"jamespot-user-api": "^1.0.142",
|
|
42
42
|
"react-redux": "7.2.9",
|
|
43
43
|
"redux": "4.2.0",
|
|
44
44
|
"uuid": "^9.0.1"
|