@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
@@ -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 { CreateUserConflictResponseErrorsItemsMeta } from './CreateUserConflictResponseErrorsItemsMeta';
10
+ import { HttpFile } from '../http/http';
11
+
12
+ export class CreateUserConflictResponseErrorsInner {
13
+ 'code'?: string;
14
+ 'title'?: string;
15
+ 'meta'?: CreateUserConflictResponseErrorsItemsMeta;
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": "code",
22
+ "baseName": "code",
23
+ "type": "string",
24
+ "format": ""
25
+ },
26
+ {
27
+ "name": "title",
28
+ "baseName": "title",
29
+ "type": "string",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "meta",
34
+ "baseName": "meta",
35
+ "type": "CreateUserConflictResponseErrorsItemsMeta",
36
+ "format": ""
37
+ } ];
38
+
39
+ static getAttributeTypeMap() {
40
+ return CreateUserConflictResponseErrorsInner.attributeTypeMap;
41
+ }
42
+
43
+ public constructor() {
44
+ }
45
+ }
46
+
@@ -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 CreateUserConflictResponseErrorsItemsMeta {
12
+ 'conflicting_aliases'?: object;
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": "conflicting_aliases",
19
+ "baseName": "conflicting_aliases",
20
+ "type": "object",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return CreateUserConflictResponseErrorsItemsMeta.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
 
@@ -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/Filter.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.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
 
@@ -0,0 +1,32 @@
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 { IdentifyUserConflictResponseErrorsInner } from './IdentifyUserConflictResponseErrorsInner';
10
+ import { HttpFile } from '../http/http';
11
+
12
+ export class IdentifyUserConflictResponse {
13
+ 'errors'?: Array<IdentifyUserConflictResponseErrorsInner>;
14
+
15
+ static readonly discriminator: string | undefined = undefined;
16
+
17
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
18
+ {
19
+ "name": "errors",
20
+ "baseName": "errors",
21
+ "type": "Array<IdentifyUserConflictResponseErrorsInner>",
22
+ "format": ""
23
+ } ];
24
+
25
+ static getAttributeTypeMap() {
26
+ return IdentifyUserConflictResponse.attributeTypeMap;
27
+ }
28
+
29
+ public constructor() {
30
+ }
31
+ }
32
+
@@ -0,0 +1,38 @@
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 IdentifyUserConflictResponseErrorsInner {
12
+ 'code'?: string;
13
+ 'title'?: string;
14
+
15
+ static readonly discriminator: string | undefined = undefined;
16
+
17
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
18
+ {
19
+ "name": "code",
20
+ "baseName": "code",
21
+ "type": "string",
22
+ "format": ""
23
+ },
24
+ {
25
+ "name": "title",
26
+ "baseName": "title",
27
+ "type": "string",
28
+ "format": ""
29
+ } ];
30
+
31
+ static getAttributeTypeMap() {
32
+ return IdentifyUserConflictResponseErrorsInner.attributeTypeMap;
33
+ }
34
+
35
+ public constructor() {
36
+ }
37
+ }
38
+
@@ -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 InlineResponse200 {
12
+ 'identity'?: { [key: string]: any; };
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": "identity",
19
+ "baseName": "identity",
20
+ "type": "{ [key: string]: any; }",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return InlineResponse200.attributeTypeMap;
26
+ }
27
+
28
+ public constructor() {
29
+ }
30
+ }
31
+
@@ -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 InlineResponse2003 {
12
+ 'in_app_messages'?: Array<object>;
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": "in_app_messages",
19
+ "baseName": "in_app_messages",
20
+ "type": "Array<object>",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return InlineResponse2003.attributeTypeMap;
26
+ }
27
+
28
+ public constructor() {
29
+ }
30
+ }
31
+
@@ -0,0 +1,32 @@
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 { SubscriptionObject } from './SubscriptionObject';
10
+ import { HttpFile } from '../http/http';
11
+
12
+ export class InlineResponse201 {
13
+ 'subscription'?: SubscriptionObject;
14
+
15
+ static readonly discriminator: string | undefined = undefined;
16
+
17
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
18
+ {
19
+ "name": "subscription",
20
+ "baseName": "subscription",
21
+ "type": "SubscriptionObject",
22
+ "format": ""
23
+ } ];
24
+
25
+ static getAttributeTypeMap() {
26
+ return InlineResponse201.attributeTypeMap;
27
+ }
28
+
29
+ public constructor() {
30
+ }
31
+ }
32
+
@@ -0,0 +1,32 @@
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 { PropertiesObject } from './PropertiesObject';
10
+ import { HttpFile } from '../http/http';
11
+
12
+ export class InlineResponse202 {
13
+ 'properties'?: PropertiesObject;
14
+
15
+ static readonly discriminator: string | undefined = undefined;
16
+
17
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
18
+ {
19
+ "name": "properties",
20
+ "baseName": "properties",
21
+ "type": "PropertiesObject",
22
+ "format": ""
23
+ } ];
24
+
25
+ static getAttributeTypeMap() {
26
+ return InlineResponse202.attributeTypeMap;
27
+ }
28
+
29
+ public constructor() {
30
+ }
31
+ }
32
+
@@ -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
 
