@onesignal/node-onesignal 1.0.0-beta8 → 2.0.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 (184) hide show
  1. package/.github/workflows/Zapier.yml +34 -0
  2. package/CHANGELOG.md +15 -0
  3. package/DefaultApi.md +988 -3
  4. package/README.md +152 -24
  5. package/apis/DefaultApi.ts +1339 -98
  6. package/dist/apis/DefaultApi.d.ts +39 -0
  7. package/dist/apis/DefaultApi.js +1490 -408
  8. package/dist/apis/DefaultApi.js.map +1 -1
  9. package/dist/models/BasicNotification.d.ts +4 -0
  10. package/dist/models/BasicNotification.js +12 -0
  11. package/dist/models/BasicNotification.js.map +1 -1
  12. package/dist/models/CreateNotificationSuccessResponse.d.ts +2 -2
  13. package/dist/models/CreateSubscriptionRequestBody.d.ts +19 -0
  14. package/dist/models/CreateSubscriptionRequestBody.js +28 -0
  15. package/dist/models/CreateSubscriptionRequestBody.js.map +1 -0
  16. package/dist/models/CreateUserConflictResponse.d.ts +18 -0
  17. package/dist/models/CreateUserConflictResponse.js +22 -0
  18. package/dist/models/CreateUserConflictResponse.js.map +1 -0
  19. package/dist/models/CreateUserConflictResponseErrorsInner.d.ts +20 -0
  20. package/dist/models/CreateUserConflictResponseErrorsInner.js +34 -0
  21. package/dist/models/CreateUserConflictResponseErrorsInner.js.map +1 -0
  22. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.d.ts +17 -0
  23. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +22 -0
  24. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +1 -0
  25. package/dist/models/IdentifyUserConflictResponse.d.ts +18 -0
  26. package/dist/models/IdentifyUserConflictResponse.js +22 -0
  27. package/dist/models/IdentifyUserConflictResponse.js.map +1 -0
  28. package/dist/models/IdentifyUserConflictResponseErrorsInner.d.ts +18 -0
  29. package/dist/models/IdentifyUserConflictResponseErrorsInner.js +28 -0
  30. package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +1 -0
  31. package/dist/models/InlineResponse200.d.ts +19 -0
  32. package/dist/models/InlineResponse200.js +22 -0
  33. package/dist/models/InlineResponse200.js.map +1 -0
  34. package/dist/models/InlineResponse2003.d.ts +17 -0
  35. package/dist/models/InlineResponse2003.js +22 -0
  36. package/dist/models/InlineResponse2003.js.map +1 -0
  37. package/dist/models/InlineResponse201.d.ts +18 -0
  38. package/dist/models/InlineResponse201.js +22 -0
  39. package/dist/models/InlineResponse201.js.map +1 -0
  40. package/dist/models/InlineResponse202.d.ts +18 -0
  41. package/dist/models/InlineResponse202.js +22 -0
  42. package/dist/models/InlineResponse202.js.map +1 -0
  43. package/dist/models/Notification.d.ts +4 -0
  44. package/dist/models/Notification.js +12 -0
  45. package/dist/models/Notification.js.map +1 -1
  46. package/dist/models/NotificationTarget.d.ts +4 -0
  47. package/dist/models/NotificationTarget.js +12 -0
  48. package/dist/models/NotificationTarget.js.map +1 -1
  49. package/dist/models/NotificationWithMeta.d.ts +4 -0
  50. package/dist/models/NotificationWithMeta.js +12 -0
  51. package/dist/models/NotificationWithMeta.js.map +1 -1
  52. package/dist/models/ObjectSerializer.d.ts +21 -0
  53. package/dist/models/ObjectSerializer.js +69 -0
  54. package/dist/models/ObjectSerializer.js.map +1 -1
  55. package/dist/models/Player.d.ts +1 -1
  56. package/dist/models/Player.js +1 -1
  57. package/dist/models/Player.js.map +1 -1
  58. package/dist/models/PlayerNotificationTarget.d.ts +4 -0
  59. package/dist/models/PlayerNotificationTarget.js +12 -0
  60. package/dist/models/PlayerNotificationTarget.js.map +1 -1
  61. package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +17 -0
  62. package/dist/models/PlayerNotificationTargetIncludeAliases.js +22 -0
  63. package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +1 -0
  64. package/dist/models/PropertiesDeltas.d.ts +20 -0
  65. package/dist/models/PropertiesDeltas.js +34 -0
  66. package/dist/models/PropertiesDeltas.js.map +1 -0
  67. package/dist/models/PropertiesObject.d.ts +30 -0
  68. package/dist/models/PropertiesObject.js +82 -0
  69. package/dist/models/PropertiesObject.js.map +1 -0
  70. package/dist/models/Purchase.d.ts +2 -1
  71. package/dist/models/Purchase.js +7 -1
  72. package/dist/models/Purchase.js.map +1 -1
  73. package/dist/models/SubscriptionObject.d.ts +34 -0
  74. package/dist/models/SubscriptionObject.js +118 -0
  75. package/dist/models/SubscriptionObject.js.map +1 -0
  76. package/dist/models/TransferSubscriptionRequestBody.d.ts +19 -0
  77. package/dist/models/TransferSubscriptionRequestBody.js +22 -0
  78. package/dist/models/TransferSubscriptionRequestBody.js.map +1 -0
  79. package/dist/models/UpdateSubscriptionRequestBody.d.ts +18 -0
  80. package/dist/models/UpdateSubscriptionRequestBody.js +22 -0
  81. package/dist/models/UpdateSubscriptionRequestBody.js.map +1 -0
  82. package/dist/models/UpdateUserRequest.d.ts +21 -0
  83. package/dist/models/UpdateUserRequest.js +34 -0
  84. package/dist/models/UpdateUserRequest.js.map +1 -0
  85. package/dist/models/User.d.ts +25 -0
  86. package/dist/models/User.js +40 -0
  87. package/dist/models/User.js.map +1 -0
  88. package/dist/models/UserIdentityRequestBody.d.ts +19 -0
  89. package/dist/models/UserIdentityRequestBody.js +22 -0
  90. package/dist/models/UserIdentityRequestBody.js.map +1 -0
  91. package/dist/models/UserIdentityResponse.d.ts +19 -0
  92. package/dist/models/UserIdentityResponse.js +22 -0
  93. package/dist/models/UserIdentityResponse.js.map +1 -0
  94. package/dist/models/UserSubscriptionOptions.d.ts +17 -0
  95. package/dist/models/UserSubscriptionOptions.js +22 -0
  96. package/dist/models/UserSubscriptionOptions.js.map +1 -0
  97. package/dist/models/all.d.ts +21 -0
  98. package/dist/models/all.js +21 -0
  99. package/dist/models/all.js.map +1 -1
  100. package/dist/types/ObjectParamAPI.d.ts +95 -0
  101. package/dist/types/ObjectParamAPI.js +42 -0
  102. package/dist/types/ObjectParamAPI.js.map +1 -1
  103. package/dist/types/ObservableAPI.d.ts +25 -0
  104. package/dist/types/ObservableAPI.js +383 -47
  105. package/dist/types/ObservableAPI.js.map +1 -1
  106. package/dist/types/PromiseAPI.d.ts +25 -0
  107. package/dist/types/PromiseAPI.js +56 -0
  108. package/dist/types/PromiseAPI.js.map +1 -1
  109. package/models/App.ts +1 -1
  110. package/models/BadRequestError.ts +1 -1
  111. package/models/BasicNotification.ts +17 -1
  112. package/models/BasicNotificationAllOf.ts +1 -1
  113. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  114. package/models/BeginLiveActivityRequest.ts +1 -1
  115. package/models/Button.ts +1 -1
  116. package/models/CancelNotificationSuccessResponse.ts +1 -1
  117. package/models/CreateNotificationSuccessResponse.ts +3 -3
  118. package/models/CreatePlayerSuccessResponse.ts +1 -1
  119. package/models/CreateSegmentConflictResponse.ts +1 -1
  120. package/models/CreateSegmentSuccessResponse.ts +1 -1
  121. package/models/CreateSubscriptionRequestBody.ts +39 -0
  122. package/models/CreateUserConflictResponse.ts +32 -0
  123. package/models/CreateUserConflictResponseErrorsInner.ts +46 -0
  124. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +31 -0
  125. package/models/DeletePlayerNotFoundResponse.ts +1 -1
  126. package/models/DeletePlayerSuccessResponse.ts +1 -1
  127. package/models/DeleteSegmentNotFoundResponse.ts +1 -1
  128. package/models/DeleteSegmentSuccessResponse.ts +1 -1
  129. package/models/DeliveryData.ts +1 -1
  130. package/models/ExportPlayersRequestBody.ts +1 -1
  131. package/models/ExportPlayersSuccessResponse.ts +1 -1
  132. package/models/Filter.ts +1 -1
  133. package/models/FilterExpressions.ts +1 -1
  134. package/models/GetNotificationRequestBody.ts +1 -1
  135. package/models/IdentifyUserConflictResponse.ts +32 -0
  136. package/models/IdentifyUserConflictResponseErrorsInner.ts +38 -0
  137. package/models/InlineResponse200.ts +31 -0
  138. package/models/InlineResponse2003.ts +31 -0
  139. package/models/InlineResponse201.ts +32 -0
  140. package/models/InlineResponse202.ts +32 -0
  141. package/models/InvalidIdentifierError.ts +1 -1
  142. package/models/Notification.ts +17 -1
  143. package/models/Notification200Errors.ts +1 -1
  144. package/models/NotificationAllOf.ts +1 -1
  145. package/models/NotificationHistorySuccessResponse.ts +1 -1
  146. package/models/NotificationSlice.ts +1 -1
  147. package/models/NotificationTarget.ts +19 -1
  148. package/models/NotificationWithMeta.ts +17 -1
  149. package/models/NotificationWithMetaAllOf.ts +1 -1
  150. package/models/ObjectSerializer.ts +74 -5
  151. package/models/Operator.ts +1 -1
  152. package/models/OutcomeData.ts +1 -1
  153. package/models/OutcomesData.ts +1 -1
  154. package/models/PlatformDeliveryData.ts +1 -1
  155. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  156. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  157. package/models/Player.ts +3 -3
  158. package/models/PlayerNotificationTarget.ts +19 -1
  159. package/models/PlayerNotificationTargetIncludeAliases.ts +31 -0
  160. package/models/PlayerSlice.ts +1 -1
  161. package/models/PropertiesDeltas.ts +46 -0
  162. package/models/PropertiesObject.ts +102 -0
  163. package/models/Purchase.ts +10 -3
  164. package/models/Segment.ts +1 -1
  165. package/models/SegmentNotificationTarget.ts +1 -1
  166. package/models/StringMap.ts +1 -1
  167. package/models/SubscriptionObject.ts +146 -0
  168. package/models/TransferSubscriptionRequestBody.ts +31 -0
  169. package/models/UpdateLiveActivityRequest.ts +1 -1
  170. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  171. package/models/UpdatePlayerSuccessResponse.ts +1 -1
  172. package/models/UpdatePlayerTagsRequestBody.ts +1 -1
  173. package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
  174. package/models/UpdateSubscriptionRequestBody.ts +32 -0
  175. package/models/UpdateUserRequest.ts +47 -0
  176. package/models/User.ts +55 -0
  177. package/models/UserIdentityRequestBody.ts +31 -0
  178. package/models/UserIdentityResponse.ts +31 -0
  179. package/models/UserSubscriptionOptions.ts +31 -0
  180. package/models/all.ts +21 -0
  181. package/package.json +2 -2
  182. package/types/ObjectParamAPI.ts +427 -0
  183. package/types/ObservableAPI.ts +371 -0
  184. package/types/PromiseAPI.ts +175 -0
