@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
@@ -0,0 +1,163 @@
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 ApiNotificationUserPostRequestPayload
20
+ */
21
+ export interface ApiNotificationUserPostRequestPayload {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiNotificationUserPostRequestPayload
26
+ */
27
+ title: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiNotificationUserPostRequestPayload
32
+ */
33
+ body: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiNotificationUserPostRequestPayload
38
+ */
39
+ icon?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ApiNotificationUserPostRequestPayload
44
+ */
45
+ image?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ApiNotificationUserPostRequestPayload
50
+ */
51
+ badge?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof ApiNotificationUserPostRequestPayload
56
+ */
57
+ sound?: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof ApiNotificationUserPostRequestPayload
62
+ */
63
+ clickAction?: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof ApiNotificationUserPostRequestPayload
68
+ */
69
+ tag?: string;
70
+ /**
71
+ *
72
+ * @type {boolean}
73
+ * @memberof ApiNotificationUserPostRequestPayload
74
+ */
75
+ requireInteraction?: boolean;
76
+ /**
77
+ *
78
+ * @type {boolean}
79
+ * @memberof ApiNotificationUserPostRequestPayload
80
+ */
81
+ silent?: boolean;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof ApiNotificationUserPostRequestPayload
86
+ */
87
+ timestamp?: number;
88
+ /**
89
+ *
90
+ * @type {Array<number>}
91
+ * @memberof ApiNotificationUserPostRequestPayload
92
+ */
93
+ vibrate?: Array<number>;
94
+ /**
95
+ *
96
+ * @type {{ [key: string]: any | null; }}
97
+ * @memberof ApiNotificationUserPostRequestPayload
98
+ */
99
+ data?: { [key: string]: any | null; };
100
+ }
101
+
102
+ /**
103
+ * Check if a given object implements the ApiNotificationUserPostRequestPayload interface.
104
+ */
105
+ export function instanceOfApiNotificationUserPostRequestPayload(value: object): value is ApiNotificationUserPostRequestPayload {
106
+ if (!('title' in value) || value['title'] === undefined) return false;
107
+ if (!('body' in value) || value['body'] === undefined) return false;
108
+ return true;
109
+ }
110
+
111
+ export function ApiNotificationUserPostRequestPayloadFromJSON(json: any): ApiNotificationUserPostRequestPayload {
112
+ return ApiNotificationUserPostRequestPayloadFromJSONTyped(json, false);
113
+ }
114
+
115
+ export function ApiNotificationUserPostRequestPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationUserPostRequestPayload {
116
+ if (json == null) {
117
+ return json;
118
+ }
119
+ return {
120
+
121
+ 'title': json['title'],
122
+ 'body': json['body'],
123
+ 'icon': json['icon'] == null ? undefined : json['icon'],
124
+ 'image': json['image'] == null ? undefined : json['image'],
125
+ 'badge': json['badge'] == null ? undefined : json['badge'],
126
+ 'sound': json['sound'] == null ? undefined : json['sound'],
127
+ 'clickAction': json['clickAction'] == null ? undefined : json['clickAction'],
128
+ 'tag': json['tag'] == null ? undefined : json['tag'],
129
+ 'requireInteraction': json['requireInteraction'] == null ? undefined : json['requireInteraction'],
130
+ 'silent': json['silent'] == null ? undefined : json['silent'],
131
+ 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
132
+ 'vibrate': json['vibrate'] == null ? undefined : json['vibrate'],
133
+ 'data': json['data'] == null ? undefined : json['data'],
134
+ };
135
+ }
136
+
137
+ export function ApiNotificationUserPostRequestPayloadToJSON(json: any): ApiNotificationUserPostRequestPayload {
138
+ return ApiNotificationUserPostRequestPayloadToJSONTyped(json, false);
139
+ }
140
+
141
+ export function ApiNotificationUserPostRequestPayloadToJSONTyped(value?: ApiNotificationUserPostRequestPayload | null, ignoreDiscriminator: boolean = false): any {
142
+ if (value == null) {
143
+ return value;
144
+ }
145
+
146
+ return {
147
+
148
+ 'title': value['title'],
149
+ 'body': value['body'],
150
+ 'icon': value['icon'],
151
+ 'image': value['image'],
152
+ 'badge': value['badge'],
153
+ 'sound': value['sound'],
154
+ 'clickAction': value['clickAction'],
155
+ 'tag': value['tag'],
156
+ 'requireInteraction': value['requireInteraction'],
157
+ 'silent': value['silent'],
158
+ 'timestamp': value['timestamp'],
159
+ 'vibrate': value['vibrate'],
160
+ 'data': value['data'],
161
+ };
162
+ }
163
+
package/models/index.ts CHANGED
@@ -112,6 +112,13 @@ export * from './ApiNewsIdGet200Response';
112
112
  export * from './ApiNewsIdGet200ResponseResponseObject';
113
113
  export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInner';
114
114
  export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague';
115
+ export * from './ApiNotificationTopicPostRequest';
116
+ export * from './ApiNotificationUserPost200Response';
117
+ export * from './ApiNotificationUserPost200ResponseResponseObject';
118
+ export * from './ApiNotificationUserPost200ResponseResponseObjectErrorsInner';
119
+ export * from './ApiNotificationUserPostRequest';
120
+ export * from './ApiNotificationUserPostRequestOptions';
121
+ export * from './ApiNotificationUserPostRequestPayload';
115
122
  export * from './ApiPadelMatchesGet200Response';
116
123
  export * from './ApiPadelMatchesGet200ResponseResponseObject';
117
124
  export * from './ApiPadelMatchesGet200ResponseResponseObjectItemsInner';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.299",
3
+ "version": "1.1.301",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {