@onesignal/node-onesignal 1.0.0-beta7 → 1.0.0-beta9

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 (208) hide show
  1. package/.github/workflows/Zapier.yml +29 -0
  2. package/.github/workflows/npm_deploy.yml +6 -7
  3. package/CHANGELOG.md +19 -0
  4. package/DefaultApi.md +1365 -164
  5. package/README.md +189 -0
  6. package/apis/DefaultApi.ts +2041 -423
  7. package/dist/apis/DefaultApi.d.ts +48 -0
  8. package/dist/apis/DefaultApi.js +1861 -414
  9. package/dist/apis/DefaultApi.js.map +1 -1
  10. package/dist/auth/auth.d.ts +6 -6
  11. package/dist/auth/auth.js +1 -1
  12. package/dist/http/http.d.ts +2 -2
  13. package/dist/http/http.js +1 -1
  14. package/dist/models/App.d.ts +5 -1
  15. package/dist/models/App.js +24 -0
  16. package/dist/models/App.js.map +1 -1
  17. package/dist/models/BadRequestError.d.ts +17 -0
  18. package/dist/models/BadRequestError.js +22 -0
  19. package/dist/models/BadRequestError.js.map +1 -0
  20. package/dist/models/BasicNotification.d.ts +5 -1
  21. package/dist/models/BasicNotification.js +12 -0
  22. package/dist/models/BasicNotification.js.map +1 -1
  23. package/dist/models/BasicNotificationAllOf.d.ts +1 -1
  24. package/dist/models/BeginLiveActivityRequest.d.ts +18 -0
  25. package/dist/models/BeginLiveActivityRequest.js +28 -0
  26. package/dist/models/BeginLiveActivityRequest.js.map +1 -0
  27. package/dist/models/CreateSubscriptionRequestBody.d.ts +19 -0
  28. package/dist/models/CreateSubscriptionRequestBody.js +28 -0
  29. package/dist/models/CreateSubscriptionRequestBody.js.map +1 -0
  30. package/dist/models/CreateUserConflictResponse.d.ts +18 -0
  31. package/dist/models/CreateUserConflictResponse.js +22 -0
  32. package/dist/models/CreateUserConflictResponse.js.map +1 -0
  33. package/dist/models/CreateUserConflictResponseErrorsInner.d.ts +20 -0
  34. package/dist/models/CreateUserConflictResponseErrorsInner.js +34 -0
  35. package/dist/models/CreateUserConflictResponseErrorsInner.js.map +1 -0
  36. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.d.ts +17 -0
  37. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +22 -0
  38. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +1 -0
  39. package/dist/models/Filter.d.ts +1 -1
  40. package/dist/models/FilterExpressions.d.ts +2 -2
  41. package/dist/models/GetNotificationRequestBody.d.ts +1 -1
  42. package/dist/models/IdentifyUserConflictResponse.d.ts +18 -0
  43. package/dist/models/IdentifyUserConflictResponse.js +22 -0
  44. package/dist/models/IdentifyUserConflictResponse.js.map +1 -0
  45. package/dist/models/IdentifyUserConflictResponseErrorsInner.d.ts +18 -0
  46. package/dist/models/IdentifyUserConflictResponseErrorsInner.js +28 -0
  47. package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +1 -0
  48. package/dist/models/InlineResponse200.d.ts +19 -0
  49. package/dist/models/InlineResponse200.js +22 -0
  50. package/dist/models/InlineResponse200.js.map +1 -0
  51. package/dist/models/InlineResponse2003.d.ts +17 -0
  52. package/dist/models/InlineResponse2003.js +22 -0
  53. package/dist/models/InlineResponse2003.js.map +1 -0
  54. package/dist/models/InlineResponse201.d.ts +18 -0
  55. package/dist/models/InlineResponse201.js +22 -0
  56. package/dist/models/InlineResponse201.js.map +1 -0
  57. package/dist/models/InlineResponse202.d.ts +18 -0
  58. package/dist/models/InlineResponse202.js +22 -0
  59. package/dist/models/InlineResponse202.js.map +1 -0
  60. package/dist/models/Notification.d.ts +5 -1
  61. package/dist/models/Notification.js +12 -0
  62. package/dist/models/Notification.js.map +1 -1
  63. package/dist/models/NotificationTarget.d.ts +4 -0
  64. package/dist/models/NotificationTarget.js +12 -0
  65. package/dist/models/NotificationTarget.js.map +1 -1
  66. package/dist/models/NotificationWithMeta.d.ts +5 -1
  67. package/dist/models/NotificationWithMeta.js +12 -0
  68. package/dist/models/NotificationWithMeta.js.map +1 -1
  69. package/dist/models/ObjectSerializer.d.ts +25 -5
  70. package/dist/models/ObjectSerializer.js +83 -15
  71. package/dist/models/ObjectSerializer.js.map +1 -1
  72. package/dist/models/Operator.d.ts +1 -1
  73. package/dist/models/OutcomeData.d.ts +1 -1
  74. package/dist/models/Player.d.ts +1 -1
  75. package/dist/models/Player.js +1 -1
  76. package/dist/models/Player.js.map +1 -1
  77. package/dist/models/PlayerNotificationTarget.d.ts +4 -0
  78. package/dist/models/PlayerNotificationTarget.js +12 -0
  79. package/dist/models/PlayerNotificationTarget.js.map +1 -1
  80. package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +17 -0
  81. package/dist/models/PlayerNotificationTargetIncludeAliases.js +22 -0
  82. package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +1 -0
  83. package/dist/models/PropertiesDeltas.d.ts +21 -0
  84. package/dist/models/PropertiesDeltas.js +40 -0
  85. package/dist/models/PropertiesDeltas.js.map +1 -0
  86. package/dist/models/PropertiesObject.d.ts +30 -0
  87. package/dist/models/PropertiesObject.js +82 -0
  88. package/dist/models/PropertiesObject.js.map +1 -0
  89. package/dist/models/Purchase.d.ts +1 -1
  90. package/dist/models/Purchase.js +1 -1
  91. package/dist/models/SubscriptionObject.d.ts +34 -0
  92. package/dist/models/SubscriptionObject.js +118 -0
  93. package/dist/models/SubscriptionObject.js.map +1 -0
  94. package/dist/models/TransferSubscriptionRequestBody.d.ts +19 -0
  95. package/dist/models/TransferSubscriptionRequestBody.js +22 -0
  96. package/dist/models/TransferSubscriptionRequestBody.js.map +1 -0
  97. package/dist/models/UpdateLiveActivityRequest.d.ts +22 -0
  98. package/dist/models/UpdateLiveActivityRequest.js +40 -0
  99. package/dist/models/UpdateLiveActivityRequest.js.map +1 -0
  100. package/dist/models/UpdateLiveActivitySuccessResponse.d.ts +19 -0
  101. package/dist/models/UpdateLiveActivitySuccessResponse.js +28 -0
  102. package/dist/models/UpdateLiveActivitySuccessResponse.js.map +1 -0
  103. package/dist/models/UpdateSubscriptionRequestBody.d.ts +18 -0
  104. package/dist/models/UpdateSubscriptionRequestBody.js +22 -0
  105. package/dist/models/UpdateSubscriptionRequestBody.js.map +1 -0
  106. package/dist/models/UpdateUserRequest.d.ts +21 -0
  107. package/dist/models/UpdateUserRequest.js +34 -0
  108. package/dist/models/UpdateUserRequest.js.map +1 -0
  109. package/dist/models/User.d.ts +25 -0
  110. package/dist/models/User.js +40 -0
  111. package/dist/models/User.js.map +1 -0
  112. package/dist/models/UserIdentityRequestBody.d.ts +19 -0
  113. package/dist/models/UserIdentityRequestBody.js +22 -0
  114. package/dist/models/UserIdentityRequestBody.js.map +1 -0
  115. package/dist/models/UserIdentityResponse.d.ts +19 -0
  116. package/dist/models/UserIdentityResponse.js +22 -0
  117. package/dist/models/UserIdentityResponse.js.map +1 -0
  118. package/dist/models/UserSubscriptionOptions.d.ts +17 -0
  119. package/dist/models/UserSubscriptionOptions.js +22 -0
  120. package/dist/models/UserSubscriptionOptions.js.map +1 -0
  121. package/dist/models/all.d.ts +25 -5
  122. package/dist/models/all.js +25 -5
  123. package/dist/models/all.js.map +1 -1
  124. package/dist/types/ObjectParamAPI.d.ts +117 -0
  125. package/dist/types/ObjectParamAPI.js +51 -0
  126. package/dist/types/ObjectParamAPI.js.map +1 -1
  127. package/dist/types/ObservableAPI.d.ts +31 -0
  128. package/dist/types/ObservableAPI.js +464 -56
  129. package/dist/types/ObservableAPI.js.map +1 -1
  130. package/dist/types/PromiseAPI.d.ts +31 -0
  131. package/dist/types/PromiseAPI.js +68 -0
  132. package/dist/types/PromiseAPI.js.map +1 -1
  133. package/models/App.ts +41 -1
  134. package/models/BadRequestError.ts +31 -0
  135. package/models/BasicNotification.ts +17 -1
  136. package/models/BasicNotificationAllOf.ts +1 -1
  137. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  138. package/models/BeginLiveActivityRequest.ts +38 -0
  139. package/models/Button.ts +1 -1
  140. package/models/CancelNotificationSuccessResponse.ts +1 -1
  141. package/models/CreateNotificationSuccessResponse.ts +1 -1
  142. package/models/CreatePlayerSuccessResponse.ts +1 -1
  143. package/models/CreateSegmentConflictResponse.ts +1 -1
  144. package/models/CreateSegmentSuccessResponse.ts +1 -1
  145. package/models/CreateSubscriptionRequestBody.ts +39 -0
  146. package/models/CreateUserConflictResponse.ts +32 -0
  147. package/models/CreateUserConflictResponseErrorsInner.ts +46 -0
  148. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +31 -0
  149. package/models/DeletePlayerNotFoundResponse.ts +1 -1
  150. package/models/DeletePlayerSuccessResponse.ts +1 -1
  151. package/models/DeleteSegmentNotFoundResponse.ts +1 -1
  152. package/models/DeleteSegmentSuccessResponse.ts +1 -1
  153. package/models/DeliveryData.ts +1 -1
  154. package/models/ExportPlayersRequestBody.ts +1 -1
  155. package/models/ExportPlayersSuccessResponse.ts +1 -1
  156. package/models/Filter.ts +1 -1
  157. package/models/FilterExpressions.ts +1 -1
  158. package/models/GetNotificationRequestBody.ts +1 -1
  159. package/models/IdentifyUserConflictResponse.ts +32 -0
  160. package/models/IdentifyUserConflictResponseErrorsInner.ts +38 -0
  161. package/models/InlineResponse200.ts +31 -0
  162. package/models/InlineResponse2003.ts +31 -0
  163. package/models/InlineResponse201.ts +32 -0
  164. package/models/InlineResponse202.ts +32 -0
  165. package/models/InvalidIdentifierError.ts +1 -1
  166. package/models/Notification.ts +17 -1
  167. package/models/Notification200Errors.ts +1 -1
  168. package/models/NotificationAllOf.ts +1 -1
  169. package/models/NotificationHistorySuccessResponse.ts +1 -1
  170. package/models/NotificationSlice.ts +1 -1
  171. package/models/NotificationTarget.ts +19 -1
  172. package/models/NotificationWithMeta.ts +17 -1
  173. package/models/NotificationWithMetaAllOf.ts +1 -1
  174. package/models/ObjectSerializer.ts +89 -21
  175. package/models/Operator.ts +1 -1
  176. package/models/OutcomeData.ts +1 -1
  177. package/models/OutcomesData.ts +1 -1
  178. package/models/PlatformDeliveryData.ts +1 -1
  179. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  180. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  181. package/models/Player.ts +3 -3
  182. package/models/PlayerNotificationTarget.ts +19 -1
  183. package/models/PlayerNotificationTargetIncludeAliases.ts +31 -0
  184. package/models/PlayerSlice.ts +1 -1
  185. package/models/PropertiesDeltas.ts +53 -0
  186. package/models/PropertiesObject.ts +102 -0
  187. package/models/Purchase.ts +3 -3
  188. package/models/Segment.ts +1 -1
  189. package/models/SegmentNotificationTarget.ts +1 -1
  190. package/models/StringMap.ts +1 -1
  191. package/models/SubscriptionObject.ts +146 -0
  192. package/models/TransferSubscriptionRequestBody.ts +31 -0
  193. package/models/UpdateLiveActivityRequest.ts +62 -0
  194. package/models/UpdateLiveActivitySuccessResponse.ts +39 -0
  195. package/models/UpdatePlayerSuccessResponse.ts +1 -1
  196. package/models/UpdatePlayerTagsRequestBody.ts +1 -1
  197. package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
  198. package/models/UpdateSubscriptionRequestBody.ts +32 -0
  199. package/models/UpdateUserRequest.ts +47 -0
  200. package/models/User.ts +55 -0
  201. package/models/UserIdentityRequestBody.ts +31 -0
  202. package/models/UserIdentityResponse.ts +31 -0
  203. package/models/UserSubscriptionOptions.ts +31 -0
  204. package/models/all.ts +25 -5
  205. package/package.json +3 -3
  206. package/types/ObjectParamAPI.ts +527 -5
  207. package/types/ObservableAPI.ts +454 -5
  208. package/types/PromiseAPI.ts +216 -5
