@onesignal/node-onesignal 1.0.0-beta4 → 1.0.0-beta6

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 (234) hide show
  1. package/.github/ISSUE_TEMPLATE/ask-question.yml +25 -0
  2. package/.github/ISSUE_TEMPLATE/bug-report.yml +51 -0
  3. package/.github/ISSUE_TEMPLATE/general-feedback.yml +25 -0
  4. package/.github/pull_request_template.md +44 -0
  5. package/.github/workflows/npm_deploy.yml +23 -0
  6. package/CHANGELOG.md +29 -0
  7. package/DefaultApi.md +1232 -0
  8. package/LICENSE +24 -0
  9. package/README.md +205 -102
  10. package/RELEASE_INSTRUCTIONS.md +2 -0
  11. package/apis/DefaultApi.ts +519 -532
  12. package/apis/baseapi.ts +4 -4
  13. package/apis/exception.ts +4 -3
  14. package/auth/auth.ts +4 -1
  15. package/configuration.ts +21 -2
  16. package/http/http.ts +26 -26
  17. package/index.ts +1 -0
  18. package/middleware.ts +1 -1
  19. package/models/App.ts +8 -8
  20. package/models/BasicNotification.ts +1019 -0
  21. package/models/BasicNotificationAllOf.ts +897 -0
  22. package/models/{NotificationAllOfAndroidBackgroundLayout.ts → BasicNotificationAllOfAndroidBackgroundLayout.ts} +4 -4
  23. package/models/Button.ts +2 -2
  24. package/models/CancelNotificationSuccessResponse.ts +31 -0
  25. package/models/{InlineResponse400.ts → CreateNotificationBadRequestResponse.ts} +4 -4
  26. package/models/{InlineResponse200.ts → CreateNotificationSuccessResponse.ts} +7 -6
  27. package/models/{InlineResponse2004.ts → CreatePlayerSuccessResponse.ts} +4 -4
  28. package/models/CreateSegmentBadRequestResponse.ts +38 -0
  29. package/models/{InlineResponse409.ts → CreateSegmentConflictResponse.ts} +4 -4
  30. package/models/{InlineResponse201.ts → CreateSegmentSuccessResponse.ts} +4 -4
  31. package/models/DeletePlayerBadRequestResponse.ts +31 -0
  32. package/models/DeletePlayerNotFoundResponse.ts +31 -0
  33. package/models/{InlineResponse2003.ts → DeletePlayerSuccessResponse.ts} +4 -4
  34. package/models/{InlineResponse4002.ts → DeleteSegmentBadRequestResponse.ts} +4 -4
  35. package/models/DeleteSegmentNotFoundResponse.ts +31 -0
  36. package/models/DeleteSegmentSuccessResponse.ts +31 -0
  37. package/models/DeliveryData.ts +17 -2
  38. package/models/ExportPlayersRequestBody.ts +5 -5
  39. package/models/{InlineResponse2005.ts → ExportPlayersSuccessResponse.ts} +4 -4
  40. package/models/Filter.ts +4 -4
  41. package/models/FilterExpressions.ts +4 -4
  42. package/models/FilterNotificationTarget.ts +2 -2
  43. package/models/GetNotificationRequestBody.ts +2 -2
  44. package/models/InvalidIdentifierError.ts +44 -0
  45. package/models/Notification.ts +72 -174
  46. package/models/Notification200Errors.ts +45 -0
  47. package/models/NotificationAllOf.ts +3 -858
  48. package/models/{InlineResponse4001.ts → NotificationHistoryBadRequestResponse.ts} +4 -4
  49. package/models/{InlineResponse2002.ts → NotificationHistorySuccessResponse.ts} +6 -6
  50. package/models/NotificationSlice.ts +5 -5
  51. package/models/NotificationTarget.ts +3 -124
  52. package/models/NotificationWithMeta.ts +1127 -0
  53. package/models/NotificationWithMetaAllOf.ts +132 -0
  54. package/models/ObjectSerializer.ts +97 -46
  55. package/models/Operator.ts +2 -2
  56. package/models/OutcomeData.ts +2 -2
  57. package/models/OutcomesData.ts +32 -0
  58. package/models/PlatformDeliveryData.ts +18 -2
  59. package/models/PlatformDeliveryDataEmailAllOf.ts +94 -0
  60. package/models/PlatformDeliveryDataSmsAllOf.ts +54 -0
  61. package/models/Player.ts +14 -14
  62. package/models/PlayerNotificationTarget.ts +3 -3
  63. package/models/PlayerSlice.ts +2 -2
  64. package/models/Purchase.ts +2 -2
  65. package/models/Segment.ts +3 -3
  66. package/models/SegmentNotificationTarget.ts +2 -2
  67. package/models/StringMap.ts +3 -3
  68. package/models/{InlineResponse2001.ts → UpdatePlayerSuccessResponse.ts} +6 -6
  69. package/models/UpdatePlayerTagsRequestBody.ts +4 -4
  70. package/models/UpdatePlayerTagsSuccessResponse.ts +31 -0
  71. package/models/all.ts +28 -13
  72. package/package.json +14 -9
  73. package/tsconfig.json +1 -2
  74. package/types/ObjectParamAPI.ts +101 -86
  75. package/types/ObservableAPI.ts +116 -101
  76. package/types/PromiseAPI.ts +97 -82
  77. package/util.ts +10 -1
  78. package/dist/apis/DefaultApi.d.ts +0 -62
  79. package/dist/apis/DefaultApi.js +0 -1317
  80. package/dist/apis/DefaultApi.js.map +0 -1
  81. package/dist/apis/baseapi.d.ts +0 -16
  82. package/dist/apis/baseapi.js +0 -42
  83. package/dist/apis/baseapi.js.map +0 -1
  84. package/dist/apis/exception.d.ts +0 -5
  85. package/dist/apis/exception.js +0 -28
  86. package/dist/apis/exception.js.map +0 -1
  87. package/dist/auth/auth.d.ts +0 -40
  88. package/dist/auth/auth.js +0 -108
  89. package/dist/auth/auth.js.map +0 -1
  90. package/dist/configuration.d.ts +0 -18
  91. package/dist/configuration.js +0 -21
  92. package/dist/configuration.js.map +0 -1
  93. package/dist/http/http.d.ts +0 -72
  94. package/dist/http/http.js +0 -205
  95. package/dist/http/http.js.map +0 -1
  96. package/dist/http/isomorphic-fetch.d.ts +0 -5
  97. package/dist/http/isomorphic-fetch.js +0 -33
  98. package/dist/http/isomorphic-fetch.js.map +0 -1
  99. package/dist/index.d.ts +0 -9
  100. package/dist/index.js +0 -22
  101. package/dist/index.js.map +0 -1
  102. package/dist/middleware.d.ts +0 -16
  103. package/dist/middleware.js +0 -18
  104. package/dist/middleware.js.map +0 -1
  105. package/dist/models/App.d.ts +0 -47
  106. package/dist/models/App.js +0 -196
  107. package/dist/models/App.js.map +0 -1
  108. package/dist/models/Button.d.ts +0 -19
  109. package/dist/models/Button.js +0 -34
  110. package/dist/models/Button.js.map +0 -1
  111. package/dist/models/DeliveryData.d.ts +0 -21
  112. package/dist/models/DeliveryData.js +0 -46
  113. package/dist/models/DeliveryData.js.map +0 -1
  114. package/dist/models/ExportPlayersRequestBody.d.ts +0 -19
  115. package/dist/models/ExportPlayersRequestBody.js +0 -34
  116. package/dist/models/ExportPlayersRequestBody.js.map +0 -1
  117. package/dist/models/Filter.d.ts +0 -21
  118. package/dist/models/Filter.js +0 -40
  119. package/dist/models/Filter.js.map +0 -1
  120. package/dist/models/FilterExpressions.d.ts +0 -23
  121. package/dist/models/FilterExpressions.js +0 -46
  122. package/dist/models/FilterExpressions.js.map +0 -1
  123. package/dist/models/FilterNotificationTarget.d.ts +0 -28
  124. package/dist/models/FilterNotificationTarget.js +0 -88
  125. package/dist/models/FilterNotificationTarget.js.map +0 -1
  126. package/dist/models/GetNotificationRequestBody.d.ts +0 -20
  127. package/dist/models/GetNotificationRequestBody.js +0 -34
  128. package/dist/models/GetNotificationRequestBody.js.map +0 -1
  129. package/dist/models/InlineResponse200.d.ts +0 -20
  130. package/dist/models/InlineResponse200.js +0 -40
  131. package/dist/models/InlineResponse200.js.map +0 -1
  132. package/dist/models/InlineResponse2001.d.ts +0 -17
  133. package/dist/models/InlineResponse2001.js +0 -22
  134. package/dist/models/InlineResponse2001.js.map +0 -1
  135. package/dist/models/InlineResponse2002.d.ts +0 -18
  136. package/dist/models/InlineResponse2002.js +0 -28
  137. package/dist/models/InlineResponse2002.js.map +0 -1
  138. package/dist/models/InlineResponse2003.d.ts +0 -17
  139. package/dist/models/InlineResponse2003.js +0 -22
  140. package/dist/models/InlineResponse2003.js.map +0 -1
  141. package/dist/models/InlineResponse2004.d.ts +0 -18
  142. package/dist/models/InlineResponse2004.js +0 -28
  143. package/dist/models/InlineResponse2004.js.map +0 -1
  144. package/dist/models/InlineResponse2005.d.ts +0 -17
  145. package/dist/models/InlineResponse2005.js +0 -22
  146. package/dist/models/InlineResponse2005.js.map +0 -1
  147. package/dist/models/InlineResponse201.d.ts +0 -18
  148. package/dist/models/InlineResponse201.js +0 -28
  149. package/dist/models/InlineResponse201.js.map +0 -1
  150. package/dist/models/InlineResponse400.d.ts +0 -17
  151. package/dist/models/InlineResponse400.js +0 -22
  152. package/dist/models/InlineResponse400.js.map +0 -1
  153. package/dist/models/InlineResponse4001.d.ts +0 -18
  154. package/dist/models/InlineResponse4001.js +0 -28
  155. package/dist/models/InlineResponse4001.js.map +0 -1
  156. package/dist/models/InlineResponse4002.d.ts +0 -17
  157. package/dist/models/InlineResponse4002.js +0 -22
  158. package/dist/models/InlineResponse4002.js.map +0 -1
  159. package/dist/models/InlineResponse409.d.ts +0 -18
  160. package/dist/models/InlineResponse409.js +0 -28
  161. package/dist/models/InlineResponse409.js.map +0 -1
  162. package/dist/models/Notification.d.ts +0 -132
  163. package/dist/models/Notification.js +0 -688
  164. package/dist/models/Notification.js.map +0 -1
  165. package/dist/models/NotificationAllOf.d.ts +0 -108
  166. package/dist/models/NotificationAllOf.js +0 -544
  167. package/dist/models/NotificationAllOf.js.map +0 -1
  168. package/dist/models/NotificationAllOfAndroidBackgroundLayout.d.ts +0 -19
  169. package/dist/models/NotificationAllOfAndroidBackgroundLayout.js +0 -34
  170. package/dist/models/NotificationAllOfAndroidBackgroundLayout.js.map +0 -1
  171. package/dist/models/NotificationSlice.d.ts +0 -21
  172. package/dist/models/NotificationSlice.js +0 -40
  173. package/dist/models/NotificationSlice.js.map +0 -1
  174. package/dist/models/NotificationTarget.d.ts +0 -40
  175. package/dist/models/NotificationTarget.js +0 -160
  176. package/dist/models/NotificationTarget.js.map +0 -1
  177. package/dist/models/ObjectSerializer.d.ts +0 -44
  178. package/dist/models/ObjectSerializer.js +0 -312
  179. package/dist/models/ObjectSerializer.js.map +0 -1
  180. package/dist/models/Operator.d.ts +0 -18
  181. package/dist/models/Operator.js +0 -22
  182. package/dist/models/Operator.js.map +0 -1
  183. package/dist/models/OutcomeData.d.ts +0 -20
  184. package/dist/models/OutcomeData.js +0 -34
  185. package/dist/models/OutcomeData.js.map +0 -1
  186. package/dist/models/PlatformDeliveryData.d.ts +0 -23
  187. package/dist/models/PlatformDeliveryData.js +0 -52
  188. package/dist/models/PlatformDeliveryData.js.map +0 -1
  189. package/dist/models/Player.d.ts +0 -43
  190. package/dist/models/Player.js +0 -178
  191. package/dist/models/Player.js.map +0 -1
  192. package/dist/models/PlayerNotificationTarget.d.ts +0 -26
  193. package/dist/models/PlayerNotificationTarget.js +0 -76
  194. package/dist/models/PlayerNotificationTarget.js.map +0 -1
  195. package/dist/models/PlayerSlice.d.ts +0 -21
  196. package/dist/models/PlayerSlice.js +0 -40
  197. package/dist/models/PlayerSlice.js.map +0 -1
  198. package/dist/models/Purchase.d.ts +0 -19
  199. package/dist/models/Purchase.js +0 -34
  200. package/dist/models/Purchase.js.map +0 -1
  201. package/dist/models/Segment.d.ts +0 -20
  202. package/dist/models/Segment.js +0 -34
  203. package/dist/models/Segment.js.map +0 -1
  204. package/dist/models/SegmentNotificationTarget.d.ts +0 -18
  205. package/dist/models/SegmentNotificationTarget.js +0 -28
  206. package/dist/models/SegmentNotificationTarget.js.map +0 -1
  207. package/dist/models/StringMap.d.ts +0 -59
  208. package/dist/models/StringMap.js +0 -274
  209. package/dist/models/StringMap.js.map +0 -1
  210. package/dist/models/UpdatePlayerTagsRequestBody.d.ts +0 -17
  211. package/dist/models/UpdatePlayerTagsRequestBody.js +0 -22
  212. package/dist/models/UpdatePlayerTagsRequestBody.js.map +0 -1
  213. package/dist/models/all.d.ts +0 -35
  214. package/dist/models/all.js +0 -48
  215. package/dist/models/all.js.map +0 -1
  216. package/dist/rxjsStub.d.ts +0 -10
  217. package/dist/rxjsStub.js +0 -33
  218. package/dist/rxjsStub.js.map +0 -1
  219. package/dist/servers.d.ts +0 -17
  220. package/dist/servers.js +0 -32
  221. package/dist/servers.js.map +0 -1
  222. package/dist/types/ObjectParamAPI.d.ts +0 -121
  223. package/dist/types/ObjectParamAPI.js +0 -69
  224. package/dist/types/ObjectParamAPI.js.map +0 -1
  225. package/dist/types/ObservableAPI.d.ts +0 -45
  226. package/dist/types/ObservableAPI.js +0 -472
  227. package/dist/types/ObservableAPI.js.map +0 -1
  228. package/dist/types/PromiseAPI.d.ts +0 -42
  229. package/dist/types/PromiseAPI.js +0 -88
  230. package/dist/types/PromiseAPI.js.map +0 -1
  231. package/dist/util.d.ts +0 -1
  232. package/dist/util.js +0 -25
  233. package/dist/util.js.map +0 -1
  234. package/git_push.sh +0 -52
