@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,37 +2,26 @@ export * from './App';
2
2
  export * from './BasicNotification';
3
3
  export * from './BasicNotificationAllOf';
4
4
  export * from './BasicNotificationAllOfAndroidBackgroundLayout';
5
- export * from './BeginLiveActivityRequest';
6
5
  export * from './Button';
7
- export * from './CancelNotificationSuccessResponse';
8
6
  export * from './CreateNotificationSuccessResponse';
9
- export * from './CreatePlayerSuccessResponse';
10
7
  export * from './CreateSegmentConflictResponse';
11
8
  export * from './CreateSegmentSuccessResponse';
12
- export * from './CreateSubscriptionRequestBody';
13
9
  export * from './CreateUserConflictResponse';
14
10
  export * from './CreateUserConflictResponseErrorsInner';
15
11
  export * from './CreateUserConflictResponseErrorsItemsMeta';
16
- export * from './DeletePlayerNotFoundResponse';
17
- export * from './DeletePlayerSuccessResponse';
18
- export * from './DeleteSegmentNotFoundResponse';
19
- export * from './DeleteSegmentSuccessResponse';
20
12
  export * from './DeliveryData';
21
13
  export * from './ExportEventsSuccessResponse';
22
- export * from './ExportPlayersRequestBody';
23
- export * from './ExportPlayersSuccessResponse';
14
+ export * from './ExportSubscriptionsRequestBody';
15
+ export * from './ExportSubscriptionsSuccessResponse';
24
16
  export * from './Filter';
25
- export * from './FilterExpressions';
17
+ export * from './FilterExpression';
26
18
  export * from './GenericError';
27
- export * from './GenericErrorErrorsInner';
28
- export * from './GetNotificationRequestBody';
29
- export * from './InlineResponse200';
30
- export * from './InlineResponse2003';
31
- export * from './InlineResponse201';
32
- export * from './InlineResponse202';
19
+ export * from './GenericSuccessBoolResponse';
20
+ export * from './GetNotificationHistoryRequestBody';
21
+ export * from './GetSegmentsSuccessResponse';
33
22
  export * from './InvalidIdentifierError';
23
+ export * from './LanguageStringMap';
34
24
  export * from './Notification';
35
- export * from './Notification200Errors';
36
25
  export * from './NotificationAllOf';
37
26
  export * from './NotificationHistorySuccessResponse';
38
27
  export * from './NotificationSlice';
@@ -45,71 +34,54 @@ export * from './OutcomesData';
45
34
  export * from './PlatformDeliveryData';
46
35
  export * from './PlatformDeliveryDataEmailAllOf';
47
36
  export * from './PlatformDeliveryDataSmsAllOf';
48
- export * from './Player';
49
- export * from './PlayerNotificationTarget';
50
- export * from './PlayerNotificationTargetIncludeAliases';
51
- export * from './PlayerSlice';
37
+ export * from './PropertiesBody';
52
38
  export * from './PropertiesDeltas';
53
39
  export * from './PropertiesObject';
54
40
  export * from './Purchase';
55
- export * from './RateLimiterError';
41
+ export * from './RateLimitError';
56
42
  export * from './Segment';
43
+ export * from './SegmentData';
57
44
  export * from './SegmentNotificationTarget';
58
- export * from './StringMap';
59
- export * from './SubscriptionObject';
45
+ export * from './Subscription';
46
+ export * from './SubscriptionBody';
47
+ export * from './SubscriptionNotificationTarget';
60
48
  export * from './TransferSubscriptionRequestBody';
61
49
  export * from './UpdateLiveActivityRequest';
62
50
  export * from './UpdateLiveActivitySuccessResponse';
63
- export * from './UpdatePlayerSuccessResponse';
64
- export * from './UpdatePlayerTagsRequestBody';
65
- export * from './UpdatePlayerTagsSuccessResponse';
66
- export * from './UpdateSubscriptionRequestBody';
67
51
  export * from './UpdateUserRequest';
68
52
  export * from './User';
69
- export * from './UserIdentityRequestBody';
70
- export * from './UserIdentityResponse';
71
- export * from './UserSubscriptionOptions';
53
+ export * from './UserIdentityBody';
54
+ export * from './WebButton';
72
55
 
73
56
  import { App , AppApnsEnvEnum } from './App';
74
- import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
75
- import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
57
+ import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
58
+ import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
76
59
  import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
77
- import { BeginLiveActivityRequest } from './BeginLiveActivityRequest';
78
60
  import { Button } from './Button';
79
- import { CancelNotificationSuccessResponse } from './CancelNotificationSuccessResponse';
80
61
  import { CreateNotificationSuccessResponse } from './CreateNotificationSuccessResponse';
81
- import { CreatePlayerSuccessResponse } from './CreatePlayerSuccessResponse';
82
62
  import { CreateSegmentConflictResponse } from './CreateSegmentConflictResponse';
83
63
  import { CreateSegmentSuccessResponse } from './CreateSegmentSuccessResponse';
84
- import { CreateSubscriptionRequestBody } from './CreateSubscriptionRequestBody';
85
64
  import { CreateUserConflictResponse } from './CreateUserConflictResponse';
86
65
  import { CreateUserConflictResponseErrorsInner } from './CreateUserConflictResponseErrorsInner';
87
66
  import { CreateUserConflictResponseErrorsItemsMeta } from './CreateUserConflictResponseErrorsItemsMeta';
88
- import { DeletePlayerNotFoundResponse } from './DeletePlayerNotFoundResponse';
89
- import { DeletePlayerSuccessResponse } from './DeletePlayerSuccessResponse';
90
- import { DeleteSegmentNotFoundResponse } from './DeleteSegmentNotFoundResponse';
91
- import { DeleteSegmentSuccessResponse } from './DeleteSegmentSuccessResponse';
92
67
  import { DeliveryData } from './DeliveryData';
93
68
  import { ExportEventsSuccessResponse } from './ExportEventsSuccessResponse';
94
- import { ExportPlayersRequestBody } from './ExportPlayersRequestBody';
95
- import { ExportPlayersSuccessResponse } from './ExportPlayersSuccessResponse';
96
- import { Filter , FilterRelationEnum } from './Filter';
97
- import { FilterExpressions , FilterExpressionsRelationEnum , FilterExpressionsOperatorEnum } from './FilterExpressions';
69
+ import { ExportSubscriptionsRequestBody } from './ExportSubscriptionsRequestBody';
70
+ import { ExportSubscriptionsSuccessResponse } from './ExportSubscriptionsSuccessResponse';
71
+ import { Filter , FilterRelationEnum } from './Filter';
72
+ import { FilterExpression , FilterExpressionRelationEnum , FilterExpressionOperatorEnum } from './FilterExpression';
98
73
  import { GenericError } from './GenericError';
99
- import { GenericErrorErrorsInner } from './GenericErrorErrorsInner';
100
- import { GetNotificationRequestBody, GetNotificationRequestBodyEventsEnum } from './GetNotificationRequestBody';
101
- import { InlineResponse200 } from './InlineResponse200';
102
- import { InlineResponse2003 } from './InlineResponse2003';
103
- import { InlineResponse201 } from './InlineResponse201';
104
- import { InlineResponse202 } from './InlineResponse202';
74
+ import { GenericSuccessBoolResponse } from './GenericSuccessBoolResponse';
75
+ import { GetNotificationHistoryRequestBody, GetNotificationHistoryRequestBodyEventsEnum } from './GetNotificationHistoryRequestBody';
76
+ import { GetSegmentsSuccessResponse } from './GetSegmentsSuccessResponse';
105
77
  import { InvalidIdentifierError } from './InvalidIdentifierError';
106
- import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
107
- import { Notification200Errors } from './Notification200Errors';
78
+ import { LanguageStringMap } from './LanguageStringMap';
79
+ import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
108
80
  import { NotificationAllOf } from './NotificationAllOf';
109
81
  import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
110
82
  import { NotificationSlice } from './NotificationSlice';
111
- import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
112
- import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
83
+ import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
84
+ import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
113
85
  import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
114
86
  import { Operator, OperatorOperatorEnum } from './Operator';
115
87
  import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';
@@ -117,30 +89,24 @@ import { OutcomesData } from './OutcomesData';
117
89
  import { PlatformDeliveryData } from './PlatformDeliveryData';
118
90
  import { PlatformDeliveryDataEmailAllOf } from './PlatformDeliveryDataEmailAllOf';
119
91
  import { PlatformDeliveryDataSmsAllOf } from './PlatformDeliveryDataSmsAllOf';
