jamespot-front-business 1.1.52 → 1.1.53
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/README-internal.md +3 -4
- package/dist/cjs.js +138 -116
- package/dist/cjs.js.map +1 -1
- package/dist/esm.js +139 -112
- package/dist/esm.js.map +1 -1
- package/dist/types.d.ts +426 -505
- package/package.json +2 -2
- package/tsconfig.json +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,78 +1,12 @@
|
|
|
1
|
+
import * as jamespot_user_api from 'jamespot-user-api';
|
|
2
|
+
import { AnimationConfigurationType, ApplicationType, BookableAssetList, AssetReservationConfiguration, ReservationList, jCommentList, BookmarkRawList, FaqHookProperties, FaqAccess, ExtendedFaqCategory, FaqList, HookListType, AudienceAutocomplete, JLandMap, AdminLicensesNotAssigned, jArticleView, Filters, Orders, PagingResults, MediaLibraryList, MediaLibraryStats, MediaLibraryFolderStats, MediaLibraryFilesStats, ApiPagingResults, ApiWrapper, Model as Model$1, NetworkType, WedocFileType, jUserLittle, TVChannelList, TinyMCECommonOptions, jUserList, WidgetKeys, WidgetDefinitionProps, WidgetWrapperProps, WidgetTypeKeys, CombinedWidgetContent, WidgetsState, jObjectLittle, WidgetVector, WidgetStateProps, WidgetsRootState, JamespotUserApi, StudioApplicationBase, jTaxonomyLittle } from 'jamespot-user-api';
|
|
1
3
|
import * as redux from 'redux';
|
|
2
4
|
import { Dispatch as Dispatch$1 } from 'redux';
|
|
3
|
-
import * as jamespot_user_api from 'jamespot-user-api';
|
|
4
|
-
import { AnimationConfigurationType, ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, StudioApplicationBase, jTaxonomyLittle, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, FaqAccess, ExtendedFaqCategory, FaqList, HookListType, JLandMap, AdminLicensesNotAssigned, jArticleView, Filters, Orders, PagingResults, MediaLibraryList, MediaLibraryStats, MediaLibraryFolderStats, MediaLibraryFilesStats, ApiPagingResults, ApiWrapper, Model as Model$1, NetworkType, WedocFileType, jUserLittle, TVChannelList, TinyMCECommonOptions, jUserList, WidgetKeys, WidgetDefinitionProps, WidgetWrapperProps, WidgetTypeKeys, CombinedWidgetContent, WidgetsState, jObjectLittle, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
|
|
5
5
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
6
|
-
import { EntityState, Dispatch,
|
|
6
|
+
import { EntityState, Dispatch, PayloadAction, Action } from '@reduxjs/toolkit';
|
|
7
7
|
import * as _reduxjs_toolkit_dist_tsHelpers from '@reduxjs/toolkit/dist/tsHelpers';
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { Loading as Loading$1 } from 'src/types/utils';
|
|
10
|
-
import { MapCreationFront as MapCreationFront$1 } from 'src/types';
|
|
11
9
|
import * as zod from 'zod';
|
|
12
|
-
import { jCommentList } from 'jamespot-user-api/lib/src/types/comment';
|
|
13
|
-
|
|
14
|
-
declare type ToastType = 'success' | 'warning' | 'error';
|
|
15
|
-
declare type ToastRootState = {
|
|
16
|
-
toasts: EntityState<ToastEntity>;
|
|
17
|
-
};
|
|
18
|
-
declare type intlValuesType = Record<string, string | number | boolean | null | undefined | Date | React.ReactElement | ((children: string) => React.ReactElement)>;
|
|
19
|
-
declare type ToastEntity = {
|
|
20
|
-
id: string;
|
|
21
|
-
label: string | {
|
|
22
|
-
id: string;
|
|
23
|
-
values: intlValuesType;
|
|
24
|
-
};
|
|
25
|
-
description?: string | {
|
|
26
|
-
id: string;
|
|
27
|
-
values: intlValuesType;
|
|
28
|
-
};
|
|
29
|
-
timeout: number;
|
|
30
|
-
type: ToastType;
|
|
31
|
-
};
|
|
32
|
-
declare const actions: {
|
|
33
|
-
addMessage: ({ id, ...toast }: Toast, type?: ToastType, timeout?: number) => (dispatch: Dispatch) => string;
|
|
34
|
-
success: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
35
|
-
warning: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
36
|
-
error: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
37
|
-
};
|
|
38
|
-
declare type Toast = {
|
|
39
|
-
id?: string;
|
|
40
|
-
label: string | {
|
|
41
|
-
id: string;
|
|
42
|
-
values: intlValuesType;
|
|
43
|
-
};
|
|
44
|
-
description?: string | {
|
|
45
|
-
id: string;
|
|
46
|
-
values: intlValuesType;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
declare const Toast: {
|
|
50
|
-
slice: _reduxjs_toolkit.Slice<EntityState<ToastEntity>, {
|
|
51
|
-
addOne: {
|
|
52
|
-
<S extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S, EntityState<ToastEntity>, S>, entity: ToastEntity): S;
|
|
53
|
-
<S_1 extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S_1, EntityState<ToastEntity>, S_1>, action: {
|
|
54
|
-
payload: ToastEntity;
|
|
55
|
-
type: string;
|
|
56
|
-
}): S_1;
|
|
57
|
-
};
|
|
58
|
-
removeOne: {
|
|
59
|
-
<S_2 extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S_2, EntityState<ToastEntity>, S_2>, key: _reduxjs_toolkit.EntityId): S_2;
|
|
60
|
-
<S_3 extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S_3, EntityState<ToastEntity>, S_3>, key: {
|
|
61
|
-
payload: _reduxjs_toolkit.EntityId;
|
|
62
|
-
type: string;
|
|
63
|
-
}): S_3;
|
|
64
|
-
};
|
|
65
|
-
}, "toasts">;
|
|
66
|
-
actions: {
|
|
67
|
-
addOne: _reduxjs_toolkit.ActionCreatorWithPayload<ToastEntity, "toasts/addOne">;
|
|
68
|
-
removeOne: _reduxjs_toolkit.ActionCreatorWithPayload<_reduxjs_toolkit.EntityId, "toasts/removeOne">;
|
|
69
|
-
addMessage: ({ id, ...toast }: Toast, type?: ToastType, timeout?: number) => (dispatch: Dispatch) => string;
|
|
70
|
-
success: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
71
|
-
warning: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
72
|
-
error: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
73
|
-
};
|
|
74
|
-
selectors: _reduxjs_toolkit.EntitySelectors<ToastEntity, ToastRootState>;
|
|
75
|
-
};
|
|
76
10
|
|
|
77
11
|
declare type AnimationSliceRootState = {
|
|
78
12
|
animationConfiguration: AnimationConfigurationType | null;
|
|
@@ -84,87 +18,13 @@ declare type AnimationSliceRootState = {
|
|
|
84
18
|
declare type AnimationsRootState = {
|
|
85
19
|
animations: AnimationSliceRootState;
|
|
86
20
|
};
|
|
21
|
+
|
|
87
22
|
declare const animationsSlice: _reduxjs_toolkit.Slice<AnimationSliceRootState, {}, "animations">;
|
|
88
|
-
declare const fetchCurrentAnimation: _reduxjs_toolkit.AsyncThunk<Omit<AnimationSliceRootState, "isToggleLoading">, void, {
|
|
89
|
-
dispatch: any;
|
|
90
|
-
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & AnimationsRootState;
|
|
91
|
-
extra: {
|
|
92
|
-
jApi: jamespot_user_api.JamespotUserApi;
|
|
93
|
-
};
|
|
94
|
-
rejectValue: {
|
|
95
|
-
error: number;
|
|
96
|
-
errorMsg: string;
|
|
97
|
-
};
|
|
98
|
-
serializedErrorType?: unknown;
|
|
99
|
-
pendingMeta?: unknown;
|
|
100
|
-
fulfilledMeta?: unknown;
|
|
101
|
-
rejectedMeta?: unknown;
|
|
102
|
-
}>;
|
|
103
|
-
declare const fetchCurrentAnimationApp: _reduxjs_toolkit.AsyncThunk<AnimationConfigurationType | null, void, {
|
|
104
|
-
dispatch: any;
|
|
105
|
-
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & AnimationsRootState;
|
|
106
|
-
extra: {
|
|
107
|
-
jApi: jamespot_user_api.JamespotUserApi;
|
|
108
|
-
};
|
|
109
|
-
rejectValue: {
|
|
110
|
-
error: number;
|
|
111
|
-
errorMsg: string;
|
|
112
|
-
};
|
|
113
|
-
serializedErrorType?: unknown;
|
|
114
|
-
pendingMeta?: unknown;
|
|
115
|
-
fulfilledMeta?: unknown;
|
|
116
|
-
rejectedMeta?: unknown;
|
|
117
|
-
}>;
|
|
118
|
-
declare const deleteCurrentAnimation: _reduxjs_toolkit.AsyncThunk<void, void, {
|
|
119
|
-
dispatch: any;
|
|
120
|
-
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & AnimationsRootState;
|
|
121
|
-
extra: {
|
|
122
|
-
jApi: jamespot_user_api.JamespotUserApi;
|
|
123
|
-
};
|
|
124
|
-
rejectValue: {
|
|
125
|
-
error: number;
|
|
126
|
-
errorMsg: string;
|
|
127
|
-
};
|
|
128
|
-
serializedErrorType?: unknown;
|
|
129
|
-
pendingMeta?: unknown;
|
|
130
|
-
fulfilledMeta?: unknown;
|
|
131
|
-
rejectedMeta?: unknown;
|
|
132
|
-
}>;
|
|
133
|
-
declare const saveCurrentAnimation: _reduxjs_toolkit.AsyncThunk<void, AnimationConfigurationType, {
|
|
134
|
-
dispatch: any;
|
|
135
|
-
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & AnimationsRootState;
|
|
136
|
-
extra: {
|
|
137
|
-
jApi: jamespot_user_api.JamespotUserApi;
|
|
138
|
-
};
|
|
139
|
-
rejectValue: {
|
|
140
|
-
error: number;
|
|
141
|
-
errorMsg: string;
|
|
142
|
-
};
|
|
143
|
-
serializedErrorType?: unknown;
|
|
144
|
-
pendingMeta?: unknown;
|
|
145
|
-
fulfilledMeta?: unknown;
|
|
146
|
-
rejectedMeta?: unknown;
|
|
147
|
-
}>;
|
|
148
|
-
declare const toggleAnimationIsActive: _reduxjs_toolkit.AsyncThunk<void, void, {
|
|
149
|
-
dispatch: any;
|
|
150
|
-
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & AnimationsRootState;
|
|
151
|
-
extra: {
|
|
152
|
-
jApi: jamespot_user_api.JamespotUserApi;
|
|
153
|
-
};
|
|
154
|
-
rejectValue: {
|
|
155
|
-
error: number;
|
|
156
|
-
errorMsg: string;
|
|
157
|
-
};
|
|
158
|
-
serializedErrorType?: unknown;
|
|
159
|
-
pendingMeta?: unknown;
|
|
160
|
-
fulfilledMeta?: unknown;
|
|
161
|
-
rejectedMeta?: unknown;
|
|
162
|
-
}>;
|
|
163
23
|
declare const animationsReducer: redux.Reducer<AnimationSliceRootState, redux.AnyAction>;
|
|
164
24
|
declare const Animations: {
|
|
165
25
|
slice: _reduxjs_toolkit.Slice<AnimationSliceRootState, {}, "animations">;
|
|
166
26
|
actions: {
|
|
167
|
-
saveCurrentAnimation: _reduxjs_toolkit.AsyncThunk<void, AnimationConfigurationType, {
|
|
27
|
+
saveCurrentAnimation: _reduxjs_toolkit.AsyncThunk<void, jamespot_user_api.AnimationConfigurationType, {
|
|
168
28
|
dispatch: any;
|
|
169
29
|
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & AnimationsRootState;
|
|
170
30
|
extra: {
|
|
@@ -224,7 +84,7 @@ declare const Animations: {
|
|
|
224
84
|
fulfilledMeta?: unknown;
|
|
225
85
|
rejectedMeta?: unknown;
|
|
226
86
|
}>;
|
|
227
|
-
fetchCurrentAnimationApp: _reduxjs_toolkit.AsyncThunk<AnimationConfigurationType | null, void, {
|
|
87
|
+
fetchCurrentAnimationApp: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.AnimationConfigurationType | null, void, {
|
|
228
88
|
dispatch: any;
|
|
229
89
|
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & AnimationsRootState;
|
|
230
90
|
extra: {
|
|
@@ -241,10 +101,10 @@ declare const Animations: {
|
|
|
241
101
|
}>;
|
|
242
102
|
};
|
|
243
103
|
selectors: {
|
|
244
|
-
selectCurrentAnimation: (state: AnimationsRootState) => AnimationConfigurationType | null;
|
|
104
|
+
selectCurrentAnimation: (state: AnimationsRootState) => jamespot_user_api.AnimationConfigurationType | null;
|
|
245
105
|
isActiveAnimation: (state: AnimationsRootState) => boolean;
|
|
246
106
|
isToggleLoading: (state: AnimationsRootState) => boolean;
|
|
247
|
-
selectAnimationConfigurationApp: (state: AnimationsRootState) => AnimationConfigurationType | null | undefined;
|
|
107
|
+
selectAnimationConfigurationApp: (state: AnimationsRootState) => jamespot_user_api.AnimationConfigurationType | null | undefined;
|
|
248
108
|
};
|
|
249
109
|
getAnimationsRTHandlers: (dispatch: redux.Dispatch<any>) => jamespot_user_api.RTMessageHandler<"ANIMATIONS", "update" | "add" | "delete" | "toggle" | "getAnimationActive">[];
|
|
250
110
|
};
|
|
@@ -286,16 +146,6 @@ declare const Application: {
|
|
|
286
146
|
selectors: _reduxjs_toolkit.EntitySelectors<ApplicationType, ApplicationRootState>;
|
|
287
147
|
};
|
|
288
148
|
|
|
289
|
-
declare type RootState = Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & WidgetsRootState & WidgetsRootState & WedocAppRootState & UserCurrentRootState>;
|
|
290
|
-
declare type RootDispatch = Dispatch$1<Action>;
|
|
291
|
-
declare type ThunkApiConfig<T> = {
|
|
292
|
-
dispatch: any;
|
|
293
|
-
state: RootState & T;
|
|
294
|
-
extra: {
|
|
295
|
-
jApi: JamespotUserApi;
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
|
|
299
149
|
declare type ReservationForm = {
|
|
300
150
|
date: string;
|
|
301
151
|
hourStart: string;
|
|
@@ -304,349 +154,46 @@ declare type ReservationForm = {
|
|
|
304
154
|
description?: string;
|
|
305
155
|
};
|
|
306
156
|
|
|
307
|
-
declare type
|
|
308
|
-
|
|
309
|
-
type: string;
|
|
310
|
-
flavor: string;
|
|
311
|
-
url: string;
|
|
312
|
-
audience: Partial<AudienceAutocomplete>[];
|
|
313
|
-
illustration: string;
|
|
314
|
-
assignLicense: boolean;
|
|
157
|
+
declare type Loading = {
|
|
158
|
+
loading: 'idle' | 'pending';
|
|
315
159
|
};
|
|
316
160
|
|
|
317
|
-
declare
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
};
|
|
321
|
-
declare type StudioAudienceType = typeof AUDIENCE.ALL | typeof AUDIENCE.CUSTOM;
|
|
322
|
-
declare enum StatusType {
|
|
323
|
-
draft = "draft",
|
|
324
|
-
installed = "installed",
|
|
325
|
-
suspended = "suspended"
|
|
326
|
-
}
|
|
327
|
-
declare const APP_STATUS_TYPE: {
|
|
328
|
-
DRAFT: StatusType;
|
|
329
|
-
INSTALLED: StatusType;
|
|
330
|
-
SUSPENDED: StatusType;
|
|
161
|
+
declare type BookableAssetState = Loading & {
|
|
162
|
+
entities: BookableAssetList[];
|
|
163
|
+
nbResults: number;
|
|
331
164
|
};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
interface StudioAppBase extends StudioApplicationBase {
|
|
335
|
-
articlesCount?: number;
|
|
336
|
-
}
|
|
337
|
-
interface StudioApplication {
|
|
338
|
-
idApp: string;
|
|
339
|
-
status: AppStatusType;
|
|
340
|
-
author?: string;
|
|
341
|
-
studioVersion: number;
|
|
342
|
-
manifest: StudioAppManifest;
|
|
343
|
-
inWorkVersion?: StudioApplication;
|
|
344
|
-
fields: AppFieldsFormItem[];
|
|
345
|
-
views: AppViewsFields;
|
|
346
|
-
audience: StudioAudienceType;
|
|
347
|
-
installFor: AppInstallForType[];
|
|
348
|
-
}
|
|
349
|
-
interface StudioAppManifest {
|
|
350
|
-
appShortName: string;
|
|
351
|
-
appName: string;
|
|
352
|
-
description: string;
|
|
353
|
-
author?: string;
|
|
354
|
-
typeLabel: string;
|
|
355
|
-
cssColor: string;
|
|
356
|
-
cssClass: {
|
|
357
|
-
label: string;
|
|
358
|
-
value: string;
|
|
359
|
-
};
|
|
360
|
-
version: number;
|
|
361
|
-
dateCreation: string;
|
|
362
|
-
viewSolr: string;
|
|
363
|
-
checkAccess: boolean;
|
|
364
|
-
accessRightList?: string;
|
|
365
|
-
attrExposed: Array<string>;
|
|
366
|
-
articlesCount?: number;
|
|
367
|
-
}
|
|
368
|
-
interface AppLabelsType {
|
|
369
|
-
label?: AppLabelContentType;
|
|
370
|
-
description?: AppLabelContentType;
|
|
165
|
+
interface BookableAssetRootState {
|
|
166
|
+
bookableAsset: BookableAssetState;
|
|
371
167
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
display?: string;
|
|
168
|
+
declare type Configuration = AssetReservationConfiguration & Loading;
|
|
169
|
+
interface ConfigurationRootState {
|
|
170
|
+
configuration: Configuration;
|
|
376
171
|
}
|
|
377
|
-
declare type
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
};
|
|
382
|
-
declare type AppFieldsFormItem = {
|
|
383
|
-
id: string;
|
|
384
|
-
type: AppFormItemTypes;
|
|
385
|
-
properties?: AppFieldFormProperty[];
|
|
386
|
-
mandatory?: boolean;
|
|
387
|
-
views?: AppViews;
|
|
388
|
-
value?: any;
|
|
389
|
-
isActive?: boolean;
|
|
390
|
-
isFixed?: boolean;
|
|
391
|
-
isOptional?: boolean;
|
|
392
|
-
isLockedValue?: boolean;
|
|
393
|
-
};
|
|
394
|
-
declare type AppViewFieldItem = {
|
|
395
|
-
type: AppFormItemTypes | ExtraAppFieldsItemViews;
|
|
396
|
-
properties: AppFieldFormProperty[];
|
|
397
|
-
isUsed: boolean;
|
|
398
|
-
isOptional: boolean;
|
|
399
|
-
isFixed: boolean;
|
|
400
|
-
isLockedValue: boolean;
|
|
401
|
-
value: any;
|
|
402
|
-
pos: number;
|
|
172
|
+
declare type ReservationState = Loading & {
|
|
173
|
+
entities: ReservationList[];
|
|
174
|
+
nbResults: number;
|
|
175
|
+
form: ReservationForm;
|
|
403
176
|
};
|
|
404
|
-
interface
|
|
405
|
-
|
|
406
|
-
popup: boolean;
|
|
407
|
-
edit: boolean;
|
|
408
|
-
list: boolean;
|
|
409
|
-
filter: boolean;
|
|
410
|
-
view: boolean;
|
|
177
|
+
interface ReservationRootState {
|
|
178
|
+
reservation: ReservationState;
|
|
411
179
|
}
|
|
412
|
-
declare type AppViewsFields = {
|
|
413
|
-
create: AppViewFieldsItems;
|
|
414
|
-
popup: AppViewFieldsItems;
|
|
415
|
-
edit: AppViewFieldsItems;
|
|
416
|
-
list: AppViewFieldsItems;
|
|
417
|
-
filter: AppViewFieldsItems;
|
|
418
|
-
view: AppViewFieldsItems;
|
|
419
|
-
};
|
|
420
|
-
declare type AppViewFieldsItems = {
|
|
421
|
-
[id: string]: AppViewFieldItem;
|
|
422
|
-
};
|
|
423
|
-
declare type ViewName = 'create' | 'popup' | 'edit' | 'list' | 'filter' | 'view';
|
|
424
|
-
declare const viewsList: ViewName[];
|
|
425
|
-
declare enum AppFormItemTypes {
|
|
426
|
-
IMAGE = "IMAGE",
|
|
427
|
-
DESCRIPTION = "DESCRIPTION",
|
|
428
|
-
TEXT = "TEXT",
|
|
429
|
-
TEXTAREA = "TEXTAREA",
|
|
430
|
-
TEXTAREAHTML = "TEXTAREAHTML",
|
|
431
|
-
DATE = "DATE",
|
|
432
|
-
DATETIME = "DATETIME",
|
|
433
|
-
NUMBER = "NUMBER",
|
|
434
|
-
URL = "URL",
|
|
435
|
-
EMAIL = "EMAIL",
|
|
436
|
-
SELECT = "SELECT",
|
|
437
|
-
CHECKBOX = "CHECKBOX",
|
|
438
|
-
TOGGLE = "TOGGLE",
|
|
439
|
-
RADIO = "RADIO",
|
|
440
|
-
TAGS = "TAGS",
|
|
441
|
-
ADDFILEATTACHMENT = "ADDFILEATTACHMENT",
|
|
442
|
-
CODEHTML = "CODEHTML",
|
|
443
|
-
USERLINK = "USERLINK",
|
|
444
|
-
CONTENTLINK = "CONTENTLINK",
|
|
445
|
-
RANGE = "RANGE"
|
|
446
|
-
}
|
|
447
|
-
declare enum ExtraAppFieldsItemViews {
|
|
448
|
-
TITLE = "TITLE",
|
|
449
|
-
USER = "USER",
|
|
450
|
-
PUBLISHTO = "PUBLISHTO",
|
|
451
|
-
SENDALERTTOSUBSCRIBERS = "SENDALERTTOSUBSCRIBERS",
|
|
452
|
-
RECEIVEACOPY = "RECEIVEACOPY",
|
|
453
|
-
CREATIONDATE = "CREATIONDATE"
|
|
454
|
-
}
|
|
455
|
-
declare type CheckBoxOption = {
|
|
456
|
-
label: string;
|
|
457
|
-
value: any;
|
|
458
|
-
};
|
|
459
|
-
declare type AppFieldFormProperty = {
|
|
460
|
-
propertyType: AppFieldFormPropertyTypes;
|
|
461
|
-
isRequired?: boolean;
|
|
462
|
-
checkBoxOptions?: CheckBoxOption[];
|
|
463
|
-
value?: any;
|
|
464
|
-
isOptionsEditorEnhanced?: boolean;
|
|
465
|
-
};
|
|
466
|
-
declare enum AppFieldFormPropertyTypes {
|
|
467
|
-
LABEL = "label",
|
|
468
|
-
DESCRIPTION = "description",
|
|
469
|
-
RICHTEXT = "richtext",
|
|
470
|
-
CHECKBOX = "checkbox",
|
|
471
|
-
OPTIONS_EDITOR = "options_editor",
|
|
472
|
-
TAXONOMY = "taxonomy",
|
|
473
|
-
CONTENTTYPE = "contenttype"
|
|
474
|
-
}
|
|
475
|
-
declare const AppFormUniqueList: AppFormItemTypes[];
|
|
476
|
-
declare const AppFormBannedFromViews: Map<AppFormItemTypes, ViewName[]>;
|
|
477
|
-
declare type MappedExtraFieldsWithView = {
|
|
478
|
-
fixed: ExtraAppFieldsItemViews[];
|
|
479
|
-
optional: ExtraAppFieldsItemViews[];
|
|
480
|
-
};
|
|
481
|
-
declare const MapExtraFieldsWithView: {
|
|
482
|
-
[k: string]: MappedExtraFieldsWithView;
|
|
483
|
-
};
|
|
484
|
-
declare type AppFieldView = {
|
|
485
|
-
fieldIdRef: string;
|
|
486
|
-
value: any;
|
|
487
|
-
};
|
|
488
|
-
interface AppTypeServerModel {
|
|
489
|
-
typeName: string;
|
|
490
|
-
typeLabel: string;
|
|
491
|
-
author: string;
|
|
492
|
-
typeLabelPlural: string;
|
|
493
|
-
typeLabelLinkSingular: string;
|
|
494
|
-
typeLabelLinkPlural: string;
|
|
495
|
-
buttonLabel: string;
|
|
496
|
-
buttonLinkLabel: string;
|
|
497
|
-
buttonLinkUrl: string;
|
|
498
|
-
cssClass: string;
|
|
499
|
-
cssColor: string;
|
|
500
|
-
searchTab: string;
|
|
501
|
-
searchTabLabel: string;
|
|
502
|
-
jadAction: string;
|
|
503
|
-
supportedTypes: string;
|
|
504
|
-
mainType: string;
|
|
505
|
-
classImpl: string;
|
|
506
|
-
classCodeLocation: string;
|
|
507
|
-
capture: string;
|
|
508
|
-
tables: Array<AppTableModel>;
|
|
509
|
-
displays?: AppServerDisplaysModel;
|
|
510
|
-
}
|
|
511
|
-
interface AppTableModel {
|
|
512
|
-
tableType: string;
|
|
513
|
-
typeSqlName: string;
|
|
514
|
-
sqlNameColumn: string;
|
|
515
|
-
sqlValueColumn: string;
|
|
516
|
-
joinFieldName: string;
|
|
517
|
-
tablename: string;
|
|
518
|
-
idSqlName: string;
|
|
519
|
-
idFieldName: string;
|
|
520
|
-
attributes: Array<AppTableAttributesModel>;
|
|
521
|
-
}
|
|
522
|
-
interface AppTableAttributesModel {
|
|
523
|
-
attrType: string;
|
|
524
|
-
formatSolr: string;
|
|
525
|
-
label: string;
|
|
526
|
-
description: string;
|
|
527
|
-
mandatory: boolean;
|
|
528
|
-
taxonomy: jTaxonomyLittle;
|
|
529
|
-
display: boolean;
|
|
530
|
-
teaser: boolean;
|
|
531
|
-
col: string;
|
|
532
|
-
supportedTypes: string;
|
|
533
|
-
column: string;
|
|
534
|
-
name: string;
|
|
535
|
-
widget: AppAttrWidgetModel;
|
|
536
|
-
solr: AppAttrSolrModel;
|
|
537
|
-
}
|
|
538
|
-
interface AppAttrWidgetModel {
|
|
539
|
-
type: string;
|
|
540
|
-
typeFile: string;
|
|
541
|
-
format: string;
|
|
542
|
-
multiple: string;
|
|
543
|
-
digits: string;
|
|
544
|
-
params: any;
|
|
545
|
-
options: Array<string>;
|
|
546
|
-
}
|
|
547
|
-
interface AppAttrSolrModel {
|
|
548
|
-
type: string;
|
|
549
|
-
indexed: boolean;
|
|
550
|
-
stored: boolean;
|
|
551
|
-
required: boolean;
|
|
552
|
-
multiValued: boolean;
|
|
553
|
-
searchable: boolean;
|
|
554
|
-
used: boolean;
|
|
555
|
-
name: string;
|
|
556
|
-
}
|
|
557
|
-
interface AppServerDisplaysModel {
|
|
558
|
-
create?: AppServerDisplayModel;
|
|
559
|
-
'create-popup': AppServerDisplayModel;
|
|
560
|
-
edit?: AppServerDisplayModel;
|
|
561
|
-
list?: AppServerDisplayModel;
|
|
562
|
-
display?: AppServerDisplayModel;
|
|
563
|
-
}
|
|
564
|
-
interface AppServerDisplayModel {
|
|
565
|
-
type: string;
|
|
566
|
-
view: string;
|
|
567
|
-
mode: string;
|
|
568
|
-
format: string;
|
|
569
|
-
composants: Array<AppServerViewModel>;
|
|
570
|
-
}
|
|
571
|
-
interface AppServerViewModel {
|
|
572
|
-
element: 'attr' | 'html';
|
|
573
|
-
composants: [];
|
|
574
|
-
name?: string;
|
|
575
|
-
format?: string;
|
|
576
|
-
html?: string;
|
|
577
|
-
}
|
|
578
|
-
declare type AppInstallForType = Partial<{
|
|
579
|
-
id: string;
|
|
580
|
-
uri: string;
|
|
581
|
-
shortUri: string;
|
|
582
|
-
title: string;
|
|
583
|
-
name: string;
|
|
584
|
-
mainType: string;
|
|
585
|
-
type: string;
|
|
586
|
-
label: string;
|
|
587
|
-
cssClass: string;
|
|
588
|
-
cssColor: string;
|
|
589
|
-
class: string;
|
|
590
|
-
Pseudo: string;
|
|
591
|
-
}>;
|
|
592
|
-
declare const AppColumnsDefaultTypes: (AppFormItemTypes | ExtraAppFieldsItemViews)[];
|
|
593
|
-
declare const AppFormPrimaryList: AppFormItemTypes[];
|
|
594
|
-
declare type TaxonomyPropertyValue = Pick<jTaxonomyLittle, 'type' | 'id' | 'title'>;
|
|
595
|
-
declare type JType = {
|
|
596
|
-
cssClass: string;
|
|
597
|
-
cssColor: string;
|
|
598
|
-
label: string;
|
|
599
|
-
type: string;
|
|
600
|
-
mainType: string;
|
|
601
|
-
};
|
|
602
|
-
declare type ContentTypePropertyValue = Pick<JType, 'type' | 'label'>;
|
|
603
|
-
declare const AppFormFixedList: ExtraAppFieldsItemViews[];
|
|
604
|
-
declare const AppFormNoAsFieldList: Array<ExtraAppFieldsItemViews | AppFormItemTypes>;
|
|
605
|
-
declare const AppFormFieldOnlyInView: AppFormItemTypes[];
|
|
606
|
-
declare const AppFormNonPrimaryList: (AppFormItemTypes | ExtraAppFieldsItemViews)[];
|
|
607
|
-
|
|
608
|
-
declare type Loading = {
|
|
609
|
-
loading: 'idle' | 'pending';
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
declare type ReservationState = Loading & {
|
|
613
|
-
entities: ReservationList[];
|
|
614
|
-
nbResults: number;
|
|
615
|
-
form: ReservationForm;
|
|
616
|
-
};
|
|
617
|
-
interface ReservationRootState {
|
|
618
|
-
reservation: ReservationState;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
declare type BookableAssetState = Loading & {
|
|
622
|
-
entities: BookableAssetList[];
|
|
623
|
-
nbResults: number;
|
|
624
|
-
};
|
|
625
|
-
interface BookableAssetRootState {
|
|
626
|
-
bookableAsset: BookableAssetState;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
declare type Configuration = AssetReservationConfiguration & Loading;
|
|
630
|
-
interface ConfigurationRootState {
|
|
631
|
-
configuration: Configuration;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
180
|
declare type AssetReservationRootState = {
|
|
635
181
|
assetReservation: BookableAssetRootState & ConfigurationRootState & ReservationRootState;
|
|
636
182
|
};
|
|
183
|
+
|
|
637
184
|
declare const AssetReservation: {
|
|
638
185
|
slice: {
|
|
639
186
|
name: "assetReservation";
|
|
640
187
|
reducer: redux.Reducer<redux.CombinedState<{
|
|
641
188
|
bookableAsset: BookableAssetState;
|
|
642
|
-
configuration:
|
|
189
|
+
configuration: Configuration;
|
|
643
190
|
reservation: ReservationState;
|
|
644
191
|
}>, redux.AnyAction>;
|
|
645
192
|
};
|
|
646
193
|
actions: {
|
|
647
194
|
fetchBookableAsset: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.ApiPagingResults<jamespot_user_api.BookableAssetList, jamespot_user_api.BaseMessages>, void, {
|
|
648
195
|
dispatch: any;
|
|
649
|
-
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> &
|
|
196
|
+
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & AssetReservationRootState;
|
|
650
197
|
extra: {
|
|
651
198
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
652
199
|
};
|
|
@@ -658,7 +205,7 @@ declare const AssetReservation: {
|
|
|
658
205
|
}>;
|
|
659
206
|
fetchConfiguration: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.ApiWrapper<jamespot_user_api.AssetReservationConfiguration, jamespot_user_api.BaseMessages>, void, {
|
|
660
207
|
dispatch: any;
|
|
661
|
-
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> &
|
|
208
|
+
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & AssetReservationRootState;
|
|
662
209
|
extra: {
|
|
663
210
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
664
211
|
};
|
|
@@ -670,7 +217,7 @@ declare const AssetReservation: {
|
|
|
670
217
|
}>;
|
|
671
218
|
fetchReservation: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.ApiPagingResults<jamespot_user_api.ReservationList, jamespot_user_api.BaseMessages>, "history" | undefined, {
|
|
672
219
|
dispatch: any;
|
|
673
|
-
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> &
|
|
220
|
+
state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & jamespot_user_api.WidgetsRootState & WedocAppRootState & UserCurrentRootState> & AssetReservationRootState;
|
|
674
221
|
extra: {
|
|
675
222
|
jApi: jamespot_user_api.JamespotUserApi;
|
|
676
223
|
};
|
|
@@ -685,7 +232,7 @@ declare const AssetReservation: {
|
|
|
685
232
|
removeReservation: _reduxjs_toolkit.ActionCreatorWithPayload<number, "reservation/removeReservation">;
|
|
686
233
|
};
|
|
687
234
|
selectors: {
|
|
688
|
-
configuration: (state: AssetReservationRootState) =>
|
|
235
|
+
configuration: (state: AssetReservationRootState) => Configuration;
|
|
689
236
|
bookableAssetEntities: (state: AssetReservationRootState) => jamespot_user_api.BookableAssetList[];
|
|
690
237
|
bookableAssetLoading: (state: AssetReservationRootState) => "idle" | "pending";
|
|
691
238
|
reservationEntities: (state: AssetReservationRootState) => jamespot_user_api.ReservationList[];
|
|
@@ -701,7 +248,7 @@ declare type CommentsList = {
|
|
|
701
248
|
idArticle: number;
|
|
702
249
|
list: jCommentList[];
|
|
703
250
|
};
|
|
704
|
-
declare type CommentListState = Loading
|
|
251
|
+
declare type CommentListState = Loading & {
|
|
705
252
|
comments: Array<CommentsList>;
|
|
706
253
|
};
|
|
707
254
|
declare type CommentListRootState = {
|
|
@@ -749,26 +296,89 @@ interface bookmarkEditRootState {
|
|
|
749
296
|
bookmarkEdit: bookmarkEditState;
|
|
750
297
|
}
|
|
751
298
|
|
|
752
|
-
declare type
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
status: 'success' | 'error' | undefined;
|
|
299
|
+
declare type ToastType = 'success' | 'warning' | 'error';
|
|
300
|
+
declare type ToastRootState = {
|
|
301
|
+
toasts: EntityState<ToastEntity>;
|
|
302
|
+
};
|
|
303
|
+
declare type intlValuesType = Record<string, string | number | boolean | null | undefined | Date | React.ReactElement | ((children: string) => React.ReactElement)>;
|
|
304
|
+
declare type ToastEntity = {
|
|
305
|
+
id: string;
|
|
306
|
+
label: string | {
|
|
307
|
+
id: string;
|
|
308
|
+
values: intlValuesType;
|
|
763
309
|
};
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
310
|
+
description?: string | {
|
|
311
|
+
id: string;
|
|
312
|
+
values: intlValuesType;
|
|
313
|
+
};
|
|
314
|
+
timeout: number;
|
|
315
|
+
type: ToastType;
|
|
767
316
|
};
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
317
|
+
declare const actions: {
|
|
318
|
+
addMessage: ({ id, ...toast }: Toast, type?: ToastType, timeout?: number) => (dispatch: Dispatch) => string;
|
|
319
|
+
success: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
320
|
+
warning: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
321
|
+
error: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
322
|
+
};
|
|
323
|
+
declare type Toast = {
|
|
324
|
+
id?: string;
|
|
325
|
+
label: string | {
|
|
326
|
+
id: string;
|
|
327
|
+
values: intlValuesType;
|
|
328
|
+
};
|
|
329
|
+
description?: string | {
|
|
330
|
+
id: string;
|
|
331
|
+
values: intlValuesType;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
declare const Toast: {
|
|
335
|
+
slice: _reduxjs_toolkit.Slice<EntityState<ToastEntity>, {
|
|
336
|
+
addOne: {
|
|
337
|
+
<S extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S, EntityState<ToastEntity>, S>, entity: ToastEntity): S;
|
|
338
|
+
<S_1 extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S_1, EntityState<ToastEntity>, S_1>, action: {
|
|
339
|
+
payload: ToastEntity;
|
|
340
|
+
type: string;
|
|
341
|
+
}): S_1;
|
|
342
|
+
};
|
|
343
|
+
removeOne: {
|
|
344
|
+
<S_2 extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S_2, EntityState<ToastEntity>, S_2>, key: _reduxjs_toolkit.EntityId): S_2;
|
|
345
|
+
<S_3 extends EntityState<ToastEntity>>(state: _reduxjs_toolkit_dist_tsHelpers.IsAny<S_3, EntityState<ToastEntity>, S_3>, key: {
|
|
346
|
+
payload: _reduxjs_toolkit.EntityId;
|
|
347
|
+
type: string;
|
|
348
|
+
}): S_3;
|
|
349
|
+
};
|
|
350
|
+
}, "toasts">;
|
|
351
|
+
actions: {
|
|
352
|
+
addOne: _reduxjs_toolkit.ActionCreatorWithPayload<ToastEntity, "toasts/addOne">;
|
|
353
|
+
removeOne: _reduxjs_toolkit.ActionCreatorWithPayload<_reduxjs_toolkit.EntityId, "toasts/removeOne">;
|
|
354
|
+
addMessage: ({ id, ...toast }: Toast, type?: ToastType, timeout?: number) => (dispatch: Dispatch) => string;
|
|
355
|
+
success: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
356
|
+
warning: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
357
|
+
error: (toast: Toast, timeout?: number) => (dispatch: Dispatch) => string;
|
|
358
|
+
};
|
|
359
|
+
selectors: _reduxjs_toolkit.EntitySelectors<ToastEntity, ToastRootState>;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
declare type bookmarkListState = Loading & {
|
|
363
|
+
bookmarks: BookmarkRawList[];
|
|
364
|
+
nbResults: number;
|
|
365
|
+
status: 'success' | 'error' | undefined;
|
|
366
|
+
isInitialized: boolean;
|
|
367
|
+
add: Record<string, Loading & {
|
|
368
|
+
status: 'success' | 'error' | undefined;
|
|
369
|
+
id?: number;
|
|
370
|
+
}>;
|
|
371
|
+
move: Loading & {
|
|
372
|
+
status: 'success' | 'error' | undefined;
|
|
373
|
+
};
|
|
374
|
+
delete: Record<string, Loading & {
|
|
375
|
+
status: 'success' | 'error' | undefined;
|
|
376
|
+
}>;
|
|
377
|
+
};
|
|
378
|
+
interface bookmarkListRootState {
|
|
379
|
+
bookmarkList: bookmarkListState;
|
|
380
|
+
}
|
|
381
|
+
|
|
772
382
|
declare type BookmarkRootState = {
|
|
773
383
|
bookmark: bookmarkListRootState & bookmarkEditRootState;
|
|
774
384
|
};
|
|
@@ -1442,8 +1052,18 @@ declare const Hook: {
|
|
|
1442
1052
|
};
|
|
1443
1053
|
};
|
|
1444
1054
|
|
|
1445
|
-
declare type
|
|
1446
|
-
|
|
1055
|
+
declare type MapCreationFront = {
|
|
1056
|
+
title: string;
|
|
1057
|
+
type: string;
|
|
1058
|
+
flavor: string;
|
|
1059
|
+
url: string;
|
|
1060
|
+
audience: Partial<AudienceAutocomplete>[];
|
|
1061
|
+
illustration: string;
|
|
1062
|
+
assignLicense: boolean;
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1065
|
+
declare type MapCreateState = Loading & {
|
|
1066
|
+
map: MapCreationFront;
|
|
1447
1067
|
status: 'success' | 'error' | undefined;
|
|
1448
1068
|
msg: string | undefined;
|
|
1449
1069
|
};
|
|
@@ -2588,6 +2208,307 @@ declare const WidgetEditor: {
|
|
|
2588
2208
|
};
|
|
2589
2209
|
};
|
|
2590
2210
|
|
|
2211
|
+
declare type RootState = Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & WidgetsRootState & WidgetsRootState & WedocAppRootState & UserCurrentRootState>;
|
|
2212
|
+
declare type RootDispatch = Dispatch$1<Action>;
|
|
2213
|
+
declare type ThunkApiConfig<T> = {
|
|
2214
|
+
dispatch: any;
|
|
2215
|
+
state: RootState & T;
|
|
2216
|
+
extra: {
|
|
2217
|
+
jApi: JamespotUserApi;
|
|
2218
|
+
};
|
|
2219
|
+
};
|
|
2220
|
+
|
|
2221
|
+
declare const AUDIENCE: {
|
|
2222
|
+
readonly ALL: "1";
|
|
2223
|
+
readonly CUSTOM: "0";
|
|
2224
|
+
};
|
|
2225
|
+
declare type StudioAudienceType = typeof AUDIENCE.ALL | typeof AUDIENCE.CUSTOM;
|
|
2226
|
+
declare enum StatusType {
|
|
2227
|
+
draft = "draft",
|
|
2228
|
+
installed = "installed",
|
|
2229
|
+
suspended = "suspended"
|
|
2230
|
+
}
|
|
2231
|
+
declare const APP_STATUS_TYPE: {
|
|
2232
|
+
DRAFT: StatusType;
|
|
2233
|
+
INSTALLED: StatusType;
|
|
2234
|
+
SUSPENDED: StatusType;
|
|
2235
|
+
};
|
|
2236
|
+
declare type AppStatusKeys = keyof typeof APP_STATUS_TYPE;
|
|
2237
|
+
declare type AppStatusType = StatusType.draft | StatusType.installed | StatusType.suspended;
|
|
2238
|
+
interface StudioAppBase extends StudioApplicationBase {
|
|
2239
|
+
articlesCount?: number;
|
|
2240
|
+
}
|
|
2241
|
+
interface StudioApplication {
|
|
2242
|
+
idApp: string;
|
|
2243
|
+
status: AppStatusType;
|
|
2244
|
+
author?: string;
|
|
2245
|
+
studioVersion: number;
|
|
2246
|
+
manifest: StudioAppManifest;
|
|
2247
|
+
inWorkVersion?: StudioApplication;
|
|
2248
|
+
fields: AppFieldsFormItem[];
|
|
2249
|
+
views: AppViewsFields;
|
|
2250
|
+
audience: StudioAudienceType;
|
|
2251
|
+
installFor: AppInstallForType[];
|
|
2252
|
+
}
|
|
2253
|
+
interface StudioAppManifest {
|
|
2254
|
+
appShortName: string;
|
|
2255
|
+
appName: string;
|
|
2256
|
+
description: string;
|
|
2257
|
+
author?: string;
|
|
2258
|
+
typeLabel: string;
|
|
2259
|
+
cssColor: string;
|
|
2260
|
+
cssClass: {
|
|
2261
|
+
label: string;
|
|
2262
|
+
value: string;
|
|
2263
|
+
};
|
|
2264
|
+
version: number;
|
|
2265
|
+
dateCreation: string;
|
|
2266
|
+
viewSolr: string;
|
|
2267
|
+
checkAccess: boolean;
|
|
2268
|
+
accessRightList?: string;
|
|
2269
|
+
attrExposed: Array<string>;
|
|
2270
|
+
articlesCount?: number;
|
|
2271
|
+
}
|
|
2272
|
+
interface AppLabelsType {
|
|
2273
|
+
label?: AppLabelContentType;
|
|
2274
|
+
description?: AppLabelContentType;
|
|
2275
|
+
}
|
|
2276
|
+
interface AppLabelContentType {
|
|
2277
|
+
content: string;
|
|
2278
|
+
mode: labelMode;
|
|
2279
|
+
display?: string;
|
|
2280
|
+
}
|
|
2281
|
+
declare type labelMode = 'SERVER' | 'GLOBAL' | 'RESOURCES' | 'APP';
|
|
2282
|
+
declare const STUDIO_VIEW: {
|
|
2283
|
+
SOLR: string;
|
|
2284
|
+
NOT_SOLR: string;
|
|
2285
|
+
};
|
|
2286
|
+
declare type AppFieldsFormItem = {
|
|
2287
|
+
id: string;
|
|
2288
|
+
type: AppFormItemTypes;
|
|
2289
|
+
properties?: AppFieldFormProperty[];
|
|
2290
|
+
mandatory?: boolean;
|
|
2291
|
+
views?: AppViews;
|
|
2292
|
+
value?: any;
|
|
2293
|
+
isActive?: boolean;
|
|
2294
|
+
isFixed?: boolean;
|
|
2295
|
+
isOptional?: boolean;
|
|
2296
|
+
isLockedValue?: boolean;
|
|
2297
|
+
};
|
|
2298
|
+
declare type AppViewFieldItem = {
|
|
2299
|
+
type: AppFormItemTypes | ExtraAppFieldsItemViews;
|
|
2300
|
+
properties: AppFieldFormProperty[];
|
|
2301
|
+
isUsed: boolean;
|
|
2302
|
+
isOptional: boolean;
|
|
2303
|
+
isFixed: boolean;
|
|
2304
|
+
isLockedValue: boolean;
|
|
2305
|
+
value: any;
|
|
2306
|
+
pos: number;
|
|
2307
|
+
};
|
|
2308
|
+
interface AppViews {
|
|
2309
|
+
create: boolean;
|
|
2310
|
+
popup: boolean;
|
|
2311
|
+
edit: boolean;
|
|
2312
|
+
list: boolean;
|
|
2313
|
+
filter: boolean;
|
|
2314
|
+
view: boolean;
|
|
2315
|
+
}
|
|
2316
|
+
declare type AppViewsFields = {
|
|
2317
|
+
create: AppViewFieldsItems;
|
|
2318
|
+
popup: AppViewFieldsItems;
|
|
2319
|
+
edit: AppViewFieldsItems;
|
|
2320
|
+
list: AppViewFieldsItems;
|
|
2321
|
+
filter: AppViewFieldsItems;
|
|
2322
|
+
view: AppViewFieldsItems;
|
|
2323
|
+
};
|
|
2324
|
+
declare type AppViewFieldsItems = {
|
|
2325
|
+
[id: string]: AppViewFieldItem;
|
|
2326
|
+
};
|
|
2327
|
+
declare type ViewName = 'create' | 'popup' | 'edit' | 'list' | 'filter' | 'view';
|
|
2328
|
+
declare const viewsList: ViewName[];
|
|
2329
|
+
declare enum AppFormItemTypes {
|
|
2330
|
+
IMAGE = "IMAGE",
|
|
2331
|
+
DESCRIPTION = "DESCRIPTION",
|
|
2332
|
+
TEXT = "TEXT",
|
|
2333
|
+
TEXTAREA = "TEXTAREA",
|
|
2334
|
+
TEXTAREAHTML = "TEXTAREAHTML",
|
|
2335
|
+
DATE = "DATE",
|
|
2336
|
+
DATETIME = "DATETIME",
|
|
2337
|
+
NUMBER = "NUMBER",
|
|
2338
|
+
URL = "URL",
|
|
2339
|
+
EMAIL = "EMAIL",
|
|
2340
|
+
SELECT = "SELECT",
|
|
2341
|
+
CHECKBOX = "CHECKBOX",
|
|
2342
|
+
TOGGLE = "TOGGLE",
|
|
2343
|
+
RADIO = "RADIO",
|
|
2344
|
+
TAGS = "TAGS",
|
|
2345
|
+
ADDFILEATTACHMENT = "ADDFILEATTACHMENT",
|
|
2346
|
+
CODEHTML = "CODEHTML",
|
|
2347
|
+
USERLINK = "USERLINK",
|
|
2348
|
+
CONTENTLINK = "CONTENTLINK",
|
|
2349
|
+
RANGE = "RANGE"
|
|
2350
|
+
}
|
|
2351
|
+
declare enum ExtraAppFieldsItemViews {
|
|
2352
|
+
TITLE = "TITLE",
|
|
2353
|
+
USER = "USER",
|
|
2354
|
+
PUBLISHTO = "PUBLISHTO",
|
|
2355
|
+
SENDALERTTOSUBSCRIBERS = "SENDALERTTOSUBSCRIBERS",
|
|
2356
|
+
RECEIVEACOPY = "RECEIVEACOPY",
|
|
2357
|
+
CREATIONDATE = "CREATIONDATE"
|
|
2358
|
+
}
|
|
2359
|
+
declare type CheckBoxOption = {
|
|
2360
|
+
label: string;
|
|
2361
|
+
value: any;
|
|
2362
|
+
};
|
|
2363
|
+
declare type AppFieldFormProperty = {
|
|
2364
|
+
propertyType: AppFieldFormPropertyTypes;
|
|
2365
|
+
isRequired?: boolean;
|
|
2366
|
+
checkBoxOptions?: CheckBoxOption[];
|
|
2367
|
+
value?: any;
|
|
2368
|
+
isOptionsEditorEnhanced?: boolean;
|
|
2369
|
+
};
|
|
2370
|
+
declare enum AppFieldFormPropertyTypes {
|
|
2371
|
+
LABEL = "label",
|
|
2372
|
+
DESCRIPTION = "description",
|
|
2373
|
+
RICHTEXT = "richtext",
|
|
2374
|
+
CHECKBOX = "checkbox",
|
|
2375
|
+
OPTIONS_EDITOR = "options_editor",
|
|
2376
|
+
TAXONOMY = "taxonomy",
|
|
2377
|
+
CONTENTTYPE = "contenttype"
|
|
2378
|
+
}
|
|
2379
|
+
declare const AppFormUniqueList: AppFormItemTypes[];
|
|
2380
|
+
declare const AppFormBannedFromViews: Map<AppFormItemTypes, ViewName[]>;
|
|
2381
|
+
declare type MappedExtraFieldsWithView = {
|
|
2382
|
+
fixed: ExtraAppFieldsItemViews[];
|
|
2383
|
+
optional: ExtraAppFieldsItemViews[];
|
|
2384
|
+
};
|
|
2385
|
+
declare const MapExtraFieldsWithView: {
|
|
2386
|
+
[k: string]: MappedExtraFieldsWithView;
|
|
2387
|
+
};
|
|
2388
|
+
declare type AppFieldView = {
|
|
2389
|
+
fieldIdRef: string;
|
|
2390
|
+
value: any;
|
|
2391
|
+
};
|
|
2392
|
+
interface AppTypeServerModel {
|
|
2393
|
+
typeName: string;
|
|
2394
|
+
typeLabel: string;
|
|
2395
|
+
author: string;
|
|
2396
|
+
typeLabelPlural: string;
|
|
2397
|
+
typeLabelLinkSingular: string;
|
|
2398
|
+
typeLabelLinkPlural: string;
|
|
2399
|
+
buttonLabel: string;
|
|
2400
|
+
buttonLinkLabel: string;
|
|
2401
|
+
buttonLinkUrl: string;
|
|
2402
|
+
cssClass: string;
|
|
2403
|
+
cssColor: string;
|
|
2404
|
+
searchTab: string;
|
|
2405
|
+
searchTabLabel: string;
|
|
2406
|
+
jadAction: string;
|
|
2407
|
+
supportedTypes: string;
|
|
2408
|
+
mainType: string;
|
|
2409
|
+
classImpl: string;
|
|
2410
|
+
classCodeLocation: string;
|
|
2411
|
+
capture: string;
|
|
2412
|
+
tables: Array<AppTableModel>;
|
|
2413
|
+
displays?: AppServerDisplaysModel;
|
|
2414
|
+
}
|
|
2415
|
+
interface AppTableModel {
|
|
2416
|
+
tableType: string;
|
|
2417
|
+
typeSqlName: string;
|
|
2418
|
+
sqlNameColumn: string;
|
|
2419
|
+
sqlValueColumn: string;
|
|
2420
|
+
joinFieldName: string;
|
|
2421
|
+
tablename: string;
|
|
2422
|
+
idSqlName: string;
|
|
2423
|
+
idFieldName: string;
|
|
2424
|
+
attributes: Array<AppTableAttributesModel>;
|
|
2425
|
+
}
|
|
2426
|
+
interface AppTableAttributesModel {
|
|
2427
|
+
attrType: string;
|
|
2428
|
+
formatSolr: string;
|
|
2429
|
+
label: string;
|
|
2430
|
+
description: string;
|
|
2431
|
+
mandatory: boolean;
|
|
2432
|
+
taxonomy: jTaxonomyLittle;
|
|
2433
|
+
display: boolean;
|
|
2434
|
+
teaser: boolean;
|
|
2435
|
+
col: string;
|
|
2436
|
+
supportedTypes: string;
|
|
2437
|
+
column: string;
|
|
2438
|
+
name: string;
|
|
2439
|
+
widget: AppAttrWidgetModel;
|
|
2440
|
+
solr: AppAttrSolrModel;
|
|
2441
|
+
}
|
|
2442
|
+
interface AppAttrWidgetModel {
|
|
2443
|
+
type: string;
|
|
2444
|
+
typeFile: string;
|
|
2445
|
+
format: string;
|
|
2446
|
+
multiple: string;
|
|
2447
|
+
digits: string;
|
|
2448
|
+
params: any;
|
|
2449
|
+
options: Array<string>;
|
|
2450
|
+
}
|
|
2451
|
+
interface AppAttrSolrModel {
|
|
2452
|
+
type: string;
|
|
2453
|
+
indexed: boolean;
|
|
2454
|
+
stored: boolean;
|
|
2455
|
+
required: boolean;
|
|
2456
|
+
multiValued: boolean;
|
|
2457
|
+
searchable: boolean;
|
|
2458
|
+
used: boolean;
|
|
2459
|
+
name: string;
|
|
2460
|
+
}
|
|
2461
|
+
interface AppServerDisplaysModel {
|
|
2462
|
+
create?: AppServerDisplayModel;
|
|
2463
|
+
'create-popup': AppServerDisplayModel;
|
|
2464
|
+
edit?: AppServerDisplayModel;
|
|
2465
|
+
list?: AppServerDisplayModel;
|
|
2466
|
+
display?: AppServerDisplayModel;
|
|
2467
|
+
}
|
|
2468
|
+
interface AppServerDisplayModel {
|
|
2469
|
+
type: string;
|
|
2470
|
+
view: string;
|
|
2471
|
+
mode: string;
|
|
2472
|
+
format: string;
|
|
2473
|
+
composants: Array<AppServerViewModel>;
|
|
2474
|
+
}
|
|
2475
|
+
interface AppServerViewModel {
|
|
2476
|
+
element: 'attr' | 'html';
|
|
2477
|
+
composants: [];
|
|
2478
|
+
name?: string;
|
|
2479
|
+
format?: string;
|
|
2480
|
+
html?: string;
|
|
2481
|
+
}
|
|
2482
|
+
declare type AppInstallForType = Partial<{
|
|
2483
|
+
id: string;
|
|
2484
|
+
uri: string;
|
|
2485
|
+
shortUri: string;
|
|
2486
|
+
title: string;
|
|
2487
|
+
name: string;
|
|
2488
|
+
mainType: string;
|
|
2489
|
+
type: string;
|
|
2490
|
+
label: string;
|
|
2491
|
+
cssClass: string;
|
|
2492
|
+
cssColor: string;
|
|
2493
|
+
class: string;
|
|
2494
|
+
Pseudo: string;
|
|
2495
|
+
}>;
|
|
2496
|
+
declare const AppColumnsDefaultTypes: (AppFormItemTypes | ExtraAppFieldsItemViews)[];
|
|
2497
|
+
declare const AppFormPrimaryList: AppFormItemTypes[];
|
|
2498
|
+
declare type TaxonomyPropertyValue = Pick<jTaxonomyLittle, 'type' | 'id' | 'title'>;
|
|
2499
|
+
declare type JType = {
|
|
2500
|
+
cssClass: string;
|
|
2501
|
+
cssColor: string;
|
|
2502
|
+
label: string;
|
|
2503
|
+
type: string;
|
|
2504
|
+
mainType: string;
|
|
2505
|
+
};
|
|
2506
|
+
declare type ContentTypePropertyValue = Pick<JType, 'type' | 'label'>;
|
|
2507
|
+
declare const AppFormFixedList: ExtraAppFieldsItemViews[];
|
|
2508
|
+
declare const AppFormNoAsFieldList: Array<ExtraAppFieldsItemViews | AppFormItemTypes>;
|
|
2509
|
+
declare const AppFormFieldOnlyInView: AppFormItemTypes[];
|
|
2510
|
+
declare const AppFormNonPrimaryList: (AppFormItemTypes | ExtraAppFieldsItemViews)[];
|
|
2511
|
+
|
|
2591
2512
|
interface CurrentStudioAppState {
|
|
2592
2513
|
currentStudioApp: StudioApplication | null;
|
|
2593
2514
|
fetchCurrentStudioAppStatus: 'idle' | 'pending';
|
|
@@ -2762,4 +2683,4 @@ declare const studio: {
|
|
|
2762
2683
|
};
|
|
2763
2684
|
};
|
|
2764
2685
|
|
|
2765
|
-
export { APP_STATUS_TYPE, AUDIENCE, AnimationSliceRootState, Animations, AnimationsRootState, AppAttrSolrModel, AppAttrWidgetModel, AppColumnsDefaultTypes, AppFieldFormProperty, AppFieldFormPropertyTypes, AppFieldView, AppFieldsFormItem, AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList, AppFormItemTypes, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryList, 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, CommentListRootState, CommentListState, CommentRootState, CommentsList, ContentTypePropertyValue, EditorProps, EditorsRootState, EditorsState, ExtraAppFieldsItemViews, Faq, FaqRootState, Hook, HookRootState, JLandMapFront, JLandRootState, JType, MODE_EDIT, MODE_VIEW, MagicPad, MagicPadRootState, MagicPadSliceRootState, MapCreationFront, MapExtraFieldsWithView, MediaLibrary, MediaLibraryRootState, MediaLibraryState, Model, ModelRootState, Network, NetworkRootState, PagingState, Platform, PlatformRootState, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, TVDisplay, TVDisplayRootState, TaxonomyPropertyValue, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, ViewName, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, animationsReducer, animationsSlice,
|
|
2686
|
+
export { APP_STATUS_TYPE, AUDIENCE, AnimationSliceRootState, Animations, AnimationsRootState, AppAttrSolrModel, AppAttrWidgetModel, AppColumnsDefaultTypes, AppFieldFormProperty, AppFieldFormPropertyTypes, AppFieldView, AppFieldsFormItem, AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList, AppFormItemTypes, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryList, 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, CommentListRootState, CommentListState, CommentRootState, CommentsList, ContentTypePropertyValue, EditorProps, EditorsRootState, EditorsState, ExtraAppFieldsItemViews, Faq, FaqRootState, Hook, HookRootState, JLandMapFront, JLandRootState, JType, MODE_EDIT, MODE_VIEW, MagicPad, MagicPadRootState, MagicPadSliceRootState, MapCreationFront, MapExtraFieldsWithView, MediaLibrary, MediaLibraryRootState, MediaLibraryState, Model, ModelRootState, Network, NetworkRootState, PagingState, Platform, PlatformRootState, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, TVDisplay, TVDisplayRootState, TaxonomyPropertyValue, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, ViewName, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, animationsReducer, animationsSlice, fetchMediaLibraryConfig, fetchMediaLibraryFilesStats, fetchMediaLibraryFolders, fetchMediaLibraryFoldersStats, fetchMediaLibraryStats, fetchMediaLibraryUnclassifiedFiles, fetchPads, jland, magicPadSlice, mediaLibraryReducer, mediaLibrarySlice, slice, studio, updateWidgetContent, viewsList };
|