activitysmith 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -25
- package/dist/generated/apis/LiveActivitiesApi.d.ts +2 -2
- package/dist/generated/apis/LiveActivitiesApi.js +2 -2
- package/dist/generated/apis/PushNotificationsApi.d.ts +2 -2
- package/dist/generated/apis/PushNotificationsApi.js +2 -2
- package/dist/generated/models/index.d.ts +163 -0
- package/dist/src/ActivitySmith.d.ts +35 -2
- package/dist/src/ActivitySmith.js +65 -3
- package/package.json +21 -6
- package/dist/generated/apis/NotificationsApi.d.ts +0 -31
- package/dist/generated/apis/NotificationsApi.js +0 -59
- package/dist/generated/models/ContentStateEnd.d.ts +0 -97
- package/dist/generated/models/ContentStateEnd.js +0 -89
- package/dist/generated/models/ContentStateStart.d.ts +0 -104
- package/dist/generated/models/ContentStateStart.js +0 -99
- package/dist/generated/models/ContentStateUpdate.d.ts +0 -91
- package/dist/generated/models/ContentStateUpdate.js +0 -87
- package/dist/generated/models/LiveActivityEndRequest.d.ts +0 -38
- package/dist/generated/models/LiveActivityEndRequest.js +0 -51
- package/dist/generated/models/LiveActivityEndResponse.d.ts +0 -55
- package/dist/generated/models/LiveActivityEndResponse.js +0 -58
- package/dist/generated/models/LiveActivityLimitError.d.ts +0 -49
- package/dist/generated/models/LiveActivityLimitError.js +0 -58
- package/dist/generated/models/LiveActivityStartRequest.d.ts +0 -32
- package/dist/generated/models/LiveActivityStartRequest.js +0 -47
- package/dist/generated/models/LiveActivityStartResponse.d.ts +0 -55
- package/dist/generated/models/LiveActivityStartResponse.js +0 -58
- package/dist/generated/models/LiveActivityUpdateRequest.d.ts +0 -38
- package/dist/generated/models/LiveActivityUpdateRequest.js +0 -51
- package/dist/generated/models/LiveActivityUpdateResponse.d.ts +0 -55
- package/dist/generated/models/LiveActivityUpdateResponse.js +0 -58
- package/dist/generated/models/PushNotificationRequest.d.ts +0 -43
- package/dist/generated/models/PushNotificationRequest.js +0 -50
- package/dist/generated/models/PushNotificationResponse.d.ts +0 -49
- package/dist/generated/models/PushNotificationResponse.js +0 -54
- package/dist/generated/models/RateLimitError.d.ts +0 -37
- package/dist/generated/models/RateLimitError.js +0 -50
- package/dist/generated/models/SendPushNotification429Response.d.ts +0 -22
- package/dist/generated/models/SendPushNotification429Response.js +0 -46
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* ActivitySmith API
|
|
6
|
-
* Send push notifications and Live Activities to your own devices via a single API key.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfLiveActivityUpdateResponse = instanceOfLiveActivityUpdateResponse;
|
|
17
|
-
exports.LiveActivityUpdateResponseFromJSON = LiveActivityUpdateResponseFromJSON;
|
|
18
|
-
exports.LiveActivityUpdateResponseFromJSONTyped = LiveActivityUpdateResponseFromJSONTyped;
|
|
19
|
-
exports.LiveActivityUpdateResponseToJSON = LiveActivityUpdateResponseToJSON;
|
|
20
|
-
/**
|
|
21
|
-
* Check if a given object implements the LiveActivityUpdateResponse interface.
|
|
22
|
-
*/
|
|
23
|
-
function instanceOfLiveActivityUpdateResponse(value) {
|
|
24
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
if (!('activityId' in value) || value['activityId'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
function LiveActivityUpdateResponseFromJSON(json) {
|
|
33
|
-
return LiveActivityUpdateResponseFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
function LiveActivityUpdateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (json == null) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'success': json['success'],
|
|
41
|
-
'activityId': json['activity_id'],
|
|
42
|
-
'devicesQueued': json['devices_queued'] == null ? undefined : json['devices_queued'],
|
|
43
|
-
'devicesNotified': json['devices_notified'] == null ? undefined : json['devices_notified'],
|
|
44
|
-
'timestamp': (new Date(json['timestamp'])),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function LiveActivityUpdateResponseToJSON(value) {
|
|
48
|
-
if (value == null) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'success': value['success'],
|
|
53
|
-
'activity_id': value['activityId'],
|
|
54
|
-
'devices_queued': value['devicesQueued'],
|
|
55
|
-
'devices_notified': value['devicesNotified'],
|
|
56
|
-
'timestamp': ((value['timestamp']).toISOString()),
|
|
57
|
-
};
|
|
58
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ActivitySmith API
|
|
3
|
-
* Send push notifications and Live Activities to your own devices via a single API key.
|
|
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 PushNotificationRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface PushNotificationRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof PushNotificationRequest
|
|
22
|
-
*/
|
|
23
|
-
title: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof PushNotificationRequest
|
|
28
|
-
*/
|
|
29
|
-
message?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof PushNotificationRequest
|
|
34
|
-
*/
|
|
35
|
-
subtitle?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the PushNotificationRequest interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfPushNotificationRequest(value: object): value is PushNotificationRequest;
|
|
41
|
-
export declare function PushNotificationRequestFromJSON(json: any): PushNotificationRequest;
|
|
42
|
-
export declare function PushNotificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PushNotificationRequest;
|
|
43
|
-
export declare function PushNotificationRequestToJSON(value?: PushNotificationRequest | null): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* ActivitySmith API
|
|
6
|
-
* Send push notifications and Live Activities to your own devices via a single API key.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfPushNotificationRequest = instanceOfPushNotificationRequest;
|
|
17
|
-
exports.PushNotificationRequestFromJSON = PushNotificationRequestFromJSON;
|
|
18
|
-
exports.PushNotificationRequestFromJSONTyped = PushNotificationRequestFromJSONTyped;
|
|
19
|
-
exports.PushNotificationRequestToJSON = PushNotificationRequestToJSON;
|
|
20
|
-
/**
|
|
21
|
-
* Check if a given object implements the PushNotificationRequest interface.
|
|
22
|
-
*/
|
|
23
|
-
function instanceOfPushNotificationRequest(value) {
|
|
24
|
-
if (!('title' in value) || value['title'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function PushNotificationRequestFromJSON(json) {
|
|
29
|
-
return PushNotificationRequestFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function PushNotificationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'title': json['title'],
|
|
37
|
-
'message': json['message'] == null ? undefined : json['message'],
|
|
38
|
-
'subtitle': json['subtitle'] == null ? undefined : json['subtitle'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function PushNotificationRequestToJSON(value) {
|
|
42
|
-
if (value == null) {
|
|
43
|
-
return value;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
'title': value['title'],
|
|
47
|
-
'message': value['message'],
|
|
48
|
-
'subtitle': value['subtitle'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ActivitySmith API
|
|
3
|
-
* Send push notifications and Live Activities to your own devices via a single API key.
|
|
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 PushNotificationResponse
|
|
16
|
-
*/
|
|
17
|
-
export interface PushNotificationResponse {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {boolean}
|
|
21
|
-
* @memberof PushNotificationResponse
|
|
22
|
-
*/
|
|
23
|
-
success: boolean;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof PushNotificationResponse
|
|
28
|
-
*/
|
|
29
|
-
devicesNotified?: number;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof PushNotificationResponse
|
|
34
|
-
*/
|
|
35
|
-
usersNotified?: number;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {Date}
|
|
39
|
-
* @memberof PushNotificationResponse
|
|
40
|
-
*/
|
|
41
|
-
timestamp: Date;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the PushNotificationResponse interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfPushNotificationResponse(value: object): value is PushNotificationResponse;
|
|
47
|
-
export declare function PushNotificationResponseFromJSON(json: any): PushNotificationResponse;
|
|
48
|
-
export declare function PushNotificationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PushNotificationResponse;
|
|
49
|
-
export declare function PushNotificationResponseToJSON(value?: PushNotificationResponse | null): any;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* ActivitySmith API
|
|
6
|
-
* Send push notifications and Live Activities to your own devices via a single API key.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfPushNotificationResponse = instanceOfPushNotificationResponse;
|
|
17
|
-
exports.PushNotificationResponseFromJSON = PushNotificationResponseFromJSON;
|
|
18
|
-
exports.PushNotificationResponseFromJSONTyped = PushNotificationResponseFromJSONTyped;
|
|
19
|
-
exports.PushNotificationResponseToJSON = PushNotificationResponseToJSON;
|
|
20
|
-
/**
|
|
21
|
-
* Check if a given object implements the PushNotificationResponse interface.
|
|
22
|
-
*/
|
|
23
|
-
function instanceOfPushNotificationResponse(value) {
|
|
24
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
function PushNotificationResponseFromJSON(json) {
|
|
31
|
-
return PushNotificationResponseFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
function PushNotificationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (json == null) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'success': json['success'],
|
|
39
|
-
'devicesNotified': json['devices_notified'] == null ? undefined : json['devices_notified'],
|
|
40
|
-
'usersNotified': json['users_notified'] == null ? undefined : json['users_notified'],
|
|
41
|
-
'timestamp': (new Date(json['timestamp'])),
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function PushNotificationResponseToJSON(value) {
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'success': value['success'],
|
|
50
|
-
'devices_notified': value['devicesNotified'],
|
|
51
|
-
'users_notified': value['usersNotified'],
|
|
52
|
-
'timestamp': ((value['timestamp']).toISOString()),
|
|
53
|
-
};
|
|
54
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ActivitySmith API
|
|
3
|
-
* Send push notifications and Live Activities to your own devices via a single API key.
|
|
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 RateLimitError
|
|
16
|
-
*/
|
|
17
|
-
export interface RateLimitError {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof RateLimitError
|
|
22
|
-
*/
|
|
23
|
-
error: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof RateLimitError
|
|
28
|
-
*/
|
|
29
|
-
message: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the RateLimitError interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfRateLimitError(value: object): value is RateLimitError;
|
|
35
|
-
export declare function RateLimitErrorFromJSON(json: any): RateLimitError;
|
|
36
|
-
export declare function RateLimitErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RateLimitError;
|
|
37
|
-
export declare function RateLimitErrorToJSON(value?: RateLimitError | null): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* ActivitySmith API
|
|
6
|
-
* Send push notifications and Live Activities to your own devices via a single API key.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfRateLimitError = instanceOfRateLimitError;
|
|
17
|
-
exports.RateLimitErrorFromJSON = RateLimitErrorFromJSON;
|
|
18
|
-
exports.RateLimitErrorFromJSONTyped = RateLimitErrorFromJSONTyped;
|
|
19
|
-
exports.RateLimitErrorToJSON = RateLimitErrorToJSON;
|
|
20
|
-
/**
|
|
21
|
-
* Check if a given object implements the RateLimitError interface.
|
|
22
|
-
*/
|
|
23
|
-
function instanceOfRateLimitError(value) {
|
|
24
|
-
if (!('error' in value) || value['error'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
if (!('message' in value) || value['message'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
function RateLimitErrorFromJSON(json) {
|
|
31
|
-
return RateLimitErrorFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
function RateLimitErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (json == null) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'error': json['error'],
|
|
39
|
-
'message': json['message'],
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function RateLimitErrorToJSON(value) {
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'error': value['error'],
|
|
48
|
-
'message': value['message'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ActivitySmith API
|
|
3
|
-
* Send push notifications and Live Activities to your own devices via a single API key.
|
|
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 { LiveActivityLimitError } from './LiveActivityLimitError';
|
|
13
|
-
import type { RateLimitError } from './RateLimitError';
|
|
14
|
-
/**
|
|
15
|
-
* @type SendPushNotification429Response
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export type SendPushNotification429Response = LiveActivityLimitError | RateLimitError;
|
|
20
|
-
export declare function SendPushNotification429ResponseFromJSON(json: any): SendPushNotification429Response;
|
|
21
|
-
export declare function SendPushNotification429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendPushNotification429Response;
|
|
22
|
-
export declare function SendPushNotification429ResponseToJSON(value?: SendPushNotification429Response | null): any;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* ActivitySmith API
|
|
6
|
-
* Send push notifications and Live Activities to your own devices via a single API key.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SendPushNotification429ResponseFromJSON = SendPushNotification429ResponseFromJSON;
|
|
17
|
-
exports.SendPushNotification429ResponseFromJSONTyped = SendPushNotification429ResponseFromJSONTyped;
|
|
18
|
-
exports.SendPushNotification429ResponseToJSON = SendPushNotification429ResponseToJSON;
|
|
19
|
-
const LiveActivityLimitError_1 = require("./LiveActivityLimitError");
|
|
20
|
-
const RateLimitError_1 = require("./RateLimitError");
|
|
21
|
-
function SendPushNotification429ResponseFromJSON(json) {
|
|
22
|
-
return SendPushNotification429ResponseFromJSONTyped(json, false);
|
|
23
|
-
}
|
|
24
|
-
function SendPushNotification429ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
-
if (json == null) {
|
|
26
|
-
return json;
|
|
27
|
-
}
|
|
28
|
-
if ((0, LiveActivityLimitError_1.instanceOfLiveActivityLimitError)(json)) {
|
|
29
|
-
return (0, LiveActivityLimitError_1.LiveActivityLimitErrorFromJSONTyped)(json, true);
|
|
30
|
-
}
|
|
31
|
-
if ((0, RateLimitError_1.instanceOfRateLimitError)(json)) {
|
|
32
|
-
return (0, RateLimitError_1.RateLimitErrorFromJSONTyped)(json, true);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function SendPushNotification429ResponseToJSON(value) {
|
|
36
|
-
if (value == null) {
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
if ((0, LiveActivityLimitError_1.instanceOfLiveActivityLimitError)(value)) {
|
|
40
|
-
return (0, LiveActivityLimitError_1.LiveActivityLimitErrorToJSON)(value);
|
|
41
|
-
}
|
|
42
|
-
if ((0, RateLimitError_1.instanceOfRateLimitError)(value)) {
|
|
43
|
-
return (0, RateLimitError_1.RateLimitErrorToJSON)(value);
|
|
44
|
-
}
|
|
45
|
-
return {};
|
|
46
|
-
}
|