@onesignal/node-onesignal 2.0.1-beta1 → 2.1.0-beta1

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 (190) hide show
  1. package/DefaultApi.md +128 -6
  2. package/apis/DefaultApi.ts +740 -95
  3. package/dist/apis/DefaultApi.d.ts +3 -0
  4. package/dist/apis/DefaultApi.js +1112 -420
  5. package/dist/apis/DefaultApi.js.map +1 -1
  6. package/dist/http/http.d.ts +1 -0
  7. package/dist/jest.config.d.ts +15 -0
  8. package/dist/jest.config.js +17 -0
  9. package/dist/jest.config.js.map +1 -0
  10. package/dist/models/{DeleteSegmentBadRequestResponse.d.ts → ExportEventsSuccessResponse.d.ts} +2 -2
  11. package/dist/models/ExportEventsSuccessResponse.js +22 -0
  12. package/dist/models/ExportEventsSuccessResponse.js.map +1 -0
  13. package/dist/models/ExportSubscriptionsRequestBody.d.ts +19 -0
  14. package/dist/models/ExportSubscriptionsRequestBody.js +34 -0
  15. package/dist/models/ExportSubscriptionsRequestBody.js.map +1 -0
  16. package/dist/models/{DeletePlayerBadRequestResponse.d.ts → ExportSubscriptionsSuccessResponse.d.ts} +2 -2
  17. package/dist/models/ExportSubscriptionsSuccessResponse.js +22 -0
  18. package/dist/models/ExportSubscriptionsSuccessResponse.js.map +1 -0
  19. package/dist/models/FilterExpression.d.ts +27 -0
  20. package/dist/models/FilterExpression.js +70 -0
  21. package/dist/models/FilterExpression.js.map +1 -0
  22. package/dist/models/GenericError.d.ts +18 -0
  23. package/dist/models/GenericError.js +22 -0
  24. package/dist/models/GenericError.js.map +1 -0
  25. package/dist/models/{IdentifyUserConflictResponseErrorsInner.d.ts → GenericErrorErrorsInner.d.ts} +1 -1
  26. package/dist/models/GenericErrorErrorsInner.js +28 -0
  27. package/dist/models/GenericErrorErrorsInner.js.map +1 -0
  28. package/dist/models/{CreateSegmentBadRequestResponse.d.ts → GenericSuccessBoolResponse.d.ts} +1 -2
  29. package/dist/models/GenericSuccessBoolResponse.js +22 -0
  30. package/dist/models/GenericSuccessBoolResponse.js.map +1 -0
  31. package/dist/models/GetNotificationHistoryRequestBody.d.ts +20 -0
  32. package/dist/models/GetNotificationHistoryRequestBody.js +34 -0
  33. package/dist/models/GetNotificationHistoryRequestBody.js.map +1 -0
  34. package/dist/models/GetSegmentsSuccessResponse.d.ts +21 -0
  35. package/dist/models/GetSegmentsSuccessResponse.js +40 -0
  36. package/dist/models/GetSegmentsSuccessResponse.js.map +1 -0
  37. package/dist/models/LanguageStringMap.d.ts +59 -0
  38. package/dist/models/LanguageStringMap.js +274 -0
  39. package/dist/models/LanguageStringMap.js.map +1 -0
  40. package/dist/models/ObjectSerializer.d.ts +4 -3
  41. package/dist/models/ObjectSerializer.js +12 -9
  42. package/dist/models/ObjectSerializer.js.map +1 -1
  43. package/dist/models/PropertiesBody.d.ts +18 -0
  44. package/dist/models/PropertiesBody.js +22 -0
  45. package/dist/models/PropertiesBody.js.map +1 -0
  46. package/dist/models/{BadRequestError.d.ts → RateLimitError.d.ts} +2 -1
  47. package/dist/models/RateLimitError.js +28 -0
  48. package/dist/models/RateLimitError.js.map +1 -0
  49. package/dist/models/RateLimiterError.d.ts +18 -0
  50. package/dist/models/RateLimiterError.js +22 -0
  51. package/dist/models/RateLimiterError.js.map +1 -0
  52. package/dist/models/SegmentData.d.ts +23 -0
  53. package/dist/models/SegmentData.js +58 -0
  54. package/dist/models/SegmentData.js.map +1 -0
  55. package/dist/models/Subscription.d.ts +34 -0
  56. package/dist/models/Subscription.js +118 -0
  57. package/dist/models/Subscription.js.map +1 -0
  58. package/dist/models/SubscriptionBody.d.ts +18 -0
  59. package/dist/models/SubscriptionBody.js +22 -0
  60. package/dist/models/SubscriptionBody.js.map +1 -0
  61. package/dist/models/SubscriptionNotificationTarget.d.ts +30 -0
  62. package/dist/models/SubscriptionNotificationTarget.js +82 -0
  63. package/dist/models/SubscriptionNotificationTarget.js.map +1 -0
  64. package/dist/models/{CreateNotificationBadRequestResponse.d.ts → UserIdentityBody.d.ts} +4 -2
  65. package/dist/models/UserIdentityBody.js +22 -0
  66. package/dist/models/UserIdentityBody.js.map +1 -0
  67. package/dist/models/WebButton.d.ts +20 -0
  68. package/dist/models/WebButton.js +40 -0
  69. package/dist/models/WebButton.js.map +1 -0
  70. package/dist/models/all.d.ts +4 -3
  71. package/dist/models/all.js +4 -3
  72. package/dist/models/all.js.map +1 -1
  73. package/dist/servers.js +1 -1
  74. package/dist/servers.js.map +1 -1
  75. package/dist/test/DefaultApi.test.d.ts +1 -0
  76. package/dist/test/DefaultApi.test.js +49 -0
  77. package/dist/test/DefaultApi.test.js.map +1 -0
  78. package/dist/types/ObjectParamAPI.d.ts +6 -0
  79. package/dist/types/ObjectParamAPI.js +3 -0
  80. package/dist/types/ObjectParamAPI.js.map +1 -1
  81. package/dist/types/ObservableAPI.d.ts +2 -0
  82. package/dist/types/ObservableAPI.js +89 -65
  83. package/dist/types/ObservableAPI.js.map +1 -1
  84. package/dist/types/PromiseAPI.d.ts +2 -0
  85. package/dist/types/PromiseAPI.js +4 -0
  86. package/dist/types/PromiseAPI.js.map +1 -1
  87. package/models/App.ts +1 -1
  88. package/models/BasicNotification.ts +1 -1
  89. package/models/BasicNotificationAllOf.ts +1 -1
  90. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  91. package/models/BeginLiveActivityRequest.ts +1 -1
  92. package/models/Button.ts +1 -1
  93. package/models/CancelNotificationSuccessResponse.ts +1 -1
  94. package/models/CreateNotificationSuccessResponse.ts +1 -1
  95. package/models/CreatePlayerSuccessResponse.ts +1 -1
  96. package/models/CreateSegmentConflictResponse.ts +1 -1
  97. package/models/CreateSegmentSuccessResponse.ts +1 -1
  98. package/models/CreateSubscriptionRequestBody.ts +1 -1
  99. package/models/CreateUserConflictResponse.ts +1 -1
  100. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  101. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  102. package/models/DeletePlayerNotFoundResponse.ts +1 -1
  103. package/models/DeletePlayerSuccessResponse.ts +1 -1
  104. package/models/DeleteSegmentNotFoundResponse.ts +1 -1
  105. package/models/DeleteSegmentSuccessResponse.ts +1 -1
  106. package/models/DeliveryData.ts +1 -1
  107. package/models/{DeletePlayerBadRequestResponse.ts → ExportEventsSuccessResponse.ts} +7 -7
  108. package/models/ExportPlayersRequestBody.ts +1 -1
  109. package/models/ExportPlayersSuccessResponse.ts +1 -1
  110. package/models/Filter.ts +1 -1
  111. package/models/FilterExpressions.ts +1 -1
  112. package/models/{CreateNotificationBadRequestResponse.ts → GenericError.ts} +6 -5
  113. package/models/{IdentifyUserConflictResponseErrorsInner.ts → GenericErrorErrorsInner.ts} +3 -3
  114. package/models/GetNotificationRequestBody.ts +1 -1
  115. package/models/InlineResponse200.ts +1 -1
  116. package/models/InlineResponse2003.ts +1 -1
  117. package/models/InlineResponse201.ts +1 -1
  118. package/models/InlineResponse202.ts +1 -1
  119. package/models/InvalidIdentifierError.ts +1 -1
  120. package/models/Notification.ts +1 -1
  121. package/models/Notification200Errors.ts +1 -1
  122. package/models/NotificationAllOf.ts +1 -1
  123. package/models/NotificationHistorySuccessResponse.ts +1 -1
  124. package/models/NotificationSlice.ts +1 -1
  125. package/models/NotificationTarget.ts +1 -1
  126. package/models/NotificationWithMeta.ts +1 -1
  127. package/models/NotificationWithMetaAllOf.ts +1 -1
  128. package/models/ObjectSerializer.ts +12 -9
  129. package/models/Operator.ts +1 -1
  130. package/models/OutcomeData.ts +1 -1
  131. package/models/OutcomesData.ts +1 -1
  132. package/models/PlatformDeliveryData.ts +1 -1
  133. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  134. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  135. package/models/Player.ts +1 -1
  136. package/models/PlayerNotificationTarget.ts +1 -1
  137. package/models/PlayerNotificationTargetIncludeAliases.ts +1 -1
  138. package/models/PlayerSlice.ts +1 -1
  139. package/models/PropertiesDeltas.ts +1 -1
  140. package/models/PropertiesObject.ts +1 -1
  141. package/models/Purchase.ts +1 -1
  142. package/models/{BadRequestError.ts → RateLimiterError.ts} +6 -5
  143. package/models/Segment.ts +1 -1
  144. package/models/SegmentNotificationTarget.ts +1 -1
  145. package/models/StringMap.ts +1 -1
  146. package/models/SubscriptionObject.ts +1 -1
  147. package/models/TransferSubscriptionRequestBody.ts +1 -1
  148. package/models/UpdateLiveActivityRequest.ts +1 -1
  149. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  150. package/models/UpdatePlayerSuccessResponse.ts +1 -1
  151. package/models/UpdatePlayerTagsRequestBody.ts +1 -1
  152. package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
  153. package/models/UpdateSubscriptionRequestBody.ts +1 -1
  154. package/models/UpdateUserRequest.ts +1 -1
  155. package/models/User.ts +1 -1
  156. package/models/UserIdentityRequestBody.ts +1 -1
  157. package/models/UserIdentityResponse.ts +1 -1
  158. package/models/UserSubscriptionOptions.ts +1 -1
  159. package/models/all.ts +4 -3
  160. package/package.json +2 -2
  161. package/servers.ts +1 -1
  162. package/types/ObjectParamAPI.ts +29 -4
  163. package/types/ObservableAPI.ts +30 -4
  164. package/types/PromiseAPI.ts +16 -4
  165. package/dist/models/BadRequestError.js +0 -22
  166. package/dist/models/BadRequestError.js.map +0 -1
  167. package/dist/models/CreateNotificationBadRequestResponse.js +0 -22
  168. package/dist/models/CreateNotificationBadRequestResponse.js.map +0 -1
  169. package/dist/models/CreateSegmentBadRequestResponse.js +0 -28
  170. package/dist/models/CreateSegmentBadRequestResponse.js.map +0 -1
  171. package/dist/models/DeletePlayerBadRequestResponse.js +0 -22
  172. package/dist/models/DeletePlayerBadRequestResponse.js.map +0 -1
  173. package/dist/models/DeleteSegmentBadRequestResponse.js +0 -22
  174. package/dist/models/DeleteSegmentBadRequestResponse.js.map +0 -1
  175. package/dist/models/FilterNotificationTarget.d.ts +0 -28
  176. package/dist/models/FilterNotificationTarget.js +0 -88
  177. package/dist/models/FilterNotificationTarget.js.map +0 -1
  178. package/dist/models/IdentifyUserConflictResponse.d.ts +0 -18
  179. package/dist/models/IdentifyUserConflictResponse.js +0 -22
  180. package/dist/models/IdentifyUserConflictResponse.js.map +0 -1
  181. package/dist/models/IdentifyUserConflictResponseErrorsInner.js +0 -28
  182. package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +0 -1
  183. package/dist/models/NotificationHistoryBadRequestResponse.d.ts +0 -18
  184. package/dist/models/NotificationHistoryBadRequestResponse.js +0 -28
  185. package/dist/models/NotificationHistoryBadRequestResponse.js.map +0 -1
  186. package/models/CreateSegmentBadRequestResponse.ts +0 -38
  187. package/models/DeleteSegmentBadRequestResponse.ts +0 -31
  188. package/models/FilterNotificationTarget.ts +0 -144
  189. package/models/IdentifyUserConflictResponse.ts +0 -32
  190. package/models/NotificationHistoryBadRequestResponse.ts +0 -38
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -1,5 +1,4 @@
1
1
  export * from './App';
