@drxsuperapp/sdk 1.1.427 → 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.
Files changed (39) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/apis/UserNotificationsApi.ts +305 -0
  3. package/deploy.log +44 -9
  4. package/dist/apis/UserNotificationsApi.d.ts +67 -1
  5. package/dist/apis/UserNotificationsApi.js +209 -1
  6. package/dist/models/ApiNotificationDeleteAllDeleteRequest.d.ts +32 -0
  7. package/dist/models/ApiNotificationDeleteAllDeleteRequest.js +41 -0
  8. package/dist/models/ApiNotificationMyNotificationsGet200Response.d.ts +51 -0
  9. package/dist/models/ApiNotificationMyNotificationsGet200Response.js +54 -0
  10. package/dist/models/ApiNotificationMyNotificationsGet200ResponseResponseObject.d.ts +57 -0
  11. package/dist/models/ApiNotificationMyNotificationsGet200ResponseResponseObject.js +60 -0
  12. package/dist/models/ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner.d.ts +134 -0
  13. package/dist/models/ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner.js +114 -0
  14. package/dist/models/ApiNotificationMyNotificationsGetFilterParameter.d.ts +59 -0
  15. package/dist/models/ApiNotificationMyNotificationsGetFilterParameter.js +52 -0
  16. package/dist/models/ApiNotificationNotificationIdReadPut200Response.d.ts +51 -0
  17. package/dist/models/ApiNotificationNotificationIdReadPut200Response.js +54 -0
  18. package/dist/models/ApiNotificationNotificationIdReadPut200ResponseResponseObject.d.ts +38 -0
  19. package/dist/models/ApiNotificationNotificationIdReadPut200ResponseResponseObject.js +47 -0
  20. package/dist/models/ApiNotificationReadAllPutRequest.d.ts +32 -0
  21. package/dist/models/ApiNotificationReadAllPutRequest.js +41 -0
  22. package/dist/models/ApiNotificationStatsGet200Response.d.ts +51 -0
  23. package/dist/models/ApiNotificationStatsGet200Response.js +54 -0
  24. package/dist/models/ApiNotificationStatsGet200ResponseResponseObject.d.ts +44 -0
  25. package/dist/models/ApiNotificationStatsGet200ResponseResponseObject.js +51 -0
  26. package/dist/models/index.d.ts +10 -0
  27. package/dist/models/index.js +10 -0
  28. package/models/ApiNotificationDeleteAllDeleteRequest.ts +65 -0
  29. package/models/ApiNotificationMyNotificationsGet200Response.ts +100 -0
  30. package/models/ApiNotificationMyNotificationsGet200ResponseResponseObject.ts +110 -0
  31. package/models/ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner.ts +211 -0
  32. package/models/ApiNotificationMyNotificationsGetFilterParameter.ts +119 -0
  33. package/models/ApiNotificationNotificationIdReadPut200Response.ts +100 -0
  34. package/models/ApiNotificationNotificationIdReadPut200ResponseResponseObject.ts +75 -0
  35. package/models/ApiNotificationReadAllPutRequest.ts +65 -0
  36. package/models/ApiNotificationStatsGet200Response.ts +100 -0
  37. package/models/ApiNotificationStatsGet200ResponseResponseObject.ts +84 -0
  38. package/models/index.ts +10 -0
  39. package/package.json +1 -1