@@ -10,6 +10,10 @@ export * from './CreateNotificationSuccessResponse';
10
10
  export * from './CreatePlayerSuccessResponse';
11
11
  export * from './CreateSegmentConflictResponse';
12
12
  export * from './CreateSegmentSuccessResponse';
13
+ export * from './CreateSubscriptionRequestBody';
14
+ export * from './CreateUserConflictResponse';
15
+ export * from './CreateUserConflictResponseErrorsInner';
16
+ export * from './CreateUserConflictResponseErrorsItemsMeta';
13
17
  export * from './DeletePlayerNotFoundResponse';
14
18
  export * from './DeletePlayerSuccessResponse';
15
19
  export * from './DeleteSegmentNotFoundResponse';
@@ -20,6 +24,12 @@ export * from './ExportPlayersSuccessResponse';
20
24
  export * from './Filter';
21
25
  export * from './FilterExpressions';
22
26
  export * from './GetNotificationRequestBody';
27
+ export * from './IdentifyUserConflictResponse';
28
+ export * from './IdentifyUserConflictResponseErrorsInner';
29
+ export * from './InlineResponse200';
30
+ export * from './InlineResponse2003';
31
+ export * from './InlineResponse201';
32
+ export * from './InlineResponse202';
23
33
  export * from './InvalidIdentifierError';