2
- export * from './BadRequestError';
3
2
  export * from './BasicNotification';
4
3
  export * from './BasicNotificationAllOf';
5
4
  export * from './BasicNotificationAllOfAndroidBackgroundLayout';
@@ -19,13 +18,14 @@ export * from './DeletePlayerSuccessResponse';
19
18
  export * from './DeleteSegmentNotFoundResponse';
20
19
  export * from './DeleteSegmentSuccessResponse';
21
20
  export * from './DeliveryData';
21
+ export * from './ExportEventsSuccessResponse';
22
22
  export * from './ExportPlayersRequestBody';
23
23
  export * from './ExportPlayersSuccessResponse';
24
24
  export * from './Filter';
25
25
  export * from './FilterExpressions';
26
+ export * from './GenericError';
27
+ export * from './GenericErrorErrorsInner';
26
28
  export * from './GetNotificationRequestBody';
27
- export * from './IdentifyUserConflictResponse';
28
- export * from './IdentifyUserConflictResponseErrorsInner';
29
29
  export * from './InlineResponse200';
30
30
  export * from './InlineResponse2003';
31
31
  export * from './InlineResponse201';
@@ -52,6 +52,7 @@ export * from './PlayerSlice';
52
52
  export * from './PropertiesDeltas';
53
53
  export * from './PropertiesObject';
