@onesignal/node-onesignal 5.7.0 → 5.9.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.
Files changed (92) hide show
  1. package/README.md +9 -0
  2. package/dist/apis/DefaultApi.js +2282 -4372
  3. package/dist/apis/baseapi.js +11 -30
  4. package/dist/apis/exception.d.ts +1 -0
  5. package/dist/apis/exception.js +52 -26
  6. package/dist/auth/auth.js +17 -83
  7. package/dist/configuration.js +9 -9
  8. package/dist/errors.d.ts +8 -0
  9. package/dist/errors.js +11 -0
  10. package/dist/helpers.d.ts +12 -0
  11. package/dist/helpers.js +79 -0
  12. package/dist/http/http.js +53 -132
  13. package/dist/http/isomorphic-fetch.js +15 -18
  14. package/dist/index.d.ts +2 -0
  15. package/dist/index.js +2 -0
  16. package/dist/middleware.js +8 -9
  17. package/dist/models/ApiKeyToken.js +45 -46
  18. package/dist/models/ApiKeyTokensListResponse.js +15 -16
  19. package/dist/models/App.js +213 -214
  20. package/dist/models/BasicNotification.js +711 -712
  21. package/dist/models/BasicNotificationAllOf.js +627 -628
  22. package/dist/models/BasicNotificationAllOfAndroidBackgroundLayout.js +27 -28
  23. package/dist/models/Button.js +27 -28
  24. package/dist/models/CopyTemplateRequest.js +15 -16
  25. package/dist/models/CreateApiKeyRequest.js +27 -28
  26. package/dist/models/CreateApiKeyResponse.js +21 -22
  27. package/dist/models/CreateNotificationSuccessResponse.js +27 -28
  28. package/dist/models/CreateSegmentConflictResponse.js +21 -22
  29. package/dist/models/CreateSegmentSuccessResponse.js +21 -22
  30. package/dist/models/CreateTemplateRequest.js +75 -76
  31. package/dist/models/CreateUserConflictResponse.js +15 -16
  32. package/dist/models/CreateUserConflictResponseErrorsInner.js +27 -28
  33. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +15 -16
  34. package/dist/models/CustomEvent.js +39 -40
  35. package/dist/models/CustomEventsRequest.js +15 -16
  36. package/dist/models/DeliveryData.js +39 -40
  37. package/dist/models/ExportEventsSuccessResponse.js +15 -16
  38. package/dist/models/ExportSubscriptionsRequestBody.js +27 -28
  39. package/dist/models/ExportSubscriptionsSuccessResponse.js +15 -16
  40. package/dist/models/Filter.js +57 -58
  41. package/dist/models/FilterExpression.js +63 -64
  42. package/dist/models/GenericError.js +27 -28
  43. package/dist/models/GenericSuccessBoolResponse.js +15 -16
  44. package/dist/models/GetNotificationHistoryRequestBody.js +27 -28
  45. package/dist/models/GetSegmentsSuccessResponse.js +33 -34
  46. package/dist/models/LanguageStringMap.js +267 -268
  47. package/dist/models/Notification.js +717 -718
  48. package/dist/models/NotificationAllOf.js +15 -16
  49. package/dist/models/NotificationHistorySuccessResponse.js +21 -22
  50. package/dist/models/NotificationSlice.js +33 -34
  51. package/dist/models/NotificationTarget.js +93 -94
  52. package/dist/models/NotificationWithMeta.js +789 -790
  53. package/dist/models/NotificationWithMetaAllOf.js +93 -94
  54. package/dist/models/ObjectSerializer.js +111 -115
  55. package/dist/models/Operator.js +15 -16
  56. package/dist/models/OutcomeData.js +27 -28
  57. package/dist/models/OutcomesData.js +15 -16
  58. package/dist/models/PlatformDeliveryData.js +57 -58
  59. package/dist/models/PlatformDeliveryDataEmailAllOf.js +51 -52
  60. package/dist/models/PlatformDeliveryDataSmsAllOf.js +27 -28
  61. package/dist/models/PropertiesBody.js +15 -16
  62. package/dist/models/PropertiesDeltas.js +27 -28
  63. package/dist/models/PropertiesObject.js +75 -76
  64. package/dist/models/Purchase.js +33 -34
  65. package/dist/models/RateLimitError.js +21 -22
  66. package/dist/models/Segment.js +27 -28
  67. package/dist/models/SegmentData.js +51 -52
  68. package/dist/models/SegmentNotificationTarget.js +21 -22
  69. package/dist/models/StartLiveActivityRequest.js +105 -106
  70. package/dist/models/StartLiveActivitySuccessResponse.js +15 -16
  71. package/dist/models/Subscription.js +111 -112
  72. package/dist/models/SubscriptionBody.js +15 -16
  73. package/dist/models/SubscriptionNotificationTarget.js +81 -82
  74. package/dist/models/TemplateResource.js +45 -46
  75. package/dist/models/TemplatesListResponse.js +15 -16
  76. package/dist/models/TransferSubscriptionRequestBody.js +15 -16
  77. package/dist/models/UpdateApiKeyRequest.js +27 -28
  78. package/dist/models/UpdateLiveActivityRequest.js +63 -64
  79. package/dist/models/UpdateLiveActivitySuccessResponse.js +15 -16
  80. package/dist/models/UpdateTemplateRequest.js +69 -70
  81. package/dist/models/UpdateUserRequest.js +27 -28
  82. package/dist/models/User.js +27 -28
  83. package/dist/models/UserIdentityBody.js +15 -16
  84. package/dist/models/WebButton.js +33 -34
  85. package/dist/rxjsStub.js +8 -9
  86. package/dist/servers.js +14 -15
  87. package/dist/types/ObjectParamAPI.js +92 -94
  88. package/dist/types/ObservableAPI.js +534 -931
  89. package/dist/types/PromiseAPI.d.ts +4 -0
  90. package/dist/types/PromiseAPI.js +141 -137
  91. package/dist/util.js +2 -2
  92. package/package.json +4 -2
