fansunited-widget-either-or 1.1.4 → 1.2.0
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 +39 -1
- package/components/Management/Branding/Branding.d.ts +8 -0
- package/components/Management/Branding/BrandingImages.d.ts +8 -0
- package/components/Management/Branding/BrandingTabs.d.ts +7 -0
- package/components/Management/Images/FileUploader.d.ts +1 -1
- package/components/Management/Images/Image.d.ts +1 -1
- package/either-or-manager.es.js +11220 -10451
- package/either-or-manager.umd.js +189 -189
- package/factories/EitherOrFactory.d.ts +3 -1
- package/models/EitherOr/EitherOrById.d.ts +2 -0
- package/models/Labels/LabelsModel.d.ts +19 -0
- package/models/RequestBody/RequestBody.d.ts +28 -0
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import EitherOrById, { IEitherOrOption, IEitherOrPoints } from '../models/EitherOr/EitherOrById';
|
|
2
|
-
import RequestBody from '../models/RequestBody/RequestBody';
|
|
2
|
+
import RequestBody, { IBrandingRequestById } from '../models/RequestBody/RequestBody';
|
|
3
3
|
import ContextModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
|
|
4
4
|
import TagsModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/TagsModel';
|
|
5
5
|
export default class EitherOrFactory {
|
|
6
6
|
createNewRequestBody: (requestBody: EitherOrById | null) => RequestBody;
|
|
7
7
|
finalizeNewRequestBody: (requestBody: EitherOrById) => EitherOrById;
|
|
8
8
|
private reconstructImages;
|
|
9
|
+
private reconstructBranding;
|
|
9
10
|
private reconstructContext;
|
|
10
11
|
createImagesModel: () => {
|
|
11
12
|
main: any;
|
|
@@ -30,4 +31,5 @@ export default class EitherOrFactory {
|
|
|
30
31
|
mobile: string;
|
|
31
32
|
};
|
|
32
33
|
};
|
|
34
|
+
createBranding: (branding: IBrandingRequestById) => IBrandingRequestById;
|
|
33
35
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import ImagesModel from 'fansunited-sdk-esm/Core/Global/Models/Images/ImagesModel';
|
|
2
2
|
import MiniGameImages from 'fansunited-sdk-esm/Core/Namespaces/MiniGames/Models/MiniGameImages';
|
|
3
3
|
import ContextModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
|
|
4
|
+
import { IBrandingRequestById } from '../RequestBody/RequestBody';
|
|
4
5
|
export interface IEitherOrPoints {
|
|
5
6
|
correct_steps: number;
|
|
6
7
|
score: number;
|
|
@@ -31,6 +32,7 @@ export default class EitherOrById {
|
|
|
31
32
|
points: IEitherOrPoints[];
|
|
32
33
|
rules: string;
|
|
33
34
|
ad_content: string;
|
|
35
|
+
branding: IBrandingRequestById;
|
|
34
36
|
labels: Object;
|
|
35
37
|
custom_fields: Object;
|
|
36
38
|
images: ImagesModel;
|
|
@@ -33,6 +33,25 @@ export default class LabelsModel {
|
|
|
33
33
|
description: string;
|
|
34
34
|
descriptionPlaceholder: string;
|
|
35
35
|
images: string;
|
|
36
|
+
branding: string;
|
|
37
|
+
urls: string;
|
|
38
|
+
primaryUrl: string;
|
|
39
|
+
secondaryUrl: string;
|
|
40
|
+
privacyPolicyUrl: string;
|
|
41
|
+
termsAndConditionsUrl: string;
|
|
42
|
+
additionalUrl: string;
|
|
43
|
+
colors: string;
|
|
44
|
+
primaryColor: string;
|
|
45
|
+
secondaryColor: string;
|
|
46
|
+
contentColor: string;
|
|
47
|
+
backgroundColor: string;
|
|
48
|
+
borderColor: string;
|
|
49
|
+
additionalColor: string;
|
|
50
|
+
mainLogo: string;
|
|
51
|
+
mobileLogo: string;
|
|
52
|
+
backgroundImage: string;
|
|
53
|
+
mobileBackgroundImage: string;
|
|
54
|
+
additionalImage: string;
|
|
36
55
|
rules: string;
|
|
37
56
|
rulesPlaceholder: string;
|
|
38
57
|
adContent: string;
|
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
import ImagesModel from 'fansunited-sdk-esm/Core/Global/Models/Images/ImagesModel';
|
|
2
2
|
import ContextModel from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
|
|
3
3
|
import { IEitherOrOption, IEitherOrPoints } from '../EitherOr/EitherOrById';
|
|
4
|
+
export interface IBrandingRequestById {
|
|
5
|
+
colors: IBrandingColors;
|
|
6
|
+
urls: IBrandingUrls;
|
|
7
|
+
images: IBrandingImages;
|
|
8
|
+
}
|
|
9
|
+
export interface IBrandingColors {
|
|
10
|
+
primary_color: string;
|
|
11
|
+
secondary_color: string;
|
|
12
|
+
content_color: string;
|
|
13
|
+
background_color: string;
|
|
14
|
+
border_color: string;
|
|
15
|
+
additional_color: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IBrandingUrls {
|
|
18
|
+
primary_url: string;
|
|
19
|
+
secondary_url: string;
|
|
20
|
+
privacy_policy_url: string;
|
|
21
|
+
terms_and_conditions_url: string;
|
|
22
|
+
additional_url: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IBrandingImages {
|
|
25
|
+
main_logo: string;
|
|
26
|
+
mobile_logo: string;
|
|
27
|
+
background_image: string;
|
|
28
|
+
mobile_background_image: string;
|
|
29
|
+
additional_image: string;
|
|
30
|
+
}
|
|
4
31
|
export default class RequestBody {
|
|
5
32
|
title: string;
|
|
6
33
|
description: string;
|
|
@@ -10,6 +37,7 @@ export default class RequestBody {
|
|
|
10
37
|
ad_content: string;
|
|
11
38
|
labels: Object;
|
|
12
39
|
custom_fields: Object;
|
|
40
|
+
branding: IBrandingRequestById;
|
|
13
41
|
images: ImagesModel;
|
|
14
42
|
status: string;
|
|
15
43
|
flags: string[];
|