@drxsuperapp/sdk 1.1.481 → 1.1.483
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 +2 -0
- package/apis/AdminNotificationApi.ts +146 -0
- package/apis/index.ts +1 -0
- package/deploy.log +15 -8
- package/dist/apis/AdminNotificationApi.d.ts +47 -0
- package/dist/apis/AdminNotificationApi.js +100 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApiAdminNotificationBroadcastPostRequest.d.ts +44 -0
- package/dist/models/ApiAdminNotificationBroadcastPostRequest.js +51 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/ApiAdminNotificationBroadcastPostRequest.ts +84 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
apis/AdminNotificationApi.ts
|
|
1
2
|
apis/AppConfigurationApi.ts
|
|
2
3
|
apis/AuthenticationApi.ts
|
|
3
4
|
apis/CategoryManagementApi.ts
|
|
@@ -34,6 +35,7 @@ models/ApiAdminAppConfigsGroupGroupGet200Response.ts
|
|
|
34
35
|
models/ApiAdminAppConfigsIdPutRequest.ts
|
|
35
36
|
models/ApiAdminAppConfigsPost200Response.ts
|
|
36
37
|
models/ApiAdminAppConfigsPostRequest.ts
|
|
38
|
+
models/ApiAdminNotificationBroadcastPostRequest.ts
|
|
37
39
|
models/ApiAdminSyncUserPointsPost200Response.ts
|
|
38
40
|
models/ApiAdminSyncUserPointsPost200ResponseResponseObject.ts
|
|
39
41
|
models/ApiAuthChangePasswordPostRequest.ts
|
|
@@ -0,0 +1,146 @@
|
|
|
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
|
+
}
|
package/apis/index.ts
CHANGED
package/deploy.log
CHANGED
|
@@ -333,6 +333,7 @@
|
|
|
333
333
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_category_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_category_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_category_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
334
334
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_category_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_category_put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_category_put_request=NewModel,ModelA=NewModelA in CLI).
|
|
335
335
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_category_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_category_put_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_category_put_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
336
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_admin_notification_broadcast_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_admin_notification_broadcast_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_admin_notification_broadcast_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
336
337
|
[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/]
|
|
337
338
|
[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/]
|
|
338
339
|
[main] INFO o.o.codegen.DefaultGenerator - Model _api_file_upload_post_request not generated since it's marked as unused (due to form parameters) and `skipFormModel` (global property) set to true (default)
|
|
@@ -344,6 +345,7 @@
|
|
|
344
345
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsIdPutRequest.ts
|
|
345
346
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsPost200Response.ts
|
|
346
347
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsPostRequest.ts
|
|
348
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminNotificationBroadcastPostRequest.ts
|
|
347
349
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminSyncUserPointsPost200Response.ts
|
|
348
350
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminSyncUserPointsPost200ResponseResponseObject.ts
|
|
349
351
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthChangePasswordPostRequest.ts
|
|
@@ -810,6 +812,10 @@
|
|
|
810
812
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/public/category. Renamed to auto-generated operationId: apiPublicCategoryGet
|
|
811
813
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/category/{id}. Renamed to auto-generated operationId: apiCategoryIdGet
|
|
812
814
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/category/{id}. Renamed to auto-generated operationId: apiCategoryIdDelete
|
|
815
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/admin-notification/broadcast. Renamed to auto-generated operationId: apiAdminNotificationBroadcastPost
|
|
816
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/admin-notification. Renamed to auto-generated operationId: apiAdminNotificationGet
|
|
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
|
|
813
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/]
|
|
814
820
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigurationApi.ts
|
|
815
821
|
[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/]
|
|
@@ -876,20 +882,21 @@
|
|
|
876
882
|
# https://opencollective.com/openapi_generator/donate #
|
|
877
883
|
################################################################################
|
|
878
884
|
✅ SDK generated
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
885
|
+
On branch master
|
|
886
|
+
Your branch is up to date with 'origin/master'.
|
|
887
|
+
|
|
888
|
+
nothing to commit, working tree clean
|
|
889
|
+
Everything up-to-date
|
|
883
890
|
✅ Changes committed and pushed
|
|
884
|
-
v1.1.
|
|
891
|
+
v1.1.483
|
|
885
892
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
886
|
-
|
|
893
|
+
5cb551c..67c9bfc master -> master
|
|
887
894
|
✅ Version bumped
|
|
888
895
|
|
|
889
|
-
> @drxsuperapp/sdk@1.1.
|
|
896
|
+
> @drxsuperapp/sdk@1.1.483 prepublishOnly
|
|
890
897
|
> npm run build
|
|
891
898
|
|
|
892
899
|
|
|
893
|
-
> @drxsuperapp/sdk@1.1.
|
|
900
|
+
> @drxsuperapp/sdk@1.1.483 build
|
|
894
901
|
> tsc
|
|
895
902
|
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
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
|
+
}
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
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 ApiAdminNotificationBroadcastPostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiAdminNotificationBroadcastPostRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiAdminNotificationBroadcastPostRequest
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiAdminNotificationBroadcastPostRequest
|
|
28
|
+
*/
|
|
29
|
+
body: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiAdminNotificationBroadcastPostRequest
|
|
34
|
+
*/
|
|
35
|
+
clickAction: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ApiAdminNotificationBroadcastPostRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfApiAdminNotificationBroadcastPostRequest(value: object): value is ApiAdminNotificationBroadcastPostRequest;
|
|
41
|
+
export declare function ApiAdminNotificationBroadcastPostRequestFromJSON(json: any): ApiAdminNotificationBroadcastPostRequest;
|
|
42
|
+
export declare function ApiAdminNotificationBroadcastPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminNotificationBroadcastPostRequest;
|
|
43
|
+
export declare function ApiAdminNotificationBroadcastPostRequestToJSON(json: any): ApiAdminNotificationBroadcastPostRequest;
|
|
44
|
+
export declare function ApiAdminNotificationBroadcastPostRequestToJSONTyped(value?: ApiAdminNotificationBroadcastPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ApiAdminNotificationBroadcastPostRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiAdminNotificationBroadcastPostRequest(value) {
|
|
18
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('body' in value) || value['body'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('clickAction' in value) || value['clickAction'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function ApiAdminNotificationBroadcastPostRequestFromJSON(json) {
|
|
27
|
+
return ApiAdminNotificationBroadcastPostRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ApiAdminNotificationBroadcastPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'title': json['title'],
|
|
35
|
+
'body': json['body'],
|
|
36
|
+
'clickAction': json['clickAction'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ApiAdminNotificationBroadcastPostRequestToJSON(json) {
|
|
40
|
+
return ApiAdminNotificationBroadcastPostRequestToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ApiAdminNotificationBroadcastPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'title': value['title'],
|
|
48
|
+
'body': value['body'],
|
|
49
|
+
'clickAction': value['clickAction'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './ApiAdminAppConfigsGroupGroupGet200Response';
|
|
|
6
6
|
export * from './ApiAdminAppConfigsIdPutRequest';
|
|
7
7
|
export * from './ApiAdminAppConfigsPost200Response';
|
|
8
8
|
export * from './ApiAdminAppConfigsPostRequest';
|
|
9
|
+
export * from './ApiAdminNotificationBroadcastPostRequest';
|
|
9
10
|
export * from './ApiAdminSyncUserPointsPost200Response';
|
|
10
11
|
export * from './ApiAdminSyncUserPointsPost200ResponseResponseObject';
|
|
11
12
|
export * from './ApiAuthChangePasswordPostRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export * from './ApiAdminAppConfigsGroupGroupGet200Response';
|
|
|
8
8
|
export * from './ApiAdminAppConfigsIdPutRequest';
|
|
9
9
|
export * from './ApiAdminAppConfigsPost200Response';
|
|
10
10
|
export * from './ApiAdminAppConfigsPostRequest';
|
|
11
|
+
export * from './ApiAdminNotificationBroadcastPostRequest';
|
|
11
12
|
export * from './ApiAdminSyncUserPointsPost200Response';
|
|
12
13
|
export * from './ApiAdminSyncUserPointsPost200ResponseResponseObject';
|
|
13
14
|
export * from './ApiAuthChangePasswordPostRequest';
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiAdminNotificationBroadcastPostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiAdminNotificationBroadcastPostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiAdminNotificationBroadcastPostRequest
|
|
26
|
+
*/
|
|
27
|
+
title: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiAdminNotificationBroadcastPostRequest
|
|
32
|
+
*/
|
|
33
|
+
body: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiAdminNotificationBroadcastPostRequest
|
|
38
|
+
*/
|
|
39
|
+
clickAction: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ApiAdminNotificationBroadcastPostRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfApiAdminNotificationBroadcastPostRequest(value: object): value is ApiAdminNotificationBroadcastPostRequest {
|
|
46
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
47
|
+
if (!('body' in value) || value['body'] === undefined) return false;
|
|
48
|
+
if (!('clickAction' in value) || value['clickAction'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiAdminNotificationBroadcastPostRequestFromJSON(json: any): ApiAdminNotificationBroadcastPostRequest {
|
|
53
|
+
return ApiAdminNotificationBroadcastPostRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiAdminNotificationBroadcastPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminNotificationBroadcastPostRequest {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'title': json['title'],
|
|
63
|
+
'body': json['body'],
|
|
64
|
+
'clickAction': json['clickAction'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ApiAdminNotificationBroadcastPostRequestToJSON(json: any): ApiAdminNotificationBroadcastPostRequest {
|
|
69
|
+
return ApiAdminNotificationBroadcastPostRequestToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiAdminNotificationBroadcastPostRequestToJSONTyped(value?: ApiAdminNotificationBroadcastPostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'title': value['title'],
|
|
80
|
+
'body': value['body'],
|
|
81
|
+
'clickAction': value['clickAction'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/models/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './ApiAdminAppConfigsGroupGroupGet200Response';
|
|
|
8
8
|
export * from './ApiAdminAppConfigsIdPutRequest';
|
|
9
9
|
export * from './ApiAdminAppConfigsPost200Response';
|
|
10
10
|
export * from './ApiAdminAppConfigsPostRequest';
|
|
11
|
+
export * from './ApiAdminNotificationBroadcastPostRequest';
|
|
11
12
|
export * from './ApiAdminSyncUserPointsPost200Response';
|
|
12
13
|
export * from './ApiAdminSyncUserPointsPost200ResponseResponseObject';
|
|
13
14
|
export * from './ApiAuthChangePasswordPostRequest';
|