jamespot-front-business 1.1.44 → 1.1.45

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,7 +1,7 @@
1
1
  import * as redux from 'redux';
2
2
  import { Dispatch as Dispatch$1 } from 'redux';
3
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, JLandMap, AdminLicensesNotAssigned, Model as Model$1, NetworkType, WedocFileType, jUserLittle, PagingResults, TVChannelList, TinyMCECommonOptions, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys, WidgetDefinitionProps, CombinedWidgetContent, WidgetsState, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
4
+ import { AnimationConfigurationType, ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, StudioApplicationBase, jTaxonomyLittle, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, FaqAccess, ExtendedFaqCategory, FaqList, HookListType, JLandMap, AdminLicensesNotAssigned, Model as Model$1, NetworkType, WedocFileType, jUserLittle, PagingResults, TVChannelList, TinyMCECommonOptions, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys, WidgetDefinitionProps, CombinedWidgetContent, WidgetsState, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
5
5
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
6
6
  import { EntityState, Dispatch, Action, PayloadAction } from '@reduxjs/toolkit';
7
7
  import * as _reduxjs_toolkit_dist_tsHelpers from '@reduxjs/toolkit/dist/tsHelpers';
@@ -1266,6 +1266,113 @@ declare const Faq: {
1266
1266
  };
1267
1267
  };
1268
1268
 
