jamespot-front-business 1.1.68 → 1.1.69

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/types.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
- import { EntityState, Dispatch, PayloadAction, Action } from '@reduxjs/toolkit';
2
+ import { EntityState, Dispatch, PayloadAction, Action as Action$1 } from '@reduxjs/toolkit';
3
3
  import * as zod from 'zod';
4
4
  import * as jamespot_user_api from 'jamespot-user-api';
5
- import { AnimationConfigurationType, AnimationStats, 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, CombinedWidgetContent, WidgetsName, Rights, jObjectLittle, WidgetVector, WidgetStateProps, WidgetsRootState, SocialAction, JamespotUserApi, StudioApplicationBase, jTaxonomyLittle } from 'jamespot-user-api';
5
+ import { AnimationConfigurationType, AnimationStats, 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, CombinedWidgetContent, WidgetsName, Rights, jObjectLittle, WidgetVector, WidgetStateProps, WidgetsRootState, SocialAction, JamespotUserApi, ValueOf, StudioApplicationBase, jTaxonomyLittle } from 'jamespot-user-api';
6
6
  import * as redux from 'redux';
7
7
  import { Dispatch as Dispatch$1 } from 'redux';
8
8
  import * as _reduxjs_toolkit_dist_tsHelpers from '@reduxjs/toolkit/dist/tsHelpers';
@@ -13021,7 +13021,7 @@ declare const SocialActions: {
13021
13021
  };
13022
13022
 
13023
13023
  type RootState = Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & WidgetsRootState & WidgetsRootState & WedocAppRootState & UserCurrentRootState>;
13024
- type RootDispatch = Dispatch$1<Action>;
13024
+ type RootDispatch = Dispatch$1<Action$1>;
13025
13025
  type RTDispatch = Dispatch<any>;