@@ -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.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -1,19 +1,21 @@
1
1
  export * from './App';
2
+ export * from './BadRequestError';
2
3
  export * from './BasicNotification';
3
4
  export * from './BasicNotificationAllOf';
4
5
  export * from './BasicNotificationAllOfAndroidBackgroundLayout';
6
+ export * from './BeginLiveActivityRequest';
5
7
  export * from './Button';
6
8
  export * from './CancelNotificationSuccessResponse';
7
- export * from './CreateNotificationBadRequestResponse';
8
9
  export * from './CreateNotificationSuccessResponse';
9
10
  export * from './CreatePlayerSuccessResponse';
10
- export * from './CreateSegmentBadRequestResponse';
11
11
  export * from './CreateSegmentConflictResponse';
12
12
  export * from './CreateSegmentSuccessResponse';
13
- export * from './DeletePlayerBadRequestResponse';
13
+ export * from './CreateSubscriptionRequestBody';
14
+ export * from './CreateUserConflictResponse';
15
+ export * from './CreateUserConflictResponseErrorsInner';
16
+ export * from './CreateUserConflictResponseErrorsItemsMeta';
14
17
  export * from './DeletePlayerNotFoundResponse';
15
18
  export * from './DeletePlayerSuccessResponse';
16
- export * from './DeleteSegmentBadRequestResponse';
17
19
  export * from './DeleteSegmentNotFoundResponse';