@@ -1,22 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotificationAllOf = void 0;
4
- var NotificationAllOf = (function () {
5
- function NotificationAllOf() {
6
- }
7
- NotificationAllOf.getAttributeTypeMap = function () {
4
+ class NotificationAllOf {
5
+ static getAttributeTypeMap() {
8
6
  return NotificationAllOf.attributeTypeMap;
9
- };
10
- NotificationAllOf.discriminator = undefined;
11
- NotificationAllOf.attributeTypeMap = [
12
- {
13
- "name": "send_after",
14
- "baseName": "send_after",
15
- "type": "string",
16
- "format": "date-time"
17
- }
18
- ];
19
- return NotificationAllOf;
20
- }());
7
+ }
8
+ constructor() {
9
+ }
10
+ }
21
11
  exports.NotificationAllOf = NotificationAllOf;
12
+ NotificationAllOf.discriminator = undefined;
13
+ NotificationAllOf.attributeTypeMap = [
14
+ {
15
+ "name": "send_after",
16
+ "baseName": "send_after",
17
+ "type": "string",
18
+ "format": "date-time"
19
+ }
20
+ ];
22
21
  //# sourceMappingURL=NotificationAllOf.js.map
@@ -1,28 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotificationHistorySuccessResponse = void 0;
4
- var NotificationHistorySuccessResponse = (function () {
5
- function NotificationHistorySuccessResponse() {
6
- }
7
- NotificationHistorySuccessResponse.getAttributeTypeMap = function () {
4
+ class NotificationHistorySuccessResponse {
5
+ static getAttributeTypeMap() {
8
6
  return NotificationHistorySuccessResponse.attributeTypeMap;
9
- };
10
- NotificationHistorySuccessResponse.discriminator = undefined;
11
- NotificationHistorySuccessResponse.attributeTypeMap = [
12
- {
13
- "name": "success",
14
- "baseName": "success",
15
- "type": "boolean",
16
- "format": ""
17
- },
18
- {
19
- "name": "destination_url",
20
- "baseName": "destination_url",
21
- "type": "string",
22
- "format": ""
23
- }
24
- ];
25
- return NotificationHistorySuccessResponse;
26
- }());
7
+ }
8
+ constructor() {
9
+ }
10
+ }
27
11
  exports.NotificationHistorySuccessResponse = NotificationHistorySuccessResponse;
