@drxsuperapp/sdk 1.1.426 → 1.1.428
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/.openapi-generator/FILES +10 -0
- package/apis/UserNotificationsApi.ts +305 -0
- package/deploy.log +43 -7
- package/dist/apis/UserNotificationsApi.d.ts +67 -1
- package/dist/apis/UserNotificationsApi.js +209 -1
- package/dist/models/ApiNotificationDeleteAllDeleteRequest.d.ts +32 -0
- package/dist/models/ApiNotificationDeleteAllDeleteRequest.js +41 -0
- package/dist/models/ApiNotificationMyNotificationsGet200Response.d.ts +51 -0
- package/dist/models/ApiNotificationMyNotificationsGet200Response.js +54 -0
- package/dist/models/ApiNotificationMyNotificationsGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiNotificationMyNotificationsGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner.d.ts +134 -0
- package/dist/models/ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner.js +114 -0
- package/dist/models/ApiNotificationMyNotificationsGetFilterParameter.d.ts +59 -0
- package/dist/models/ApiNotificationMyNotificationsGetFilterParameter.js +52 -0
- package/dist/models/ApiNotificationNotificationIdReadPut200Response.d.ts +51 -0
- package/dist/models/ApiNotificationNotificationIdReadPut200Response.js +54 -0
- package/dist/models/ApiNotificationNotificationIdReadPut200ResponseResponseObject.d.ts +38 -0
- package/dist/models/ApiNotificationNotificationIdReadPut200ResponseResponseObject.js +47 -0
- package/dist/models/ApiNotificationReadAllPutRequest.d.ts +32 -0
- package/dist/models/ApiNotificationReadAllPutRequest.js +41 -0
- package/dist/models/ApiNotificationStatsGet200Response.d.ts +51 -0
- package/dist/models/ApiNotificationStatsGet200Response.js +54 -0
- package/dist/models/ApiNotificationStatsGet200ResponseResponseObject.d.ts +44 -0
- package/dist/models/ApiNotificationStatsGet200ResponseResponseObject.js +51 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/models/ApiNotificationDeleteAllDeleteRequest.ts +65 -0
- package/models/ApiNotificationMyNotificationsGet200Response.ts +100 -0
- package/models/ApiNotificationMyNotificationsGet200ResponseResponseObject.ts +110 -0
- package/models/ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner.ts +211 -0
- package/models/ApiNotificationMyNotificationsGetFilterParameter.ts +119 -0
- package/models/ApiNotificationNotificationIdReadPut200Response.ts +100 -0
- package/models/ApiNotificationNotificationIdReadPut200ResponseResponseObject.ts +75 -0
- package/models/ApiNotificationReadAllPutRequest.ts +65 -0
- package/models/ApiNotificationStatsGet200Response.ts +100 -0
- package/models/ApiNotificationStatsGet200ResponseResponseObject.ts +84 -0
- package/models/index.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ApiNotificationStatsGet200ResponseResponseObject interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiNotificationStatsGet200ResponseResponseObject(value) {
|
|
18
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('unread' in value) || value['unread'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('read' in value) || value['read'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function ApiNotificationStatsGet200ResponseResponseObjectFromJSON(json) {
|
|
27
|
+
return ApiNotificationStatsGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ApiNotificationStatsGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'total': json['total'],
|
|
35
|
+
'unread': json['unread'],
|
|
36
|
+
'read': json['read'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ApiNotificationStatsGet200ResponseResponseObjectToJSON(json) {
|
|
40
|
+
return ApiNotificationStatsGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ApiNotificationStatsGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'total': value['total'],
|
|
48
|
+
'unread': value['unread'],
|
|
49
|
+
'read': value['read'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -125,6 +125,16 @@ export * from './ApiNewsIdGet200Response';
|
|
|
125
125
|
export * from './ApiNewsIdGet200ResponseResponseObject';
|
|
126
126
|
export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInner';
|
|
127
127
|
export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague';
|
|
128
|
+
export * from './ApiNotificationDeleteAllDeleteRequest';
|
|
129
|
+
export * from './ApiNotificationMyNotificationsGet200Response';
|
|
130
|
+
export * from './ApiNotificationMyNotificationsGet200ResponseResponseObject';
|
|
131
|
+
export * from './ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner';
|
|
132
|
+
export * from './ApiNotificationMyNotificationsGetFilterParameter';
|
|
133
|
+
export * from './ApiNotificationNotificationIdReadPut200Response';
|
|
134
|
+
export * from './ApiNotificationNotificationIdReadPut200ResponseResponseObject';
|
|
135
|
+
export * from './ApiNotificationReadAllPutRequest';
|
|
136
|
+
export * from './ApiNotificationStatsGet200Response';
|
|
137
|
+
export * from './ApiNotificationStatsGet200ResponseResponseObject';
|
|
128
138
|
export * from './ApiNotificationTopicPostRequest';
|
|
129
139
|
export * from './ApiNotificationUserPost200Response';
|
|
130
140
|
export * from './ApiNotificationUserPost200ResponseResponseObject';
|
package/dist/models/index.js
CHANGED
|
@@ -127,6 +127,16 @@ export * from './ApiNewsIdGet200Response';
|
|
|
127
127
|
export * from './ApiNewsIdGet200ResponseResponseObject';
|
|
128
128
|
export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInner';
|
|
129
129
|
export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague';
|
|
130
|
+
export * from './ApiNotificationDeleteAllDeleteRequest';
|
|
131
|
+
export * from './ApiNotificationMyNotificationsGet200Response';
|
|
132
|
+
export * from './ApiNotificationMyNotificationsGet200ResponseResponseObject';
|
|
133
|
+
export * from './ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner';
|
|
134
|
+
export * from './ApiNotificationMyNotificationsGetFilterParameter';
|
|
135
|
+
export * from './ApiNotificationNotificationIdReadPut200Response';
|
|
136
|
+
export * from './ApiNotificationNotificationIdReadPut200ResponseResponseObject';
|
|
137
|
+
export * from './ApiNotificationReadAllPutRequest';
|
|
138
|
+
export * from './ApiNotificationStatsGet200Response';
|
|
139
|
+
export * from './ApiNotificationStatsGet200ResponseResponseObject';
|
|
130
140
|
export * from './ApiNotificationTopicPostRequest';
|
|
131
141
|
export * from './ApiNotificationUserPost200Response';
|
|
132
142
|
export * from './ApiNotificationUserPost200ResponseResponseObject';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiNotificationDeleteAllDeleteRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiNotificationDeleteAllDeleteRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ApiNotificationDeleteAllDeleteRequest
|
|
26
|
+
*/
|
|
27
|
+
deleteAll?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiNotificationDeleteAllDeleteRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiNotificationDeleteAllDeleteRequest(value: object): value is ApiNotificationDeleteAllDeleteRequest {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ApiNotificationDeleteAllDeleteRequestFromJSON(json: any): ApiNotificationDeleteAllDeleteRequest {
|
|
38
|
+
return ApiNotificationDeleteAllDeleteRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ApiNotificationDeleteAllDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationDeleteAllDeleteRequest {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'deleteAll': json['deleteAll'] == null ? undefined : json['deleteAll'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ApiNotificationDeleteAllDeleteRequestToJSON(json: any): ApiNotificationDeleteAllDeleteRequest {
|
|
52
|
+
return ApiNotificationDeleteAllDeleteRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ApiNotificationDeleteAllDeleteRequestToJSONTyped(value?: ApiNotificationDeleteAllDeleteRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'deleteAll': value['deleteAll'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiNotificationMyNotificationsGet200ResponseResponseObject } from './ApiNotificationMyNotificationsGet200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiNotificationMyNotificationsGet200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiNotificationMyNotificationsGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiNotificationMyNotificationsGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiNotificationMyNotificationsGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiNotificationMyNotificationsGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiNotificationMyNotificationsGet200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiNotificationMyNotificationsGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiNotificationMyNotificationsGet200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiNotificationMyNotificationsGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiNotificationMyNotificationsGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiNotificationMyNotificationsGet200Response(value: object): value is ApiNotificationMyNotificationsGet200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiNotificationMyNotificationsGet200ResponseFromJSON(json: any): ApiNotificationMyNotificationsGet200Response {
|
|
67
|
+
return ApiNotificationMyNotificationsGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiNotificationMyNotificationsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationMyNotificationsGet200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiNotificationMyNotificationsGet200ResponseToJSON(json: any): ApiNotificationMyNotificationsGet200Response {
|
|
84
|
+
return ApiNotificationMyNotificationsGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiNotificationMyNotificationsGet200ResponseToJSONTyped(value?: ApiNotificationMyNotificationsGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner } from './ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerFromJSON,
|
|
19
|
+
ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerFromJSONTyped,
|
|
20
|
+
ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerToJSON,
|
|
21
|
+
ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerToJSONTyped,
|
|
22
|
+
} from './ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiNotificationMyNotificationsGet200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiNotificationMyNotificationsGet200ResponseResponseObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner>}
|
|
33
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
items: Array<ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
currentPage: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObject
|
|
46
|
+
*/
|
|
47
|
+
totalItems: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObject
|
|
52
|
+
*/
|
|
53
|
+
totalPages: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObject
|
|
58
|
+
*/
|
|
59
|
+
pageSize: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ApiNotificationMyNotificationsGet200ResponseResponseObject interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfApiNotificationMyNotificationsGet200ResponseResponseObject(value: object): value is ApiNotificationMyNotificationsGet200ResponseResponseObject {
|
|
66
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
67
|
+
if (!('currentPage' in value) || value['currentPage'] === undefined) return false;
|
|
68
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
|
|
69
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
|
|
70
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSON(json: any): ApiNotificationMyNotificationsGet200ResponseResponseObject {
|
|
75
|
+
return ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationMyNotificationsGet200ResponseResponseObject {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'items': ((json['items'] as Array<any>).map(ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerFromJSON)),
|
|
85
|
+
'currentPage': json['currentPage'],
|
|
86
|
+
'totalItems': json['totalItems'],
|
|
87
|
+
'totalPages': json['totalPages'],
|
|
88
|
+
'pageSize': json['pageSize'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSON(json: any): ApiNotificationMyNotificationsGet200ResponseResponseObject {
|
|
93
|
+
return ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSONTyped(value?: ApiNotificationMyNotificationsGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'items': ((value['items'] as Array<any>).map(ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerToJSON)),
|
|
104
|
+
'currentPage': value['currentPage'],
|
|
105
|
+
'totalItems': value['totalItems'],
|
|
106
|
+
'totalPages': value['totalPages'],
|
|
107
|
+
'pageSize': value['pageSize'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
32
|
+
*/
|
|
33
|
+
type: ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
38
|
+
*/
|
|
39
|
+
title: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
44
|
+
*/
|
|
45
|
+
body: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
50
|
+
*/
|
|
51
|
+
image: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
56
|
+
*/
|
|
57
|
+
icon: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
62
|
+
*/
|
|
63
|
+
clickAction: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
68
|
+
*/
|
|
69
|
+
deepLink: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {{ [key: string]: any | null; }}
|
|
73
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
74
|
+
*/
|
|
75
|
+
data: { [key: string]: any | null; } | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
80
|
+
*/
|
|
81
|
+
status: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
86
|
+
*/
|
|
87
|
+
isRead: boolean;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
92
|
+
*/
|
|
93
|
+
sentAt: string | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
98
|
+
*/
|
|
99
|
+
deliveredAt: string | null;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
104
|
+
*/
|
|
105
|
+
openedAt: string | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
|
|
110
|
+
*/
|
|
111
|
+
createdAt: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export const ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum = {
|
|
119
|
+
System: 'SYSTEM',
|
|
120
|
+
Welcome: 'WELCOME',
|
|
121
|
+
Tournament: 'TOURNAMENT',
|
|
122
|
+
Reward: 'REWARD',
|
|
123
|
+
News: 'NEWS',
|
|
124
|
+
LiveStream: 'LIVE_STREAM',
|
|
125
|
+
Referral: 'REFERRAL',
|
|
126
|
+
Reminder: 'REMINDER',
|
|
127
|
+
Promotional: 'PROMOTIONAL',
|
|
128
|
+
Security: 'SECURITY'
|
|
129
|
+
} as const;
|
|
130
|
+
export type ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum = typeof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum[keyof typeof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum];
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Check if a given object implements the ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner interface.
|
|
135
|
+
*/
|
|
136
|
+
export function instanceOfApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner(value: object): value is ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner {
|
|
137
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
138
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
139
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
140
|
+
if (!('body' in value) || value['body'] === undefined) return false;
|
|
141
|
+
if (!('image' in value) || value['image'] === undefined) return false;
|
|
142
|
+
if (!('icon' in value) || value['icon'] === undefined) return false;
|
|
143
|
+
if (!('clickAction' in value) || value['clickAction'] === undefined) return false;
|
|
144
|
+
if (!('deepLink' in value) || value['deepLink'] === undefined) return false;
|
|
145
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
146
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
147
|
+
if (!('isRead' in value) || value['isRead'] === undefined) return false;
|
|
148
|
+
if (!('sentAt' in value) || value['sentAt'] === undefined) return false;
|
|
149
|
+
if (!('deliveredAt' in value) || value['deliveredAt'] === undefined) return false;
|
|
150
|
+
if (!('openedAt' in value) || value['openedAt'] === undefined) return false;
|
|
151
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
152
|
+
return true;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerFromJSON(json: any): ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner {
|
|
156
|
+
return ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerFromJSONTyped(json, false);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner {
|
|
160
|
+
if (json == null) {
|
|
161
|
+
return json;
|
|
162
|
+
}
|
|
163
|
+
return {
|
|
164
|
+
|
|
165
|
+
'id': json['id'],
|
|
166
|
+
'type': json['type'],
|
|
167
|
+
'title': json['title'],
|
|
168
|
+
'body': json['body'],
|
|
169
|
+
'image': json['image'],
|
|
170
|
+
'icon': json['icon'],
|
|
171
|
+
'clickAction': json['clickAction'],
|
|
172
|
+
'deepLink': json['deepLink'],
|
|
173
|
+
'data': json['data'],
|
|
174
|
+
'status': json['status'],
|
|
175
|
+
'isRead': json['isRead'],
|
|
176
|
+
'sentAt': json['sentAt'],
|
|
177
|
+
'deliveredAt': json['deliveredAt'],
|
|
178
|
+
'openedAt': json['openedAt'],
|
|
179
|
+
'createdAt': json['createdAt'],
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerToJSON(json: any): ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner {
|
|
184
|
+
return ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerToJSONTyped(json, false);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerToJSONTyped(value?: ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
188
|
+
if (value == null) {
|
|
189
|
+
return value;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return {
|
|
193
|
+
|
|
194
|
+
'id': value['id'],
|
|
195
|
+
'type': value['type'],
|
|
196
|
+
'title': value['title'],
|
|
197
|
+
'body': value['body'],
|
|
198
|
+
'image': value['image'],
|
|
199
|
+
'icon': value['icon'],
|
|
200
|
+
'clickAction': value['clickAction'],
|
|
201
|
+
'deepLink': value['deepLink'],
|
|
202
|
+
'data': value['data'],
|
|
203
|
+
'status': value['status'],
|
|
204
|
+
'isRead': value['isRead'],
|
|
205
|
+
'sentAt': value['sentAt'],
|
|
206
|
+
'deliveredAt': value['deliveredAt'],
|
|
207
|
+
'openedAt': value['openedAt'],
|
|
208
|
+
'createdAt': value['createdAt'],
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
|