18
20
  export * from './DeleteSegmentSuccessResponse';
19
21
  export * from './DeliveryData';
@@ -22,11 +24,16 @@ export * from './ExportPlayersSuccessResponse';
22
24
  export * from './Filter';
23
25
  export * from './FilterExpressions';
24
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';
25
33
  export * from './InvalidIdentifierError';
26
34
  export * from './Notification';
27
35
  export * from './Notification200Errors';
28
36
  export * from './NotificationAllOf';
29
- export * from './NotificationHistoryBadRequestResponse';
30
37
  export * from './NotificationHistorySuccessResponse';
31
38
  export * from './NotificationSlice';
32
39
  export * from './NotificationTarget';
@@ -40,31 +47,46 @@ export * from './PlatformDeliveryDataEmailAllOf';
40
47
  export * from './PlatformDeliveryDataSmsAllOf';
41
48
  export * from './Player';
42
49
  export * from './PlayerNotificationTarget';
50
+ export * from './PlayerNotificationTargetIncludeAliases';
43
51
  export * from './PlayerSlice';
52
+ export * from './PropertiesDeltas';
53
+ export * from './PropertiesObject';
44
54
  export * from './Purchase';
45
55
  export * from './Segment';
46
56
  export * from './SegmentNotificationTarget';
47
57
  export * from './StringMap';
