@onesignal/node-onesignal 2.0.1-beta2 → 5.0.0-alpha-01

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 (268) hide show
  1. package/DefaultApi.md +401 -778
  2. package/apis/DefaultApi.ts +682 -1216
  3. package/auth/auth.ts +14 -14
  4. package/configuration.ts +6 -6
  5. package/dist/apis/DefaultApi.d.ts +36 -63
  6. package/dist/apis/DefaultApi.js +653 -1174
  7. package/dist/apis/DefaultApi.js.map +1 -1
  8. package/dist/auth/auth.d.ts +6 -6
  9. package/dist/auth/auth.js +19 -19
  10. package/dist/auth/auth.js.map +1 -1
  11. package/dist/configuration.d.ts +2 -2
  12. package/dist/configuration.js +4 -4
  13. package/dist/configuration.js.map +1 -1
  14. package/dist/models/BasicNotification.d.ts +14 -12
  15. package/dist/models/BasicNotification.js +20 -20
  16. package/dist/models/BasicNotification.js.map +1 -1
  17. package/dist/models/BasicNotificationAllOf.d.ts +10 -8
  18. package/dist/models/BasicNotificationAllOf.js +17 -11
  19. package/dist/models/BasicNotificationAllOf.js.map +1 -1
  20. package/dist/models/CreateNotificationSuccessResponse.d.ts +1 -3
  21. package/dist/models/CreateNotificationSuccessResponse.js +1 -7
  22. package/dist/models/CreateNotificationSuccessResponse.js.map +1 -1
  23. package/dist/models/{ExportPlayersRequestBody.d.ts → ExportSubscriptionsRequestBody.d.ts} +1 -1
  24. package/dist/models/ExportSubscriptionsRequestBody.js +34 -0
  25. package/dist/models/ExportSubscriptionsRequestBody.js.map +1 -0
  26. package/dist/models/{ExportPlayersSuccessResponse.d.ts → ExportSubscriptionsSuccessResponse.d.ts} +1 -1
  27. package/dist/models/ExportSubscriptionsSuccessResponse.js +22 -0
  28. package/dist/models/ExportSubscriptionsSuccessResponse.js.map +1 -0
  29. package/dist/models/Filter.d.ts +6 -2
  30. package/dist/models/Filter.js +24 -0
  31. package/dist/models/Filter.js.map +1 -1
  32. package/dist/models/FilterExpression.d.ts +27 -0
  33. package/dist/models/FilterExpression.js +70 -0
  34. package/dist/models/FilterExpression.js.map +1 -0
  35. package/dist/models/GenericError.d.ts +3 -2
  36. package/dist/models/GenericError.js +13 -1
  37. package/dist/models/GenericError.js.map +1 -1
  38. package/dist/models/{DeletePlayerSuccessResponse.d.ts → GenericSuccessBoolResponse.d.ts} +1 -1
  39. package/dist/models/GenericSuccessBoolResponse.js +22 -0
  40. package/dist/models/GenericSuccessBoolResponse.js.map +1 -0
  41. package/dist/models/{GetNotificationRequestBody.d.ts → GetNotificationHistoryRequestBody.d.ts} +3 -3
  42. package/dist/models/GetNotificationHistoryRequestBody.js +34 -0
  43. package/dist/models/GetNotificationHistoryRequestBody.js.map +1 -0
  44. package/dist/models/{PlayerSlice.d.ts → GetSegmentsSuccessResponse.d.ts} +3 -3
  45. package/dist/models/GetSegmentsSuccessResponse.js +40 -0
  46. package/dist/models/GetSegmentsSuccessResponse.js.map +1 -0
  47. package/dist/models/InvalidIdentifierError.d.ts +1 -1
  48. package/dist/models/InvalidIdentifierError.js +2 -2
  49. package/dist/models/InvalidIdentifierError.js.map +1 -1
  50. package/dist/models/{StringMap.d.ts → LanguageStringMap.d.ts} +1 -1
  51. package/dist/models/{StringMap.js → LanguageStringMap.js} +10 -10
  52. package/dist/models/LanguageStringMap.js.map +1 -0
  53. package/dist/models/Notification.d.ts +14 -12
  54. package/dist/models/Notification.js +20 -20
  55. package/dist/models/Notification.js.map +1 -1
  56. package/dist/models/NotificationTarget.d.ts +4 -4
  57. package/dist/models/NotificationTarget.js +3 -9
  58. package/dist/models/NotificationTarget.js.map +1 -1
  59. package/dist/models/NotificationWithMeta.d.ts +14 -12
  60. package/dist/models/NotificationWithMeta.js +20 -20
  61. package/dist/models/NotificationWithMeta.js.map +1 -1
  62. package/dist/models/ObjectSerializer.d.ts +15 -32
  63. package/dist/models/ObjectSerializer.js +50 -102
  64. package/dist/models/ObjectSerializer.js.map +1 -1
  65. package/dist/models/{InlineResponse202.d.ts → PropertiesBody.d.ts} +1 -1
  66. package/dist/models/PropertiesBody.js +22 -0
  67. package/dist/models/PropertiesBody.js.map +1 -0
  68. package/dist/models/{DeleteSegmentNotFoundResponse.d.ts → RateLimitError.d.ts} +3 -2
  69. package/dist/models/RateLimitError.js +28 -0
  70. package/dist/models/RateLimitError.js.map +1 -0
  71. package/dist/models/Segment.d.ts +2 -2
  72. package/dist/models/Segment.js +1 -1
  73. package/dist/models/Segment.js.map +1 -1
  74. package/dist/models/{CreateSubscriptionRequestBody.d.ts → SegmentData.d.ts} +8 -4
  75. package/dist/models/SegmentData.js +58 -0
  76. package/dist/models/SegmentData.js.map +1 -0
  77. package/dist/models/{SubscriptionObject.d.ts → Subscription.d.ts} +3 -3
  78. package/dist/models/{SubscriptionObject.js → Subscription.js} +11 -11
  79. package/dist/models/Subscription.js.map +1 -0
  80. package/dist/models/{CreatePlayerSuccessResponse.d.ts → SubscriptionBody.d.ts} +3 -3
  81. package/dist/models/SubscriptionBody.js +22 -0
  82. package/dist/models/SubscriptionBody.js.map +1 -0
  83. package/dist/models/{PlayerNotificationTarget.d.ts → SubscriptionNotificationTarget.d.ts} +7 -7
  84. package/dist/models/{PlayerNotificationTarget.js → SubscriptionNotificationTarget.js} +14 -20
  85. package/dist/models/SubscriptionNotificationTarget.js.map +1 -0
  86. package/dist/models/TransferSubscriptionRequestBody.d.ts +1 -1
  87. package/dist/models/TransferSubscriptionRequestBody.js +1 -1
  88. package/dist/models/TransferSubscriptionRequestBody.js.map +1 -1
  89. package/dist/models/UpdateLiveActivityRequest.d.ts +8 -3
  90. package/dist/models/UpdateLiveActivityRequest.js +33 -3
  91. package/dist/models/UpdateLiveActivityRequest.js.map +1 -1
  92. package/dist/models/UpdateLiveActivitySuccessResponse.d.ts +1 -3
  93. package/dist/models/UpdateLiveActivitySuccessResponse.js +2 -8
  94. package/dist/models/UpdateLiveActivitySuccessResponse.js.map +1 -1
  95. package/dist/models/User.d.ts +3 -5
  96. package/dist/models/User.js +2 -8
  97. package/dist/models/User.js.map +1 -1
  98. package/dist/models/{InlineResponse200.d.ts → UserIdentityBody.d.ts} +2 -2
  99. package/dist/models/UserIdentityBody.js +22 -0
  100. package/dist/models/UserIdentityBody.js.map +1 -0
  101. package/dist/models/{BeginLiveActivityRequest.d.ts → WebButton.d.ts} +5 -3
  102. package/dist/models/WebButton.js +40 -0
  103. package/dist/models/WebButton.js.map +1 -0
  104. package/dist/models/all.d.ts +15 -32
  105. package/dist/models/all.js +15 -32
  106. package/dist/models/all.js.map +1 -1
  107. package/dist/servers.js +1 -1
  108. package/dist/servers.js.map +1 -1
  109. package/dist/types/ObjectParamAPI.d.ts +52 -102
  110. package/dist/types/ObjectParamAPI.js +26 -47
  111. package/dist/types/ObjectParamAPI.js.map +1 -1
  112. package/dist/types/ObservableAPI.d.ts +25 -45
  113. package/dist/types/ObservableAPI.js +82 -250
  114. package/dist/types/ObservableAPI.js.map +1 -1
  115. package/dist/types/PromiseAPI.d.ts +25 -45
  116. package/dist/types/PromiseAPI.js +32 -60
  117. package/dist/types/PromiseAPI.js.map +1 -1
  118. package/models/App.ts +1 -1
  119. package/models/BasicNotification.ts +49 -46
  120. package/models/BasicNotificationAllOf.ts +34 -23
  121. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  122. package/models/Button.ts +1 -1
  123. package/models/CreateNotificationSuccessResponse.ts +5 -13
  124. package/models/CreateSegmentConflictResponse.ts +1 -1
  125. package/models/CreateSegmentSuccessResponse.ts +1 -1
  126. package/models/CreateUserConflictResponse.ts +1 -1
  127. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  128. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  129. package/models/DeliveryData.ts +1 -1
  130. package/models/ExportEventsSuccessResponse.ts +1 -1
  131. package/models/{ExportPlayersRequestBody.ts → ExportSubscriptionsRequestBody.ts} +3 -3
  132. package/models/{ExportPlayersSuccessResponse.ts → ExportSubscriptionsSuccessResponse.ts} +3 -3
  133. package/models/Filter.ts +45 -5
  134. package/models/FilterExpression.ts +120 -0
  135. package/models/GenericError.ts +17 -4
  136. package/models/{DeletePlayerSuccessResponse.ts → GenericSuccessBoolResponse.ts} +3 -3
  137. package/models/{GetNotificationRequestBody.ts → GetNotificationHistoryRequestBody.ts} +6 -6
  138. package/models/{PlayerSlice.ts → GetSegmentsSuccessResponse.ts} +20 -8
  139. package/models/InvalidIdentifierError.ts +6 -6
  140. package/models/{StringMap.ts → LanguageStringMap.ts} +3 -3
  141. package/models/Notification.ts +49 -46
  142. package/models/NotificationAllOf.ts +1 -1
  143. package/models/NotificationHistorySuccessResponse.ts +1 -1
  144. package/models/NotificationSlice.ts +1 -1
  145. package/models/NotificationTarget.ts +17 -25
  146. package/models/NotificationWithMeta.ts +49 -46
  147. package/models/NotificationWithMetaAllOf.ts +1 -1
  148. package/models/ObjectSerializer.ts +57 -109
  149. package/models/Operator.ts +1 -1
  150. package/models/OutcomeData.ts +1 -1
  151. package/models/OutcomesData.ts +1 -1
  152. package/models/PlatformDeliveryData.ts +1 -1
  153. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  154. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  155. package/models/{InlineResponse202.ts → PropertiesBody.ts} +3 -3
  156. package/models/PropertiesDeltas.ts +1 -1
  157. package/models/PropertiesObject.ts +1 -1
  158. package/models/Purchase.ts +1 -1
  159. package/models/{CreatePlayerSuccessResponse.ts → RateLimitError.ts} +10 -10
  160. package/models/Segment.ts +4 -4
  161. package/models/SegmentData.ts +94 -0
  162. package/models/SegmentNotificationTarget.ts +1 -1
  163. package/models/{SubscriptionObject.ts → Subscription.ts} +6 -6
  164. package/models/{InlineResponse201.ts → SubscriptionBody.ts} +6 -6
  165. package/models/{PlayerNotificationTarget.ts → SubscriptionNotificationTarget.ts} +21 -29
  166. package/models/TransferSubscriptionRequestBody.ts +3 -3
  167. package/models/UpdateLiveActivityRequest.ts +56 -9
  168. package/models/UpdateLiveActivitySuccessResponse.ts +4 -12
  169. package/models/UpdateUserRequest.ts +1 -1
  170. package/models/User.ts +6 -14
  171. package/models/{InlineResponse200.ts → UserIdentityBody.ts} +5 -5
  172. package/models/{BeginLiveActivityRequest.ts → WebButton.ts} +23 -9
  173. package/models/all.ts +15 -32
  174. package/package.json +2 -2
  175. package/servers.ts +1 -1
  176. package/types/ObjectParamAPI.ts +161 -357
  177. package/types/ObservableAPI.ts +108 -301
  178. package/types/PromiseAPI.ts +89 -184
  179. package/dist/models/BeginLiveActivityRequest.js +0 -28
  180. package/dist/models/BeginLiveActivityRequest.js.map +0 -1
  181. package/dist/models/CancelNotificationSuccessResponse.d.ts +0 -17
  182. package/dist/models/CancelNotificationSuccessResponse.js +0 -22
  183. package/dist/models/CancelNotificationSuccessResponse.js.map +0 -1
  184. package/dist/models/CreatePlayerSuccessResponse.js +0 -28
  185. package/dist/models/CreatePlayerSuccessResponse.js.map +0 -1
  186. package/dist/models/CreateSubscriptionRequestBody.js +0 -28
  187. package/dist/models/CreateSubscriptionRequestBody.js.map +0 -1
  188. package/dist/models/DeletePlayerNotFoundResponse.d.ts +0 -17
  189. package/dist/models/DeletePlayerNotFoundResponse.js +0 -22
  190. package/dist/models/DeletePlayerNotFoundResponse.js.map +0 -1
  191. package/dist/models/DeletePlayerSuccessResponse.js +0 -22
  192. package/dist/models/DeletePlayerSuccessResponse.js.map +0 -1
  193. package/dist/models/DeleteSegmentNotFoundResponse.js +0 -22
  194. package/dist/models/DeleteSegmentNotFoundResponse.js.map +0 -1
  195. package/dist/models/DeleteSegmentSuccessResponse.d.ts +0 -17
  196. package/dist/models/DeleteSegmentSuccessResponse.js +0 -22
  197. package/dist/models/DeleteSegmentSuccessResponse.js.map +0 -1
  198. package/dist/models/ExportPlayersRequestBody.js +0 -34
  199. package/dist/models/ExportPlayersRequestBody.js.map +0 -1
  200. package/dist/models/ExportPlayersSuccessResponse.js +0 -22
  201. package/dist/models/ExportPlayersSuccessResponse.js.map +0 -1
  202. package/dist/models/FilterExpressions.d.ts +0 -23
  203. package/dist/models/FilterExpressions.js +0 -46
  204. package/dist/models/FilterExpressions.js.map +0 -1
  205. package/dist/models/GetNotificationRequestBody.js +0 -34
  206. package/dist/models/GetNotificationRequestBody.js.map +0 -1
  207. package/dist/models/InlineResponse200.js +0 -22
  208. package/dist/models/InlineResponse200.js.map +0 -1
  209. package/dist/models/InlineResponse2003.d.ts +0 -17
  210. package/dist/models/InlineResponse2003.js +0 -22
  211. package/dist/models/InlineResponse2003.js.map +0 -1
  212. package/dist/models/InlineResponse201.d.ts +0 -18
  213. package/dist/models/InlineResponse201.js +0 -22
  214. package/dist/models/InlineResponse201.js.map +0 -1
  215. package/dist/models/InlineResponse202.js +0 -22
  216. package/dist/models/InlineResponse202.js.map +0 -1
  217. package/dist/models/Notification200Errors.d.ts +0 -18
  218. package/dist/models/Notification200Errors.js +0 -28
  219. package/dist/models/Notification200Errors.js.map +0 -1
  220. package/dist/models/Player.d.ts +0 -43
  221. package/dist/models/Player.js +0 -178
  222. package/dist/models/Player.js.map +0 -1
  223. package/dist/models/PlayerNotificationTarget.js.map +0 -1
  224. package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +0 -17
  225. package/dist/models/PlayerNotificationTargetIncludeAliases.js +0 -22
  226. package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +0 -1
  227. package/dist/models/PlayerSlice.js +0 -40
  228. package/dist/models/PlayerSlice.js.map +0 -1
  229. package/dist/models/StringMap.js.map +0 -1
  230. package/dist/models/SubscriptionObject.js.map +0 -1
  231. package/dist/models/UpdatePlayerSuccessResponse.d.ts +0 -17
  232. package/dist/models/UpdatePlayerSuccessResponse.js +0 -22
  233. package/dist/models/UpdatePlayerSuccessResponse.js.map +0 -1
  234. package/dist/models/UpdatePlayerTagsRequestBody.d.ts +0 -17
  235. package/dist/models/UpdatePlayerTagsRequestBody.js +0 -22
  236. package/dist/models/UpdatePlayerTagsRequestBody.js.map +0 -1
  237. package/dist/models/UpdatePlayerTagsSuccessResponse.d.ts +0 -17
  238. package/dist/models/UpdatePlayerTagsSuccessResponse.js +0 -22
  239. package/dist/models/UpdatePlayerTagsSuccessResponse.js.map +0 -1
  240. package/dist/models/UpdateSubscriptionRequestBody.d.ts +0 -18
  241. package/dist/models/UpdateSubscriptionRequestBody.js +0 -22
  242. package/dist/models/UpdateSubscriptionRequestBody.js.map +0 -1
  243. package/dist/models/UserIdentityRequestBody.d.ts +0 -19
  244. package/dist/models/UserIdentityRequestBody.js +0 -22
  245. package/dist/models/UserIdentityRequestBody.js.map +0 -1
  246. package/dist/models/UserIdentityResponse.d.ts +0 -19
  247. package/dist/models/UserIdentityResponse.js +0 -22
  248. package/dist/models/UserIdentityResponse.js.map +0 -1
  249. package/dist/models/UserSubscriptionOptions.d.ts +0 -17
  250. package/dist/models/UserSubscriptionOptions.js +0 -22
  251. package/dist/models/UserSubscriptionOptions.js.map +0 -1
  252. package/models/CancelNotificationSuccessResponse.ts +0 -31
  253. package/models/CreateSubscriptionRequestBody.ts +0 -39
  254. package/models/DeletePlayerNotFoundResponse.ts +0 -31
  255. package/models/DeleteSegmentNotFoundResponse.ts +0 -31
  256. package/models/DeleteSegmentSuccessResponse.ts +0 -31
  257. package/models/FilterExpressions.ts +0 -80
  258. package/models/InlineResponse2003.ts +0 -31
  259. package/models/Notification200Errors.ts +0 -45
  260. package/models/Player.ts +0 -291
  261. package/models/PlayerNotificationTargetIncludeAliases.ts +0 -31
  262. package/models/UpdatePlayerSuccessResponse.ts +0 -31
  263. package/models/UpdatePlayerTagsRequestBody.ts +0 -34
  264. package/models/UpdatePlayerTagsSuccessResponse.ts +0 -31
  265. package/models/UpdateSubscriptionRequestBody.ts +0 -32
  266. package/models/UserIdentityRequestBody.ts +0 -31
  267. package/models/UserIdentityResponse.ts +0 -31
  268. package/models/UserSubscriptionOptions.ts +0 -31
