@jugarhoy/api 1.0.7 → 1.0.9
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/AdminClubConfigApi.ts +294 -0
- package/apis/AdminClubsApi.ts +48 -0
- package/apis/AdminPlaySpotShiftsApi.ts +11 -3
- package/apis/AdminPlaySpotsApi.ts +11 -3
- package/apis/AdminReservationsApi.ts +5 -0
- package/apis/AdminWhatsAppTemplatesApi.ts +330 -0
- package/apis/AuthApi.ts +12 -12
- package/apis/DevicesApi.ts +52 -0
- package/apis/NotificationsApi.ts +167 -0
- package/apis/ReservesApi.ts +2 -10
- package/apis/index.ts +3 -0
- package/models/ApiAdminPlayPricesIdPutRequest.ts +6 -22
- package/models/ApiAdminPlayPricesPostRequest.ts +7 -23
- package/models/ApproveClubResponse.ts +83 -0
- package/models/ApproveClubResponseResult.ts +81 -0
- package/models/ComputedValueType.ts +59 -0
- package/models/CreateServiceConfigRequest.ts +152 -0
- package/models/CustomerServiceConfig.ts +168 -0
- package/models/CustomerServiceConfigDto.ts +180 -0
- package/models/HasDoorlock200Response.ts +65 -0
- package/models/MarkNotificationAsRead200Response.ts +65 -0
- package/models/Notification.ts +147 -0
- package/models/NotificationCategory.ts +58 -0
- package/models/NotificationChannelType.ts +55 -0
- package/models/NotificationDto.ts +139 -0
- package/models/NotificationListResponseDto.ts +89 -0
- package/models/NotificationTemplate.ts +146 -0
- package/models/NotificationTemplateDto.ts +155 -0
- package/models/NotificationType.ts +5 -5
- package/models/ParameterMapping.ts +161 -0
- package/models/ParameterValueType.ts +55 -0
- package/models/PlayPrice.ts +8 -25
- package/models/ProcessEmailMessageRequest.ts +41 -5
- package/models/ServiceType.ts +53 -0
- package/models/TestNotificationTemplate200Response.ts +73 -0
- package/models/TestNotificationTemplateRequest.ts +66 -0
- package/models/ToggleServiceConfigRequest.ts +66 -0
- package/models/UnreadCountResponseDto.ts +65 -0
- package/models/UpdateServiceConfigRequest.ts +125 -0
- package/models/UpsertNotificationTemplateRequest.ts +123 -0
- package/models/{UserNotification.ts → UserNotificationConfig.ts} +27 -27
- package/models/UserSession.ts +8 -0
- package/models/WhatsAppProvider.ts +54 -0
- package/models/index.ts +26 -2
- package/package.json +1 -1
- package/models/RequestPasswordReset200Response.ts +0 -65
|
@@ -0,0 +1,168 @@
|
|
|
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 { ServiceType } from './ServiceType';
|
|
17
|
+
import {
|
|
18
|
+
ServiceTypeFromJSON,
|
|
19
|
+
ServiceTypeFromJSONTyped,
|
|
20
|
+
ServiceTypeToJSON,
|
|
21
|
+
ServiceTypeToJSONTyped,
|
|
22
|
+
} from './ServiceType';
|
|
23
|
+
import type { WhatsAppProvider } from './WhatsAppProvider';
|
|
24
|
+
import {
|
|
25
|
+
WhatsAppProviderFromJSON,
|
|
26
|
+
WhatsAppProviderFromJSONTyped,
|
|
27
|
+
WhatsAppProviderToJSON,
|
|
28
|
+
WhatsAppProviderToJSONTyped,
|
|
29
|
+
} from './WhatsAppProvider';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface CustomerServiceConfig
|
|
35
|
+
*/
|
|
36
|
+
export interface CustomerServiceConfig {
|
|
37
|
+
/**
|
|
38
|
+
* Unique identifier for the service configuration
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CustomerServiceConfig
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Customer ID this configuration belongs to
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CustomerServiceConfig
|
|
47
|
+
*/
|
|
48
|
+
customerId: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {ServiceType}
|
|
52
|
+
* @memberof CustomerServiceConfig
|
|
53
|
+
*/
|
|
54
|
+
type: ServiceType;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the service is enabled
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof CustomerServiceConfig
|
|
59
|
+
*/
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {WhatsAppProvider}
|
|
64
|
+
* @memberof CustomerServiceConfig
|
|
65
|
+
*/
|
|
66
|
+
provider?: WhatsAppProvider;
|
|
67
|
+
/**
|
|
68
|
+
* WhatsApp Phone Number ID (for custom WhatsApp provider only)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CustomerServiceConfig
|
|
71
|
+
*/
|
|
72
|
+
phoneNumberId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Service API host URL (required for Tuya)
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CustomerServiceConfig
|
|
77
|
+
*/
|
|
78
|
+
host?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Encrypted API access key (for custom WhatsApp or Tuya)
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CustomerServiceConfig
|
|
83
|
+
*/
|
|
84
|
+
accessKey?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Encrypted API secret key (for Tuya only)
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof CustomerServiceConfig
|
|
89
|
+
*/
|
|
90
|
+
secretKey?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* Timestamp when the configuration was created
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof CustomerServiceConfig
|
|
95
|
+
*/
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
/**
|
|
98
|
+
* Timestamp when the configuration was last updated
|
|
99
|
+
* @type {Date}
|
|
100
|
+
* @memberof CustomerServiceConfig
|
|
101
|
+
*/
|
|
102
|
+
updatedAt: Date;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the CustomerServiceConfig interface.
|
|
109
|
+
*/
|
|
110
|
+
export function instanceOfCustomerServiceConfig(value: object): value is CustomerServiceConfig {
|
|
111
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
112
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
113
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
114
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
115
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
116
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function CustomerServiceConfigFromJSON(json: any): CustomerServiceConfig {
|
|
121
|
+
return CustomerServiceConfigFromJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function CustomerServiceConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerServiceConfig {
|
|
125
|
+
if (json == null) {
|
|
126
|
+
return json;
|
|
127
|
+
}
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'id': json['id'],
|
|
131
|
+
'customerId': json['customerId'],
|
|
132
|
+
'type': ServiceTypeFromJSON(json['type']),
|
|
133
|
+
'enabled': json['enabled'],
|
|
134
|
+
'provider': json['provider'] == null ? undefined : WhatsAppProviderFromJSON(json['provider']),
|
|
135
|
+
'phoneNumberId': json['phoneNumberId'] == null ? undefined : json['phoneNumberId'],
|
|
136
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
137
|
+
'accessKey': json['accessKey'] == null ? undefined : json['accessKey'],
|
|
138
|
+
'secretKey': json['secretKey'] == null ? undefined : json['secretKey'],
|
|
139
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
140
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function CustomerServiceConfigToJSON(json: any): CustomerServiceConfig {
|
|
145
|
+
return CustomerServiceConfigToJSONTyped(json, false);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function CustomerServiceConfigToJSONTyped(value?: CustomerServiceConfig | null, ignoreDiscriminator: boolean = false): any {
|
|
149
|
+
if (value == null) {
|
|
150
|
+
return value;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return {
|
|
154
|
+
|
|
155
|
+
'id': value['id'],
|
|
156
|
+
'customerId': value['customerId'],
|
|
157
|
+
'type': ServiceTypeToJSON(value['type']),
|
|
158
|
+
'enabled': value['enabled'],
|
|
159
|
+
'provider': WhatsAppProviderToJSON(value['provider']),
|
|
160
|
+
'phoneNumberId': value['phoneNumberId'],
|
|
161
|
+
'host': value['host'],
|
|
162
|
+
'accessKey': value['accessKey'],
|
|
163
|
+
'secretKey': value['secretKey'],
|
|
164
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
165
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
@@ -0,0 +1,180 @@
|
|
|
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 CustomerServiceConfigDto
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomerServiceConfigDto {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier for the service configuration
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CustomerServiceConfigDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Customer ID this configuration belongs to
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CustomerServiceConfigDto
|
|
32
|
+
*/
|
|
33
|
+
customerId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Customer name (for display purposes)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CustomerServiceConfigDto
|
|
38
|
+
*/
|
|
39
|
+
customerName?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Type of service
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CustomerServiceConfigDto
|
|
44
|
+
*/
|
|
45
|
+
type: CustomerServiceConfigDtoTypeEnum;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the service is enabled
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof CustomerServiceConfigDto
|
|
50
|
+
*/
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* WhatsApp provider type (only for WhatsApp type)
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CustomerServiceConfigDto
|
|
56
|
+
*/
|
|
57
|
+
provider?: CustomerServiceConfigDtoProviderEnum | null;
|
|
58
|
+
/**
|
|
59
|
+
* WhatsApp Phone Number ID (for custom WhatsApp provider only)
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CustomerServiceConfigDto
|
|
62
|
+
*/
|
|
63
|
+
phoneNumberId?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* Service API host URL (for Tuya)
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CustomerServiceConfigDto
|
|
68
|
+
*/
|
|
69
|
+
host?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates if access key is configured (key itself is never returned)
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof CustomerServiceConfigDto
|
|
74
|
+
*/
|
|
75
|
+
hasAccessKey?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Indicates if secret key is configured (key itself is never returned)
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof CustomerServiceConfigDto
|
|
80
|
+
*/
|
|
81
|
+
hasSecretKey?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Timestamp when the configuration was created
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof CustomerServiceConfigDto
|
|
86
|
+
*/
|
|
87
|
+
createdAt: Date;
|
|
88
|
+
/**
|
|
89
|
+
* Timestamp when the configuration was last updated
|
|
90
|
+
* @type {Date}
|
|
91
|
+
* @memberof CustomerServiceConfigDto
|
|
92
|
+
*/
|
|
93
|
+
updatedAt: Date;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export const CustomerServiceConfigDtoTypeEnum = {
|
|
101
|
+
Whatsapp: 'whatsapp',
|
|
102
|
+
Tuya: 'tuya'
|
|
103
|
+
} as const;
|
|
104
|
+
export type CustomerServiceConfigDtoTypeEnum = typeof CustomerServiceConfigDtoTypeEnum[keyof typeof CustomerServiceConfigDtoTypeEnum];
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const CustomerServiceConfigDtoProviderEnum = {
|
|
110
|
+
None: 'none',
|
|
111
|
+
Jugarhoy: 'jugarhoy',
|
|
112
|
+
Custom: 'custom'
|
|
113
|
+
} as const;
|
|
114
|
+
export type CustomerServiceConfigDtoProviderEnum = typeof CustomerServiceConfigDtoProviderEnum[keyof typeof CustomerServiceConfigDtoProviderEnum];
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the CustomerServiceConfigDto interface.
|
|
119
|
+
*/
|
|
120
|
+
export function instanceOfCustomerServiceConfigDto(value: object): value is CustomerServiceConfigDto {
|
|
121
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
122
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
123
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
124
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
125
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
126
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function CustomerServiceConfigDtoFromJSON(json: any): CustomerServiceConfigDto {
|
|
131
|
+
return CustomerServiceConfigDtoFromJSONTyped(json, false);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function CustomerServiceConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerServiceConfigDto {
|
|
135
|
+
if (json == null) {
|
|
136
|
+
return json;
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
|
|
140
|
+
'id': json['id'],
|
|
141
|
+
'customerId': json['customerId'],
|
|
142
|
+
'customerName': json['customerName'] == null ? undefined : json['customerName'],
|
|
143
|
+
'type': json['type'],
|
|
144
|
+
'enabled': json['enabled'],
|
|
145
|
+
'provider': json['provider'] == null ? undefined : json['provider'],
|
|
146
|
+
'phoneNumberId': json['phoneNumberId'] == null ? undefined : json['phoneNumberId'],
|
|
147
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
148
|
+
'hasAccessKey': json['hasAccessKey'] == null ? undefined : json['hasAccessKey'],
|
|
149
|
+
'hasSecretKey': json['hasSecretKey'] == null ? undefined : json['hasSecretKey'],
|
|
150
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
151
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function CustomerServiceConfigDtoToJSON(json: any): CustomerServiceConfigDto {
|
|
156
|
+
return CustomerServiceConfigDtoToJSONTyped(json, false);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function CustomerServiceConfigDtoToJSONTyped(value?: CustomerServiceConfigDto | null, ignoreDiscriminator: boolean = false): any {
|
|
160
|
+
if (value == null) {
|
|
161
|
+
return value;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return {
|
|
165
|
+
|
|
166
|
+
'id': value['id'],
|
|
167
|
+
'customerId': value['customerId'],
|
|
168
|
+
'customerName': value['customerName'],
|
|
169
|
+
'type': value['type'],
|
|
170
|
+
'enabled': value['enabled'],
|
|
171
|
+
'provider': value['provider'],
|
|
172
|
+
'phoneNumberId': value['phoneNumberId'],
|
|
173
|
+
'host': value['host'],
|
|
174
|
+
'hasAccessKey': value['hasAccessKey'],
|
|
175
|
+
'hasSecretKey': value['hasSecretKey'],
|
|
176
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
177
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 HasDoorlock200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface HasDoorlock200Response {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the location has a doorlock device
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof HasDoorlock200Response
|
|
26
|
+
*/
|
|
27
|
+
hasDoorlock?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the HasDoorlock200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfHasDoorlock200Response(value: object): value is HasDoorlock200Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function HasDoorlock200ResponseFromJSON(json: any): HasDoorlock200Response {
|
|
38
|
+
return HasDoorlock200ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function HasDoorlock200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HasDoorlock200Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'hasDoorlock': json['hasDoorlock'] == null ? undefined : json['hasDoorlock'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function HasDoorlock200ResponseToJSON(json: any): HasDoorlock200Response {
|
|
52
|
+
return HasDoorlock200ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function HasDoorlock200ResponseToJSONTyped(value?: HasDoorlock200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'hasDoorlock': value['hasDoorlock'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 MarkNotificationAsRead200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface MarkNotificationAsRead200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof MarkNotificationAsRead200Response
|
|
26
|
+
*/
|
|
27
|
+
success?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the MarkNotificationAsRead200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfMarkNotificationAsRead200Response(value: object): value is MarkNotificationAsRead200Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function MarkNotificationAsRead200ResponseFromJSON(json: any): MarkNotificationAsRead200Response {
|
|
38
|
+
return MarkNotificationAsRead200ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function MarkNotificationAsRead200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarkNotificationAsRead200Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function MarkNotificationAsRead200ResponseToJSON(json: any): MarkNotificationAsRead200Response {
|
|
52
|
+
return MarkNotificationAsRead200ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function MarkNotificationAsRead200ResponseToJSONTyped(value?: MarkNotificationAsRead200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'success': value['success'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,147 @@
|
|
|
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 { NotificationCategory } from './NotificationCategory';
|
|
17
|
+
import {
|
|
18
|
+
NotificationCategoryFromJSON,
|
|
19
|
+
NotificationCategoryFromJSONTyped,
|
|
20
|
+
NotificationCategoryToJSON,
|
|
21
|
+
NotificationCategoryToJSONTyped,
|
|
22
|
+
} from './NotificationCategory';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Notification
|
|
28
|
+
*/
|
|
29
|
+
export interface Notification {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the notification
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Notification
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
36
|
+
/**
|
|
37
|
+
* ID of the user who receives this notification
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Notification
|
|
40
|
+
*/
|
|
41
|
+
userId?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {NotificationCategory}
|
|
45
|
+
* @memberof Notification
|
|
46
|
+
*/
|
|
47
|
+
type?: NotificationCategory;
|
|
48
|
+
/**
|
|
49
|
+
* Notification title (Spanish)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Notification
|
|
52
|
+
*/
|
|
53
|
+
title?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Notification message body (Spanish)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Notification
|
|
58
|
+
*/
|
|
59
|
+
message?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the user has read this notification
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof Notification
|
|
64
|
+
*/
|
|
65
|
+
read?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Optional ID of related entity (e.g., reserveId, paymentId) for deep linking
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof Notification
|
|
70
|
+
*/
|
|
71
|
+
relatedId?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Optional JSON object with additional data for navigation/deep linking
|
|
74
|
+
* @type {{ [key: string]: any; }}
|
|
75
|
+
* @memberof Notification
|
|
76
|
+
*/
|
|
77
|
+
metadata?: { [key: string]: any; } | null;
|
|
78
|
+
/**
|
|
79
|
+
* When the notification was created
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof Notification
|
|
82
|
+
*/
|
|
83
|
+
createdAt?: Date;
|
|
84
|
+
/**
|
|
85
|
+
* When the notification was last updated
|
|
86
|
+
* @type {Date}
|
|
87
|
+
* @memberof Notification
|
|
88
|
+
*/
|
|
89
|
+
updatedAt?: Date;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the Notification interface.
|
|
96
|
+
*/
|
|
97
|
+
export function instanceOfNotification(value: object): value is Notification {
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function NotificationFromJSON(json: any): Notification {
|
|
102
|
+
return NotificationFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function NotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Notification {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
112
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
113
|
+
'type': json['type'] == null ? undefined : NotificationCategoryFromJSON(json['type']),
|
|
114
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
115
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
116
|
+
'read': json['read'] == null ? undefined : json['read'],
|
|
117
|
+
'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
|
|
118
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
119
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
120
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function NotificationToJSON(json: any): Notification {
|
|
125
|
+
return NotificationToJSONTyped(json, false);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function NotificationToJSONTyped(value?: Notification | null, ignoreDiscriminator: boolean = false): any {
|
|
129
|
+
if (value == null) {
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'id': value['id'],
|
|
136
|
+
'userId': value['userId'],
|
|
137
|
+
'type': NotificationCategoryToJSON(value['type']),
|
|
138
|
+
'title': value['title'],
|
|
139
|
+
'message': value['message'],
|
|
140
|
+
'read': value['read'],
|
|
141
|
+
'relatedId': value['relatedId'],
|
|
142
|
+
'metadata': value['metadata'],
|
|
143
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
144
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
* Category of notification for users
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const NotificationCategory = {
|
|
21
|
+
Reservation: 'reservation',
|
|
22
|
+
Payment: 'payment',
|
|
23
|
+
General: 'general',
|
|
24
|
+
Promo: 'promo',
|
|
25
|
+
FindPlayer: 'find_player',
|
|
26
|
+
NewTournament: 'new_tournament',
|
|
27
|
+
Training: 'training'
|
|
28
|
+
} as const;
|
|
29
|
+
export type NotificationCategory = typeof NotificationCategory[keyof typeof NotificationCategory];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export function instanceOfNotificationCategory(value: any): boolean {
|
|
33
|
+
for (const key in NotificationCategory) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(NotificationCategory, key)) {
|
|
35
|
+
if (NotificationCategory[key as keyof typeof NotificationCategory] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function NotificationCategoryFromJSON(json: any): NotificationCategory {
|
|
44
|
+
return NotificationCategoryFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function NotificationCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationCategory {
|
|
48
|
+
return json as NotificationCategory;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function NotificationCategoryToJSON(value?: NotificationCategory | null): any {
|
|
52
|
+
return value as any;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function NotificationCategoryToJSONTyped(value: any, ignoreDiscriminator: boolean): NotificationCategory {
|
|
56
|
+
return value as NotificationCategory;
|
|
57
|
+
}
|
|
58
|
+
|