@onesignal/node-onesignal 2.0.1-beta2 → 2.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.
- package/DefaultApi.md +2 -2
- package/apis/DefaultApi.ts +117 -0
- package/auth/auth.ts +2 -2
- package/dist/apis/DefaultApi.js +49 -5
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/auth/auth.js +2 -2
- package/dist/auth/auth.js.map +1 -1
- package/dist/http/http.d.ts +1 -0
- package/dist/jest.config.d.ts +15 -0
- package/dist/jest.config.js +17 -0
- package/dist/jest.config.js.map +1 -0
- package/dist/models/BasicNotification.d.ts +1 -0
- package/dist/models/BasicNotification.js +6 -0
- package/dist/models/BasicNotification.js.map +1 -1
- package/dist/models/BasicNotificationAllOf.d.ts +1 -0
- package/dist/models/BasicNotificationAllOf.js +6 -0
- package/dist/models/BasicNotificationAllOf.js.map +1 -1
- package/dist/models/ExportSubscriptionsRequestBody.d.ts +19 -0
- package/dist/models/ExportSubscriptionsRequestBody.js +34 -0
- package/dist/models/ExportSubscriptionsRequestBody.js.map +1 -0
- package/dist/models/ExportSubscriptionsSuccessResponse.d.ts +17 -0
- package/dist/models/ExportSubscriptionsSuccessResponse.js +22 -0
- package/dist/models/ExportSubscriptionsSuccessResponse.js.map +1 -0
- package/dist/models/FilterExpression.d.ts +27 -0
- package/dist/models/FilterExpression.js +70 -0
- package/dist/models/FilterExpression.js.map +1 -0
- package/dist/models/GenericSuccessBoolResponse.d.ts +17 -0
- package/dist/models/GenericSuccessBoolResponse.js +22 -0
- package/dist/models/GenericSuccessBoolResponse.js.map +1 -0
- package/dist/models/GetNotificationHistoryRequestBody.d.ts +20 -0
- package/dist/models/GetNotificationHistoryRequestBody.js +34 -0
- package/dist/models/GetNotificationHistoryRequestBody.js.map +1 -0
- package/dist/models/GetSegmentsSuccessResponse.d.ts +21 -0
- package/dist/models/GetSegmentsSuccessResponse.js +40 -0
- package/dist/models/GetSegmentsSuccessResponse.js.map +1 -0
- package/dist/models/LanguageStringMap.d.ts +59 -0
- package/dist/models/LanguageStringMap.js +274 -0
- package/dist/models/LanguageStringMap.js.map +1 -0
- package/dist/models/Notification.d.ts +1 -0
- package/dist/models/Notification.js +6 -0
- package/dist/models/Notification.js.map +1 -1
- package/dist/models/NotificationWithMeta.d.ts +1 -0
- package/dist/models/NotificationWithMeta.js +6 -0
- package/dist/models/NotificationWithMeta.js.map +1 -1
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/PropertiesBody.d.ts +18 -0
- package/dist/models/PropertiesBody.js +22 -0
- package/dist/models/PropertiesBody.js.map +1 -0
- package/dist/models/RateLimitError.d.ts +18 -0
- package/dist/models/RateLimitError.js +28 -0
- package/dist/models/RateLimitError.js.map +1 -0
- package/dist/models/SegmentData.d.ts +23 -0
- package/dist/models/SegmentData.js +58 -0
- package/dist/models/SegmentData.js.map +1 -0
- package/dist/models/Subscription.d.ts +34 -0
- package/dist/models/Subscription.js +118 -0
- package/dist/models/Subscription.js.map +1 -0
- package/dist/models/SubscriptionBody.d.ts +18 -0
- package/dist/models/SubscriptionBody.js +22 -0
- package/dist/models/SubscriptionBody.js.map +1 -0
- package/dist/models/SubscriptionNotificationTarget.d.ts +30 -0
- package/dist/models/SubscriptionNotificationTarget.js +82 -0
- package/dist/models/SubscriptionNotificationTarget.js.map +1 -0
- package/dist/models/UserIdentityBody.d.ts +19 -0
- package/dist/models/UserIdentityBody.js +22 -0
- package/dist/models/UserIdentityBody.js.map +1 -0
- package/dist/models/WebButton.d.ts +20 -0
- package/dist/models/WebButton.js +40 -0
- package/dist/models/WebButton.js.map +1 -0
- package/dist/servers.js +1 -1
- package/dist/servers.js.map +1 -1
- package/dist/test/DefaultApi.test.d.ts +1 -0
- package/dist/test/DefaultApi.test.js +49 -0
- package/dist/test/DefaultApi.test.js.map +1 -0
- package/models/App.ts +1 -1
- package/models/BasicNotification.ts +12 -2
- package/models/BasicNotificationAllOf.ts +12 -2
- package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
- package/models/BeginLiveActivityRequest.ts +1 -1
- package/models/Button.ts +1 -1
- package/models/CancelNotificationSuccessResponse.ts +1 -1
- package/models/CreateNotificationSuccessResponse.ts +1 -1
- package/models/CreatePlayerSuccessResponse.ts +1 -1
- package/models/CreateSegmentConflictResponse.ts +1 -1
- package/models/CreateSegmentSuccessResponse.ts +1 -1
- package/models/CreateSubscriptionRequestBody.ts +1 -1
- package/models/CreateUserConflictResponse.ts +1 -1
- package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
- package/models/DeletePlayerNotFoundResponse.ts +1 -1
- package/models/DeletePlayerSuccessResponse.ts +1 -1
- package/models/DeleteSegmentNotFoundResponse.ts +1 -1
- package/models/DeleteSegmentSuccessResponse.ts +1 -1
- package/models/DeliveryData.ts +1 -1
- package/models/ExportEventsSuccessResponse.ts +1 -1
- package/models/ExportPlayersRequestBody.ts +1 -1
- package/models/ExportPlayersSuccessResponse.ts +1 -1
- package/models/Filter.ts +1 -1
- package/models/FilterExpressions.ts +1 -1
- package/models/GenericError.ts +1 -1
- package/models/GenericErrorErrorsInner.ts +1 -1
- package/models/GetNotificationRequestBody.ts +1 -1
- package/models/InlineResponse200.ts +1 -1
- package/models/InlineResponse2003.ts +1 -1
- package/models/InlineResponse201.ts +1 -1
- package/models/InlineResponse202.ts +1 -1
- package/models/InvalidIdentifierError.ts +1 -1
- package/models/Notification.ts +12 -2
- package/models/Notification200Errors.ts +1 -1
- package/models/NotificationAllOf.ts +1 -1
- package/models/NotificationHistorySuccessResponse.ts +1 -1
- package/models/NotificationSlice.ts +1 -1
- package/models/NotificationTarget.ts +1 -1
- package/models/NotificationWithMeta.ts +12 -2
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +4 -4
- package/models/Operator.ts +1 -1
- package/models/OutcomeData.ts +1 -1
- package/models/OutcomesData.ts +1 -1
- package/models/PlatformDeliveryData.ts +1 -1
- package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
- package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
- package/models/Player.ts +1 -1
- package/models/PlayerNotificationTarget.ts +1 -1
- package/models/PlayerNotificationTargetIncludeAliases.ts +1 -1
- package/models/PlayerSlice.ts +1 -1
- package/models/PropertiesDeltas.ts +1 -1
- package/models/PropertiesObject.ts +1 -1
- package/models/Purchase.ts +1 -1
- package/models/RateLimiterError.ts +1 -1
- package/models/Segment.ts +1 -1
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/StringMap.ts +1 -1
- package/models/SubscriptionObject.ts +1 -1
- package/models/TransferSubscriptionRequestBody.ts +1 -1
- package/models/UpdateLiveActivityRequest.ts +1 -1
- package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
- package/models/UpdatePlayerSuccessResponse.ts +1 -1
- package/models/UpdatePlayerTagsRequestBody.ts +1 -1
- package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
- package/models/UpdateSubscriptionRequestBody.ts +1 -1
- package/models/UpdateUserRequest.ts +1 -1
- package/models/User.ts +1 -1
- package/models/UserIdentityRequestBody.ts +1 -1
- package/models/UserIdentityResponse.ts +1 -1
- package/models/UserSubscriptionOptions.ts +1 -1
- package/onesignal-node-onesignal-2.2.0-beta1.tgz +0 -0
- package/package.json +2 -2
- package/servers.ts +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OneSignal
|
|
3
3
|
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
4
|
*
|
|
5
|
-
* API Version: 1.
|
|
5
|
+
* API Version: 1.4.0
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -69,9 +69,13 @@ export class BasicNotificationAllOf {
|
|
|
69
69
|
*/
|
|
70
70
|
'app_id'?: string;
|
|
71
71
|
/**
|
|
72
|
-
* 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
|
|
72
|
+
* [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
|
|
73
73
|
*/
|
|
74
74
|
'external_id'?: string;
|
|
75
|
+
/**
|
|
76
|
+
* 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
|
|
77
|
+
*/
|
|
78
|
+
'idempotency_key'?: string;
|
|
75
79
|
'contents'?: StringMap;
|
|
76
80
|
'headings'?: StringMap;
|
|
77
81
|
'subtitle'?: StringMap;
|
|
@@ -463,6 +467,12 @@ export class BasicNotificationAllOf {
|
|
|
463
467
|
"type": "string",
|
|
464
468
|
"format": ""
|
|
465
469
|
},
|
|
470
|
+
{
|
|
471
|
+
"name": "idempotency_key",
|
|
472
|
+
"baseName": "idempotency_key",
|
|
473
|
+
"type": "string",
|
|
474
|
+
"format": ""
|
|
475
|
+
},
|
|
466
476
|
{
|
|
467
477
|
"name": "contents",
|
|
468
478
|
"baseName": "contents",
|
package/models/Button.ts
CHANGED
package/models/DeliveryData.ts
CHANGED
package/models/Filter.ts
CHANGED
package/models/GenericError.ts
CHANGED
package/models/Notification.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OneSignal
|
|
3
3
|
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
4
|
*
|
|
5
|
-
* API Version: 1.
|
|
5
|
+
* API Version: 1.4.0
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -122,9 +122,13 @@ export class Notification {
|
|
|
122
122
|
*/
|
|
123
123
|
'app_id': string;
|
|
124
124
|
/**
|
|
125
|
-
* 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
|
+
* [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
|
|
126
126
|
*/
|
|
127
127
|
'external_id'?: string;
|
|
128
|
+
/**
|
|
129
|
+
* 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
|
|
130
|
+
*/
|
|
131
|
+
'idempotency_key'?: string;
|
|
128
132
|
'contents'?: StringMap;
|
|
129
133
|
'headings'?: StringMap;
|
|
130
134
|
'subtitle'?: StringMap;
|
|
@@ -604,6 +608,12 @@ export class Notification {
|
|
|
604
608
|
"type": "string",
|
|
605
609
|
"format": ""
|
|
606
610
|
},
|
|
611
|
+
{
|
|
612
|
+
"name": "idempotency_key",
|
|
613
|
+
"baseName": "idempotency_key",
|
|
614
|
+
"type": "string",
|
|
615
|
+
"format": ""
|
|
616
|
+
},
|
|
607
617
|
{
|
|
608
618
|
"name": "contents",
|
|
609
619
|
"baseName": "contents",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OneSignal
|
|
3
3
|
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
4
|
*
|
|
5
|
-
* API Version: 1.
|
|
5
|
+
* API Version: 1.4.0
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -126,9 +126,13 @@ export class NotificationWithMeta {
|
|
|
126
126
|
*/
|
|
127
127
|
'app_id': string;
|
|
128
128
|
/**
|
|
129
|
-
* 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
|
|
129
|
+
* [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
|
|
130
130
|
*/
|
|
131
131
|
'external_id'?: string;
|
|
132
|
+
/**
|
|
133
|
+
* 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
|
|
134
|
+
*/
|
|
135
|
+
'idempotency_key'?: string;
|
|
132
136
|
'contents'?: StringMap;
|
|
133
137
|
'headings'?: StringMap;
|
|
134
138
|
'subtitle'?: StringMap;
|
|
@@ -642,6 +646,12 @@ export class NotificationWithMeta {
|
|
|
642
646
|
"type": "string",
|
|
643
647
|
"format": ""
|
|
644
648
|
},
|
|
649
|
+
{
|
|
650
|
+
"name": "idempotency_key",
|
|
651
|
+
"baseName": "idempotency_key",
|
|
652
|
+
"type": "string",
|
|
653
|
+
"format": ""
|
|
654
|
+
},
|
|
645
655
|
{
|
|
646
656
|
"name": "contents",
|
|
647
657
|
"baseName": "contents",
|
|
@@ -71,8 +71,8 @@ export * from './UserIdentityResponse';
|
|
|
71
71
|
export * from './UserSubscriptionOptions';
|
|
72
72
|
|
|
73
73
|
import { App , AppApnsEnvEnum } from './App';
|
|
74
|
-
import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum
|
|
75
|
-
import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum
|
|
74
|
+
import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
|
|
75
|
+
import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
|
|
76
76
|
import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
|
|
77
77
|
import { BeginLiveActivityRequest } from './BeginLiveActivityRequest';
|
|
78
78
|
import { Button } from './Button';
|
|
@@ -103,13 +103,13 @@ import { InlineResponse2003 } from './InlineResponse2003';
|
|
|
103
103
|
import { InlineResponse201 } from './InlineResponse201';
|
|
104
104
|
import { InlineResponse202 } from './InlineResponse202';
|
|
105
105
|
import { InvalidIdentifierError } from './InvalidIdentifierError';
|
|
106
|
-
import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum
|
|
106
|
+
import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
|
|
107
107
|
import { Notification200Errors } from './Notification200Errors';
|
|
108
108
|
import { NotificationAllOf } from './NotificationAllOf';
|
|
109
109
|
import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
|
|
110
110
|
import { NotificationSlice } from './NotificationSlice';
|
|
111
111
|
import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
|
|
112
|
-
import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum
|
|
112
|
+
import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
|
|
113
113
|
import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
|
|
114
114
|
import { Operator, OperatorOperatorEnum } from './Operator';
|
|
115
115
|
import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';
|
package/models/Operator.ts
CHANGED
package/models/OutcomeData.ts
CHANGED
package/models/OutcomesData.ts
CHANGED
package/models/Player.ts
CHANGED
package/models/PlayerSlice.ts
CHANGED