24
34
  export * from './Notification';
25
35
  export * from './Notification200Errors';
@@ -37,20 +47,31 @@ export * from './PlatformDeliveryDataEmailAllOf';
37
47
  export * from './PlatformDeliveryDataSmsAllOf';
38
48
  export * from './Player';
39
49
  export * from './PlayerNotificationTarget';
50
+ export * from './PlayerNotificationTargetIncludeAliases';
40
51
  export * from './PlayerSlice';
52
+ export * from './PropertiesDeltas';
53
+ export * from './PropertiesObject';
41
54
  export * from './Purchase';
42
55
  export * from './Segment';
43
56
  export * from './SegmentNotificationTarget';
44
57
  export * from './StringMap';
58
+ export * from './SubscriptionObject';
59
+ export * from './TransferSubscriptionRequestBody';
45
60
  export * from './UpdateLiveActivityRequest';
46
61
  export * from './UpdateLiveActivitySuccessResponse';
47
62
  export * from './UpdatePlayerSuccessResponse';
48
63
  export * from './UpdatePlayerTagsRequestBody';
49
64
  export * from './UpdatePlayerTagsSuccessResponse';
65
+ export * from './UpdateSubscriptionRequestBody';
66
+ export * from './UpdateUserRequest';
67
+ export * from './User';
68
+ export * from './UserIdentityRequestBody';
69
+ export * from './UserIdentityResponse';
70
+ export * from './UserSubscriptionOptions';
50
71
 