@@ -11,6 +11,7 @@ import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificati
11
11
  import { Button } from './Button';
12
12
  import { Filter } from './Filter';
13
13
  import { NotificationAllOf } from './NotificationAllOf';
14
+ import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
14
15
  import { StringMap } from './StringMap';
15
16
  import { HttpFile } from '../http/http';
16
17
 
@@ -63,6 +64,8 @@ export class Notification {
63
64
  * Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
64
65
  */
65
66
  'include_android_reg_ids'?: Array<string>;
67
+ 'include_aliases'?: PlayerNotificationTargetIncludeAliases;
68
+ 'target_channel'?: NotificationTargetChannelEnum;
66
69
  'id'?: string;
67
70
  'value'?: number;
68
71
  /**
@@ -475,6 +478,18 @@ export class Notification {
475
478
  "type": "Array<string>",
476
479
  "format": ""
477
480
  },
481
+ {
482
+ "name": "include_aliases",
483
+ "baseName": "include_aliases",
484
+ "type": "PlayerNotificationTargetIncludeAliases",
485
+ "format": ""
486
+ },
487
+ {
488
+ "name": "target_channel",
489
+ "baseName": "target_channel",
490
+ "type": "NotificationTargetChannelEnum",
491
+ "format": ""
492
+ },
478
493
  {
479
494
  "name": "id",
480
495
  "baseName": "id",
@@ -1025,5 +1040,6 @@ export class Notification {
1025
1040
  }
1026
1041
 
1027
1042
 
1043
+ export type NotificationTargetChannelEnum = "push" | "email" | "sms" ;
1028
1044
  export type NotificationAggregationEnum = "sum" | "count" ;
1029
1045
 
@@ -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,11 +2,12 @@
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
9
  import { PlayerNotificationTarget } from './PlayerNotificationTarget';
10
+ import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
10
11
  import { SegmentNotificationTarget } from './SegmentNotificationTarget';
11
12
  import { HttpFile } from '../http/http';
12
13
 
@@ -59,6 +60,8 @@ export class NotificationTarget {
59
60
  * Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
60
61
  */
61
62
  'include_android_reg_ids'?: Array<string>;
63
+ 'include_aliases'?: PlayerNotificationTargetIncludeAliases;
64
+ 'target_channel'?: NotificationTargetTargetChannelEnum;
62
65
 
63
66
  static readonly discriminator: string | undefined = undefined;
64
67
 
@@ -134,6 +137,18 @@ export class NotificationTarget {
134
137
  "baseName": "include_android_reg_ids",
135
138
  "type": "Array<string>",
136
139
  "format": ""
140
+ },
141
+ {
142
+ "name": "include_aliases",
143
+ "baseName": "include_aliases",
144
+ "type": "PlayerNotificationTargetIncludeAliases",
145
+ "format": ""
146
+ },
147
+ {
148
+ "name": "target_channel",
149
+ "baseName": "target_channel",
150
+ "type": "NotificationTargetTargetChannelEnum",
151
+ "format": ""
137
152
  } ];
138
153
 
139
154
  static getAttributeTypeMap() {
@@ -144,3 +159,6 @@ export class NotificationTarget {
144
159
  }
145
160
  }
146
161
 
162
+
163
+ export type NotificationTargetTargetChannelEnum = "push" | "email" | "sms" ;
164
+
@@ -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
 
@@ -15,6 +15,7 @@ import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
15
15
  import { OutcomeData } from './OutcomeData';
16
16
  import { OutcomesData } from './OutcomesData';
17
17
  import { PlatformDeliveryData } from './PlatformDeliveryData';
18
+ import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
18
19
  import { StringMap } from './StringMap';
19
20
  import { HttpFile } from '../http/http';
20
21
 
@@ -67,6 +68,8 @@ export class NotificationWithMeta {
67
68
  * 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
68
69
  */
69
70
  'include_android_reg_ids'?: Array<string>;
71
+ 'include_aliases'?: PlayerNotificationTargetIncludeAliases;
72
+ 'target_channel'?: NotificationWithMetaTargetChannelEnum;
70
73
  'id'?: string;
71
74
  'value'?: number;
72
75
  /**
@@ -513,6 +516,18 @@ export class NotificationWithMeta {
513
516
  "type": "Array<string>",
514
517
  "format": ""
515
518
  },
519
+ {
520
+ "name": "include_aliases",
521
+ "baseName": "include_aliases",
522
+ "type": "PlayerNotificationTargetIncludeAliases",
523
+ "format": ""
524
+ },
525
+ {
526
+ "name": "target_channel",
527
+ "baseName": "target_channel",
528
+ "type": "NotificationWithMetaTargetChannelEnum",
529
+ "format": ""
530
+ },
516
531
  {
517
532
  "name": "id",
518
533
  "baseName": "id",
@@ -1123,5 +1138,6 @@ export class NotificationWithMeta {
1123
1138
  }
1124
1139
 
1125
1140
 
1141
+ export type NotificationWithMetaTargetChannelEnum = "push" | "email" | "sms" ;
1126
1142
  export type NotificationWithMetaAggregationEnum = "sum" | "count" ;
1127
1143
 
@@ -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