@drxsuperapp/sdk 1.1.483 → 1.1.485
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 +0 -1
- package/apis/NotificationManagementApi.ts +116 -0
- package/apis/index.ts +0 -1
- package/deploy.log +4 -6
- package/dist/apis/NotificationManagementApi.d.ts +30 -1
- package/dist/apis/NotificationManagementApi.js +81 -1
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/package.json +1 -1
- package/apis/AdminNotificationApi.ts +0 -146
- package/dist/apis/AdminNotificationApi.d.ts +0 -47
- package/dist/apis/AdminNotificationApi.js +0 -100
package/.openapi-generator/FILES
CHANGED
|
@@ -15,11 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiAdminNotificationBroadcastPostRequest,
|
|
19
|
+
ApiNotificationMyNotificationsGet200Response,
|
|
18
20
|
ApiNotificationTopicPostRequest,
|
|
19
21
|
ApiNotificationUserPost200Response,
|
|
20
22
|
ApiNotificationUserPostRequest,
|
|
21
23
|
} from '../models/index';
|
|
22
24
|
import {
|
|
25
|
+
ApiAdminNotificationBroadcastPostRequestFromJSON,
|
|
26
|
+
ApiAdminNotificationBroadcastPostRequestToJSON,
|
|
27
|
+
ApiNotificationMyNotificationsGet200ResponseFromJSON,
|
|
28
|
+
ApiNotificationMyNotificationsGet200ResponseToJSON,
|
|
23
29
|
ApiNotificationTopicPostRequestFromJSON,
|
|
24
30
|
ApiNotificationTopicPostRequestToJSON,
|
|
25
31
|
ApiNotificationUserPost200ResponseFromJSON,
|
|
@@ -28,6 +34,17 @@ import {
|
|
|
28
34
|
ApiNotificationUserPostRequestToJSON,
|
|
29
35
|
} from '../models/index';
|
|
30
36
|
|
|
37
|
+
export interface ApiAdminNotificationBroadcastPostOperationRequest {
|
|
38
|
+
apiAdminNotificationBroadcastPostRequest?: ApiAdminNotificationBroadcastPostRequest;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ApiAdminNotificationGetRequest {
|
|
42
|
+
page?: number;
|
|
43
|
+
pageSize?: number;
|
|
44
|
+
sort?: string;
|
|
45
|
+
filter?: object;
|
|
46
|
+
}
|
|
47
|
+
|
|
31
48
|
export interface ApiNotificationTopicPostOperationRequest {
|
|
32
49
|
apiNotificationTopicPostRequest?: ApiNotificationTopicPostRequest;
|
|
33
50
|
}
|
|
@@ -41,6 +58,105 @@ export interface ApiNotificationUserPostOperationRequest {
|
|
|
41
58
|
*/
|
|
42
59
|
export class NotificationManagementApi extends runtime.BaseAPI {
|
|
43
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Broadcast Notification
|
|
63
|
+
* Broadcast Notification
|
|
64
|
+
*/
|
|
65
|
+
async apiAdminNotificationBroadcastPostRaw(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationUserPost200Response>> {
|
|
66
|
+
const queryParameters: any = {};
|
|
67
|
+
|
|
68
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
69
|
+
|
|
70
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
71
|
+
|
|
72
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
73
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = await token("BearerAuth", []);
|
|
79
|
+
|
|
80
|
+
if (tokenString) {
|
|
81
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const response = await this.request({
|
|
85
|
+
path: `/api/admin-notification/broadcast`,
|
|
86
|
+
method: 'POST',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
body: ApiAdminNotificationBroadcastPostRequestToJSON(requestParameters['apiAdminNotificationBroadcastPostRequest']),
|
|
90
|
+
}, initOverrides);
|
|
91
|
+
|
|
92
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationUserPost200ResponseFromJSON(jsonValue));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Broadcast Notification
|
|
97
|
+
* Broadcast Notification
|
|
98
|
+
*/
|
|
99
|
+
async apiAdminNotificationBroadcastPost(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationUserPost200Response> {
|
|
100
|
+
const response = await this.apiAdminNotificationBroadcastPostRaw(requestParameters, initOverrides);
|
|
101
|
+
return await response.value();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Admin Notification List
|
|
106
|
+
* Admin Notification List
|
|
107
|
+
*/
|
|
108
|
+
async apiAdminNotificationGetRaw(requestParameters: ApiAdminNotificationGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationMyNotificationsGet200Response>> {
|
|
109
|
+
const queryParameters: any = {};
|
|
110
|
+
|
|
111
|
+
if (requestParameters['page'] != null) {
|
|
112
|
+
queryParameters['page'] = requestParameters['page'];
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (requestParameters['pageSize'] != null) {
|
|
116
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (requestParameters['sort'] != null) {
|
|
120
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (requestParameters['filter'] != null) {
|
|
124
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
128
|
+
|
|
129
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
130
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
134
|
+
const token = this.configuration.accessToken;
|
|
135
|
+
const tokenString = await token("BearerAuth", []);
|
|
136
|
+
|
|
137
|
+
if (tokenString) {
|
|
138
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const response = await this.request({
|
|
142
|
+
path: `/api/admin-notification`,
|
|
143
|
+
method: 'GET',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
}, initOverrides);
|
|
147
|
+
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationMyNotificationsGet200ResponseFromJSON(jsonValue));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Admin Notification List
|
|
153
|
+
* Admin Notification List
|
|
154
|
+
*/
|
|
155
|
+
async apiAdminNotificationGet(requestParameters: ApiAdminNotificationGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationMyNotificationsGet200Response> {
|
|
156
|
+
const response = await this.apiAdminNotificationGetRaw(requestParameters, initOverrides);
|
|
157
|
+
return await response.value();
|
|
158
|
+
}
|
|
159
|
+
|
|
44
160
|
/**
|
|
45
161
|
* Send push notification to a topic/channel
|
|
46
162
|
*/
|
package/apis/index.ts
CHANGED
package/deploy.log
CHANGED
|
@@ -815,8 +815,6 @@
|
|
|
815
815
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/admin-notification/broadcast. Renamed to auto-generated operationId: apiAdminNotificationBroadcastPost
|
|
816
816
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/admin-notification. Renamed to auto-generated operationId: apiAdminNotificationGet
|
|
817
817
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
818
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AdminNotificationApi.ts
|
|
819
|
-
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
820
818
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigurationApi.ts
|
|
821
819
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
822
820
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AuthenticationApi.ts
|
|
@@ -888,15 +886,15 @@ Your branch is up to date with 'origin/master'.
|
|
|
888
886
|
nothing to commit, working tree clean
|
|
889
887
|
Everything up-to-date
|
|
890
888
|
✅ Changes committed and pushed
|
|
891
|
-
v1.1.
|
|
889
|
+
v1.1.485
|
|
892
890
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
893
|
-
|
|
891
|
+
fffa00e..4b1766d master -> master
|
|
894
892
|
✅ Version bumped
|
|
895
893
|
|
|
896
|
-
> @drxsuperapp/sdk@1.1.
|
|
894
|
+
> @drxsuperapp/sdk@1.1.485 prepublishOnly
|
|
897
895
|
> npm run build
|
|
898
896
|
|
|
899
897
|
|
|
900
|
-
> @drxsuperapp/sdk@1.1.
|
|
898
|
+
> @drxsuperapp/sdk@1.1.485 build
|
|
901
899
|
> tsc
|
|
902
900
|
|
|
@@ -10,7 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiNotificationTopicPostRequest, ApiNotificationUserPost200Response, ApiNotificationUserPostRequest } from '../models/index';
|
|
13
|
+
import type { ApiAdminNotificationBroadcastPostRequest, ApiNotificationMyNotificationsGet200Response, ApiNotificationTopicPostRequest, ApiNotificationUserPost200Response, ApiNotificationUserPostRequest } from '../models/index';
|
|
14
|
+
export interface ApiAdminNotificationBroadcastPostOperationRequest {
|
|
15
|
+
apiAdminNotificationBroadcastPostRequest?: ApiAdminNotificationBroadcastPostRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiAdminNotificationGetRequest {
|
|
18
|
+
page?: number;
|
|
19
|
+
pageSize?: number;
|
|
20
|
+
sort?: string;
|
|
21
|
+
filter?: object;
|
|
22
|
+
}
|
|
14
23
|
export interface ApiNotificationTopicPostOperationRequest {
|
|
15
24
|
apiNotificationTopicPostRequest?: ApiNotificationTopicPostRequest;
|
|
16
25
|
}
|
|
@@ -21,6 +30,26 @@ export interface ApiNotificationUserPostOperationRequest {
|
|
|
21
30
|
*
|
|
22
31
|
*/
|
|
23
32
|
export declare class NotificationManagementApi extends runtime.BaseAPI {
|
|
33
|
+
/**
|
|
34
|
+
* Broadcast Notification
|
|
35
|
+
* Broadcast Notification
|
|
36
|
+
*/
|
|
37
|
+
apiAdminNotificationBroadcastPostRaw(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationUserPost200Response>>;
|
|
38
|
+
/**
|
|
39
|
+
* Broadcast Notification
|
|
40
|
+
* Broadcast Notification
|
|
41
|
+
*/
|
|
42
|
+
apiAdminNotificationBroadcastPost(requestParameters?: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationUserPost200Response>;
|
|
43
|
+
/**
|
|
44
|
+
* Admin Notification List
|
|
45
|
+
* Admin Notification List
|
|
46
|
+
*/
|
|
47
|
+
apiAdminNotificationGetRaw(requestParameters: ApiAdminNotificationGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationMyNotificationsGet200Response>>;
|
|
48
|
+
/**
|
|
49
|
+
* Admin Notification List
|
|
50
|
+
* Admin Notification List
|
|
51
|
+
*/
|
|
52
|
+
apiAdminNotificationGet(requestParameters?: ApiAdminNotificationGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationMyNotificationsGet200Response>;
|
|
24
53
|
/**
|
|
25
54
|
* Send push notification to a topic/channel
|
|
26
55
|
*/
|
|
@@ -12,11 +12,91 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiNotificationTopicPostRequestToJSON, ApiNotificationUserPost200ResponseFromJSON, ApiNotificationUserPostRequestToJSON, } from '../models/index';
|
|
15
|
+
import { ApiAdminNotificationBroadcastPostRequestToJSON, ApiNotificationMyNotificationsGet200ResponseFromJSON, ApiNotificationTopicPostRequestToJSON, ApiNotificationUserPost200ResponseFromJSON, ApiNotificationUserPostRequestToJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class NotificationManagementApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Broadcast Notification
|
|
22
|
+
* Broadcast Notification
|
|
23
|
+
*/
|
|
24
|
+
async apiAdminNotificationBroadcastPostRaw(requestParameters, initOverrides) {
|
|
25
|
+
const queryParameters = {};
|
|
26
|
+
const headerParameters = {};
|
|
27
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
28
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
29
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
30
|
+
}
|
|
31
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
32
|
+
const token = this.configuration.accessToken;
|
|
33
|
+
const tokenString = await token("BearerAuth", []);
|
|
34
|
+
if (tokenString) {
|
|
35
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const response = await this.request({
|
|
39
|
+
path: `/api/admin-notification/broadcast`,
|
|
40
|
+
method: 'POST',
|
|
41
|
+
headers: headerParameters,
|
|
42
|
+
query: queryParameters,
|
|
43
|
+
body: ApiAdminNotificationBroadcastPostRequestToJSON(requestParameters['apiAdminNotificationBroadcastPostRequest']),
|
|
44
|
+
}, initOverrides);
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationUserPost200ResponseFromJSON(jsonValue));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Broadcast Notification
|
|
49
|
+
* Broadcast Notification
|
|
50
|
+
*/
|
|
51
|
+
async apiAdminNotificationBroadcastPost(requestParameters = {}, initOverrides) {
|
|
52
|
+
const response = await this.apiAdminNotificationBroadcastPostRaw(requestParameters, initOverrides);
|
|
53
|
+
return await response.value();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Admin Notification List
|
|
57
|
+
* Admin Notification List
|
|
58
|
+
*/
|
|
59
|
+
async apiAdminNotificationGetRaw(requestParameters, initOverrides) {
|
|
60
|
+
const queryParameters = {};
|
|
61
|
+
if (requestParameters['page'] != null) {
|
|
62
|
+
queryParameters['page'] = requestParameters['page'];
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters['pageSize'] != null) {
|
|
65
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
66
|
+
}
|
|
67
|
+
if (requestParameters['sort'] != null) {
|
|
68
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
69
|
+
}
|
|
70
|
+
if (requestParameters['filter'] != null) {
|
|
71
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
72
|
+
}
|
|
73
|
+
const headerParameters = {};
|
|
74
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
75
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
76
|
+
}
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
const token = this.configuration.accessToken;
|
|
79
|
+
const tokenString = await token("BearerAuth", []);
|
|
80
|
+
if (tokenString) {
|
|
81
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const response = await this.request({
|
|
85
|
+
path: `/api/admin-notification`,
|
|
86
|
+
method: 'GET',
|
|
87
|
+
headers: headerParameters,
|
|
88
|
+
query: queryParameters,
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationMyNotificationsGet200ResponseFromJSON(jsonValue));
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Admin Notification List
|
|
94
|
+
* Admin Notification List
|
|
95
|
+
*/
|
|
96
|
+
async apiAdminNotificationGet(requestParameters = {}, initOverrides) {
|
|
97
|
+
const response = await this.apiAdminNotificationGetRaw(requestParameters, initOverrides);
|
|
98
|
+
return await response.value();
|
|
99
|
+
}
|
|
20
100
|
/**
|
|
21
101
|
* Send push notification to a topic/channel
|
|
22
102
|
*/
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,146 +0,0 @@
|
|
|
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
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
ApiAdminNotificationBroadcastPostRequest,
|
|
19
|
-
ApiNotificationMyNotificationsGet200Response,
|
|
20
|
-
ApiNotificationUserPost200Response,
|
|
21
|
-
} from '../models/index';
|
|
22
|
-
import {
|
|
23
|
-
ApiAdminNotificationBroadcastPostRequestFromJSON,
|
|
24
|
-
ApiAdminNotificationBroadcastPostRequestToJSON,
|
|
25
|
-
ApiNotificationMyNotificationsGet200ResponseFromJSON,
|
|
26
|
-
ApiNotificationMyNotificationsGet200ResponseToJSON,
|
|
27
|
-
ApiNotificationUserPost200ResponseFromJSON,
|
|
28
|
-
ApiNotificationUserPost200ResponseToJSON,
|
|
29
|
-
} from '../models/index';
|
|
30
|
-
|
|
31
|
-
export interface ApiAdminNotificationBroadcastPostOperationRequest {
|
|
32
|
-
apiAdminNotificationBroadcastPostRequest?: ApiAdminNotificationBroadcastPostRequest;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface ApiAdminNotificationGetRequest {
|
|
36
|
-
page?: number;
|
|
37
|
-
pageSize?: number;
|
|
38
|
-
sort?: string;
|
|
39
|
-
filter?: object;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class AdminNotificationApi extends runtime.BaseAPI {
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Broadcast Notification
|
|
49
|
-
* Broadcast Notification
|
|
50
|
-
*/
|
|
51
|
-
async apiAdminNotificationBroadcastPostRaw(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationUserPost200Response>> {
|
|
52
|
-
const queryParameters: any = {};
|
|
53
|
-
|
|
54
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
55
|
-
|
|
56
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
57
|
-
|
|
58
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
59
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
63
|
-
const token = this.configuration.accessToken;
|
|
64
|
-
const tokenString = await token("BearerAuth", []);
|
|
65
|
-
|
|
66
|
-
if (tokenString) {
|
|
67
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
const response = await this.request({
|
|
71
|
-
path: `/api/admin-notification/broadcast`,
|
|
72
|
-
method: 'POST',
|
|
73
|
-
headers: headerParameters,
|
|
74
|
-
query: queryParameters,
|
|
75
|
-
body: ApiAdminNotificationBroadcastPostRequestToJSON(requestParameters['apiAdminNotificationBroadcastPostRequest']),
|
|
76
|
-
}, initOverrides);
|
|
77
|
-
|
|
78
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationUserPost200ResponseFromJSON(jsonValue));
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Broadcast Notification
|
|
83
|
-
* Broadcast Notification
|
|
84
|
-
*/
|
|
85
|
-
async apiAdminNotificationBroadcastPost(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationUserPost200Response> {
|
|
86
|
-
const response = await this.apiAdminNotificationBroadcastPostRaw(requestParameters, initOverrides);
|
|
87
|
-
return await response.value();
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Admin Notification List
|
|
92
|
-
* Admin Notification List
|
|
93
|
-
*/
|
|
94
|
-
async apiAdminNotificationGetRaw(requestParameters: ApiAdminNotificationGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationMyNotificationsGet200Response>> {
|
|
95
|
-
const queryParameters: any = {};
|
|
96
|
-
|
|
97
|
-
if (requestParameters['page'] != null) {
|
|
98
|
-
queryParameters['page'] = requestParameters['page'];
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
if (requestParameters['pageSize'] != null) {
|
|
102
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
if (requestParameters['sort'] != null) {
|
|
106
|
-
queryParameters['sort'] = requestParameters['sort'];
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (requestParameters['filter'] != null) {
|
|
110
|
-
queryParameters['filter'] = requestParameters['filter'];
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
114
|
-
|
|
115
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
116
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
120
|
-
const token = this.configuration.accessToken;
|
|
121
|
-
const tokenString = await token("BearerAuth", []);
|
|
122
|
-
|
|
123
|
-
if (tokenString) {
|
|
124
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
const response = await this.request({
|
|
128
|
-
path: `/api/admin-notification`,
|
|
129
|
-
method: 'GET',
|
|
130
|
-
headers: headerParameters,
|
|
131
|
-
query: queryParameters,
|
|
132
|
-
}, initOverrides);
|
|
133
|
-
|
|
134
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationMyNotificationsGet200ResponseFromJSON(jsonValue));
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Admin Notification List
|
|
139
|
-
* Admin Notification List
|
|
140
|
-
*/
|
|
141
|
-
async apiAdminNotificationGet(requestParameters: ApiAdminNotificationGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationMyNotificationsGet200Response> {
|
|
142
|
-
const response = await this.apiAdminNotificationGetRaw(requestParameters, initOverrides);
|
|
143
|
-
return await response.value();
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
-
import type { ApiAdminNotificationBroadcastPostRequest, ApiNotificationMyNotificationsGet200Response, ApiNotificationUserPost200Response } from '../models/index';
|
|
14
|
-
export interface ApiAdminNotificationBroadcastPostOperationRequest {
|
|
15
|
-
apiAdminNotificationBroadcastPostRequest?: ApiAdminNotificationBroadcastPostRequest;
|
|
16
|
-
}
|
|
17
|
-
export interface ApiAdminNotificationGetRequest {
|
|
18
|
-
page?: number;
|
|
19
|
-
pageSize?: number;
|
|
20
|
-
sort?: string;
|
|
21
|
-
filter?: object;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
export declare class AdminNotificationApi extends runtime.BaseAPI {
|
|
27
|
-
/**
|
|
28
|
-
* Broadcast Notification
|
|
29
|
-
* Broadcast Notification
|
|
30
|
-
*/
|
|
31
|
-
apiAdminNotificationBroadcastPostRaw(requestParameters: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationUserPost200Response>>;
|
|
32
|
-
/**
|
|
33
|
-
* Broadcast Notification
|
|
34
|
-
* Broadcast Notification
|
|
35
|
-
*/
|
|
36
|
-
apiAdminNotificationBroadcastPost(requestParameters?: ApiAdminNotificationBroadcastPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationUserPost200Response>;
|
|
37
|
-
/**
|
|
38
|
-
* Admin Notification List
|
|
39
|
-
* Admin Notification List
|
|
40
|
-
*/
|
|
41
|
-
apiAdminNotificationGetRaw(requestParameters: ApiAdminNotificationGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationMyNotificationsGet200Response>>;
|
|
42
|
-
/**
|
|
43
|
-
* Admin Notification List
|
|
44
|
-
* Admin Notification List
|
|
45
|
-
*/
|
|
46
|
-
apiAdminNotificationGet(requestParameters?: ApiAdminNotificationGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationMyNotificationsGet200Response>;
|
|
47
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
15
|
-
import { ApiAdminNotificationBroadcastPostRequestToJSON, ApiNotificationMyNotificationsGet200ResponseFromJSON, ApiNotificationUserPost200ResponseFromJSON, } from '../models/index';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export class AdminNotificationApi extends runtime.BaseAPI {
|
|
20
|
-
/**
|
|
21
|
-
* Broadcast Notification
|
|
22
|
-
* Broadcast Notification
|
|
23
|
-
*/
|
|
24
|
-
async apiAdminNotificationBroadcastPostRaw(requestParameters, initOverrides) {
|
|
25
|
-
const queryParameters = {};
|
|
26
|
-
const headerParameters = {};
|
|
27
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
28
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
29
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
30
|
-
}
|
|
31
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
32
|
-
const token = this.configuration.accessToken;
|
|
33
|
-
const tokenString = await token("BearerAuth", []);
|
|
34
|
-
if (tokenString) {
|
|
35
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
const response = await this.request({
|
|
39
|
-
path: `/api/admin-notification/broadcast`,
|
|
40
|
-
method: 'POST',
|
|
41
|
-
headers: headerParameters,
|
|
42
|
-
query: queryParameters,
|
|
43
|
-
body: ApiAdminNotificationBroadcastPostRequestToJSON(requestParameters['apiAdminNotificationBroadcastPostRequest']),
|
|
44
|
-
}, initOverrides);
|
|
45
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationUserPost200ResponseFromJSON(jsonValue));
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Broadcast Notification
|
|
49
|
-
* Broadcast Notification
|
|
50
|
-
*/
|
|
51
|
-
async apiAdminNotificationBroadcastPost(requestParameters = {}, initOverrides) {
|
|
52
|
-
const response = await this.apiAdminNotificationBroadcastPostRaw(requestParameters, initOverrides);
|
|
53
|
-
return await response.value();
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Admin Notification List
|
|
57
|
-
* Admin Notification List
|
|
58
|
-
*/
|
|
59
|
-
async apiAdminNotificationGetRaw(requestParameters, initOverrides) {
|
|
60
|
-
const queryParameters = {};
|
|
61
|
-
if (requestParameters['page'] != null) {
|
|
62
|
-
queryParameters['page'] = requestParameters['page'];
|
|
63
|
-
}
|
|
64
|
-
if (requestParameters['pageSize'] != null) {
|
|
65
|
-
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
66
|
-
}
|
|
67
|
-
if (requestParameters['sort'] != null) {
|
|
68
|
-
queryParameters['sort'] = requestParameters['sort'];
|
|
69
|
-
}
|
|
70
|
-
if (requestParameters['filter'] != null) {
|
|
71
|
-
queryParameters['filter'] = requestParameters['filter'];
|
|
72
|
-
}
|
|
73
|
-
const headerParameters = {};
|
|
74
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
75
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
76
|
-
}
|
|
77
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
-
const token = this.configuration.accessToken;
|
|
79
|
-
const tokenString = await token("BearerAuth", []);
|
|
80
|
-
if (tokenString) {
|
|
81
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
const response = await this.request({
|
|
85
|
-
path: `/api/admin-notification`,
|
|
86
|
-
method: 'GET',
|
|
87
|
-
headers: headerParameters,
|
|
88
|
-
query: queryParameters,
|
|
89
|
-
}, initOverrides);
|
|
90
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationMyNotificationsGet200ResponseFromJSON(jsonValue));
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Admin Notification List
|
|
94
|
-
* Admin Notification List
|
|
95
|
-
*/
|
|
96
|
-
async apiAdminNotificationGet(requestParameters = {}, initOverrides) {
|
|
97
|
-
const response = await this.apiAdminNotificationGetRaw(requestParameters, initOverrides);
|
|
98
|
-
return await response.value();
|
|
99
|
-
}
|
|
100
|
-
}
|