12
+ NotificationHistorySuccessResponse.discriminator = undefined;
13
+ NotificationHistorySuccessResponse.attributeTypeMap = [
14
+ {
15
+ "name": "success",
16
+ "baseName": "success",
17
+ "type": "boolean",
18
+ "format": ""
19
+ },
20
+ {
21
+ "name": "destination_url",
22
+ "baseName": "destination_url",
23
+ "type": "string",
24
+ "format": ""
25
+ }
26
+ ];
28
27
  //# sourceMappingURL=NotificationHistorySuccessResponse.js.map
@@ -1,40 +1,39 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotificationSlice = void 0;
4
- var NotificationSlice = (function () {
5
- function NotificationSlice() {
6
- }
7
- NotificationSlice.getAttributeTypeMap = function () {
4
+ class NotificationSlice {
5
+ static getAttributeTypeMap() {
8
6
  return NotificationSlice.attributeTypeMap;
9
- };
10
- NotificationSlice.discriminator = undefined;
11
- NotificationSlice.attributeTypeMap = [
12
- {
13
- "name": "total_count",
14
- "baseName": "total_count",
15
- "type": "number",
16
- "format": ""
17
- },
18
- {
19
- "name": "offset",
20
- "baseName": "offset",
21
- "type": "number",
22
- "format": ""
23
- },
24
- {
25
- "name": "limit",
26
- "baseName": "limit",
27
- "type": "number",
28
- "format": ""
29
- },
30
- {
31
- "name": "notifications",
32
- "baseName": "notifications",
33
- "type": "Array<NotificationWithMeta>",
34
- "format": ""
35
- }
36
- ];
37
- return NotificationSlice;
38
- }());
7
+ }
8
+ constructor() {
9
+ }
10
+ }
39
11
  exports.NotificationSlice = NotificationSlice;
12
+ NotificationSlice.discriminator = undefined;
13
+ NotificationSlice.attributeTypeMap = [
14
+ {
15
+ "name": "total_count",
16
+ "baseName": "total_count",
17
+ "type": "number",
18
+ "format": ""
19
+ },
20
+ {
21
+ "name": "offset",
22
+ "baseName": "offset",
23
+ "type": "number",
24
+ "format": ""
25
+ },
26
+ {
27
+ "name": "limit",
28
+ "baseName": "limit",
29
+ "type": "number",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "notifications",
34
+ "baseName": "notifications",
35
+ "type": "Array<NotificationWithMeta>",
36
+ "format": ""
37
+ }
38
+ ];
40
39
  //# sourceMappingURL=NotificationSlice.js.map
