@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.
- package/.github/workflows/Zapier.yml +34 -0
- package/CHANGELOG.md +15 -0
- package/DefaultApi.md +988 -3
- package/README.md +152 -24
- package/apis/DefaultApi.ts +1339 -98
- package/dist/apis/DefaultApi.d.ts +39 -0
- package/dist/apis/DefaultApi.js +1490 -408
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/models/BasicNotification.d.ts +4 -0
- package/dist/models/BasicNotification.js +12 -0
- package/dist/models/BasicNotification.js.map +1 -1
- package/dist/models/CreateNotificationSuccessResponse.d.ts +2 -2
- package/dist/models/CreateSubscriptionRequestBody.d.ts +19 -0
- package/dist/models/CreateSubscriptionRequestBody.js +28 -0
- package/dist/models/CreateSubscriptionRequestBody.js.map +1 -0
- package/dist/models/CreateUserConflictResponse.d.ts +18 -0
- package/dist/models/CreateUserConflictResponse.js +22 -0
- package/dist/models/CreateUserConflictResponse.js.map +1 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.d.ts +20 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.js +34 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.js.map +1 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.d.ts +17 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +22 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +1 -0
- package/dist/models/IdentifyUserConflictResponse.d.ts +18 -0
- package/dist/models/IdentifyUserConflictResponse.js +22 -0
- package/dist/models/IdentifyUserConflictResponse.js.map +1 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.d.ts +18 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js +28 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +1 -0
- package/dist/models/InlineResponse200.d.ts +19 -0
- package/dist/models/InlineResponse200.js +22 -0
- package/dist/models/InlineResponse200.js.map +1 -0
- package/dist/models/InlineResponse2003.d.ts +17 -0
- package/dist/models/InlineResponse2003.js +22 -0
- package/dist/models/InlineResponse2003.js.map +1 -0
- package/dist/models/InlineResponse201.d.ts +18 -0
- package/dist/models/InlineResponse201.js +22 -0
- package/dist/models/InlineResponse201.js.map +1 -0
- package/dist/models/InlineResponse202.d.ts +18 -0
- package/dist/models/InlineResponse202.js +22 -0
- package/dist/models/InlineResponse202.js.map +1 -0
- package/dist/models/Notification.d.ts +4 -0
- package/dist/models/Notification.js +12 -0
- package/dist/models/Notification.js.map +1 -1
- package/dist/models/NotificationTarget.d.ts +4 -0
- package/dist/models/NotificationTarget.js +12 -0
- package/dist/models/NotificationTarget.js.map +1 -1
- package/dist/models/NotificationWithMeta.d.ts +4 -0
- package/dist/models/NotificationWithMeta.js +12 -0
- package/dist/models/NotificationWithMeta.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +21 -0
- package/dist/models/ObjectSerializer.js +69 -0
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/Player.d.ts +1 -1
- package/dist/models/Player.js +1 -1
- package/dist/models/Player.js.map +1 -1
- package/dist/models/PlayerNotificationTarget.d.ts +4 -0
- package/dist/models/PlayerNotificationTarget.js +12 -0
- package/dist/models/PlayerNotificationTarget.js.map +1 -1
- package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +17 -0
- package/dist/models/PlayerNotificationTargetIncludeAliases.js +22 -0
- package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +1 -0
- package/dist/models/PropertiesDeltas.d.ts +20 -0
- package/dist/models/PropertiesDeltas.js +34 -0
- package/dist/models/PropertiesDeltas.js.map +1 -0
- package/dist/models/PropertiesObject.d.ts +30 -0
- package/dist/models/PropertiesObject.js +82 -0
- package/dist/models/PropertiesObject.js.map +1 -0
- package/dist/models/Purchase.d.ts +2 -1
- package/dist/models/Purchase.js +7 -1
- package/dist/models/Purchase.js.map +1 -1
- package/dist/models/SubscriptionObject.d.ts +34 -0
- package/dist/models/SubscriptionObject.js +118 -0
- package/dist/models/SubscriptionObject.js.map +1 -0
- package/dist/models/TransferSubscriptionRequestBody.d.ts +19 -0
- package/dist/models/TransferSubscriptionRequestBody.js +22 -0
- package/dist/models/TransferSubscriptionRequestBody.js.map +1 -0
- package/dist/models/UpdateSubscriptionRequestBody.d.ts +18 -0
- package/dist/models/UpdateSubscriptionRequestBody.js +22 -0
- package/dist/models/UpdateSubscriptionRequestBody.js.map +1 -0
- package/dist/models/UpdateUserRequest.d.ts +21 -0
- package/dist/models/UpdateUserRequest.js +34 -0
- package/dist/models/UpdateUserRequest.js.map +1 -0
- package/dist/models/User.d.ts +25 -0
- package/dist/models/User.js +40 -0
- package/dist/models/User.js.map +1 -0
- package/dist/models/UserIdentityRequestBody.d.ts +19 -0
- package/dist/models/UserIdentityRequestBody.js +22 -0
- package/dist/models/UserIdentityRequestBody.js.map +1 -0
- package/dist/models/UserIdentityResponse.d.ts +19 -0
- package/dist/models/UserIdentityResponse.js +22 -0
- package/dist/models/UserIdentityResponse.js.map +1 -0
- package/dist/models/UserSubscriptionOptions.d.ts +17 -0
- package/dist/models/UserSubscriptionOptions.js +22 -0
- package/dist/models/UserSubscriptionOptions.js.map +1 -0
- package/dist/models/all.d.ts +21 -0
- package/dist/models/all.js +21 -0
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +95 -0
- package/dist/types/ObjectParamAPI.js +42 -0
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +25 -0
- package/dist/types/ObservableAPI.js +383 -47
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +25 -0
- package/dist/types/PromiseAPI.js +56 -0
- package/dist/types/PromiseAPI.js.map +1 -1
- package/models/App.ts +1 -1
- package/models/BadRequestError.ts +1 -1
- package/models/BasicNotification.ts +17 -1
- package/models/BasicNotificationAllOf.ts +1 -1
- package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
- package/models/BeginLiveActivityRequest.ts +1 -1
- package/models/Button.ts +1 -1
- package/models/CancelNotificationSuccessResponse.ts +1 -1
- package/models/CreateNotificationSuccessResponse.ts +3 -3
- package/models/CreatePlayerSuccessResponse.ts +1 -1
- package/models/CreateSegmentConflictResponse.ts +1 -1
- package/models/CreateSegmentSuccessResponse.ts +1 -1
- package/models/CreateSubscriptionRequestBody.ts +39 -0
- package/models/CreateUserConflictResponse.ts +32 -0
- package/models/CreateUserConflictResponseErrorsInner.ts +46 -0
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +31 -0
- package/models/DeletePlayerNotFoundResponse.ts +1 -1
- package/models/DeletePlayerSuccessResponse.ts +1 -1
- package/models/DeleteSegmentNotFoundResponse.ts +1 -1
- package/models/DeleteSegmentSuccessResponse.ts +1 -1
- package/models/DeliveryData.ts +1 -1
- package/models/ExportPlayersRequestBody.ts +1 -1
- package/models/ExportPlayersSuccessResponse.ts +1 -1
- package/models/Filter.ts +1 -1
- package/models/FilterExpressions.ts +1 -1
- package/models/GetNotificationRequestBody.ts +1 -1
- package/models/IdentifyUserConflictResponse.ts +32 -0
- package/models/IdentifyUserConflictResponseErrorsInner.ts +38 -0
- package/models/InlineResponse200.ts +31 -0
- package/models/InlineResponse2003.ts +31 -0
- package/models/InlineResponse201.ts +32 -0
- package/models/InlineResponse202.ts +32 -0
- package/models/InvalidIdentifierError.ts +1 -1
- package/models/Notification.ts +17 -1
- package/models/Notification200Errors.ts +1 -1
- package/models/NotificationAllOf.ts +1 -1
- package/models/NotificationHistorySuccessResponse.ts +1 -1
- package/models/NotificationSlice.ts +1 -1
- package/models/NotificationTarget.ts +19 -1
- package/models/NotificationWithMeta.ts +17 -1
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +74 -5
- package/models/Operator.ts +1 -1
- package/models/OutcomeData.ts +1 -1
- package/models/OutcomesData.ts +1 -1
- package/models/PlatformDeliveryData.ts +1 -1
- package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
- package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
- package/models/Player.ts +3 -3
- package/models/PlayerNotificationTarget.ts +19 -1
- package/models/PlayerNotificationTargetIncludeAliases.ts +31 -0
- package/models/PlayerSlice.ts +1 -1
- package/models/PropertiesDeltas.ts +46 -0
- package/models/PropertiesObject.ts +102 -0
- package/models/Purchase.ts +10 -3
- package/models/Segment.ts +1 -1
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/StringMap.ts +1 -1
- package/models/SubscriptionObject.ts +146 -0
- package/models/TransferSubscriptionRequestBody.ts +31 -0
- package/models/UpdateLiveActivityRequest.ts +1 -1
- package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
- package/models/UpdatePlayerSuccessResponse.ts +1 -1
- package/models/UpdatePlayerTagsRequestBody.ts +1 -1
- package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
- package/models/UpdateSubscriptionRequestBody.ts +32 -0
- package/models/UpdateUserRequest.ts +47 -0
- package/models/User.ts +55 -0
- package/models/UserIdentityRequestBody.ts +31 -0
- package/models/UserIdentityResponse.ts +31 -0
- package/models/UserSubscriptionOptions.ts +31 -0
- package/models/all.ts +21 -0
- package/package.json +2 -2
- package/types/ObjectParamAPI.ts +427 -0
- package/types/ObservableAPI.ts +371 -0
- 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
|
|
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
|
|
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
|
|
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 {
|
package/models/Operator.ts
CHANGED
package/models/OutcomeData.ts
CHANGED
package/models/OutcomesData.ts
CHANGED
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.
|
|
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
|
-
'
|
|
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": "
|
|
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.
|
|
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
|
+
|
package/models/PlayerSlice.ts
CHANGED
|
@@ -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
|
+
|
package/models/Purchase.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.
|
|
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':
|
|
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": "
|
|
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
package/models/StringMap.ts
CHANGED