@pluto-khronos/api-client 3.5.0 → 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
|
@@ -13,25 +13,26 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
const ProcessedPredictions_1 = require("./ProcessedPredictions");
|
|
16
|
+
exports.PredictionResponseDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfPredictionResponseDto = instanceOfPredictionResponseDto;
|
|
18
|
+
exports.PredictionResponseDtoFromJSON = PredictionResponseDtoFromJSON;
|
|
19
|
+
exports.PredictionResponseDtoFromJSONTyped = PredictionResponseDtoFromJSONTyped;
|
|
20
|
+
exports.PredictionResponseDtoToJSON = PredictionResponseDtoToJSON;
|
|
21
|
+
exports.PredictionResponseDtoToJSONTyped = PredictionResponseDtoToJSONTyped;
|
|
23
22
|
/**
|
|
24
23
|
* @export
|
|
25
24
|
*/
|
|
26
|
-
exports.
|
|
25
|
+
exports.PredictionResponseDtoStatusEnum = {
|
|
27
26
|
Pending: 'pending',
|
|
28
27
|
Completed: 'completed',
|
|
29
|
-
Error: 'error'
|
|
28
|
+
Error: 'error',
|
|
29
|
+
Push: 'push',
|
|
30
|
+
Void: 'void'
|
|
30
31
|
};
|
|
31
32
|
/**
|
|
32
|
-
* Check if a given object implements the
|
|
33
|
+
* Check if a given object implements the PredictionResponseDto interface.
|
|
33
34
|
*/
|
|
34
|
-
function
|
|
35
|
+
function instanceOfPredictionResponseDto(value) {
|
|
35
36
|
if (!('id' in value) || value['id'] === undefined)
|
|
36
37
|
return false;
|
|
37
38
|
if (!('user_id' in value) || value['user_id'] === undefined)
|
|
@@ -42,36 +43,26 @@ function instanceOfPrediction(value) {
|
|
|
42
43
|
return false;
|
|
43
44
|
if (!('event_id' in value) || value['event_id'] === undefined)
|
|
44
45
|
return false;
|
|
45
|
-
if (!('
|
|
46
|
-
return false;
|
|
47
|
-
if (!('market_key' in value) || value['market_key'] === undefined)
|
|
48
|
-
return false;
|
|
49
|
-
if (!('bookmaker_key' in value) || value['bookmaker_key'] === undefined)
|
|
46
|
+
if (!('sport' in value) || value['sport'] === undefined)
|
|
50
47
|
return false;
|
|
51
48
|
if (!('choice' in value) || value['choice'] === undefined)
|
|
52
49
|
return false;
|
|
53
|
-
if (!('is_correct' in value) || value['is_correct'] === undefined)
|
|
54
|
-
return false;
|
|
55
50
|
if (!('status' in value) || value['status'] === undefined)
|
|
56
51
|
return false;
|
|
57
52
|
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
58
53
|
return false;
|
|
59
54
|
if (!('guild_id' in value) || value['guild_id'] === undefined)
|
|
60
55
|
return false;
|
|
61
|
-
if (!('
|
|
62
|
-
return false;
|
|
63
|
-
if (!('week_number' in value) || value['week_number'] === undefined)
|
|
64
|
-
return false;
|
|
65
|
-
if (!('season_year' in value) || value['season_year'] === undefined)
|
|
56
|
+
if (!('market_key' in value) || value['market_key'] === undefined)
|
|
66
57
|
return false;
|
|
67
|
-
if (!('
|
|
58
|
+
if (!('bookmaker_key' in value) || value['bookmaker_key'] === undefined)
|
|
68
59
|
return false;
|
|
69
60
|
return true;
|
|
70
61
|
}
|
|
71
|
-
function
|
|
72
|
-
return
|
|
62
|
+
function PredictionResponseDtoFromJSON(json) {
|
|
63
|
+
return PredictionResponseDtoFromJSONTyped(json, false);
|
|
73
64
|
}
|
|
74
|
-
function
|
|
65
|
+
function PredictionResponseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
75
66
|
if (json == null) {
|
|
76
67
|
return json;
|
|
77
68
|
}
|
|
@@ -81,24 +72,21 @@ function PredictionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
72
|
'created_at': (new Date(json['created_at'])),
|
|
82
73
|
'outcome_uuid': json['outcome_uuid'],
|
|
83
74
|
'event_id': json['event_id'],
|
|
84
|
-
'market_id': json['market_id'],
|
|
85
|
-
'
|
|
86
|
-
'bookmaker_key': json['bookmaker_key'],
|
|
75
|
+
'market_id': json['market_id'] == null ? undefined : json['market_id'],
|
|
76
|
+
'sport': json['sport'],
|
|
87
77
|
'choice': json['choice'],
|
|
88
|
-
'is_correct': json['is_correct'],
|
|
78
|
+
'is_correct': json['is_correct'] == null ? undefined : json['is_correct'],
|
|
89
79
|
'status': json['status'],
|
|
90
80
|
'updated_at': (new Date(json['updated_at'])),
|
|
91
81
|
'guild_id': json['guild_id'],
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'season_year': json['season_year'],
|
|
95
|
-
'processed_predictions': (json['processed_predictions'] == null ? null : json['processed_predictions'].map(ProcessedPredictions_1.ProcessedPredictionsFromJSON)),
|
|
82
|
+
'market_key': json['market_key'],
|
|
83
|
+
'bookmaker_key': json['bookmaker_key'],
|
|
96
84
|
};
|
|
97
85
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
86
|
+
function PredictionResponseDtoToJSON(json) {
|
|
87
|
+
return PredictionResponseDtoToJSONTyped(json, false);
|
|
100
88
|
}
|
|
101
|
-
function
|
|
89
|
+
function PredictionResponseDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
102
90
|
if (value == null) {
|
|
103
91
|
return value;
|
|
104
92
|
}
|
|
@@ -109,17 +97,14 @@ function PredictionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
109
97
|
'outcome_uuid': value['outcome_uuid'],
|
|
110
98
|
'event_id': value['event_id'],
|
|
111
99
|
'market_id': value['market_id'],
|
|
112
|
-
'
|
|
113
|
-
'bookmaker_key': value['bookmaker_key'],
|
|
100
|
+
'sport': value['sport'],
|
|
114
101
|
'choice': value['choice'],
|
|
115
102
|
'is_correct': value['is_correct'],
|
|
116
103
|
'status': value['status'],
|
|
117
104
|
'updated_at': value['updated_at'].toISOString(),
|
|
118
105
|
'guild_id': value['guild_id'],
|
|
119
|
-
'
|
|
120
|
-
'
|
|
121
|
-
'season_year': value['season_year'],
|
|
122
|
-
'processed_predictions': (value['processed_predictions'] == null ? null : value['processed_predictions'].map(ProcessedPredictions_1.ProcessedPredictionsToJSON)),
|
|
106
|
+
'market_key': value['market_key'],
|
|
107
|
+
'bookmaker_key': value['bookmaker_key'],
|
|
123
108
|
};
|
|
124
109
|
}
|
|
125
|
-
//# sourceMappingURL=
|
|
110
|
+
//# sourceMappingURL=PredictionResponseDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PredictionResponseDto.js","sourceRoot":"","sources":["../../src/models/PredictionResponseDto.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAgHH,0EAcC;AAED,sEAEC;AAED,gFA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
/**
|
|
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 PredictionStatsDto
|
|
16
|
+
*/
|
|
17
|
+
export interface PredictionStatsDto {
|
|
18
|
+
/**
|
|
19
|
+
* Discord user ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PredictionStatsDto
|
|
22
|
+
*/
|
|
23
|
+
user_id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of correct predictions
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PredictionStatsDto
|
|
28
|
+
*/
|
|
29
|
+
correct_predictions: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of incorrect predictions
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PredictionStatsDto
|
|
34
|
+
*/
|
|
35
|
+
incorrect_predictions: number;
|
|
36
|
+
/**
|
|
37
|
+
* Total scoring-eligible predictions
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PredictionStatsDto
|
|
40
|
+
*/
|
|
41
|
+
total_predictions: number;
|
|
42
|
+
/**
|
|
43
|
+
* Success rate as a percentage
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PredictionStatsDto
|
|
46
|
+
*/
|
|
47
|
+
success_rate: number;
|
|
48
|
+
/**
|
|
49
|
+
* Current consecutive-correct prediction streak
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PredictionStatsDto
|
|
52
|
+
*/
|
|
53
|
+
current_streak: number;
|
|
54
|
+
/**
|
|
55
|
+
* Best consecutive-correct prediction streak
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PredictionStatsDto
|
|
58
|
+
*/
|
|
59
|
+
best_streak: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {PredictionStatsDtoBadgeTierEnum}
|
|
63
|
+
* @memberof PredictionStatsDto
|
|
64
|
+
*/
|
|
65
|
+
badge_tier: PredictionStatsDtoBadgeTierEnum | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const PredictionStatsDtoBadgeTierEnum: {
|
|
71
|
+
readonly NUMBER_3: 3;
|
|
72
|
+
readonly NUMBER_5: 5;
|
|
73
|
+
readonly NUMBER_10: 10;
|
|
74
|
+
};
|
|
75
|
+
export type PredictionStatsDtoBadgeTierEnum = typeof PredictionStatsDtoBadgeTierEnum[keyof typeof PredictionStatsDtoBadgeTierEnum];
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the PredictionStatsDto interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfPredictionStatsDto(value: object): value is PredictionStatsDto;
|
|
80
|
+
export declare function PredictionStatsDtoFromJSON(json: any): PredictionStatsDto;
|
|
81
|
+
export declare function PredictionStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PredictionStatsDto;
|
|
82
|
+
export declare function PredictionStatsDtoToJSON(json: any): PredictionStatsDto;
|
|
83
|
+
export declare function PredictionStatsDtoToJSONTyped(value?: PredictionStatsDto | null, ignoreDiscriminator?: boolean): any;
|
|
84
|
+
//# sourceMappingURL=PredictionStatsDto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PredictionStatsDto.d.ts","sourceRoot":"","sources":["../../src/models/PredictionStatsDto.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,+BAA+B,GAAG,IAAI,CAAC;CACtD;AAGD;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;CAIlC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC;AAGnI;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAUvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAe3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB1H"}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.PredictionStatsDtoBadgeTierEnum = void 0;
|
|
17
|
+
exports.instanceOfPredictionStatsDto = instanceOfPredictionStatsDto;
|
|
18
|
+
exports.PredictionStatsDtoFromJSON = PredictionStatsDtoFromJSON;
|
|
19
|
+
exports.PredictionStatsDtoFromJSONTyped = PredictionStatsDtoFromJSONTyped;
|
|
20
|
+
exports.PredictionStatsDtoToJSON = PredictionStatsDtoToJSON;
|
|
21
|
+
exports.PredictionStatsDtoToJSONTyped = PredictionStatsDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PredictionStatsDtoBadgeTierEnum = {
|
|
26
|
+
NUMBER_3: 3,
|
|
27
|
+
NUMBER_5: 5,
|
|
28
|
+
NUMBER_10: 10
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PredictionStatsDto interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfPredictionStatsDto(value) {
|
|
34
|
+
if (!('user_id' in value) || value['user_id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('correct_predictions' in value) || value['correct_predictions'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('incorrect_predictions' in value) || value['incorrect_predictions'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('total_predictions' in value) || value['total_predictions'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('success_rate' in value) || value['success_rate'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('current_streak' in value) || value['current_streak'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('best_streak' in value) || value['best_streak'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('badge_tier' in value) || value['badge_tier'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function PredictionStatsDtoFromJSON(json) {
|
|
53
|
+
return PredictionStatsDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function PredictionStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'user_id': json['user_id'],
|
|
61
|
+
'correct_predictions': json['correct_predictions'],
|
|
62
|
+
'incorrect_predictions': json['incorrect_predictions'],
|
|
63
|
+
'total_predictions': json['total_predictions'],
|
|
64
|
+
'success_rate': json['success_rate'],
|
|
65
|
+
'current_streak': json['current_streak'],
|
|
66
|
+
'best_streak': json['best_streak'],
|
|
67
|
+
'badge_tier': json['badge_tier'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function PredictionStatsDtoToJSON(json) {
|
|
71
|
+
return PredictionStatsDtoToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function PredictionStatsDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'user_id': value['user_id'],
|
|
79
|
+
'correct_predictions': value['correct_predictions'],
|
|
80
|
+
'incorrect_predictions': value['incorrect_predictions'],
|
|
81
|
+
'total_predictions': value['total_predictions'],
|
|
82
|
+
'success_rate': value['success_rate'],
|
|
83
|
+
'current_streak': value['current_streak'],
|
|
84
|
+
'best_streak': value['best_streak'],
|
|
85
|
+
'badge_tier': value['badge_tier'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=PredictionStatsDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PredictionStatsDto.js","sourceRoot":"","sources":["../../src/models/PredictionStatsDto.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB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AAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 RecapPredictorDto
|
|
16
|
+
*/
|
|
17
|
+
export interface RecapPredictorDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RecapPredictorDto
|
|
22
|
+
*/
|
|
23
|
+
user_id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof RecapPredictorDto
|
|
28
|
+
*/
|
|
29
|
+
correct_predictions: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RecapPredictorDto
|
|
34
|
+
*/
|
|
35
|
+
incorrect_predictions: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RecapPredictorDto
|
|
40
|
+
*/
|
|
41
|
+
success_rate: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the RecapPredictorDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfRecapPredictorDto(value: object): value is RecapPredictorDto;
|
|
47
|
+
export declare function RecapPredictorDtoFromJSON(json: any): RecapPredictorDto;
|
|
48
|
+
export declare function RecapPredictorDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecapPredictorDto;
|
|
49
|
+
export declare function RecapPredictorDtoToJSON(json: any): RecapPredictorDto;
|
|
50
|
+
export declare function RecapPredictorDtoToJSONTyped(value?: RecapPredictorDto | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
+
//# sourceMappingURL=RecapPredictorDto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecapPredictorDto.d.ts","sourceRoot":"","sources":["../../src/models/RecapPredictorDto.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAMrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAWzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYxH"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfRecapPredictorDto = instanceOfRecapPredictorDto;
|
|
17
|
+
exports.RecapPredictorDtoFromJSON = RecapPredictorDtoFromJSON;
|
|
18
|
+
exports.RecapPredictorDtoFromJSONTyped = RecapPredictorDtoFromJSONTyped;
|
|
19
|
+
exports.RecapPredictorDtoToJSON = RecapPredictorDtoToJSON;
|
|
20
|
+
exports.RecapPredictorDtoToJSONTyped = RecapPredictorDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RecapPredictorDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRecapPredictorDto(value) {
|
|
25
|
+
if (!('user_id' in value) || value['user_id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('correct_predictions' in value) || value['correct_predictions'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('incorrect_predictions' in value) || value['incorrect_predictions'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('success_rate' in value) || value['success_rate'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function RecapPredictorDtoFromJSON(json) {
|
|
36
|
+
return RecapPredictorDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function RecapPredictorDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'user_id': json['user_id'],
|
|
44
|
+
'correct_predictions': json['correct_predictions'],
|
|
45
|
+
'incorrect_predictions': json['incorrect_predictions'],
|
|
46
|
+
'success_rate': json['success_rate'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function RecapPredictorDtoToJSON(json) {
|
|
50
|
+
return RecapPredictorDtoToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function RecapPredictorDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'user_id': value['user_id'],
|
|
58
|
+
'correct_predictions': value['correct_predictions'],
|
|
59
|
+
'incorrect_predictions': value['incorrect_predictions'],
|
|
60
|
+
'success_rate': value['success_rate'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=RecapPredictorDto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecapPredictorDto.js","sourceRoot":"","sources":["../../src/models/RecapPredictorDto.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsCH,kEAMC;AAED,8DAEC;AAED,wEAWC;AAED,0DAEC;AAED,oEAYC;AA5CD;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,qBAAqB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,qBAAqB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClG,IAAI,CAAC,CAAC,uBAAuB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,uBAAuB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtG,IAAI,CAAC,CAAC,cAAc,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,qBAAqB,EAAE,IAAI,CAAC,qBAAqB,CAAC;QAClD,uBAAuB,EAAE,IAAI,CAAC,uBAAuB,CAAC;QACtD,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC;KACvC,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,CAAC;QACnD,uBAAuB,EAAE,KAAK,CAAC,uBAAuB,CAAC;QACvD,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;KACxC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { RecapPredictorDto } from './RecapPredictorDto';
|
|
13
|
+
import type { RecapWindowDto } from './RecapWindowDto';
|
|
14
|
+
import type { RecapWinDto } from './RecapWinDto';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface RecapWeeklyResponseDto
|
|
19
|
+
*/
|
|
20
|
+
export interface RecapWeeklyResponseDto {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {RecapWindowDto}
|
|
24
|
+
* @memberof RecapWeeklyResponseDto
|
|
25
|
+
*/
|
|
26
|
+
window: RecapWindowDto;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof RecapWeeklyResponseDto
|
|
31
|
+
*/
|
|
32
|
+
total_predictions: number;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof RecapWeeklyResponseDto
|
|
37
|
+
*/
|
|
38
|
+
correct_predictions: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof RecapWeeklyResponseDto
|
|
43
|
+
*/
|
|
44
|
+
incorrect_predictions: number;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof RecapWeeklyResponseDto
|
|
49
|
+
*/
|
|
50
|
+
accuracy: number;
|
|
51
|
+
/**
|
|
52
|
+
* Percentage-point change versus the prior week
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof RecapWeeklyResponseDto
|
|
55
|
+
*/
|
|
56
|
+
accuracy_delta: number;
|
|
57
|
+
/**
|
|
58
|
+
* Earliest timestamp for which settlement-time recap coverage is complete
|
|
59
|
+
* @type {Date}
|
|
60
|
+
* @memberof RecapWeeklyResponseDto
|
|
61
|
+
*/
|
|
62
|
+
data_complete_from: Date | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {Array<RecapPredictorDto>}
|
|
66
|
+
* @memberof RecapWeeklyResponseDto
|
|
67
|
+
*/
|
|
68
|
+
top_predictors: Array<RecapPredictorDto>;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {RecapWinDto}
|
|
72
|
+
* @memberof RecapWeeklyResponseDto
|
|
73
|
+
*/
|
|
74
|
+
biggest_single_win: RecapWinDto | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {RecapWinDto}
|
|
78
|
+
* @memberof RecapWeeklyResponseDto
|
|
79
|
+
*/
|
|
80
|
+
biggest_parlay_win: RecapWinDto | null;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the RecapWeeklyResponseDto interface.
|
|
84
|
+
*/
|
|
85
|
+
export declare function instanceOfRecapWeeklyResponseDto(value: object): value is RecapWeeklyResponseDto;
|
|
86
|
+
export declare function RecapWeeklyResponseDtoFromJSON(json: any): RecapWeeklyResponseDto;
|
|
87
|
+
export declare function RecapWeeklyResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecapWeeklyResponseDto;
|
|
88
|
+
export declare function RecapWeeklyResponseDtoToJSON(json: any): RecapWeeklyResponseDto;
|
|
89
|
+
export declare function RecapWeeklyResponseDtoToJSONTyped(value?: RecapWeeklyResponseDto | null, ignoreDiscriminator?: boolean): any;
|
|
90
|
+
//# sourceMappingURL=RecapWeeklyResponseDto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecapWeeklyResponseDto.d.ts","sourceRoot":"","sources":["../../src/models/RecapWeeklyResponseDto.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,kBAAkB,EAAE,IAAI,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACzC;;;;OAIG;IACH,kBAAkB,EAAE,WAAW,GAAG,IAAI,CAAC;IACvC;;;;OAIG;IACH,kBAAkB,EAAE,WAAW,GAAG,IAAI,CAAC;CAC1C;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAY/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAiBnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkBlI"}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.instanceOfRecapWeeklyResponseDto = instanceOfRecapWeeklyResponseDto;
|
|
17
|
+
exports.RecapWeeklyResponseDtoFromJSON = RecapWeeklyResponseDtoFromJSON;
|
|
18
|
+
exports.RecapWeeklyResponseDtoFromJSONTyped = RecapWeeklyResponseDtoFromJSONTyped;
|
|
19
|
+
exports.RecapWeeklyResponseDtoToJSON = RecapWeeklyResponseDtoToJSON;
|
|
20
|
+
exports.RecapWeeklyResponseDtoToJSONTyped = RecapWeeklyResponseDtoToJSONTyped;
|
|
21
|
+
const RecapPredictorDto_1 = require("./RecapPredictorDto");
|
|
22
|
+
const RecapWindowDto_1 = require("./RecapWindowDto");
|
|
23
|
+
const RecapWinDto_1 = require("./RecapWinDto");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the RecapWeeklyResponseDto interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfRecapWeeklyResponseDto(value) {
|
|
28
|
+
if (!('window' in value) || value['window'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('total_predictions' in value) || value['total_predictions'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('correct_predictions' in value) || value['correct_predictions'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('incorrect_predictions' in value) || value['incorrect_predictions'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('accuracy' in value) || value['accuracy'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('accuracy_delta' in value) || value['accuracy_delta'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('data_complete_from' in value) || value['data_complete_from'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('top_predictors' in value) || value['top_predictors'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('biggest_single_win' in value) || value['biggest_single_win'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('biggest_parlay_win' in value) || value['biggest_parlay_win'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function RecapWeeklyResponseDtoFromJSON(json) {
|
|
51
|
+
return RecapWeeklyResponseDtoFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function RecapWeeklyResponseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'window': (0, RecapWindowDto_1.RecapWindowDtoFromJSON)(json['window']),
|
|
59
|
+
'total_predictions': json['total_predictions'],
|
|
60
|
+
'correct_predictions': json['correct_predictions'],
|
|
61
|
+
'incorrect_predictions': json['incorrect_predictions'],
|
|
62
|
+
'accuracy': json['accuracy'],
|
|
63
|
+
'accuracy_delta': json['accuracy_delta'],
|
|
64
|
+
'data_complete_from': (json['data_complete_from'] == null ? null : new Date(json['data_complete_from'])),
|
|
65
|
+
'top_predictors': (json['top_predictors'].map(RecapPredictorDto_1.RecapPredictorDtoFromJSON)),
|
|
66
|
+
'biggest_single_win': (0, RecapWinDto_1.RecapWinDtoFromJSON)(json['biggest_single_win']),
|
|
67
|
+
'biggest_parlay_win': (0, RecapWinDto_1.RecapWinDtoFromJSON)(json['biggest_parlay_win']),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function RecapWeeklyResponseDtoToJSON(json) {
|
|
71
|
+
return RecapWeeklyResponseDtoToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function RecapWeeklyResponseDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'window': (0, RecapWindowDto_1.RecapWindowDtoToJSON)(value['window']),
|
|
79
|
+
'total_predictions': value['total_predictions'],
|
|
80
|
+
'correct_predictions': value['correct_predictions'],
|
|
81
|
+
'incorrect_predictions': value['incorrect_predictions'],
|
|
82
|
+
'accuracy': value['accuracy'],
|
|
83
|
+
'accuracy_delta': value['accuracy_delta'],
|
|
84
|
+
'data_complete_from': value['data_complete_from'] == null ? value['data_complete_from'] : value['data_complete_from'].toISOString(),
|
|
85
|
+
'top_predictors': (value['top_predictors'].map(RecapPredictorDto_1.RecapPredictorDtoToJSON)),
|
|
86
|
+
'biggest_single_win': (0, RecapWinDto_1.RecapWinDtoToJSON)(value['biggest_single_win']),
|
|
87
|
+
'biggest_parlay_win': (0, RecapWinDto_1.RecapWinDtoToJSON)(value['biggest_parlay_win']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=RecapWeeklyResponseDto.js.map
|