54
54
  export * from './Purchase';
55
+ export * from './RateLimiterError';
55
56
  export * from './Segment';
56
57
  export * from './SegmentNotificationTarget';
57
58
  export * from './StringMap';
@@ -70,7 +71,6 @@ export * from './UserIdentityResponse';
70
71
  export * from './UserSubscriptionOptions';
71
72
 
72
73
  import { App , AppApnsEnvEnum } from './App';
73
- import { BadRequestError } from './BadRequestError';
74
74
  import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
75
75
  import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
76
76
  import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
@@ -90,13 +90,14 @@ import { DeletePlayerSuccessResponse } from './DeletePlayerSuccessResponse';
90
90
  import { DeleteSegmentNotFoundResponse } from './DeleteSegmentNotFoundResponse';
91
91
  import { DeleteSegmentSuccessResponse } from './DeleteSegmentSuccessResponse';
92
92
  import { DeliveryData } from './DeliveryData';
93
+ import { ExportEventsSuccessResponse } from './ExportEventsSuccessResponse';
93
94
  import { ExportPlayersRequestBody } from './ExportPlayersRequestBody';
94
95
  import { ExportPlayersSuccessResponse } from './ExportPlayersSuccessResponse';
95
96
  import { Filter , FilterRelationEnum } from './Filter';
