@drxsuperapp/sdk 1.1.299 → 1.1.301

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/apis/NotificationApi.ts +126 -0
  3. package/apis/index.ts +1 -0
  4. package/deploy.log +33 -7
  5. package/dist/apis/NotificationApi.d.ts +40 -0
  6. package/dist/apis/NotificationApi.js +86 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/ApiNotificationTopicPostRequest.d.ts +46 -0
  10. package/dist/models/ApiNotificationTopicPostRequest.js +51 -0
  11. package/dist/models/ApiNotificationUserPost200Response.d.ts +51 -0
  12. package/dist/models/ApiNotificationUserPost200Response.js +54 -0
  13. package/dist/models/ApiNotificationUserPost200ResponseResponseObject.d.ts +63 -0
  14. package/dist/models/ApiNotificationUserPost200ResponseResponseObject.js +54 -0
  15. package/dist/models/ApiNotificationUserPost200ResponseResponseObjectErrorsInner.d.ts +38 -0
  16. package/dist/models/ApiNotificationUserPost200ResponseResponseObjectErrorsInner.js +45 -0
  17. package/dist/models/ApiNotificationUserPostRequest.d.ts +52 -0
  18. package/dist/models/ApiNotificationUserPostRequest.js +51 -0
  19. package/dist/models/ApiNotificationUserPostRequestOptions.d.ts +137 -0
  20. package/dist/models/ApiNotificationUserPostRequestOptions.js +95 -0
  21. package/dist/models/ApiNotificationUserPostRequestPayload.d.ts +106 -0
  22. package/dist/models/ApiNotificationUserPostRequestPayload.js +69 -0
  23. package/dist/models/index.d.ts +7 -0
  24. package/dist/models/index.js +7 -0
  25. package/models/ApiNotificationTopicPostRequest.ts +98 -0
  26. package/models/ApiNotificationUserPost200Response.ts +100 -0
  27. package/models/ApiNotificationUserPost200ResponseResponseObject.ts +114 -0
  28. package/models/ApiNotificationUserPost200ResponseResponseObjectErrorsInner.ts +74 -0
  29. package/models/ApiNotificationUserPostRequest.ts +105 -0
  30. package/models/ApiNotificationUserPostRequestOptions.ts +199 -0
  31. package/models/ApiNotificationUserPostRequestPayload.ts +163 -0
  32. package/models/index.ts +7 -0
  33. package/package.json +1 -1
@@ -5,6 +5,7 @@ apis/GarudakuApi.ts
5
5
  apis/HealthCheckApi.ts
6
6
  apis/MMAApi.ts
7
7
  apis/NewsApi.ts
8
+ apis/NotificationApi.ts
8
9
  apis/PadelApi.ts
9
10
  apis/TennisApi.ts
10
11
  apis/TournamentApi.ts
@@ -127,6 +128,13 @@ models/ApiNewsIdGet200Response.ts
127
128
  models/ApiNewsIdGet200ResponseResponseObject.ts
128
129
  models/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.ts
129
130
  models/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.ts
131
+ models/ApiNotificationTopicPostRequest.ts
132
+ models/ApiNotificationUserPost200Response.ts
133
+ models/ApiNotificationUserPost200ResponseResponseObject.ts
134
+ models/ApiNotificationUserPost200ResponseResponseObjectErrorsInner.ts
135
+ models/ApiNotificationUserPostRequest.ts
136
+ models/ApiNotificationUserPostRequestOptions.ts
137
+ models/ApiNotificationUserPostRequestPayload.ts
130
138
  models/ApiPadelMatchesGet200Response.ts
131
139
  models/ApiPadelMatchesGet200ResponseResponseObject.ts
132
140
  models/ApiPadelMatchesGet200ResponseResponseObjectItemsInner.ts
