@drxsuperapp/sdk 1.1.480 → 1.1.482

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.
@@ -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
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './AdminNotificationApi';
3
4
  export * from './AppConfigurationApi';
4
5
  export * from './AuthenticationApi';
5
6
  export * from './CategoryManagementApi';
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,21 +882,22 @@
876
882
  # https://opencollective.com/openapi_generator/donate #
877
883
  ################################################################################
878
884
  ✅ SDK generated
879
- On branch master
880
- Your branch is up to date with 'origin/master'.
881
-
882
- nothing to commit, working tree clean
883
- Everything up-to-date
885
+ [master b7c4c96] VPS: Generated API SDK
886
+ 5 files changed, 234 insertions(+)
887
+ create mode 100644 apis/AdminNotificationApi.ts
888
+ create mode 100644 models/ApiAdminNotificationBroadcastPostRequest.ts
889
+ To https://gitlab.com/drx-super/drx-sdk.git
890
+ 80a7cff..b7c4c96 master -> master
884
891
  ✅ Changes committed and pushed
885
- v1.1.480
892
+ v1.1.482
886
893
  To https://gitlab.com/drx-super/drx-sdk.git
887
- 93f07dd..b99160f master -> master
894
+ b7c4c96..5cb551c master -> master
888
895
  ✅ Version bumped
889
896
 
890
- > @drxsuperapp/sdk@1.1.480 prepublishOnly
897
+ > @drxsuperapp/sdk@1.1.482 prepublishOnly
891
898
  > npm run build
892
899
 
893
900
 
894
- > @drxsuperapp/sdk@1.1.480 build
901
+ > @drxsuperapp/sdk@1.1.482 build
895
902
  > tsc
896
903
 
@@ -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
+ }
@@ -1,3 +1,4 @@
1
+ export * from './AdminNotificationApi';
1
2
  export * from './AppConfigurationApi';
2
3
  export * from './AuthenticationApi';
3
4
  export * from './CategoryManagementApi';
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './AdminNotificationApi';
3
4
  export * from './AppConfigurationApi';
4
5
  export * from './AuthenticationApi';
5
6
  export * from './CategoryManagementApi';
@@ -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
+ }
@@ -122,6 +122,7 @@ export declare const ApiNotificationMyNotificationsGet200ResponseResponseObjectI
122
122
  readonly Reminder: "REMINDER";
123
123
  readonly Promotional: "PROMOTIONAL";
124
124
  readonly Security: "SECURITY";
125
+ readonly Broadcast: "BROADCAST";
125
126
  };
126
127
  export type ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum = typeof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum[keyof typeof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum];
127
128
  /**
@@ -24,7 +24,8 @@ export const ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInne
24
24
  Referral: 'REFERRAL',
25
25
  Reminder: 'REMINDER',
26
26
  Promotional: 'PROMOTIONAL',
27
- Security: 'SECURITY'
27
+ Security: 'SECURITY',
28
+ Broadcast: 'BROADCAST'
28
29
  };
29
30
  /**
30
31
  * Check if a given object implements the ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInner interface.
@@ -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';
@@ -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
+
@@ -125,7 +125,8 @@ export const ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInne
125
125
  Referral: 'REFERRAL',
126
126
  Reminder: 'REMINDER',
127
127
  Promotional: 'PROMOTIONAL',
128
- Security: 'SECURITY'
128
+ Security: 'SECURITY',
129
+ Broadcast: 'BROADCAST'
129
130
  } as const;
130
131
  export type ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum = typeof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum[keyof typeof ApiNotificationMyNotificationsGet200ResponseResponseObjectItemsInnerTypeEnum];
131
132
 
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.480",
3
+ "version": "1.1.482",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {