activitysmith 0.1.0
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/LICENSE +21 -0
- package/README.md +42 -0
- package/dist/generated/apis/LiveActivitiesApi.d.ts +57 -0
- package/dist/generated/apis/LiveActivitiesApi.js +129 -0
- package/dist/generated/apis/NotificationsApi.d.ts +31 -0
- package/dist/generated/apis/NotificationsApi.js +59 -0
- package/dist/generated/apis/index.d.ts +2 -0
- package/dist/generated/apis/index.js +20 -0
- package/dist/generated/index.d.ts +3 -0
- package/dist/generated/index.js +21 -0
- package/dist/generated/models/ContentStateEnd.d.ts +97 -0
- package/dist/generated/models/ContentStateEnd.js +89 -0
- package/dist/generated/models/ContentStateStart.d.ts +104 -0
- package/dist/generated/models/ContentStateStart.js +99 -0
- package/dist/generated/models/ContentStateUpdate.d.ts +91 -0
- package/dist/generated/models/ContentStateUpdate.js +87 -0
- package/dist/generated/models/LiveActivityEndRequest.d.ts +38 -0
- package/dist/generated/models/LiveActivityEndRequest.js +51 -0
- package/dist/generated/models/LiveActivityEndResponse.d.ts +55 -0
- package/dist/generated/models/LiveActivityEndResponse.js +58 -0
- package/dist/generated/models/LiveActivityLimitError.d.ts +49 -0
- package/dist/generated/models/LiveActivityLimitError.js +58 -0
- package/dist/generated/models/LiveActivityStartRequest.d.ts +32 -0
- package/dist/generated/models/LiveActivityStartRequest.js +47 -0
- package/dist/generated/models/LiveActivityStartResponse.d.ts +55 -0
- package/dist/generated/models/LiveActivityStartResponse.js +58 -0
- package/dist/generated/models/LiveActivityUpdateRequest.d.ts +38 -0
- package/dist/generated/models/LiveActivityUpdateRequest.js +51 -0
- package/dist/generated/models/LiveActivityUpdateResponse.d.ts +55 -0
- package/dist/generated/models/LiveActivityUpdateResponse.js +58 -0
- package/dist/generated/models/PushNotificationRequest.d.ts +43 -0
- package/dist/generated/models/PushNotificationRequest.js +50 -0
- package/dist/generated/models/PushNotificationResponse.d.ts +49 -0
- package/dist/generated/models/PushNotificationResponse.js +54 -0
- package/dist/generated/models/RateLimitError.d.ts +37 -0
- package/dist/generated/models/RateLimitError.js +50 -0
- package/dist/generated/models/SendPushNotification429Response.d.ts +22 -0
- package/dist/generated/models/SendPushNotification429Response.js +46 -0
- package/dist/generated/models/index.d.ts +14 -0
- package/dist/generated/models/index.js +32 -0
- package/dist/generated/runtime.d.ts +181 -0
- package/dist/generated/runtime.js +329 -0
- package/package.json +40 -0
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
* Start payload requires title, number_of_steps, current_step, and type.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ContentStateStart
|
|
16
|
+
*/
|
|
17
|
+
export interface ContentStateStart {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ContentStateStart
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ContentStateStart
|
|
28
|
+
*/
|
|
29
|
+
subtitle?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ContentStateStart
|
|
34
|
+
*/
|
|
35
|
+
numberOfSteps: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ContentStateStart
|
|
40
|
+
*/
|
|
41
|
+
currentStep: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ContentStateStart
|
|
46
|
+
*/
|
|
47
|
+
type: ContentStateStartTypeEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Optional. Accent color for the Live Activity. Defaults to blue.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ContentStateStart
|
|
52
|
+
*/
|
|
53
|
+
color?: ContentStateStartColorEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Optional. Overrides color for the current step.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ContentStateStart
|
|
58
|
+
*/
|
|
59
|
+
stepColor?: ContentStateStartStepColorEnum;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const ContentStateStartTypeEnum: {
|
|
65
|
+
readonly SegmentedProgress: "segmented_progress";
|
|
66
|
+
};
|
|
67
|
+
export type ContentStateStartTypeEnum = typeof ContentStateStartTypeEnum[keyof typeof ContentStateStartTypeEnum];
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const ContentStateStartColorEnum: {
|
|
72
|
+
readonly Lime: "lime";
|
|
73
|
+
readonly Green: "green";
|
|
74
|
+
readonly Cyan: "cyan";
|
|
75
|
+
readonly Blue: "blue";
|
|
76
|
+
readonly Purple: "purple";
|
|
77
|
+
readonly Magenta: "magenta";
|
|
78
|
+
readonly Red: "red";
|
|
79
|
+
readonly Orange: "orange";
|
|
80
|
+
readonly Yellow: "yellow";
|
|
81
|
+
};
|
|
82
|
+
export type ContentStateStartColorEnum = typeof ContentStateStartColorEnum[keyof typeof ContentStateStartColorEnum];
|
|
83
|
+
/**
|
|
84
|
+
* @export
|
|
85
|
+
*/
|
|
86
|
+
export declare const ContentStateStartStepColorEnum: {
|
|
87
|
+
readonly Lime: "lime";
|
|
88
|
+
readonly Green: "green";
|
|
89
|
+
readonly Cyan: "cyan";
|
|
90
|
+
readonly Blue: "blue";
|
|
91
|
+
readonly Purple: "purple";
|
|
92
|
+
readonly Magenta: "magenta";
|
|
93
|
+
readonly Red: "red";
|
|
94
|
+
readonly Orange: "orange";
|
|
95
|
+
readonly Yellow: "yellow";
|
|
96
|
+
};
|
|
97
|
+
export type ContentStateStartStepColorEnum = typeof ContentStateStartStepColorEnum[keyof typeof ContentStateStartStepColorEnum];
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the ContentStateStart interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfContentStateStart(value: object): value is ContentStateStart;
|
|
102
|
+
export declare function ContentStateStartFromJSON(json: any): ContentStateStart;
|
|
103
|
+
export declare function ContentStateStartFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentStateStart;
|
|
104
|
+
export declare function ContentStateStartToJSON(value?: ContentStateStart | null): any;
|
|
@@ -0,0 +1,99 @@
|
|
|
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.ContentStateStartStepColorEnum = exports.ContentStateStartColorEnum = exports.ContentStateStartTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfContentStateStart = instanceOfContentStateStart;
|
|
18
|
+
exports.ContentStateStartFromJSON = ContentStateStartFromJSON;
|
|
19
|
+
exports.ContentStateStartFromJSONTyped = ContentStateStartFromJSONTyped;
|
|
20
|
+
exports.ContentStateStartToJSON = ContentStateStartToJSON;
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
exports.ContentStateStartTypeEnum = {
|
|
25
|
+
SegmentedProgress: 'segmented_progress'
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
exports.ContentStateStartColorEnum = {
|
|
31
|
+
Lime: 'lime',
|
|
32
|
+
Green: 'green',
|
|
33
|
+
Cyan: 'cyan',
|
|
34
|
+
Blue: 'blue',
|
|
35
|
+
Purple: 'purple',
|
|
36
|
+
Magenta: 'magenta',
|
|
37
|
+
Red: 'red',
|
|
38
|
+
Orange: 'orange',
|
|
39
|
+
Yellow: 'yellow'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
exports.ContentStateStartStepColorEnum = {
|
|
45
|
+
Lime: 'lime',
|
|
46
|
+
Green: 'green',
|
|
47
|
+
Cyan: 'cyan',
|
|
48
|
+
Blue: 'blue',
|
|
49
|
+
Purple: 'purple',
|
|
50
|
+
Magenta: 'magenta',
|
|
51
|
+
Red: 'red',
|
|
52
|
+
Orange: 'orange',
|
|
53
|
+
Yellow: 'yellow'
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ContentStateStart interface.
|
|
57
|
+
*/
|
|
58
|
+
function instanceOfContentStateStart(value) {
|
|
59
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('numberOfSteps' in value) || value['numberOfSteps'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('currentStep' in value) || value['currentStep'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
function ContentStateStartFromJSON(json) {
|
|
70
|
+
return ContentStateStartFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function ContentStateStartFromJSONTyped(json, ignoreDiscriminator) {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'title': json['title'],
|
|
78
|
+
'subtitle': json['subtitle'] == null ? undefined : json['subtitle'],
|
|
79
|
+
'numberOfSteps': json['number_of_steps'],
|
|
80
|
+
'currentStep': json['current_step'],
|
|
81
|
+
'type': json['type'],
|
|
82
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
83
|
+
'stepColor': json['step_color'] == null ? undefined : json['step_color'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function ContentStateStartToJSON(value) {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
'title': value['title'],
|
|
92
|
+
'subtitle': value['subtitle'],
|
|
93
|
+
'number_of_steps': value['numberOfSteps'],
|
|
94
|
+
'current_step': value['currentStep'],
|
|
95
|
+
'type': value['type'],
|
|
96
|
+
'color': value['color'],
|
|
97
|
+
'step_color': value['stepColor'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
* Update payload. Required fields are title and current_step. number_of_steps is optional.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ContentStateUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface ContentStateUpdate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ContentStateUpdate
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ContentStateUpdate
|
|
28
|
+
*/
|
|
29
|
+
subtitle?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ContentStateUpdate
|
|
34
|
+
*/
|
|
35
|
+
numberOfSteps?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ContentStateUpdate
|
|
40
|
+
*/
|
|
41
|
+
currentStep: number;
|
|
42
|
+
/**
|
|
43
|
+
* Optional. Accent color for the Live Activity. Defaults to blue.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ContentStateUpdate
|
|
46
|
+
*/
|
|
47
|
+
color?: ContentStateUpdateColorEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Optional. Overrides color for the current step.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ContentStateUpdate
|
|
52
|
+
*/
|
|
53
|
+
stepColor?: ContentStateUpdateStepColorEnum;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const ContentStateUpdateColorEnum: {
|
|
59
|
+
readonly Lime: "lime";
|
|
60
|
+
readonly Green: "green";
|
|
61
|
+
readonly Cyan: "cyan";
|
|
62
|
+
readonly Blue: "blue";
|
|
63
|
+
readonly Purple: "purple";
|
|
64
|
+
readonly Magenta: "magenta";
|
|
65
|
+
readonly Red: "red";
|
|
66
|
+
readonly Orange: "orange";
|
|
67
|
+
readonly Yellow: "yellow";
|
|
68
|
+
};
|
|
69
|
+
export type ContentStateUpdateColorEnum = typeof ContentStateUpdateColorEnum[keyof typeof ContentStateUpdateColorEnum];
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export declare const ContentStateUpdateStepColorEnum: {
|
|
74
|
+
readonly Lime: "lime";
|
|
75
|
+
readonly Green: "green";
|
|
76
|
+
readonly Cyan: "cyan";
|
|
77
|
+
readonly Blue: "blue";
|
|
78
|
+
readonly Purple: "purple";
|
|
79
|
+
readonly Magenta: "magenta";
|
|
80
|
+
readonly Red: "red";
|
|
81
|
+
readonly Orange: "orange";
|
|
82
|
+
readonly Yellow: "yellow";
|
|
83
|
+
};
|
|
84
|
+
export type ContentStateUpdateStepColorEnum = typeof ContentStateUpdateStepColorEnum[keyof typeof ContentStateUpdateStepColorEnum];
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the ContentStateUpdate interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfContentStateUpdate(value: object): value is ContentStateUpdate;
|
|
89
|
+
export declare function ContentStateUpdateFromJSON(json: any): ContentStateUpdate;
|
|
90
|
+
export declare function ContentStateUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentStateUpdate;
|
|
91
|
+
export declare function ContentStateUpdateToJSON(value?: ContentStateUpdate | null): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
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.ContentStateUpdateStepColorEnum = exports.ContentStateUpdateColorEnum = void 0;
|
|
17
|
+
exports.instanceOfContentStateUpdate = instanceOfContentStateUpdate;
|
|
18
|
+
exports.ContentStateUpdateFromJSON = ContentStateUpdateFromJSON;
|
|
19
|
+
exports.ContentStateUpdateFromJSONTyped = ContentStateUpdateFromJSONTyped;
|
|
20
|
+
exports.ContentStateUpdateToJSON = ContentStateUpdateToJSON;
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
exports.ContentStateUpdateColorEnum = {
|
|
25
|
+
Lime: 'lime',
|
|
26
|
+
Green: 'green',
|
|
27
|
+
Cyan: 'cyan',
|
|
28
|
+
Blue: 'blue',
|
|
29
|
+
Purple: 'purple',
|
|
30
|
+
Magenta: 'magenta',
|
|
31
|
+
Red: 'red',
|
|
32
|
+
Orange: 'orange',
|
|
33
|
+
Yellow: 'yellow'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.ContentStateUpdateStepColorEnum = {
|
|
39
|
+
Lime: 'lime',
|
|
40
|
+
Green: 'green',
|
|
41
|
+
Cyan: 'cyan',
|
|
42
|
+
Blue: 'blue',
|
|
43
|
+
Purple: 'purple',
|
|
44
|
+
Magenta: 'magenta',
|
|
45
|
+
Red: 'red',
|
|
46
|
+
Orange: 'orange',
|
|
47
|
+
Yellow: 'yellow'
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ContentStateUpdate interface.
|
|
51
|
+
*/
|
|
52
|
+
function instanceOfContentStateUpdate(value) {
|
|
53
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('currentStep' in value) || value['currentStep'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
function ContentStateUpdateFromJSON(json) {
|
|
60
|
+
return ContentStateUpdateFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function ContentStateUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'title': json['title'],
|
|
68
|
+
'subtitle': json['subtitle'] == null ? undefined : json['subtitle'],
|
|
69
|
+
'numberOfSteps': json['number_of_steps'] == null ? undefined : json['number_of_steps'],
|
|
70
|
+
'currentStep': json['current_step'],
|
|
71
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
72
|
+
'stepColor': json['step_color'] == null ? undefined : json['step_color'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function ContentStateUpdateToJSON(value) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'title': value['title'],
|
|
81
|
+
'subtitle': value['subtitle'],
|
|
82
|
+
'number_of_steps': value['numberOfSteps'],
|
|
83
|
+
'current_step': value['currentStep'],
|
|
84
|
+
'color': value['color'],
|
|
85
|
+
'step_color': value['stepColor'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { ContentStateEnd } from './ContentStateEnd';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LiveActivityEndRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface LiveActivityEndRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof LiveActivityEndRequest
|
|
23
|
+
*/
|
|
24
|
+
activityId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ContentStateEnd}
|
|
28
|
+
* @memberof LiveActivityEndRequest
|
|
29
|
+
*/
|
|
30
|
+
contentState: ContentStateEnd;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the LiveActivityEndRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfLiveActivityEndRequest(value: object): value is LiveActivityEndRequest;
|
|
36
|
+
export declare function LiveActivityEndRequestFromJSON(json: any): LiveActivityEndRequest;
|
|
37
|
+
export declare function LiveActivityEndRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveActivityEndRequest;
|
|
38
|
+
export declare function LiveActivityEndRequestToJSON(value?: LiveActivityEndRequest | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfLiveActivityEndRequest = instanceOfLiveActivityEndRequest;
|
|
17
|
+
exports.LiveActivityEndRequestFromJSON = LiveActivityEndRequestFromJSON;
|
|
18
|
+
exports.LiveActivityEndRequestFromJSONTyped = LiveActivityEndRequestFromJSONTyped;
|
|
19
|
+
exports.LiveActivityEndRequestToJSON = LiveActivityEndRequestToJSON;
|
|
20
|
+
const ContentStateEnd_1 = require("./ContentStateEnd");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LiveActivityEndRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLiveActivityEndRequest(value) {
|
|
25
|
+
if (!('activityId' in value) || value['activityId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('contentState' in value) || value['contentState'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function LiveActivityEndRequestFromJSON(json) {
|
|
32
|
+
return LiveActivityEndRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function LiveActivityEndRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'activityId': json['activity_id'],
|
|
40
|
+
'contentState': (0, ContentStateEnd_1.ContentStateEndFromJSON)(json['content_state']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function LiveActivityEndRequestToJSON(value) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'activity_id': value['activityId'],
|
|
49
|
+
'content_state': (0, ContentStateEnd_1.ContentStateEndToJSON)(value['contentState']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 LiveActivityEndResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface LiveActivityEndResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof LiveActivityEndResponse
|
|
22
|
+
*/
|
|
23
|
+
success: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LiveActivityEndResponse
|
|
28
|
+
*/
|
|
29
|
+
activityId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LiveActivityEndResponse
|
|
34
|
+
*/
|
|
35
|
+
devicesQueued?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof LiveActivityEndResponse
|
|
40
|
+
*/
|
|
41
|
+
devicesNotified?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof LiveActivityEndResponse
|
|
46
|
+
*/
|
|
47
|
+
timestamp: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the LiveActivityEndResponse interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfLiveActivityEndResponse(value: object): value is LiveActivityEndResponse;
|
|
53
|
+
export declare function LiveActivityEndResponseFromJSON(json: any): LiveActivityEndResponse;
|
|
54
|
+
export declare function LiveActivityEndResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveActivityEndResponse;
|
|
55
|
+
export declare function LiveActivityEndResponseToJSON(value?: LiveActivityEndResponse | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfLiveActivityEndResponse = instanceOfLiveActivityEndResponse;
|
|
17
|
+
exports.LiveActivityEndResponseFromJSON = LiveActivityEndResponseFromJSON;
|
|
18
|
+
exports.LiveActivityEndResponseFromJSONTyped = LiveActivityEndResponseFromJSONTyped;
|
|
19
|
+
exports.LiveActivityEndResponseToJSON = LiveActivityEndResponseToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the LiveActivityEndResponse interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfLiveActivityEndResponse(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 LiveActivityEndResponseFromJSON(json) {
|
|
33
|
+
return LiveActivityEndResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function LiveActivityEndResponseFromJSONTyped(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 LiveActivityEndResponseToJSON(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
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 LiveActivityLimitError
|
|
16
|
+
*/
|
|
17
|
+
export interface LiveActivityLimitError {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LiveActivityLimitError
|
|
22
|
+
*/
|
|
23
|
+
error: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LiveActivityLimitError
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LiveActivityLimitError
|
|
34
|
+
*/
|
|
35
|
+
limit: number;
|
|
36
|
+
/**
|
|
37
|
+
* Current number of active Live Activities.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof LiveActivityLimitError
|
|
40
|
+
*/
|
|
41
|
+
active: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the LiveActivityLimitError interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfLiveActivityLimitError(value: object): value is LiveActivityLimitError;
|
|
47
|
+
export declare function LiveActivityLimitErrorFromJSON(json: any): LiveActivityLimitError;
|
|
48
|
+
export declare function LiveActivityLimitErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): LiveActivityLimitError;
|
|
49
|
+
export declare function LiveActivityLimitErrorToJSON(value?: LiveActivityLimitError | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfLiveActivityLimitError = instanceOfLiveActivityLimitError;
|
|
17
|
+
exports.LiveActivityLimitErrorFromJSON = LiveActivityLimitErrorFromJSON;
|
|
18
|
+
exports.LiveActivityLimitErrorFromJSONTyped = LiveActivityLimitErrorFromJSONTyped;
|
|
19
|
+
exports.LiveActivityLimitErrorToJSON = LiveActivityLimitErrorToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the LiveActivityLimitError interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfLiveActivityLimitError(value) {
|
|
24
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function LiveActivityLimitErrorFromJSON(json) {
|
|
35
|
+
return LiveActivityLimitErrorFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function LiveActivityLimitErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'error': json['error'],
|
|
43
|
+
'message': json['message'],
|
|
44
|
+
'limit': json['limit'],
|
|
45
|
+
'active': json['active'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function LiveActivityLimitErrorToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'error': value['error'],
|
|
54
|
+
'message': value['message'],
|
|
55
|
+
'limit': value['limit'],
|
|
56
|
+
'active': value['active'],
|
|
57
|
+
};
|
|
58
|
+
}
|