@@ -2,17 +2,17 @@
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.2
5
+ * API Version: 5.0.0-alpha-01
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { BasicNotificationAllOf } from './BasicNotificationAllOf';
10
10
  import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
11
11
  import { Button } from './Button';
12
- import { Filter } from './Filter';
12
+ import { FilterExpression } from './FilterExpression';
13
+ import { LanguageStringMap } from './LanguageStringMap';
13
14
  import { NotificationTarget } from './NotificationTarget';
14
- import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
15
- import { StringMap } from './StringMap';
15
+ import { WebButton } from './WebButton';
16
16
  import { HttpFile } from '../http/http';
17
17
 
18
18
  export class BasicNotification {
@@ -25,13 +25,9 @@ export class BasicNotification {
25
25
  */
26
26
  'excluded_segments'?: Array<string>;
27
27
  /**
28
- * Specific playerids to send your notification to. _Does not require API Auth Key. Do not combine with other targeting parameters. Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call
28
+ * Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call
29
29
  */
30
- 'include_player_ids'?: Array<string>;
31
- /**
32
- * Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call. Note: If targeting push, email, or sms subscribers with same ids, use with channel_for_external_user_ids to indicate you are sending a push or email or sms.
33
- */
34
- 'include_external_user_ids'?: Array<string>;
30
+ 'include_subscription_ids'?: Array<string>;
35
31
  /**
36
32
  * Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call
37
33
  */
@@ -41,30 +37,33 @@ export class BasicNotification {
41
37
  */
42
38
  'include_phone_numbers'?: Array<string>;
43
39
  /**
44
- * Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call
40
+ * Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call
45
41
  */
46
42
  'include_ios_tokens'?: Array<string>;
47
43
  /**
48
- * Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call
44
+ * Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call
49
45
  */
50
46
  'include_wp_wns_uris'?: Array<string>;
51
47
  /**
52
- * Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call
48
+ * Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call
53
49
  */
54
50
  'include_amazon_reg_ids'?: Array<string>;
55
51
  /**
56
- * Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
52
+ * Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
57
53
  */
58
54
  'include_chrome_reg_ids'?: Array<string>;
59
55
  /**
60
- * Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
56
+ * Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
61
57
  */
62
58
  'include_chrome_web_reg_ids'?: Array<string>;
63
59
  /**
64
- * Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
60
+ * Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
65
61
  */
66
62
  'include_android_reg_ids'?: Array<string>;
67
- 'include_aliases'?: PlayerNotificationTargetIncludeAliases;
63
+ /**
64
+ * Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms.
65
+ */
66
+ 'include_aliases'?: { [key: string]: Array<string>; };
68
67
  'target_channel'?: BasicNotificationTargetChannelEnum;
69
68
  'id'?: string;
70
69
  'value'?: number;
@@ -114,10 +113,6 @@ export class BasicNotification {
114
113
  */
115
114
  'is_chrome'?: boolean;
116
115
  /**
117
- * Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS.
118
- */
119
- 'channel_for_external_user_ids'?: string;
120
- /**
121
116
  * Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434.
122
117
  */
123
118
  'app_id': string;
@@ -125,9 +120,9 @@ export class BasicNotification {
125
120
  * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
126
121
  */
127
122
  'external_id'?: string;
128
- 'contents'?: StringMap;
129
- 'headings'?: StringMap;
130
- 'subtitle'?: StringMap;
123
+ 'contents'?: LanguageStringMap;
124
+ 'headings'?: LanguageStringMap;
125
+ 'subtitle'?: LanguageStringMap;
131
126
  /**
132
127
  * Channel: Push Notifications Platform: Huawei A custom map of data that is passed back to your app. Same as using Additional Data within the dashboard. Can use up to 2048 bytes of data. Example: {\"abc\": 123, \"foo\": \"bar\", \"event_performed\": true, \"amount\": 12.1}
133
128
  */
@@ -195,7 +190,7 @@ export class BasicNotification {
195
190
  /**
196
191
  * Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}]
197
192
  */
198
- 'web_buttons'?: Array<Button>;
193
+ 'web_buttons'?: Array<WebButton>;
199
194
  /**
200
195
  * Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category.
201
196
  */
@@ -374,6 +369,14 @@ export class BasicNotification {
374
369
  */
375
370
  'summary_arg_count'?: number;
376
371
  /**
372
+ * Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1.
373
+ */
374
+ 'ios_relevance_score'?: number;
375
+ /**
376
+ * Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: [\'active\', \'passive\', \'time_sensitive\', \'critical\']. Default is active.
377
+ */
378
+ 'ios_interruption_level'?: string;
379
+ /**
377
380
  * Channel: Email Required. The subject of the email.
378
381
  */
379
382
  'email_subject'?: string;
@@ -405,7 +408,7 @@ export class BasicNotification {
405
408
  * Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs.
406
409
  */
407
410
  'sms_media_urls'?: Array<string>;
408
- 'filters'?: Array<Filter>;
411
+ 'filters'?: Array<FilterExpression>;
409
412
  /**
410
413
  * Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25}
411
414
  */
@@ -427,14 +430,8 @@ export class BasicNotification {
427
430
  "format": ""
428
431
  },
429
432
  {
430
- "name": "include_player_ids",
431
- "baseName": "include_player_ids",
432
- "type": "Array<string>",
433
- "format": ""
434
- },
435
- {
436
- "name": "include_external_user_ids",
437
- "baseName": "include_external_user_ids",
433
+ "name": "include_subscription_ids",
434
+ "baseName": "include_subscription_ids",
438
435
  "type": "Array<string>",
439
436
  "format": ""
440
437
  },
@@ -489,7 +486,7 @@ export class BasicNotification {
489
486
  {
490
487
  "name": "include_aliases",
491
488
  "baseName": "include_aliases",
492
- "type": "PlayerNotificationTargetIncludeAliases",
489
+ "type": "{ [key: string]: Array<string>; }",
493
490
  "format": ""
494
491
  },
495
492
  {
@@ -582,12 +579,6 @@ export class BasicNotification {
582
579
  "type": "boolean",
583
580
  "format": ""
584
581
  },
585
- {
586
- "name": "channel_for_external_user_ids",
587
- "baseName": "channel_for_external_user_ids",
588
- "type": "string",
589
- "format": ""
590
- },
591
582
  {
592
583
  "name": "app_id",
593
584
  "baseName": "app_id",
@@ -603,19 +594,19 @@ export class BasicNotification {
603
594
  {
604
595
  "name": "contents",
605
596
  "baseName": "contents",
606
- "type": "StringMap",
597
+ "type": "LanguageStringMap",
607
598
  "format": ""
608
599
  },
609
600
  {
610
601
  "name": "headings",
611
602
  "baseName": "headings",
612
- "type": "StringMap",
603
+ "type": "LanguageStringMap",
613
604
  "format": ""
614
605
  },
615
606
  {
616
607
  "name": "subtitle",
617
608
  "baseName": "subtitle",
618
- "type": "StringMap",
609
+ "type": "LanguageStringMap",
619
610
  "format": ""
620
611
  },
621
612
  {
@@ -717,7 +708,7 @@ export class BasicNotification {
717
708
  {
718
709
  "name": "web_buttons",
719
710
  "baseName": "web_buttons",
720
- "type": "Array<Button>",
711
+ "type": "Array<WebButton>",
721
712
  "format": ""
722
713
  },
723
714
  {
@@ -990,6 +981,18 @@ export class BasicNotification {
990
981
  "type": "number",
991
982
  "format": ""
992
983
  },
984
+ {
985
+ "name": "ios_relevance_score",
986
+ "baseName": "ios_relevance_score",
987
+ "type": "number",
988
+ "format": ""
989
+ },
990
+ {
991
+ "name": "ios_interruption_level",
992
+ "baseName": "ios_interruption_level",
993
+ "type": "string",
994
+ "format": ""
995
+ },
993
996
  {
994
997
  "name": "email_subject",
995
998
  "baseName": "email_subject",
@@ -1041,7 +1044,7 @@ export class BasicNotification {
1041
1044
  {
1042
1045
  "name": "filters",
1043
1046
  "baseName": "filters",
1044
- "type": "Array<Filter>",
1047
+ "type": "Array<FilterExpression>",
1045
1048
  "format": ""
1046
1049
  },
1047
1050
  {
@@ -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.2
5
+ * API Version: 5.0.0-alpha-01
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
10
10
  import { Button } from './Button';
11
- import { Filter } from './Filter';
12
- import { StringMap } from './StringMap';
11
+ import { FilterExpression } from './FilterExpression';
12
+ import { LanguageStringMap } from './LanguageStringMap';
13
+ import { WebButton } from './WebButton';
13
14
  import { HttpFile } from '../http/http';
14
15
 
15
16
  export class BasicNotificationAllOf {
@@ -61,10 +62,6 @@ export class BasicNotificationAllOf {
61
62
  */
62
63
  'is_chrome'?: boolean;
63
64
  /**
64
- * Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS.
65
- */
66
- 'channel_for_external_user_ids'?: string;
67
- /**
68
65
  * Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434.
69
66
  */
70
67
  'app_id'?: string;
@@ -72,9 +69,9 @@ export class BasicNotificationAllOf {
72
69
  * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
73
70
  */
74
71
  'external_id'?: string;
75
- 'contents'?: StringMap;
76
- 'headings'?: StringMap;
77
- 'subtitle'?: StringMap;
72
+ 'contents'?: LanguageStringMap;
73
+ 'headings'?: LanguageStringMap;
74
+ 'subtitle'?: LanguageStringMap;
78
75
  /**
79
76
  * Channel: Push Notifications Platform: Huawei A custom map of data that is passed back to your app. Same as using Additional Data within the dashboard. Can use up to 2048 bytes of data. Example: {\"abc\": 123, \"foo\": \"bar\", \"event_performed\": true, \"amount\": 12.1}
80
77
  */
@@ -142,7 +139,7 @@ export class BasicNotificationAllOf {
142
139
  /**
143
140
  * Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}]
144
141
  */
145
- 'web_buttons'?: Array<Button>;
142
+ 'web_buttons'?: Array<WebButton>;
146
143
  /**
147
144
  * Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category.
148
145
  */
@@ -321,6 +318,14 @@ export class BasicNotificationAllOf {
321
318
  */
322
319
  'summary_arg_count'?: number;
323
320
  /**
321
+ * Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1.
322
+ */
323
+ 'ios_relevance_score'?: number;
324
+ /**
325
+ * Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: [\'active\', \'passive\', \'time_sensitive\', \'critical\']. Default is active.
326
+ */
327
+ 'ios_interruption_level'?: string;
328
+ /**
324
329
  * Channel: Email Required. The subject of the email.
325
330
  */
326
331
  'email_subject'?: string;
@@ -352,7 +357,7 @@ export class BasicNotificationAllOf {
352
357
  * Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs.
353
358
  */
354
359
  'sms_media_urls'?: Array<string>;
355
- 'filters'?: Array<Filter>;
360
+ 'filters'?: Array<FilterExpression>;
356
361
  /**
357
362
  * Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25}
358
363
  */
@@ -445,12 +450,6 @@ export class BasicNotificationAllOf {
445
450
  "type": "boolean",
446
451
  "format": ""
447
452
  },
448
- {
449
- "name": "channel_for_external_user_ids",
450
- "baseName": "channel_for_external_user_ids",
451
- "type": "string",
452
- "format": ""
453
- },
454
453
  {
455
454
  "name": "app_id",
456
455
  "baseName": "app_id",
@@ -466,19 +465,19 @@ export class BasicNotificationAllOf {
466
465
  {
467
466
  "name": "contents",
468
467
  "baseName": "contents",
469
- "type": "StringMap",
468
+ "type": "LanguageStringMap",
470
469
  "format": ""
471
470
  },
472
471
  {
473
472
  "name": "headings",
474
473
  "baseName": "headings",
475
- "type": "StringMap",
474
+ "type": "LanguageStringMap",
476
475
  "format": ""
477
476
  },
478
477
  {
479
478
  "name": "subtitle",
480
479
  "baseName": "subtitle",
481
- "type": "StringMap",
480
+ "type": "LanguageStringMap",
482
481
  "format": ""
483
482
  },
484
483
  {
@@ -580,7 +579,7 @@ export class BasicNotificationAllOf {
580
579
  {
581
580
  "name": "web_buttons",
582
581
  "baseName": "web_buttons",
583
- "type": "Array<Button>",
582
+ "type": "Array<WebButton>",
584
583
  "format": ""
585
584
  },
586
585
  {
@@ -853,6 +852,18 @@ export class BasicNotificationAllOf {
853
852
  "type": "number",
854
853
  "format": ""
855
854
  },
855
+ {
856
+ "name": "ios_relevance_score",
857
+ "baseName": "ios_relevance_score",
858
+ "type": "number",
859
+ "format": ""
860
+ },
861
+ {
862
+ "name": "ios_interruption_level",
863
+ "baseName": "ios_interruption_level",
864
+ "type": "string",
865
+ "format": ""
866
+ },
856
867
  {
857
868
  "name": "email_subject",
858
869
  "baseName": "email_subject",
@@ -904,7 +915,7 @@ export class BasicNotificationAllOf {
904
915
  {
905
916
  "name": "filters",
906
917
  "baseName": "filters",
907
- "type": "Array<Filter>",
918
+ "type": "Array<FilterExpression>",
908
919
  "format": ""
909
920
  },
910
921
  {
@@ -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.2
5
+ * API Version: 5.0.0-alpha-01
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/Button.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.2
5
+ * API Version: 5.0.0-alpha-01
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,21 +2,19 @@
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.2
5
+ * API Version: 5.0.0-alpha-01
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
- import { Notification200Errors } from './Notification200Errors';
10
9
  import { HttpFile } from '../http/http';
11
10
 
12
11
  export class CreateNotificationSuccessResponse {
13
12
  'id'?: string;
13
+ 'external_id'?: string;
14
14
  /**
15
- * Estimated number of subscribers targetted by notification.
15
+ * Errors include the identifiers that are invalid, or that there are no subscribers.
16
16
  */
17
- 'recipients'?: number;
18
- 'external_id'?: string;
19
- 'errors'?: Notification200Errors;
17
+ 'errors'?: any;
20
18
 
21
19
  static readonly discriminator: string | undefined = undefined;
22
20
 
@@ -27,12 +25,6 @@ export class CreateNotificationSuccessResponse {
27
25
  "type": "string",
28
26
  "format": ""
29
27
  },
30
- {
31
- "name": "recipients",
32
- "baseName": "recipients",
33
- "type": "number",
34
- "format": ""
35
- },
36
28
  {
37
29
  "name": "external_id",
38
30
  "baseName": "external_id",
@@ -42,7 +34,7 @@ export class CreateNotificationSuccessResponse {
42
34
  {
43
35
  "name": "errors",
44
36
  "baseName": "errors",
45
- "type": "Notification200Errors",
37
+ "type": "any",
46
38
  "format": ""
47
39
  } ];
48
40
 
@@ -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.2
5
+ * API Version: 5.0.0-alpha-01
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.2
5
+ * API Version: 5.0.0-alpha-01
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.2
5
+ * API Version: 5.0.0-alpha-01
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.2
5
+ * API Version: 5.0.0-alpha-01
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.2
5
+ * API Version: 5.0.0-alpha-01
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.2
5
+ * API Version: 5.0.0-alpha-01
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.2
5
+ * API Version: 5.0.0-alpha-01
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,13 +2,13 @@
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.2
5
+ * API Version: 5.0.0-alpha-01
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { HttpFile } from '../http/http';
10
10
 
11
- export class ExportPlayersRequestBody {
11
+ export class ExportSubscriptionsRequestBody {
12
12
  /**
13
13
  * Additional fields that you wish to include. Currently supports location, country, rooted, notification_types, ip, external_user_id, web_auth, and web_p256.
14
14
  */
@@ -45,7 +45,7 @@ export class ExportPlayersRequestBody {
45
45
  } ];
46
46
 
47
47
  static getAttributeTypeMap() {
48
- return ExportPlayersRequestBody.attributeTypeMap;
48
+ return ExportSubscriptionsRequestBody.attributeTypeMap;
49
49
  }
50
50
 
51
51
  public constructor() {
@@ -2,13 +2,13 @@
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.2
5
+ * API Version: 5.0.0-alpha-01
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { HttpFile } from '../http/http';
10
10
 
11
- export class ExportPlayersSuccessResponse {
11
+ export class ExportSubscriptionsSuccessResponse {
12
12
  'csv_file_url'?: string;
13
13
 
14
14
  static readonly discriminator: string | undefined = undefined;
@@ -22,7 +22,7 @@ export class ExportPlayersSuccessResponse {
22
22
  } ];
23
23
 
24
24
  static getAttributeTypeMap() {
25
- return ExportPlayersSuccessResponse.attributeTypeMap;
25
+ return ExportSubscriptionsSuccessResponse.attributeTypeMap;
26
26
  }
27
27
 
28
28
  public constructor() {
package/models/Filter.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.2
5
+ * API Version: 5.0.0-alpha-01
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -10,9 +10,9 @@ import { HttpFile } from '../http/http';
10
10
 
11
11
  export class Filter {
12
12
  /**
13
- * Name of the field to use as the first operand in the filter expression.
13
+ * Required. Name of the field to use as the first operand in the filter expression.
14
14
  */
15
- 'field': string;
15
+ 'field'?: string;
16
16
  /**
17
17
  * If `field` is `tag`, this field is *required* to specify `key` inside the tags.
18
18
  */
@@ -22,9 +22,25 @@ export class Filter {
22
22
  */
23
23
  'value'?: string;
24
24
  /**
25
- * Operator of a filter expression.
25
+ * If `field` is session-related, this is *required* to specify the number of hours before or after the user\'s session.
26
26
  */
27
- 'relation': FilterRelationEnum;
27
+ 'hours_ago'?: string;
28
+ /**
29
+ * If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`.
30
+ */
31
+ 'radius'?: number;
32
+ /**
33
+ * If `field` is `location`, this is *required* to specify the user\'s latitude.
34
+ */
35
+ 'lat'?: number;
36
+ /**
37
+ * If `field` is `location`, this is *required* to specify the user\'s longitude.
38
+ */
39
+ 'long'?: number;
40
+ /**
41
+ * Required. Operator of a filter expression.
42
+ */
43
+ 'relation'?: FilterRelationEnum;
28
44
 
29
45
  static readonly discriminator: string | undefined = undefined;
30
46
 
@@ -47,6 +63,30 @@ export class Filter {
47
63
  "type": "string",
48
64
  "format": ""
49
65
  },
66
+ {
67
+ "name": "hours_ago",
68
+ "baseName": "hours_ago",
69
+ "type": "string",
70
+ "format": ""
71
+ },
72
+ {
73
+ "name": "radius",
74
+ "baseName": "radius",
75
+ "type": "number",
76
+ "format": ""
77
+ },
78
+ {
79
+ "name": "lat",
80
+ "baseName": "lat",
81
+ "type": "number",
82
+ "format": ""
83
+ },
84
+ {
85
+ "name": "long",
86
+ "baseName": "long",
87
+ "type": "number",
88
+ "format": ""
89
+ },
50
90
  {
51
91
  "name": "relation",
52
92
  "baseName": "relation",