1269
+ declare const slice$1: _reduxjs_toolkit.Slice<{}, {
1270
+ initHooks: (_: Draft<S>, { payload }: PayloadAction<HookListType>) => {
1271
+ DriveHook?: ({
1272
+ isActive: boolean;
1273
+ } & {
1274
+ drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>>;
1275
+ }) | undefined;
1276
+ calendarHook?: ({
1277
+ isActive: boolean;
1278
+ } & {
1279
+ label: string;
1280
+ }) | undefined;
1281
+ FileBankHook?: ({
1282
+ isActive: boolean;
1283
+ } & {
1284
+ orderBy: string;
1285
+ order: "DESC" | "ASC";
1286
+ }) | undefined;
1287
+ };
1288
+ }, "hooks">;
1289
+ declare type HookRootState = {
1290
+ [slice$1.name]: HookListType;
1291
+ };
1292
+ declare const Hook: {
1293
+ slice: _reduxjs_toolkit.Slice<{}, {
1294
+ initHooks: (_: Draft<S>, { payload }: PayloadAction<HookListType>) => {
1295
+ DriveHook?: ({
1296
+ isActive: boolean;
1297
+ } & {
1298
+ drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>>;
1299
+ }) | undefined;
1300
+ calendarHook?: ({
1301
+ isActive: boolean;
1302
+ } & {
1303
+ label: string;
1304
+ }) | undefined;
1305
+ FileBankHook?: ({
1306
+ isActive: boolean;
1307
+ } & {
1308
+ orderBy: string;
1309
+ order: "DESC" | "ASC";
1310
+ }) | undefined;
1311
+ };
1312
+ }, "hooks">;
1313
+ actions: _reduxjs_toolkit.CaseReducerActions<{
1314
+ initHooks: (_: Draft<S>, { payload }: PayloadAction<HookListType>) => {
1315
+ DriveHook?: ({
1316
+ isActive: boolean;
1317
+ } & {
1318
+ drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>>;
1319
+ }) | undefined;
1320
+ calendarHook?: ({
1321
+ isActive: boolean;
1322
+ } & {
1323
+ label: string;
1324
+ }) | undefined;
1325
+ FileBankHook?: ({
1326
+ isActive: boolean;
1327
+ } & {
1328
+ orderBy: string;
1329
+ order: "DESC" | "ASC";
1330
+ }) | undefined;
1331
+ };
1332
+ }, "hooks">;
1333
+ selectors: {
1334
+ selectHooks: (state: HookRootState) => {
1335
+ DriveHook?: ({
1336
+ isActive: boolean;
1337
+ } & {
1338
+ drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>>;
1339
+ }) | undefined;
1340
+ calendarHook?: ({
1341
+ isActive: boolean;
1342
+ } & {
1343
+ label: string;
1344
+ }) | undefined;
1345
+ FileBankHook?: ({
1346
+ isActive: boolean;
1347
+ } & {
1348
+ orderBy: string;
1349
+ order: "DESC" | "ASC";
1350
+ }) | undefined;
1351
+ };
1352
+ selectHook: <T extends "DriveHook" | "calendarHook" | "FileBankHook">(state: HookRootState, hook: T) => {
1353
+ DriveHook?: ({
1354
+ isActive: boolean;
1355
+ } & {
1356
+ drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>>;
1357
+ }) | undefined;
1358
+ calendarHook?: ({
1359
+ isActive: boolean;
1360
+ } & {
1361
+ label: string;
1362
+ }) | undefined;
1363
+ FileBankHook?: ({
1364
+ isActive: boolean;
1365
+ } & {
1366
+ orderBy: string;
1367
+ order: "DESC" | "ASC";
1368
+ }) | undefined;
1369
+ }[T] | undefined;
1370
+ };
1371
+ utils: {
1372
+ buildDrivesArrayFromObject: (drives: Partial<Record<"drive_microsoft_graph" | "drive_dropbox" | "drive_google", boolean>> | undefined) => string[];
1373
+ };
1374
+ };
1375
+
1269
1376
  declare type MapCreateState = Loading$1 & {
1270
1377
  map: MapCreationFront$1;
1271
1378
  status: 'success' | 'error' | undefined;
@@ -1781,18 +1888,114 @@ declare const TinyMCE: {
1781
1888
  declare type UserCurrentRootState = {
1782
1889
  userCurrent: jUserList;
1783
1890
  };
1784
- declare const slice: _reduxjs_toolkit.Slice<jUserList, {
1785
- init: (_: Draft<S>, { payload }: PayloadAction<jUserList>) => jUserList;
1891
+ declare const slice: _reduxjs_toolkit.Slice<zod.objectOutputType<{
1892
+ type: zod.ZodString;
1893
+ id: zod.ZodNumber;
1894
+ mainType: zod.ZodString;
1895
+ uri: zod.ZodString;
1896
+ dateCreation: zod.ZodString;
1897
+ dateModified: zod.ZodString;
1898
+ title: zod.ZodString;
1899
+ _url: zod.ZodString;
1900
+ level: zod.ZodNativeEnum<{
1901
+ readonly ADMIN: 9;
1902
+ readonly USER: 5;
1903
+ readonly EXTERNAL: 3;
1904
+ readonly GUEST: 0;
1905
+ }>;
1906
+ active: zod.ZodNumber;
1907
+ }, 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">, {
1908
+ init: (_: Draft<S>, { payload }: PayloadAction<jUserList>) => zod.objectOutputType<{
1909
+ type: zod.ZodString;
1910
+ id: zod.ZodNumber;
1911
+ mainType: zod.ZodString;
1912
+ uri: zod.ZodString;
1913
+ dateCreation: zod.ZodString;
1914
+ dateModified: zod.ZodString;
1915
+ title: zod.ZodString;
1916
+ _url: zod.ZodString;
1917
+ level: zod.ZodNativeEnum<{
1918
+ readonly ADMIN: 9;
1919
+ readonly USER: 5;
1920
+ readonly EXTERNAL: 3;
1921
+ readonly GUEST: 0;
1922
+ }>;
1923
+ active: zod.ZodNumber;
1924
+ }, 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">;
1786
1925
  }, "userCurrent">;
1787
1926
  declare const UserCurrent: {
1788
- slice: _reduxjs_toolkit.Slice<jUserList, {
1789
- init: (_: Draft<S>, { payload }: PayloadAction<jUserList>) => jUserList;
1927
+ slice: _reduxjs_toolkit.Slice<zod.objectOutputType<{
1928
+ type: zod.ZodString;
1929
+ id: zod.ZodNumber;
1930
+ mainType: zod.ZodString;
1931
+ uri: zod.ZodString;
1932
+ dateCreation: zod.ZodString;
1933
+ dateModified: zod.ZodString;
1934
+ title: zod.ZodString;
1935
+ _url: zod.ZodString;
1936
+ level: zod.ZodNativeEnum<{
1937
+ readonly ADMIN: 9;
1938
+ readonly USER: 5;
1939
+ readonly EXTERNAL: 3;
1940
+ readonly GUEST: 0;
1941
+ }>;
1942
+ active: zod.ZodNumber;
1943
+ }, 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">, {
1944
+ init: (_: Draft<S>, { payload }: PayloadAction<jUserList>) => zod.objectOutputType<{
1945
+ type: zod.ZodString;
1946
+ id: zod.ZodNumber;
1947
+ mainType: zod.ZodString;
1948
+ uri: zod.ZodString;
1949
+ dateCreation: zod.ZodString;
1950
+ dateModified: zod.ZodString;
1951
+ title: zod.ZodString;
1952
+ _url: zod.ZodString;
1953
+ level: zod.ZodNativeEnum<{
1954
+ readonly ADMIN: 9;
1955
+ readonly USER: 5;
1956
+ readonly EXTERNAL: 3;
1957
+ readonly GUEST: 0;
1958
+ }>;
1959
+ active: zod.ZodNumber;
1960
+ }, 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">;
1790
1961
  }, "userCurrent">;
1791
1962
  actions: {
1792
- init: _reduxjs_toolkit.ActionCreatorWithPayload<jUserList, "userCurrent/init">;
1963
+ init: _reduxjs_toolkit.ActionCreatorWithPayload<zod.objectOutputType<{
1964
+ type: zod.ZodString;
1965
+ id: zod.ZodNumber;
1966
+ mainType: zod.ZodString;
1967
+ uri: zod.ZodString;
1968
+ dateCreation: zod.ZodString;
1969
+ dateModified: zod.ZodString;
1970
+ title: zod.ZodString;
1971
+ _url: zod.ZodString;
1972
+ level: zod.ZodNativeEnum<{
1973
+ readonly ADMIN: 9;
1974
+ readonly USER: 5;
1975
+ readonly EXTERNAL: 3;
1976
+ readonly GUEST: 0;
1977
+ }>;
1978
+ active: zod.ZodNumber;
1979
+ }, 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">, "userCurrent/init">;
1793
1980
  };
1794
1981
  selectors: {
1795
- get: (state: UserCurrentRootState) => jUserList;
1982
+ get: (state: UserCurrentRootState) => zod.objectOutputType<{
1983
+ type: zod.ZodString;
1984
+ id: zod.ZodNumber;
1985
+ mainType: zod.ZodString;
1986
+ uri: zod.ZodString;
1987
+ dateCreation: zod.ZodString;
1988
+ dateModified: zod.ZodString;
1989
+ title: zod.ZodString;
1990
+ _url: zod.ZodString;
1991
+ level: zod.ZodNativeEnum<{
1992
+ readonly ADMIN: 9;
1993
+ readonly USER: 5;
1994
+ readonly EXTERNAL: 3;
1995
+ readonly GUEST: 0;
1996
+ }>;
1997
+ active: zod.ZodNumber;
1998
+ }, 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">;
1796
1999
  };
1797
2000
  utils: {
1798
2001
  isAdmin: (userCurrent: jUserList) => boolean;
@@ -1975,7 +2178,7 @@ declare type CurrentStudioAppRootState = {
1975
2178
  };
1976
2179
 
1977
2180
  declare type StudioAppsListState = {
1978
- studioAppsList: StudioApplication[];
2181
+ studioAppsList?: StudioApplication[];
1979
2182
  loadingStudioAppsList: 'idle' | 'pending';
1980
2183
  deleteStudioAppStatus: 'idle' | 'pending';
1981
2184
  suspendStudioAppStatus: 'idle' | 'pending';
@@ -2137,4 +2340,4 @@ declare const studio: {
2137
2340
  };
2138
2341
  };
2139
2342
 
2140
- 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, CommentRootState, ContentTypePropertyValue, EditorProps, EditorsRootState, EditorsState, ExtraAppFieldsItemViews, Faq, FaqRootState, JLandMapFront, JLandRootState, JType, MODE_EDIT, MODE_VIEW, MapCreationFront, MapExtraFieldsWithView, Model, ModelRootState, Network, NetworkRootState, Platform, PlatformRootState, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, TVDisplay, TVDisplayRootState, TaxonomyPropertyValue, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, ViewName, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, animationsReducer, animationsSlice, deleteCurrentAnimation, fetchCurrentAnimation, fetchCurrentAnimationApp, jland, saveCurrentAnimation, slice, studio, toggleAnimationIsActive, updateWidgetContent, viewsList };
2343
+ 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, CommentRootState, ContentTypePropertyValue, EditorProps, EditorsRootState, EditorsState, ExtraAppFieldsItemViews, Faq, FaqRootState, Hook, HookRootState, JLandMapFront, JLandRootState, JType, MODE_EDIT, MODE_VIEW, MapCreationFront, MapExtraFieldsWithView, Model, ModelRootState, Network, NetworkRootState, Platform, PlatformRootState, ReservationForm, RootDispatch, RootState, STUDIO_VIEW, Share, ShareRootState, StatusType, StudioAppBase, StudioAppManifest, StudioApplication, StudioAudienceType, StudioRootState, TVDisplay, TVDisplayRootState, TaxonomyPropertyValue, ThunkApiConfig, TinyMCE, TinyMCERootState, Toast, ToastRootState, UserCurrent, UserCurrentRootState, ViewName, WedocApp, WedocAppRootState, WedocAppTabKeys, Widget, WidgetEditor, WidgetModalProps, actions, animationsReducer, animationsSlice, deleteCurrentAnimation, fetchCurrentAnimation, fetchCurrentAnimationApp, jland, saveCurrentAnimation, slice, studio, toggleAnimationIsActive, updateWidgetContent, viewsList };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-front-business",
3
- "version": "1.1.44",
3
+ "version": "1.1.45",
4
4
  "description": "typescript utils",
5
5
  "main": "dist/cjs.js",
6
6
  "module": "dist/esm.js",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "@reduxjs/toolkit": "1.9.0",
41
41
  "@types/uuid": "^9.0.8",
42
- "jamespot-user-api": "^1.0.154",
42
+ "jamespot-user-api": "^1.0.155",
43
43
  "react-redux": "7.2.9",
44
44
  "redux": "4.2.0",
45
45
  "uuid": "^9.0.1"