58
+ export * from './SubscriptionObject';
59
+ export * from './TransferSubscriptionRequestBody';
60
+ export * from './UpdateLiveActivityRequest';
61
+ export * from './UpdateLiveActivitySuccessResponse';
48
62
  export * from './UpdatePlayerSuccessResponse';
49
63
  export * from './UpdatePlayerTagsRequestBody';
50
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';
51
71
 
52
- import { App , AppApnsEnvEnum } from './App';
53
- import { BasicNotification , BasicNotificationAggregationEnum } from './BasicNotification';
72
+ import { App , AppApnsEnvEnum } from './App';
73
+ import { BadRequestError } from './BadRequestError';
74
+ import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
54
75
  import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
55
76
  import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
77
+ import { BeginLiveActivityRequest } from './BeginLiveActivityRequest';
56
78
  import { Button } from './Button';
57
79
  import { CancelNotificationSuccessResponse } from './CancelNotificationSuccessResponse';
58
- import { CreateNotificationBadRequestResponse } from './CreateNotificationBadRequestResponse';
59
80
  import { CreateNotificationSuccessResponse } from './CreateNotificationSuccessResponse';
60
81
  import { CreatePlayerSuccessResponse } from './CreatePlayerSuccessResponse';
61
- import { CreateSegmentBadRequestResponse } from './CreateSegmentBadRequestResponse';
62
82
  import { CreateSegmentConflictResponse } from './CreateSegmentConflictResponse';