@@ -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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -11,7 +11,7 @@ import { HttpFile } from '../http/http';
11
11
  /**
12
12
  * Channel: Push Notifications Platform: Android Allowing setting a background image for the notification. This is a JSON object containing the following keys. See our Background Image documentation for image sizes.
13
13
  */
14
- export class NotificationAllOfAndroidBackgroundLayout {
14
+ export class BasicNotificationAllOfAndroidBackgroundLayout {
15
15
  /**
16
16
  * Asset file, android resource name, or URL to remote image.
17
17
  */
@@ -48,9 +48,9 @@ export class NotificationAllOfAndroidBackgroundLayout {
48
48
  } ];
49
49
 
50
50
  static getAttributeTypeMap() {
51
- return NotificationAllOfAndroidBackgroundLayout.attributeTypeMap;
51
+ return BasicNotificationAllOfAndroidBackgroundLayout.attributeTypeMap;
52
52
  }
53
-
53
+
54
54
  public constructor() {
55
55
  }
56
56
  }
package/models/Button.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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -38,7 +38,7 @@ export class Button {
38
38
  static getAttributeTypeMap() {
39
39
  return Button.attributeTypeMap;
40
40
  }
41
-
41
+
42
42
  public constructor() {
43
43
  }
44
44
  }
@@ -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.0.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class CancelNotificationSuccessResponse {
12
+ 'success'?: boolean;
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": "success",
19
+ "baseName": "success",
20
+ "type": "boolean",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return CancelNotificationSuccessResponse.attributeTypeMap;
26
+ }
27
+
28
+ public constructor() {
29
+ }
30
+ }
31
+
@@ -2,13 +2,13 @@
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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { HttpFile } from '../http/http';
10
10
 
