@pluto-khronos/api-client 3.5.1 → 3.6.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/dist/apis/ParlaysApi.d.ts +230 -0
- package/dist/apis/ParlaysApi.d.ts.map +1 -0
- package/dist/apis/ParlaysApi.js +251 -0
- package/dist/apis/ParlaysApi.js.map +1 -0
- package/dist/apis/PredictionApi.d.ts +150 -29
- package/dist/apis/PredictionApi.d.ts.map +1 -1
- package/dist/apis/PredictionApi.js +135 -21
- package/dist/apis/PredictionApi.js.map +1 -1
- package/dist/apis/PropsApi.d.ts +136 -0
- package/dist/apis/PropsApi.d.ts.map +1 -1
- package/dist/apis/PropsApi.js +129 -1
- package/dist/apis/PropsApi.js.map +1 -1
- package/dist/apis/RecapApi.d.ts +62 -0
- package/dist/apis/RecapApi.d.ts.map +1 -0
- package/dist/apis/RecapApi.js +93 -0
- package/dist/apis/RecapApi.js.map +1 -0
- package/dist/apis/WebhooksApi.d.ts +4 -4
- package/dist/apis/WebhooksApi.js +2 -2
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.d.ts.map +1 -1
- package/dist/apis/index.js +2 -0
- package/dist/apis/index.js.map +1 -1
- package/dist/models/AllUserPredictionsDto.d.ts +12 -29
- package/dist/models/AllUserPredictionsDto.d.ts.map +1 -1
- package/dist/models/AllUserPredictionsDto.js +14 -29
- package/dist/models/AllUserPredictionsDto.js.map +1 -1
- package/dist/models/CancelParlayDto.d.ts +33 -0
- package/dist/models/CancelParlayDto.d.ts.map +1 -0
- package/dist/models/CancelParlayDto.js +49 -0
- package/dist/models/CancelParlayDto.js.map +1 -0
- package/dist/models/CreatePredictionDto.d.ts +2 -16
- package/dist/models/CreatePredictionDto.d.ts.map +1 -1
- package/dist/models/CreatePredictionDto.js +0 -13
- package/dist/models/CreatePredictionDto.js.map +1 -1
- package/dist/models/EventContextDto.d.ts +81 -0
- package/dist/models/EventContextDto.d.ts.map +1 -0
- package/dist/models/EventContextDto.js +79 -0
- package/dist/models/EventContextDto.js.map +1 -0
- package/dist/models/EventPredictionsDto.d.ts +31 -6
- package/dist/models/EventPredictionsDto.d.ts.map +1 -1
- package/dist/models/EventPredictionsDto.js +22 -5
- package/dist/models/EventPredictionsDto.js.map +1 -1
- package/dist/models/InitParlayDto.d.ts +52 -0
- package/dist/models/InitParlayDto.d.ts.map +1 -0
- package/dist/models/InitParlayDto.js +64 -0
- package/dist/models/InitParlayDto.js.map +1 -0
- package/dist/models/InitParlayLegDto.d.ts +39 -0
- package/dist/models/InitParlayLegDto.d.ts.map +1 -0
- package/dist/models/InitParlayLegDto.js +55 -0
- package/dist/models/InitParlayLegDto.js.map +1 -0
- package/dist/models/InitParlayResponseDto.d.ts +58 -0
- package/dist/models/InitParlayResponseDto.d.ts.map +1 -0
- package/dist/models/InitParlayResponseDto.js +68 -0
- package/dist/models/InitParlayResponseDto.js.map +1 -0
- package/dist/models/NeedsSettlementDto.d.ts +105 -0
- package/dist/models/NeedsSettlementDto.d.ts.map +1 -0
- package/dist/models/NeedsSettlementDto.js +89 -0
- package/dist/models/NeedsSettlementDto.js.map +1 -0
- package/dist/models/NeedsSettlementResponseDto.d.ts +47 -0
- package/dist/models/NeedsSettlementResponseDto.d.ts.map +1 -0
- package/dist/models/NeedsSettlementResponseDto.js +61 -0
- package/dist/models/NeedsSettlementResponseDto.js.map +1 -0
- package/dist/models/Outcome.d.ts +1 -1
- package/dist/models/OutcomeSettledWebhookDto.d.ts +22 -5
- package/dist/models/OutcomeSettledWebhookDto.d.ts.map +1 -1
- package/dist/models/OutcomeSettledWebhookDto.js +14 -2
- package/dist/models/OutcomeSettledWebhookDto.js.map +1 -1
- package/dist/models/ParlayLegPreviewDto.d.ts +78 -0
- package/dist/models/ParlayLegPreviewDto.d.ts.map +1 -0
- package/dist/models/ParlayLegPreviewDto.js +82 -0
- package/dist/models/ParlayLegPreviewDto.js.map +1 -0
- package/dist/models/ParlayLegResponseDto.d.ts +107 -0
- package/dist/models/ParlayLegResponseDto.d.ts.map +1 -0
- package/dist/models/ParlayLegResponseDto.js +102 -0
- package/dist/models/ParlayLegResponseDto.js.map +1 -0
- package/dist/models/ParlayResponseDto.d.ts +117 -0
- package/dist/models/ParlayResponseDto.d.ts.map +1 -0
- package/dist/models/ParlayResponseDto.js +105 -0
- package/dist/models/ParlayResponseDto.js.map +1 -0
- package/dist/models/PlaceParlayDto.d.ts +39 -0
- package/dist/models/PlaceParlayDto.d.ts.map +1 -0
- package/dist/models/PlaceParlayDto.js +55 -0
- package/dist/models/PlaceParlayDto.js.map +1 -0
- package/dist/models/PlacedBetslip.d.ts +6 -0
- package/dist/models/PlacedBetslip.d.ts.map +1 -1
- package/dist/models/PlacedBetslip.js +4 -0
- package/dist/models/PlacedBetslip.js.map +1 -1
- package/dist/models/PostPropsDto.d.ts +53 -0
- package/dist/models/PostPropsDto.d.ts.map +1 -0
- package/dist/models/PostPropsDto.js +67 -0
- package/dist/models/PostPropsDto.js.map +1 -0
- package/dist/models/PostPropsLedgerEntryDto.d.ts +51 -0
- package/dist/models/PostPropsLedgerEntryDto.d.ts.map +1 -0
- package/dist/models/PostPropsLedgerEntryDto.js +63 -0
- package/dist/models/PostPropsLedgerEntryDto.js.map +1 -0
- package/dist/models/PostPropsResponseDto.d.ts +52 -0
- package/dist/models/PostPropsResponseDto.d.ts.map +1 -0
- package/dist/models/PostPropsResponseDto.js +64 -0
- package/dist/models/PostPropsResponseDto.js.map +1 -0
- package/dist/models/PredictionDTO.d.ts +2 -0
- package/dist/models/PredictionDTO.d.ts.map +1 -1
- package/dist/models/PredictionDTO.js +3 -1
- package/dist/models/PredictionDTO.js.map +1 -1
- package/dist/models/PredictionResponseDto.d.ts +122 -0
- package/dist/models/PredictionResponseDto.d.ts.map +1 -0
- package/dist/models/{Prediction.js → PredictionResponseDto.js} +30 -45
- package/dist/models/PredictionResponseDto.js.map +1 -0
- package/dist/models/PredictionStatsDto.d.ts +84 -0
- package/dist/models/PredictionStatsDto.d.ts.map +1 -0
- package/dist/models/PredictionStatsDto.js +88 -0
- package/dist/models/PredictionStatsDto.js.map +1 -0
- package/dist/models/PropOutcomeDetailDto.d.ts +1 -1
- package/dist/models/PropOutcomeSideDto.d.ts +1 -1
- package/dist/models/RecapPredictorDto.d.ts +51 -0
- package/dist/models/RecapPredictorDto.d.ts.map +1 -0
- package/dist/models/RecapPredictorDto.js +63 -0
- package/dist/models/RecapPredictorDto.js.map +1 -0
- package/dist/models/RecapWeeklyResponseDto.d.ts +90 -0
- package/dist/models/RecapWeeklyResponseDto.d.ts.map +1 -0
- package/dist/models/RecapWeeklyResponseDto.js +90 -0
- package/dist/models/RecapWeeklyResponseDto.js.map +1 -0
- package/dist/models/RecapWinDto.d.ts +51 -0
- package/dist/models/RecapWinDto.d.ts.map +1 -0
- package/dist/models/RecapWinDto.js +59 -0
- package/dist/models/RecapWinDto.js.map +1 -0
- package/dist/models/RecapWindowDto.d.ts +51 -0
- package/dist/models/RecapWindowDto.d.ts.map +1 -0
- package/dist/models/RecapWindowDto.js +59 -0
- package/dist/models/RecapWindowDto.js.map +1 -0
- package/dist/models/SetPropResultDto.d.ts +14 -11
- package/dist/models/SetPropResultDto.d.ts.map +1 -1
- package/dist/models/SetPropResultDto.js +13 -14
- package/dist/models/SetPropResultDto.js.map +1 -1
- package/dist/models/SettlementQueueWarningDto.d.ts +53 -0
- package/dist/models/SettlementQueueWarningDto.d.ts.map +1 -0
- package/dist/models/SettlementQueueWarningDto.js +67 -0
- package/dist/models/SettlementQueueWarningDto.js.map +1 -0
- package/dist/models/SimpleLeaderboardEntryDto.d.ts +27 -0
- package/dist/models/SimpleLeaderboardEntryDto.d.ts.map +1 -1
- package/dist/models/SimpleLeaderboardEntryDto.js +21 -0
- package/dist/models/SimpleLeaderboardEntryDto.js.map +1 -1
- package/dist/models/UpdatePredictionDto.d.ts +2 -0
- package/dist/models/UpdatePredictionDto.d.ts.map +1 -1
- package/dist/models/UpdatePredictionDto.js +3 -1
- package/dist/models/UpdatePredictionDto.js.map +1 -1
- package/dist/models/UserParlaysResponseDto.d.ts +58 -0
- package/dist/models/UserParlaysResponseDto.d.ts.map +1 -0
- package/dist/models/UserParlaysResponseDto.js +68 -0
- package/dist/models/UserParlaysResponseDto.js.map +1 -0
- package/dist/models/VoidPropDto.d.ts +39 -0
- package/dist/models/VoidPropDto.d.ts.map +1 -0
- package/dist/models/VoidPropDto.js +53 -0
- package/dist/models/VoidPropDto.js.map +1 -0
- package/dist/models/VoidPropResponseDto.d.ts +39 -0
- package/dist/models/VoidPropResponseDto.d.ts.map +1 -0
- package/dist/models/VoidPropResponseDto.js +55 -0
- package/dist/models/VoidPropResponseDto.js.map +1 -0
- package/dist/models/WebhookAcceptedResponseDto.d.ts +1 -1
- package/dist/models/index.d.ts +24 -2
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +24 -2
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/models/Prediction.d.ts +0 -139
- package/dist/models/Prediction.d.ts.map +0 -1
- package/dist/models/Prediction.js.map +0 -1
- package/dist/models/ProcessedPredictions.d.ts +0 -99
- package/dist/models/ProcessedPredictions.d.ts.map +0 -1
- package/dist/models/ProcessedPredictions.js +0 -100
- package/dist/models/ProcessedPredictions.js.map +0 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Khronos API Documentation
|
|
3
|
+
* Khronos is a sports-focused API that integrates with my other app, Pluto for Discord.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EventContextDto
|
|
16
|
+
*/
|
|
17
|
+
export interface EventContextDto {
|
|
18
|
+
/**
|
|
19
|
+
* Goracle event ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EventContextDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Goracle sport key
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EventContextDto
|
|
28
|
+
*/
|
|
29
|
+
sport: string;
|
|
30
|
+
/**
|
|
31
|
+
* Human-readable sport name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EventContextDto
|
|
34
|
+
*/
|
|
35
|
+
sport_title: string;
|
|
36
|
+
/**
|
|
37
|
+
* Home team name
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof EventContextDto
|
|
40
|
+
*/
|
|
41
|
+
home_team: string;
|
|
42
|
+
/**
|
|
43
|
+
* Away team name
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EventContextDto
|
|
46
|
+
*/
|
|
47
|
+
away_team: string;
|
|
48
|
+
/**
|
|
49
|
+
* Event start time
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof EventContextDto
|
|
52
|
+
*/
|
|
53
|
+
commence_time: Date;
|
|
54
|
+
/**
|
|
55
|
+
* Event status
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof EventContextDto
|
|
58
|
+
*/
|
|
59
|
+
status: string;
|
|
60
|
+
/**
|
|
61
|
+
* Final or current home score
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof EventContextDto
|
|
64
|
+
*/
|
|
65
|
+
home_score?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Final or current away score
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof EventContextDto
|
|
70
|
+
*/
|
|
71
|
+
away_score?: number;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the EventContextDto interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfEventContextDto(value: object): value is EventContextDto;
|
|
77
|
+
export declare function EventContextDtoFromJSON(json: any): EventContextDto;
|
|
78
|
+
export declare function EventContextDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventContextDto;
|
|
79
|
+
export declare function EventContextDtoToJSON(json: any): EventContextDto;
|
|
80
|
+
export declare function EventContextDtoToJSONTyped(value?: EventContextDto | null, ignoreDiscriminator?: boolean): any;
|
|
81
|
+
//# sourceMappingURL=EventContextDto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventContextDto.d.ts","sourceRoot":"","sources":["../../src/models/EventContextDto.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,IAAI,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CASjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAgBrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiBpH"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Khronos API Documentation
|
|
6
|
+
* Khronos is a sports-focused API that integrates with my other app, Pluto for Discord.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
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.instanceOfEventContextDto = instanceOfEventContextDto;
|
|
17
|
+
exports.EventContextDtoFromJSON = EventContextDtoFromJSON;
|
|
18
|
+
exports.EventContextDtoFromJSONTyped = EventContextDtoFromJSONTyped;
|
|
19
|
+
exports.EventContextDtoToJSON = EventContextDtoToJSON;
|
|
20
|
+
exports.EventContextDtoToJSONTyped = EventContextDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the EventContextDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfEventContextDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('sport' in value) || value['sport'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('sport_title' in value) || value['sport_title'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('home_team' in value) || value['home_team'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('away_team' in value) || value['away_team'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('commence_time' in value) || value['commence_time'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function EventContextDtoFromJSON(json) {
|
|
42
|
+
return EventContextDtoFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function EventContextDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'sport': json['sport'],
|
|
51
|
+
'sport_title': json['sport_title'],
|
|
52
|
+
'home_team': json['home_team'],
|
|
53
|
+
'away_team': json['away_team'],
|
|
54
|
+
'commence_time': (new Date(json['commence_time'])),
|
|
55
|
+
'status': json['status'],
|
|
56
|
+
'home_score': json['home_score'] == null ? undefined : json['home_score'],
|
|
57
|
+
'away_score': json['away_score'] == null ? undefined : json['away_score'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function EventContextDtoToJSON(json) {
|
|
61
|
+
return EventContextDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function EventContextDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'sport': value['sport'],
|
|
70
|
+
'sport_title': value['sport_title'],
|
|
71
|
+
'home_team': value['home_team'],
|
|
72
|
+
'away_team': value['away_team'],
|
|
73
|
+
'commence_time': value['commence_time'].toISOString(),
|
|
74
|
+
'status': value['status'],
|
|
75
|
+
'home_score': value['home_score'],
|
|
76
|
+
'away_score': value['away_score'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=EventContextDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventContextDto.js","sourceRoot":"","sources":["../../src/models/EventContextDto.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoEH,8DASC;AAED,0DAEC;AAED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
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { EventContextDto } from './EventContextDto';
|
|
13
|
+
import type { PredictionResponseDto } from './PredictionResponseDto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -18,16 +19,40 @@ import type { PredictionDTO } from './PredictionDTO';
|
|
|
18
19
|
export interface EventPredictionsDto {
|
|
19
20
|
/**
|
|
20
21
|
* Event context data from Goracle
|
|
21
|
-
* @type {
|
|
22
|
+
* @type {EventContextDto}
|
|
22
23
|
* @memberof EventPredictionsDto
|
|
23
24
|
*/
|
|
24
|
-
event_context:
|
|
25
|
+
event_context: EventContextDto | null;
|
|
25
26
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {Array<
|
|
27
|
+
* Predictions matching the filters on this page
|
|
28
|
+
* @type {Array<PredictionResponseDto>}
|
|
28
29
|
* @memberof EventPredictionsDto
|
|
29
30
|
*/
|
|
30
|
-
predictions: Array<
|
|
31
|
+
predictions: Array<PredictionResponseDto>;
|
|
32
|
+
/**
|
|
33
|
+
* Current one-based page
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof EventPredictionsDto
|
|
36
|
+
*/
|
|
37
|
+
page: number;
|
|
38
|
+
/**
|
|
39
|
+
* Maximum predictions per page
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof EventPredictionsDto
|
|
42
|
+
*/
|
|
43
|
+
limit: number;
|
|
44
|
+
/**
|
|
45
|
+
* Total predictions matching the filters
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof EventPredictionsDto
|
|
48
|
+
*/
|
|
49
|
+
total: number;
|
|
50
|
+
/**
|
|
51
|
+
* Total pages matching the filters
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof EventPredictionsDto
|
|
54
|
+
*/
|
|
55
|
+
total_pages: number;
|
|
31
56
|
}
|
|
32
57
|
/**
|
|
33
58
|
* Check if a given object implements the EventPredictionsDto interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventPredictionsDto.d.ts","sourceRoot":"","sources":["../../src/models/EventPredictionsDto.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"EventPredictionsDto.d.ts","sourceRoot":"","sources":["../../src/models/EventPredictionsDto.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,aAAa,EAAE,eAAe,GAAG,IAAI,CAAC;IACtC;;;;OAIG;IACH,WAAW,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAC1C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAQzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAa7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc5H"}
|
|
@@ -18,7 +18,8 @@ exports.EventPredictionsDtoFromJSON = EventPredictionsDtoFromJSON;
|
|
|
18
18
|
exports.EventPredictionsDtoFromJSONTyped = EventPredictionsDtoFromJSONTyped;
|
|
19
19
|
exports.EventPredictionsDtoToJSON = EventPredictionsDtoToJSON;
|
|
20
20
|
exports.EventPredictionsDtoToJSONTyped = EventPredictionsDtoToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const EventContextDto_1 = require("./EventContextDto");
|
|
22
|
+
const PredictionResponseDto_1 = require("./PredictionResponseDto");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the EventPredictionsDto interface.
|
|
24
25
|
*/
|
|
@@ -27,6 +28,14 @@ function instanceOfEventPredictionsDto(value) {
|
|
|
27
28
|
return false;
|
|
28
29
|
if (!('predictions' in value) || value['predictions'] === undefined)
|
|
29
30
|
return false;
|
|
31
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('total_pages' in value) || value['total_pages'] === undefined)
|
|
38
|
+
return false;
|
|
30
39
|
return true;
|
|
31
40
|
}
|
|
32
41
|
function EventPredictionsDtoFromJSON(json) {
|
|
@@ -37,8 +46,12 @@ function EventPredictionsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
46
|
return json;
|
|
38
47
|
}
|
|
39
48
|
return {
|
|
40
|
-
'event_context': json['event_context'],
|
|
41
|
-
'predictions': (json['predictions']
|
|
49
|
+
'event_context': (0, EventContextDto_1.EventContextDtoFromJSON)(json['event_context']),
|
|
50
|
+
'predictions': (json['predictions'].map(PredictionResponseDto_1.PredictionResponseDtoFromJSON)),
|
|
51
|
+
'page': json['page'],
|
|
52
|
+
'limit': json['limit'],
|
|
53
|
+
'total': json['total'],
|
|
54
|
+
'total_pages': json['total_pages'],
|
|
42
55
|
};
|
|
43
56
|
}
|
|
44
57
|
function EventPredictionsDtoToJSON(json) {
|
|
@@ -49,8 +62,12 @@ function EventPredictionsDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
62
|
return value;
|
|
50
63
|
}
|
|
51
64
|
return {
|
|
52
|
-
'event_context': value['event_context'],
|
|
53
|
-
'predictions': (value['predictions']
|
|
65
|
+
'event_context': (0, EventContextDto_1.EventContextDtoToJSON)(value['event_context']),
|
|
66
|
+
'predictions': (value['predictions'].map(PredictionResponseDto_1.PredictionResponseDtoToJSON)),
|
|
67
|
+
'page': value['page'],
|
|
68
|
+
'limit': value['limit'],
|
|
69
|
+
'total': value['total'],
|
|
70
|
+
'total_pages': value['total_pages'],
|
|
54
71
|
};
|
|
55
72
|
}
|
|
56
73
|
//# sourceMappingURL=EventPredictionsDto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventPredictionsDto.js","sourceRoot":"","sources":["../../src/models/EventPredictionsDto.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;
|
|
1
|
+
{"version":3,"file":"EventPredictionsDto.js","sourceRoot":"","sources":["../../src/models/EventPredictionsDto.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAiEH,sEAQC;AAED,kEAEC;AAED,4EAaC;AAED,8DAEC;AAED,wEAcC;AA5GD,uDAK2B;AAE3B,mEAKiC;AA8CjC;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtF,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,C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;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,uCAAqB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC9D,aAAa,EAAE,CAAE,KAAK,CAAC,aAAa,CAAgB,CAAC,GAAG,CAAC,mDAA2B,CAAC,CAAC;QACtF,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;KACtC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Khronos API Documentation
|
|
3
|
+
* Khronos is a sports-focused API that integrates with my other app, Pluto for Discord.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { InitParlayLegDto } from './InitParlayLegDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InitParlayDto
|
|
17
|
+
*/
|
|
18
|
+
export interface InitParlayDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<InitParlayLegDto>}
|
|
22
|
+
* @memberof InitParlayDto
|
|
23
|
+
*/
|
|
24
|
+
legs: Array<InitParlayLegDto>;
|
|
25
|
+
/**
|
|
26
|
+
* Stake in account currency
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof InitParlayDto
|
|
29
|
+
*/
|
|
30
|
+
stake: number;
|
|
31
|
+
/**
|
|
32
|
+
* Discord guild where the parlay was created
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof InitParlayDto
|
|
35
|
+
*/
|
|
36
|
+
guild_id: string;
|
|
37
|
+
/**
|
|
38
|
+
* Discord user placing the parlay
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof InitParlayDto
|
|
41
|
+
*/
|
|
42
|
+
user_id: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the InitParlayDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfInitParlayDto(value: object): value is InitParlayDto;
|
|
48
|
+
export declare function InitParlayDtoFromJSON(json: any): InitParlayDto;
|
|
49
|
+
export declare function InitParlayDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InitParlayDto;
|
|
50
|
+
export declare function InitParlayDtoToJSON(json: any): InitParlayDto;
|
|
51
|
+
export declare function InitParlayDtoToJSONTyped(value?: InitParlayDto | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
//# sourceMappingURL=InitParlayDto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitParlayDto.d.ts","sourceRoot":"","sources":["../../src/models/InitParlayDto.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC9B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAM7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAWjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYhH"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Khronos API Documentation
|
|
6
|
+
* Khronos is a sports-focused API that integrates with my other app, Pluto for Discord.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
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.instanceOfInitParlayDto = instanceOfInitParlayDto;
|
|
17
|
+
exports.InitParlayDtoFromJSON = InitParlayDtoFromJSON;
|
|
18
|
+
exports.InitParlayDtoFromJSONTyped = InitParlayDtoFromJSONTyped;
|
|
19
|
+
exports.InitParlayDtoToJSON = InitParlayDtoToJSON;
|
|
20
|
+
exports.InitParlayDtoToJSONTyped = InitParlayDtoToJSONTyped;
|
|
21
|
+
const InitParlayLegDto_1 = require("./InitParlayLegDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the InitParlayDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfInitParlayDto(value) {
|
|
26
|
+
if (!('legs' in value) || value['legs'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('stake' in value) || value['stake'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('guild_id' in value) || value['guild_id'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('user_id' in value) || value['user_id'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function InitParlayDtoFromJSON(json) {
|
|
37
|
+
return InitParlayDtoFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function InitParlayDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'legs': (json['legs'].map(InitParlayLegDto_1.InitParlayLegDtoFromJSON)),
|
|
45
|
+
'stake': json['stake'],
|
|
46
|
+
'guild_id': json['guild_id'],
|
|
47
|
+
'user_id': json['user_id'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function InitParlayDtoToJSON(json) {
|
|
51
|
+
return InitParlayDtoToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function InitParlayDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'legs': (value['legs'].map(InitParlayLegDto_1.InitParlayLegDtoToJSON)),
|
|
59
|
+
'stake': value['stake'],
|
|
60
|
+
'guild_id': value['guild_id'],
|
|
61
|
+
'user_id': value['user_id'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=InitParlayDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitParlayDto.js","sourceRoot":"","sources":["../../src/models/InitParlayDto.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8CH,0DAMC;AAED,sDAEC;AAED,gEAWC;AAED,kDAEC;AAED,4DAYC;AAnFD,yDAK4B;AAkC5B;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,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AAC,yCAAsB,CAAC,CAAC;QACnE,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Khronos API Documentation
|
|
3
|
+
* Khronos is a sports-focused API that integrates with my other app, Pluto for Discord.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InitParlayLegDto
|
|
16
|
+
*/
|
|
17
|
+
export interface InitParlayLegDto {
|
|
18
|
+
/**
|
|
19
|
+
* Goracle event identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InitParlayLegDto
|
|
22
|
+
*/
|
|
23
|
+
event_id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Goracle outcome UUID
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InitParlayLegDto
|
|
28
|
+
*/
|
|
29
|
+
outcome_uuid: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the InitParlayLegDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfInitParlayLegDto(value: object): value is InitParlayLegDto;
|
|
35
|
+
export declare function InitParlayLegDtoFromJSON(json: any): InitParlayLegDto;
|
|
36
|
+
export declare function InitParlayLegDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InitParlayLegDto;
|
|
37
|
+
export declare function InitParlayLegDtoToJSON(json: any): InitParlayLegDto;
|
|
38
|
+
export declare function InitParlayLegDtoToJSONTyped(value?: InitParlayLegDto | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
//# sourceMappingURL=InitParlayLegDto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitParlayLegDto.d.ts","sourceRoot":"","sources":["../../src/models/InitParlayLegDto.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAInF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CASvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUtH"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Khronos API Documentation
|
|
6
|
+
* Khronos is a sports-focused API that integrates with my other app, Pluto for Discord.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
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.instanceOfInitParlayLegDto = instanceOfInitParlayLegDto;
|
|
17
|
+
exports.InitParlayLegDtoFromJSON = InitParlayLegDtoFromJSON;
|
|
18
|
+
exports.InitParlayLegDtoFromJSONTyped = InitParlayLegDtoFromJSONTyped;
|
|
19
|
+
exports.InitParlayLegDtoToJSON = InitParlayLegDtoToJSON;
|
|
20
|
+
exports.InitParlayLegDtoToJSONTyped = InitParlayLegDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the InitParlayLegDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfInitParlayLegDto(value) {
|
|
25
|
+
if (!('event_id' in value) || value['event_id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('outcome_uuid' in value) || value['outcome_uuid'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function InitParlayLegDtoFromJSON(json) {
|
|
32
|
+
return InitParlayLegDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function InitParlayLegDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'event_id': json['event_id'],
|
|
40
|
+
'outcome_uuid': json['outcome_uuid'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function InitParlayLegDtoToJSON(json) {
|
|
44
|
+
return InitParlayLegDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function InitParlayLegDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'event_id': value['event_id'],
|
|
52
|
+
'outcome_uuid': value['outcome_uuid'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=InitParlayLegDto.js.map
|
|
@@ -0,0 +1 @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@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Khronos API Documentation
|
|
3
|
+
* Khronos is a sports-focused API that integrates with my other app, Pluto for Discord.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ParlayLegPreviewDto } from './ParlayLegPreviewDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InitParlayResponseDto
|
|
17
|
+
*/
|
|
18
|
+
export interface InitParlayResponseDto {
|
|
19
|
+
/**
|
|
20
|
+
* Single-use Redis token; expires after 15 minutes
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof InitParlayResponseDto
|
|
23
|
+
*/
|
|
24
|
+
init_token: string;
|
|
25
|
+
/**
|
|
26
|
+
* Combined American odds snapshot
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof InitParlayResponseDto
|
|
29
|
+
*/
|
|
30
|
+
combined_odds_american: number;
|
|
31
|
+
/**
|
|
32
|
+
* Potential payout including stake
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof InitParlayResponseDto
|
|
35
|
+
*/
|
|
36
|
+
potential_payout: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ParlayLegPreviewDto>}
|
|
40
|
+
* @memberof InitParlayResponseDto
|
|
41
|
+
*/
|
|
42
|
+
legs: Array<ParlayLegPreviewDto>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof InitParlayResponseDto
|
|
47
|
+
*/
|
|
48
|
+
expires_at: Date;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the InitParlayResponseDto interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfInitParlayResponseDto(value: object): value is InitParlayResponseDto;
|
|
54
|
+
export declare function InitParlayResponseDtoFromJSON(json: any): InitParlayResponseDto;
|
|
55
|
+
export declare function InitParlayResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InitParlayResponseDto;
|
|
56
|
+
export declare function InitParlayResponseDtoToJSON(json: any): InitParlayResponseDto;
|
|
57
|
+
export declare function InitParlayResponseDtoToJSONTyped(value?: InitParlayResponseDto | null, ignoreDiscriminator?: boolean): any;
|
|
58
|
+
//# sourceMappingURL=InitParlayResponseDto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitParlayResponseDto.d.ts","sourceRoot":"","sources":["../../src/models/InitParlayResponseDto.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAQjE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACjC;;;;OAIG;IACH,UAAU,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAO7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAYjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAahI"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Khronos API Documentation
|
|
6
|
+
* Khronos is a sports-focused API that integrates with my other app, Pluto for Discord.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
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.instanceOfInitParlayResponseDto = instanceOfInitParlayResponseDto;
|
|
17
|
+
exports.InitParlayResponseDtoFromJSON = InitParlayResponseDtoFromJSON;
|
|
18
|
+
exports.InitParlayResponseDtoFromJSONTyped = InitParlayResponseDtoFromJSONTyped;
|
|
19
|
+
exports.InitParlayResponseDtoToJSON = InitParlayResponseDtoToJSON;
|
|
20
|
+
exports.InitParlayResponseDtoToJSONTyped = InitParlayResponseDtoToJSONTyped;
|
|
21
|
+
const ParlayLegPreviewDto_1 = require("./ParlayLegPreviewDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the InitParlayResponseDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfInitParlayResponseDto(value) {
|
|
26
|
+
if (!('init_token' in value) || value['init_token'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('combined_odds_american' in value) || value['combined_odds_american'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('potential_payout' in value) || value['potential_payout'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('legs' in value) || value['legs'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('expires_at' in value) || value['expires_at'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function InitParlayResponseDtoFromJSON(json) {
|
|
39
|
+
return InitParlayResponseDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function InitParlayResponseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'init_token': json['init_token'],
|
|
47
|
+
'combined_odds_american': json['combined_odds_american'],
|
|
48
|
+
'potential_payout': json['potential_payout'],
|
|
49
|
+
'legs': (json['legs'].map(ParlayLegPreviewDto_1.ParlayLegPreviewDtoFromJSON)),
|
|
50
|
+
'expires_at': (new Date(json['expires_at'])),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function InitParlayResponseDtoToJSON(json) {
|
|
54
|
+
return InitParlayResponseDtoToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function InitParlayResponseDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'init_token': value['init_token'],
|
|
62
|
+
'combined_odds_american': value['combined_odds_american'],
|
|
63
|
+
'potential_payout': value['potential_payout'],
|
|
64
|
+
'legs': (value['legs'].map(ParlayLegPreviewDto_1.ParlayLegPreviewDtoToJSON)),
|
|
65
|
+
'expires_at': value['expires_at'].toISOString(),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=InitParlayResponseDto.js.map
|