63
83
  import { CreateSegmentSuccessResponse } from './CreateSegmentSuccessResponse';
64
- import { DeletePlayerBadRequestResponse } from './DeletePlayerBadRequestResponse';
84
+ import { CreateSubscriptionRequestBody } from './CreateSubscriptionRequestBody';
85
+ import { CreateUserConflictResponse } from './CreateUserConflictResponse';
86
+ import { CreateUserConflictResponseErrorsInner } from './CreateUserConflictResponseErrorsInner';
87
+ import { CreateUserConflictResponseErrorsItemsMeta } from './CreateUserConflictResponseErrorsItemsMeta';
65
88
  import { DeletePlayerNotFoundResponse } from './DeletePlayerNotFoundResponse';
66
89
  import { DeletePlayerSuccessResponse } from './DeletePlayerSuccessResponse';
67
- import { DeleteSegmentBadRequestResponse } from './DeleteSegmentBadRequestResponse';
68
90
  import { DeleteSegmentNotFoundResponse } from './DeleteSegmentNotFoundResponse';
69
91
  import { DeleteSegmentSuccessResponse } from './DeleteSegmentSuccessResponse';
70
92
  import { DeliveryData } from './DeliveryData';
@@ -73,15 +95,20 @@ import { ExportPlayersSuccessResponse } from './ExportPlayersSuccessResponse';
73
95
  import { Filter , FilterRelationEnum } from './Filter';
74
96
  import { FilterExpressions , FilterExpressionsRelationEnum , FilterExpressionsOperatorEnum } from './FilterExpressions';
75
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';
76
104
  import { InvalidIdentifierError } from './InvalidIdentifierError';
77
- import { Notification , NotificationAggregationEnum } from './Notification';
105
+ import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
78
106
  import { Notification200Errors } from './Notification200Errors';
79
107
  import { NotificationAllOf } from './NotificationAllOf';
80
- import { NotificationHistoryBadRequestResponse } from './NotificationHistoryBadRequestResponse';
81
108
  import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
82
109
  import { NotificationSlice } from './NotificationSlice';