51
72
  import { App , AppApnsEnvEnum } from './App';
52
73
  import { BadRequestError } from './BadRequestError';
53
- import { BasicNotification , BasicNotificationAggregationEnum } from './BasicNotification';
74
+ import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
54
75
  import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
55
76
  import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
56
77
  import { BeginLiveActivityRequest } from './BeginLiveActivityRequest';
@@ -60,6 +81,10 @@ import { CreateNotificationSuccessResponse } from './CreateNotificationSuccessRe
60
81
  import { CreatePlayerSuccessResponse } from './CreatePlayerSuccessResponse';
61
82
  import { CreateSegmentConflictResponse } from './CreateSegmentConflictResponse';
62
83
  import { CreateSegmentSuccessResponse } from './CreateSegmentSuccessResponse';
84
+ import { CreateSubscriptionRequestBody } from './CreateSubscriptionRequestBody';
85
+ import { CreateUserConflictResponse } from './CreateUserConflictResponse';
86
+ import { CreateUserConflictResponseErrorsInner } from './CreateUserConflictResponseErrorsInner';
87
+ import { CreateUserConflictResponseErrorsItemsMeta } from './CreateUserConflictResponseErrorsItemsMeta';
63
88
  import { DeletePlayerNotFoundResponse } from './DeletePlayerNotFoundResponse';
64
89
  import { DeletePlayerSuccessResponse } from './DeletePlayerSuccessResponse';
65
90
  import { DeleteSegmentNotFoundResponse } from './DeleteSegmentNotFoundResponse';
@@ -70,14 +95,20 @@ import { ExportPlayersSuccessResponse } from './ExportPlayersSuccessResponse';
70
95
  import { Filter , FilterRelationEnum } from './Filter';
71
96
  import { FilterExpressions , FilterExpressionsRelationEnum , FilterExpressionsOperatorEnum } from './FilterExpressions';
72
97
  import { GetNotificationRequestBody, GetNotificationRequestBodyEventsEnum } from './GetNotificationRequestBody';
