fansunited-sdk-esm 1.57.2 → 1.58.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.
@@ -10,5 +10,7 @@ export declare enum ErrorStatuses {
10
10
  INVALID_FILTERS = "invalid_filters",
11
11
  INVALID_AVATAR = "invalid_avatar",
12
12
  INVALID_METHOD_CALL = "invalid_method_call",
13
- INVALID_LIMIT = "invalid_limit"
13
+ INVALID_LIMIT = "invalid_limit",
14
+ INVALID_TEMPLATE_GROUP_ID = "invalid_template_group_id",
15
+ INVALID_TEMPLATE_GROUP_FILTERS = "invalid_template_group_filters"
14
16
  }
@@ -15,7 +15,9 @@ export declare enum ErrorMessages {
15
15
  INVALID_GET_PROFILES_METHOD_CALL = "The method 'getByIds' from Profile namespace is not called correctly. You need to provide 'profileIds' OR 'search' parameters to the method, but you can't use both of them or neither of them.",
16
16
  INVALID_LIMIT = "Invalid limit filter. The maximum limit is 20",
17
17
  MINI_GAMES_FILTER_COMBINATION_ERROR = "You need to use both 'entityIds' and 'entityType' filters together",
18
- INVALID_ENTITY_TYPE = "Invalid 'entityType' filter. Please use one of the following valid options: competition, team, or player"
18
+ INVALID_ENTITY_TYPE = "Invalid 'entityType' filter. Please use one of the following valid options: competition, team, or player",
19
+ INVALID_TEMPLATE_GROUP_ID = "There is no group in this template with the provided groupId",
20
+ INVALID_TEMPLATE_GROUP_FILTERS = "The provided template group has no filters"
19
21
  }
20
22
  export declare const WarningMessages: {
21
23
  UNEXPECTED_STATUS_PROP: string;
@@ -1,15 +1,15 @@
1
1
  export default class MatchFilters {
2
- countryIds: string[];
3
- competitionIds: string[];
4
- matchIds: string[];
5
- status: string;
6
- teamIds: string[];
7
- fromDate: string;
8
- toDate: string;
9
- limit: number;
10
- page: number;
11
- sortField: string;
12
- sortOrder: string;
2
+ countryIds?: string[];
3
+ competitionIds?: string[];
4
+ matchIds?: string[];
5
+ status?: string;
6
+ teamIds?: string[];
7
+ fromDate?: string;
8
+ toDate?: string;
9
+ limit?: number;
10
+ page?: number;
11
+ sortField?: string;
12
+ sortOrder?: string;
13
13
  constructor(filters: any);
14
- constructFilterUrl: () => string;
14
+ constructFilterUrl?: () => string;
15
15
  }
@@ -1,4 +1,5 @@
1
1
  import SDKConfigurationModel from "../../../Configurator/Models/SDKConfiguraitonModel";
2
+ import MatchFilters from "../../Football/Models/Match/MatchFilters";
2
3
  import FootballPaginationModel from "../../Football/Models/Pagination/FootballPaginationModel";
3
4
  import GamesListModel from "../../TopX/Models/Games/GamesListModel";
4
5
  import ContestWinners from "../../TopX/Models/Games/Winners/ContestWinners";
@@ -31,5 +32,7 @@ export default class LoyaltyService {
31
32
  validateEntitiesFollowsFilters: (filters: EntitiesFollowsFilters) => void;
32
33
  remapEntitiesFollowsFilters: (filters: EntitiesFollowsFilters) => Promise<any>;
33
34
  addModelsToEntitiesFollows: (entitiesFollows: EntitiesFollows) => Promise<EntitiesFollows>;
35
+ initMatchFiltersForTemplates: (template: TemplateByIdModel, groupId?: string) => MatchFilters;
36
+ private reformatDate;
34
37
  private extractEnabledBadgesId;
35
38
  }