83
- import { NotificationTarget } from './NotificationTarget';
84
- import { NotificationWithMeta , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
110
+ import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
111
+ import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
85
112
  import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
86
113
  import { Operator, OperatorOperatorEnum } from './Operator';
87
114
  import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';
@@ -90,15 +117,28 @@ import { PlatformDeliveryData } from './PlatformDeliveryData';
90
117
  import { PlatformDeliveryDataEmailAllOf } from './PlatformDeliveryDataEmailAllOf';
91
118
  import { PlatformDeliveryDataSmsAllOf } from './PlatformDeliveryDataSmsAllOf';
92
119
  import { Player } from './Player';
93
- import { PlayerNotificationTarget } from './PlayerNotificationTarget';
120
+ import { PlayerNotificationTarget , PlayerNotificationTargetTargetChannelEnum } from './PlayerNotificationTarget';
121
+ import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
94
122
  import { PlayerSlice } from './PlayerSlice';
123
+ import { PropertiesDeltas } from './PropertiesDeltas';
124
+ import { PropertiesObject } from './PropertiesObject';
95
125
  import { Purchase } from './Purchase';
96
126
  import { Segment } from './Segment';
97
127
  import { SegmentNotificationTarget } from './SegmentNotificationTarget';
98
128
  import { StringMap } from './StringMap';
129
+ import { SubscriptionObject , SubscriptionObjectTypeEnum } from './SubscriptionObject';
130
+ import { TransferSubscriptionRequestBody } from './TransferSubscriptionRequestBody';
131
+ import { UpdateLiveActivityRequest, UpdateLiveActivityRequestNameEnum , UpdateLiveActivityRequestEventEnum } from './UpdateLiveActivityRequest';
132
+ import { UpdateLiveActivitySuccessResponse } from './UpdateLiveActivitySuccessResponse';
99
133
  import { UpdatePlayerSuccessResponse } from './UpdatePlayerSuccessResponse';
100
134
  import { UpdatePlayerTagsRequestBody } from './UpdatePlayerTagsRequestBody';
101
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';
102
142
 
103
143
  /* tslint:disable:no-unused-variable */
104
144
  let primitives = [
@@ -121,35 +161,45 @@ const supportedMediaTypes: { [mediaType: string]: number } = {
121
161
 
122
162
  let enumsMap: Set<string> = new Set<string>([
123
163
  "AppApnsEnvEnum",
164
+ "BasicNotificationTargetChannelEnum",
124
165
  "BasicNotificationAggregationEnum",
125
166
  "BasicNotificationAllOfAggregationEnum",
126
167
  "FilterRelationEnum",
127
168
  "FilterExpressionsRelationEnum",
128
169
  "FilterExpressionsOperatorEnum",
129
170
  "GetNotificationRequestBodyEventsEnum",
171
+ "NotificationTargetChannelEnum",
130
172
  "NotificationAggregationEnum",
173
+ "NotificationTargetTargetChannelEnum",
174
+ "NotificationWithMetaTargetChannelEnum",
131
175
  "NotificationWithMetaAggregationEnum",
132
176
  "OperatorOperatorEnum",
133
177
  "OutcomeDataAggregationEnum",
178
+ "PlayerNotificationTargetTargetChannelEnum",
179
+ "SubscriptionObjectTypeEnum",
180
+ "UpdateLiveActivityRequestNameEnum",
181
+ "UpdateLiveActivityRequestEventEnum",
134
182
  ]);
135
183
 
136
184
  let typeMap: {[index: string]: any} = {
137
185
  "App": App,
186
+ "BadRequestError": BadRequestError,
138
187
  "BasicNotification": BasicNotification,
139
188
  "BasicNotificationAllOf": BasicNotificationAllOf,
140
189
  "BasicNotificationAllOfAndroidBackgroundLayout": BasicNotificationAllOfAndroidBackgroundLayout,
190
+ "BeginLiveActivityRequest": BeginLiveActivityRequest,
141
191
  "Button": Button,
142
192
  "CancelNotificationSuccessResponse": CancelNotificationSuccessResponse,
143
- "CreateNotificationBadRequestResponse": CreateNotificationBadRequestResponse,
144
193
  "CreateNotificationSuccessResponse": CreateNotificationSuccessResponse,
145
194
  "CreatePlayerSuccessResponse": CreatePlayerSuccessResponse,
146
- "CreateSegmentBadRequestResponse": CreateSegmentBadRequestResponse,
147
195
  "CreateSegmentConflictResponse": CreateSegmentConflictResponse,
148
196
  "CreateSegmentSuccessResponse": CreateSegmentSuccessResponse,
149
- "DeletePlayerBadRequestResponse": DeletePlayerBadRequestResponse,
197
+ "CreateSubscriptionRequestBody": CreateSubscriptionRequestBody,
198
+ "CreateUserConflictResponse": CreateUserConflictResponse,
199
+ "CreateUserConflictResponseErrorsInner": CreateUserConflictResponseErrorsInner,
200
+ "CreateUserConflictResponseErrorsItemsMeta": CreateUserConflictResponseErrorsItemsMeta,
150
201
  "DeletePlayerNotFoundResponse": DeletePlayerNotFoundResponse,
151
202
  "DeletePlayerSuccessResponse": DeletePlayerSuccessResponse,
152
- "DeleteSegmentBadRequestResponse": DeleteSegmentBadRequestResponse,
153
203
  "DeleteSegmentNotFoundResponse": DeleteSegmentNotFoundResponse,
154
204
  "DeleteSegmentSuccessResponse": DeleteSegmentSuccessResponse,
155
205
  "DeliveryData": DeliveryData,
@@ -158,11 +208,16 @@ let typeMap: {[index: string]: any} = {
158
208
  "Filter": Filter,
159
209
  "FilterExpressions": FilterExpressions,
160
210
  "GetNotificationRequestBody": GetNotificationRequestBody,
211
+ "IdentifyUserConflictResponse": IdentifyUserConflictResponse,
212
+ "IdentifyUserConflictResponseErrorsInner": IdentifyUserConflictResponseErrorsInner,
213
+ "InlineResponse200": InlineResponse200,
214
+ "InlineResponse2003": InlineResponse2003,
215
+ "InlineResponse201": InlineResponse201,
216
+ "InlineResponse202": InlineResponse202,
161
217
  "InvalidIdentifierError": InvalidIdentifierError,
162
218
  "Notification": Notification,
163
219
  "Notification200Errors": Notification200Errors,
164
220
  "NotificationAllOf": NotificationAllOf,
165
- "NotificationHistoryBadRequestResponse": NotificationHistoryBadRequestResponse,
166
221
  "NotificationHistorySuccessResponse": NotificationHistorySuccessResponse,
167
222
  "NotificationSlice": NotificationSlice,
168
223
  "NotificationTarget": NotificationTarget,
@@ -176,14 +231,27 @@ let typeMap: {[index: string]: any} = {
176
231
  "PlatformDeliveryDataSmsAllOf": PlatformDeliveryDataSmsAllOf,
177
232
  "Player": Player,
178
233
  "PlayerNotificationTarget": PlayerNotificationTarget,
234
+ "PlayerNotificationTargetIncludeAliases": PlayerNotificationTargetIncludeAliases,
179
235
  "PlayerSlice": PlayerSlice,
236
+ "PropertiesDeltas": PropertiesDeltas,
237
+ "PropertiesObject": PropertiesObject,
180
238
  "Purchase": Purchase,
181
239
  "Segment": Segment,
182
240
  "SegmentNotificationTarget": SegmentNotificationTarget,
183
241
  "StringMap": StringMap,
242
+ "SubscriptionObject": SubscriptionObject,
243
+ "TransferSubscriptionRequestBody": TransferSubscriptionRequestBody,
244
+ "UpdateLiveActivityRequest": UpdateLiveActivityRequest,
245
+ "UpdateLiveActivitySuccessResponse": UpdateLiveActivitySuccessResponse,
184
246
  "UpdatePlayerSuccessResponse": UpdatePlayerSuccessResponse,
185
247
  "UpdatePlayerTagsRequestBody": UpdatePlayerTagsRequestBody,
186
248
  "UpdatePlayerTagsSuccessResponse": UpdatePlayerTagsSuccessResponse,
249
+ "UpdateSubscriptionRequestBody": UpdateSubscriptionRequestBody,
250
+ "UpdateUserRequest": UpdateUserRequest,
251
+ "User": User,
252
+ "UserIdentityRequestBody": UserIdentityRequestBody,
253
+ "UserIdentityResponse": UserIdentityResponse,
254
+ "UserSubscriptionOptions": UserSubscriptionOptions,
187
255
  }
188
256
 
189
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.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.0.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.0.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.0.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.0.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.0.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/Player.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.0.1
5
+ * API Version: 1.1.0
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.1
5
+ * API Version: 1.1.0
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.1.0
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.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -0,0 +1,53 @@
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.1.0
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
+ 'amount_spent'?: number;
16
+ 'purchases'?: Array<Purchase>;
17
+
18
+ static readonly discriminator: string | undefined = undefined;
19
+
20
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
21
+ {
22
+ "name": "session_time",
23
+ "baseName": "session_time",
24
+ "type": "number",
25
+ "format": ""
26
+ },
27
+ {
28
+ "name": "session_count",
29
+ "baseName": "session_count",
30
+ "type": "number",
31
+ "format": ""
32
+ },
33
+ {
34
+ "name": "amount_spent",
35
+ "baseName": "amount_spent",
36
+ "type": "number",
37
+ "format": ""
38
+ },
39
+ {
40
+ "name": "purchases",
41
+ "baseName": "purchases",
42
+ "type": "Array<Purchase>",
43
+ "format": ""
44
+ } ];
45
+
46
+ static getAttributeTypeMap() {
47
+ return PropertiesDeltas.attributeTypeMap;
48
+ }
49
+
50
+ public constructor() {
51
+ }
52
+ }
53
+
@@ -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.1.0
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.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -16,7 +16,7 @@ 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
  */
@@ -34,7 +34,7 @@ export class Purchase {
34
34
  {
35
35
  "name": "amount",
36
36
  "baseName": "amount",
37
- "type": "number",
37
+ "type": "string",
38
38
  "format": ""
39
39
  },
40
40
  {
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.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.0.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.0.1
5
+ * API Version: 1.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8