11
- export class InlineResponse400 {
11
+ export class CreateNotificationBadRequestResponse {
12
12
  'errors'?: Array<string>;
13
13
 
14
14
  static readonly discriminator: string | undefined = undefined;
@@ -22,9 +22,9 @@ export class InlineResponse400 {
22
22
  } ];
23
23
 
24
24
  static getAttributeTypeMap() {
25
- return InlineResponse400.attributeTypeMap;
25
+ return CreateNotificationBadRequestResponse.attributeTypeMap;
26
26
  }
27
-
27
+
28
28
  public constructor() {
29
29
  }
30
30
  }
@@ -2,20 +2,21 @@
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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
+ import { Notification200Errors } from './Notification200Errors';
9
10
  import { HttpFile } from '../http/http';
10
11
 
11
- export class InlineResponse200 {
12
+ export class CreateNotificationSuccessResponse {
12
13
  'id': string;
13
14
  /**
14
15
  * Estimated number of subscribers targetted by notification.
15
16
  */
16
17
  'recipients': number;
17
18
  'external_id'?: string;
18
- 'errors'?: any | Array<string>;
19
+ 'errors'?: Notification200Errors;
19
20
 
20
21
  static readonly discriminator: string | undefined = undefined;
21
22
 
@@ -41,14 +42,14 @@ export class InlineResponse200 {
41
42
  {
42
43
  "name": "errors",
43
44
  "baseName": "errors",
44
- "type": "any | Array<string>",
45
+ "type": "Notification200Errors",
45
46
  "format": ""
46
47
  } ];
47
48
 
48
49
  static getAttributeTypeMap() {
49
- return InlineResponse200.attributeTypeMap;
50
+ return CreateNotificationSuccessResponse.attributeTypeMap;
50
51
  }
51
-
52
+
52
53
  public constructor() {
53
54
  }
54
55
  }
@@ -2,13 +2,13 @@
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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { HttpFile } from '../http/http';
10
10
 
11
- export class InlineResponse2004 {
11
+ export class CreatePlayerSuccessResponse {
12
12
  'success'?: boolean;
13
13
  'id'?: string;
14
14
 
@@ -29,9 +29,9 @@ export class InlineResponse2004 {
29
29
  } ];
30
30
 
31
31
  static getAttributeTypeMap() {
32
- return InlineResponse2004.attributeTypeMap;
32
+ return CreatePlayerSuccessResponse.attributeTypeMap;
33
33
  }
34
-
34
+
35
35
  public constructor() {
36
36
  }
37
37
  }
@@ -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.0.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class CreateSegmentBadRequestResponse {
12
+ 'success'?: boolean;
13
+ 'errors'?: Array<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": "success",
20
+ "baseName": "success",
21
+ "type": "boolean",
22
+ "format": ""
23
+ },
24
+ {
25
+ "name": "errors",
26
+ "baseName": "errors",
27
+ "type": "Array<string>",
28
+ "format": ""
29
+ } ];
30
+
31
+ static getAttributeTypeMap() {
32
+ return CreateSegmentBadRequestResponse.attributeTypeMap;
33
+ }
34
+
35
+ public constructor() {
36
+ }
37
+ }
38
+
@@ -2,13 +2,13 @@
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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { HttpFile } from '../http/http';
10
10
 
