fansunited-widget-either-or 1.3.0 → 2.0.0-RC1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -35
- package/components/Cards/EitherOrsCard.d.ts +5 -2
- package/components/Cards/WidgetCard.d.ts +5 -2
- package/components/EitherOrs/ActionsMenu.d.ts +9 -0
- package/components/EitherOrs/AdditionalInfo/EitherOrExports.d.ts +7 -0
- package/components/EitherOrs/AdditionalInfo/EitherOrStandings.d.ts +8 -0
- package/components/EitherOrs/AdditionalInfo/EitherOrStats.d.ts +7 -0
- package/components/EitherOrs/AdditionalInfo/ParticipationChart.d.ts +9 -0
- package/components/EitherOrs/AdditionalInfo/TableInfoTabs.d.ts +7 -0
- package/components/EitherOrs/EitherOrRow.d.ts +9 -0
- package/components/EitherOrs/EitherOrs.d.ts +1 -1
- package/components/EitherOrs/EitherOrsTable.d.ts +13 -0
- package/components/EitherOrs/TablePagination.d.ts +10 -0
- package/components/Filters/Filters.d.ts +3 -3
- package/components/Main.d.ts +2 -2
- package/components/MainLayout.d.ts +1 -1
- package/components/Management/Header.d.ts +6 -0
- package/components/Management/MainColumn.d.ts +5 -6
- package/components/Management/ManageEitherOr.d.ts +4 -7
- package/components/Management/Options/AdditionalOptionField.d.ts +9 -0
- package/components/Management/Options/Checkboxes.d.ts +13 -0
- package/components/Management/Options/Option.d.ts +13 -0
- package/components/Management/Options/Options.d.ts +5 -4
- package/components/Management/Points/Points.d.ts +4 -4
- package/components/Management/SideBar/Configuration/Configuration.d.ts +8 -0
- package/components/Management/SideBar/Configuration/Status.d.ts +7 -0
- package/components/Management/{Type → SideBar/Configuration}/Type.d.ts +2 -2
- package/components/Management/SideBar/Configuration/WinningCondition.d.ts +7 -0
- package/components/Management/SideBar/SideBar.d.ts +8 -0
- package/components/Modals/DeleteEitherOrModal.d.ts +10 -0
- package/components/Modals/PreviewModal.d.ts +3 -4
- package/constants/constants.d.ts +249 -4
- package/context/ConfigurationContext.d.ts +9 -0
- package/context/LabelsContext.d.ts +3 -2
- package/either-or-manager.es.d.ts +1 -0
- package/either-or-manager.es.js +83040 -37951
- package/either-or-manager.umd.js +537 -222
- package/factories/EitherOrFactory.d.ts +6 -7
- package/helpers/helpers.d.ts +1 -35
- package/models/Features/Features.d.ts +11 -0
- package/models/Filters/EitherOrFiltersModel.d.ts +2 -1
- package/models/Labels/LabelsModel.d.ts +82 -22
- package/models/RequestBody/RequestBody.d.ts +28 -31
- package/models/Select/SelectOption.d.ts +1 -1
- package/package.json +1 -1
- package/style.css +2 -2
- package/validators/EitherOrValidator.d.ts +3 -5
- package/components/Accordion/Accordion.d.ts +0 -6
- package/components/Buttons/ActionsButtons.d.ts +0 -10
- package/components/Buttons/AddButton.d.ts +0 -7
- package/components/Buttons/ClearButton.d.ts +0 -6
- package/components/Buttons/CopyToClipboard.d.ts +0 -8
- package/components/Buttons/HomeButtons.d.ts +0 -8
- package/components/Buttons/ManageButtons.d.ts +0 -8
- package/components/Buttons/RemoveButton.d.ts +0 -7
- package/components/Buttons/SignOutButton.d.ts +0 -6
- package/components/Buttons/Sportal365/Sportal365Button.d.ts +0 -8
- package/components/Cards/ImagesCard.d.ts +0 -6
- package/components/Checkbox/CheckboxFilter.d.ts +0 -9
- package/components/Login/Login.d.ts +0 -6
- package/components/Management/Branding/Branding.d.ts +0 -8
- package/components/Management/Branding/BrandingImages.d.ts +0 -8
- package/components/Management/Branding/BrandingTabs.d.ts +0 -7
- package/components/Management/Context/Context.d.ts +0 -9
- package/components/Management/Context/ContextTabs.d.ts +0 -7
- package/components/Management/DynamicFields/DynamicFields.d.ts +0 -8
- package/components/Management/EitherOrSelect/EitherOrSelect.d.ts +0 -8
- package/components/Management/Flags/Flags.d.ts +0 -16
- package/components/Management/IDInput/IDInput.d.ts +0 -6
- package/components/Management/Images/FileUploader.d.ts +0 -9
- package/components/Management/Images/Image.d.ts +0 -11
- package/components/Management/Images/Images.d.ts +0 -11
- package/components/Management/Images/Sportal365/Filters/Sportal365ImagesFromToFilter.d.ts +0 -7
- package/components/Management/Images/Sportal365/Sportal365Images.d.ts +0 -9
- package/components/Management/Images/Sportal365/Sportal365ImagesPagination.d.ts +0 -10
- package/components/Management/Images/Sportal365/Sportal365ImagesSearch.d.ts +0 -8
- package/components/Management/InformationInput/InformationInput.d.ts +0 -9
- package/components/Management/ManagementScreenHeader.d.ts +0 -8
- package/components/Management/NumberInput/NumberInput.d.ts +0 -9
- package/components/Management/Options/OptionImages.d.ts +0 -9
- package/components/Management/Options/OptionInput.d.ts +0 -9
- package/components/Management/RichText/RichText.d.ts +0 -8
- package/components/Management/SideBar.d.ts +0 -12
- package/components/Modals/ConfirmationModal.d.ts +0 -11
- package/components/Modals/ImageModal.d.ts +0 -8
- package/components/Pagination/Pagination.d.ts +0 -9
- package/components/Portals/Portal.d.ts +0 -6
- package/components/Select/ContextSelectFilter.d.ts +0 -14
- package/components/Select/ContextTagSelect.d.ts +0 -9
- package/components/Select/EitherOrSelectFilter.d.ts +0 -12
- package/components/Spinner/ButtonSpinner.d.ts +0 -9
- package/components/Spinner/Spinner.d.ts +0 -3
- package/components/Table/TableBody.d.ts +0 -10
- package/components/Table/TableHeader.d.ts +0 -3
- package/constants/placeholders.d.ts +0 -1
- package/context/ApiContext.d.ts +0 -15
- package/context/AuthContext.d.ts +0 -8
- package/firebase/firebase.d.ts +0 -2
- package/firebase/getToken.d.ts +0 -1
- package/models/EitherOr/EitherOrById.d.ts +0 -44
- package/models/Select/GroupSelectOption.d.ts +0 -5
- package/models/Sportal365/Sportal365Config.d.ts +0 -4
- package/models/Sportal365/Sportal365ImagesContainer.d.ts +0 -5
- package/models/Sportal365/Sportal365SearchImages.d.ts +0 -21
- package/models/Sportal365/Sportal365SearchImagesFilters.d.ts +0 -4
- package/portals/ModalPortal.d.ts +0 -6
- package/services/HashService.d.ts +0 -4
- package/services/HttpsService.d.ts +0 -33
- package/types/types.d.ts +0 -6
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import Sportal365ImagesContainerToggleModel from '../../../models/Sportal365/Sportal365ImagesContainer';
|
|
3
|
-
type Sportal365ButtonProps = {
|
|
4
|
-
imageNode: string;
|
|
5
|
-
setShowImagesContainer: Dispatch<SetStateAction<Sportal365ImagesContainerToggleModel>>;
|
|
6
|
-
};
|
|
7
|
-
declare const Sportal365Button: React.FC<Sportal365ButtonProps>;
|
|
8
|
-
export default Sportal365Button;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import EitherOrFiltersModel from '../../models/Filters/EitherOrFiltersModel';
|
|
3
|
-
type CheckboxFilterProps = {
|
|
4
|
-
value: boolean;
|
|
5
|
-
setFilters: Dispatch<SetStateAction<EitherOrFiltersModel>>;
|
|
6
|
-
handleResetData: () => void;
|
|
7
|
-
};
|
|
8
|
-
declare const CheckboxFilter: React.FC<CheckboxFilterProps>;
|
|
9
|
-
export default CheckboxFilter;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import RequestBody, { IBrandingRequestById } from '../../../models/RequestBody/RequestBody';
|
|
3
|
-
type BrandingProps = {
|
|
4
|
-
defaultValue: IBrandingRequestById;
|
|
5
|
-
setRequestBody: Dispatch<SetStateAction<RequestBody>>;
|
|
6
|
-
};
|
|
7
|
-
declare const Branding: React.FC<BrandingProps>;
|
|
8
|
-
export default Branding;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IBrandingImages } from '../../../models/RequestBody/RequestBody';
|
|
3
|
-
type BrandingImagesProps = {
|
|
4
|
-
loadedImages: IBrandingImages;
|
|
5
|
-
onChange: (value: string, property: string) => void;
|
|
6
|
-
};
|
|
7
|
-
declare const BrandingImages: React.FC<BrandingImagesProps>;
|
|
8
|
-
export default BrandingImages;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import ContextModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
|
|
2
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
3
|
-
import RequestBody from '../../../models/RequestBody/RequestBody';
|
|
4
|
-
type ContextProps = {
|
|
5
|
-
defaultValue: ContextModel;
|
|
6
|
-
setRequestBody: Dispatch<SetStateAction<RequestBody>>;
|
|
7
|
-
};
|
|
8
|
-
declare const Context: React.FC<ContextProps>;
|
|
9
|
-
export default Context;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type EitherOrSelectProps = {
|
|
3
|
-
type: 'status' | 'winning_condition';
|
|
4
|
-
defaultValue: string;
|
|
5
|
-
onChange: (arg: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
6
|
-
};
|
|
7
|
-
declare const EitherOrSelect: React.FC<EitherOrSelectProps>;
|
|
8
|
-
export default EitherOrSelect;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import RequestBody from '../../../models/RequestBody/RequestBody';
|
|
3
|
-
import EitherOrFiltersModel from '../../../models/Filters/EitherOrFiltersModel';
|
|
4
|
-
export declare const flagsSelectStyles: {
|
|
5
|
-
control: (provided: any) => any;
|
|
6
|
-
clearIndicator: (provided: any) => any;
|
|
7
|
-
input: (provided: any) => any;
|
|
8
|
-
};
|
|
9
|
-
type FlagsProps = {
|
|
10
|
-
defaultValue: string[];
|
|
11
|
-
showLabel?: boolean;
|
|
12
|
-
setObject: Dispatch<SetStateAction<RequestBody>> | Dispatch<SetStateAction<EitherOrFiltersModel>>;
|
|
13
|
-
handleResetData?: () => void;
|
|
14
|
-
};
|
|
15
|
-
declare const Flags: React.FC<FlagsProps>;
|
|
16
|
-
export default Flags;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type ImagesProps = {
|
|
3
|
-
id: number;
|
|
4
|
-
type: string;
|
|
5
|
-
label: string;
|
|
6
|
-
imageUrl: string;
|
|
7
|
-
imageNode: string;
|
|
8
|
-
onChange: (value: string, imageNode: string) => void;
|
|
9
|
-
};
|
|
10
|
-
declare const Image: React.FC<ImagesProps>;
|
|
11
|
-
export default Image;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ImagesModel from 'fansunited-sdk-esm/Core/Global/Models/Images/ImagesModel';
|
|
3
|
-
import MiniGameImages from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/MiniGameImages';
|
|
4
|
-
type ImagesProps = {
|
|
5
|
-
id: number;
|
|
6
|
-
type: 'game' | 'option';
|
|
7
|
-
loadedImages: ImagesModel | MiniGameImages;
|
|
8
|
-
onChange: (value: string, imageCases: string) => void;
|
|
9
|
-
};
|
|
10
|
-
declare const Images: React.FC<ImagesProps>;
|
|
11
|
-
export default Images;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import Sportal365SearchImagesFilters from '../../../../../models/Sportal365/Sportal365SearchImagesFilters';
|
|
3
|
-
type Sportal365ImagesFromToFilterProps = {
|
|
4
|
-
setFilters: Dispatch<SetStateAction<Sportal365SearchImagesFilters>>;
|
|
5
|
-
};
|
|
6
|
-
declare const Sportal365ImagesFromToFilter: React.FC<Sportal365ImagesFromToFilterProps>;
|
|
7
|
-
export default Sportal365ImagesFromToFilter;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import Sportal365ImagesContainerToggleModel from '../../../../models/Sportal365/Sportal365ImagesContainer';
|
|
3
|
-
type Sportal365ImagesProps = {
|
|
4
|
-
onChangeImages: (url: string) => void;
|
|
5
|
-
imageNode: string;
|
|
6
|
-
setShowImagesContainer: Dispatch<SetStateAction<Sportal365ImagesContainerToggleModel>>;
|
|
7
|
-
};
|
|
8
|
-
declare const Sportal365Images: React.FC<Sportal365ImagesProps>;
|
|
9
|
-
export default Sportal365Images;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Sportal365SearchImage from '../../../../models/Sportal365/Sportal365SearchImages';
|
|
3
|
-
type PaginationProps = {
|
|
4
|
-
pageCount: number;
|
|
5
|
-
images: Sportal365SearchImage | null;
|
|
6
|
-
getPreviousPage: () => void;
|
|
7
|
-
getNextPage: () => void;
|
|
8
|
-
};
|
|
9
|
-
declare const Sportal365ImagesPagination: React.FC<PaginationProps>;
|
|
10
|
-
export default Sportal365ImagesPagination;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import Sportal365SearchImagesFilters from '../../../../models/Sportal365/Sportal365SearchImagesFilters';
|
|
3
|
-
type Sportal365ImagesSearchProps = {
|
|
4
|
-
setQuery: Dispatch<SetStateAction<string>>;
|
|
5
|
-
setFilters: Dispatch<SetStateAction<Sportal365SearchImagesFilters>>;
|
|
6
|
-
};
|
|
7
|
-
declare const Sportal365ImagesSearch: React.FC<Sportal365ImagesSearchProps>;
|
|
8
|
-
export default Sportal365ImagesSearch;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type InformationInputProps = {
|
|
3
|
-
title: string;
|
|
4
|
-
placeholder: string;
|
|
5
|
-
defaultValue: string;
|
|
6
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const InformationInput: React.FC<InformationInputProps>;
|
|
9
|
-
export default InformationInput;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type ManagementScreenHeaderProps = {
|
|
3
|
-
managementScreen: 'create' | 'edit';
|
|
4
|
-
toggleScreen: () => void;
|
|
5
|
-
clearQuizById: () => void;
|
|
6
|
-
};
|
|
7
|
-
declare const ManagementScreenHeader: React.FC<ManagementScreenHeaderProps>;
|
|
8
|
-
export default ManagementScreenHeader;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type NumberInputProps = {
|
|
3
|
-
type: 'time' | 'lives' | 'points_correct_steps' | 'points_score' | 'options_value';
|
|
4
|
-
defaultValue: number;
|
|
5
|
-
showDescription?: boolean;
|
|
6
|
-
onChange: (value: number) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const NumberInput: React.FC<NumberInputProps>;
|
|
9
|
-
export default NumberInput;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import MiniGameImages from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/MiniGameImages';
|
|
3
|
-
type OptionImagesProps = {
|
|
4
|
-
id: number;
|
|
5
|
-
loadedImages: MiniGameImages;
|
|
6
|
-
onChange: (value: string, imageNode: string) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const OptionImages: React.FC<OptionImagesProps>;
|
|
9
|
-
export default OptionImages;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type OptionInputProps = {
|
|
3
|
-
label: string;
|
|
4
|
-
defaultValue: string;
|
|
5
|
-
placeholder: string;
|
|
6
|
-
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const OptionInput: React.FC<OptionInputProps>;
|
|
9
|
-
export default OptionInput;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
type RichTextProps = {
|
|
3
|
-
defaultValue: string;
|
|
4
|
-
property: 'description' | 'rules' | 'ad_content';
|
|
5
|
-
setValue: Dispatch<SetStateAction<string>>;
|
|
6
|
-
};
|
|
7
|
-
declare const RichText: React.FC<RichTextProps>;
|
|
8
|
-
export default RichText;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import EitherOrById from '../../models/EitherOr/EitherOrById';
|
|
3
|
-
type SideBarProps = {
|
|
4
|
-
requestBody: EitherOrById;
|
|
5
|
-
rules: string;
|
|
6
|
-
adContent: string;
|
|
7
|
-
setRules: Dispatch<SetStateAction<string>>;
|
|
8
|
-
setAdContent: Dispatch<SetStateAction<string>>;
|
|
9
|
-
setRequestBody: Dispatch<SetStateAction<EitherOrById>>;
|
|
10
|
-
};
|
|
11
|
-
declare const SideBar: React.FC<SideBarProps>;
|
|
12
|
-
export default SideBar;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import EitherOrBasicModel from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/EitherOr/EitherOrBasicModel';
|
|
3
|
-
import EitherOrFiltersModel from '../../models/Filters/EitherOrFiltersModel';
|
|
4
|
-
type ConfirmationModalProps = {
|
|
5
|
-
isOpen: boolean;
|
|
6
|
-
eitherOr: EitherOrBasicModel;
|
|
7
|
-
setFilters: Dispatch<SetStateAction<EitherOrFiltersModel>>;
|
|
8
|
-
handleClose: () => void;
|
|
9
|
-
};
|
|
10
|
-
declare const ConfirmationModal: React.FC<ConfirmationModalProps>;
|
|
11
|
-
export default ConfirmationModal;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import EitherOrFiltersModel from '../../models/Filters/EitherOrFiltersModel';
|
|
3
|
-
import SearchModel from 'fansunited-sdk-esm/Core/Namespaces/Football/Models/Search/SearchModel';
|
|
4
|
-
import GroupSelectOption from '../../models/Select/GroupSelectOption';
|
|
5
|
-
import SelectOption from '../../models/Select/SelectOption';
|
|
6
|
-
export declare const formatGroupOptions: (result: SearchModel) => GroupSelectOption[];
|
|
7
|
-
type ContextSelectFilterProps = {
|
|
8
|
-
options: SelectOption[];
|
|
9
|
-
setOptions: Dispatch<SetStateAction<SelectOption[]>>;
|
|
10
|
-
setFilters: Dispatch<SetStateAction<EitherOrFiltersModel>>;
|
|
11
|
-
handleResetData: () => void;
|
|
12
|
-
};
|
|
13
|
-
declare const ContextSelectFilter: React.FC<ContextSelectFilterProps>;
|
|
14
|
-
export default ContextSelectFilter;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import SelectOption from '../../models/Select/SelectOption';
|
|
3
|
-
import TagsModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/TagsModel';
|
|
4
|
-
type ContextTagSelectProps = {
|
|
5
|
-
tags: TagsModel[];
|
|
6
|
-
onChangeTags: (entities: SelectOption[]) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const ContextTagSelect: React.FC<ContextTagSelectProps>;
|
|
9
|
-
export default ContextTagSelect;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import EitherOrFiltersModel from '../../models/Filters/EitherOrFiltersModel';
|
|
3
|
-
type EitherOrSelectFilterProps = {
|
|
4
|
-
filterType: 'status' | 'sort';
|
|
5
|
-
defaultValue: string;
|
|
6
|
-
filterValues: string[];
|
|
7
|
-
showClearStatus?: boolean;
|
|
8
|
-
setFilters: Dispatch<SetStateAction<EitherOrFiltersModel>>;
|
|
9
|
-
handleResetData: () => void;
|
|
10
|
-
};
|
|
11
|
-
declare const EitherOrSelectFilter: React.FC<EitherOrSelectFilterProps>;
|
|
12
|
-
export default EitherOrSelectFilter;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import EitherOrBasicModel from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/EitherOr/EitherOrBasicModel';
|
|
3
|
-
type TableBodyProps = {
|
|
4
|
-
data: EitherOrBasicModel[];
|
|
5
|
-
fetchEitherOrById: (eitherOrId: string) => void;
|
|
6
|
-
handleModal: () => void;
|
|
7
|
-
setSelectedEitherOr: Dispatch<SetStateAction<EitherOrBasicModel>>;
|
|
8
|
-
};
|
|
9
|
-
declare const TableBody: React.FC<TableBodyProps>;
|
|
10
|
-
export default TableBody;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const placeholders: any;
|
package/context/ApiContext.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import HttpsService from '../services/HttpsService';
|
|
2
|
-
import FansUnitedSDKModel from 'fansunited-sdk-esm/Core/Global/Models/FansUnitedSDKModel';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import Sportal365Config from '../models/Sportal365/Sportal365Config';
|
|
5
|
-
type APIProviderProps = {
|
|
6
|
-
config: any;
|
|
7
|
-
sportal365Config: Sportal365Config;
|
|
8
|
-
};
|
|
9
|
-
type APIContextValueType = {
|
|
10
|
-
sdk: FansUnitedSDKModel;
|
|
11
|
-
https: HttpsService;
|
|
12
|
-
};
|
|
13
|
-
declare const APIContext: React.Context<APIContextValueType>;
|
|
14
|
-
declare const APIProvider: React.FC<APIProviderProps>;
|
|
15
|
-
export { APIContext, APIProvider };
|
package/context/AuthContext.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import firebase from 'firebase/compat/app';
|
|
3
|
-
type AuthProviderProps = {
|
|
4
|
-
fansUnitedEnvironment: string;
|
|
5
|
-
};
|
|
6
|
-
declare const AuthContext: React.Context<firebase.User>;
|
|
7
|
-
declare const AuthProvider: React.FC<AuthProviderProps>;
|
|
8
|
-
export { AuthContext, AuthProvider };
|
package/firebase/firebase.d.ts
DELETED
package/firebase/getToken.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getToken: () => Promise<string>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import ImagesModel from 'fansunited-sdk-esm/Core/Global/Models/Images/ImagesModel';
|
|
2
|
-
import MiniGameImages from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/MiniGameImages';
|
|
3
|
-
import ContextModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
|
|
4
|
-
import { IBrandingRequestById } from '../RequestBody/RequestBody';
|
|
5
|
-
export interface IEitherOrPoints {
|
|
6
|
-
correct_steps: number;
|
|
7
|
-
score: number;
|
|
8
|
-
}
|
|
9
|
-
export interface IEitherOrPairs {
|
|
10
|
-
id: string;
|
|
11
|
-
option_first: IEitherOrPairOption;
|
|
12
|
-
option_second: IEitherOrPairOption;
|
|
13
|
-
}
|
|
14
|
-
export interface IEitherOrPairOption {
|
|
15
|
-
id: string;
|
|
16
|
-
value: number;
|
|
17
|
-
}
|
|
18
|
-
export interface IEitherOrOption {
|
|
19
|
-
id: string;
|
|
20
|
-
label: string;
|
|
21
|
-
images: MiniGameImages;
|
|
22
|
-
value: number;
|
|
23
|
-
}
|
|
24
|
-
export default class EitherOrById {
|
|
25
|
-
id: string;
|
|
26
|
-
title: string;
|
|
27
|
-
description: string;
|
|
28
|
-
type: string;
|
|
29
|
-
winning_condition: string;
|
|
30
|
-
lives: number;
|
|
31
|
-
time: number;
|
|
32
|
-
points: IEitherOrPoints[];
|
|
33
|
-
rules: string;
|
|
34
|
-
ad_content: string;
|
|
35
|
-
branding: IBrandingRequestById;
|
|
36
|
-
labels: Object;
|
|
37
|
-
custom_fields: Object;
|
|
38
|
-
images: ImagesModel;
|
|
39
|
-
status: string;
|
|
40
|
-
flags: string[];
|
|
41
|
-
pairs: IEitherOrPairs[];
|
|
42
|
-
options: IEitherOrOption[];
|
|
43
|
-
context: ContextModel;
|
|
44
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
interface ISearchImagesMeta {
|
|
2
|
-
pagination: {
|
|
3
|
-
current_page: number;
|
|
4
|
-
};
|
|
5
|
-
}
|
|
6
|
-
export interface ISearchImagesData {
|
|
7
|
-
id: string;
|
|
8
|
-
urls: {
|
|
9
|
-
uploaded: {
|
|
10
|
-
embed: string;
|
|
11
|
-
gallery: string;
|
|
12
|
-
original: string;
|
|
13
|
-
thumbnail: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export default class Sportal365SearchImage {
|
|
18
|
-
meta: ISearchImagesMeta;
|
|
19
|
-
data: ISearchImagesData[];
|
|
20
|
-
}
|
|
21
|
-
export {};
|
package/portals/ModalPortal.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import SDKConfigurationModel from 'fansunited-sdk-esm/Core/Configurator/Models/SDKConfiguraitonModel';
|
|
2
|
-
import RequestBody from '../models/RequestBody/RequestBody';
|
|
3
|
-
import { IType } from '../models/Features/Features';
|
|
4
|
-
import SignedInUrlRequestBody from '../models/RequestBody/SignedInUrlRequestBody';
|
|
5
|
-
import Sportal365Config from '../models/Sportal365/Sportal365Config';
|
|
6
|
-
import Sportal365SearchImagesFilters from '../models/Sportal365/Sportal365SearchImagesFilters';
|
|
7
|
-
import ExportUsersRequestBody from '../models/Export/ExportUsersRequestBody';
|
|
8
|
-
export default class HttpsService {
|
|
9
|
-
private miniGamesApiBaseUrl;
|
|
10
|
-
private clientApiBaseUrl;
|
|
11
|
-
private reportingApiBaseUrl;
|
|
12
|
-
private headers;
|
|
13
|
-
private mainQueryParams;
|
|
14
|
-
private apiKey;
|
|
15
|
-
private clientId;
|
|
16
|
-
private environment;
|
|
17
|
-
sportal365Config: Sportal365Config | null;
|
|
18
|
-
private sportal365Headers;
|
|
19
|
-
private readonly sportal365ImagesSearchURL;
|
|
20
|
-
constructor(config: SDKConfigurationModel, sportal365Config: Sportal365Config | null);
|
|
21
|
-
createEitherOr: (requestBody: RequestBody) => Promise<Response>;
|
|
22
|
-
updateEitherOr: (id: string, requestBody: RequestBody) => Promise<Response>;
|
|
23
|
-
getEitherOrById: (classicQuizId: string) => Promise<Response>;
|
|
24
|
-
deleteEitherOr: (eitherOrId: string) => Promise<Response>;
|
|
25
|
-
getEitherOrTypes: () => Promise<IType[]>;
|
|
26
|
-
generateSignedInUrl: (requestBody: SignedInUrlRequestBody) => Promise<Response>;
|
|
27
|
-
storeInBucket: (signedInUrl: string, file: File, headers: Record<string, string>) => Promise<string>;
|
|
28
|
-
fetchImagesFromSportal365: (query: string, filters: Sportal365SearchImagesFilters, page: number) => Promise<Response>;
|
|
29
|
-
exportUsers: (requestBody: ExportUsersRequestBody) => Promise<Response>;
|
|
30
|
-
private getEitherOrFeatures;
|
|
31
|
-
private constructAssetsUrl;
|
|
32
|
-
private throwErrorFromXmlResponse;
|
|
33
|
-
}
|