@@ -12,11 +12,219 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiUserFcmTokenPost200ResponseFromJSON, ApiUserFcmTokenPostRequestToJSON, } from '../models/index';
15
+ import { ApiNotificationDeleteAllDeleteRequestToJSON, ApiNotificationMyNotificationsGet200ResponseFromJSON, ApiNotificationNotificationIdReadPut200ResponseFromJSON, ApiNotificationReadAllPutRequestToJSON, ApiNotificationStatsGet200ResponseFromJSON, ApiUserFcmTokenPost200ResponseFromJSON, ApiUserFcmTokenPostRequestToJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
19
19
  export class UserNotificationsApi extends runtime.BaseAPI {
20
+ /**
21
+ * Delete All Notifications
22
+ */
23
+ async apiNotificationDeleteAllDeleteRaw(requestParameters, initOverrides) {
24
+ const queryParameters = {};
25
+ const headerParameters = {};
26
+ headerParameters['Content-Type'] = 'application/json';
27
+ if (this.configuration && this.configuration.apiKey) {
28
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
29
+ }
30
+ if (this.configuration && this.configuration.accessToken) {
31
+ const token = this.configuration.accessToken;
32
+ const tokenString = await token("BearerAuth", []);
33
+ if (tokenString) {
34
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
35
+ }
36
+ }
37
+ const response = await this.request({
38
+ path: `/api/notification/delete-all`,
39
+ method: 'DELETE',
40
+ headers: headerParameters,
41
+ query: queryParameters,
42
+ body: ApiNotificationDeleteAllDeleteRequestToJSON(requestParameters['apiNotificationDeleteAllDeleteRequest']),
43
+ }, initOverrides);
44
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationNotificationIdReadPut200ResponseFromJSON(jsonValue));
45
+ }
46
+ /**
47
+ * Delete All Notifications
48
+ */
49
+ async apiNotificationDeleteAllDelete(requestParameters = {}, initOverrides) {
50
+ const response = await this.apiNotificationDeleteAllDeleteRaw(requestParameters, initOverrides);
51
+ return await response.value();
52
+ }
53
+ /**
54
+ * Get User Notifications
55
+ */
56
+ async apiNotificationMyNotificationsGetRaw(requestParameters, initOverrides) {
57
+ const queryParameters = {};
58
+ if (requestParameters['page'] != null) {
59
+ queryParameters['page'] = requestParameters['page'];
60
+ }
61
+ if (requestParameters['pageSize'] != null) {
62
+ queryParameters['pageSize'] = requestParameters['pageSize'];
63
+ }
64
+ if (requestParameters['sort'] != null) {
65
+ queryParameters['sort'] = requestParameters['sort'];
66
+ }
67
+ if (requestParameters['filter'] != null) {
68
+ queryParameters['filter'] = requestParameters['filter'];
69
+ }
70
+ const headerParameters = {};
71
+ if (this.configuration && this.configuration.apiKey) {
72
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
73
+ }
74
+ if (this.configuration && this.configuration.accessToken) {
75
+ const token = this.configuration.accessToken;
76
+ const tokenString = await token("BearerAuth", []);
77
+ if (tokenString) {
78
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
79
+ }
80
+ }
81
+ const response = await this.request({
82
+ path: `/api/notification/my-notifications`,
83
+ method: 'GET',
84
+ headers: headerParameters,
85
+ query: queryParameters,
86
+ }, initOverrides);
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationMyNotificationsGet200ResponseFromJSON(jsonValue));
88
+ }
89
+ /**
90
+ * Get User Notifications
91
+ */
92
+ async apiNotificationMyNotificationsGet(requestParameters = {}, initOverrides) {
93
+ const response = await this.apiNotificationMyNotificationsGetRaw(requestParameters, initOverrides);
94
+ return await response.value();
95
+ }
96
+ /**
97
+ * Delete Notification
98
+ */
99
+ async apiNotificationNotificationIdDeleteRaw(requestParameters, initOverrides) {
100
+ if (requestParameters['notificationId'] == null) {
101
+ throw new runtime.RequiredError('notificationId', 'Required parameter "notificationId" was null or undefined when calling apiNotificationNotificationIdDelete().');
102
+ }
103
+ const queryParameters = {};
104
+ const headerParameters = {};
105
+ if (this.configuration && this.configuration.apiKey) {
106
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
107
+ }
108
+ if (this.configuration && this.configuration.accessToken) {
109
+ const token = this.configuration.accessToken;
110
+ const tokenString = await token("BearerAuth", []);
111
+ if (tokenString) {
112
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
113
+ }
114
+ }
115
+ const response = await this.request({
116
+ path: `/api/notification/{notificationId}`.replace(`{${"notificationId"}}`, encodeURIComponent(String(requestParameters['notificationId']))),
117
+ method: 'DELETE',
118
+ headers: headerParameters,
119
+ query: queryParameters,
120
+ }, initOverrides);
121
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationNotificationIdReadPut200ResponseFromJSON(jsonValue));
122
+ }
123
+ /**
124
+ * Delete Notification
125
+ */
126
+ async apiNotificationNotificationIdDelete(requestParameters, initOverrides) {
127
+ const response = await this.apiNotificationNotificationIdDeleteRaw(requestParameters, initOverrides);
128
+ return await response.value();
129
+ }
130
+ /**
131
+ * Mark Notification as Read
132
+ */
133
+ async apiNotificationNotificationIdReadPutRaw(requestParameters, initOverrides) {
134
+ if (requestParameters['notificationId'] == null) {
135
+ throw new runtime.RequiredError('notificationId', 'Required parameter "notificationId" was null or undefined when calling apiNotificationNotificationIdReadPut().');
136
+ }
137
+ const queryParameters = {};
138
+ const headerParameters = {};
139
+ if (this.configuration && this.configuration.apiKey) {
140
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
141
+ }
142
+ if (this.configuration && this.configuration.accessToken) {
143
+ const token = this.configuration.accessToken;
144
+ const tokenString = await token("BearerAuth", []);
145
+ if (tokenString) {
146
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
147
+ }
148
+ }
149
+ const response = await this.request({
150
+ path: `/api/notification/{notificationId}/read`.replace(`{${"notificationId"}}`, encodeURIComponent(String(requestParameters['notificationId']))),
151
+ method: 'PUT',
152
+ headers: headerParameters,
153
+ query: queryParameters,
154
+ }, initOverrides);
155
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationNotificationIdReadPut200ResponseFromJSON(jsonValue));
156
+ }
157
+ /**
158
+ * Mark Notification as Read
159
+ */
160
+ async apiNotificationNotificationIdReadPut(requestParameters, initOverrides) {
161
+ const response = await this.apiNotificationNotificationIdReadPutRaw(requestParameters, initOverrides);
162
+ return await response.value();
163
+ }
164
+ /**
165
+ * Mark All Notifications as Read
166
+ */
167
+ async apiNotificationReadAllPutRaw(requestParameters, initOverrides) {
168
+ const queryParameters = {};
169
+ const headerParameters = {};
170
+ headerParameters['Content-Type'] = 'application/json';
171
+ if (this.configuration && this.configuration.apiKey) {
172
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
173
+ }
174
+ if (this.configuration && this.configuration.accessToken) {
175
+ const token = this.configuration.accessToken;
176
+ const tokenString = await token("BearerAuth", []);
177
+ if (tokenString) {
178
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
179
+ }
180
+ }
181
+ const response = await this.request({
182
+ path: `/api/notification/read-all`,
183
+ method: 'PUT',
184
+ headers: headerParameters,
185
+ query: queryParameters,
186
+ body: ApiNotificationReadAllPutRequestToJSON(requestParameters['apiNotificationReadAllPutRequest']),
187
+ }, initOverrides);
188
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationNotificationIdReadPut200ResponseFromJSON(jsonValue));
189
+ }
190
+ /**
191
+ * Mark All Notifications as Read
192
+ */
193
+ async apiNotificationReadAllPut(requestParameters = {}, initOverrides) {
194
+ const response = await this.apiNotificationReadAllPutRaw(requestParameters, initOverrides);
195
+ return await response.value();
196
+ }
197
+ /**
198
+ * Get User Notification Stats
199
+ */
200
+ async apiNotificationStatsGetRaw(initOverrides) {
201
+ const queryParameters = {};
202
+ const headerParameters = {};
203
+ if (this.configuration && this.configuration.apiKey) {
204
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
205
+ }
206
+ if (this.configuration && this.configuration.accessToken) {
207
+ const token = this.configuration.accessToken;
208
+ const tokenString = await token("BearerAuth", []);
209
+ if (tokenString) {
210
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
211
+ }
212
+ }
213
+ const response = await this.request({
214
+ path: `/api/notification/stats`,
215
+ method: 'GET',
216
+ headers: headerParameters,
217
+ query: queryParameters,
218
+ }, initOverrides);
219
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationStatsGet200ResponseFromJSON(jsonValue));
220
+ }
221
+ /**
222
+ * Get User Notification Stats
223
+ */
224
+ async apiNotificationStatsGet(initOverrides) {
225
+ const response = await this.apiNotificationStatsGetRaw(initOverrides);
226
+ return await response.value();
227
+ }
20
228
  /**
21
229
  * Register FCM Token
22
230
  */
