activitysmith 0.1.2 → 0.1.4

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 (39) hide show
  1. package/README.md +15 -13
  2. package/dist/generated/apis/LiveActivitiesApi.d.ts +2 -2
  3. package/dist/generated/apis/LiveActivitiesApi.js +2 -2
  4. package/dist/generated/apis/PushNotificationsApi.d.ts +2 -2
  5. package/dist/generated/apis/PushNotificationsApi.js +2 -2
  6. package/dist/generated/models/index.d.ts +163 -0
  7. package/dist/src/ActivitySmith.d.ts +8 -2
  8. package/dist/src/ActivitySmith.js +14 -2
  9. package/package.json +1 -1
  10. package/dist/generated/apis/NotificationsApi.d.ts +0 -31
  11. package/dist/generated/apis/NotificationsApi.js +0 -59
  12. package/dist/generated/models/ContentStateEnd.d.ts +0 -97
  13. package/dist/generated/models/ContentStateEnd.js +0 -89
  14. package/dist/generated/models/ContentStateStart.d.ts +0 -104
  15. package/dist/generated/models/ContentStateStart.js +0 -99
  16. package/dist/generated/models/ContentStateUpdate.d.ts +0 -91
  17. package/dist/generated/models/ContentStateUpdate.js +0 -87
  18. package/dist/generated/models/LiveActivityEndRequest.d.ts +0 -38
  19. package/dist/generated/models/LiveActivityEndRequest.js +0 -51
  20. package/dist/generated/models/LiveActivityEndResponse.d.ts +0 -55
  21. package/dist/generated/models/LiveActivityEndResponse.js +0 -58
  22. package/dist/generated/models/LiveActivityLimitError.d.ts +0 -49
  23. package/dist/generated/models/LiveActivityLimitError.js +0 -58
  24. package/dist/generated/models/LiveActivityStartRequest.d.ts +0 -32
  25. package/dist/generated/models/LiveActivityStartRequest.js +0 -47
  26. package/dist/generated/models/LiveActivityStartResponse.d.ts +0 -55
  27. package/dist/generated/models/LiveActivityStartResponse.js +0 -58
  28. package/dist/generated/models/LiveActivityUpdateRequest.d.ts +0 -38
  29. package/dist/generated/models/LiveActivityUpdateRequest.js +0 -51
  30. package/dist/generated/models/LiveActivityUpdateResponse.d.ts +0 -55
  31. package/dist/generated/models/LiveActivityUpdateResponse.js +0 -58
  32. package/dist/generated/models/PushNotificationRequest.d.ts +0 -43
  33. package/dist/generated/models/PushNotificationRequest.js +0 -50
  34. package/dist/generated/models/PushNotificationResponse.d.ts +0 -49
  35. package/dist/generated/models/PushNotificationResponse.js +0 -54
  36. package/dist/generated/models/RateLimitError.d.ts +0 -37
  37. package/dist/generated/models/RateLimitError.js +0 -50
  38. package/dist/generated/models/SendPushNotification429Response.d.ts +0 -22
  39. package/dist/generated/models/SendPushNotification429Response.js +0 -46
@@ -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
- }