fansunited-widget-either-or 2.0.0 → 2.1.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 +24 -3
- package/components/EitherOrs/AdditionalInfo/{EitherOrStats.d.ts → EitherOrReports.d.ts} +3 -3
- package/components/EitherOrs/AdditionalInfo/EitherOrStatistics.d.ts +7 -0
- package/components/Management/LanguagesTabBar.d.ts +8 -0
- package/components/Management/MainColumn.d.ts +2 -0
- package/components/Management/ManageEitherOr.d.ts +3 -0
- package/components/Management/Options/AdditionalOptionField.d.ts +1 -1
- package/components/Management/Options/Option.d.ts +1 -1
- package/components/Management/Options/Options.d.ts +1 -1
- package/components/Management/Points/Points.d.ts +1 -1
- package/components/Management/SideBar/Configuration/Configuration.d.ts +1 -0
- package/components/Management/SideBar/Configuration/Language.d.ts +8 -0
- package/components/Management/SideBar/SideBar.d.ts +1 -0
- package/components/Modals/LanguagesModal.d.ts +11 -0
- package/either-or-manager.es.js +20209 -19480
- package/either-or-manager.umd.js +231 -231
- package/factories/EitherOrFactory.d.ts +2 -1
- package/models/Labels/LabelsModel.d.ts +11 -0
- package/models/RequestBody/RequestBody.d.ts +7 -20
- package/package.json +1 -1
- package/services/TranslationService.d.ts +4 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { default as RequestBody
|
|
1
|
+
import { default as RequestBody } from '../models/RequestBody/RequestBody';
|
|
2
2
|
import { default as ContextModel } from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
|
|
3
3
|
import { default as TagsModel } from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/TagsModel';
|
|
4
4
|
import { default as Features } from '../models/Features/Features';
|
|
5
|
+
import { IEitherOrOption, IEitherOrPoints } from 'fansunited-management-components/src/models/minigames/eitherors/EitherOrRequestBody';
|
|
5
6
|
export default class EitherOrFactory {
|
|
6
7
|
createNewRequestBody: (requestBody: RequestBody | null) => RequestBody;
|
|
7
8
|
finalizeNewRequestBody: (requestBody: RequestBody, config: Features) => RequestBody;
|
|
@@ -123,6 +123,7 @@ export default class LabelsModel {
|
|
|
123
123
|
createEitherOrErrorMessage: string;
|
|
124
124
|
updateEitherOrMessage: string;
|
|
125
125
|
updateEitherOrErrorMessage: string;
|
|
126
|
+
updateEitherOrTranslationErrorMessage: string;
|
|
126
127
|
uploadingImageMessage: string;
|
|
127
128
|
generateSignedInUrlErrorMessage: string;
|
|
128
129
|
uploadingImageErrorMessage: string;
|
|
@@ -171,6 +172,7 @@ export default class LabelsModel {
|
|
|
171
172
|
lead: string;
|
|
172
173
|
registered: string;
|
|
173
174
|
language: string;
|
|
175
|
+
languageDescription: string;
|
|
174
176
|
addOption: string;
|
|
175
177
|
removeOption: string;
|
|
176
178
|
addImages: string;
|
|
@@ -200,10 +202,19 @@ export default class LabelsModel {
|
|
|
200
202
|
standings: string;
|
|
201
203
|
noStandingsAvailable: string;
|
|
202
204
|
standingsErrorMessage: string;
|
|
205
|
+
participationOverview: string;
|
|
203
206
|
performanceByDay: string;
|
|
204
207
|
chartErrorMessage: string;
|
|
205
208
|
exportUsersForOption: string;
|
|
206
209
|
exportAllUsersForOption: string;
|
|
207
210
|
exportForOption: string;
|
|
211
|
+
languagesModalTitle: string;
|
|
212
|
+
languagesModalDescription: string;
|
|
213
|
+
languagesModalSave: string;
|
|
214
|
+
languageParentText: string;
|
|
215
|
+
gameTranslationErrorMessage: string;
|
|
216
|
+
translateTo: string;
|
|
217
|
+
exportUsersWithMinPoints: string;
|
|
218
|
+
exportUsersWithMinPointsDescription: string;
|
|
208
219
|
constructor(labels?: LabelsModel);
|
|
209
220
|
}
|
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
import { IBranding } from 'fansunited-management-components/src/models/IBranding';
|
|
2
|
-
import {
|
|
2
|
+
import { IEitherOrOption, IEitherOrPoints } from 'fansunited-management-components/src/models/minigames/eitherors/EitherOrRequestBody';
|
|
3
3
|
import { default as ImagesModel } from 'fansunited-sdk-esm/Core/Global/Models/Images/ImagesModel';
|
|
4
4
|
import { default as ContextModel } from 'fansunited-sdk-esm/Core/Namespaces/Activity/Models/RequestBody/Context/ContextModel';
|
|
5
|
-
export interface
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
value: number;
|
|
10
|
-
}
|
|
11
|
-
export interface IEitherOrPoints {
|
|
12
|
-
correct_steps: number;
|
|
13
|
-
score: number;
|
|
14
|
-
}
|
|
15
|
-
export interface IEitherOrPairs {
|
|
16
|
-
id: string;
|
|
17
|
-
option_first: IEitherOrPairOption;
|
|
18
|
-
option_second: IEitherOrPairOption;
|
|
19
|
-
}
|
|
20
|
-
export interface IEitherOrPairOption {
|
|
21
|
-
id: string;
|
|
22
|
-
value: number;
|
|
5
|
+
export interface IRelation {
|
|
6
|
+
entity_id: string;
|
|
7
|
+
entity_type: string;
|
|
8
|
+
entity_relationship: string;
|
|
23
9
|
}
|
|
24
10
|
export default class RequestBody {
|
|
25
11
|
id: string;
|
|
@@ -28,6 +14,7 @@ export default class RequestBody {
|
|
|
28
14
|
description: string;
|
|
29
15
|
auth_requirement: string;
|
|
30
16
|
type: string;
|
|
17
|
+
language: string;
|
|
31
18
|
winning_condition: string;
|
|
32
19
|
lives: number;
|
|
33
20
|
time: number;
|
|
@@ -40,7 +27,7 @@ export default class RequestBody {
|
|
|
40
27
|
images: ImagesModel;
|
|
41
28
|
status: string;
|
|
42
29
|
flags: string[];
|
|
43
|
-
pairs: IEitherOrPairs[];
|
|
44
30
|
options: IEitherOrOption[];
|
|
31
|
+
related: IRelation[];
|
|
45
32
|
context: ContextModel;
|
|
46
33
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IEitherOrOption } from 'fansunited-management-components/src/models/minigames/eitherors/EitherOrRequestBody';
|
|
2
|
+
import { default as RequestBody } from '../models/RequestBody/RequestBody';
|
|
3
|
+
export declare const translateOptions: (options: IEitherOrOption[], language: string, source?: string) => Promise<IEitherOrOption[]>;
|
|
4
|
+
export declare const translateGames: (games: RequestBody[], language: string, source?: string) => Promise<RequestBody[]>;
|