@@ -0,0 +1,32 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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 ApiNotificationDeleteAllDeleteRequest
16
+ */
17
+ export interface ApiNotificationDeleteAllDeleteRequest {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof ApiNotificationDeleteAllDeleteRequest
22
+ */
23
+ deleteAll?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ApiNotificationDeleteAllDeleteRequest interface.
27
+ */
28
+ export declare function instanceOfApiNotificationDeleteAllDeleteRequest(value: object): value is ApiNotificationDeleteAllDeleteRequest;
29
+ export declare function ApiNotificationDeleteAllDeleteRequestFromJSON(json: any): ApiNotificationDeleteAllDeleteRequest;
30
+ export declare function ApiNotificationDeleteAllDeleteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationDeleteAllDeleteRequest;
31
+ export declare function ApiNotificationDeleteAllDeleteRequestToJSON(json: any): ApiNotificationDeleteAllDeleteRequest;
32
+ export declare function ApiNotificationDeleteAllDeleteRequestToJSONTyped(value?: ApiNotificationDeleteAllDeleteRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
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 ApiNotificationDeleteAllDeleteRequest interface.
16
+ */
17
+ export function instanceOfApiNotificationDeleteAllDeleteRequest(value) {
18
+ return true;
19
+ }
20
+ export function ApiNotificationDeleteAllDeleteRequestFromJSON(json) {
21
+ return ApiNotificationDeleteAllDeleteRequestFromJSONTyped(json, false);
22
+ }
23
+ export function ApiNotificationDeleteAllDeleteRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'deleteAll': json['deleteAll'] == null ? undefined : json['deleteAll'],
29
+ };
30
+ }
31
+ export function ApiNotificationDeleteAllDeleteRequestToJSON(json) {
32
+ return ApiNotificationDeleteAllDeleteRequestToJSONTyped(json, false);
33
+ }
34
+ export function ApiNotificationDeleteAllDeleteRequestToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'deleteAll': value['deleteAll'],
40
+ };
41
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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 { ApiNotificationMyNotificationsGet200ResponseResponseObject } from './ApiNotificationMyNotificationsGet200ResponseResponseObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiNotificationMyNotificationsGet200Response
17
+ */
18
+ export interface ApiNotificationMyNotificationsGet200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ApiNotificationMyNotificationsGet200Response
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiNotificationMyNotificationsGet200Response
29
+ */
30
+ message: string;
31
+ /**
32
+ *
33
+ * @type {ApiNotificationMyNotificationsGet200ResponseResponseObject}
34
+ * @memberof ApiNotificationMyNotificationsGet200Response
35
+ */
36
+ responseObject?: ApiNotificationMyNotificationsGet200ResponseResponseObject;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiNotificationMyNotificationsGet200Response
41
+ */
42
+ statusCode: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiNotificationMyNotificationsGet200Response interface.
46
+ */
47
+ export declare function instanceOfApiNotificationMyNotificationsGet200Response(value: object): value is ApiNotificationMyNotificationsGet200Response;
48
+ export declare function ApiNotificationMyNotificationsGet200ResponseFromJSON(json: any): ApiNotificationMyNotificationsGet200Response;
49
+ export declare function ApiNotificationMyNotificationsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationMyNotificationsGet200Response;
50
+ export declare function ApiNotificationMyNotificationsGet200ResponseToJSON(json: any): ApiNotificationMyNotificationsGet200Response;
51
+ export declare function ApiNotificationMyNotificationsGet200ResponseToJSONTyped(value?: ApiNotificationMyNotificationsGet200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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
+ import { ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSON, ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSON, } from './ApiNotificationMyNotificationsGet200ResponseResponseObject';
15
+ /**
16
+ * Check if a given object implements the ApiNotificationMyNotificationsGet200Response interface.
17
+ */
18
+ export function instanceOfApiNotificationMyNotificationsGet200Response(value) {
19
+ if (!('success' in value) || value['success'] === undefined)
20
+ return false;
21
+ if (!('message' in value) || value['message'] === undefined)
22
+ return false;
23
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function ApiNotificationMyNotificationsGet200ResponseFromJSON(json) {
28
+ return ApiNotificationMyNotificationsGet200ResponseFromJSONTyped(json, false);
29
+ }
30
+ export function ApiNotificationMyNotificationsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'success': json['success'],
36
+ 'message': json['message'],
37
+ 'responseObject': json['responseObject'] == null ? undefined : ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSON(json['responseObject']),
38
+ 'statusCode': json['statusCode'],
39
+ };
40
+ }
41
+ export function ApiNotificationMyNotificationsGet200ResponseToJSON(json) {
42
+ return ApiNotificationMyNotificationsGet200ResponseToJSONTyped(json, false);
43
+ }
44
+ export function ApiNotificationMyNotificationsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'message': value['message'],
51
+ 'responseObject': ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSON(value['responseObject']),
52
+ 'statusCode': value['statusCode'],
53
+ };
54
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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 { ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner } from './ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiNotificationMyNotificationsGet200ResponseResponseObject
17
+ */
18
+ export interface ApiNotificationMyNotificationsGet200ResponseResponseObject {
19
+ /**
20
+ *
21
+ * @type {Array<ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner>}
22
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObject
23
+ */
24
+ items: Array<ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObject
29
+ */
30
+ currentPage: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObject
35
+ */
36
+ totalItems: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObject
41
+ */
42
+ totalPages: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObject
47
+ */
48
+ pageSize: number;
49
+ }
50
+ /**
51
+ * Check if a given object implements the ApiNotificationMyNotificationsGet200ResponseResponseObject interface.
52
+ */
53
+ export declare function instanceOfApiNotificationMyNotificationsGet200ResponseResponseObject(value: object): value is ApiNotificationMyNotificationsGet200ResponseResponseObject;
54
+ export declare function ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSON(json: any): ApiNotificationMyNotificationsGet200ResponseResponseObject;
55
+ export declare function ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationMyNotificationsGet200ResponseResponseObject;
56
+ export declare function ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSON(json: any): ApiNotificationMyNotificationsGet200ResponseResponseObject;
57
+ export declare function ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSONTyped(value?: ApiNotificationMyNotificationsGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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
+ import { ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerFromJSON, ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner';
15
+ /**
16
+ * Check if a given object implements the ApiNotificationMyNotificationsGet200ResponseResponseObject interface.
17
+ */
18
+ export function instanceOfApiNotificationMyNotificationsGet200ResponseResponseObject(value) {
19
+ if (!('items' in value) || value['items'] === undefined)
20
+ return false;
21
+ if (!('currentPage' in value) || value['currentPage'] === undefined)
22
+ return false;
23
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
24
+ return false;
25
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
26
+ return false;
27
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSON(json) {
32
+ return ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSONTyped(json, false);
33
+ }
34
+ export function ApiNotificationMyNotificationsGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'items': (json['items'].map(ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerFromJSON)),
40
+ 'currentPage': json['currentPage'],
41
+ 'totalItems': json['totalItems'],
42
+ 'totalPages': json['totalPages'],
43
+ 'pageSize': json['pageSize'],
44
+ };
45
+ }
46
+ export function ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSON(json) {
47
+ return ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSONTyped(json, false);
48
+ }
49
+ export function ApiNotificationMyNotificationsGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'items': (value['items'].map(ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerToJSON)),
55
+ 'currentPage': value['currentPage'],
56
+ 'totalItems': value['totalItems'],
57
+ 'totalPages': value['totalPages'],
58
+ 'pageSize': value['pageSize'],
59
+ };
60
+ }
@@ -0,0 +1,134 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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 ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
16
+ */
17
+ export interface ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
28
+ */
29
+ type: ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
34
+ */
35
+ title: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
40
+ */
41
+ body: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
46
+ */
47
+ image: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
52
+ */
53
+ icon: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
58
+ */
59
+ clickAction: string | null;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
64
+ */
65
+ deepLink: string | null;
66
+ /**
67
+ *
68
+ * @type {{ [key: string]: any | null; }}
69
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
70
+ */
71
+ data: {
72
+ [key: string]: any | null;
73
+ } | null;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
78
+ */
79
+ status: string;
80
+ /**
81
+ *
82
+ * @type {boolean}
83
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
84
+ */
85
+ isRead: boolean;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
90
+ */
91
+ sentAt: string | null;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
96
+ */
97
+ deliveredAt: string | null;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
102
+ */
103
+ openedAt: string | null;
104
+ /**
105
+ *
106
+ * @type {string}
107
+ * @memberof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner
108
+ */
109
+ createdAt: string;
110
+ }
111
+ /**
112
+ * @export
113
+ */
114
+ export declare const ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum: {
115
+ readonly System: "SYSTEM";
116
+ readonly Welcome: "WELCOME";
117
+ readonly Tournament: "TOURNAMENT";
118
+ readonly Reward: "REWARD";
119
+ readonly News: "NEWS";
120
+ readonly LiveStream: "LIVE_STREAM";
121
+ readonly Referral: "REFERRAL";
122
+ readonly Reminder: "REMINDER";
123
+ readonly Promotional: "PROMOTIONAL";
124
+ readonly Security: "SECURITY";
125
+ };
126
+ export type ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum = typeof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum[keyof typeof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum];
127
+ /**
128
+ * Check if a given object implements the ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner interface.
129
+ */
130
+ export declare function instanceOfApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner(value: object): value is ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner;
131
+ export declare function ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerFromJSON(json: any): ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner;
132
+ export declare function ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner;
133
+ export declare function ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerToJSON(json: any): ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner;
134
+ export declare function ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerToJSONTyped(value?: ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner | null, ignoreDiscriminator?: boolean): any;