98
+ import { IdentifyUserConflictResponse } from './IdentifyUserConflictResponse';
99
+ import { IdentifyUserConflictResponseErrorsInner } from './IdentifyUserConflictResponseErrorsInner';
100
+ import { InlineResponse200 } from './InlineResponse200';
101
+ import { InlineResponse2003 } from './InlineResponse2003';
102
+ import { InlineResponse201 } from './InlineResponse201';
103
+ import { InlineResponse202 } from './InlineResponse202';
73
104
  import { InvalidIdentifierError } from './InvalidIdentifierError';
74
- import { Notification , NotificationAggregationEnum } from './Notification';
105
+ import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
75
106
  import { Notification200Errors } from './Notification200Errors';
76
107
  import { NotificationAllOf } from './NotificationAllOf';
77
108
  import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
78
109
  import { NotificationSlice } from './NotificationSlice';
79
- import { NotificationTarget } from './NotificationTarget';
80
- import { NotificationWithMeta , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
110
+ import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
111
+ import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
81
112
  import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
82
113
  import { Operator, OperatorOperatorEnum } from './Operator';
83
114
  import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';
@@ -86,17 +117,28 @@ import { PlatformDeliveryData } from './PlatformDeliveryData';
86
117
  import { PlatformDeliveryDataEmailAllOf } from './PlatformDeliveryDataEmailAllOf';
87
118
  import { PlatformDeliveryDataSmsAllOf } from './PlatformDeliveryDataSmsAllOf';
88
119
  import { Player } from './Player';
89
- import { PlayerNotificationTarget } from './PlayerNotificationTarget';
120
+ import { PlayerNotificationTarget , PlayerNotificationTargetTargetChannelEnum } from './PlayerNotificationTarget';
121
+ import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
90
122
  import { PlayerSlice } from './PlayerSlice';
123
+ import { PropertiesDeltas } from './PropertiesDeltas';
124
+ import { PropertiesObject } from './PropertiesObject';
91
125
  import { Purchase } from './Purchase';
92
126
  import { Segment } from './Segment';
93
127
  import { SegmentNotificationTarget } from './SegmentNotificationTarget';
94
128
  import { StringMap } from './StringMap';
129
+ import { SubscriptionObject , SubscriptionObjectTypeEnum } from './SubscriptionObject';
130
+ import { TransferSubscriptionRequestBody } from './TransferSubscriptionRequestBody';
95
131
  import { UpdateLiveActivityRequest, UpdateLiveActivityRequestNameEnum , UpdateLiveActivityRequestEventEnum } from './UpdateLiveActivityRequest';
96
132
  import { UpdateLiveActivitySuccessResponse } from './UpdateLiveActivitySuccessResponse';
97
133
  import { UpdatePlayerSuccessResponse } from './UpdatePlayerSuccessResponse';
98
134
  import { UpdatePlayerTagsRequestBody } from './UpdatePlayerTagsRequestBody';
99
135
  import { UpdatePlayerTagsSuccessResponse } from './UpdatePlayerTagsSuccessResponse';
136
+ import { UpdateSubscriptionRequestBody } from './UpdateSubscriptionRequestBody';
137
+ import { UpdateUserRequest } from './UpdateUserRequest';
138
+ import { User } from './User';
139
+ import { UserIdentityRequestBody } from './UserIdentityRequestBody';
140
+ import { UserIdentityResponse } from './UserIdentityResponse';
141
+ import { UserSubscriptionOptions } from './UserSubscriptionOptions';
100
142
 
101
143
  /* tslint:disable:no-unused-variable */
102
144
  let primitives = [
@@ -119,16 +161,22 @@ const supportedMediaTypes: { [mediaType: string]: number } = {
119
161
 
120
162
  let enumsMap: Set<string> = new Set<string>([
121
163
  "AppApnsEnvEnum",
164
+ "BasicNotificationTargetChannelEnum",
122
165
  "BasicNotificationAggregationEnum",
123
166
  "BasicNotificationAllOfAggregationEnum",
124
167
  "FilterRelationEnum",
125
168
  "FilterExpressionsRelationEnum",
126
169
  "FilterExpressionsOperatorEnum",
127
170
  "GetNotificationRequestBodyEventsEnum",
171
+ "NotificationTargetChannelEnum",
128
172
  "NotificationAggregationEnum",
173
+ "NotificationTargetTargetChannelEnum",
174
+ "NotificationWithMetaTargetChannelEnum",
129
175
  "NotificationWithMetaAggregationEnum",
130
176
  "OperatorOperatorEnum",
131
177
  "OutcomeDataAggregationEnum",
178
+ "PlayerNotificationTargetTargetChannelEnum",
179
+ "SubscriptionObjectTypeEnum",
132
180
  "UpdateLiveActivityRequestNameEnum",
133
181
  "UpdateLiveActivityRequestEventEnum",
134
182
  ]);
@@ -146,6 +194,10 @@ let typeMap: {[index: string]: any} = {
146
194
  "CreatePlayerSuccessResponse": CreatePlayerSuccessResponse,
147
195
  "CreateSegmentConflictResponse": CreateSegmentConflictResponse,
148
196
  "CreateSegmentSuccessResponse": CreateSegmentSuccessResponse,
197
+ "CreateSubscriptionRequestBody": CreateSubscriptionRequestBody,
198
+ "CreateUserConflictResponse": CreateUserConflictResponse,
199
+ "CreateUserConflictResponseErrorsInner": CreateUserConflictResponseErrorsInner,
200
+ "CreateUserConflictResponseErrorsItemsMeta": CreateUserConflictResponseErrorsItemsMeta,
149
201
  "DeletePlayerNotFoundResponse": DeletePlayerNotFoundResponse,
150
202
  "DeletePlayerSuccessResponse": DeletePlayerSuccessResponse,
151
203
  "DeleteSegmentNotFoundResponse": DeleteSegmentNotFoundResponse,
@@ -156,6 +208,12 @@ let typeMap: {[index: string]: any} = {
156
208
  "Filter": Filter,
157
209
  "FilterExpressions": FilterExpressions,
158
210
  "GetNotificationRequestBody": GetNotificationRequestBody,
211
+ "IdentifyUserConflictResponse": IdentifyUserConflictResponse,
212
+ "IdentifyUserConflictResponseErrorsInner": IdentifyUserConflictResponseErrorsInner,
213
+ "InlineResponse200": InlineResponse200,
214
+ "InlineResponse2003": InlineResponse2003,
215
+ "InlineResponse201": InlineResponse201,
216
+ "InlineResponse202": InlineResponse202,
159
217
  "InvalidIdentifierError": InvalidIdentifierError,
160
218
  "Notification": Notification,
161
219
  "Notification200Errors": Notification200Errors,
@@ -173,16 +231,27 @@ let typeMap: {[index: string]: any} = {
173
231
  "PlatformDeliveryDataSmsAllOf": PlatformDeliveryDataSmsAllOf,
174
232
  "Player": Player,
175
233
  "PlayerNotificationTarget": PlayerNotificationTarget,
234
+ "PlayerNotificationTargetIncludeAliases": PlayerNotificationTargetIncludeAliases,
176
235
  "PlayerSlice": PlayerSlice,
236
+ "PropertiesDeltas": PropertiesDeltas,
237
+ "PropertiesObject": PropertiesObject,
177
238
  "Purchase": Purchase,
178
239
  "Segment": Segment,
179
240
  "SegmentNotificationTarget": SegmentNotificationTarget,
180
241
  "StringMap": StringMap,
242
+ "SubscriptionObject": SubscriptionObject,
243
+ "TransferSubscriptionRequestBody": TransferSubscriptionRequestBody,
181
244
  "UpdateLiveActivityRequest": UpdateLiveActivityRequest,
182
245
  "UpdateLiveActivitySuccessResponse": UpdateLiveActivitySuccessResponse,
183
246
  "UpdatePlayerSuccessResponse": UpdatePlayerSuccessResponse,
184
247
  "UpdatePlayerTagsRequestBody": UpdatePlayerTagsRequestBody,
185
248
  "UpdatePlayerTagsSuccessResponse": UpdatePlayerTagsSuccessResponse,
249
+ "UpdateSubscriptionRequestBody": UpdateSubscriptionRequestBody,
250
+ "UpdateUserRequest": UpdateUserRequest,
251
+ "User": User,
252
+ "UserIdentityRequestBody": UserIdentityRequestBody,
253
+ "UserIdentityResponse": UserIdentityResponse,
254
+ "UserSubscriptionOptions": UserSubscriptionOptions,
186
255
  }
187
256
 
188
257
  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.0.2
5
+ * API Version: 1.2.1
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.0.2
5
+ * API Version: 1.2.1
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.0.2
5
+ * API Version: 1.2.1
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.0.2
5
+ * API Version: 1.2.1
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.0.2
5
+ * API Version: 1.2.1
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.0.2
5
+ * API Version: 1.2.1
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.0.2
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -105,7 +105,7 @@ export class Player {
105
105
  /**
106
106
  * Longitude of the device, used for geotagging to segment on.
107
107
  */
108
- '_long'?: number;
108
+ 'long'?: number;
109
109
  /**
110
110
  * Latitude of the device, used for geotagging to segment on.
111
111
  */
@@ -263,7 +263,7 @@ export class Player {
263
263
  "format": ""
264
264
  },
265
265
  {
266
- "name": "_long",
266
+ "name": "long",
267
267
  "baseName": "long",
268
268
  "type": "number",
269
269
  "format": ""
@@ -2,10 +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.0.2
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
+ import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
9
10
  import { HttpFile } from '../http/http';
10
11
 
11
12
  export class PlayerNotificationTarget {
@@ -49,6 +50,8 @@ export class PlayerNotificationTarget {
49
50
  * 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
50
51
  */
51
52
  'include_android_reg_ids'?: Array<string>;
53
+ 'include_aliases'?: PlayerNotificationTargetIncludeAliases;
54
+ 'target_channel'?: PlayerNotificationTargetTargetChannelEnum;
52
55
 
53
56
  static readonly discriminator: string | undefined = undefined;
54
57
 
@@ -112,6 +115,18 @@ export class PlayerNotificationTarget {
112
115
  "baseName": "include_android_reg_ids",
113
116
  "type": "Array<string>",
114
117
  "format": ""
118
+ },
119
+ {
120
+ "name": "include_aliases",
121
+ "baseName": "include_aliases",
122
+ "type": "PlayerNotificationTargetIncludeAliases",
123
+ "format": ""
124
+ },
125
+ {
126
+ "name": "target_channel",
127
+ "baseName": "target_channel",
128
+ "type": "PlayerNotificationTargetTargetChannelEnum",
129
+ "format": ""
115
130
  } ];
116
131
 
117
132
  static getAttributeTypeMap() {
@@ -122,3 +137,6 @@ export class PlayerNotificationTarget {
122
137
  }
123
138
  }
124
139
 
140
+
141
+ export type PlayerNotificationTargetTargetChannelEnum = "push" | "email" | "sms" ;
142
+
@@ -0,0 +1,31 @@
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: 1.2.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class PlayerNotificationTargetIncludeAliases {
12
+ 'alias_label'?: Array<string>;
13
+
14
+ static readonly discriminator: string | undefined = undefined;
15
+
16
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
17
+ {
18
+ "name": "alias_label",
19
+ "baseName": "alias_label",
20
+ "type": "Array<string>",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return PlayerNotificationTargetIncludeAliases.attributeTypeMap;
26
+ }
27
+
28
+ public constructor() {
29
+ }
30
+ }
31
+
@@ -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.0.2
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -0,0 +1,46 @@
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: 1.2.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { Purchase } from './Purchase';
10
+ import { HttpFile } from '../http/http';
11
+
12
+ export class PropertiesDeltas {
13
+ 'session_time'?: number;
14
+ 'session_count'?: number;
15
+ 'purchases'?: Array<Purchase>;
16
+
17
+ static readonly discriminator: string | undefined = undefined;
18
+
19
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
20
+ {
21
+ "name": "session_time",
22
+ "baseName": "session_time",
23
+ "type": "number",
24
+ "format": ""
25
+ },
26
+ {
27
+ "name": "session_count",
28
+ "baseName": "session_count",
29
+ "type": "number",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "purchases",
34
+ "baseName": "purchases",
35
+ "type": "Array<Purchase>",
36
+ "format": ""
37
+ } ];
38
+
39
+ static getAttributeTypeMap() {
40
+ return PropertiesDeltas.attributeTypeMap;
41
+ }
42
+
43
+ public constructor() {
44
+ }
45
+ }
46
+
@@ -0,0 +1,102 @@
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: 1.2.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { Purchase } from './Purchase';
10
+ import { HttpFile } from '../http/http';
11
+
12
+ export class PropertiesObject {
13
+ 'tags'?: { [key: string]: any; };
14
+ 'language'?: string;
15
+ 'timezone_id'?: string;
16
+ 'lat'?: number;
17
+ 'long'?: number;
18
+ 'country'?: string;
19
+ 'first_active'?: number;
20
+ 'last_active'?: number;
21
+ 'amount_spent'?: number;
22
+ 'purchases'?: Array<Purchase>;
23
+ 'ip'?: string;
24
+
25
+ static readonly discriminator: string | undefined = undefined;
26
+
27
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
28
+ {
29
+ "name": "tags",
30
+ "baseName": "tags",
31
+ "type": "{ [key: string]: any; }",
32
+ "format": ""
33
+ },
34
+ {
35
+ "name": "language",
36
+ "baseName": "language",
37
+ "type": "string",
38
+ "format": ""
39
+ },
40
+ {
41
+ "name": "timezone_id",
42
+ "baseName": "timezone_id",
43
+ "type": "string",
44
+ "format": ""
45
+ },
46
+ {
47
+ "name": "lat",
48
+ "baseName": "lat",
49
+ "type": "number",
50
+ "format": ""
51
+ },
52
+ {
53
+ "name": "long",
54
+ "baseName": "long",
55
+ "type": "number",
56
+ "format": ""
57
+ },
58
+ {
59
+ "name": "country",
60
+ "baseName": "country",
61
+ "type": "string",
62
+ "format": ""
63
+ },
64
+ {
65
+ "name": "first_active",
66
+ "baseName": "first_active",
67
+ "type": "number",
68
+ "format": ""
69
+ },
70
+ {
71
+ "name": "last_active",
72
+ "baseName": "last_active",
73
+ "type": "number",
74
+ "format": ""
75
+ },
76
+ {
77
+ "name": "amount_spent",
78
+ "baseName": "amount_spent",
79
+ "type": "number",
80
+ "format": ""
81
+ },
82
+ {
83
+ "name": "purchases",
84
+ "baseName": "purchases",
85
+ "type": "Array<Purchase>",
86
+ "format": ""
87
+ },
88
+ {
89
+ "name": "ip",
90
+ "baseName": "ip",
91
+ "type": "string",
92
+ "format": ""
93
+ } ];
94
+
95
+ static getAttributeTypeMap() {
96
+ return PropertiesObject.attributeTypeMap;
97
+ }
98
+
99
+ public constructor() {
100
+ }
101
+ }
102
+
@@ -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.0.2
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -16,11 +16,12 @@ export class Purchase {
16
16
  /**
17
17
  * The amount, in USD, spent purchasing the item.
18
18
  */
19
- 'amount': number;
19
+ 'amount': string;
20
20
  /**
21
21
  * The 3-letter ISO 4217 currency code. Required for correct storage and conversion of amount.
22
22
  */
23
23
  'iso': string;
24
+ 'count'?: number;
24
25
 
25
26
  static readonly discriminator: string | undefined = undefined;
26
27
 
@@ -34,7 +35,7 @@ export class Purchase {
34
35
  {
35
36
  "name": "amount",
36
37
  "baseName": "amount",
37
- "type": "number",
38
+ "type": "string",
38
39
  "format": ""
39
40
  },
40
41
  {
@@ -42,6 +43,12 @@ export class Purchase {
42
43
  "baseName": "iso",
43
44
  "type": "string",
44
45
  "format": ""
46
+ },
47
+ {
48
+ "name": "count",
49
+ "baseName": "count",
50
+ "type": "number",
51
+ "format": ""
45
52
  } ];
46
53
 
47
54
  static getAttributeTypeMap() {
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.0.2
5
+ * API Version: 1.2.1
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.0.2
5
+ * API Version: 1.2.1
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.0.2
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8