fansunited-sdk-esm 1.55.0 → 1.56.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.
@@ -1,5 +1,6 @@
1
1
  import SDKConfigurationModel from "../../../Configurator/Models/SDKConfiguraitonModel";
2
2
  import MiniGamesHttps from "../../../Https/MiniGamesHttps";
3
+ import ActivityService from "../../Activity/Service/ActivityService";
3
4
  import { IEitherOrParticipationCallback } from "../Interfaces/MiniGamesInterfaces";
4
5
  import ClassicQuizParticipationBodyModel from "../Models/ClassicQuiz/ClassicQuizParticipationBodyModel";
5
6
  import EitherOrParticipationRequestModel from "../Models/EitherOr/Participation/EitherOrParticipationRequestModel";
@@ -8,6 +9,8 @@ import MiniGamesService from "../Service/MiniGamesService";
8
9
  export default class MiniGamesFacade {
9
10
  readonly https: MiniGamesHttps;
10
11
  readonly service: MiniGamesService;
12
+ readonly activityService: ActivityService;
13
+ readonly idSchema: string;
11
14
  constructor(config: SDKConfigurationModel);
12
15
  getClassicQuizzes: (filters?: MiniGamesFilters, disableCache?: boolean) => Promise<import("../Models/ClassicQuiz/ClassicQuizzesModel").default>;
13
16
  getClassicQuizById: (classicQuizId: string, disableCache?: boolean) => Promise<import("../Models/ClassicQuiz/ClassicQuizFullModel").default>;
@@ -18,4 +21,5 @@ export default class MiniGamesFacade {
18
21
  getMyEitherOrStats: (eitherOrId: string) => Promise<import("../Models/EitherOr/EitherOrStatsModel").default>;
19
22
  getEitherOrResults: (eitherOrId: string, disableCache?: boolean) => Promise<import("../Models/EitherOr/Results/EitherOrResultsModel").default>;
20
23
  participateInEitherOr: (eitherOrId: string, participation: EitherOrParticipationRequestModel | null, onEitherOrParticipationCallbacks?: IEitherOrParticipationCallback) => Promise<import("../Models/EitherOr/Participation/EitherOrParticipationModel").default>;
24
+ private remapTags;
21
25
  }
@@ -1,4 +1,5 @@
1
1
  import ImagesModel from "../../../../Global/Models/Images/ImagesModel";
2
+ import ContextModel from "../../../Activity/Models/RequestBody/Context/ContextModel";
2
3
  export default class ClassicQuizBasicModel {
3
4
  id: string;
4
5
  title: string;
@@ -14,6 +15,8 @@ export default class ClassicQuizBasicModel {
14
15
  time: number;
15
16
  averageScore: number;
16
17
  perfectScore: number;
18
+ adContent: string;
19
+ context: ContextModel;
17
20
  createdAt: string;
18
21
  updatedAt: string;
19
22
  }
@@ -1,7 +1,8 @@
1
+ import ContextModel from "../../../Activity/Models/RequestBody/Context/ContextModel";
1
2
  import ClassicQuizBasicModel from "./ClassicQuizBasicModel";
2
3
  import ClassicQuizQuestionModel from "./ClassicQuizQuestionModel";
3
4
  export default class ClassicQuizFullModel extends ClassicQuizBasicModel {
4
- adContent: string;
5
5
  rules: string;
6
+ context: ContextModel;
6
7
  questions: ClassicQuizQuestionModel[];
7
8
  }
@@ -1,4 +1,5 @@
1
1
  import ImagesModel from "../../../../Global/Models/Images/ImagesModel";
2
+ import ContextModel from "../../../Activity/Models/RequestBody/Context/ContextModel";
2
3
  import EitherOrPointsModel from "./EitherOrPointsModel";
3
4
  export default class EitherOrBasicModel {
4
5
  id: string;
@@ -13,6 +14,8 @@ export default class EitherOrBasicModel {
13
14
  points: EitherOrPointsModel[];
14
15
  customFields: Record<string, string>;
15
16
  labels: Record<string, string>;
17
+ adContent: string;
18
+ context: ContextModel;
16
19
  type: string;
17
20
  createdAt: string;
18
21
  updatedAt: string;
@@ -1,5 +1,6 @@
1
+ import ContextModel from "../../../Activity/Models/RequestBody/Context/ContextModel";
1
2
  import EitherOrBasicModel from "./EitherOrBasicModel";
2
3
  export default class EitherOrFullModel extends EitherOrBasicModel {
3
4
  rules: string;
4
- adContent: string;
5
+ context: ContextModel;
5
6
  }