@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,98 @@
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
+ import type { ApiNotificationUserPostRequestPayload } from './ApiNotificationUserPostRequestPayload';
17
+ import {
18
+ ApiNotificationUserPostRequestPayloadFromJSON,
19
+ ApiNotificationUserPostRequestPayloadFromJSONTyped,
20
+ ApiNotificationUserPostRequestPayloadToJSON,
21
+ ApiNotificationUserPostRequestPayloadToJSONTyped,
22
+ } from './ApiNotificationUserPostRequestPayload';
23
+ import type { ApiNotificationUserPostRequestOptions } from './ApiNotificationUserPostRequestOptions';
24
+ import {
25
+ ApiNotificationUserPostRequestOptionsFromJSON,
26
+ ApiNotificationUserPostRequestOptionsFromJSONTyped,
27
+ ApiNotificationUserPostRequestOptionsToJSON,
28
+ ApiNotificationUserPostRequestOptionsToJSONTyped,
29
+ } from './ApiNotificationUserPostRequestOptions';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ApiNotificationTopicPostRequest
35
+ */
36
+ export interface ApiNotificationTopicPostRequest {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ApiNotificationTopicPostRequest
41
+ */
42
+ topic: string;
43
+ /**
44
+ *
45
+ * @type {ApiNotificationUserPostRequestPayload}
46
+ * @memberof ApiNotificationTopicPostRequest
47
+ */
48
+ payload: ApiNotificationUserPostRequestPayload;
49
+ /**
50
+ *
51
+ * @type {ApiNotificationUserPostRequestOptions}
52
+ * @memberof ApiNotificationTopicPostRequest
53
+ */
54
+ options?: ApiNotificationUserPostRequestOptions;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the ApiNotificationTopicPostRequest interface.
59
+ */
60
+ export function instanceOfApiNotificationTopicPostRequest(value: object): value is ApiNotificationTopicPostRequest {
61
+ if (!('topic' in value) || value['topic'] === undefined) return false;
62
+ if (!('payload' in value) || value['payload'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ApiNotificationTopicPostRequestFromJSON(json: any): ApiNotificationTopicPostRequest {
67
+ return ApiNotificationTopicPostRequestFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiNotificationTopicPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationTopicPostRequest {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'topic': json['topic'],
77
+ 'payload': ApiNotificationUserPostRequestPayloadFromJSON(json['payload']),
78
+ 'options': json['options'] == null ? undefined : ApiNotificationUserPostRequestOptionsFromJSON(json['options']),
79
+ };
80
+ }
81
+
82
+ export function ApiNotificationTopicPostRequestToJSON(json: any): ApiNotificationTopicPostRequest {
83
+ return ApiNotificationTopicPostRequestToJSONTyped(json, false);
84
+ }
85
+
86
+ export function ApiNotificationTopicPostRequestToJSONTyped(value?: ApiNotificationTopicPostRequest | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'topic': value['topic'],
94
+ 'payload': ApiNotificationUserPostRequestPayloadToJSON(value['payload']),
95
+ 'options': ApiNotificationUserPostRequestOptionsToJSON(value['options']),
96
+ };
97
+ }
98
+
@@ -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
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ApiNotificationUserPost200ResponseResponseObject } from './ApiNotificationUserPost200ResponseResponseObject';
17
+ import {
18
+ ApiNotificationUserPost200ResponseResponseObjectFromJSON,
19
+ ApiNotificationUserPost200ResponseResponseObjectFromJSONTyped,
20
+ ApiNotificationUserPost200ResponseResponseObjectToJSON,
21
+ ApiNotificationUserPost200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiNotificationUserPost200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiNotificationUserPost200Response
28
+ */
29
+ export interface ApiNotificationUserPost200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiNotificationUserPost200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiNotificationUserPost200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiNotificationUserPost200ResponseResponseObject}
45
+ * @memberof ApiNotificationUserPost200Response
46
+ */
47
+ responseObject?: ApiNotificationUserPost200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiNotificationUserPost200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiNotificationUserPost200Response interface.
58
+ */
59
+ export function instanceOfApiNotificationUserPost200Response(value: object): value is ApiNotificationUserPost200Response {
60
+ if (!('success' in value) || value['success'] === undefined) return false;
61
+ if (!('message' in value) || value['message'] === undefined) return false;
62
+ if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ApiNotificationUserPost200ResponseFromJSON(json: any): ApiNotificationUserPost200Response {
67
+ return ApiNotificationUserPost200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiNotificationUserPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationUserPost200Response {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'success': json['success'],
77
+ 'message': json['message'],
78
+ 'responseObject': json['responseObject'] == null ? undefined : ApiNotificationUserPost200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiNotificationUserPost200ResponseToJSON(json: any): ApiNotificationUserPost200Response {
84
+ return ApiNotificationUserPost200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiNotificationUserPost200ResponseToJSONTyped(value?: ApiNotificationUserPost200Response | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'success': value['success'],
95
+ 'message': value['message'],
96
+ 'responseObject': ApiNotificationUserPost200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,114 @@
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
+ import type { ApiNotificationUserPost200ResponseResponseObjectErrorsInner } from './ApiNotificationUserPost200ResponseResponseObjectErrorsInner';
17
+ import {
18
+ ApiNotificationUserPost200ResponseResponseObjectErrorsInnerFromJSON,
19
+ ApiNotificationUserPost200ResponseResponseObjectErrorsInnerFromJSONTyped,
20
+ ApiNotificationUserPost200ResponseResponseObjectErrorsInnerToJSON,
21
+ ApiNotificationUserPost200ResponseResponseObjectErrorsInnerToJSONTyped,
22
+ } from './ApiNotificationUserPost200ResponseResponseObjectErrorsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiNotificationUserPost200ResponseResponseObject
28
+ */
29
+ export interface ApiNotificationUserPost200ResponseResponseObject {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
40
+ */
41
+ messageId?: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
46
+ */
47
+ successCount?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
52
+ */
53
+ failureCount?: number;
54
+ /**
55
+ *
56
+ * @type {Array<ApiNotificationUserPost200ResponseResponseObjectErrorsInner>}
57
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
58
+ */
59
+ errors?: Array<ApiNotificationUserPost200ResponseResponseObjectErrorsInner>;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof ApiNotificationUserPost200ResponseResponseObject
64
+ */
65
+ notificationId?: string;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the ApiNotificationUserPost200ResponseResponseObject interface.
70
+ */
71
+ export function instanceOfApiNotificationUserPost200ResponseResponseObject(value: object): value is ApiNotificationUserPost200ResponseResponseObject {
72
+ if (!('success' in value) || value['success'] === undefined) return false;
73
+ return true;
74
+ }
75
+
76
+ export function ApiNotificationUserPost200ResponseResponseObjectFromJSON(json: any): ApiNotificationUserPost200ResponseResponseObject {
77
+ return ApiNotificationUserPost200ResponseResponseObjectFromJSONTyped(json, false);
78
+ }
79
+
80
+ export function ApiNotificationUserPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationUserPost200ResponseResponseObject {
81
+ if (json == null) {
82
+ return json;
83
+ }
84
+ return {
85
+
86
+ 'success': json['success'],
87
+ 'messageId': json['messageId'] == null ? undefined : json['messageId'],
88
+ 'successCount': json['successCount'] == null ? undefined : json['successCount'],
89
+ 'failureCount': json['failureCount'] == null ? undefined : json['failureCount'],
90
+ 'errors': json['errors'] == null ? undefined : ((json['errors'] as Array<any>).map(ApiNotificationUserPost200ResponseResponseObjectErrorsInnerFromJSON)),
91
+ 'notificationId': json['notificationId'] == null ? undefined : json['notificationId'],
92
+ };
93
+ }
94
+
95
+ export function ApiNotificationUserPost200ResponseResponseObjectToJSON(json: any): ApiNotificationUserPost200ResponseResponseObject {
96
+ return ApiNotificationUserPost200ResponseResponseObjectToJSONTyped(json, false);
97
+ }
98
+
99
+ export function ApiNotificationUserPost200ResponseResponseObjectToJSONTyped(value?: ApiNotificationUserPost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
100
+ if (value == null) {
101
+ return value;
102
+ }
103
+
104
+ return {
105
+
106
+ 'success': value['success'],
107
+ 'messageId': value['messageId'],
108
+ 'successCount': value['successCount'],
109
+ 'failureCount': value['failureCount'],
110
+ 'errors': value['errors'] == null ? undefined : ((value['errors'] as Array<any>).map(ApiNotificationUserPost200ResponseResponseObjectErrorsInnerToJSON)),
111
+ 'notificationId': value['notificationId'],
112
+ };
113
+ }
114
+
@@ -0,0 +1,74 @@
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 ApiNotificationUserPost200ResponseResponseObjectErrorsInner
20
+ */
21
+ export interface ApiNotificationUserPost200ResponseResponseObjectErrorsInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiNotificationUserPost200ResponseResponseObjectErrorsInner
26
+ */
27
+ token?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiNotificationUserPost200ResponseResponseObjectErrorsInner
32
+ */
33
+ error: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApiNotificationUserPost200ResponseResponseObjectErrorsInner interface.
38
+ */
39
+ export function instanceOfApiNotificationUserPost200ResponseResponseObjectErrorsInner(value: object): value is ApiNotificationUserPost200ResponseResponseObjectErrorsInner {
40
+ if (!('error' in value) || value['error'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function ApiNotificationUserPost200ResponseResponseObjectErrorsInnerFromJSON(json: any): ApiNotificationUserPost200ResponseResponseObjectErrorsInner {
45
+ return ApiNotificationUserPost200ResponseResponseObjectErrorsInnerFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function ApiNotificationUserPost200ResponseResponseObjectErrorsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationUserPost200ResponseResponseObjectErrorsInner {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'token': json['token'] == null ? undefined : json['token'],
55
+ 'error': json['error'],
56
+ };
57
+ }
58
+
59
+ export function ApiNotificationUserPost200ResponseResponseObjectErrorsInnerToJSON(json: any): ApiNotificationUserPost200ResponseResponseObjectErrorsInner {
60
+ return ApiNotificationUserPost200ResponseResponseObjectErrorsInnerToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ApiNotificationUserPost200ResponseResponseObjectErrorsInnerToJSONTyped(value?: ApiNotificationUserPost200ResponseResponseObjectErrorsInner | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'token': value['token'],
71
+ 'error': value['error'],
72
+ };
73
+ }
74
+
@@ -0,0 +1,105 @@
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
+ import type { ApiNotificationUserPostRequestPayload } from './ApiNotificationUserPostRequestPayload';
17
+ import {
18
+ ApiNotificationUserPostRequestPayloadFromJSON,
19
+ ApiNotificationUserPostRequestPayloadFromJSONTyped,
20
+ ApiNotificationUserPostRequestPayloadToJSON,
21
+ ApiNotificationUserPostRequestPayloadToJSONTyped,
22
+ } from './ApiNotificationUserPostRequestPayload';
23
+ import type { ApiNotificationUserPostRequestOptions } from './ApiNotificationUserPostRequestOptions';
24
+ import {
25
+ ApiNotificationUserPostRequestOptionsFromJSON,
26
+ ApiNotificationUserPostRequestOptionsFromJSONTyped,
27
+ ApiNotificationUserPostRequestOptionsToJSON,
28
+ ApiNotificationUserPostRequestOptionsToJSONTyped,
29
+ } from './ApiNotificationUserPostRequestOptions';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ApiNotificationUserPostRequest
35
+ */
36
+ export interface ApiNotificationUserPostRequest {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ApiNotificationUserPostRequest
41
+ */
42
+ userId?: string;
43
+ /**
44
+ *
45
+ * @type {Array<string>}
46
+ * @memberof ApiNotificationUserPostRequest
47
+ */
48
+ userIds?: Array<string>;
49
+ /**
50
+ *
51
+ * @type {ApiNotificationUserPostRequestPayload}
52
+ * @memberof ApiNotificationUserPostRequest
53
+ */
54
+ payload: ApiNotificationUserPostRequestPayload;
55
+ /**
56
+ *
57
+ * @type {ApiNotificationUserPostRequestOptions}
58
+ * @memberof ApiNotificationUserPostRequest
59
+ */
60
+ options?: ApiNotificationUserPostRequestOptions;
61
+ }
62
+
63
+ /**
64
+ * Check if a given object implements the ApiNotificationUserPostRequest interface.
65
+ */
66
+ export function instanceOfApiNotificationUserPostRequest(value: object): value is ApiNotificationUserPostRequest {
67
+ if (!('payload' in value) || value['payload'] === undefined) return false;
68
+ return true;
69
+ }
70
+
71
+ export function ApiNotificationUserPostRequestFromJSON(json: any): ApiNotificationUserPostRequest {
72
+ return ApiNotificationUserPostRequestFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function ApiNotificationUserPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationUserPostRequest {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'userId': json['userId'] == null ? undefined : json['userId'],
82
+ 'userIds': json['userIds'] == null ? undefined : json['userIds'],
83
+ 'payload': ApiNotificationUserPostRequestPayloadFromJSON(json['payload']),
84
+ 'options': json['options'] == null ? undefined : ApiNotificationUserPostRequestOptionsFromJSON(json['options']),
85
+ };
86
+ }
87
+
88
+ export function ApiNotificationUserPostRequestToJSON(json: any): ApiNotificationUserPostRequest {
89
+ return ApiNotificationUserPostRequestToJSONTyped(json, false);
90
+ }
91
+
92
+ export function ApiNotificationUserPostRequestToJSONTyped(value?: ApiNotificationUserPostRequest | null, ignoreDiscriminator: boolean = false): any {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+
97
+ return {
98
+
99
+ 'userId': value['userId'],
100
+ 'userIds': value['userIds'],
101
+ 'payload': ApiNotificationUserPostRequestPayloadToJSON(value['payload']),
102
+ 'options': ApiNotificationUserPostRequestOptionsToJSON(value['options']),
103
+ };
104
+ }
105
+
@@ -0,0 +1,199 @@
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 ApiNotificationUserPostRequestOptions
20
+ */
21
+ export interface ApiNotificationUserPostRequestOptions {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof ApiNotificationUserPostRequestOptions
26
+ */
27
+ immediate?: boolean;
28
+ /**
29
+ *
30
+ * @type {Date}
31
+ * @memberof ApiNotificationUserPostRequestOptions
32
+ */
33
+ scheduledAt?: Date;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof ApiNotificationUserPostRequestOptions
38
+ */
39
+ saveToDatabase?: boolean;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ApiNotificationUserPostRequestOptions
44
+ */
45
+ type?: ApiNotificationUserPostRequestOptionsTypeEnum;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ApiNotificationUserPostRequestOptions
50
+ */
51
+ dataId?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof ApiNotificationUserPostRequestOptions
56
+ */
57
+ link?: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof ApiNotificationUserPostRequestOptions
62
+ */
63
+ media?: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof ApiNotificationUserPostRequestOptions
68
+ */
69
+ createdBy?: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof ApiNotificationUserPostRequestOptions
74
+ */
75
+ campaign?: string;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof ApiNotificationUserPostRequestOptions
80
+ */
81
+ priority?: ApiNotificationUserPostRequestOptionsPriorityEnum;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof ApiNotificationUserPostRequestOptions
86
+ */
87
+ ttl?: number;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof ApiNotificationUserPostRequestOptions
92
+ */
93
+ collapseKey?: string;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof ApiNotificationUserPostRequestOptions
98
+ */
99
+ platform?: ApiNotificationUserPostRequestOptionsPlatformEnum;
100
+ }
101
+
102
+
103
+ /**
104
+ * @export
105
+ */
106
+ export const ApiNotificationUserPostRequestOptionsTypeEnum = {
107
+ System: 'SYSTEM',
108
+ Welcome: 'WELCOME',
109
+ Tournament: 'TOURNAMENT',
110
+ Reward: 'REWARD',
111
+ News: 'NEWS',
112
+ LiveStream: 'LIVE_STREAM',
113
+ Referral: 'REFERRAL',
114
+ Reminder: 'REMINDER',
115
+ Promotional: 'PROMOTIONAL',
116
+ Security: 'SECURITY'
117
+ } as const;
118
+ export type ApiNotificationUserPostRequestOptionsTypeEnum = typeof ApiNotificationUserPostRequestOptionsTypeEnum[keyof typeof ApiNotificationUserPostRequestOptionsTypeEnum];
119
+
120
+ /**
121
+ * @export
122
+ */
123
+ export const ApiNotificationUserPostRequestOptionsPriorityEnum = {
124
+ Normal: 'normal',
125
+ High: 'high'
126
+ } as const;
127
+ export type ApiNotificationUserPostRequestOptionsPriorityEnum = typeof ApiNotificationUserPostRequestOptionsPriorityEnum[keyof typeof ApiNotificationUserPostRequestOptionsPriorityEnum];
128
+
129
+ /**
130
+ * @export
131
+ */
132
+ export const ApiNotificationUserPostRequestOptionsPlatformEnum = {
133
+ Android: 'ANDROID',
134
+ Ios: 'IOS',
135
+ Web: 'WEB'
136
+ } as const;
137
+ export type ApiNotificationUserPostRequestOptionsPlatformEnum = typeof ApiNotificationUserPostRequestOptionsPlatformEnum[keyof typeof ApiNotificationUserPostRequestOptionsPlatformEnum];
138
+
139
+
140
+ /**
141
+ * Check if a given object implements the ApiNotificationUserPostRequestOptions interface.
142
+ */
143
+ export function instanceOfApiNotificationUserPostRequestOptions(value: object): value is ApiNotificationUserPostRequestOptions {
144
+ return true;
145
+ }
146
+
147
+ export function ApiNotificationUserPostRequestOptionsFromJSON(json: any): ApiNotificationUserPostRequestOptions {
148
+ return ApiNotificationUserPostRequestOptionsFromJSONTyped(json, false);
149
+ }
150
+
151
+ export function ApiNotificationUserPostRequestOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiNotificationUserPostRequestOptions {
152
+ if (json == null) {
153
+ return json;
154
+ }
155
+ return {
156
+
157
+ 'immediate': json['immediate'] == null ? undefined : json['immediate'],
158
+ 'scheduledAt': json['scheduledAt'] == null ? undefined : (new Date(json['scheduledAt'])),
159
+ 'saveToDatabase': json['saveToDatabase'] == null ? undefined : json['saveToDatabase'],
160
+ 'type': json['type'] == null ? undefined : json['type'],
161
+ 'dataId': json['dataId'] == null ? undefined : json['dataId'],
162
+ 'link': json['link'] == null ? undefined : json['link'],
163
+ 'media': json['media'] == null ? undefined : json['media'],
164
+ 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
165
+ 'campaign': json['campaign'] == null ? undefined : json['campaign'],
166
+ 'priority': json['priority'] == null ? undefined : json['priority'],
167
+ 'ttl': json['ttl'] == null ? undefined : json['ttl'],
168
+ 'collapseKey': json['collapseKey'] == null ? undefined : json['collapseKey'],
169
+ 'platform': json['platform'] == null ? undefined : json['platform'],
170
+ };
171
+ }
172
+
173
+ export function ApiNotificationUserPostRequestOptionsToJSON(json: any): ApiNotificationUserPostRequestOptions {
174
+ return ApiNotificationUserPostRequestOptionsToJSONTyped(json, false);
175
+ }
176
+
177
+ export function ApiNotificationUserPostRequestOptionsToJSONTyped(value?: ApiNotificationUserPostRequestOptions | null, ignoreDiscriminator: boolean = false): any {
178
+ if (value == null) {
179
+ return value;
180
+ }
181
+
182
+ return {
183
+
184
+ 'immediate': value['immediate'],
185
+ 'scheduledAt': value['scheduledAt'] == null ? undefined : ((value['scheduledAt']).toISOString()),
186
+ 'saveToDatabase': value['saveToDatabase'],
187
+ 'type': value['type'],
188
+ 'dataId': value['dataId'],
189
+ 'link': value['link'],
190
+ 'media': value['media'],
191
+ 'createdBy': value['createdBy'],
192
+ 'campaign': value['campaign'],
193
+ 'priority': value['priority'],
194
+ 'ttl': value['ttl'],
195
+ 'collapseKey': value['collapseKey'],
196
+ 'platform': value['platform'],
197
+ };
198
+ }
199
+