fansunited-management-components 1.29.0 → 1.30.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-management-components",
3
- "version": "1.29.0",
3
+ "version": "1.30.0-RC1",
4
4
  "main": "index.es.js",
5
5
  "author": "Fans United",
6
6
  "description": "",
@@ -0,0 +1,29 @@
1
+ import { StandingGameMetaParticipantsModel, ImagesModel } from 'fansunited-sdk-esm';
2
+
3
+ type EntityType = 'game' | 'template' | 'classic_quiz' | 'either_or' | 'match_quiz' | 'top_x' | 'bracket' | 'standing';
4
+ type EntityRelationshipType = 'translatedTo' | 'translatedFrom' | 'relatedTo' | 'blocks' | 'blockedBy' | 'nextInSeries' | 'previousInSeries' | 'bonusPointsGame';
5
+ interface IRelated {
6
+ entity_id: string;
7
+ entity_type: EntityType;
8
+ entity_relationship: EntityRelationshipType;
9
+ }
10
+ interface IMeta {
11
+ participants: StandingGameMetaParticipantsModel[];
12
+ }
13
+ export default class StandingGameRequestBody {
14
+ id: string;
15
+ title: string;
16
+ description: string;
17
+ type: string;
18
+ rules: string;
19
+ status: string;
20
+ images: ImagesModel | null;
21
+ points: number;
22
+ related: IRelated[];
23
+ custom_fields: Object | null;
24
+ predictions_cutoff: string;
25
+ meta: IMeta;
26
+ outcome: string[];
27
+ outcome_count: number | null;
28
+ }
29
+ export {};
@@ -9,6 +9,7 @@ import { default as LanguageRequestBody } from '../../models/config/LanguageRequ
9
9
  import { default as PollRequestBody } from '../../models/voting/PollRequestBody';
10
10
  import { default as EitherOrRequestBody } from '../../models/minigames/eitherors/EitherOrRequestBody';
11
11
  import { default as BracketGameRequestBody } from '../../models/games/bracket/BracketGameRequestBody';
12
+ import { default as StandingGameRequestBody } from '../../models/games/standing/StandingGameRequestBody';
12
13
 
13
14
  export default class HttpsService extends Https {
14
15
  private loyaltyBaseUrl;
@@ -60,4 +61,7 @@ export default class HttpsService extends Https {
60
61
  exportLeadsPerEntity: (entityId: string) => Promise<Response>;
61
62
  getLeadStatistics: (queryParams: Record<string, string> | null) => Promise<Response>;
62
63
  exportLeads: (queryParams: Record<string, string> | null) => Promise<Response>;
64
+ createStandingGame: (requestBody: StandingGameRequestBody) => Promise<Response>;
65
+ updateStandingGame: (id: string, requestBody: StandingGameRequestBody) => Promise<Response>;
66
+ resolveStandingPredictions: (gameId: string) => Promise<Response>;
63
67
  }