96
97
  import { FilterExpressions , FilterExpressionsRelationEnum , FilterExpressionsOperatorEnum } from './FilterExpressions';
98
+ import { GenericError } from './GenericError';
99
+ import { GenericErrorErrorsInner } from './GenericErrorErrorsInner';
97
100
  import { GetNotificationRequestBody, GetNotificationRequestBodyEventsEnum } from './GetNotificationRequestBody';
98
- import { IdentifyUserConflictResponse } from './IdentifyUserConflictResponse';
99
- import { IdentifyUserConflictResponseErrorsInner } from './IdentifyUserConflictResponseErrorsInner';
100
101
  import { InlineResponse200 } from './InlineResponse200';
101
102
  import { InlineResponse2003 } from './InlineResponse2003';
102
103
  import { InlineResponse201 } from './InlineResponse201';
@@ -123,6 +124,7 @@ import { PlayerSlice } from './PlayerSlice';
123
124
  import { PropertiesDeltas } from './PropertiesDeltas';
124
125
  import { PropertiesObject } from './PropertiesObject';
125
126
  import { Purchase } from './Purchase';
127
+ import { RateLimiterError } from './RateLimiterError';
126
128
  import { Segment } from './Segment';
127
129
  import { SegmentNotificationTarget } from './SegmentNotificationTarget';
