jamespot-front-business 1.1.23 → 1.1.25

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
@@ -2,7 +2,7 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
2
  import { EntityState, Action, Dispatch as Dispatch$1, PayloadAction } from '@reduxjs/toolkit';
3
3
  import * as _reduxjs_toolkit_dist_tsHelpers from '@reduxjs/toolkit/dist/tsHelpers';
4
4
  import * as jamespot_user_api from 'jamespot-user-api';
5
- import { ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, JLandMap, AdminLicensesNotAssigned, Model as Model$1, WedocFileType, jUserLittle, PagingResults, TVChannelList, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys, WidgetDefinitionProps, WidgetsState, CombinedWidgetContent, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
5
+ import { ApplicationType, WidgetsRootState, JamespotUserApi, AudienceAutocomplete, ReservationList, BookableAssetList, AssetReservationConfiguration, BookmarkRawList, FaqHookProperties, FaqAccess, ExtendedFaqCategory, FaqList, JLandMap, AdminLicensesNotAssigned, Model as Model$1, WedocFileType, jUserLittle, PagingResults, TVChannelList, jUserList, WidgetKeys, WidgetWrapperProps, WidgetTypeKeys, WidgetDefinitionProps, WidgetsState, CombinedWidgetContent, WidgetVector, WidgetStateProps } from 'jamespot-user-api';
6
6
  import * as redux from 'redux';
7
7
  import { Dispatch } from 'redux';
8
8
  import React from 'react';
@@ -376,19 +376,26 @@ declare const Bookmark: {
376
376
  };
377
377
 
378
378
  declare type FaqConfigState = Loading & Partial<FaqHookProperties> & {
379
- taxonomyId?: string;
379
+ access: FaqAccess;
380
380
  };
381
381
  declare const FaqConfigSlice: _reduxjs_toolkit.Slice<FaqConfigState, {}, "config">;
382
382
 
383
+ declare type FaqCategoriesState = Loading & {
384
+ categories: ExtendedFaqCategory<FaqList>[] | null;
385
+ };
386
+ declare const FaqCategoriesSlice: _reduxjs_toolkit.Slice<FaqCategoriesState, {}, "categories">;
387
+
383
388
  declare const FaqSlice: {
384
389
  name: "faq";
385
390
  reducer: redux.Reducer<redux.CombinedState<{
386
391
  config: FaqConfigState;
392
+ categories: FaqCategoriesState;
387
393
  }>, redux.AnyAction>;
388
394
  };
389
395
  declare type FaqRootState = {
390
396
  [FaqSlice.name]: {
391
397
  [FaqConfigSlice.name]: FaqConfigState;
398
+ [FaqCategoriesSlice.name]: FaqCategoriesState;
392
399
  };
393
400
  };
394
401
  declare const Faq: {
@@ -396,12 +403,32 @@ declare const Faq: {
396
403
  name: "faq";
397
404
  reducer: redux.Reducer<redux.CombinedState<{
398
405
  config: FaqConfigState;
406
+ categories: FaqCategoriesState;
399
407
  }>, redux.AnyAction>;
400
408
  };
401
409
  actions: {
402
410
  fetchFaqConfig: _reduxjs_toolkit.AsyncThunk<{
403
- taxonomyId: string;
404
- _web: "" | "0" | "1";
411
+ _web: "" | "0" | "1" | undefined;
412
+ appImage: string | undefined;
413
+ appImageText: string | undefined;
414
+ access: jamespot_user_api.FaqAccess;
415
+ } | {
416
+ _web: string;
417
+ appImage?: never;
418
+ appImageText?: never;
419
+ access?: never;
420
+ }, void, {
421
+ state?: unknown;
422
+ dispatch?: redux.Dispatch<redux.AnyAction>;
423
+ extra?: unknown;
424
+ rejectValue?: unknown;
425
+ serializedErrorType?: unknown;
426
+ pendingMeta?: unknown;
427
+ fulfilledMeta?: unknown;
428
+ rejectedMeta?: unknown;
429
+ }>;
430
+ fetchFaqCategories: _reduxjs_toolkit.AsyncThunk<{
431
+ categories: jamespot_user_api.ExtendedFaqCategory<jamespot_user_api.FaqList>[];
405
432
  }, void, {
406
433
  state?: unknown;
407
434
  dispatch?: redux.Dispatch<redux.AnyAction>;
@@ -415,6 +442,7 @@ declare const Faq: {
415
442
  };
416
443
  selectors: {
417
444
  selectFaqConfig: (state: FaqRootState) => FaqConfigState;
445
+ selectFaqCategories: (state: FaqRootState) => FaqCategoriesState;
418
446
  };
419
447
  };
420
448
 
@@ -863,6 +891,7 @@ declare const UserCurrent: {
863
891
  };
864
892
  utils: {
865
893
  isAdmin: (userCurrent: jUserList) => boolean;
894
+ isLogged: (userCurrent: jUserList) => boolean;
866
895
  };
867
896
  };
868
897
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-front-business",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
4
4
  "description": "typescript utils",
5
5
  "main": "dist/cjs.js",
6
6
  "module": "dist/esm.js",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@reduxjs/toolkit": "1.9.0",
40
- "jamespot-user-api": "^1.0.119",
40
+ "jamespot-user-api": "^1.0.121",
41
41
  "react-redux": "7.2.9",
42
42
  "redux": "4.2.0"
43
43
  },