@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.
- package/.openapi-generator/FILES +10 -0
- package/apis/UserNotificationsApi.ts +305 -0
- package/deploy.log +44 -9
- 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
package/.openapi-generator/FILES
CHANGED
|
@@ -152,6 +152,16 @@ models/ApiNewsIdGet200Response.ts
|
|
|
152
152
|
models/ApiNewsIdGet200ResponseResponseObject.ts
|
|
153
153
|
models/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.ts
|
|
154
154
|
models/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.ts
|
|
155
|
+
models/ApiNotificationDeleteAllDeleteRequest.ts
|
|
156
|
+
models/ApiNotificationMyNotificationsGet200Response.ts
|
|
157
|
+
models/ApiNotificationMyNotificationsGet200ResponseResponseObject.ts
|
|
158
|
+
models/ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner.ts
|
|
159
|
+
models/ApiNotificationMyNotificationsGetFilterParameter.ts
|
|
160
|
+
models/ApiNotificationNotificationIdReadPut200Response.ts
|
|
161
|
+
models/ApiNotificationNotificationIdReadPut200ResponseResponseObject.ts
|
|
162
|
+
models/ApiNotificationReadAllPutRequest.ts
|
|
163
|
+
models/ApiNotificationStatsGet200Response.ts
|
|
164
|
+
models/ApiNotificationStatsGet200ResponseResponseObject.ts
|
|
155
165
|
models/ApiNotificationTopicPostRequest.ts
|
|
156
166
|
models/ApiNotificationUserPost200Response.ts
|
|
157
167
|
models/ApiNotificationUserPost200ResponseResponseObject.ts
|
|
@@ -15,16 +15,57 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiNotificationDeleteAllDeleteRequest,
|
|
19
|
+
ApiNotificationMyNotificationsGet200Response,
|
|
20
|
+
ApiNotificationMyNotificationsGetFilterParameter,
|
|
21
|
+
ApiNotificationNotificationIdReadPut200Response,
|
|
22
|
+
ApiNotificationReadAllPutRequest,
|
|
23
|
+
ApiNotificationStatsGet200Response,
|
|
18
24
|
ApiUserFcmTokenPost200Response,
|
|
19
25
|
ApiUserFcmTokenPostRequest,
|
|
20
26
|
} from '../models/index';
|
|
21
27
|
import {
|
|
28
|
+
ApiNotificationDeleteAllDeleteRequestFromJSON,
|
|
29
|
+
ApiNotificationDeleteAllDeleteRequestToJSON,
|
|
30
|
+
ApiNotificationMyNotificationsGet200ResponseFromJSON,
|
|
31
|
+
ApiNotificationMyNotificationsGet200ResponseToJSON,
|
|
32
|
+
ApiNotificationMyNotificationsGetFilterParameterFromJSON,
|
|
33
|
+
ApiNotificationMyNotificationsGetFilterParameterToJSON,
|
|
34
|
+
ApiNotificationNotificationIdReadPut200ResponseFromJSON,
|
|
35
|
+
ApiNotificationNotificationIdReadPut200ResponseToJSON,
|
|
36
|
+
ApiNotificationReadAllPutRequestFromJSON,
|
|
37
|
+
ApiNotificationReadAllPutRequestToJSON,
|
|
38
|
+
ApiNotificationStatsGet200ResponseFromJSON,
|
|
39
|
+
ApiNotificationStatsGet200ResponseToJSON,
|
|
22
40
|
ApiUserFcmTokenPost200ResponseFromJSON,
|
|
23
41
|
ApiUserFcmTokenPost200ResponseToJSON,
|
|
24
42
|
ApiUserFcmTokenPostRequestFromJSON,
|
|
25
43
|
ApiUserFcmTokenPostRequestToJSON,
|
|
26
44
|
} from '../models/index';
|
|
27
45
|
|
|
46
|
+
export interface ApiNotificationDeleteAllDeleteOperationRequest {
|
|
47
|
+
apiNotificationDeleteAllDeleteRequest?: ApiNotificationDeleteAllDeleteRequest;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface ApiNotificationMyNotificationsGetRequest {
|
|
51
|
+
page?: number;
|
|
52
|
+
pageSize?: number;
|
|
53
|
+
sort?: string;
|
|
54
|
+
filter?: ApiNotificationMyNotificationsGetFilterParameter;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface ApiNotificationNotificationIdDeleteRequest {
|
|
58
|
+
notificationId: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ApiNotificationNotificationIdReadPutRequest {
|
|
62
|
+
notificationId: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface ApiNotificationReadAllPutOperationRequest {
|
|
66
|
+
apiNotificationReadAllPutRequest?: ApiNotificationReadAllPutRequest;
|
|
67
|
+
}
|
|
68
|
+
|
|
28
69
|
export interface ApiUserFcmTokenPostOperationRequest {
|
|
29
70
|
apiUserFcmTokenPostRequest?: ApiUserFcmTokenPostRequest;
|
|
30
71
|
}
|
|
@@ -34,6 +75,270 @@ export interface ApiUserFcmTokenPostOperationRequest {
|
|
|
34
75
|
*/
|
|
35
76
|
export class UserNotificationsApi extends runtime.BaseAPI {
|
|
36
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Delete All Notifications
|
|
80
|
+
*/
|
|
81
|
+
async apiNotificationDeleteAllDeleteRaw(requestParameters: ApiNotificationDeleteAllDeleteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationNotificationIdReadPut200Response>> {
|
|
82
|
+
const queryParameters: any = {};
|
|
83
|
+
|
|
84
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
85
|
+
|
|
86
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
87
|
+
|
|
88
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
89
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
93
|
+
const token = this.configuration.accessToken;
|
|
94
|
+
const tokenString = await token("BearerAuth", []);
|
|
95
|
+
|
|
96
|
+
if (tokenString) {
|
|
97
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const response = await this.request({
|
|
101
|
+
path: `/api/notification/delete-all`,
|
|
102
|
+
method: 'DELETE',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
body: ApiNotificationDeleteAllDeleteRequestToJSON(requestParameters['apiNotificationDeleteAllDeleteRequest']),
|
|
106
|
+
}, initOverrides);
|
|
107
|
+
|
|
108
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationNotificationIdReadPut200ResponseFromJSON(jsonValue));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Delete All Notifications
|
|
113
|
+
*/
|
|
114
|
+
async apiNotificationDeleteAllDelete(requestParameters: ApiNotificationDeleteAllDeleteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationNotificationIdReadPut200Response> {
|
|
115
|
+
const response = await this.apiNotificationDeleteAllDeleteRaw(requestParameters, initOverrides);
|
|
116
|
+
return await response.value();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Get User Notifications
|
|
121
|
+
*/
|
|
122
|
+
async apiNotificationMyNotificationsGetRaw(requestParameters: ApiNotificationMyNotificationsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationMyNotificationsGet200Response>> {
|
|
123
|
+
const queryParameters: any = {};
|
|
124
|
+
|
|
125
|
+
if (requestParameters['page'] != null) {
|
|
126
|
+
queryParameters['page'] = requestParameters['page'];
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (requestParameters['pageSize'] != null) {
|
|
130
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (requestParameters['sort'] != null) {
|
|
134
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (requestParameters['filter'] != null) {
|
|
138
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
142
|
+
|
|
143
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
144
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
148
|
+
const token = this.configuration.accessToken;
|
|
149
|
+
const tokenString = await token("BearerAuth", []);
|
|
150
|
+
|
|
151
|
+
if (tokenString) {
|
|
152
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
const response = await this.request({
|
|
156
|
+
path: `/api/notification/my-notifications`,
|
|
157
|
+
method: 'GET',
|
|
158
|
+
headers: headerParameters,
|
|
159
|
+
query: queryParameters,
|
|
160
|
+
}, initOverrides);
|
|
161
|
+
|
|
162
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationMyNotificationsGet200ResponseFromJSON(jsonValue));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Get User Notifications
|
|
167
|
+
*/
|
|
168
|
+
async apiNotificationMyNotificationsGet(requestParameters: ApiNotificationMyNotificationsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationMyNotificationsGet200Response> {
|
|
169
|
+
const response = await this.apiNotificationMyNotificationsGetRaw(requestParameters, initOverrides);
|
|
170
|
+
return await response.value();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Delete Notification
|
|
175
|
+
*/
|
|
176
|
+
async apiNotificationNotificationIdDeleteRaw(requestParameters: ApiNotificationNotificationIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationNotificationIdReadPut200Response>> {
|
|
177
|
+
if (requestParameters['notificationId'] == null) {
|
|
178
|
+
throw new runtime.RequiredError(
|
|
179
|
+
'notificationId',
|
|
180
|
+
'Required parameter "notificationId" was null or undefined when calling apiNotificationNotificationIdDelete().'
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
const queryParameters: any = {};
|
|
185
|
+
|
|
186
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
187
|
+
|
|
188
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
189
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
193
|
+
const token = this.configuration.accessToken;
|
|
194
|
+
const tokenString = await token("BearerAuth", []);
|
|
195
|
+
|
|
196
|
+
if (tokenString) {
|
|
197
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
const response = await this.request({
|
|
201
|
+
path: `/api/notification/{notificationId}`.replace(`{${"notificationId"}}`, encodeURIComponent(String(requestParameters['notificationId']))),
|
|
202
|
+
method: 'DELETE',
|
|
203
|
+
headers: headerParameters,
|
|
204
|
+
query: queryParameters,
|
|
205
|
+
}, initOverrides);
|
|
206
|
+
|
|
207
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationNotificationIdReadPut200ResponseFromJSON(jsonValue));
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Delete Notification
|
|
212
|
+
*/
|
|
213
|
+
async apiNotificationNotificationIdDelete(requestParameters: ApiNotificationNotificationIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationNotificationIdReadPut200Response> {
|
|
214
|
+
const response = await this.apiNotificationNotificationIdDeleteRaw(requestParameters, initOverrides);
|
|
215
|
+
return await response.value();
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Mark Notification as Read
|
|
220
|
+
*/
|
|
221
|
+
async apiNotificationNotificationIdReadPutRaw(requestParameters: ApiNotificationNotificationIdReadPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationNotificationIdReadPut200Response>> {
|
|
222
|
+
if (requestParameters['notificationId'] == null) {
|
|
223
|
+
throw new runtime.RequiredError(
|
|
224
|
+
'notificationId',
|
|
225
|
+
'Required parameter "notificationId" was null or undefined when calling apiNotificationNotificationIdReadPut().'
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
const queryParameters: any = {};
|
|
230
|
+
|
|
231
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
232
|
+
|
|
233
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
234
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
238
|
+
const token = this.configuration.accessToken;
|
|
239
|
+
const tokenString = await token("BearerAuth", []);
|
|
240
|
+
|
|
241
|
+
if (tokenString) {
|
|
242
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
const response = await this.request({
|
|
246
|
+
path: `/api/notification/{notificationId}/read`.replace(`{${"notificationId"}}`, encodeURIComponent(String(requestParameters['notificationId']))),
|
|
247
|
+
method: 'PUT',
|
|
248
|
+
headers: headerParameters,
|
|
249
|
+
query: queryParameters,
|
|
250
|
+
}, initOverrides);
|
|
251
|
+
|
|
252
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationNotificationIdReadPut200ResponseFromJSON(jsonValue));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Mark Notification as Read
|
|
257
|
+
*/
|
|
258
|
+
async apiNotificationNotificationIdReadPut(requestParameters: ApiNotificationNotificationIdReadPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationNotificationIdReadPut200Response> {
|
|
259
|
+
const response = await this.apiNotificationNotificationIdReadPutRaw(requestParameters, initOverrides);
|
|
260
|
+
return await response.value();
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Mark All Notifications as Read
|
|
265
|
+
*/
|
|
266
|
+
async apiNotificationReadAllPutRaw(requestParameters: ApiNotificationReadAllPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationNotificationIdReadPut200Response>> {
|
|
267
|
+
const queryParameters: any = {};
|
|
268
|
+
|
|
269
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
270
|
+
|
|
271
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
272
|
+
|
|
273
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
274
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
278
|
+
const token = this.configuration.accessToken;
|
|
279
|
+
const tokenString = await token("BearerAuth", []);
|
|
280
|
+
|
|
281
|
+
if (tokenString) {
|
|
282
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
const response = await this.request({
|
|
286
|
+
path: `/api/notification/read-all`,
|
|
287
|
+
method: 'PUT',
|
|
288
|
+
headers: headerParameters,
|
|
289
|
+
query: queryParameters,
|
|
290
|
+
body: ApiNotificationReadAllPutRequestToJSON(requestParameters['apiNotificationReadAllPutRequest']),
|
|
291
|
+
}, initOverrides);
|
|
292
|
+
|
|
293
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationNotificationIdReadPut200ResponseFromJSON(jsonValue));
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Mark All Notifications as Read
|
|
298
|
+
*/
|
|
299
|
+
async apiNotificationReadAllPut(requestParameters: ApiNotificationReadAllPutOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationNotificationIdReadPut200Response> {
|
|
300
|
+
const response = await this.apiNotificationReadAllPutRaw(requestParameters, initOverrides);
|
|
301
|
+
return await response.value();
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Get User Notification Stats
|
|
306
|
+
*/
|
|
307
|
+
async apiNotificationStatsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationStatsGet200Response>> {
|
|
308
|
+
const queryParameters: any = {};
|
|
309
|
+
|
|
310
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
311
|
+
|
|
312
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
313
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
317
|
+
const token = this.configuration.accessToken;
|
|
318
|
+
const tokenString = await token("BearerAuth", []);
|
|
319
|
+
|
|
320
|
+
if (tokenString) {
|
|
321
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
const response = await this.request({
|
|
325
|
+
path: `/api/notification/stats`,
|
|
326
|
+
method: 'GET',
|
|
327
|
+
headers: headerParameters,
|
|
328
|
+
query: queryParameters,
|
|
329
|
+
}, initOverrides);
|
|
330
|
+
|
|
331
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationStatsGet200ResponseFromJSON(jsonValue));
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Get User Notification Stats
|
|
336
|
+
*/
|
|
337
|
+
async apiNotificationStatsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationStatsGet200Response> {
|
|
338
|
+
const response = await this.apiNotificationStatsGetRaw(initOverrides);
|
|
339
|
+
return await response.value();
|
|
340
|
+
}
|
|
341
|
+
|
|
37
342
|
/**
|
|
38
343
|
* Register FCM Token
|
|
39
344
|
*/
|
package/deploy.log
CHANGED
|
@@ -242,6 +242,16 @@
|
|
|
242
242
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_user_post_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification_user_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_user_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
243
243
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_user_post_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification_user_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_user_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
244
244
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_topic_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification_topic_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_topic_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
245
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_my_notifications_get_filter_parameter. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification_my_notifications_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_my_notifications_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
|
|
246
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_my_notifications_get_200_response_responseObject_items_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification_my_notifications_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_my_notifications_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
247
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_my_notifications_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification_my_notifications_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_my_notifications_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
248
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_my_notifications_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification_my_notifications_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_my_notifications_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
249
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_stats_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification_stats_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_stats_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
250
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_stats_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification_stats_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_stats_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
251
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification__notificationId__read_put_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification__notificationId__read_put_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification__notificationId__read_put_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
252
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification__notificationId__read_put_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification__notificationId__read_put_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification__notificationId__read_put_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
253
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_read_all_put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification_read_all_put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_read_all_put_request=NewModel,ModelA=NewModelA in CLI).
|
|
254
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_delete_all_delete_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_notification_delete_all_delete_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_delete_all_delete_request=NewModel,ModelA=NewModelA in CLI).
|
|
245
255
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_wallet_status_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_wallet_status_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_wallet_status_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
246
256
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_wallet_status_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_wallet_status_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_wallet_status_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
247
257
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_wallet_bind_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_wallet_bind_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_wallet_bind_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -446,6 +456,16 @@
|
|
|
446
456
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObject.ts
|
|
447
457
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.ts
|
|
448
458
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.ts
|
|
459
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationDeleteAllDeleteRequest.ts
|
|
460
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationMyNotificationsGet200Response.ts
|
|
461
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationMyNotificationsGet200ResponseResponseObject.ts
|
|
462
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner.ts
|
|
463
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationMyNotificationsGetFilterParameter.ts
|
|
464
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationNotificationIdReadPut200Response.ts
|
|
465
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationNotificationIdReadPut200ResponseResponseObject.ts
|
|
466
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationReadAllPutRequest.ts
|
|
467
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationStatsGet200Response.ts
|
|
468
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationStatsGet200ResponseResponseObject.ts
|
|
449
469
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationTopicPostRequest.ts
|
|
450
470
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationUserPost200Response.ts
|
|
451
471
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationUserPost200ResponseResponseObject.ts
|
|
@@ -719,6 +739,12 @@
|
|
|
719
739
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/mma/events/{id}. Renamed to auto-generated operationId: apiMmaEventsIdGet
|
|
720
740
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/notification/user. Renamed to auto-generated operationId: apiNotificationUserPost
|
|
721
741
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/notification/topic. Renamed to auto-generated operationId: apiNotificationTopicPost
|
|
742
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/notification/my-notifications. Renamed to auto-generated operationId: apiNotificationMyNotificationsGet
|
|
743
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/notification/stats. Renamed to auto-generated operationId: apiNotificationStatsGet
|
|
744
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/notification/{notificationId}/read. Renamed to auto-generated operationId: apiNotificationNotificationIdReadPut
|
|
745
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/notification/read-all. Renamed to auto-generated operationId: apiNotificationReadAllPut
|
|
746
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/notification/{notificationId}. Renamed to auto-generated operationId: apiNotificationNotificationIdDelete
|
|
747
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/notification/delete-all. Renamed to auto-generated operationId: apiNotificationDeleteAllDelete
|
|
722
748
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/wallet/status. Renamed to auto-generated operationId: apiWalletStatusGet
|
|
723
749
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/wallet/bind. Renamed to auto-generated operationId: apiWalletBindPost
|
|
724
750
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/wallet/unbind. Renamed to auto-generated operationId: apiWalletUnbindPost
|
|
@@ -831,21 +857,30 @@
|
|
|
831
857
|
# https://opencollective.com/openapi_generator/donate #
|
|
832
858
|
################################################################################
|
|
833
859
|
✅ SDK generated
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
860
|
+
[master 147a5cf] VPS: Generated API SDK
|
|
861
|
+
13 files changed, 1354 insertions(+)
|
|
862
|
+
create mode 100644 models/ApiNotificationDeleteAllDeleteRequest.ts
|
|
863
|
+
create mode 100644 models/ApiNotificationMyNotificationsGet200Response.ts
|
|
864
|
+
create mode 100644 models/ApiNotificationMyNotificationsGet200ResponseResponseObject.ts
|
|
865
|
+
create mode 100644 models/ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner.ts
|
|
866
|
+
create mode 100644 models/ApiNotificationMyNotificationsGetFilterParameter.ts
|
|
867
|
+
create mode 100644 models/ApiNotificationNotificationIdReadPut200Response.ts
|
|
868
|
+
create mode 100644 models/ApiNotificationNotificationIdReadPut200ResponseResponseObject.ts
|
|
869
|
+
create mode 100644 models/ApiNotificationReadAllPutRequest.ts
|
|
870
|
+
create mode 100644 models/ApiNotificationStatsGet200Response.ts
|
|
871
|
+
create mode 100644 models/ApiNotificationStatsGet200ResponseResponseObject.ts
|
|
872
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
873
|
+
2c457d2..147a5cf master -> master
|
|
839
874
|
✅ Changes committed and pushed
|
|
840
|
-
v1.1.
|
|
875
|
+
v1.1.428
|
|
841
876
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
842
|
-
|
|
877
|
+
147a5cf..2d16d42 master -> master
|
|
843
878
|
✅ Version bumped
|
|
844
879
|
|
|
845
|
-
> @drxsuperapp/sdk@1.1.
|
|
880
|
+
> @drxsuperapp/sdk@1.1.428 prepublishOnly
|
|
846
881
|
> npm run build
|
|
847
882
|
|
|
848
883
|
|
|
849
|
-
> @drxsuperapp/sdk@1.1.
|
|
884
|
+
> @drxsuperapp/sdk@1.1.428 build
|
|
850
885
|
> tsc
|
|
851
886
|
|
|
@@ -10,7 +10,25 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiUserFcmTokenPost200Response, ApiUserFcmTokenPostRequest } from '../models/index';
|
|
13
|
+
import type { ApiNotificationDeleteAllDeleteRequest, ApiNotificationMyNotificationsGet200Response, ApiNotificationMyNotificationsGetFilterParameter, ApiNotificationNotificationIdReadPut200Response, ApiNotificationReadAllPutRequest, ApiNotificationStatsGet200Response, ApiUserFcmTokenPost200Response, ApiUserFcmTokenPostRequest } from '../models/index';
|
|
14
|
+
export interface ApiNotificationDeleteAllDeleteOperationRequest {
|
|
15
|
+
apiNotificationDeleteAllDeleteRequest?: ApiNotificationDeleteAllDeleteRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiNotificationMyNotificationsGetRequest {
|
|
18
|
+
page?: number;
|
|
19
|
+
pageSize?: number;
|
|
20
|
+
sort?: string;
|
|
21
|
+
filter?: ApiNotificationMyNotificationsGetFilterParameter;
|
|
22
|
+
}
|
|
23
|
+
export interface ApiNotificationNotificationIdDeleteRequest {
|
|
24
|
+
notificationId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ApiNotificationNotificationIdReadPutRequest {
|
|
27
|
+
notificationId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ApiNotificationReadAllPutOperationRequest {
|
|
30
|
+
apiNotificationReadAllPutRequest?: ApiNotificationReadAllPutRequest;
|
|
31
|
+
}
|
|
14
32
|
export interface ApiUserFcmTokenPostOperationRequest {
|
|
15
33
|
apiUserFcmTokenPostRequest?: ApiUserFcmTokenPostRequest;
|
|
16
34
|
}
|
|
@@ -18,6 +36,54 @@ export interface ApiUserFcmTokenPostOperationRequest {
|
|
|
18
36
|
*
|
|
19
37
|
*/
|
|
20
38
|
export declare class UserNotificationsApi extends runtime.BaseAPI {
|
|
39
|
+
/**
|
|
40
|
+
* Delete All Notifications
|
|
41
|
+
*/
|
|
42
|
+
apiNotificationDeleteAllDeleteRaw(requestParameters: ApiNotificationDeleteAllDeleteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationNotificationIdReadPut200Response>>;
|
|
43
|
+
/**
|
|
44
|
+
* Delete All Notifications
|
|
45
|
+
*/
|
|
46
|
+
apiNotificationDeleteAllDelete(requestParameters?: ApiNotificationDeleteAllDeleteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationNotificationIdReadPut200Response>;
|
|
47
|
+
/**
|
|
48
|
+
* Get User Notifications
|
|
49
|
+
*/
|
|
50
|
+
apiNotificationMyNotificationsGetRaw(requestParameters: ApiNotificationMyNotificationsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationMyNotificationsGet200Response>>;
|
|
51
|
+
/**
|
|
52
|
+
* Get User Notifications
|
|
53
|
+
*/
|
|
54
|
+
apiNotificationMyNotificationsGet(requestParameters?: ApiNotificationMyNotificationsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationMyNotificationsGet200Response>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete Notification
|
|
57
|
+
*/
|
|
58
|
+
apiNotificationNotificationIdDeleteRaw(requestParameters: ApiNotificationNotificationIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationNotificationIdReadPut200Response>>;
|
|
59
|
+
/**
|
|
60
|
+
* Delete Notification
|
|
61
|
+
*/
|
|
62
|
+
apiNotificationNotificationIdDelete(requestParameters: ApiNotificationNotificationIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationNotificationIdReadPut200Response>;
|
|
63
|
+
/**
|
|
64
|
+
* Mark Notification as Read
|
|
65
|
+
*/
|
|
66
|
+
apiNotificationNotificationIdReadPutRaw(requestParameters: ApiNotificationNotificationIdReadPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationNotificationIdReadPut200Response>>;
|
|
67
|
+
/**
|
|
68
|
+
* Mark Notification as Read
|
|
69
|
+
*/
|
|
70
|
+
apiNotificationNotificationIdReadPut(requestParameters: ApiNotificationNotificationIdReadPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationNotificationIdReadPut200Response>;
|
|
71
|
+
/**
|
|
72
|
+
* Mark All Notifications as Read
|
|
73
|
+
*/
|
|
74
|
+
apiNotificationReadAllPutRaw(requestParameters: ApiNotificationReadAllPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationNotificationIdReadPut200Response>>;
|
|
75
|
+
/**
|
|
76
|
+
* Mark All Notifications as Read
|
|
77
|
+
*/
|
|
78
|
+
apiNotificationReadAllPut(requestParameters?: ApiNotificationReadAllPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationNotificationIdReadPut200Response>;
|
|
79
|
+
/**
|
|
80
|
+
* Get User Notification Stats
|
|
81
|
+
*/
|
|
82
|
+
apiNotificationStatsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationStatsGet200Response>>;
|
|
83
|
+
/**
|
|
84
|
+
* Get User Notification Stats
|
|
85
|
+
*/
|
|
86
|
+
apiNotificationStatsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationStatsGet200Response>;
|
|
21
87
|
/**
|
|
22
88
|
* Register FCM Token
|
|
23
89
|
*/
|