128
130
  import { StringMap } from './StringMap';
@@ -183,7 +185,6 @@ let enumsMap: Set<string> = new Set<string>([
183
185
 
184
186
  let typeMap: {[index: string]: any} = {
185
187
  "App": App,
186
- "BadRequestError": BadRequestError,
187
188
  "BasicNotification": BasicNotification,
188
189
  "BasicNotificationAllOf": BasicNotificationAllOf,
189
190
  "BasicNotificationAllOfAndroidBackgroundLayout": BasicNotificationAllOfAndroidBackgroundLayout,
@@ -203,13 +204,14 @@ let typeMap: {[index: string]: any} = {
203
204
  "DeleteSegmentNotFoundResponse": DeleteSegmentNotFoundResponse,
204
205
  "DeleteSegmentSuccessResponse": DeleteSegmentSuccessResponse,
205
206
  "DeliveryData": DeliveryData,
207
+ "ExportEventsSuccessResponse": ExportEventsSuccessResponse,
206
208
  "ExportPlayersRequestBody": ExportPlayersRequestBody,
207
209
  "ExportPlayersSuccessResponse": ExportPlayersSuccessResponse,
208
210
  "Filter": Filter,
209
211
  "FilterExpressions": FilterExpressions,
212
+ "GenericError": GenericError,
213
+ "GenericErrorErrorsInner": GenericErrorErrorsInner,
210
214
  "GetNotificationRequestBody": GetNotificationRequestBody,
211
- "IdentifyUserConflictResponse": IdentifyUserConflictResponse,
212
- "IdentifyUserConflictResponseErrorsInner": IdentifyUserConflictResponseErrorsInner,
213
215
  "InlineResponse200": InlineResponse200,
214
216
  "InlineResponse2003": InlineResponse2003,
215
217
  "InlineResponse201": InlineResponse201,
@@ -236,6 +238,7 @@ let typeMap: {[index: string]: any} = {
236
238
  "PropertiesDeltas": PropertiesDeltas,
237
239
  "PropertiesObject": PropertiesObject,
238
240
  "Purchase": Purchase,
241
+ "RateLimiterError": RateLimiterError,
239
242
  "Segment": Segment,
240
243
  "SegmentNotificationTarget": SegmentNotificationTarget,
241
244
  "StringMap": StringMap,
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/Player.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,14 +2,15 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
+ import { GenericErrorErrorsInner } from './GenericErrorErrorsInner';
9
10
  import { HttpFile } from '../http/http';
10
11
 
11
- export class BadRequestError {
12
- 'errors'?: Array<string>;
12
+ export class RateLimiterError {
13
+ 'errors'?: Array<GenericErrorErrorsInner>;
13
14
 
14
15
  static readonly discriminator: string | undefined = undefined;
15
16
 
@@ -17,12 +18,12 @@ export class BadRequestError {
17
18
  {
18
19
  "name": "errors",
19
20
  "baseName": "errors",
20
- "type": "Array<string>",
21
+ "type": "Array<GenericErrorErrorsInner>",
21
22
  "format": ""
22
23
  } ];
23
24
 
24
25
  static getAttributeTypeMap() {
25
- return BadRequestError.attributeTypeMap;
26
+ return RateLimiterError.attributeTypeMap;
26
27
  }
27
28
 
28
29
  public constructor() {
package/models/Segment.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/User.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.2.1
5
+ * API Version: 1.3.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/all.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from './App'
2
- export * from './BadRequestError'
3
2
  export * from './BasicNotification'
4
3
  export * from './BasicNotificationAllOf'
5
4
  export * from './BasicNotificationAllOfAndroidBackgroundLayout'
@@ -19,13 +18,14 @@ export * from './DeletePlayerSuccessResponse'
19
18
  export * from './DeleteSegmentNotFoundResponse'
20
19
  export * from './DeleteSegmentSuccessResponse'
21
20
  export * from './DeliveryData'
21
+ export * from './ExportEventsSuccessResponse'
22
22
  export * from './ExportPlayersRequestBody'
23
23
  export * from './ExportPlayersSuccessResponse'
24
24
  export * from './Filter'
25
25
  export * from './FilterExpressions'
26
+ export * from './GenericError'
27
+ export * from './GenericErrorErrorsInner'
26
28
  export * from './GetNotificationRequestBody'
27
- export * from './IdentifyUserConflictResponse'
28
- export * from './IdentifyUserConflictResponseErrorsInner'
29
29
  export * from './InlineResponse200'
30
30
  export * from './InlineResponse2003'
31
31
  export * from './InlineResponse201'
@@ -52,6 +52,7 @@ export * from './PlayerSlice'
52
52
  export * from './PropertiesDeltas'
53
53
  export * from './PropertiesObject'
54
54
  export * from './Purchase'
55
+ export * from './RateLimiterError'
55
56
  export * from './Segment'
56
57
  export * from './SegmentNotificationTarget'
57
58
  export * from './StringMap'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesignal/node-onesignal",
3
- "version": "2.0.1-beta1",
3
+ "version": "2.1.0-beta1",
4
4
  "description": "OpenAPI client for @onesignal/node-onesignal",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -21,7 +21,7 @@
21
21
  "prepare": "npm run build"
22
22
  },
23
23
  "dependencies": {
24
- "@types/node": "^20.4.1",
24
+ "@types/node": "^22.10.1",
25
25
  "@types/node-fetch": "^2.5.7",
26
26
  "btoa": "^1.2.1",
27
27
  "es6-promise": "^4.2.4",
package/servers.ts CHANGED
@@ -48,6 +48,6 @@ export class ServerConfiguration<T extends { [key: string]: string }> implements
48
48
  }
49
49
  }
50
50
 
51
- export const server1 = new ServerConfiguration<{ }>("https://onesignal.com/api/v1", { })
51
+ export const server1 = new ServerConfiguration<{ }>("https://api.onesignal.com", { })
52
52
 
53
53
  export const servers = [server1];