@gambulls-org/gambulls-apis 3.0.439 → 3.0.440

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.
@@ -421,6 +421,7 @@ models/ApiPublicGamesSlugGet200ResponseResponseObjectGamesProvider.ts
421
421
  models/ApiPublicLeaderboardCurrentGet200Response.ts
422
422
  models/ApiPublicLeaderboardCurrentGet200ResponseResponseObject.ts
423
423
  models/ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner.ts
424
+ models/ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats.ts
424
425
  models/ApiPublicPolicyGet200Response.ts
425
426
  models/ApiPublicPolicyGet200ResponseResponseObject.ts
426
427
  models/ApiPublicProvidersGet200Response.ts
@@ -19,6 +19,7 @@ exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectFromJSONTyped = A
19
19
  exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSON = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSON;
20
20
  exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSONTyped = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSONTyped;
21
21
  const ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner_1 = require("./ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner");
22
+ const ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats_1 = require("./ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats");
22
23
  /**
23
24
  * Check if a given object implements the ApiPublicLeaderboardCurrentGet200ResponseResponseObject interface.
24
25
  */
@@ -48,6 +49,7 @@ function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectFromJSONTyped(js
48
49
  'poolAmount': json['poolAmount'],
49
50
  'currency': json['currency'],
50
51
  'rankings': (json['rankings'].map(ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner_1.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerFromJSON)),
52
+ 'userStats': json['userStats'] == null ? undefined : (0, ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats_1.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON)(json['userStats']),
51
53
  };
52
54
  }
53
55
  function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSON(json) {
@@ -63,5 +65,6 @@ function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectToJSONTyped(valu
63
65
  'poolAmount': value['poolAmount'],
64
66
  'currency': value['currency'],
65
67
  'rankings': (value['rankings'].map(ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner_1.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerToJSON)),
68
+ 'userStats': (0, ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats_1.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON)(value['userStats']),
66
69
  };
67
70
  }
@@ -20,6 +20,13 @@ import {
20
20
  ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerToJSON,
21
21
  ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerToJSONTyped,
22
22
  } from './ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner';
23
+ import type { ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats } from './ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats';
24
+ import {
25
+ ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON,
26
+ ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped,
27
+ ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON,
28
+ ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped,
29
+ } from './ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats';
23
30
 
24
31
  /**
25
32
  *
@@ -57,6 +64,12 @@ export interface ApiPublicLeaderboardCurrentGet200ResponseResponseObject {
57
64
  * @memberof ApiPublicLeaderboardCurrentGet200ResponseResponseObject
58
65
  */
59
66
  rankings: Array<ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner>;
67
+ /**
68
+ *
69
+ * @type {ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats}
70
+ * @memberof ApiPublicLeaderboardCurrentGet200ResponseResponseObject
71
+ */
72
+ userStats?: ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats | null;
60
73
  }
61
74
 
62
75
  /**
@@ -86,6 +99,7 @@ export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectFromJSONT
86
99
  'poolAmount': json['poolAmount'],
87
100
  'currency': json['currency'],
88
101
  'rankings': ((json['rankings'] as Array<any>).map(ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerFromJSON)),
102
+ 'userStats': json['userStats'] == null ? undefined : ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON(json['userStats']),
89
103
  };
90
104
  }
91
105
 
@@ -105,6 +119,7 @@ export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectFromJSONT
105
119
  'poolAmount': value['poolAmount'],
106
120
  'currency': value['currency'],
107
121
  'rankings': ((value['rankings'] as Array<any>).map(ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInnerToJSON)),
122
+ 'userStats': ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON(value['userStats']),
108
123
  };
109
124
  }
110
125
 
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Swagger API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats = instanceOfApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats;
17
+ exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON;
18
+ exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped;
19
+ exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON;
20
+ exports.ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped = ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats interface.
23
+ */
24
+ function instanceOfApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats(value) {
25
+ if (!('rank' in value) || value['rank'] === undefined)
26
+ return false;
27
+ if (!('wagerAmount' in value) || value['wagerAmount'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON(json) {
32
+ return ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped(json, false);
33
+ }
34
+ function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'rank': json['rank'],
40
+ 'wagerAmount': json['wagerAmount'],
41
+ };
42
+ }
43
+ function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON(json) {
44
+ return ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped(json, false);
45
+ }
46
+ function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'rank': value['rank'],
52
+ 'wagerAmount': value['wagerAmount'],
53
+ };
54
+ }
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats
20
+ */
21
+ export interface ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats
26
+ */
27
+ rank: number | null;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats
32
+ */
33
+ wagerAmount: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats interface.
38
+ */
39
+ export function instanceOfApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats(value: object): value is ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats {
40
+ if (!('rank' in value) || value['rank'] === undefined) return false;
41
+ if (!('wagerAmount' in value) || value['wagerAmount'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSON(json: any): ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats {
46
+ return ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'rank': json['rank'],
56
+ 'wagerAmount': json['wagerAmount'],
57
+ };
58
+ }
59
+
60
+ export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSON(json: any): ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats {
61
+ return ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStatsToJSONTyped(value?: ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'rank': value['rank'],
72
+ 'wagerAmount': value['wagerAmount'],
73
+ };
74
+ }
75
+
package/models/index.js CHANGED
@@ -375,6 +375,7 @@ __exportStar(require("./ApiPublicGamesSlugGet200ResponseResponseObjectGamesProvi
375
375
  __exportStar(require("./ApiPublicLeaderboardCurrentGet200Response"), exports);
376
376
  __exportStar(require("./ApiPublicLeaderboardCurrentGet200ResponseResponseObject"), exports);
377
377
  __exportStar(require("./ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner"), exports);
378
+ __exportStar(require("./ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats"), exports);
378
379
  __exportStar(require("./ApiPublicPolicyGet200Response"), exports);
379
380
  __exportStar(require("./ApiPublicPolicyGet200ResponseResponseObject"), exports);
380
381
  __exportStar(require("./ApiPublicProvidersGet200Response"), exports);
package/models/index.ts CHANGED
@@ -359,6 +359,7 @@ export * from './ApiPublicGamesSlugGet200ResponseResponseObjectGamesProvider';
359
359
  export * from './ApiPublicLeaderboardCurrentGet200Response';
360
360
  export * from './ApiPublicLeaderboardCurrentGet200ResponseResponseObject';
361
361
  export * from './ApiPublicLeaderboardCurrentGet200ResponseResponseObjectRankingsInner';
362
+ export * from './ApiPublicLeaderboardCurrentGet200ResponseResponseObjectUserStats';
362
363
  export * from './ApiPublicPolicyGet200Response';
363
364
  export * from './ApiPublicPolicyGet200ResponseResponseObject';
364
365
  export * from './ApiPublicProvidersGet200Response';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gambulls-org/gambulls-apis",
3
- "version": "3.0.439",
3
+ "version": "3.0.440",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "build": "tsc",