@@ -1,100 +1,99 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotificationTarget = void 0;
4
- var NotificationTarget = (function () {
5
- function NotificationTarget() {
6
- }
7
- NotificationTarget.getAttributeTypeMap = function () {
4
+ class NotificationTarget {
5
+ static getAttributeTypeMap() {
8
6
  return NotificationTarget.attributeTypeMap;
9
- };
10
- NotificationTarget.discriminator = undefined;
11
- NotificationTarget.attributeTypeMap = [
12
- {
13
- "name": "included_segments",
14
- "baseName": "included_segments",
15
- "type": "Array<string>",
16
- "format": ""
17
- },
18
- {
19
- "name": "excluded_segments",
20
- "baseName": "excluded_segments",
21
- "type": "Array<string>",
22
- "format": ""
23
- },
24
- {
25
- "name": "include_subscription_ids",
26
- "baseName": "include_subscription_ids",
27
- "type": "Array<string>",
28
- "format": ""
29
- },
30
- {
31
- "name": "include_email_tokens",
32
- "baseName": "include_email_tokens",
33
- "type": "Array<string>",
34
- "format": ""
35
- },
36
- {
37
- "name": "email_to",
38
- "baseName": "email_to",
39
- "type": "Array<string>",
40
- "format": ""
41
- },
42
- {
43
- "name": "include_phone_numbers",
44
- "baseName": "include_phone_numbers",
45
- "type": "Array<string>",
46
- "format": ""
47
- },
48
- {
49
- "name": "include_ios_tokens",
50
- "baseName": "include_ios_tokens",
51
- "type": "Array<string>",
52
- "format": ""
53
- },
54
- {
55
- "name": "include_wp_wns_uris",
56
- "baseName": "include_wp_wns_uris",
57
- "type": "Array<string>",
58
- "format": ""
59
- },
60
- {
61
- "name": "include_amazon_reg_ids",
62
- "baseName": "include_amazon_reg_ids",
63
- "type": "Array<string>",
64
- "format": ""
65
- },
66
- {
67
- "name": "include_chrome_reg_ids",
68
- "baseName": "include_chrome_reg_ids",
69
- "type": "Array<string>",
70
- "format": ""
71
- },
72
- {
73
- "name": "include_chrome_web_reg_ids",
74
- "baseName": "include_chrome_web_reg_ids",
75
- "type": "Array<string>",
76
- "format": ""
77
- },
78
- {
79
- "name": "include_android_reg_ids",
80
- "baseName": "include_android_reg_ids",
81
- "type": "Array<string>",
82
- "format": ""
83
- },
84
- {
85
- "name": "include_aliases",
86
- "baseName": "include_aliases",
87
- "type": "{ [key: string]: Array<string>; }",
88
- "format": ""
89
- },
90
- {
91
- "name": "target_channel",
92
- "baseName": "target_channel",
93
- "type": "NotificationTargetTargetChannelEnum",
94
- "format": ""
95
- }
96
- ];
97
- return NotificationTarget;
98
- }());
7
+ }
8
+ constructor() {
9
+ }
10
+ }
99
11
  exports.NotificationTarget = NotificationTarget;
12
+ NotificationTarget.discriminator = undefined;
13
+ NotificationTarget.attributeTypeMap = [
14
+ {
15
+ "name": "included_segments",
16
+ "baseName": "included_segments",
17
+ "type": "Array<string>",
18
+ "format": ""
19
+ },
20
+ {
21
+ "name": "excluded_segments",
22
+ "baseName": "excluded_segments",
23
+ "type": "Array<string>",
24
+ "format": ""
25
+ },
26
+ {
27
+ "name": "include_subscription_ids",
28
+ "baseName": "include_subscription_ids",
29
+ "type": "Array<string>",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "include_email_tokens",
34
+ "baseName": "include_email_tokens",
35
+ "type": "Array<string>",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "email_to",
40
+ "baseName": "email_to",
41
+ "type": "Array<string>",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "include_phone_numbers",
46
+ "baseName": "include_phone_numbers",
47
+ "type": "Array<string>",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "include_ios_tokens",
52
+ "baseName": "include_ios_tokens",
53
+ "type": "Array<string>",
54
+ "format": ""
55
+ },
56
+ {
57
+ "name": "include_wp_wns_uris",
58
+ "baseName": "include_wp_wns_uris",
59
+ "type": "Array<string>",
60
+ "format": ""
61
+ },
62
+ {
63
+ "name": "include_amazon_reg_ids",
64
+ "baseName": "include_amazon_reg_ids",
65
+ "type": "Array<string>",
66
+ "format": ""
67
+ },
68
+ {
69
+ "name": "include_chrome_reg_ids",
70
+ "baseName": "include_chrome_reg_ids",
71
+ "type": "Array<string>",
72
+ "format": ""
73
+ },
74
+ {
75
+ "name": "include_chrome_web_reg_ids",
76
+ "baseName": "include_chrome_web_reg_ids",
77
+ "type": "Array<string>",
78
+ "format": ""
79
+ },
80
+ {
81
+ "name": "include_android_reg_ids",
82
+ "baseName": "include_android_reg_ids",
83
+ "type": "Array<string>",
84
+ "format": ""
85
+ },
86
+ {
87
+ "name": "include_aliases",
88
+ "baseName": "include_aliases",
89
+ "type": "{ [key: string]: Array<string>; }",
90
+ "format": ""
91
+ },
92
+ {
93
+ "name": "target_channel",
94
+ "baseName": "target_channel",
95
+ "type": "NotificationTargetTargetChannelEnum",
96
+ "format": ""
97
+ }
98
+ ];
100
99
  //# sourceMappingURL=NotificationTarget.js.map