jamespot-front-business 1.1.85 → 1.1.87
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 +168 -31
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +165 -32
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +1627 -533
- package/package.json +2 -2
package/dist/cjs.js
CHANGED
|
@@ -56,6 +56,11 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
56
56
|
const isAbortError = (error) => {
|
|
57
57
|
return !!error && typeof error === 'object' && 'aborted' in error && !!error.aborted;
|
|
58
58
|
};
|
|
59
|
+
const getErrorMessage = (error, defaultError) => {
|
|
60
|
+
return error && typeof error === 'object' && 'errorMsg' in error && typeof error.errorMsg === 'string'
|
|
61
|
+
? error.errorMsg
|
|
62
|
+
: defaultError !== null && defaultError !== void 0 ? defaultError : 'GLOBAL_Technical_Error';
|
|
63
|
+
};
|
|
59
64
|
|
|
60
65
|
const toastAdapter = toolkit.createEntityAdapter({
|
|
61
66
|
selectId: (toast) => toast.id,
|
|
@@ -100,7 +105,7 @@ const oneMonthAgo$2 = () => {
|
|
|
100
105
|
date.setMonth(date.getMonth() - 1);
|
|
101
106
|
return date;
|
|
102
107
|
};
|
|
103
|
-
const initialState$
|
|
108
|
+
const initialState$q = {
|
|
104
109
|
data: [],
|
|
105
110
|
loading: 'idle',
|
|
106
111
|
page: 1,
|
|
@@ -132,7 +137,7 @@ const fetchLogsNavigation = toolkit.createAsyncThunk('admin/fetchLogsNavigation'
|
|
|
132
137
|
}));
|
|
133
138
|
const adminLogsNavigationSlice = toolkit.createSlice({
|
|
134
139
|
name: 'logsNavigation',
|
|
135
|
-
initialState: initialState$
|
|
140
|
+
initialState: initialState$q,
|
|
136
141
|
reducers: {
|
|
137
142
|
setNavigationOrder: (state, action) => {
|
|
138
143
|
state.orders = [...action.payload];
|
|
@@ -170,7 +175,7 @@ const oneMonthAgo$1 = () => {
|
|
|
170
175
|
date.setMonth(date.getMonth() - 1);
|
|
171
176
|
return date;
|
|
172
177
|
};
|
|
173
|
-
const initialState$
|
|
178
|
+
const initialState$p = {
|
|
174
179
|
data: [],
|
|
175
180
|
loading: 'idle',
|
|
176
181
|
page: 1,
|
|
@@ -202,7 +207,7 @@ const fetchLogsObjects = toolkit.createAsyncThunk('admin/fetchLogsObjects', (par
|
|
|
202
207
|
}));
|
|
203
208
|
const adminLogsObjectsSlice = toolkit.createSlice({
|
|
204
209
|
name: 'logsObjects',
|
|
205
|
-
initialState: initialState$
|
|
210
|
+
initialState: initialState$p,
|
|
206
211
|
reducers: {
|
|
207
212
|
setObjectsOrder: (state, action) => {
|
|
208
213
|
state.orders = [...action.payload];
|
|
@@ -239,7 +244,7 @@ const oneMonthAgo = () => {
|
|
|
239
244
|
date.setMonth(date.getMonth() - 1);
|
|
240
245
|
return date;
|
|
241
246
|
};
|
|
242
|
-
const initialState$
|
|
247
|
+
const initialState$o = {
|
|
243
248
|
data: [],
|
|
244
249
|
loading: 'idle',
|
|
245
250
|
page: 1,
|
|
@@ -271,7 +276,7 @@ const fetchLogsSearch = toolkit.createAsyncThunk('admin/fetchLogsSearch', (param
|
|
|
271
276
|
}));
|
|
272
277
|
const adminLogsSearchSlice = toolkit.createSlice({
|
|
273
278
|
name: 'logsSearch',
|
|
274
|
-
initialState: initialState$
|
|
279
|
+
initialState: initialState$o,
|
|
275
280
|
reducers: {
|
|
276
281
|
setSearchOrder: (state, action) => {
|
|
277
282
|
state.orders = [...action.payload];
|
|
@@ -324,7 +329,7 @@ const AdminLogs = {
|
|
|
324
329
|
selectors: { selectAdminLogsNavigation, selectAdminLogsObjects, selectAdminLogsSearch },
|
|
325
330
|
};
|
|
326
331
|
|
|
327
|
-
const initialState$
|
|
332
|
+
const initialState$n = {
|
|
328
333
|
animationConfiguration: null,
|
|
329
334
|
isActiveForCurrentUser: false,
|
|
330
335
|
isInitialized: false,
|
|
@@ -332,7 +337,7 @@ const initialState$m = {
|
|
|
332
337
|
};
|
|
333
338
|
const animationsListSlice = toolkit.createSlice({
|
|
334
339
|
name: 'animationsList',
|
|
335
|
-
initialState: initialState$
|
|
340
|
+
initialState: initialState$n,
|
|
336
341
|
reducers: {},
|
|
337
342
|
extraReducers: (builder) => {
|
|
338
343
|
builder.addCase(fetchCurrentAnimation.fulfilled, (state, action) => {
|
|
@@ -543,6 +548,9 @@ const adapter$2 = toolkit.createEntityAdapter({
|
|
|
543
548
|
selectId: (app) => app.name,
|
|
544
549
|
sortComparer: (a, b) => a.label.localeCompare(b.label),
|
|
545
550
|
});
|
|
551
|
+
const fetchList = toolkit.createAsyncThunk('application/fetch', (_, { extra }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
552
|
+
return yield extra.jApi.application.list();
|
|
553
|
+
}));
|
|
546
554
|
const slice$4 = toolkit.createSlice({
|
|
547
555
|
name: 'applications',
|
|
548
556
|
initialState: adapter$2.getInitialState(),
|
|
@@ -551,15 +559,20 @@ const slice$4 = toolkit.createSlice({
|
|
|
551
559
|
addMany: adapter$2.addMany,
|
|
552
560
|
setAll: adapter$2.setAll,
|
|
553
561
|
},
|
|
562
|
+
extraReducers: (builder) => {
|
|
563
|
+
builder.addCase(fetchList.fulfilled, (state, action) => {
|
|
564
|
+
adapter$2.setAll(state, action.payload.result);
|
|
565
|
+
});
|
|
566
|
+
},
|
|
554
567
|
});
|
|
555
568
|
const selectors$2 = adapter$2.getSelectors((state) => state.entities.applications);
|
|
556
569
|
const Application = {
|
|
557
570
|
slice: slice$4,
|
|
558
|
-
actions: Object.assign({}, slice$4.actions),
|
|
571
|
+
actions: Object.assign({ fetchList }, slice$4.actions),
|
|
559
572
|
selectors: selectors$2,
|
|
560
573
|
};
|
|
561
574
|
|
|
562
|
-
const initialState$
|
|
575
|
+
const initialState$m = {
|
|
563
576
|
entities: [],
|
|
564
577
|
loading: 'idle',
|
|
565
578
|
nbResults: 0,
|
|
@@ -575,7 +588,7 @@ const fetchBookableAsset = toolkit.createAsyncThunk('BookableAsset/fetchBookable
|
|
|
575
588
|
}));
|
|
576
589
|
const BookableAssetSlice = toolkit.createSlice({
|
|
577
590
|
name: 'bookableAsset',
|
|
578
|
-
initialState: initialState$
|
|
591
|
+
initialState: initialState$m,
|
|
579
592
|
reducers: {},
|
|
580
593
|
extraReducers: (builder) => {
|
|
581
594
|
builder
|
|
@@ -596,7 +609,7 @@ const BookableAssetSlice = toolkit.createSlice({
|
|
|
596
609
|
const fetchConfiguration = toolkit.createAsyncThunk('AssetReservation/configuration', (_, { extra }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
597
610
|
return yield extra.jApi.assetReservation.configuration();
|
|
598
611
|
}));
|
|
599
|
-
const initialState$
|
|
612
|
+
const initialState$l = {
|
|
600
613
|
description: '',
|
|
601
614
|
right: {
|
|
602
615
|
manage: false,
|
|
@@ -610,7 +623,7 @@ const initialState$k = {
|
|
|
610
623
|
};
|
|
611
624
|
const AssetReservationConfigurationSlice = toolkit.createSlice({
|
|
612
625
|
name: 'configuration',
|
|
613
|
-
initialState: initialState$
|
|
626
|
+
initialState: initialState$l,
|
|
614
627
|
reducers: {},
|
|
615
628
|
extraReducers: (builder) => {
|
|
616
629
|
builder
|
|
@@ -631,7 +644,7 @@ const initForm = {
|
|
|
631
644
|
hourStart: '',
|
|
632
645
|
hourEnd: '',
|
|
633
646
|
};
|
|
634
|
-
const initialState$
|
|
647
|
+
const initialState$k = {
|
|
635
648
|
entities: [],
|
|
636
649
|
loading: 'idle',
|
|
637
650
|
nbResults: 0,
|
|
@@ -647,7 +660,7 @@ const fetchReservation = toolkit.createAsyncThunk('Reservation/fetchReservation'
|
|
|
647
660
|
}));
|
|
648
661
|
const ReservationSlice = toolkit.createSlice({
|
|
649
662
|
name: 'reservation',
|
|
650
|
-
initialState: initialState$
|
|
663
|
+
initialState: initialState$k,
|
|
651
664
|
reducers: {
|
|
652
665
|
setForm: (state, action) => {
|
|
653
666
|
state.form = action.payload;
|
|
@@ -703,14 +716,14 @@ const AssetReservation = {
|
|
|
703
716
|
},
|
|
704
717
|
};
|
|
705
718
|
|
|
706
|
-
const initialState$
|
|
719
|
+
const initialState$j = {
|
|
707
720
|
loading: 'idle',
|
|
708
721
|
comments: [],
|
|
709
722
|
};
|
|
710
723
|
const fetchComments = toolkit.createAsyncThunk('commentList/fetchCommentList', (params, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
711
724
|
var _a;
|
|
712
725
|
try {
|
|
713
|
-
const res = yield extra.jApi.article.getComments(params, 'raw-list');
|
|
726
|
+
const res = yield extra.jApi.article.getComments(params, { format: 'raw-list', formatExtend: ['socialActions'] });
|
|
714
727
|
return { idArticle: params.idArticle, list: res.result };
|
|
715
728
|
}
|
|
716
729
|
catch (error) {
|
|
@@ -731,7 +744,7 @@ const deleteComment = toolkit.createAsyncThunk('commentList/deleteComment', (par
|
|
|
731
744
|
}));
|
|
732
745
|
const CommentListSlice = toolkit.createSlice({
|
|
733
746
|
name: 'commentList',
|
|
734
|
-
initialState: initialState$
|
|
747
|
+
initialState: initialState$j,
|
|
735
748
|
reducers: {
|
|
736
749
|
discardComments: (state, action) => {
|
|
737
750
|
state.comments = state.comments.filter((c) => c.idArticle !== action.payload.idArticle);
|
|
@@ -874,6 +887,125 @@ const Comment = {
|
|
|
874
887
|
getCommentsLikeRTHandlers,
|
|
875
888
|
};
|
|
876
889
|
|
|
890
|
+
const initialState$i = {
|
|
891
|
+
loading: 'idle',
|
|
892
|
+
reports: [],
|
|
893
|
+
page: 1,
|
|
894
|
+
tab: 'all',
|
|
895
|
+
filters: [],
|
|
896
|
+
orders: [],
|
|
897
|
+
limit: 10,
|
|
898
|
+
nbResults: 0,
|
|
899
|
+
pendingReports: [],
|
|
900
|
+
};
|
|
901
|
+
const contentReportSlice = toolkit.createSlice({
|
|
902
|
+
name: 'contentReport',
|
|
903
|
+
initialState: initialState$i,
|
|
904
|
+
reducers: {
|
|
905
|
+
setTab: (state, action) => {
|
|
906
|
+
state.tab = action.payload;
|
|
907
|
+
state.page = 1;
|
|
908
|
+
state.orders = [];
|
|
909
|
+
state.filters = [];
|
|
910
|
+
},
|
|
911
|
+
setPage: (state, action) => {
|
|
912
|
+
state.page = action.payload;
|
|
913
|
+
},
|
|
914
|
+
setFilters: (state, action) => {
|
|
915
|
+
state.filters = action.payload;
|
|
916
|
+
},
|
|
917
|
+
setOrders: (state, action) => {
|
|
918
|
+
state.orders = action.payload;
|
|
919
|
+
},
|
|
920
|
+
},
|
|
921
|
+
extraReducers: (builder) => {
|
|
922
|
+
builder
|
|
923
|
+
.addCase(fetchReports.pending, (state) => {
|
|
924
|
+
if (state.loading === 'idle')
|
|
925
|
+
state.loading = 'pending';
|
|
926
|
+
})
|
|
927
|
+
.addCase(fetchReports.fulfilled, (state, action) => {
|
|
928
|
+
if (state.loading == 'pending')
|
|
929
|
+
state.loading = 'idle';
|
|
930
|
+
state.reports = action.payload.data;
|
|
931
|
+
state.nbResults = action.payload.cnt;
|
|
932
|
+
return state;
|
|
933
|
+
})
|
|
934
|
+
.addCase(fetchReports.rejected, (state) => {
|
|
935
|
+
if (state.loading == 'pending')
|
|
936
|
+
state.loading = 'idle';
|
|
937
|
+
})
|
|
938
|
+
.addCase(updateStatus.pending, (state, action) => {
|
|
939
|
+
const report = state.reports.find((report) => report.uri === action.meta.arg.uri);
|
|
940
|
+
if (report) {
|
|
941
|
+
state.pendingReports = [...state.pendingReports, Object.assign(Object.assign({}, report), { requestId: action.meta.requestId })];
|
|
942
|
+
state.reports = state.reports.map((report) => {
|
|
943
|
+
return report.uri !== action.meta.arg.uri
|
|
944
|
+
? report
|
|
945
|
+
: Object.assign(Object.assign({}, report), { status: action.meta.arg.status });
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
})
|
|
949
|
+
.addCase(updateStatus.fulfilled, (state, action) => {
|
|
950
|
+
state.pendingReports = state.pendingReports.filter((report) => report.requestId !== action.meta.requestId);
|
|
951
|
+
})
|
|
952
|
+
.addCase(updateStatus.rejected, (state, action) => {
|
|
953
|
+
const report = state.pendingReports.find((report) => report.requestId === action.meta.requestId);
|
|
954
|
+
if (!report)
|
|
955
|
+
return;
|
|
956
|
+
state.reports = state.reports.map((r) => {
|
|
957
|
+
if (r.id !== report.id)
|
|
958
|
+
return r;
|
|
959
|
+
return report;
|
|
960
|
+
});
|
|
961
|
+
state.pendingReports = state.pendingReports.filter((r) => r.requestId !== action.meta.requestId);
|
|
962
|
+
});
|
|
963
|
+
},
|
|
964
|
+
});
|
|
965
|
+
const fetchReports = toolkit.createAsyncThunk('contentReport/fetchReports', (_params, { rejectWithValue, extra, dispatch, getState }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
966
|
+
var _a;
|
|
967
|
+
const state = getState().contentReport;
|
|
968
|
+
const userId = (_a = getState().userCurrent) === null || _a === void 0 ? void 0 : _a.id;
|
|
969
|
+
try {
|
|
970
|
+
const filters = state.tab === 'my' && userId ? [...state.filters, { name: 'idUser', value: userId }] : [...state.filters];
|
|
971
|
+
const orders = state.orders.length > 0 ? state.orders : [{ name: 'dateCreation', sort: 'DESC' }];
|
|
972
|
+
return (yield extra.jApi.contentReport.getReports({
|
|
973
|
+
filters,
|
|
974
|
+
orders,
|
|
975
|
+
page: state.page,
|
|
976
|
+
limit: state.limit,
|
|
977
|
+
})).result;
|
|
978
|
+
}
|
|
979
|
+
catch (error) {
|
|
980
|
+
if (!isAbortError(error)) {
|
|
981
|
+
dispatch(Toast.actions.error({ label: getErrorMessage(error) }));
|
|
982
|
+
}
|
|
983
|
+
return rejectWithValue({ error: 1, errorMsg: 'Cannot fetch pads' });
|
|
984
|
+
}
|
|
985
|
+
}));
|
|
986
|
+
const updateStatus = toolkit.createAsyncThunk('contentReport/updateStatus', (params, { dispatch, rejectWithValue, extra }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
987
|
+
try {
|
|
988
|
+
yield extra.jApi.contentReport.updateStatus(params);
|
|
989
|
+
dispatch(Toast.actions.success({ label: 'GLOBAL_Successfully_Saved' }));
|
|
990
|
+
return true;
|
|
991
|
+
}
|
|
992
|
+
catch (error) {
|
|
993
|
+
if (!isAbortError(error)) {
|
|
994
|
+
dispatch(Toast.actions.error({ label: getErrorMessage(error) }));
|
|
995
|
+
}
|
|
996
|
+
return rejectWithValue({ error: 1, errorMsg: 'Cannot fetch pads' });
|
|
997
|
+
}
|
|
998
|
+
}));
|
|
999
|
+
const selectContentReport = (state) => state.contentReport;
|
|
1000
|
+
const ContentReport = {
|
|
1001
|
+
slice: contentReportSlice,
|
|
1002
|
+
actions: {
|
|
1003
|
+
fetchReports,
|
|
1004
|
+
updateStatus,
|
|
1005
|
+
},
|
|
1006
|
+
selectors: { selectContentReport },
|
|
1007
|
+
};
|
|
1008
|
+
|
|
877
1009
|
const initialState$h = {
|
|
878
1010
|
bookmarks: [],
|
|
879
1011
|
loading: 'idle',
|
|
@@ -2189,7 +2321,7 @@ const WedocApp = {
|
|
|
2189
2321
|
|
|
2190
2322
|
const fetchRequest = toolkit.createAsyncThunk('/fetchRequest', ({ uri, idUser }, { extra }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2191
2323
|
const jApi = extra.jApi;
|
|
2192
|
-
return yield jApi.
|
|
2324
|
+
return yield jApi.object.getAccessRequest(uri, idUser);
|
|
2193
2325
|
}));
|
|
2194
2326
|
|
|
2195
2327
|
const initialState$7 = {
|
|
@@ -3205,6 +3337,7 @@ const editorsSlice = toolkit.createSlice({
|
|
|
3205
3337
|
state.editors = [...state.editors.filter((ed) => ed.uniqid !== uniqid)];
|
|
3206
3338
|
},
|
|
3207
3339
|
flushAllEditor: (state) => {
|
|
3340
|
+
window.dispatchEvent(new Event('WidgetEditorFlushAll'));
|
|
3208
3341
|
state.editors.length = 0;
|
|
3209
3342
|
},
|
|
3210
3343
|
},
|
|
@@ -3220,7 +3353,7 @@ const WidgetEditor = {
|
|
|
3220
3353
|
};
|
|
3221
3354
|
|
|
3222
3355
|
const adapter = toolkit.createEntityAdapter({
|
|
3223
|
-
selectId: (socialAction) => `${socialAction.
|
|
3356
|
+
selectId: (socialAction) => `${socialAction.targetId}-${socialAction.type}`,
|
|
3224
3357
|
});
|
|
3225
3358
|
const slice = toolkit.createSlice({
|
|
3226
3359
|
name: 'socialActions',
|
|
@@ -5059,7 +5192,7 @@ const fetchCurrentStudioApp = toolkit.createAsyncThunk('studio/fetchCurrentStudi
|
|
|
5059
5192
|
const jApi = extra.jApi;
|
|
5060
5193
|
const error = { error: 1, errorMsg: 'Error fetching application' };
|
|
5061
5194
|
try {
|
|
5062
|
-
const studioApplicationBase = (yield jApi.application.
|
|
5195
|
+
const studioApplicationBase = (yield jApi.application.studioGet(idApp, status)).result;
|
|
5063
5196
|
const studioApplication = serverAppsToStudioApps([studioApplicationBase], getState())[0];
|
|
5064
5197
|
if (!studioApplication) {
|
|
5065
5198
|
return rejectWithValue(error);
|
|
@@ -5079,7 +5212,7 @@ const saveCurrentStudioApp = toolkit.createAsyncThunk('studio/saveCurrentStudioA
|
|
|
5079
5212
|
}
|
|
5080
5213
|
const stringifiedApp = JSON.stringify(currentStudioApp);
|
|
5081
5214
|
try {
|
|
5082
|
-
yield jApi.application.
|
|
5215
|
+
yield jApi.application.studioSave(currentStudioApp.idApp, stringifiedApp, 'saved');
|
|
5083
5216
|
dispatch(Toast.actions.success({ label: 'APPSTUDIO_AppItem_Edition_Saved' }));
|
|
5084
5217
|
return;
|
|
5085
5218
|
}
|
|
@@ -5097,7 +5230,7 @@ const installStudioApp = toolkit.createAsyncThunk('studio/installApp', ({ callba
|
|
|
5097
5230
|
}
|
|
5098
5231
|
const xml = appToXml(currentStudioApp);
|
|
5099
5232
|
try {
|
|
5100
|
-
yield jApi.application.
|
|
5233
|
+
yield jApi.application.studioInstall(xml);
|
|
5101
5234
|
dispatch(Toast.actions.success({ label: 'APPSTUDIO_AppItem_Installed' }));
|
|
5102
5235
|
if (callback)
|
|
5103
5236
|
callback();
|
|
@@ -5272,10 +5405,10 @@ const initialState = {
|
|
|
5272
5405
|
const fetchStudioAppsList = toolkit.createAsyncThunk('studio/appsList', (intl, { extra, rejectWithValue, dispatch, getState }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5273
5406
|
const jApi = extra.jApi;
|
|
5274
5407
|
try {
|
|
5275
|
-
const { result } = yield jApi.application.
|
|
5408
|
+
const { result } = yield jApi.application.studioList();
|
|
5276
5409
|
const taxonomies = yield jApi.taxonomy.list();
|
|
5277
5410
|
const appsPromisesResult = yield Promise.allSettled(result.map((app) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5278
|
-
const coreApp = (yield jApi.application.
|
|
5411
|
+
const coreApp = (yield jApi.application.studioGet(app.idApp, app.status)).result;
|
|
5279
5412
|
const articlesCount = (yield jApi.article.count(app.idApp)).result;
|
|
5280
5413
|
return Object.assign(Object.assign({}, coreApp), { articlesCount });
|
|
5281
5414
|
})));
|
|
@@ -5330,7 +5463,7 @@ const createNewStudioApp = toolkit.createAsyncThunk('studio/createApp', ({ appNa
|
|
|
5330
5463
|
const author = (_a = getState().userCurrent) === null || _a === void 0 ? void 0 : _a.uri;
|
|
5331
5464
|
const { newAppId, newStudioApp } = createNewStudioApp$1(Object.assign({ appName }, (author && { author })));
|
|
5332
5465
|
try {
|
|
5333
|
-
yield jApi.application.
|
|
5466
|
+
yield jApi.application.studioSave(newAppId, JSON.stringify(newStudioApp), 'saved');
|
|
5334
5467
|
dispatch(Toast.actions.success({ label: 'APPSTUDIO_StudioApp_Created' }));
|
|
5335
5468
|
dispatch(CurrentStudioAppSlice.actions.setCurrentApp(newStudioApp));
|
|
5336
5469
|
if (callback)
|
|
@@ -5345,7 +5478,7 @@ const createNewStudioApp = toolkit.createAsyncThunk('studio/createApp', ({ appNa
|
|
|
5345
5478
|
const deleteStudioApp = toolkit.createAsyncThunk('studio/deleteApp', ({ idApp, status }, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5346
5479
|
const jApi = extra.jApi;
|
|
5347
5480
|
try {
|
|
5348
|
-
const deleteRes = yield jApi.application.
|
|
5481
|
+
const deleteRes = yield jApi.application.studioDelete(idApp, status);
|
|
5349
5482
|
dispatch(Toast.actions.success({ label: 'APPSTUDIO_StudioApp_Deleted' }));
|
|
5350
5483
|
return deleteRes;
|
|
5351
5484
|
}
|
|
@@ -5357,7 +5490,7 @@ const deleteStudioApp = toolkit.createAsyncThunk('studio/deleteApp', ({ idApp, s
|
|
|
5357
5490
|
const suspendStudioApp = toolkit.createAsyncThunk('studio/suspendStudioApp', ({ idApp }, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5358
5491
|
const jApi = extra.jApi;
|
|
5359
5492
|
try {
|
|
5360
|
-
yield jApi.application.
|
|
5493
|
+
yield jApi.application.studioSuspend(idApp);
|
|
5361
5494
|
dispatch(Toast.actions.success({ label: 'APPSTUDIO_AppItem_Suspended' }));
|
|
5362
5495
|
}
|
|
5363
5496
|
catch (_) {
|
|
@@ -5368,7 +5501,7 @@ const suspendStudioApp = toolkit.createAsyncThunk('studio/suspendStudioApp', ({
|
|
|
5368
5501
|
const restartStudioApp = toolkit.createAsyncThunk('studio/restartStudioApp', ({ idApp }, { extra, rejectWithValue, dispatch }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5369
5502
|
const jApi = extra.jApi;
|
|
5370
5503
|
try {
|
|
5371
|
-
yield jApi.application.
|
|
5504
|
+
yield jApi.application.studioRestart(idApp);
|
|
5372
5505
|
dispatch(Toast.actions.success({ label: 'APPSTUDIO_AppItem_Restarted' }));
|
|
5373
5506
|
}
|
|
5374
5507
|
catch (_) {
|
|
@@ -5394,7 +5527,7 @@ const cloneStudioApp = toolkit.createAsyncThunk('studio/cloneStudioApp', ({ idAp
|
|
|
5394
5527
|
const [clonedStudioApp, newAppId] = cloneStudioAppFromExistingApp(existingStudioApp, currentUser);
|
|
5395
5528
|
const clonedStudioAppReady = JSON.stringify(clonedStudioApp);
|
|
5396
5529
|
try {
|
|
5397
|
-
yield jApi.application.
|
|
5530
|
+
yield jApi.application.studioSave(newAppId, clonedStudioAppReady, 'saved');
|
|
5398
5531
|
dispatch(Toast.actions.success({ label: 'APPSTUDIO_AppItem_Cloned' }));
|
|
5399
5532
|
return clonedStudioApp;
|
|
5400
5533
|
}
|
|
@@ -5415,7 +5548,7 @@ const createInWorkStudioApp = toolkit.createAsyncThunk('studio/createInWorkStudi
|
|
|
5415
5548
|
const [clonedStudioApp, newAppId] = cloneStudioAppFromExistingApp(existingStudioApp, currentUser, true);
|
|
5416
5549
|
const clonedStudioAppReady = JSON.stringify(clonedStudioApp);
|
|
5417
5550
|
try {
|
|
5418
|
-
yield jApi.application.
|
|
5551
|
+
yield jApi.application.studioSave(newAppId, clonedStudioAppReady, 'saved');
|
|
5419
5552
|
dispatch(Toast.actions.success({ label: 'APPSTUDIO_AppItem_CreateInWork' }));
|
|
5420
5553
|
return clonedStudioApp;
|
|
5421
5554
|
}
|
|
@@ -5644,6 +5777,7 @@ exports.Application = Application;
|
|
|
5644
5777
|
exports.AssetReservation = AssetReservation;
|
|
5645
5778
|
exports.Bookmark = Bookmark;
|
|
5646
5779
|
exports.Comment = Comment;
|
|
5780
|
+
exports.ContentReport = ContentReport;
|
|
5647
5781
|
exports.ExtraAppFieldsItemViews = ExtraAppFieldsItemViews;
|
|
5648
5782
|
exports.Faq = Faq;
|
|
5649
5783
|
exports.Hook = Hook;
|
|
@@ -5669,6 +5803,7 @@ exports.adminLogsReducer = adminLogsReducer;
|
|
|
5669
5803
|
exports.adminLogsSlice = adminLogsSlice;
|
|
5670
5804
|
exports.animationsReducer = animationsReducer;
|
|
5671
5805
|
exports.animationsSlice = animationsSlice;
|
|
5806
|
+
exports.contentReportSlice = contentReportSlice;
|
|
5672
5807
|
exports.fetchMediaLibraryConfig = fetchMediaLibraryConfig;
|
|
5673
5808
|
exports.fetchMediaLibraryFilesStats = fetchMediaLibraryFilesStats;
|
|
5674
5809
|
exports.fetchMediaLibraryFolders = fetchMediaLibraryFolders;
|
|
@@ -5676,12 +5811,14 @@ exports.fetchMediaLibraryFoldersStats = fetchMediaLibraryFoldersStats;
|
|
|
5676
5811
|
exports.fetchMediaLibraryStats = fetchMediaLibraryStats;
|
|
5677
5812
|
exports.fetchMediaLibraryUnclassifiedFiles = fetchMediaLibraryUnclassifiedFiles;
|
|
5678
5813
|
exports.fetchPads = fetchPads;
|
|
5814
|
+
exports.fetchReports = fetchReports;
|
|
5679
5815
|
exports.jland = jland;
|
|
5680
5816
|
exports.magicPadSlice = magicPadSlice;
|
|
5681
5817
|
exports.mediaLibraryReducer = mediaLibraryReducer;
|
|
5682
5818
|
exports.mediaLibrarySlice = mediaLibrarySlice;
|
|
5683
5819
|
exports.slice = slice$1;
|
|
5684
5820
|
exports.studio = studio;
|
|
5821
|
+
exports.updateStatus = updateStatus;
|
|
5685
5822
|
exports.updateWidgetContent = updateWidgetContent;
|
|
5686
5823
|
exports.viewsList = viewsList;
|
|
5687
5824
|
//# sourceMappingURL=cjs.js.map
|