@jugarhoy/api 1.1.1 → 1.1.8
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/apis/FALTA1NotificationsApi.ts +137 -0
- package/apis/index.ts +1 -0
- package/models/ApiAppFalta1NotificationsSendNewPost200Response.ts +81 -0
- package/models/ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner.ts +89 -0
- package/models/Gender.ts +53 -0
- package/models/NotificationCategory.ts +2 -1
- package/models/PlaySearch.ts +16 -0
- package/models/User.ts +23 -0
- package/models/UserDto.ts +26 -0
- package/models/index.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ApiAppFalta1NotificationsSendNewPost200Response,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
ApiAppFalta1NotificationsSendNewPost200ResponseFromJSON,
|
|
22
|
+
ApiAppFalta1NotificationsSendNewPost200ResponseToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class FALTA1NotificationsApi extends runtime.BaseAPI {
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Clears the Redis cache for FALTA1 eligible users. Should be called when user settings change. **IMPORTANT**: This endpoint requires JUGARHOY_SECRET header for authentication.
|
|
32
|
+
* Clear FALTA1 user cache
|
|
33
|
+
*/
|
|
34
|
+
async apiAppFalta1NotificationsClearCachePostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
35
|
+
const queryParameters: any = {};
|
|
36
|
+
|
|
37
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
38
|
+
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
const token = this.configuration.accessToken;
|
|
41
|
+
const tokenString = await token("bearerAuth", []);
|
|
42
|
+
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const response = await this.request({
|
|
48
|
+
path: `/api/app/falta1-notifications/clear-cache`,
|
|
49
|
+
method: 'POST',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
}, initOverrides);
|
|
53
|
+
|
|
54
|
+
return new runtime.VoidApiResponse(response);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Clears the Redis cache for FALTA1 eligible users. Should be called when user settings change. **IMPORTANT**: This endpoint requires JUGARHOY_SECRET header for authentication.
|
|
59
|
+
* Clear FALTA1 user cache
|
|
60
|
+
*/
|
|
61
|
+
async apiAppFalta1NotificationsClearCachePost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
62
|
+
await this.apiAppFalta1NotificationsClearCachePostRaw(initOverrides);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Triggered by Cloud Scheduler every hour. Finds PlaySearches approaching their limit time (1 hour before match) and sends notifications to matching users. **IMPORTANT**: This endpoint requires JUGARHOY_SECRET header for authentication.
|
|
67
|
+
* Send \"limit approaching\" FALTA1 notifications
|
|
68
|
+
*/
|
|
69
|
+
async apiAppFalta1NotificationsSendLimitPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAppFalta1NotificationsSendNewPost200Response>> {
|
|
70
|
+
const queryParameters: any = {};
|
|
71
|
+
|
|
72
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
73
|
+
|
|
74
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
75
|
+
const token = this.configuration.accessToken;
|
|
76
|
+
const tokenString = await token("bearerAuth", []);
|
|
77
|
+
|
|
78
|
+
if (tokenString) {
|
|
79
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const response = await this.request({
|
|
83
|
+
path: `/api/app/falta1-notifications/send-limit`,
|
|
84
|
+
method: 'POST',
|
|
85
|
+
headers: headerParameters,
|
|
86
|
+
query: queryParameters,
|
|
87
|
+
}, initOverrides);
|
|
88
|
+
|
|
89
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAppFalta1NotificationsSendNewPost200ResponseFromJSON(jsonValue));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Triggered by Cloud Scheduler every hour. Finds PlaySearches approaching their limit time (1 hour before match) and sends notifications to matching users. **IMPORTANT**: This endpoint requires JUGARHOY_SECRET header for authentication.
|
|
94
|
+
* Send \"limit approaching\" FALTA1 notifications
|
|
95
|
+
*/
|
|
96
|
+
async apiAppFalta1NotificationsSendLimitPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAppFalta1NotificationsSendNewPost200Response> {
|
|
97
|
+
const response = await this.apiAppFalta1NotificationsSendLimitPostRaw(initOverrides);
|
|
98
|
+
return await response.value();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Triggered by Cloud Scheduler every 10 minutes. Finds new PlaySearches and sends notifications to matching users. **IMPORTANT**: This endpoint requires JUGARHOY_SECRET header for authentication.
|
|
103
|
+
* Send \"new PlaySearch\" FALTA1 notifications
|
|
104
|
+
*/
|
|
105
|
+
async apiAppFalta1NotificationsSendNewPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAppFalta1NotificationsSendNewPost200Response>> {
|
|
106
|
+
const queryParameters: any = {};
|
|
107
|
+
|
|
108
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
109
|
+
|
|
110
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
111
|
+
const token = this.configuration.accessToken;
|
|
112
|
+
const tokenString = await token("bearerAuth", []);
|
|
113
|
+
|
|
114
|
+
if (tokenString) {
|
|
115
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
const response = await this.request({
|
|
119
|
+
path: `/api/app/falta1-notifications/send-new`,
|
|
120
|
+
method: 'POST',
|
|
121
|
+
headers: headerParameters,
|
|
122
|
+
query: queryParameters,
|
|
123
|
+
}, initOverrides);
|
|
124
|
+
|
|
125
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAppFalta1NotificationsSendNewPost200ResponseFromJSON(jsonValue));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Triggered by Cloud Scheduler every 10 minutes. Finds new PlaySearches and sends notifications to matching users. **IMPORTANT**: This endpoint requires JUGARHOY_SECRET header for authentication.
|
|
130
|
+
* Send \"new PlaySearch\" FALTA1 notifications
|
|
131
|
+
*/
|
|
132
|
+
async apiAppFalta1NotificationsSendNewPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAppFalta1NotificationsSendNewPost200Response> {
|
|
133
|
+
const response = await this.apiAppFalta1NotificationsSendNewPostRaw(initOverrides);
|
|
134
|
+
return await response.value();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
}
|
package/apis/index.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './AuthApi';
|
|
|
23
23
|
export * from './BackgroundApi';
|
|
24
24
|
export * from './ClubApi';
|
|
25
25
|
export * from './DevicesApi';
|
|
26
|
+
export * from './FALTA1NotificationsApi';
|
|
26
27
|
export * from './HealthApi';
|
|
27
28
|
export * from './MercadoPagoApi';
|
|
28
29
|
export * from './MercadoPagoIPNApi';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.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
|
+
import type { ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner } from './ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerFromJSON,
|
|
19
|
+
ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerFromJSONTyped,
|
|
20
|
+
ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerToJSON,
|
|
21
|
+
ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerToJSONTyped,
|
|
22
|
+
} from './ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiAppFalta1NotificationsSendNewPost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiAppFalta1NotificationsSendNewPost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiAppFalta1NotificationsSendNewPost200Response
|
|
34
|
+
*/
|
|
35
|
+
success?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner>}
|
|
39
|
+
* @memberof ApiAppFalta1NotificationsSendNewPost200Response
|
|
40
|
+
*/
|
|
41
|
+
stats?: Array<ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiAppFalta1NotificationsSendNewPost200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfApiAppFalta1NotificationsSendNewPost200Response(value: object): value is ApiAppFalta1NotificationsSendNewPost200Response {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ApiAppFalta1NotificationsSendNewPost200ResponseFromJSON(json: any): ApiAppFalta1NotificationsSendNewPost200Response {
|
|
52
|
+
return ApiAppFalta1NotificationsSendNewPost200ResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ApiAppFalta1NotificationsSendNewPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAppFalta1NotificationsSendNewPost200Response {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
62
|
+
'stats': json['stats'] == null ? undefined : ((json['stats'] as Array<any>).map(ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerFromJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiAppFalta1NotificationsSendNewPost200ResponseToJSON(json: any): ApiAppFalta1NotificationsSendNewPost200Response {
|
|
67
|
+
return ApiAppFalta1NotificationsSendNewPost200ResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiAppFalta1NotificationsSendNewPost200ResponseToJSONTyped(value?: ApiAppFalta1NotificationsSendNewPost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'success': value['success'],
|
|
78
|
+
'stats': value['stats'] == null ? undefined : ((value['stats'] as Array<any>).map(ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerToJSON)),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.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 ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner
|
|
26
|
+
*/
|
|
27
|
+
playSearchId?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner
|
|
32
|
+
*/
|
|
33
|
+
matchedUsers?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner
|
|
38
|
+
*/
|
|
39
|
+
notificationsSent?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner
|
|
44
|
+
*/
|
|
45
|
+
errors?: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfApiAppFalta1NotificationsSendNewPost200ResponseStatsInner(value: object): value is ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerFromJSON(json: any): ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner {
|
|
56
|
+
return ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'playSearchId': json['playSearchId'] == null ? undefined : json['playSearchId'],
|
|
66
|
+
'matchedUsers': json['matchedUsers'] == null ? undefined : json['matchedUsers'],
|
|
67
|
+
'notificationsSent': json['notificationsSent'] == null ? undefined : json['notificationsSent'],
|
|
68
|
+
'errors': json['errors'] == null ? undefined : json['errors'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerToJSON(json: any): ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner {
|
|
73
|
+
return ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ApiAppFalta1NotificationsSendNewPost200ResponseStatsInnerToJSONTyped(value?: ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'playSearchId': value['playSearchId'],
|
|
84
|
+
'matchedUsers': value['matchedUsers'],
|
|
85
|
+
'notificationsSent': value['notificationsSent'],
|
|
86
|
+
'errors': value['errors'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
package/models/Gender.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* User's gender (MALE or FEMALE)
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const Gender = {
|
|
21
|
+
Male: 'MALE',
|
|
22
|
+
Female: 'FEMALE'
|
|
23
|
+
} as const;
|
|
24
|
+
export type Gender = typeof Gender[keyof typeof Gender];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfGender(value: any): boolean {
|
|
28
|
+
for (const key in Gender) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(Gender, key)) {
|
|
30
|
+
if (Gender[key as keyof typeof Gender] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function GenderFromJSON(json: any): Gender {
|
|
39
|
+
return GenderFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function GenderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gender {
|
|
43
|
+
return json as Gender;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GenderToJSON(value?: Gender | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GenderToJSONTyped(value: any, ignoreDiscriminator: boolean): Gender {
|
|
51
|
+
return value as Gender;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -24,7 +24,8 @@ export const NotificationCategory = {
|
|
|
24
24
|
Promo: 'promo',
|
|
25
25
|
FindPlayer: 'find_player',
|
|
26
26
|
NewTournament: 'new_tournament',
|
|
27
|
-
Training: 'training'
|
|
27
|
+
Training: 'training',
|
|
28
|
+
Falta1: 'falta1'
|
|
28
29
|
} as const;
|
|
29
30
|
export type NotificationCategory = typeof NotificationCategory[keyof typeof NotificationCategory];
|
|
30
31
|
|
package/models/PlaySearch.ts
CHANGED
|
@@ -161,6 +161,18 @@ export interface PlaySearch {
|
|
|
161
161
|
* @memberof PlaySearch
|
|
162
162
|
*/
|
|
163
163
|
updatedAt?: Date;
|
|
164
|
+
/**
|
|
165
|
+
* Timestamp when FALTA1 'new' notification was sent
|
|
166
|
+
* @type {Date}
|
|
167
|
+
* @memberof PlaySearch
|
|
168
|
+
*/
|
|
169
|
+
alertSentDate?: Date | null;
|
|
170
|
+
/**
|
|
171
|
+
* When to send FALTA1 'limit' notification (1 hour before match)
|
|
172
|
+
* @type {Date}
|
|
173
|
+
* @memberof PlaySearch
|
|
174
|
+
*/
|
|
175
|
+
alertLimitSentDate?: Date | null;
|
|
164
176
|
}
|
|
165
177
|
|
|
166
178
|
|
|
@@ -213,6 +225,8 @@ export function PlaySearchFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
213
225
|
'reserveId': json['reserveId'] == null ? undefined : json['reserveId'],
|
|
214
226
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
215
227
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
228
|
+
'alertSentDate': json['alertSentDate'] == null ? undefined : (new Date(json['alertSentDate'])),
|
|
229
|
+
'alertLimitSentDate': json['alertLimitSentDate'] == null ? undefined : (new Date(json['alertLimitSentDate'])),
|
|
216
230
|
};
|
|
217
231
|
}
|
|
218
232
|
|
|
@@ -247,6 +261,8 @@ export function PlaySearchToJSONTyped(value?: PlaySearch | null, ignoreDiscrimin
|
|
|
247
261
|
'reserveId': value['reserveId'],
|
|
248
262
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
249
263
|
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
264
|
+
'alertSentDate': value['alertSentDate'] == null ? undefined : ((value['alertSentDate'] as any).toISOString()),
|
|
265
|
+
'alertLimitSentDate': value['alertLimitSentDate'] == null ? undefined : ((value['alertLimitSentDate'] as any).toISOString()),
|
|
250
266
|
};
|
|
251
267
|
}
|
|
252
268
|
|
package/models/User.ts
CHANGED
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
UserSportProfileToJSON,
|
|
28
28
|
UserSportProfileToJSONTyped,
|
|
29
29
|
} from './UserSportProfile';
|
|
30
|
+
import type { Gender } from './Gender';
|
|
31
|
+
import {
|
|
32
|
+
GenderFromJSON,
|
|
33
|
+
GenderFromJSONTyped,
|
|
34
|
+
GenderToJSON,
|
|
35
|
+
GenderToJSONTyped,
|
|
36
|
+
} from './Gender';
|
|
30
37
|
import type { UserType } from './UserType';
|
|
31
38
|
import {
|
|
32
39
|
UserTypeFromJSON,
|
|
@@ -137,6 +144,18 @@ export interface User {
|
|
|
137
144
|
* @memberof User
|
|
138
145
|
*/
|
|
139
146
|
distanceInKm?: number;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {Gender}
|
|
150
|
+
* @memberof User
|
|
151
|
+
*/
|
|
152
|
+
gender?: Gender;
|
|
153
|
+
/**
|
|
154
|
+
* Whether location-based search is enabled for FALTA1 notifications
|
|
155
|
+
* @type {boolean}
|
|
156
|
+
* @memberof User
|
|
157
|
+
*/
|
|
158
|
+
searchDistanceEnabled?: boolean;
|
|
140
159
|
/**
|
|
141
160
|
*
|
|
142
161
|
* @type {UserType}
|
|
@@ -202,6 +221,8 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
|
|
|
202
221
|
'latitude': json['latitude'] == null ? undefined : json['latitude'],
|
|
203
222
|
'longitude': json['longitude'] == null ? undefined : json['longitude'],
|
|
204
223
|
'distanceInKm': json['distanceInKm'] == null ? undefined : json['distanceInKm'],
|
|
224
|
+
'gender': json['gender'] == null ? undefined : GenderFromJSON(json['gender']),
|
|
225
|
+
'searchDistanceEnabled': json['searchDistanceEnabled'] == null ? undefined : json['searchDistanceEnabled'],
|
|
205
226
|
'type': UserTypeFromJSON(json['type']),
|
|
206
227
|
'memberOfCustomers': json['memberOfCustomers'] == null ? undefined : json['memberOfCustomers'],
|
|
207
228
|
'userRegisteredAt': json['userRegisteredAt'] == null ? undefined : (new Date(json['userRegisteredAt'])),
|
|
@@ -235,6 +256,8 @@ export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolea
|
|
|
235
256
|
'latitude': value['latitude'],
|
|
236
257
|
'longitude': value['longitude'],
|
|
237
258
|
'distanceInKm': value['distanceInKm'],
|
|
259
|
+
'gender': GenderToJSON(value['gender']),
|
|
260
|
+
'searchDistanceEnabled': value['searchDistanceEnabled'],
|
|
238
261
|
'type': UserTypeToJSON(value['type']),
|
|
239
262
|
'memberOfCustomers': value['memberOfCustomers'],
|
|
240
263
|
'userRegisteredAt': value['userRegisteredAt'] == null ? undefined : ((value['userRegisteredAt']).toISOString()),
|
package/models/UserDto.ts
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Gender } from './Gender';
|
|
17
|
+
import {
|
|
18
|
+
GenderFromJSON,
|
|
19
|
+
GenderFromJSONTyped,
|
|
20
|
+
GenderToJSON,
|
|
21
|
+
GenderToJSONTyped,
|
|
22
|
+
} from './Gender';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -79,6 +87,18 @@ export interface UserDto {
|
|
|
79
87
|
* @memberof UserDto
|
|
80
88
|
*/
|
|
81
89
|
distanceInKm?: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Gender}
|
|
93
|
+
* @memberof UserDto
|
|
94
|
+
*/
|
|
95
|
+
gender?: Gender;
|
|
96
|
+
/**
|
|
97
|
+
* Whether location-based search is enabled for FALTA1 notifications
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof UserDto
|
|
100
|
+
*/
|
|
101
|
+
searchDistanceEnabled?: boolean;
|
|
82
102
|
/**
|
|
83
103
|
* Optional invite code for admin/coach registration
|
|
84
104
|
* @type {string}
|
|
@@ -87,6 +107,8 @@ export interface UserDto {
|
|
|
87
107
|
inviteCode?: string;
|
|
88
108
|
}
|
|
89
109
|
|
|
110
|
+
|
|
111
|
+
|
|
90
112
|
/**
|
|
91
113
|
* Check if a given object implements the UserDto interface.
|
|
92
114
|
*/
|
|
@@ -118,6 +140,8 @@ export function UserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): U
|
|
|
118
140
|
'latitude': json['latitude'] == null ? undefined : json['latitude'],
|
|
119
141
|
'longitude': json['longitude'] == null ? undefined : json['longitude'],
|
|
120
142
|
'distanceInKm': json['distanceInKm'] == null ? undefined : json['distanceInKm'],
|
|
143
|
+
'gender': json['gender'] == null ? undefined : GenderFromJSON(json['gender']),
|
|
144
|
+
'searchDistanceEnabled': json['searchDistanceEnabled'] == null ? undefined : json['searchDistanceEnabled'],
|
|
121
145
|
'inviteCode': json['inviteCode'] == null ? undefined : json['inviteCode'],
|
|
122
146
|
};
|
|
123
147
|
}
|
|
@@ -143,6 +167,8 @@ export function UserDtoToJSONTyped(value?: UserDto | null, ignoreDiscriminator:
|
|
|
143
167
|
'latitude': value['latitude'],
|
|
144
168
|
'longitude': value['longitude'],
|
|
145
169
|
'distanceInKm': value['distanceInKm'],
|
|
170
|
+
'gender': GenderToJSON(value['gender']),
|
|
171
|
+
'searchDistanceEnabled': value['searchDistanceEnabled'],
|
|
146
172
|
'inviteCode': value['inviteCode'],
|
|
147
173
|
};
|
|
148
174
|
}
|
package/models/index.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './AddPlayerToSubscriptionRequest';
|
|
|
6
6
|
export * from './ApiAdminInvitationsPost200Response';
|
|
7
7
|
export * from './ApiAdminPlayPricesIdPutRequest';
|
|
8
8
|
export * from './ApiAdminPlayPricesPostRequest';
|
|
9
|
+
export * from './ApiAppFalta1NotificationsSendNewPost200Response';
|
|
10
|
+
export * from './ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner';
|
|
9
11
|
export * from './ApproveClubResponse';
|
|
10
12
|
export * from './ApproveClubResponseResult';
|
|
11
13
|
export * from './AvailabilityShift';
|
|
@@ -83,6 +85,7 @@ export * from './ExtendSubscriptions200ResponseDetailsInner';
|
|
|
83
85
|
export * from './Feature';
|
|
84
86
|
export * from './FindOccurrences200Response';
|
|
85
87
|
export * from './Frequency';
|
|
88
|
+
export * from './Gender';
|
|
86
89
|
export * from './GenerateCode500Response';
|
|
87
90
|
export * from './GenerateSubscriptionBillsRequest';
|
|
88
91
|
export * from './GetAllDevices200ResponseInner';
|