120
- import { Player } from './Player';
121
- import { PlayerNotificationTarget , PlayerNotificationTargetTargetChannelEnum } from './PlayerNotificationTarget';
122
- import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
123
- import { PlayerSlice } from './PlayerSlice';
92
+ import { PropertiesBody } from './PropertiesBody';
124
93
  import { PropertiesDeltas } from './PropertiesDeltas';
125
94
  import { PropertiesObject } from './PropertiesObject';
126
95
  import { Purchase } from './Purchase';
127
- import { RateLimiterError } from './RateLimiterError';
96
+ import { RateLimitError } from './RateLimitError';
128
97
  import { Segment } from './Segment';
98
+ import { SegmentData } from './SegmentData';
129
99
  import { SegmentNotificationTarget } from './SegmentNotificationTarget';
130
- import { StringMap } from './StringMap';
131
- import { SubscriptionObject , SubscriptionObjectTypeEnum } from './SubscriptionObject';
100
+ import { Subscription , SubscriptionTypeEnum } from './Subscription';
101
+ import { SubscriptionBody } from './SubscriptionBody';
102
+ import { SubscriptionNotificationTarget , SubscriptionNotificationTargetTargetChannelEnum } from './SubscriptionNotificationTarget';
132
103
  import { TransferSubscriptionRequestBody } from './TransferSubscriptionRequestBody';
133
- import { UpdateLiveActivityRequest, UpdateLiveActivityRequestNameEnum , UpdateLiveActivityRequestEventEnum } from './UpdateLiveActivityRequest';
104
+ import { UpdateLiveActivityRequest , UpdateLiveActivityRequestEventEnum } from './UpdateLiveActivityRequest';
134
105
  import { UpdateLiveActivitySuccessResponse } from './UpdateLiveActivitySuccessResponse';
135
- import { UpdatePlayerSuccessResponse } from './UpdatePlayerSuccessResponse';
136
- import { UpdatePlayerTagsRequestBody } from './UpdatePlayerTagsRequestBody';
137
- import { UpdatePlayerTagsSuccessResponse } from './UpdatePlayerTagsSuccessResponse';
138
- import { UpdateSubscriptionRequestBody } from './UpdateSubscriptionRequestBody';
139
106
  import { UpdateUserRequest } from './UpdateUserRequest';
140
107
  import { User } from './User';
141
- import { UserIdentityRequestBody } from './UserIdentityRequestBody';
142
- import { UserIdentityResponse } from './UserIdentityResponse';
143
- import { UserSubscriptionOptions } from './UserSubscriptionOptions';
108
+ import { UserIdentityBody } from './UserIdentityBody';
109
+ import { WebButton } from './WebButton';
144
110
 
145
111
  /* tslint:disable:no-unused-variable */
