@onesignal/node-onesignal 5.0.0-alpha-02 → 5.2.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 (212) hide show
  1. package/.github/ISSUE_TEMPLATE/ask-question.yml +3 -3
  2. package/.github/ISSUE_TEMPLATE/bug-report.yml +2 -2
  3. package/.github/ISSUE_TEMPLATE/general-feedback.yml +3 -3
  4. package/.github/workflows/asana-add-comment.yml +47 -0
  5. package/.github/workflows/asana-create-task.yml +119 -0
  6. package/.github/workflows/asana-update-issue.yml +172 -0
  7. package/.github/workflows/project.yml +17 -0
  8. package/DefaultApi.md +4 -4
  9. package/README.md +6 -6
  10. package/apis/DefaultApi.ts +34 -34
  11. package/auth/auth.ts +16 -16
  12. package/configuration.ts +5 -5
  13. package/dist/apis/DefaultApi.js +34 -34
  14. package/dist/apis/DefaultApi.js.map +1 -1
  15. package/dist/auth/auth.d.ts +4 -4
  16. package/dist/auth/auth.js +20 -20
  17. package/dist/auth/auth.js.map +1 -1
  18. package/dist/configuration.d.ts +1 -1
  19. package/dist/configuration.js +4 -4
  20. package/dist/configuration.js.map +1 -1
  21. package/dist/http/isomorphic-fetch.js +1 -2
  22. package/dist/http/isomorphic-fetch.js.map +1 -1
  23. package/dist/models/BasicNotification.d.ts +2 -0
  24. package/dist/models/BasicNotification.js +12 -0
  25. package/dist/models/BasicNotification.js.map +1 -1
  26. package/dist/models/BasicNotificationAllOf.d.ts +2 -0
  27. package/dist/models/BasicNotificationAllOf.js +12 -0
  28. package/dist/models/BasicNotificationAllOf.js.map +1 -1
  29. package/dist/models/Notification.d.ts +2 -0
  30. package/dist/models/Notification.js +12 -0
  31. package/dist/models/Notification.js.map +1 -1
  32. package/dist/models/NotificationWithMeta.d.ts +2 -0
  33. package/dist/models/NotificationWithMeta.js +12 -0
  34. package/dist/models/NotificationWithMeta.js.map +1 -1
  35. package/dist/models/ObjectSerializer.d.ts +0 -1
  36. package/dist/models/ObjectSerializer.js +0 -3
  37. package/dist/models/ObjectSerializer.js.map +1 -1
  38. package/dist/models/all.d.ts +0 -1
  39. package/dist/models/all.js +0 -1
  40. package/dist/models/all.js.map +1 -1
  41. package/dist/types/ObjectParamAPI.js.map +1 -1
  42. package/dist/types/ObservableAPI.js.map +1 -1
  43. package/dist/types/PromiseAPI.js.map +1 -1
  44. package/http/isomorphic-fetch.ts +0 -1
  45. package/models/App.ts +1 -1
  46. package/models/BasicNotification.ts +22 -2
  47. package/models/BasicNotificationAllOf.ts +22 -2
  48. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  49. package/models/Button.ts +1 -1
  50. package/models/CreateNotificationSuccessResponse.ts +1 -1
  51. package/models/CreateSegmentConflictResponse.ts +1 -1
  52. package/models/CreateSegmentSuccessResponse.ts +1 -1
  53. package/models/CreateUserConflictResponse.ts +1 -1
  54. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  55. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  56. package/models/DeliveryData.ts +1 -1
  57. package/models/ExportEventsSuccessResponse.ts +1 -1
  58. package/models/ExportSubscriptionsRequestBody.ts +1 -1
  59. package/models/ExportSubscriptionsSuccessResponse.ts +1 -1
  60. package/models/Filter.ts +1 -1
  61. package/models/FilterExpression.ts +1 -1
  62. package/models/GenericError.ts +1 -1
  63. package/models/GenericSuccessBoolResponse.ts +1 -1
  64. package/models/GetNotificationHistoryRequestBody.ts +1 -1
  65. package/models/GetSegmentsSuccessResponse.ts +1 -1
  66. package/models/LanguageStringMap.ts +1 -1
  67. package/models/Notification.ts +22 -2
  68. package/models/NotificationAllOf.ts +1 -1
  69. package/models/NotificationHistorySuccessResponse.ts +1 -1
  70. package/models/NotificationSlice.ts +1 -1
  71. package/models/NotificationTarget.ts +1 -1
  72. package/models/NotificationWithMeta.ts +22 -2
  73. package/models/NotificationWithMetaAllOf.ts +1 -1
  74. package/models/ObjectSerializer.ts +4 -7
  75. package/models/Operator.ts +1 -1
  76. package/models/OutcomeData.ts +1 -1
  77. package/models/OutcomesData.ts +1 -1
  78. package/models/PlatformDeliveryData.ts +1 -1
  79. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  80. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  81. package/models/PropertiesBody.ts +1 -1
  82. package/models/PropertiesDeltas.ts +1 -1
  83. package/models/PropertiesObject.ts +1 -1
  84. package/models/Purchase.ts +1 -1
  85. package/models/RateLimitError.ts +1 -1
  86. package/models/Segment.ts +1 -1
  87. package/models/SegmentData.ts +1 -1
  88. package/models/SegmentNotificationTarget.ts +1 -1
  89. package/models/Subscription.ts +1 -1
  90. package/models/SubscriptionBody.ts +1 -1
  91. package/models/SubscriptionNotificationTarget.ts +1 -1
  92. package/models/TransferSubscriptionRequestBody.ts +1 -1
  93. package/models/UpdateLiveActivityRequest.ts +1 -1
  94. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  95. package/models/UpdateUserRequest.ts +1 -1
  96. package/models/User.ts +1 -1
  97. package/models/UserIdentityBody.ts +1 -1
  98. package/models/WebButton.ts +1 -1
  99. package/models/all.ts +0 -1
  100. package/package.json +2 -4
  101. package/types/ObjectParamAPI.ts +0 -1
  102. package/types/ObservableAPI.ts +0 -1
  103. package/types/PromiseAPI.ts +0 -1
  104. package/.github/workflows/Zapier.yml +0 -34
  105. package/dist/jest.config.d.ts +0 -15
  106. package/dist/jest.config.js +0 -17
  107. package/dist/jest.config.js.map +0 -1
  108. package/dist/models/BeginLiveActivityRequest.d.ts +0 -18
  109. package/dist/models/BeginLiveActivityRequest.js +0 -28
  110. package/dist/models/BeginLiveActivityRequest.js.map +0 -1
  111. package/dist/models/CancelNotificationSuccessResponse.d.ts +0 -17
  112. package/dist/models/CancelNotificationSuccessResponse.js +0 -22
  113. package/dist/models/CancelNotificationSuccessResponse.js.map +0 -1
  114. package/dist/models/CreatePlayerSuccessResponse.d.ts +0 -18
  115. package/dist/models/CreatePlayerSuccessResponse.js +0 -28
  116. package/dist/models/CreatePlayerSuccessResponse.js.map +0 -1
  117. package/dist/models/CreateSubscriptionRequestBody.d.ts +0 -19
  118. package/dist/models/CreateSubscriptionRequestBody.js +0 -28
  119. package/dist/models/CreateSubscriptionRequestBody.js.map +0 -1
  120. package/dist/models/DeletePlayerNotFoundResponse.d.ts +0 -17
  121. package/dist/models/DeletePlayerNotFoundResponse.js +0 -22
  122. package/dist/models/DeletePlayerNotFoundResponse.js.map +0 -1
  123. package/dist/models/DeletePlayerSuccessResponse.d.ts +0 -17
  124. package/dist/models/DeletePlayerSuccessResponse.js +0 -22
  125. package/dist/models/DeletePlayerSuccessResponse.js.map +0 -1
  126. package/dist/models/DeleteSegmentNotFoundResponse.d.ts +0 -17
  127. package/dist/models/DeleteSegmentNotFoundResponse.js +0 -22
  128. package/dist/models/DeleteSegmentNotFoundResponse.js.map +0 -1
  129. package/dist/models/DeleteSegmentSuccessResponse.d.ts +0 -17
  130. package/dist/models/DeleteSegmentSuccessResponse.js +0 -22
  131. package/dist/models/DeleteSegmentSuccessResponse.js.map +0 -1
  132. package/dist/models/ExportPlayersRequestBody.d.ts +0 -19
  133. package/dist/models/ExportPlayersRequestBody.js +0 -34
  134. package/dist/models/ExportPlayersRequestBody.js.map +0 -1
  135. package/dist/models/ExportPlayersSuccessResponse.d.ts +0 -17
  136. package/dist/models/ExportPlayersSuccessResponse.js +0 -22
  137. package/dist/models/ExportPlayersSuccessResponse.js.map +0 -1
  138. package/dist/models/FilterExpressions.d.ts +0 -23
  139. package/dist/models/FilterExpressions.js +0 -46
  140. package/dist/models/FilterExpressions.js.map +0 -1
  141. package/dist/models/GenericErrorErrorsInner.d.ts +0 -18
  142. package/dist/models/GenericErrorErrorsInner.js +0 -28
  143. package/dist/models/GenericErrorErrorsInner.js.map +0 -1
  144. package/dist/models/GetNotificationRequestBody.d.ts +0 -20
  145. package/dist/models/GetNotificationRequestBody.js +0 -34
  146. package/dist/models/GetNotificationRequestBody.js.map +0 -1
  147. package/dist/models/InlineResponse200.d.ts +0 -19
  148. package/dist/models/InlineResponse200.js +0 -22
  149. package/dist/models/InlineResponse200.js.map +0 -1
  150. package/dist/models/InlineResponse2003.d.ts +0 -17
  151. package/dist/models/InlineResponse2003.js +0 -22
  152. package/dist/models/InlineResponse2003.js.map +0 -1
  153. package/dist/models/InlineResponse201.d.ts +0 -18
  154. package/dist/models/InlineResponse201.js +0 -22
  155. package/dist/models/InlineResponse201.js.map +0 -1
  156. package/dist/models/InlineResponse202.d.ts +0 -18
  157. package/dist/models/InlineResponse202.js +0 -22
  158. package/dist/models/InlineResponse202.js.map +0 -1
  159. package/dist/models/InvalidIdentifierError.d.ts +0 -18
  160. package/dist/models/InvalidIdentifierError.js +0 -28
  161. package/dist/models/InvalidIdentifierError.js.map +0 -1
  162. package/dist/models/Notification200Errors.d.ts +0 -18
  163. package/dist/models/Notification200Errors.js +0 -28
  164. package/dist/models/Notification200Errors.js.map +0 -1
  165. package/dist/models/Player.d.ts +0 -43
  166. package/dist/models/Player.js +0 -178
  167. package/dist/models/Player.js.map +0 -1
  168. package/dist/models/PlayerNotificationTarget.d.ts +0 -30
  169. package/dist/models/PlayerNotificationTarget.js +0 -88
  170. package/dist/models/PlayerNotificationTarget.js.map +0 -1
  171. package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +0 -17
  172. package/dist/models/PlayerNotificationTargetIncludeAliases.js +0 -22
  173. package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +0 -1
  174. package/dist/models/PlayerSlice.d.ts +0 -21
  175. package/dist/models/PlayerSlice.js +0 -40
  176. package/dist/models/PlayerSlice.js.map +0 -1
  177. package/dist/models/RateLimiterError.d.ts +0 -18
  178. package/dist/models/RateLimiterError.js +0 -22
  179. package/dist/models/RateLimiterError.js.map +0 -1
  180. package/dist/models/StringMap.d.ts +0 -59
  181. package/dist/models/StringMap.js +0 -274
  182. package/dist/models/StringMap.js.map +0 -1
  183. package/dist/models/SubscriptionObject.d.ts +0 -34
  184. package/dist/models/SubscriptionObject.js +0 -118
  185. package/dist/models/SubscriptionObject.js.map +0 -1
  186. package/dist/models/UpdatePlayerSuccessResponse.d.ts +0 -17
  187. package/dist/models/UpdatePlayerSuccessResponse.js +0 -22
  188. package/dist/models/UpdatePlayerSuccessResponse.js.map +0 -1
  189. package/dist/models/UpdatePlayerTagsRequestBody.d.ts +0 -17
  190. package/dist/models/UpdatePlayerTagsRequestBody.js +0 -22
  191. package/dist/models/UpdatePlayerTagsRequestBody.js.map +0 -1
  192. package/dist/models/UpdatePlayerTagsSuccessResponse.d.ts +0 -17
  193. package/dist/models/UpdatePlayerTagsSuccessResponse.js +0 -22
  194. package/dist/models/UpdatePlayerTagsSuccessResponse.js.map +0 -1
  195. package/dist/models/UpdateSubscriptionRequestBody.d.ts +0 -18
  196. package/dist/models/UpdateSubscriptionRequestBody.js +0 -22
  197. package/dist/models/UpdateSubscriptionRequestBody.js.map +0 -1
  198. package/dist/models/UserIdentityRequestBody.d.ts +0 -19
  199. package/dist/models/UserIdentityRequestBody.js +0 -22
  200. package/dist/models/UserIdentityRequestBody.js.map +0 -1
  201. package/dist/models/UserIdentityResponse.d.ts +0 -19
  202. package/dist/models/UserIdentityResponse.js +0 -22
  203. package/dist/models/UserIdentityResponse.js.map +0 -1
  204. package/dist/models/UserSubscriptionOptions.d.ts +0 -17
  205. package/dist/models/UserSubscriptionOptions.js +0 -22
  206. package/dist/models/UserSubscriptionOptions.js.map +0 -1
  207. package/dist/test/DefaultApi.test.d.ts +0 -1
  208. package/dist/test/DefaultApi.test.js +0 -49
  209. package/dist/test/DefaultApi.test.js.map +0 -1
  210. package/models/GenericErrorErrorsInner.ts +0 -38
  211. package/models/InvalidIdentifierError.ts +0 -44
  212. package/models/RateLimiterError.ts +0 -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: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -117,9 +117,13 @@ export class Notification {
117
117
  */
118
118
  'app_id': string;
119
119
  /**
120
- * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
120
+ * [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
121
121
  */
122
122
  'external_id'?: string;
123
+ /**
124
+ * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true
125
+ */
126
+ 'idempotency_key'?: string;
123
127
  'contents'?: LanguageStringMap;
124
128
  'headings'?: LanguageStringMap;
125
129
  'subtitle'?: LanguageStringMap;
@@ -397,6 +401,10 @@ export class Notification {
397
401
  */
398
402
  'email_preheader'?: string;
399
403
  /**
404
+ * Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked.
405
+ */
406
+ 'disable_email_click_tracking'?: boolean;
407
+ /**
400
408
  * Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP\'s list of unsubscribed emails to be cleared.
401
409
  */
402
410
  'include_unsubscribed'?: boolean;
@@ -595,6 +603,12 @@ export class Notification {
595
603
  "type": "string",
596
604
  "format": ""
597
605
  },
606
+ {
607
+ "name": "idempotency_key",
608
+ "baseName": "idempotency_key",
609
+ "type": "string",
610
+ "format": ""
611
+ },
598
612
  {
599
613
  "name": "contents",
600
614
  "baseName": "contents",
@@ -1027,6 +1041,12 @@ export class Notification {
1027
1041
  "type": "string",
1028
1042
  "format": ""
1029
1043
  },
1044
+ {
1045
+ "name": "disable_email_click_tracking",
1046
+ "baseName": "disable_email_click_tracking",
1047
+ "type": "boolean",
1048
+ "format": ""
1049
+ },
1030
1050
  {
1031
1051
  "name": "include_unsubscribed",
1032
1052
  "baseName": "include_unsubscribed",
@@ -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: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -121,9 +121,13 @@ export class NotificationWithMeta {
121
121
  */
122
122
  'app_id': string;
123
123
  /**
124
- * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
124
+ * [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
125
125
  */
126
126
  'external_id'?: string;
127
+ /**
128
+ * Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true
129
+ */
130
+ 'idempotency_key'?: string;
127
131
  'contents'?: LanguageStringMap;
128
132
  'headings'?: LanguageStringMap;
129
133
  'subtitle'?: LanguageStringMap;
@@ -401,6 +405,10 @@ export class NotificationWithMeta {
401
405
  */
402
406
  'email_preheader'?: string;
403
407
  /**
408
+ * Channel: Email Default is `false`. If set to `true`, the URLs sent within the email will not include link tracking and will be the same as originally set; otherwise, all the URLs in the email will be tracked.
409
+ */
410
+ 'disable_email_click_tracking'?: boolean;
411
+ /**
404
412
  * Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP\'s list of unsubscribed emails to be cleared.
405
413
  */
406
414
  'include_unsubscribed'?: boolean;
@@ -633,6 +641,12 @@ export class NotificationWithMeta {
633
641
  "type": "string",
634
642
  "format": ""
635
643
  },
644
+ {
645
+ "name": "idempotency_key",
646
+ "baseName": "idempotency_key",
647
+ "type": "string",
648
+ "format": ""
649
+ },
636
650
  {
637
651
  "name": "contents",
638
652
  "baseName": "contents",
@@ -1065,6 +1079,12 @@ export class NotificationWithMeta {
1065
1079
  "type": "string",
1066
1080
  "format": ""
1067
1081
  },
1082
+ {
1083
+ "name": "disable_email_click_tracking",
1084
+ "baseName": "disable_email_click_tracking",
1085
+ "type": "boolean",
1086
+ "format": ""
1087
+ },
1068
1088
  {
1069
1089
  "name": "include_unsubscribed",
1070
1090
  "baseName": "include_unsubscribed",
@@ -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: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -19,7 +19,6 @@ export * from './GenericError';
19
19
  export * from './GenericSuccessBoolResponse';
20
20
  export * from './GetNotificationHistoryRequestBody';
21
21
  export * from './GetSegmentsSuccessResponse';
22
- export * from './InvalidIdentifierError';
23
22
  export * from './LanguageStringMap';
24
23
  export * from './Notification';
25
24
  export * from './NotificationAllOf';
@@ -54,8 +53,8 @@ export * from './UserIdentityBody';
54
53
  export * from './WebButton';
55
54
 
56
55
  import { App , AppApnsEnvEnum } from './App';
57
- import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
58
- import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
56
+ import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
57
+ import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
59
58
  import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
60
59
  import { Button } from './Button';
61
60
  import { CreateNotificationSuccessResponse } from './CreateNotificationSuccessResponse';
@@ -74,14 +73,13 @@ import { GenericError } from './GenericError';
74
73
  import { GenericSuccessBoolResponse } from './GenericSuccessBoolResponse';
75
74
  import { GetNotificationHistoryRequestBody, GetNotificationHistoryRequestBodyEventsEnum } from './GetNotificationHistoryRequestBody';
76
75
  import { GetSegmentsSuccessResponse } from './GetSegmentsSuccessResponse';
77
- import { InvalidIdentifierError } from './InvalidIdentifierError';
78
76
  import { LanguageStringMap } from './LanguageStringMap';
79
- import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
77
+ import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
80
78
  import { NotificationAllOf } from './NotificationAllOf';
81
79
  import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
82
80
  import { NotificationSlice } from './NotificationSlice';
83
81
  import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
84
- import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
82
+ import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
85
83
  import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
86
84
  import { Operator, OperatorOperatorEnum } from './Operator';
87
85
  import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';
@@ -170,7 +168,6 @@ let typeMap: {[index: string]: any} = {
170
168
  "GenericSuccessBoolResponse": GenericSuccessBoolResponse,
171
169
  "GetNotificationHistoryRequestBody": GetNotificationHistoryRequestBody,
172
170
  "GetSegmentsSuccessResponse": GetSegmentsSuccessResponse,
173
- "InvalidIdentifierError": InvalidIdentifierError,
174
171
  "LanguageStringMap": LanguageStringMap,
175
172
  "Notification": Notification,
176
173
  "NotificationAllOf": NotificationAllOf,
@@ -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: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/Segment.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/User.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: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 5.0.1
5
+ * API Version: 5.2.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/all.ts CHANGED
@@ -19,7 +19,6 @@ export * from './GenericError'
19
19
  export * from './GenericSuccessBoolResponse'
20
20
  export * from './GetNotificationHistoryRequestBody'
21
21
  export * from './GetSegmentsSuccessResponse'
22
- export * from './InvalidIdentifierError'
23
22
  export * from './LanguageStringMap'
24
23
  export * from './Notification'
25
24
  export * from './NotificationAllOf'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesignal/node-onesignal",
3
- "version": "5.0.0-alpha-02",
3
+ "version": "5.2.0-beta1",
4
4
  "description": "OpenAPI client for @onesignal/node-onesignal",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -21,12 +21,10 @@
21
21
  "prepare": "npm run build"
22
22
  },
23
23
  "dependencies": {
24
- "@types/node": "^22.10.1",
25
- "@types/node-fetch": "^2.5.7",
24
+ "@types/node": "^24.0.11",
26
25
  "btoa": "^1.2.1",
27
26
  "es6-promise": "^4.2.4",
28
27
  "form-data": "^2.5.0",
29
- "node-fetch": "^2.6.0",
30
28
  "url-parse": "^1.4.3"
31
29
  },
32
30
  "devDependencies": {
@@ -23,7 +23,6 @@ import { GenericError } from '../models/GenericError';
23
23
  import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
24
24
  import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
25
25
  import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
26
- import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
27
26
  import { LanguageStringMap } from '../models/LanguageStringMap';
28
27
  import { Notification } from '../models/Notification';
29
28
  import { NotificationAllOf } from '../models/NotificationAllOf';
@@ -24,7 +24,6 @@ import { GenericError } from '../models/GenericError';
24
24
  import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
25
25
  import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
26
26
  import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
27
- import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
28
27
  import { LanguageStringMap } from '../models/LanguageStringMap';
29
28
  import { Notification } from '../models/Notification';
30
29
  import { NotificationAllOf } from '../models/NotificationAllOf';
@@ -23,7 +23,6 @@ import { GenericError } from '../models/GenericError';
23
23
  import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
24
24
  import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
25
25
  import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
26
- import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
27
26
  import { LanguageStringMap } from '../models/LanguageStringMap';
28
27
  import { Notification } from '../models/Notification';
29
28
  import { NotificationAllOf } from '../models/NotificationAllOf';
@@ -1,34 +0,0 @@
1
- # This is an action to close asana tasks that were generated by Github issues
2
-
3
- name: Zapier web hook
4
-
5
- # Controls when the workflow will run
6
- on:
7
- # Triggers the workflow on push or pull request events but only for the "main" branch
8
- issues:
9
- types: [closed]
10
-
11
- permissions:
12
- issues: read
13
-
14
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15
- jobs:
16
- # This workflow contains a single job called "build"
17
- build:
18
- # The type of runner that the job will run on
19
- runs-on: ubuntu-latest
20
-
21
- # Steps represent a sequence of tasks that will be executed as part of the job
22
- steps:
23
- # Runs a set of commands using the runners shell
24
- - name: Call Zapier web hook to close Asana task
25
- if: ${{ !github.event.issue.pull_request }}
26
- env:
27
- ISSUE_TITLE: ${{ github.event.issue.title }}
28
- run: |
29
- curl --location --request POST 'https://hooks.zapier.com/hooks/catch/12728683/b7009qc/' \
30
- --header 'Content-Type: application/json' \
31
- --header 'Accept: application/json' \
32
- --data-raw '{
33
- "task_name" : "$ISSUE_TITLE"
34
- }'
@@ -1,15 +0,0 @@
1
- declare const _default: {
2
- preset: string;
3
- testEnvironment: string;
4
- testMatch: string[];
5
- moduleFileExtensions: string[];
6
- transform: {
7
- '^.+\\.ts$': string;
8
- };
9
- globals: {
10
- 'ts-jest': {
11
- tsconfig: string;
12
- };
13
- };
14
- };
15
- export default _default;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- preset: 'ts-jest',
5
- testEnvironment: 'node',
6
- testMatch: ['**/__tests__/**/*.test.ts'],
7
- moduleFileExtensions: ['ts', 'js'],
8
- transform: {
9
- '^.+\\.ts$': 'ts-jest'
10
- },
11
- globals: {
12
- 'ts-jest': {
13
- tsconfig: 'tsconfig.json'
14
- }
15
- }
16
- };
17
- //# sourceMappingURL=jest.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jest.config.js","sourceRoot":"","sources":["../jest.config.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,MAAM,EAAE,SAAS;IACjB,eAAe,EAAE,MAAM;IACvB,SAAS,EAAE,CAAC,2BAA2B,CAAC;IACxC,oBAAoB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IAClC,SAAS,EAAE;QACP,WAAW,EAAE,SAAS;KACzB;IACD,OAAO,EAAE;QACL,SAAS,EAAE;YACP,QAAQ,EAAE,eAAe;SAC5B;KACJ;CACJ,CAAC"}
@@ -1,18 +0,0 @@
1
- export declare class BeginLiveActivityRequest {
2
- 'push_token': string;
3
- 'subscription_id': string;
4
- static readonly discriminator: string | undefined;
5
- static readonly attributeTypeMap: Array<{
6
- name: string;
7
- baseName: string;
8
- type: string;
9
- format: string;
10
- }>;
11
- static getAttributeTypeMap(): {
12
- name: string;
13
- baseName: string;
14
- type: string;
15
- format: string;
16
- }[];
17
- constructor();
18
- }