11
- export class InlineResponse409 {
11
+ export class CreateSegmentConflictResponse {
12
12
  'success'?: boolean;
13
13
  'errors'?: Array<string>;
14
14
 
@@ -29,9 +29,9 @@ export class InlineResponse409 {
29
29
  } ];
30
30
 
31
31
  static getAttributeTypeMap() {
32
- return InlineResponse409.attributeTypeMap;
32
+ return CreateSegmentConflictResponse.attributeTypeMap;
33
33
  }
34
-
34
+
35
35
  public constructor() {
36
36
  }
37
37
  }
@@ -2,13 +2,13 @@
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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { HttpFile } from '../http/http';
10
10
 
11
- export class InlineResponse201 {
11
+ export class CreateSegmentSuccessResponse {
12
12
  'success'?: boolean;
13
13
  /**
14
14
  * UUID of created segment
@@ -32,9 +32,9 @@ export class InlineResponse201 {
32
32
  } ];
33
33
 
34
34
  static getAttributeTypeMap() {
35
- return InlineResponse201.attributeTypeMap;
35
+ return CreateSegmentSuccessResponse.attributeTypeMap;
36
36
  }
37
-
37
+
38
38
  public constructor() {
39
39
  }
40
40
  }
@@ -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.0.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class DeletePlayerBadRequestResponse {
12
+ 'erorrs'?: Array<boolean>;
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": "erorrs",
19
+ "baseName": "erorrs",
20
+ "type": "Array<boolean>",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return DeletePlayerBadRequestResponse.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.0.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class DeletePlayerNotFoundResponse {
12
+ 'success'?: boolean;
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": "success",
19
+ "baseName": "success",
20
+ "type": "boolean",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return DeletePlayerNotFoundResponse.attributeTypeMap;
26
+ }
27
+
28
+ public constructor() {
29
+ }
30
+ }
31
+
@@ -2,13 +2,13 @@
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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { HttpFile } from '../http/http';
10
10
 
11
- export class InlineResponse2003 {
11
+ export class DeletePlayerSuccessResponse {
12
12
  'success'?: boolean;
13
13
 
14
14
  static readonly discriminator: string | undefined = undefined;
@@ -22,9 +22,9 @@ export class InlineResponse2003 {
22
22
  } ];
23
23
 
24
24
  static getAttributeTypeMap() {
25
- return InlineResponse2003.attributeTypeMap;
25
+ return DeletePlayerSuccessResponse.attributeTypeMap;
26
26
  }
27
-
27
+
28
28
  public constructor() {
29
29
  }
30
30
  }
@@ -2,13 +2,13 @@
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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { HttpFile } from '../http/http';
10
10
 
11
- export class InlineResponse4002 {
11
+ export class DeleteSegmentBadRequestResponse {
12
12
  'erorrs'?: Array<string>;
13
13
 
14
14
  static readonly discriminator: string | undefined = undefined;
@@ -22,9 +22,9 @@ export class InlineResponse4002 {
22
22
  } ];
23
23
 
24
24
  static getAttributeTypeMap() {
25
- return InlineResponse4002.attributeTypeMap;
25
+ return DeleteSegmentBadRequestResponse.attributeTypeMap;
26
26
  }
27
-
27
+
28
28
  public constructor() {
29
29
  }
30
30
  }
@@ -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.0.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class DeleteSegmentNotFoundResponse {
12
+ 'success'?: boolean;
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": "success",
19
+ "baseName": "success",
20
+ "type": "boolean",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return DeleteSegmentNotFoundResponse.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.0.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class DeleteSegmentSuccessResponse {
12
+ 'success'?: boolean;
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": "success",
19
+ "baseName": "success",
20
+ "type": "boolean",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return DeleteSegmentSuccessResponse.attributeTypeMap;
26
+ }
27
+
28
+ public constructor() {
29
+ }
30
+ }
31
+
@@ -2,17 +2,32 @@
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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { HttpFile } from '../http/http';
10
10
 
11
11
  export class DeliveryData {
12
+ /**
13
+ * Number of messages delivered to push servers, mobile carriers, or email service providers.
14
+ */
12
15
  'successful'?: number;
16
+ /**
17
+ * Number of messages sent to unsubscribed devices.
18
+ */
13
19
  'failed'?: number;
20
+ /**
21
+ * Number of errors reported.
22
+ */
14
23
  'errored'?: number;
24
+ /**
25
+ * Number of messages that were clicked.
26
+ */
15
27
  'converted'?: number;
28
+ /**
29
+ * Number of devices that received the message.
30
+ */
16
31
  'received'?: number;
17
32
 
18
33
  static readonly discriminator: string | undefined = undefined;
@@ -52,7 +67,7 @@ export class DeliveryData {
52
67
  static getAttributeTypeMap() {
53
68
  return DeliveryData.attributeTypeMap;
54
69
  }
55
-
70
+
56
71
  public constructor() {
57
72
  }
58
73
  }
@@ -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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -16,9 +16,9 @@ export class ExportPlayersRequestBody {
16
16
  /**
17
17
  * Export all devices with a last_active timestamp greater than this time. Unixtime in seconds.
18
18
  */
19
- 'last_active_since'?: number;
19
+ 'last_active_since'?: string;
20
20
  /**
21
- * Export al ldevices belonging to the segment.
21
+ * Export all devices belonging to the segment.
22
22
  */
23
23
  'segment_name'?: string;
24
24
 
@@ -34,7 +34,7 @@ export class ExportPlayersRequestBody {
34
34
  {
35
35
  "name": "last_active_since",
36
36
  "baseName": "last_active_since",
37
- "type": "number",
37
+ "type": "string",
38
38
  "format": ""
39
39
  },
40
40
  {
@@ -47,7 +47,7 @@ export class ExportPlayersRequestBody {
47
47
  static getAttributeTypeMap() {
48
48
  return ExportPlayersRequestBody.attributeTypeMap;
49
49
  }
50
-
50
+
51
51
  public constructor() {
52
52
  }
53
53
  }
@@ -2,13 +2,13 @@
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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
9
9
  import { HttpFile } from '../http/http';
10
10
 
11
- export class InlineResponse2005 {
11
+ export class ExportPlayersSuccessResponse {
12
12
  'csv_file_url'?: string;
13
13
 
14
14
  static readonly discriminator: string | undefined = undefined;
@@ -22,9 +22,9 @@ export class InlineResponse2005 {
22
22
  } ];
23
23
 
24
24
  static getAttributeTypeMap() {
25
- return InlineResponse2005.attributeTypeMap;
25
+ return ExportPlayersSuccessResponse.attributeTypeMap;
26
26
  }
27
-
27
+
28
28
  public constructor() {
29
29
  }
30
30
  }
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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -18,7 +18,7 @@ export class Filter {
18
18
  */
19
19
  'key'?: string;
20
20
  /**
21
- * Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.
21
+ * Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.
22
22
  */
23
23
  'value'?: string;
24
24
  /**
@@ -57,11 +57,11 @@ export class Filter {
57
57
  static getAttributeTypeMap() {
58
58
  return Filter.attributeTypeMap;
59
59
  }
60
-
60
+
61
61
  public constructor() {
62
62
  }
63
63
  }
64
64
 
65
65
 
66
- export type FilterRelationEnum = "&gt;" | "&lt;" | "&#x3D;" | "!&#x3D;" | "exists" | "not_exists" | "time_elapsed_gt" | "time_elapsed_lt" ;
66
+ export type FilterRelationEnum = ">" | "<" | "=" | "!=" | "exists" | "not_exists" | "time_elapsed_gt" | "time_elapsed_lt" ;
67
67
 
@@ -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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -20,7 +20,7 @@ export class FilterExpressions {
20
20
  */
21
21
  'key'?: string;
22
22
  /**
23
- * Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.
23
+ * Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.
24
24
  */
25
25
  'value'?: string;
26
26
  /**
@@ -69,12 +69,12 @@ export class FilterExpressions {
69
69
  static getAttributeTypeMap() {
70
70
  return FilterExpressions.attributeTypeMap;
71
71
  }
72
-
72
+
73
73
  public constructor() {
74
74
  }
75
75
  }
76
76
 
77
77
 
78
- export type FilterExpressionsRelationEnum = "&gt;" | "&lt;" | "&#x3D;" | "!&#x3D;" | "exists" | "not_exists" | "time_elapsed_gt" | "time_elapsed_lt" ;
78
+ export type FilterExpressionsRelationEnum = ">" | "<" | "=" | "!=" | "exists" | "not_exists" | "time_elapsed_gt" | "time_elapsed_lt" ;
79
79
  export type FilterExpressionsOperatorEnum = "OR" | "AND" ;
80
80
 
@@ -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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -137,7 +137,7 @@ export class FilterNotificationTarget {
137
137
  static getAttributeTypeMap() {
138
138
  return FilterNotificationTarget.attributeTypeMap;
139
139
  }
140
-
140
+
141
141
  public constructor() {
142
142
  }
143
143
  }
@@ -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.0
5
+ * API Version: 1.0.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -44,7 +44,7 @@ export class GetNotificationRequestBody {
44
44
  static getAttributeTypeMap() {
45
45
  return GetNotificationRequestBody.attributeTypeMap;
46
46
  }
47
-
47
+
48
48
  public constructor() {
49
49
  }
50
50
  }