@@ -0,0 +1,126 @@
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
+ ApiNotificationTopicPostRequest,
19
+ ApiNotificationUserPost200Response,
20
+ ApiNotificationUserPostRequest,
21
+ } from '../models/index';
22
+ import {
23
+ ApiNotificationTopicPostRequestFromJSON,
24
+ ApiNotificationTopicPostRequestToJSON,
25
+ ApiNotificationUserPost200ResponseFromJSON,
26
+ ApiNotificationUserPost200ResponseToJSON,
27
+ ApiNotificationUserPostRequestFromJSON,
28
+ ApiNotificationUserPostRequestToJSON,
29
+ } from '../models/index';
30
+
31
+ export interface ApiNotificationTopicPostOperationRequest {
32
+ apiNotificationTopicPostRequest?: ApiNotificationTopicPostRequest;
33
+ }
34
+
35
+ export interface ApiNotificationUserPostOperationRequest {
36
+ apiNotificationUserPostRequest?: ApiNotificationUserPostRequest;
37
+ }
38
+
39
+ /**
40
+ *
41
+ */
42
+ export class NotificationApi extends runtime.BaseAPI {
43
+
44
+ /**
45
+ * Send push notification to a topic/channel
46
+ */
47
+ async apiNotificationTopicPostRaw(requestParameters: ApiNotificationTopicPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationUserPost200Response>> {
48
+ const queryParameters: any = {};
49
+
50
+ const headerParameters: runtime.HTTPHeaders = {};
51
+
52
+ headerParameters['Content-Type'] = 'application/json';
53
+
54
+ if (this.configuration && this.configuration.apiKey) {
55
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
56
+ }
57
+
58
+ if (this.configuration && this.configuration.accessToken) {
59
+ const token = this.configuration.accessToken;
60
+ const tokenString = await token("BearerAuth", []);
61
+
62
+ if (tokenString) {
63
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
64
+ }
65
+ }
66
+ const response = await this.request({
67
+ path: `/api/notification/topic`,
68
+ method: 'POST',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ body: ApiNotificationTopicPostRequestToJSON(requestParameters['apiNotificationTopicPostRequest']),
72
+ }, initOverrides);
73
+
74
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationUserPost200ResponseFromJSON(jsonValue));
75
+ }
76
+
77
+ /**
78
+ * Send push notification to a topic/channel
79
+ */
80
+ async apiNotificationTopicPost(requestParameters: ApiNotificationTopicPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationUserPost200Response> {
81
+ const response = await this.apiNotificationTopicPostRaw(requestParameters, initOverrides);
82
+ return await response.value();
83
+ }
84
+
85
+ /**
86
+ * Send push notification to specific user(s)
87
+ */
88
+ async apiNotificationUserPostRaw(requestParameters: ApiNotificationUserPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationUserPost200Response>> {
89
+ const queryParameters: any = {};
90
+
91
+ const headerParameters: runtime.HTTPHeaders = {};
92
+
93
+ headerParameters['Content-Type'] = 'application/json';
94
+
95
+ if (this.configuration && this.configuration.apiKey) {
96
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
97
+ }
98
+
99
+ if (this.configuration && this.configuration.accessToken) {
100
+ const token = this.configuration.accessToken;
101
+ const tokenString = await token("BearerAuth", []);
102
+
103
+ if (tokenString) {
104
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
105
+ }
106
+ }
107
+ const response = await this.request({
108
+ path: `/api/notification/user`,
109
+ method: 'POST',
110
+ headers: headerParameters,
111
+ query: queryParameters,
112
+ body: ApiNotificationUserPostRequestToJSON(requestParameters['apiNotificationUserPostRequest']),
113
+ }, initOverrides);
114
+
115
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationUserPost200ResponseFromJSON(jsonValue));
116
+ }
117
+
118
+ /**
119
+ * Send push notification to specific user(s)
120
+ */
121
+ async apiNotificationUserPost(requestParameters: ApiNotificationUserPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationUserPost200Response> {
122
+ const response = await this.apiNotificationUserPostRaw(requestParameters, initOverrides);
123
+ return await response.value();
124
+ }
125
+
126
+ }
package/apis/index.ts CHANGED
@@ -7,6 +7,7 @@ export * from './GarudakuApi';
7
7
  export * from './HealthCheckApi';
8
8
  export * from './MMAApi';
9
9
  export * from './NewsApi';
10
+ export * from './NotificationApi';
10
11
  export * from './PadelApi';
11
12
  export * from './TennisApi';
12
13
  export * from './TournamentApi';
package/deploy.log CHANGED
@@ -235,6 +235,13 @@
235
235
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_mma_events_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_mma_events_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_mma_events_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
236
236
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_mma_events_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_mma_events_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_mma_events_get_200_response=NewModel,ModelA=NewModelA in CLI).
237
237
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_mma_events__id__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_mma_events__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_mma_events__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
238
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_user_post_request_payload. 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_request_payload=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_user_post_request_payload=NewModel,ModelA=NewModelA in CLI).
239
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_user_post_request_options. 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_request_options=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_user_post_request_options=NewModel,ModelA=NewModelA in CLI).
240
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_user_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_user_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_user_post_request=NewModel,ModelA=NewModelA in CLI).
241
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_notification_user_post_200_response_responseObject_errors_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_user_post_200_response_responseObject_errors_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_notification_user_post_200_response_responseObject_errors_inner=NewModel,ModelA=NewModelA in CLI).
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
+ [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
+ [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).
238
245
  [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/]
239
246
  [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/]
240
247
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAdminAppConfigsGet200Response.ts
@@ -349,6 +356,13 @@
349
356
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObject.ts
350
357
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.ts
351
358
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.ts
359
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationTopicPostRequest.ts
360
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationUserPost200Response.ts
361
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationUserPost200ResponseResponseObject.ts
362
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationUserPost200ResponseResponseObjectErrorsInner.ts
363
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationUserPostRequest.ts
364
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationUserPostRequestOptions.ts
365
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNotificationUserPostRequestPayload.ts
352
366
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200Response.ts
353
367
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200ResponseResponseObject.ts
354
368
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200ResponseResponseObjectItemsInner.ts
@@ -555,6 +569,8 @@
555
569
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/admin/app-configs/group/{group}. Renamed to auto-generated operationId: apiAdminAppConfigsGroupGroupGet
556
570
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/mma/events. Renamed to auto-generated operationId: apiMmaEventsGet
557
571
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/mma/events/{id}. Renamed to auto-generated operationId: apiMmaEventsIdGet
572
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/notification/user. Renamed to auto-generated operationId: apiNotificationUserPost
573
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/notification/topic. Renamed to auto-generated operationId: apiNotificationTopicPost
558
574
  [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/]
559
575
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
560
576
  [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/]
@@ -570,6 +586,8 @@
570
586
  [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/]
571
587
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/NewsApi.ts
572
588
  [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/]
589
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/NotificationApi.ts
590
+ [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/]
573
591
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/PadelApi.ts
574
592
  [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/]
575
593
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/TennisApi.ts
@@ -599,20 +617,28 @@
599
617
  # https://opencollective.com/openapi_generator/donate #
600
618
  ################################################################################
601
619
  ✅ SDK generated
602
- [master 08bd28b] VPS: Generated API SDK
603
- 1 file changed, 11 insertions(+), 4 deletions(-)
620
+ [master 61b97d0] VPS: Generated API SDK
621
+ 11 files changed, 995 insertions(+)
622
+ create mode 100644 apis/NotificationApi.ts
623
+ create mode 100644 models/ApiNotificationTopicPostRequest.ts
624
+ create mode 100644 models/ApiNotificationUserPost200Response.ts
625
+ create mode 100644 models/ApiNotificationUserPost200ResponseResponseObject.ts
626
+ create mode 100644 models/ApiNotificationUserPost200ResponseResponseObjectErrorsInner.ts
627
+ create mode 100644 models/ApiNotificationUserPostRequest.ts
628
+ create mode 100644 models/ApiNotificationUserPostRequestOptions.ts
629
+ create mode 100644 models/ApiNotificationUserPostRequestPayload.ts
604
630
  To https://gitlab.com/drx-super/drx-sdk.git
605
- 42bf63e..08bd28b master -> master
631
+ 5cf933b..61b97d0 master -> master
606
632
  ✅ Changes committed and pushed
607
- v1.1.299
633
+ v1.1.301
608
634
  To https://gitlab.com/drx-super/drx-sdk.git
609
- 08bd28b..a50bd53 master -> master
635
+ 61b97d0..3c0e45a master -> master
610
636
  ✅ Version bumped
611
637
 
612
- > @drxsuperapp/sdk@1.1.299 prepublishOnly
638
+ > @drxsuperapp/sdk@1.1.301 prepublishOnly
613
639
  > npm run build
614
640
 
615
641
 
616
- > @drxsuperapp/sdk@1.1.299 build
642
+ > @drxsuperapp/sdk@1.1.301 build
617
643
  > tsc
618
644
 
@@ -0,0 +1,40 @@
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 { ApiNotificationTopicPostRequest, ApiNotificationUserPost200Response, ApiNotificationUserPostRequest } from '../models/index';
14
+ export interface ApiNotificationTopicPostOperationRequest {
15
+ apiNotificationTopicPostRequest?: ApiNotificationTopicPostRequest;
16
+ }
17
+ export interface ApiNotificationUserPostOperationRequest {
18
+ apiNotificationUserPostRequest?: ApiNotificationUserPostRequest;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class NotificationApi extends runtime.BaseAPI {
24
+ /**
25
+ * Send push notification to a topic/channel
26
+ */
27
+ apiNotificationTopicPostRaw(requestParameters: ApiNotificationTopicPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationUserPost200Response>>;
28
+ /**
29
+ * Send push notification to a topic/channel
30
+ */
31
+ apiNotificationTopicPost(requestParameters?: ApiNotificationTopicPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationUserPost200Response>;
32
+ /**
33
+ * Send push notification to specific user(s)
34
+ */
35
+ apiNotificationUserPostRaw(requestParameters: ApiNotificationUserPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNotificationUserPost200Response>>;
36
+ /**
37
+ * Send push notification to specific user(s)
38
+ */
39
+ apiNotificationUserPost(requestParameters?: ApiNotificationUserPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNotificationUserPost200Response>;
40
+ }
@@ -0,0 +1,86 @@
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 { ApiNotificationTopicPostRequestToJSON, ApiNotificationUserPost200ResponseFromJSON, ApiNotificationUserPostRequestToJSON, } from '../models/index';
16
+ /**
17
+ *
18
+ */
19
+ export class NotificationApi extends runtime.BaseAPI {
20
+ /**
21
+ * Send push notification to a topic/channel
22
+ */
23
+ async apiNotificationTopicPostRaw(requestParameters, initOverrides) {
24
+ const queryParameters = {};
25
+ const headerParameters = {};
26
+ headerParameters['Content-Type'] = 'application/json';
27
+ if (this.configuration && this.configuration.apiKey) {
28
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
29
+ }
30
+ if (this.configuration && this.configuration.accessToken) {
31
+ const token = this.configuration.accessToken;
32
+ const tokenString = await token("BearerAuth", []);
33
+ if (tokenString) {
34
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
35
+ }
36
+ }
37
+ const response = await this.request({
38
+ path: `/api/notification/topic`,
39
+ method: 'POST',
40
+ headers: headerParameters,
41
+ query: queryParameters,
42
+ body: ApiNotificationTopicPostRequestToJSON(requestParameters['apiNotificationTopicPostRequest']),
43
+ }, initOverrides);
44
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationUserPost200ResponseFromJSON(jsonValue));
45
+ }
46
+ /**
47
+ * Send push notification to a topic/channel
48
+ */
49
+ async apiNotificationTopicPost(requestParameters = {}, initOverrides) {
50
+ const response = await this.apiNotificationTopicPostRaw(requestParameters, initOverrides);
51
+ return await response.value();
52
+ }
53
+ /**
54
+ * Send push notification to specific user(s)
55
+ */
56
+ async apiNotificationUserPostRaw(requestParameters, initOverrides) {
57
+ const queryParameters = {};
58
+ const headerParameters = {};
59
+ headerParameters['Content-Type'] = 'application/json';
60
+ if (this.configuration && this.configuration.apiKey) {
61
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
62
+ }
63
+ if (this.configuration && this.configuration.accessToken) {
64
+ const token = this.configuration.accessToken;
65
+ const tokenString = await token("BearerAuth", []);
66
+ if (tokenString) {
67
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
68
+ }
69
+ }
70
+ const response = await this.request({
71
+ path: `/api/notification/user`,
72
+ method: 'POST',
73
+ headers: headerParameters,
74
+ query: queryParameters,
75
+ body: ApiNotificationUserPostRequestToJSON(requestParameters['apiNotificationUserPostRequest']),
76
+ }, initOverrides);
77
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiNotificationUserPost200ResponseFromJSON(jsonValue));
78
+ }
79
+ /**
80
+ * Send push notification to specific user(s)
81
+ */
82
+ async apiNotificationUserPost(requestParameters = {}, initOverrides) {
83
+ const response = await this.apiNotificationUserPostRaw(requestParameters, initOverrides);
84
+ return await response.value();
85
+ }
86
+ }
@@ -5,6 +5,7 @@ export * from './GarudakuApi';
5
5
  export * from './HealthCheckApi';
6
6
  export * from './MMAApi';
7
7
  export * from './NewsApi';
8
+ export * from './NotificationApi';
8
9
  export * from './PadelApi';
9
10
  export * from './TennisApi';
10
11
  export * from './TournamentApi';
@@ -7,6 +7,7 @@ export * from './GarudakuApi';
7
7
  export * from './HealthCheckApi';
8
8
  export * from './MMAApi';
9
9
  export * from './NewsApi';
10
+ export * from './NotificationApi';
10
11
  export * from './PadelApi';
11
12
  export * from './TennisApi';
12
13
  export * from './TournamentApi';
@@ -0,0 +1,46 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApiNotificationUserPostRequestPayload } from './ApiNotificationUserPostRequestPayload';
13
+ import type { ApiNotificationUserPostRequestOptions } from './ApiNotificationUserPostRequestOptions';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ApiNotificationTopicPostRequest
18
+ */
19
+ export interface ApiNotificationTopicPostRequest {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof ApiNotificationTopicPostRequest
24
+ */
25
+ topic: string;
26
+ /**
27
+ *
28
+ * @type {ApiNotificationUserPostRequestPayload}
29
+ * @memberof ApiNotificationTopicPostRequest
30
+ */
31
+ payload: ApiNotificationUserPostRequestPayload;
32
+ /**
33
+ *
34
+ * @type {ApiNotificationUserPostRequestOptions}
35
+ * @memberof ApiNotificationTopicPostRequest
36
+ */
37
+ options?: ApiNotificationUserPostRequestOptions;
38
+ }
39
+ /**
40
+ * Check if a given object implements the ApiNotificationTopicPostRequest interface.
41
+ */
42
+ export declare function instanceOfApiNotificationTopicPostRequest(value: object): value is ApiNotificationTopicPostRequest;
43
+ export declare function ApiNotificationTopicPostRequestFromJSON(json: any): ApiNotificationTopicPostRequest;
44
+ export declare function ApiNotificationTopicPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationTopicPostRequest;
45
+ export declare function ApiNotificationTopicPostRequestToJSON(json: any): ApiNotificationTopicPostRequest;
46
+ export declare function ApiNotificationTopicPostRequestToJSONTyped(value?: ApiNotificationTopicPostRequest | 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
+ import { ApiNotificationUserPostRequestPayloadFromJSON, ApiNotificationUserPostRequestPayloadToJSON, } from './ApiNotificationUserPostRequestPayload';
15
+ import { ApiNotificationUserPostRequestOptionsFromJSON, ApiNotificationUserPostRequestOptionsToJSON, } from './ApiNotificationUserPostRequestOptions';
16
+ /**
17
+ * Check if a given object implements the ApiNotificationTopicPostRequest interface.
18
+ */
19
+ export function instanceOfApiNotificationTopicPostRequest(value) {
20
+ if (!('topic' in value) || value['topic'] === undefined)
21
+ return false;
22
+ if (!('payload' in value) || value['payload'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ApiNotificationTopicPostRequestFromJSON(json) {
27
+ return ApiNotificationTopicPostRequestFromJSONTyped(json, false);
28
+ }
29
+ export function ApiNotificationTopicPostRequestFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'topic': json['topic'],
35
+ 'payload': ApiNotificationUserPostRequestPayloadFromJSON(json['payload']),
36
+ 'options': json['options'] == null ? undefined : ApiNotificationUserPostRequestOptionsFromJSON(json['options']),
37
+ };
38
+ }
39
+ export function ApiNotificationTopicPostRequestToJSON(json) {
40
+ return ApiNotificationTopicPostRequestToJSONTyped(json, false);
41
+ }
42
+ export function ApiNotificationTopicPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'topic': value['topic'],
48
+ 'payload': ApiNotificationUserPostRequestPayloadToJSON(value['payload']),
49
+ 'options': ApiNotificationUserPostRequestOptionsToJSON(value['options']),
50
+ };
51
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApiNotificationUserPost200ResponseResponseObject } from './ApiNotificationUserPost200ResponseResponseObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiNotificationUserPost200Response
17
+ */
18
+ export interface ApiNotificationUserPost200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ApiNotificationUserPost200Response
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiNotificationUserPost200Response
29
+ */
30
+ message: string;
31
+ /**
32
+ *
33
+ * @type {ApiNotificationUserPost200ResponseResponseObject}
34
+ * @memberof ApiNotificationUserPost200Response
35
+ */
36
+ responseObject?: ApiNotificationUserPost200ResponseResponseObject;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiNotificationUserPost200Response
41
+ */
42
+ statusCode: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiNotificationUserPost200Response interface.
46
+ */
47
+ export declare function instanceOfApiNotificationUserPost200Response(value: object): value is ApiNotificationUserPost200Response;
48
+ export declare function ApiNotificationUserPost200ResponseFromJSON(json: any): ApiNotificationUserPost200Response;
49
+ export declare function ApiNotificationUserPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationUserPost200Response;
50
+ export declare function ApiNotificationUserPost200ResponseToJSON(json: any): ApiNotificationUserPost200Response;
51
+ export declare function ApiNotificationUserPost200ResponseToJSONTyped(value?: ApiNotificationUserPost200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ApiNotificationUserPost200ResponseResponseObjectFromJSON, ApiNotificationUserPost200ResponseResponseObjectToJSON, } from './ApiNotificationUserPost200ResponseResponseObject';
15
+ /**
16
+ * Check if a given object implements the ApiNotificationUserPost200Response interface.
17
+ */
18
+ export function instanceOfApiNotificationUserPost200Response(value) {
19
+ if (!('success' in value) || value['success'] === undefined)
20
+ return false;
21
+ if (!('message' in value) || value['message'] === undefined)
22
+ return false;
23
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function ApiNotificationUserPost200ResponseFromJSON(json) {
28
+ return ApiNotificationUserPost200ResponseFromJSONTyped(json, false);
29
+ }
30
+ export function ApiNotificationUserPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'success': json['success'],
36
+ 'message': json['message'],
37
+ 'responseObject': json['responseObject'] == null ? undefined : ApiNotificationUserPost200ResponseResponseObjectFromJSON(json['responseObject']),
38
+ 'statusCode': json['statusCode'],
39
+ };
40
+ }
41
+ export function ApiNotificationUserPost200ResponseToJSON(json) {
42
+ return ApiNotificationUserPost200ResponseToJSONTyped(json, false);
43
+ }
44
+ export function ApiNotificationUserPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'message': value['message'],
51
+ 'responseObject': ApiNotificationUserPost200ResponseResponseObjectToJSON(value['responseObject']),
52
+ 'statusCode': value['statusCode'],
53
+ };
54
+ }
@@ -0,0 +1,63 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApiNotificationUserPost200ResponseResponseObjectErrorsInner } from './ApiNotificationUserPost200ResponseResponseObjectErrorsInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiNotificationUserPost200ResponseResponseObject
17
+ */
18
+ export interface ApiNotificationUserPost200ResponseResponseObject {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
29
+ */
30
+ messageId?: string;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
35
+ */
36
+ successCount?: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
41
+ */
42
+ failureCount?: number;
43
+ /**
44
+ *
45
+ * @type {Array<ApiNotificationUserPost200ResponseResponseObjectErrorsInner>}
46
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
47
+ */
48
+ errors?: Array<ApiNotificationUserPost200ResponseResponseObjectErrorsInner>;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
53
+ */
54
+ notificationId?: string;
55
+ }
56
+ /**
57
+ * Check if a given object implements the ApiNotificationUserPost200ResponseResponseObject interface.
58
+ */
59
+ export declare function instanceOfApiNotificationUserPost200ResponseResponseObject(value: object): value is ApiNotificationUserPost200ResponseResponseObject;
60
+ export declare function ApiNotificationUserPost200ResponseResponseObjectFromJSON(json: any): ApiNotificationUserPost200ResponseResponseObject;
61
+ export declare function ApiNotificationUserPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationUserPost200ResponseResponseObject;
62
+ export declare function ApiNotificationUserPost200ResponseResponseObjectToJSON(json: any): ApiNotificationUserPost200ResponseResponseObject;
63
+ export declare function ApiNotificationUserPost200ResponseResponseObjectToJSONTyped(value?: ApiNotificationUserPost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;