13026
13026
  type ApiError = {
13027
13027
  error: number;
@@ -13040,18 +13040,18 @@ declare const AUDIENCE: {
13040
13040
  readonly CUSTOM: "0";
13041
13041
  };
13042
13042
  type StudioAudienceType = typeof AUDIENCE.ALL | typeof AUDIENCE.CUSTOM;
13043
- declare enum StatusType {
13044
- draft = "draft",
13045
- installed = "installed",
13046
- suspended = "suspended"
13047
- }
13043
+ declare const StatusType: {
13044
+ readonly draft: "draft";
13045
+ readonly installed: "installed";
13046
+ readonly suspended: "suspended";
13047
+ };
13048
13048
  declare const APP_STATUS_TYPE: {
13049
- DRAFT: StatusType;
13050
- INSTALLED: StatusType;
13051
- SUSPENDED: StatusType;
13049
+ DRAFT: "draft";
13050
+ INSTALLED: "installed";
13051
+ SUSPENDED: "suspended";
13052
13052
  };
13053
13053
  type AppStatusKeys = keyof typeof APP_STATUS_TYPE;
13054
- type AppStatusType = StatusType.draft | StatusType.installed | StatusType.suspended;
13054
+ type AppStatusType = ValueOf<typeof StatusType>;
13055
13055
  interface StudioAppBase extends StudioApplicationBase {
13056
13056
  articlesCount?: number;
13057
13057
  }
@@ -13060,8 +13060,12 @@ interface StudioApplication {
13060
13060
  status: AppStatusType;
13061
13061
  author?: string;
13062
13062
  studioVersion: number;
13063
+ migratedFrom?: number;
13063
13064
  manifest: StudioAppManifest;
13064
13065
  inWorkVersion?: StudioApplication;
13066
+ syncViewFieldOrder?: {
13067
+ [key in ViewName]: boolean;
13068
+ };
13065
13069
  fields: AppFieldsFormItem[];
13066
13070
  views: AppViewsFields;
13067
13071
  audience: StudioAudienceType;
@@ -13102,7 +13106,7 @@ declare const STUDIO_VIEW: {
13102
13106
  };
13103
13107
  type AppFieldsFormItem = {
13104
13108
  id: string;
13105
- type: AppFormItemTypes;
13109
+ type: AppFormItemTypesValues;
13106
13110
  properties?: AppFieldFormProperty[];
13107
13111
  mandatory?: boolean;
13108
13112
  views?: AppViews;
@@ -13113,7 +13117,7 @@ type AppFieldsFormItem = {
13113
13117
  isLockedValue?: boolean;
13114
13118
  };
13115
13119
  type AppViewFieldItem = {
13116
- type: AppFormItemTypes | ExtraAppFieldsItemViews;
13120
+ type: AppFormItemTypesValues | ExtraAppFieldsItemViewsValues;
13117
13121
  properties: AppFieldFormProperty[];
13118
13122
  isUsed: boolean;
13119
13123
  isOptional: boolean;
@@ -13143,61 +13147,65 @@ type AppViewFieldsItems = {
13143
13147
  };
13144
13148
  type ViewName = 'create' | 'popup' | 'edit' | 'list' | 'filter' | 'view';
13145
13149
  declare const viewsList: ViewName[];
13146
- declare enum AppFormItemTypes {
13147
- IMAGE = "IMAGE",
13148
- DESCRIPTION = "DESCRIPTION",
13149
- TEXT = "TEXT",
13150
- TEXTAREA = "TEXTAREA",
13151
- TEXTAREAHTML = "TEXTAREAHTML",
13152
- DATE = "DATE",
13153
- DATETIME = "DATETIME",
13154
- NUMBER = "NUMBER",
13155
- URL = "URL",
13156
- EMAIL = "EMAIL",
13157
- SELECT = "SELECT",
13158
- CHECKBOX = "CHECKBOX",
13159
- TOGGLE = "TOGGLE",
13160
- RADIO = "RADIO",
13161
- TAGS = "TAGS",
13162
- ADDFILEATTACHMENT = "ADDFILEATTACHMENT",
13163
- CODEHTML = "CODEHTML",
13164
- USERLINK = "USERLINK",
13165
- CONTENTLINK = "CONTENTLINK",
13166
- RANGE = "RANGE"
13167
- }
13168
- declare enum ExtraAppFieldsItemViews {
13169
- TITLE = "TITLE",
13170
- USER = "USER",
13171
- PUBLISHTO = "PUBLISHTO",
13172
- SENDALERTTOSUBSCRIBERS = "SENDALERTTOSUBSCRIBERS",
13173
- RECEIVEACOPY = "RECEIVEACOPY",
13174
- CREATIONDATE = "CREATIONDATE"
13175
- }
13150
+ declare const AppFormItemTypes: {
13151
+ readonly IMAGE: "IMAGE";
13152
+ readonly DESCRIPTION: "DESCRIPTION";
13153
+ readonly TEXT: "TEXT";
13154
+ readonly TEXTAREA: "TEXTAREA";
13155
+ readonly TEXTAREAHTML: "TEXTAREAHTML";
13156
+ readonly DATE: "DATE";
13157
+ readonly DATETIME: "DATETIME";
13158
+ readonly NUMBER: "NUMBER";
13159
+ readonly URL: "URL";
13160
+ readonly EMAIL: "EMAIL";
13161
+ readonly SELECT: "SELECT";
13162
+ readonly CHECKBOX: "CHECKBOX";
13163
+ readonly TOGGLE: "TOGGLE";
13164
+ readonly RADIO: "RADIO";
13165
+ readonly TAGS: "TAGS";
13166
+ readonly ADDFILEATTACHMENT: "ADDFILEATTACHMENT";
13167
+ readonly CODEHTML: "CODEHTML";
13168
+ readonly USERLINK: "USERLINK";
13169
+ readonly CONTENTLINK: "CONTENTLINK";
13170
+ readonly RANGE: "RANGE";
13171
+ };
13172
+ type AppFormItemTypesValues = ValueOf<typeof AppFormItemTypes>;
13173
+ declare const ExtraAppFieldsItemViews: {
13174
+ readonly TITLE: "TITLE";
13175
+ readonly USER: "USER";
13176
+ readonly PUBLISHTO: "PUBLISHTO";
13177
+ readonly SENDALERTTOSUBSCRIBERS: "SENDALERTTOSUBSCRIBERS";
13178
+ readonly RECEIVEACOPY: "RECEIVEACOPY";
13179
+ readonly CREATIONDATE: "CREATIONDATE";
13180
+ };
13181
+ type ExtraAppFieldsItemViewsValues = ValueOf<typeof ExtraAppFieldsItemViews>;
13176
13182
  type CheckBoxOption = {
13177
13183
  label: string;
13178
13184
  value: any;
13179
13185
  };
13186
+ declare const AppFieldFormPropertyTypes: {
13187
+ readonly LABEL: "label";
13188
+ readonly DESCRIPTION: "description";
13189
+ readonly RICHTEXT: "richtext";
13190
+ readonly CHECKBOX: "checkbox";
13191
+ readonly OPTIONS_EDITOR: "options_editor";
13192
+ readonly TAXONOMY: "taxonomy";
13193
+ readonly CONTENTTYPE: "contenttype";
13194
+ };
13195
+ type AppFieldFormPropertyTypesValues = ValueOf<typeof AppFieldFormPropertyTypes>;
13180
13196
  type AppFieldFormProperty = {
13181
- propertyType: AppFieldFormPropertyTypes;
13197
+ propertyType: AppFieldFormPropertyTypesValues;
13182
13198
  isRequired?: boolean;
13183
13199
  checkBoxOptions?: CheckBoxOption[];
13184
13200
  value?: any;
13185
13201
  isOptionsEditorEnhanced?: boolean;
13186
13202
  };
13187
- declare enum AppFieldFormPropertyTypes {
13188
- LABEL = "label",
13189
- DESCRIPTION = "description",
13190
- RICHTEXT = "richtext",
13191
- CHECKBOX = "checkbox",
13192
- OPTIONS_EDITOR = "options_editor",
13193
- TAXONOMY = "taxonomy",
13194
- CONTENTTYPE = "contenttype"
13195
- }
13196
- declare const AppFormUniqueList: AppFormItemTypes[];
13197
- declare const AppFormBannedFromViews: Map<AppFormItemTypes, ViewName[]>;
13203
+ declare const AppFormUniqueList: ("IMAGE" | "DESCRIPTION")[];
13204
+ declare const AppFormUniqueListCheck: string[];
13205
+ declare const AppFormBannedFromViews: Map<AppFormItemTypesValues, ViewName[]>;
13198
13206
  type MappedExtraFieldsWithView = {
13199
- fixed: ExtraAppFieldsItemViews[];
13200
- optional: ExtraAppFieldsItemViews[];
13207
+ fixed: ExtraAppFieldsItemViewsValues[];
13208
+ optional: ExtraAppFieldsItemViewsValues[];
13201
13209
  };
13202
13210
  declare const MapExtraFieldsWithView: {
13203
13211
  [k: string]: MappedExtraFieldsWithView;
@@ -13209,7 +13217,7 @@ type AppFieldView = {
13209
13217
  interface AppTypeServerModel {
13210
13218
  typeName: string;
13211
13219
  typeLabel: string;
13212
- author: string;
13220
+ author?: string;
13213
13221
  typeLabelPlural: string;
13214
13222
  typeLabelLinkSingular: string;
13215
13223
  typeLabelLinkPlural: string;
@@ -13225,7 +13233,7 @@ interface AppTypeServerModel {
13225
13233
  mainType: string;
13226
13234
  classImpl: string;
13227
13235
  classCodeLocation: string;
13228
- capture: string;
13236
+ capture?: string;
13229
13237
  tables: Array<AppTableModel>;
13230
13238
  displays?: AppServerDisplaysModel;
13231
13239
  }
@@ -13290,7 +13298,7 @@ interface AppServerDisplayModel {
13290
13298
  composants: Array<AppServerViewModel>;
13291
13299
  }
13292
13300
  interface AppServerViewModel {
13293
- element: 'attr' | 'html';
13301
+ element: 'attr' | 'html' | 'image' | 'publishTo';
13294
13302
  composants: [];
13295
13303
  name?: string;
13296
13304
  format?: string;
@@ -13309,9 +13317,11 @@ type AppInstallForType = Partial<{
13309
13317
  cssColor: string;
13310
13318
  class: string;
13311
13319
  Pseudo: string;
13320
+ _url: string;
13312
13321
  }>;
13313
- declare const AppColumnsDefaultTypes: (AppFormItemTypes | ExtraAppFieldsItemViews)[];
13314
- declare const AppFormPrimaryList: AppFormItemTypes[];
13322
+ declare const AppColumnsDefaultTypes: string[];
13323
+ declare const AppFormPrimaryList: "DESCRIPTION"[];
13324
+ declare const AppFormPrimaryListValues: string[];
13315
13325
  type TaxonomyPropertyValue = Pick<jTaxonomyLittle, 'type' | 'id' | 'title'>;
13316
13326
  type JType = {
13317
13327
  cssClass: string;
@@ -13321,10 +13331,220 @@ type JType = {
13321
13331
  mainType: string;
13322
13332
  };
13323
13333
  type ContentTypePropertyValue = Pick<JType, 'type' | 'label'>;
13324
- declare const AppFormFixedList: ExtraAppFieldsItemViews[];
13325
- declare const AppFormNoAsFieldList: Array<ExtraAppFieldsItemViews | AppFormItemTypes>;
13326
- declare const AppFormFieldOnlyInView: AppFormItemTypes[];
13327
- declare const AppFormNonPrimaryList: (AppFormItemTypes | ExtraAppFieldsItemViews)[];
13334
+ declare const AppFormFixedList: ("TITLE" | "USER" | "PUBLISHTO" | "SENDALERTTOSUBSCRIBERS" | "RECEIVEACOPY" | "CREATIONDATE")[];
13335
+ declare const AppFormNoAsFieldList: Array<ExtraAppFieldsItemViewsValues | AppFormItemTypesValues>;
13336
+ declare const AppFormFieldOnlyInView: "CODEHTML"[];
13337
+ declare const AppFormNonPrimaryList: (AppFormItemTypesValues | ExtraAppFieldsItemViewsValues)[];
13338
+ interface InstalledApp {
13339
+ idApp: string;
13340
+ name: string;
13341
+ status: string;
13342
+ label: string;
13343
+ img: string;
13344
+ icon: string;
13345
+ color: string;
13346
+ url: string;
13347
+ type: string;
13348
+ urlTarget: boolean;
13349
+ description: string;
13350
+ order: number;
13351
+ studioVersion: number;
13352
+ author: string;
13353
+ dateCreation: Date;
13354
+ suspended: boolean;
13355
+ action: Action;
13356
+ view: string;
13357
+ display: string;
13358
+ columns: Columns;
13359
+ accessRightList: string[];
13360
+ accessRightObjectList: AccessRightObjectList[];
13361
+ checkAccess: boolean;
13362
+ showImport: boolean;
13363
+ showMap: boolean;
13364
+ mail2RSE: boolean;
13365
+ attrExposed: string[];
13366
+ manifest: Manifest;
13367
+ typeModel: AppTypeServerModel;
13368
+ }
13369
+ interface AccessRightObjectList {
13370
+ id: number;
13371
+ type: string;
13372
+ uri: string;
13373
+ title: string;
13374
+ mainType: string;
13375
+ _cssColor: string;
13376
+ _cssClass: string;
13377
+ _url: string;
13378
+ _right: Right;
13379
+ firstname: string;
13380
+ lastname: string;
13381
+ mail: string;
13382
+ _values: Values;
13383
+ }
13384
+ interface AccessRightObjectList {
13385
+ id: number;
13386
+ type: string;
13387
+ uri: string;
13388
+ title: string;
13389
+ mainType: string;
13390
+ _cssColor: string;
13391
+ _cssClass: string;
13392
+ _url: string;
13393
+ _right: Right;
13394
+ firstname: string;
13395
+ lastname: string;
13396
+ mail: string;
13397
+ _values: Values;
13398
+ }
13399
+ interface Right {
13400
+ create: boolean;
13401
+ read: boolean;
13402
+ publish: boolean;
13403
+ administrate: boolean;
13404
+ update: boolean;
13405
+ delete: boolean;
13406
+ comment: boolean;
13407
+ member: boolean;
13408
+ }
13409
+ interface Values {
13410
+ firstname: string;
13411
+ lastname: string;
13412
+ mail: string;
13413
+ title: string;
13414
+ dateCreation: Date;
13415
+ dateModified: Date;
13416
+ function: string;
13417
+ company: string;
13418
+ }
13419
+ interface Action {
13420
+ action: string;
13421
+ nameApp: string;
13422
+ }
13423
+ interface Columns {
13424
+ title: string;
13425
+ idUser: string;
13426
+ description: string;
13427
+ dateCreation: string;
13428
+ }
13429
+ interface Manifest {
13430
+ version: number;
13431
+ manifestVersion: number;
13432
+ dateCreation: Date;
13433
+ editor: string;
13434
+ editorUrl: string;
13435
+ categories: string;
13436
+ author: string;
13437
+ }
13438
+ interface Displays {
13439
+ create: Create;
13440
+ 'create-popup': Create;
13441
+ edit: Create;
13442
+ display: Display;
13443
+ }
13444
+ interface Create {
13445
+ type: string;
13446
+ view: string;
13447
+ mode: string;
13448
+ format: string;
13449
+ composants: CreateComposant[];
13450
+ }
13451
+ interface CreateComposant {
13452
+ element: Element;
13453
+ composants: any[];
13454
+ name?: string;
13455
+ format?: string;
13456
+ mainTypes?: null;
13457
+ views?: null;
13458
+ }
13459
+ declare enum Element {
13460
+ Attr = "attr",
13461
+ PublishTo = "publishTo"
13462
+ }
13463
+ interface Display {
13464
+ type: string;
13465
+ view: string;
13466
+ mode: string;
13467
+ format: string;
13468
+ composants: DisplayComposant[];
13469
+ }
13470
+ interface DisplayComposant {
13471
+ element: Element;
13472
+ composants: any[];
13473
+ name: string;
13474
+ format: string;
13475
+ }
13476
+ interface Table {
13477
+ tableType: string;
13478
+ typeSqlName: string;
13479
+ sqlNameColumn: null | string;
13480
+ sqlValueColumn: null;
13481
+ joinFieldName: null;
13482
+ tablename?: string;
13483
+ idSqlName?: string;
13484
+ idFieldName?: string;
13485
+ attributes: Attribute[];
13486
+ sqlSrcIdColumn?: string;
13487
+ sqlSrcTypeColumn?: string;
13488
+ sqlTargetIdColumn?: string;
13489
+ sqlTargetTypeColumn?: string;
13490
+ }
13491
+ interface Attribute {
13492
+ attrType: string;
13493
+ formatSolr: null;
13494
+ label: string;
13495
+ description: Description;
13496
+ mandatory: boolean;
13497
+ display: boolean;
13498
+ teaser: boolean;
13499
+ col: null;
13500
+ supportedTypes: string;
13501
+ column: string;
13502
+ name: string;
13503
+ solr: Solr;
13504
+ widget: StudioWidget;
13505
+ labelDisplay: string;
13506
+ }
13507
+ declare enum Description {
13508
+ Empty = "",
13509
+ FieldTagDescription = "Field_Tag_Description",
13510
+ FieldTitleDescription = "Field_Title_Description",
13511
+ WWWDescCOM = "www.desc.com"
13512
+ }
13513
+ interface Solr {
13514
+ type: string;
13515
+ indexed: boolean | string;
13516
+ stored: boolean | string;
13517
+ required: boolean | string;
13518
+ multiValued: boolean | string;
13519
+ searchable: boolean | string;
13520
+ used: string;
13521
+ name?: string;
13522
+ taxonomy?: string;
13523
+ }
13524
+ interface StudioWidget {
13525
+ type: null | string;
13526
+ typeFile: null | string;
13527
+ format: null | string;
13528
+ multiple: boolean | string;
13529
+ params: any[] | ParamsClass;
13530
+ options: any[] | OptionsClass;
13531
+ }
13532
+ interface OptionsClass {
13533
+ '1': string;
13534
+ }
13535
+ interface ParamsClass {
13536
+ data?: string;
13537
+ defaultValue?: string;
13538
+ 'jcomplete-url'?: string;
13539
+ 'data-crop-b64'?: string;
13540
+ 'data-image'?: string;
13541
+ accept?: string;
13542
+ save?: string;
13543
+ mention?: string;
13544
+ class?: string;
13545
+ idTaxonomy?: string;
13546
+ jagCheckbox?: string;
13547
+ }
13328
13548
 
13329
13549
  interface CurrentStudioAppState {
13330
13550
  currentStudioApp: StudioApplication | null;
@@ -13344,12 +13564,17 @@ type StudioAppsListState = {
13344
13564
  suspendStudioAppStatus: 'idle' | 'pending';
13345
13565
  restartStudioAppStatus: 'idle' | 'pending';
13346
13566
  cloneStudioAppStatus: 'idle' | 'pending';
13567
+ createInWorkAppStatus: 'idle' | 'pending';
13347
13568
  createNewStudioAppStatus: 'idle' | 'pending';
13348
13569
  };
13349
13570
  type StudioAppsListRootState = {
13350
13571
  studioAppsList: StudioAppsListState;
13351
13572
  };
13352
13573
 
13574
+ declare function updateViewsFromFields(clonedApp: StudioApplication, appFields: AppFieldsFormItem[]): any;
13575
+
13576
+ declare function generateNewFormField(type: AppFormItemTypesValues, viewsDefault?: boolean): AppFieldsFormItem;
13577
+
13353
13578
  type StudioRootState = {
13354
13579
  studio: StudioAppsListRootState & CurrentStudioAppRootState;
13355
13580
  };
@@ -13364,7 +13589,7 @@ declare const studio: {
13364
13589
  }>, redux.AnyAction>;
13365
13590
  };
13366
13591
  actions: {
13367
- fetchStudioAppsList: _reduxjs_toolkit.AsyncThunk<StudioAppBase[], undefined, {
13592
+ fetchStudioAppsList: _reduxjs_toolkit.AsyncThunk<StudioApplication[], IntlFormatters, {
13368
13593
  dispatch: any;
13369
13594
  state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & {
13370
13595
  widgets: {
@@ -13547,7 +13772,7 @@ declare const studio: {
13547
13772
  }>;
13548
13773
  deleteStudioApp: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.BaseMessages, {
13549
13774
  idApp: string;
13550
- status: StatusType;
13775
+ status: AppStatusType;
13551
13776
  }, {
13552
13777
  dispatch: any;
13553
13778
  state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & {
@@ -14097,6 +14322,7 @@ declare const studio: {
14097
14322
  }>;
14098
14323
  cloneStudioApp: _reduxjs_toolkit.AsyncThunk<StudioApplication, {
14099
14324
  idApp: string;
14325
+ inWork?: boolean;
14100
14326
  }, {
14101
14327
  dispatch: any;
14102
14328
  state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & {
@@ -15010,6 +15236,189 @@ declare const studio: {
15010
15236
  fulfilledMeta?: unknown;
15011
15237
  rejectedMeta?: unknown;
15012
15238
  }>;
15239
+ createInWorkStudioApp: _reduxjs_toolkit.AsyncThunk<StudioApplication, {
15240
+ idApp: string;
15241
+ }, {
15242
+ dispatch: any;
15243
+ state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & {
15244
+ widgets: {
15245
+ layers: Record<string, {
15246
+ title: string;
15247
+ visible: boolean;
15248
+ widgets: jamespot_user_api.WidgetWrapperGeneric<({
15249
+ layers?: string[] | undefined;
15250
+ } & jamespot_user_api.WidgetArticleAttachmentType) | ({
15251
+ layers?: string[] | undefined;
15252
+ } & jamespot_user_api.WidgetArticleButtonType) | ({
15253
+ layers?: string[] | undefined;
15254
+ } & jamespot_user_api.WidgetArticleGalleryType) | ({
15255
+ layers?: string[] | undefined;
15256
+ } & jamespot_user_api.WidgetArticleImageType) | ({
15257
+ layers?: string[] | undefined;
15258
+ } & jamespot_user_api.WidgetArticleTitleType) | ({
15259
+ layers?: string[] | undefined;
15260
+ } & jamespot_user_api.WidgetArticleTextType) | ({
15261
+ layers?: string[] | undefined;
15262
+ } & jamespot_user_api.WidgetArticleSliderType) | ({
15263
+ layers?: string[] | undefined;
15264
+ } & jamespot_user_api.WidgetType<{
15265
+ widgets?: jamespot_user_api.WidgetBaseType[] | undefined;
15266
+ arr?: jamespot_user_api.WidgetCheckListContentArr[] | undefined;
15267
+ css?: Record<string, string> | undefined;
15268
+ edit?: boolean | undefined;
15269
+ }>) | ({
15270
+ layers?: string[] | undefined;
15271
+ } & jamespot_user_api.WidgetDatasourceTableType) | ({
15272
+ layers?: string[] | undefined;
15273
+ } & {
15274
+ name: jamespot_user_api.WidgetsName.ExcelDatasourceTable;
15275
+ uniqid: string;
15276
+ content: {
15277
+ uri?: string | undefined;
15278
+ limit?: number | boolean | undefined;
15279
+ tableColumnsData?: {
15280
+ name?: string | undefined;
15281
+ label?: string | undefined;
15282
+ isVisible?: boolean | undefined;
15283
+ textEllipsis?: boolean | undefined;
15284
+ dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
15285
+ numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
15286
+ }[] | undefined;
15287
+ tableHeadColor?: string | undefined;
15288
+ tableHeadTextColor?: string | undefined;
15289
+ tableHeadIconColor?: string | undefined;
15290
+ tableRowColor?: string | undefined;
15291
+ tableRowTextColor?: string | undefined;
15292
+ tableBorderRadius?: number | undefined;
15293
+ tableSizedColumns?: boolean | undefined;
15294
+ tableSizedColumnsWidth?: number | undefined;
15295
+ };
15296
+ }) | ({
15297
+ layers?: string[] | undefined;
15298
+ } & jamespot_user_api.WidgetPresenceType)>[];
15299
+ uniqid: string;
15300
+ locked: boolean;
15301
+ position?: {
15302
+ x: number;
15303
+ y: number;
15304
+ } | undefined;
15305
+ }>;
15306
+ ids: Record<string, jamespot_user_api.WidgetWrapperGeneric<({
15307
+ layers?: string[] | undefined;
15308
+ } & jamespot_user_api.WidgetArticleAttachmentType) | ({
15309
+ layers?: string[] | undefined;
15310
+ } & jamespot_user_api.WidgetArticleButtonType) | ({
15311
+ layers?: string[] | undefined;
15312
+ } & jamespot_user_api.WidgetArticleGalleryType) | ({
15313
+ layers?: string[] | undefined;
15314
+ } & jamespot_user_api.WidgetArticleImageType) | ({
15315
+ layers?: string[] | undefined;
15316
+ } & jamespot_user_api.WidgetArticleTitleType) | ({
15317
+ layers?: string[] | undefined;
15318
+ } & jamespot_user_api.WidgetArticleTextType) | ({
15319
+ layers?: string[] | undefined;
15320
+ } & jamespot_user_api.WidgetArticleSliderType) | ({
15321
+ layers?: string[] | undefined;
15322
+ } & jamespot_user_api.WidgetType<{
15323
+ widgets?: jamespot_user_api.WidgetBaseType[] | undefined;
15324
+ arr?: jamespot_user_api.WidgetCheckListContentArr[] | undefined;
15325
+ css?: Record<string, string> | undefined;
15326
+ edit?: boolean | undefined;
15327
+ }>) | ({
15328
+ layers?: string[] | undefined;
15329
+ } & jamespot_user_api.WidgetDatasourceTableType) | ({
15330
+ layers?: string[] | undefined;
15331
+ } & {
15332
+ name: jamespot_user_api.WidgetsName.ExcelDatasourceTable;
15333
+ uniqid: string;
15334
+ content: {
15335
+ uri?: string | undefined;
15336
+ limit?: number | boolean | undefined;
15337
+ tableColumnsData?: {
15338
+ name?: string | undefined;
15339
+ label?: string | undefined;
15340
+ isVisible?: boolean | undefined;
15341
+ textEllipsis?: boolean | undefined;
15342
+ dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
15343
+ numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
15344
+ }[] | undefined;
15345
+ tableHeadColor?: string | undefined;
15346
+ tableHeadTextColor?: string | undefined;
15347
+ tableHeadIconColor?: string | undefined;
15348
+ tableRowColor?: string | undefined;
15349
+ tableRowTextColor?: string | undefined;
15350
+ tableBorderRadius?: number | undefined;
15351
+ tableSizedColumns?: boolean | undefined;
15352
+ tableSizedColumnsWidth?: number | undefined;
15353
+ };
15354
+ }) | ({
15355
+ layers?: string[] | undefined;
15356
+ } & jamespot_user_api.WidgetPresenceType)>>;
15357
+ states: Record<string, {
15358
+ busy?: boolean | undefined;
15359
+ loading?: boolean | undefined;
15360
+ initialized?: boolean | undefined;
15361
+ mounted?: boolean | undefined;
15362
+ hover?: boolean | undefined;
15363
+ empty?: boolean | undefined;
15364
+ locked?: boolean | undefined;
15365
+ }>;
15366
+ editableMap: Record<string, {
15367
+ uniqid: string;
15368
+ index: number;
15369
+ }>;
15370
+ currentEditableIndex: number;
15371
+ widgetObject: Record<string, {
15372
+ type?: string | undefined;
15373
+ id?: number | undefined;
15374
+ mainType?: string | undefined;
15375
+ uri?: string | undefined;
15376
+ dateCreation?: string | undefined;
15377
+ dateModified?: string | null | undefined;
15378
+ title?: string | undefined;
15379
+ _url?: string | undefined;
15380
+ }>;
15381
+ widgetObjectRights: Record<string, jamespot_user_api.Rights>;
15382
+ widgetAuthor: Record<string, zod.objectOutputType<{
15383
+ id: zod.ZodOptional<zod.ZodType<number, zod.ZodTypeDef, number>>;
15384
+ mainType: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
15385
+ type: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
15386
+ uri: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
15387
+ title: zod.ZodOptional<zod.ZodString>;
15388
+ _url: zod.ZodOptional<zod.ZodString>;
15389
+ level: zod.ZodOptional<zod.ZodNativeEnum<{
15390
+ readonly ADMIN: 9;
15391
+ readonly USER: 5;
15392
+ readonly EXTERNAL: 3;
15393
+ readonly GUEST: 0;
15394
+ }>>;
15395
+ dateCreation: zod.ZodOptional<zod.ZodString>;
15396
+ dateModified: zod.ZodOptional<zod.ZodString>;
15397
+ }, zod.ZodUnion<[zod.ZodNumber, zod.ZodNullable<zod.ZodString>, zod.ZodNullable<zod.ZodString>, zod.ZodNullable<zod.ZodString>, zod.ZodString, zod.ZodNumber, zod.ZodNullable<zod.ZodString>, zod.ZodString, zod.ZodString]>, "strip">>;
15398
+ rtObjectStack: {
15399
+ object: jamespot_user_api.jObjectBase & {
15400
+ title: string;
15401
+ _url: string;
15402
+ };
15403
+ uniqid: string;
15404
+ }[];
15405
+ token?: string | undefined;
15406
+ modal?: {
15407
+ title?: string | undefined;
15408
+ view?: any;
15409
+ } | undefined;
15410
+ currentEditableWidgetId?: string | undefined;
15411
+ };
15412
+ } & WedocAppRootState & UserCurrentRootState> & StudioRootState;
15413
+ extra: {
15414
+ jApi: jamespot_user_api.JamespotUserApi;
15415
+ };
15416
+ rejectValue?: unknown;
15417
+ serializedErrorType?: unknown;
15418
+ pendingMeta?: unknown;
15419
+ fulfilledMeta?: unknown;
15420
+ rejectedMeta?: unknown;
15421
+ }>;
15013
15422
  setCurrentApp: _reduxjs_toolkit.ActionCreatorWithPayload<any, "currentStudioApp/setCurrentApp">;
15014
15423
  resetCurrentApp: _reduxjs_toolkit.ActionCreatorWithoutPayload<"currentStudioApp/resetCurrentApp">;
15015
15424
  setHasChanged: _reduxjs_toolkit.ActionCreatorWithPayload<any, "currentStudioApp/setHasChanged">;
@@ -15019,6 +15428,10 @@ declare const studio: {
15019
15428
  selectStudioAppsList: typeof selectStudioAppsList;
15020
15429
  selectCurrentStudioApp: typeof selectCurrentStudioApp;
15021
15430
  };
15431
+ utils: {
15432
+ updateViewsFromFields: typeof updateViewsFromFields;
15433
+ generateNewFormField: typeof generateNewFormField;
15434
+ };
15022
15435
  };
15023
15436
 
15024
- export { APP_STATUS_TYPE, AUDIENCE, AnimationSliceListState, AnimationStatsCurrentSliceState, AnimationStatsSliceState, Animations, AnimationsRootState, ApiError, 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, RTDispatch, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, SocialActions, 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 };
15437
+ export { APP_STATUS_TYPE, AUDIENCE, AccessRightObjectList, Action, AnimationSliceListState, AnimationStatsCurrentSliceState, AnimationStatsSliceState, Animations, AnimationsRootState, ApiError, AppAttrSolrModel, AppAttrWidgetModel, AppColumnsDefaultTypes, AppFieldFormProperty, AppFieldFormPropertyTypes, AppFieldFormPropertyTypesValues, AppFieldView, AppFieldsFormItem, AppFormBannedFromViews, AppFormFieldOnlyInView, AppFormFixedList, AppFormItemTypes, AppFormItemTypesValues, AppFormNoAsFieldList, AppFormNonPrimaryList, AppFormPrimaryList, AppFormPrimaryListValues, AppFormUniqueList, AppFormUniqueListCheck, AppInstallForType, AppLabelContentType, AppLabelsType, AppServerDisplayModel, AppServerDisplaysModel, AppServerViewModel, AppStatusKeys, AppStatusType, AppTableAttributesModel, AppTableModel, AppTypeServerModel, AppViewFieldItem, AppViewFieldsItems, AppViews, AppViewsFields, Application, ApplicationRootState, AssetReservation, AssetReservationRootState, Attribute, Bookmark, BookmarkRootState, ChannelsListRootState, ChannelsListState, CheckBoxOption, Columns, Comment, CommentListRootState, CommentListState, CommentRootState, CommentsList, ContentTypePropertyValue, Create, CreateComposant, Description, Display, DisplayComposant, Displays, EditorProps, EditorsRootState, EditorsState, Element, ExtraAppFieldsItemViews, ExtraAppFieldsItemViewsValues, Faq, FaqRootState, Hook, HookRootState, InstalledApp, JLandMapFront, JLandRootState, JType, MODE_EDIT, MODE_VIEW, MagicPad, MagicPadRootState, MagicPadSliceRootState, Manifest, MapCreationFront, MapExtraFieldsWithView, MediaLibrary, MediaLibraryRootState, MediaLibraryState, Model, ModelRootState, Network, NetworkRootState, OptionsClass, PagingState, ParamsClass, Platform, PlatformRootState, RTDispatch, ReservationForm, Right, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, SocialActions, Solr, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, StudioWidget, TVDisplay, TVDisplayRootState, Table, TaxonomyPropertyValue, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, Values, 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 };