146
112
  let primitives = [
@@ -167,9 +133,9 @@ let enumsMap: Set<string> = new Set<string>([
167
133
  "BasicNotificationAggregationEnum",
168
134
  "BasicNotificationAllOfAggregationEnum",
169
135
  "FilterRelationEnum",
170
- "FilterExpressionsRelationEnum",
171
- "FilterExpressionsOperatorEnum",
172
- "GetNotificationRequestBodyEventsEnum",
136
+ "FilterExpressionRelationEnum",
137
+ "FilterExpressionOperatorEnum",
138
+ "GetNotificationHistoryRequestBodyEventsEnum",
173
139
  "NotificationTargetChannelEnum",
174
140
  "NotificationAggregationEnum",
175
141
  "NotificationTargetTargetChannelEnum",
@@ -177,9 +143,8 @@ let enumsMap: Set<string> = new Set<string>([
177
143
  "NotificationWithMetaAggregationEnum",
178
144
  "OperatorOperatorEnum",
179
145
  "OutcomeDataAggregationEnum",
180
- "PlayerNotificationTargetTargetChannelEnum",
181
- "SubscriptionObjectTypeEnum",
182
- "UpdateLiveActivityRequestNameEnum",
146
+ "SubscriptionTypeEnum",
147
+ "SubscriptionNotificationTargetTargetChannelEnum",
183
148
  "UpdateLiveActivityRequestEventEnum",
184
149
  ]);
185
150
 
@@ -188,37 +153,26 @@ let typeMap: {[index: string]: any} = {
188
153
  "BasicNotification": BasicNotification,
189
154
  "BasicNotificationAllOf": BasicNotificationAllOf,
190
155
  "BasicNotificationAllOfAndroidBackgroundLayout": BasicNotificationAllOfAndroidBackgroundLayout,
191
- "BeginLiveActivityRequest": BeginLiveActivityRequest,
192
156
  "Button": Button,
193
- "CancelNotificationSuccessResponse": CancelNotificationSuccessResponse,
194
157
  "CreateNotificationSuccessResponse": CreateNotificationSuccessResponse,
195
- "CreatePlayerSuccessResponse": CreatePlayerSuccessResponse,
196
158
  "CreateSegmentConflictResponse": CreateSegmentConflictResponse,
197
159
  "CreateSegmentSuccessResponse": CreateSegmentSuccessResponse,
198
- "CreateSubscriptionRequestBody": CreateSubscriptionRequestBody,
199
160
  "CreateUserConflictResponse": CreateUserConflictResponse,
200
161
  "CreateUserConflictResponseErrorsInner": CreateUserConflictResponseErrorsInner,
201
162
  "CreateUserConflictResponseErrorsItemsMeta": CreateUserConflictResponseErrorsItemsMeta,
202
- "DeletePlayerNotFoundResponse": DeletePlayerNotFoundResponse,
203
- "DeletePlayerSuccessResponse": DeletePlayerSuccessResponse,
204
- "DeleteSegmentNotFoundResponse": DeleteSegmentNotFoundResponse,
205
- "DeleteSegmentSuccessResponse": DeleteSegmentSuccessResponse,
206
163
  "DeliveryData": DeliveryData,
207
164
  "ExportEventsSuccessResponse": ExportEventsSuccessResponse,
208
- "ExportPlayersRequestBody": ExportPlayersRequestBody,
209
- "ExportPlayersSuccessResponse": ExportPlayersSuccessResponse,
165
+ "ExportSubscriptionsRequestBody": ExportSubscriptionsRequestBody,
166
+ "ExportSubscriptionsSuccessResponse": ExportSubscriptionsSuccessResponse,
210
167
  "Filter": Filter,
211
- "FilterExpressions": FilterExpressions,
168
+ "FilterExpression": FilterExpression,
212
169
  "GenericError": GenericError,
213
- "GenericErrorErrorsInner": GenericErrorErrorsInner,
214
- "GetNotificationRequestBody": GetNotificationRequestBody,
215
- "InlineResponse200": InlineResponse200,
216
- "InlineResponse2003": InlineResponse2003,
217
- "InlineResponse201": InlineResponse201,
218
- "InlineResponse202": InlineResponse202,
170
+ "GenericSuccessBoolResponse": GenericSuccessBoolResponse,
171
+ "GetNotificationHistoryRequestBody": GetNotificationHistoryRequestBody,
172
+ "GetSegmentsSuccessResponse": GetSegmentsSuccessResponse,
219
173
  "InvalidIdentifierError": InvalidIdentifierError,
174
+ "LanguageStringMap": LanguageStringMap,
220
175
  "Notification": Notification,
221
- "Notification200Errors": Notification200Errors,
222
176
  "NotificationAllOf": NotificationAllOf,
223
177
  "NotificationHistorySuccessResponse": NotificationHistorySuccessResponse,
224
178
  "NotificationSlice": NotificationSlice,
@@ -231,30 +185,24 @@ let typeMap: {[index: string]: any} = {
231
185
  "PlatformDeliveryData": PlatformDeliveryData,
232
186
  "PlatformDeliveryDataEmailAllOf": PlatformDeliveryDataEmailAllOf,
233
187
  "PlatformDeliveryDataSmsAllOf": PlatformDeliveryDataSmsAllOf,
234
- "Player": Player,
235
- "PlayerNotificationTarget": PlayerNotificationTarget,
236
- "PlayerNotificationTargetIncludeAliases": PlayerNotificationTargetIncludeAliases,
237
- "PlayerSlice": PlayerSlice,
188
+ "PropertiesBody": PropertiesBody,
238
189
  "PropertiesDeltas": PropertiesDeltas,
239
190
  "PropertiesObject": PropertiesObject,
240
191
  "Purchase": Purchase,
241
- "RateLimiterError": RateLimiterError,
192
+ "RateLimitError": RateLimitError,
242
193
  "Segment": Segment,
194
+ "SegmentData": SegmentData,
243
195
  "SegmentNotificationTarget": SegmentNotificationTarget,
244
- "StringMap": StringMap,
245
- "SubscriptionObject": SubscriptionObject,
196
+ "Subscription": Subscription,
197
+ "SubscriptionBody": SubscriptionBody,
198
+ "SubscriptionNotificationTarget": SubscriptionNotificationTarget,
246
199
  "TransferSubscriptionRequestBody": TransferSubscriptionRequestBody,
247
200
  "UpdateLiveActivityRequest": UpdateLiveActivityRequest,
248
201
  "UpdateLiveActivitySuccessResponse": UpdateLiveActivitySuccessResponse,
249
- "UpdatePlayerSuccessResponse": UpdatePlayerSuccessResponse,
250
- "UpdatePlayerTagsRequestBody": UpdatePlayerTagsRequestBody,
251
- "UpdatePlayerTagsSuccessResponse": UpdatePlayerTagsSuccessResponse,
252
- "UpdateSubscriptionRequestBody": UpdateSubscriptionRequestBody,
253
202
  "UpdateUserRequest": UpdateUserRequest,
254
203
  "User": User,
255
- "UserIdentityRequestBody": UserIdentityRequestBody,
256
- "UserIdentityResponse": UserIdentityResponse,
257
- "UserSubscriptionOptions": UserSubscriptionOptions,
204
+ "UserIdentityBody": UserIdentityBody,
205
+ "WebButton": WebButton,
258
206
  }
259
207
 
260
208
  export class ObjectSerializer {
@@ -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,14 +2,14 @@
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 { PropertiesObject } from './PropertiesObject';
10
10
  import { HttpFile } from '../http/http';
11
11
 
12
- export class InlineResponse202 {
12
+ export class PropertiesBody {
13
13
  'properties'?: PropertiesObject;
14
14
 
15
15
  static readonly discriminator: string | undefined = undefined;
@@ -23,7 +23,7 @@ export class InlineResponse202 {
23
23
  } ];
24
24
 
25
25
  static getAttributeTypeMap() {
26
- return InlineResponse202.attributeTypeMap;
26
+ return PropertiesBody.attributeTypeMap;
27
27
  }
28
28
 
29
29
  public constructor() {
@@ -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,34 +2,34 @@
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 CreatePlayerSuccessResponse {
12
- 'success'?: boolean;
13
- 'id'?: string;
11
+ export class RateLimitError {
12
+ 'errors'?: Array<string>;
13
+ 'limit'?: string;
14
14
 
15
15
  static readonly discriminator: string | undefined = undefined;
16
16
 
17
17
  static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
18
18
  {
19
- "name": "success",
20
- "baseName": "success",
21
- "type": "boolean",
19
+ "name": "errors",
20
+ "baseName": "errors",
21
+ "type": "Array<string>",
22
22
  "format": ""
23
23
  },
24
24
  {
25
- "name": "id",
26
- "baseName": "id",
25
+ "name": "limit",
26
+ "baseName": "limit",
27
27
  "type": "string",
28
28
  "format": ""
29
29
  } ];
30
30
 
31
31
  static getAttributeTypeMap() {
32
- return CreatePlayerSuccessResponse.attributeTypeMap;
32
+ return RateLimitError.attributeTypeMap;
33
33
  }
34
34
 
35
35
  public constructor() {
package/models/Segment.ts CHANGED
@@ -2,11 +2,11 @@
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 { FilterExpressions } from './FilterExpressions';
9
+ import { FilterExpression } from './FilterExpression';
10
10
  import { HttpFile } from '../http/http';
11
11
 
12
12
  export class Segment {
@@ -21,7 +21,7 @@ export class Segment {
21
21
  /**
22
22
  * Filter or operators the segment will have. For a list of available filters with details, please see Send to Users Based on Filters.
23
23
  */
24
- 'filters': Array<FilterExpressions>;
24
+ 'filters': Array<FilterExpression>;
25
25
 
26
26
  static readonly discriminator: string | undefined = undefined;
27
27
 
@@ -41,7 +41,7 @@ export class Segment {
41
41
  {
42
42
  "name": "filters",
43
43
  "baseName": "filters",
44
- "type": "Array<FilterExpressions>",
44
+ "type": "Array<FilterExpression>",
45
45
  "format": ""
46
46
  } ];
47
47
 
@@ -0,0 +1,94 @@
1
+ /**
2
+ * OneSignal
3
+ * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
+ *
5
+ * API Version: 5.0.0-alpha-01
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class SegmentData {
12
+ /**
13
+ * The segment ID
14
+ */
15
+ 'id'?: string;
16
+ /**
17
+ * The segment name
18
+ */
19
+ 'name'?: string;
20
+ /**
21
+ * Date segment created
22
+ */
23
+ 'created_at'?: string;
24
+ /**
25
+ * Date segment last updated
26
+ */
27
+ 'updated_at'?: string;
28
+ /**
29
+ * The app id
30
+ */
31
+ 'app_id'?: string;
32
+ /**
33
+ * Is the segment read only?
34
+ */
35
+ 'read_only'?: boolean;
36
+ /**
37
+ * Is the segment active?
38
+ */
39
+ 'is_active'?: boolean;
40
+
41
+ static readonly discriminator: string | undefined = undefined;
42
+
43
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
44
+ {
45
+ "name": "id",
46
+ "baseName": "id",
47
+ "type": "string",
48
+ "format": ""
49
+ },
50
+ {
51
+ "name": "name",
52
+ "baseName": "name",
53
+ "type": "string",
54
+ "format": ""
55
+ },
56
+ {
57
+ "name": "created_at",
58
+ "baseName": "created_at",
59
+ "type": "string",
60
+ "format": ""
61
+ },
62
+ {
63
+ "name": "updated_at",
64
+ "baseName": "updated_at",
65
+ "type": "string",
66
+ "format": ""
67
+ },
68
+ {
69
+ "name": "app_id",
70
+ "baseName": "app_id",
71
+ "type": "string",
72
+ "format": ""
73
+ },
74
+ {
75
+ "name": "read_only",
76
+ "baseName": "read_only",
77
+ "type": "boolean",
78
+ "format": ""
79
+ },
80
+ {
81
+ "name": "is_active",
82
+ "baseName": "is_active",
83
+ "type": "boolean",
84
+ "format": ""
85
+ } ];
86
+
87
+ static getAttributeTypeMap() {
88
+ return SegmentData.attributeTypeMap;
89
+ }
90
+
91
+ public constructor() {
92
+ }
93
+ }
94
+
@@ -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,15 +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 { HttpFile } from '../http/http';
10
10
 
11
- export class SubscriptionObject {
11
+ export class Subscription {
12
12
  'id'?: string;
13
- 'type'?: SubscriptionObjectTypeEnum;
13
+ 'type'?: SubscriptionTypeEnum;
14
14
  'token'?: string;
15
15
  'enabled'?: boolean;
16
16
  'notification_types'?: number;
@@ -39,7 +39,7 @@ export class SubscriptionObject {
39
39
  {
40
40
  "name": "type",
41
41
  "baseName": "type",
42
- "type": "SubscriptionObjectTypeEnum",
42
+ "type": "SubscriptionTypeEnum",
43
43
  "format": ""
44
44
  },
45
45
  {
@@ -134,7 +134,7 @@ export class SubscriptionObject {
134
134
  } ];
135
135
 
136
136
  static getAttributeTypeMap() {
137
- return SubscriptionObject.attributeTypeMap;
137
+ return Subscription.attributeTypeMap;
138
138
  }
139
139
 
140
140
  public constructor() {
@@ -142,5 +142,5 @@ export class SubscriptionObject {
142
142
  }
143
143
 
144
144
 
145
- export type SubscriptionObjectTypeEnum = "iOSPush" | "AndroidPush" | "FireOSPush" | "ChromeExtensionPush" | "ChromePush" | "WindowsPush" | "SafariLegacyPush" | "FirefoxPush" | "macOSPush" | "HuaweiPush" | "SafariPush" | "Email" | "SMS" ;
145
+ export type SubscriptionTypeEnum = "iOSPush" | "AndroidPush" | "FireOSPush" | "ChromeExtensionPush" | "ChromePush" | "WindowsPush" | "SafariLegacyPush" | "FirefoxPush" | "macOSPush" | "HuaweiPush" | "SafariPush" | "Email" | "SMS" ;
146
146