jamespot-front-business 1.1.67 → 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';
@@ -2679,6 +2679,117 @@ declare const Comment: {
2679
2679
  discardComments: _reduxjs_toolkit.ActionCreatorWithPayload<{
2680
2680
  idArticle: number;
2681
2681
  }, "commentList/discardComments">;
2682
+ hydrateComment: _reduxjs_toolkit.ActionCreatorWithPayload<{
2683
+ idArticle: number;
2684
+ list: {
2685
+ type: string;
2686
+ id: number;
2687
+ mainType: string;
2688
+ uri: string;
2689
+ dateCreation: string;
2690
+ dateModified: string | null;
2691
+ description: string | null;
2692
+ _user: jamespot_user_api.jObjectBase & {
2693
+ title: string;
2694
+ _url: string;
2695
+ } & {
2696
+ [key: string]: string | number | null;
2697
+ level: 0 | 3 | 5 | 9;
2698
+ dateCreation: string;
2699
+ dateModified: string;
2700
+ };
2701
+ _right: jamespot_user_api.Rights;
2702
+ _attachedFiles?: {
2703
+ type: string;
2704
+ id: number;
2705
+ mainType: string;
2706
+ uri: string;
2707
+ dateCreation: string;
2708
+ dateModified: string | null;
2709
+ title: string;
2710
+ _url: string;
2711
+ mimetype: string;
2712
+ size: number;
2713
+ path?: string | undefined;
2714
+ }[] | undefined;
2715
+ _actions?: Record<string, {
2716
+ type: string;
2717
+ class: string;
2718
+ label: string;
2719
+ stats: {
2720
+ total: number;
2721
+ };
2722
+ cssClass: string;
2723
+ cssColor: string;
2724
+ isActive: boolean;
2725
+ struct: {
2726
+ type: string;
2727
+ targetId: number;
2728
+ targetType: string;
2729
+ action: string;
2730
+ do: string;
2731
+ };
2732
+ }> | undefined;
2733
+ _widgets?: jamespot_user_api.WidgetWrapperGeneric<({
2734
+ layers?: string[] | undefined;
2735
+ } & jamespot_user_api.WidgetArticleAttachmentType) | ({
2736
+ layers?: string[] | undefined;
2737
+ } & jamespot_user_api.WidgetArticleButtonType) | ({
2738
+ layers?: string[] | undefined;
2739
+ } & jamespot_user_api.WidgetArticleGalleryType) | ({
2740
+ layers?: string[] | undefined;
2741
+ } & jamespot_user_api.WidgetArticleImageType) | ({
2742
+ layers?: string[] | undefined;
2743
+ } & jamespot_user_api.WidgetArticleTitleType) | ({
2744
+ layers?: string[] | undefined;
2745
+ } & jamespot_user_api.WidgetArticleTextType) | ({
2746
+ layers?: string[] | undefined;
2747
+ } & jamespot_user_api.WidgetArticleSliderType) | ({
2748
+ layers?: string[] | undefined;
2749
+ } & jamespot_user_api.WidgetType<{
2750
+ widgets?: jamespot_user_api.WidgetBaseType[] | undefined;
2751
+ arr?: jamespot_user_api.WidgetCheckListContentArr[] | undefined;
2752
+ css?: Record<string, string> | undefined;
2753
+ edit?: boolean | undefined;
2754
+ }>) | ({
2755
+ layers?: string[] | undefined;
2756
+ } & jamespot_user_api.WidgetDatasourceTableType) | ({
2757
+ layers?: string[] | undefined;
2758
+ } & {
2759
+ name: jamespot_user_api.WidgetsName.ExcelDatasourceTable;
2760
+ uniqid: string;
2761
+ content: {
2762
+ uri?: string | undefined;
2763
+ limit?: number | boolean | undefined;
2764
+ tableColumnsData?: {
2765
+ name?: string | undefined;
2766
+ label?: string | undefined;
2767
+ isVisible?: boolean | undefined;
2768
+ textEllipsis?: boolean | undefined;
2769
+ dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
2770
+ numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
2771
+ }[] | undefined;
2772
+ tableHeadColor?: string | undefined;
2773
+ tableHeadTextColor?: string | undefined;
2774
+ tableHeadIconColor?: string | undefined;
2775
+ tableRowColor?: string | undefined;
2776
+ tableRowTextColor?: string | undefined;
2777
+ tableBorderRadius?: number | undefined;
2778
+ tableSizedColumns?: boolean | undefined;
2779
+ tableSizedColumnsWidth?: number | undefined;
2780
+ };
2781
+ }) | ({
2782
+ layers?: string[] | undefined;
2783
+ } & jamespot_user_api.WidgetPresenceType)>[] | undefined;
2784
+ }[];
2785
+ }, "commentList/hydrateComment">;
2786
+ updateComment: _reduxjs_toolkit.ActionCreatorWithPayload<{
2787
+ idArticle: number;
2788
+ idComment: number;
2789
+ data: {
2790
+ description: string;
2791
+ };
2792
+ }, "commentList/updateComment">;
2682
2793
  fetchComments: _reduxjs_toolkit.AsyncThunk<CommentsList, {
2683
2794
  idArticle: number;
2684
2795
  attachment?: boolean | undefined;
@@ -12910,7 +13021,7 @@ declare const SocialActions: {
12910
13021
  };
12911
13022
 
12912
13023
  type RootState = Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & WidgetsRootState & WidgetsRootState & WedocAppRootState & UserCurrentRootState>;
12913
- type RootDispatch = Dispatch$1<Action>;
13024
+ type RootDispatch = Dispatch$1<Action$1>;
12914
13025
  type RTDispatch = Dispatch<any>;
12915
13026
  type ApiError = {
12916
13027
  error: number;
@@ -12929,18 +13040,18 @@ declare const AUDIENCE: {
12929
13040
  readonly CUSTOM: "0";
12930
13041
  };
12931
13042
  type StudioAudienceType = typeof AUDIENCE.ALL | typeof AUDIENCE.CUSTOM;
12932
- declare enum StatusType {
12933
- draft = "draft",
12934
- installed = "installed",
12935
- suspended = "suspended"
12936
- }
13043
+ declare const StatusType: {
13044
+ readonly draft: "draft";
13045
+ readonly installed: "installed";
13046
+ readonly suspended: "suspended";
13047
+ };
12937
13048
  declare const APP_STATUS_TYPE: {
12938
- DRAFT: StatusType;
12939
- INSTALLED: StatusType;
12940
- SUSPENDED: StatusType;
13049
+ DRAFT: "draft";
13050
+ INSTALLED: "installed";
13051
+ SUSPENDED: "suspended";
12941
13052
  };
12942
13053
  type AppStatusKeys = keyof typeof APP_STATUS_TYPE;
12943
- type AppStatusType = StatusType.draft | StatusType.installed | StatusType.suspended;
13054
+ type AppStatusType = ValueOf<typeof StatusType>;
12944
13055
  interface StudioAppBase extends StudioApplicationBase {
12945
13056
  articlesCount?: number;
12946
13057
  }
@@ -12949,8 +13060,12 @@ interface StudioApplication {
12949
13060
  status: AppStatusType;
12950
13061
  author?: string;
12951
13062
  studioVersion: number;
13063
+ migratedFrom?: number;
12952
13064
  manifest: StudioAppManifest;
12953
13065
  inWorkVersion?: StudioApplication;
13066
+ syncViewFieldOrder?: {
13067
+ [key in ViewName]: boolean;
13068
+ };
12954
13069
  fields: AppFieldsFormItem[];
12955
13070
  views: AppViewsFields;
12956
13071
  audience: StudioAudienceType;
@@ -12991,7 +13106,7 @@ declare const STUDIO_VIEW: {
12991
13106
  };
12992
13107
  type AppFieldsFormItem = {
12993
13108
  id: string;
12994
- type: AppFormItemTypes;
13109
+ type: AppFormItemTypesValues;
12995
13110
  properties?: AppFieldFormProperty[];
12996
13111
  mandatory?: boolean;
12997
13112
  views?: AppViews;
@@ -13002,7 +13117,7 @@ type AppFieldsFormItem = {
13002
13117
  isLockedValue?: boolean;
13003
13118
  };
13004
13119
  type AppViewFieldItem = {
13005
- type: AppFormItemTypes | ExtraAppFieldsItemViews;
13120
+ type: AppFormItemTypesValues | ExtraAppFieldsItemViewsValues;
13006
13121
  properties: AppFieldFormProperty[];
13007
13122
  isUsed: boolean;
13008
13123
  isOptional: boolean;
@@ -13032,61 +13147,65 @@ type AppViewFieldsItems = {
13032
13147
  };
13033
13148
  type ViewName = 'create' | 'popup' | 'edit' | 'list' | 'filter' | 'view';
13034
13149
  declare const viewsList: ViewName[];
13035
- declare enum AppFormItemTypes {
13036
- IMAGE = "IMAGE",
13037
- DESCRIPTION = "DESCRIPTION",
13038
- TEXT = "TEXT",
13039
- TEXTAREA = "TEXTAREA",
13040
- TEXTAREAHTML = "TEXTAREAHTML",
13041
- DATE = "DATE",
13042
- DATETIME = "DATETIME",
13043
- NUMBER = "NUMBER",
13044
- URL = "URL",
13045
- EMAIL = "EMAIL",
13046
- SELECT = "SELECT",
13047
- CHECKBOX = "CHECKBOX",
13048
- TOGGLE = "TOGGLE",
13049
- RADIO = "RADIO",
13050
- TAGS = "TAGS",
13051
- ADDFILEATTACHMENT = "ADDFILEATTACHMENT",
13052
- CODEHTML = "CODEHTML",
13053
- USERLINK = "USERLINK",
13054
- CONTENTLINK = "CONTENTLINK",
13055
- RANGE = "RANGE"
13056
- }
13057
- declare enum ExtraAppFieldsItemViews {
13058
- TITLE = "TITLE",
13059
- USER = "USER",
13060
- PUBLISHTO = "PUBLISHTO",
13061
- SENDALERTTOSUBSCRIBERS = "SENDALERTTOSUBSCRIBERS",
13062
- RECEIVEACOPY = "RECEIVEACOPY",
13063
- CREATIONDATE = "CREATIONDATE"
13064
- }
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>;
13065
13182
  type CheckBoxOption = {
13066
13183
  label: string;
13067
13184
  value: any;
13068
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>;
13069
13196
  type AppFieldFormProperty = {
13070
- propertyType: AppFieldFormPropertyTypes;
13197
+ propertyType: AppFieldFormPropertyTypesValues;
13071
13198
  isRequired?: boolean;
13072
13199
  checkBoxOptions?: CheckBoxOption[];
13073
13200
  value?: any;
13074
13201
  isOptionsEditorEnhanced?: boolean;
13075
13202
  };
13076
- declare enum AppFieldFormPropertyTypes {
13077
- LABEL = "label",
13078
- DESCRIPTION = "description",
13079
- RICHTEXT = "richtext",
13080
- CHECKBOX = "checkbox",
13081
- OPTIONS_EDITOR = "options_editor",
13082
- TAXONOMY = "taxonomy",
13083
- CONTENTTYPE = "contenttype"
13084
- }
13085
- declare const AppFormUniqueList: AppFormItemTypes[];
13086
- declare const AppFormBannedFromViews: Map<AppFormItemTypes, ViewName[]>;
13203
+ declare const AppFormUniqueList: ("IMAGE" | "DESCRIPTION")[];
13204
+ declare const AppFormUniqueListCheck: string[];
13205
+ declare const AppFormBannedFromViews: Map<AppFormItemTypesValues, ViewName[]>;
13087
13206
  type MappedExtraFieldsWithView = {
13088
- fixed: ExtraAppFieldsItemViews[];
13089
- optional: ExtraAppFieldsItemViews[];
13207
+ fixed: ExtraAppFieldsItemViewsValues[];
13208
+ optional: ExtraAppFieldsItemViewsValues[];
13090
13209
  };
13091
13210
  declare const MapExtraFieldsWithView: {
13092
13211
  [k: string]: MappedExtraFieldsWithView;
@@ -13098,7 +13217,7 @@ type AppFieldView = {
13098
13217
  interface AppTypeServerModel {
13099
13218
  typeName: string;
13100
13219
  typeLabel: string;
13101
- author: string;
13220
+ author?: string;
13102
13221
  typeLabelPlural: string;
13103
13222
  typeLabelLinkSingular: string;
13104
13223
  typeLabelLinkPlural: string;
@@ -13114,7 +13233,7 @@ interface AppTypeServerModel {
13114
13233
  mainType: string;
13115
13234
  classImpl: string;
13116
13235
  classCodeLocation: string;
13117
- capture: string;
13236
+ capture?: string;
13118
13237
  tables: Array<AppTableModel>;
13119
13238
  displays?: AppServerDisplaysModel;
13120
13239
  }
@@ -13179,7 +13298,7 @@ interface AppServerDisplayModel {
13179
13298
  composants: Array<AppServerViewModel>;
13180
13299
  }
13181
13300
  interface AppServerViewModel {
13182
- element: 'attr' | 'html';
13301
+ element: 'attr' | 'html' | 'image' | 'publishTo';
13183
13302
  composants: [];
13184
13303
  name?: string;
13185
13304
  format?: string;
@@ -13198,9 +13317,11 @@ type AppInstallForType = Partial<{
13198
13317
  cssColor: string;
13199
13318
  class: string;
13200
13319
  Pseudo: string;
13320
+ _url: string;
13201
13321
  }>;
13202
- declare const AppColumnsDefaultTypes: (AppFormItemTypes | ExtraAppFieldsItemViews)[];
13203
- declare const AppFormPrimaryList: AppFormItemTypes[];
13322
+ declare const AppColumnsDefaultTypes: string[];
13323
+ declare const AppFormPrimaryList: "DESCRIPTION"[];
13324
+ declare const AppFormPrimaryListValues: string[];
13204
13325
  type TaxonomyPropertyValue = Pick<jTaxonomyLittle, 'type' | 'id' | 'title'>;
13205
13326
  type JType = {
13206
13327
  cssClass: string;
@@ -13210,10 +13331,220 @@ type JType = {
13210
13331
  mainType: string;
13211
13332
  };
13212
13333
  type ContentTypePropertyValue = Pick<JType, 'type' | 'label'>;
13213
- declare const AppFormFixedList: ExtraAppFieldsItemViews[];
13214
- declare const AppFormNoAsFieldList: Array<ExtraAppFieldsItemViews | AppFormItemTypes>;
13215
- declare const AppFormFieldOnlyInView: AppFormItemTypes[];
13216
- 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
+ }
13217
13548
 
13218
13549
  interface CurrentStudioAppState {
13219
13550
  currentStudioApp: StudioApplication | null;
@@ -13233,12 +13564,17 @@ type StudioAppsListState = {
13233
13564
  suspendStudioAppStatus: 'idle' | 'pending';
13234
13565
  restartStudioAppStatus: 'idle' | 'pending';
13235
13566
  cloneStudioAppStatus: 'idle' | 'pending';
13567
+ createInWorkAppStatus: 'idle' | 'pending';
13236
13568
  createNewStudioAppStatus: 'idle' | 'pending';
13237
13569
  };
13238
13570
  type StudioAppsListRootState = {
13239
13571
  studioAppsList: StudioAppsListState;
13240
13572
  };
13241
13573
 
13574
+ declare function updateViewsFromFields(clonedApp: StudioApplication, appFields: AppFieldsFormItem[]): any;
13575
+
13576
+ declare function generateNewFormField(type: AppFormItemTypesValues, viewsDefault?: boolean): AppFieldsFormItem;
13577
+
13242
13578
  type StudioRootState = {
13243
13579
  studio: StudioAppsListRootState & CurrentStudioAppRootState;
13244
13580
  };
@@ -13253,7 +13589,7 @@ declare const studio: {
13253
13589
  }>, redux.AnyAction>;
13254
13590
  };
13255
13591
  actions: {
13256
- fetchStudioAppsList: _reduxjs_toolkit.AsyncThunk<StudioAppBase[], undefined, {
13592
+ fetchStudioAppsList: _reduxjs_toolkit.AsyncThunk<StudioApplication[], IntlFormatters, {
13257
13593
  dispatch: any;
13258
13594
  state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & {
13259
13595
  widgets: {
@@ -13436,7 +13772,7 @@ declare const studio: {
13436
13772
  }>;
13437
13773
  deleteStudioApp: _reduxjs_toolkit.AsyncThunk<jamespot_user_api.BaseMessages, {
13438
13774
  idApp: string;
13439
- status: StatusType;
13775
+ status: AppStatusType;
13440
13776
  }, {
13441
13777
  dispatch: any;
13442
13778
  state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & {
@@ -13986,6 +14322,7 @@ declare const studio: {
13986
14322
  }>;
13987
14323
  cloneStudioApp: _reduxjs_toolkit.AsyncThunk<StudioApplication, {
13988
14324
  idApp: string;
14325
+ inWork?: boolean;
13989
14326
  }, {
13990
14327
  dispatch: any;
13991
14328
  state: Partial<AnimationsRootState & ApplicationRootState & AssetReservationRootState & EditorsRootState & JLandRootState & MagicPadRootState & ModelRootState & ShareRootState & StudioRootState & ToastRootState & TVDisplayRootState & {
@@ -14899,6 +15236,189 @@ declare const studio: {
14899
15236
  fulfilledMeta?: unknown;
14900
15237
  rejectedMeta?: unknown;
14901
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
+ }>;
14902
15422
  setCurrentApp: _reduxjs_toolkit.ActionCreatorWithPayload<any, "currentStudioApp/setCurrentApp">;
14903
15423
  resetCurrentApp: _reduxjs_toolkit.ActionCreatorWithoutPayload<"currentStudioApp/resetCurrentApp">;
14904
15424
  setHasChanged: _reduxjs_toolkit.ActionCreatorWithPayload<any, "currentStudioApp/setHasChanged">;
@@ -14908,6 +15428,10 @@ declare const studio: {
14908
15428
  selectStudioAppsList: typeof selectStudioAppsList;
14909
15429
  selectCurrentStudioApp: typeof selectCurrentStudioApp;
14910
15430
  };
15431
+ utils: {
15432
+ updateViewsFromFields: typeof updateViewsFromFields;
15433
+ generateNewFormField: typeof generateNewFormField;
15434
+ };
14911
15435
  };
14912
15436
 
14913
- 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 };