@onesignal/node-onesignal 2.0.1-beta2 → 5.0.0-alpha-01
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 +401 -778
- package/apis/DefaultApi.ts +682 -1216
- package/auth/auth.ts +14 -14
- package/configuration.ts +6 -6
- package/dist/apis/DefaultApi.d.ts +36 -63
- package/dist/apis/DefaultApi.js +653 -1174
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/auth.js +19 -19
- package/dist/auth/auth.js.map +1 -1
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +4 -4
- package/dist/configuration.js.map +1 -1
- package/dist/models/BasicNotification.d.ts +14 -12
- package/dist/models/BasicNotification.js +20 -20
- package/dist/models/BasicNotification.js.map +1 -1
- package/dist/models/BasicNotificationAllOf.d.ts +10 -8
- package/dist/models/BasicNotificationAllOf.js +17 -11
- package/dist/models/BasicNotificationAllOf.js.map +1 -1
- package/dist/models/CreateNotificationSuccessResponse.d.ts +1 -3
- package/dist/models/CreateNotificationSuccessResponse.js +1 -7
- package/dist/models/CreateNotificationSuccessResponse.js.map +1 -1
- package/dist/models/{ExportPlayersRequestBody.d.ts → ExportSubscriptionsRequestBody.d.ts} +1 -1
- package/dist/models/ExportSubscriptionsRequestBody.js +34 -0
- package/dist/models/ExportSubscriptionsRequestBody.js.map +1 -0
- package/dist/models/{ExportPlayersSuccessResponse.d.ts → ExportSubscriptionsSuccessResponse.d.ts} +1 -1
- package/dist/models/ExportSubscriptionsSuccessResponse.js +22 -0
- package/dist/models/ExportSubscriptionsSuccessResponse.js.map +1 -0
- package/dist/models/Filter.d.ts +6 -2
- package/dist/models/Filter.js +24 -0
- package/dist/models/Filter.js.map +1 -1
- 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/GenericError.d.ts +3 -2
- package/dist/models/GenericError.js +13 -1
- package/dist/models/GenericError.js.map +1 -1
- package/dist/models/{DeletePlayerSuccessResponse.d.ts → GenericSuccessBoolResponse.d.ts} +1 -1
- package/dist/models/GenericSuccessBoolResponse.js +22 -0
- package/dist/models/GenericSuccessBoolResponse.js.map +1 -0
- package/dist/models/{GetNotificationRequestBody.d.ts → GetNotificationHistoryRequestBody.d.ts} +3 -3
- package/dist/models/GetNotificationHistoryRequestBody.js +34 -0
- package/dist/models/GetNotificationHistoryRequestBody.js.map +1 -0
- package/dist/models/{PlayerSlice.d.ts → GetSegmentsSuccessResponse.d.ts} +3 -3
- package/dist/models/GetSegmentsSuccessResponse.js +40 -0
- package/dist/models/GetSegmentsSuccessResponse.js.map +1 -0
- package/dist/models/InvalidIdentifierError.d.ts +1 -1
- package/dist/models/InvalidIdentifierError.js +2 -2
- package/dist/models/InvalidIdentifierError.js.map +1 -1
- package/dist/models/{StringMap.d.ts → LanguageStringMap.d.ts} +1 -1
- package/dist/models/{StringMap.js → LanguageStringMap.js} +10 -10
- package/dist/models/LanguageStringMap.js.map +1 -0
- package/dist/models/Notification.d.ts +14 -12
- package/dist/models/Notification.js +20 -20
- package/dist/models/Notification.js.map +1 -1
- package/dist/models/NotificationTarget.d.ts +4 -4
- package/dist/models/NotificationTarget.js +3 -9
- package/dist/models/NotificationTarget.js.map +1 -1
- package/dist/models/NotificationWithMeta.d.ts +14 -12
- package/dist/models/NotificationWithMeta.js +20 -20
- package/dist/models/NotificationWithMeta.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +15 -32
- package/dist/models/ObjectSerializer.js +50 -102
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/{InlineResponse202.d.ts → PropertiesBody.d.ts} +1 -1
- package/dist/models/PropertiesBody.js +22 -0
- package/dist/models/PropertiesBody.js.map +1 -0
- package/dist/models/{DeleteSegmentNotFoundResponse.d.ts → RateLimitError.d.ts} +3 -2
- package/dist/models/RateLimitError.js +28 -0
- package/dist/models/RateLimitError.js.map +1 -0
- package/dist/models/Segment.d.ts +2 -2
- package/dist/models/Segment.js +1 -1
- package/dist/models/Segment.js.map +1 -1
- package/dist/models/{CreateSubscriptionRequestBody.d.ts → SegmentData.d.ts} +8 -4
- package/dist/models/SegmentData.js +58 -0
- package/dist/models/SegmentData.js.map +1 -0
- package/dist/models/{SubscriptionObject.d.ts → Subscription.d.ts} +3 -3
- package/dist/models/{SubscriptionObject.js → Subscription.js} +11 -11
- package/dist/models/Subscription.js.map +1 -0
- package/dist/models/{CreatePlayerSuccessResponse.d.ts → SubscriptionBody.d.ts} +3 -3
- package/dist/models/SubscriptionBody.js +22 -0
- package/dist/models/SubscriptionBody.js.map +1 -0
- package/dist/models/{PlayerNotificationTarget.d.ts → SubscriptionNotificationTarget.d.ts} +7 -7
- package/dist/models/{PlayerNotificationTarget.js → SubscriptionNotificationTarget.js} +14 -20
- package/dist/models/SubscriptionNotificationTarget.js.map +1 -0
- package/dist/models/TransferSubscriptionRequestBody.d.ts +1 -1
- package/dist/models/TransferSubscriptionRequestBody.js +1 -1
- package/dist/models/TransferSubscriptionRequestBody.js.map +1 -1
- package/dist/models/UpdateLiveActivityRequest.d.ts +8 -3
- package/dist/models/UpdateLiveActivityRequest.js +33 -3
- package/dist/models/UpdateLiveActivityRequest.js.map +1 -1
- package/dist/models/UpdateLiveActivitySuccessResponse.d.ts +1 -3
- package/dist/models/UpdateLiveActivitySuccessResponse.js +2 -8
- package/dist/models/UpdateLiveActivitySuccessResponse.js.map +1 -1
- package/dist/models/User.d.ts +3 -5
- package/dist/models/User.js +2 -8
- package/dist/models/User.js.map +1 -1
- package/dist/models/{InlineResponse200.d.ts → UserIdentityBody.d.ts} +2 -2
- package/dist/models/UserIdentityBody.js +22 -0
- package/dist/models/UserIdentityBody.js.map +1 -0
- package/dist/models/{BeginLiveActivityRequest.d.ts → WebButton.d.ts} +5 -3
- package/dist/models/WebButton.js +40 -0
- package/dist/models/WebButton.js.map +1 -0
- package/dist/models/all.d.ts +15 -32
- package/dist/models/all.js +15 -32
- package/dist/models/all.js.map +1 -1
- package/dist/servers.js +1 -1
- package/dist/servers.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +52 -102
- package/dist/types/ObjectParamAPI.js +26 -47
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +25 -45
- package/dist/types/ObservableAPI.js +82 -250
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +25 -45
- package/dist/types/PromiseAPI.js +32 -60
- package/dist/types/PromiseAPI.js.map +1 -1
- package/models/App.ts +1 -1
- package/models/BasicNotification.ts +49 -46
- package/models/BasicNotificationAllOf.ts +34 -23
- package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
- package/models/Button.ts +1 -1
- package/models/CreateNotificationSuccessResponse.ts +5 -13
- package/models/CreateSegmentConflictResponse.ts +1 -1
- package/models/CreateSegmentSuccessResponse.ts +1 -1
- package/models/CreateUserConflictResponse.ts +1 -1
- package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
- package/models/DeliveryData.ts +1 -1
- package/models/ExportEventsSuccessResponse.ts +1 -1
- package/models/{ExportPlayersRequestBody.ts → ExportSubscriptionsRequestBody.ts} +3 -3
- package/models/{ExportPlayersSuccessResponse.ts → ExportSubscriptionsSuccessResponse.ts} +3 -3
- package/models/Filter.ts +45 -5
- package/models/FilterExpression.ts +120 -0
- package/models/GenericError.ts +17 -4
- package/models/{DeletePlayerSuccessResponse.ts → GenericSuccessBoolResponse.ts} +3 -3
- package/models/{GetNotificationRequestBody.ts → GetNotificationHistoryRequestBody.ts} +6 -6
- package/models/{PlayerSlice.ts → GetSegmentsSuccessResponse.ts} +20 -8
- package/models/InvalidIdentifierError.ts +6 -6
- package/models/{StringMap.ts → LanguageStringMap.ts} +3 -3
- package/models/Notification.ts +49 -46
- package/models/NotificationAllOf.ts +1 -1
- package/models/NotificationHistorySuccessResponse.ts +1 -1
- package/models/NotificationSlice.ts +1 -1
- package/models/NotificationTarget.ts +17 -25
- package/models/NotificationWithMeta.ts +49 -46
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +57 -109
- 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/{InlineResponse202.ts → PropertiesBody.ts} +3 -3
- package/models/PropertiesDeltas.ts +1 -1
- package/models/PropertiesObject.ts +1 -1
- package/models/Purchase.ts +1 -1
- package/models/{CreatePlayerSuccessResponse.ts → RateLimitError.ts} +10 -10
- package/models/Segment.ts +4 -4
- package/models/SegmentData.ts +94 -0
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/{SubscriptionObject.ts → Subscription.ts} +6 -6
- package/models/{InlineResponse201.ts → SubscriptionBody.ts} +6 -6
- package/models/{PlayerNotificationTarget.ts → SubscriptionNotificationTarget.ts} +21 -29
- package/models/TransferSubscriptionRequestBody.ts +3 -3
- package/models/UpdateLiveActivityRequest.ts +56 -9
- package/models/UpdateLiveActivitySuccessResponse.ts +4 -12
- package/models/UpdateUserRequest.ts +1 -1
- package/models/User.ts +6 -14
- package/models/{InlineResponse200.ts → UserIdentityBody.ts} +5 -5
- package/models/{BeginLiveActivityRequest.ts → WebButton.ts} +23 -9
- package/models/all.ts +15 -32
- package/package.json +2 -2
- package/servers.ts +1 -1
- package/types/ObjectParamAPI.ts +161 -357
- package/types/ObservableAPI.ts +108 -301
- package/types/PromiseAPI.ts +89 -184
- package/dist/models/BeginLiveActivityRequest.js +0 -28
- package/dist/models/BeginLiveActivityRequest.js.map +0 -1
- package/dist/models/CancelNotificationSuccessResponse.d.ts +0 -17
- package/dist/models/CancelNotificationSuccessResponse.js +0 -22
- package/dist/models/CancelNotificationSuccessResponse.js.map +0 -1
- package/dist/models/CreatePlayerSuccessResponse.js +0 -28
- package/dist/models/CreatePlayerSuccessResponse.js.map +0 -1
- package/dist/models/CreateSubscriptionRequestBody.js +0 -28
- package/dist/models/CreateSubscriptionRequestBody.js.map +0 -1
- package/dist/models/DeletePlayerNotFoundResponse.d.ts +0 -17
- package/dist/models/DeletePlayerNotFoundResponse.js +0 -22
- package/dist/models/DeletePlayerNotFoundResponse.js.map +0 -1
- package/dist/models/DeletePlayerSuccessResponse.js +0 -22
- package/dist/models/DeletePlayerSuccessResponse.js.map +0 -1
- package/dist/models/DeleteSegmentNotFoundResponse.js +0 -22
- package/dist/models/DeleteSegmentNotFoundResponse.js.map +0 -1
- package/dist/models/DeleteSegmentSuccessResponse.d.ts +0 -17
- package/dist/models/DeleteSegmentSuccessResponse.js +0 -22
- package/dist/models/DeleteSegmentSuccessResponse.js.map +0 -1
- package/dist/models/ExportPlayersRequestBody.js +0 -34
- package/dist/models/ExportPlayersRequestBody.js.map +0 -1
- package/dist/models/ExportPlayersSuccessResponse.js +0 -22
- package/dist/models/ExportPlayersSuccessResponse.js.map +0 -1
- package/dist/models/FilterExpressions.d.ts +0 -23
- package/dist/models/FilterExpressions.js +0 -46
- package/dist/models/FilterExpressions.js.map +0 -1
- package/dist/models/GetNotificationRequestBody.js +0 -34
- package/dist/models/GetNotificationRequestBody.js.map +0 -1
- package/dist/models/InlineResponse200.js +0 -22
- package/dist/models/InlineResponse200.js.map +0 -1
- package/dist/models/InlineResponse2003.d.ts +0 -17
- package/dist/models/InlineResponse2003.js +0 -22
- package/dist/models/InlineResponse2003.js.map +0 -1
- package/dist/models/InlineResponse201.d.ts +0 -18
- package/dist/models/InlineResponse201.js +0 -22
- package/dist/models/InlineResponse201.js.map +0 -1
- package/dist/models/InlineResponse202.js +0 -22
- package/dist/models/InlineResponse202.js.map +0 -1
- package/dist/models/Notification200Errors.d.ts +0 -18
- package/dist/models/Notification200Errors.js +0 -28
- package/dist/models/Notification200Errors.js.map +0 -1
- package/dist/models/Player.d.ts +0 -43
- package/dist/models/Player.js +0 -178
- package/dist/models/Player.js.map +0 -1
- package/dist/models/PlayerNotificationTarget.js.map +0 -1
- package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +0 -17
- package/dist/models/PlayerNotificationTargetIncludeAliases.js +0 -22
- package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +0 -1
- package/dist/models/PlayerSlice.js +0 -40
- package/dist/models/PlayerSlice.js.map +0 -1
- package/dist/models/StringMap.js.map +0 -1
- package/dist/models/SubscriptionObject.js.map +0 -1
- package/dist/models/UpdatePlayerSuccessResponse.d.ts +0 -17
- package/dist/models/UpdatePlayerSuccessResponse.js +0 -22
- package/dist/models/UpdatePlayerSuccessResponse.js.map +0 -1
- package/dist/models/UpdatePlayerTagsRequestBody.d.ts +0 -17
- package/dist/models/UpdatePlayerTagsRequestBody.js +0 -22
- package/dist/models/UpdatePlayerTagsRequestBody.js.map +0 -1
- package/dist/models/UpdatePlayerTagsSuccessResponse.d.ts +0 -17
- package/dist/models/UpdatePlayerTagsSuccessResponse.js +0 -22
- package/dist/models/UpdatePlayerTagsSuccessResponse.js.map +0 -1
- package/dist/models/UpdateSubscriptionRequestBody.d.ts +0 -18
- package/dist/models/UpdateSubscriptionRequestBody.js +0 -22
- package/dist/models/UpdateSubscriptionRequestBody.js.map +0 -1
- package/dist/models/UserIdentityRequestBody.d.ts +0 -19
- package/dist/models/UserIdentityRequestBody.js +0 -22
- package/dist/models/UserIdentityRequestBody.js.map +0 -1
- package/dist/models/UserIdentityResponse.d.ts +0 -19
- package/dist/models/UserIdentityResponse.js +0 -22
- package/dist/models/UserIdentityResponse.js.map +0 -1
- package/dist/models/UserSubscriptionOptions.d.ts +0 -17
- package/dist/models/UserSubscriptionOptions.js +0 -22
- package/dist/models/UserSubscriptionOptions.js.map +0 -1
- package/models/CancelNotificationSuccessResponse.ts +0 -31
- package/models/CreateSubscriptionRequestBody.ts +0 -39
- package/models/DeletePlayerNotFoundResponse.ts +0 -31
- package/models/DeleteSegmentNotFoundResponse.ts +0 -31
- package/models/DeleteSegmentSuccessResponse.ts +0 -31
- package/models/FilterExpressions.ts +0 -80
- package/models/InlineResponse2003.ts +0 -31
- package/models/Notification200Errors.ts +0 -45
- package/models/Player.ts +0 -291
- package/models/PlayerNotificationTargetIncludeAliases.ts +0 -31
- package/models/UpdatePlayerSuccessResponse.ts +0 -31
- package/models/UpdatePlayerTagsRequestBody.ts +0 -34
- package/models/UpdatePlayerTagsSuccessResponse.ts +0 -31
- package/models/UpdateSubscriptionRequestBody.ts +0 -32
- package/models/UserIdentityRequestBody.ts +0 -31
- package/models/UserIdentityResponse.ts +0 -31
- package/models/UserSubscriptionOptions.ts +0 -31
|
@@ -2,15 +2,15 @@
|
|
|
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
|
+
* API Version: 5.0.0-alpha-01
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { Subscription } from './Subscription';
|
|
10
10
|
import { HttpFile } from '../http/http';
|
|
11
11
|
|
|
12
|
-
export class
|
|
13
|
-
'subscription'?:
|
|
12
|
+
export class SubscriptionBody {
|
|
13
|
+
'subscription'?: Subscription;
|
|
14
14
|
|
|
15
15
|
static readonly discriminator: string | undefined = undefined;
|
|
16
16
|
|
|
@@ -18,12 +18,12 @@ export class InlineResponse201 {
|
|
|
18
18
|
{
|
|
19
19
|
"name": "subscription",
|
|
20
20
|
"baseName": "subscription",
|
|
21
|
-
"type": "
|
|
21
|
+
"type": "Subscription",
|
|
22
22
|
"format": ""
|
|
23
23
|
} ];
|
|
24
24
|
|
|
25
25
|
static getAttributeTypeMap() {
|
|
26
|
-
return
|
|
26
|
+
return SubscriptionBody.attributeTypeMap;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
public constructor() {
|
|
@@ -2,22 +2,17 @@
|
|
|
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
|
+
* API Version: 5.0.0-alpha-01
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
|
|
10
9
|
import { HttpFile } from '../http/http';
|
|
11
10
|
|
|
12
|
-
export class
|
|
11
|
+
export class SubscriptionNotificationTarget {
|
|
13
12
|
/**
|
|
14
|
-
* Specific
|
|
13
|
+
* Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call
|
|
15
14
|
*/
|
|
16
|
-
'
|
|
17
|
-
/**
|
|
18
|
-
* Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call. Note: If targeting push, email, or sms subscribers with same ids, use with channel_for_external_user_ids to indicate you are sending a push or email or sms.
|
|
19
|
-
*/
|
|
20
|
-
'include_external_user_ids'?: Array<string>;
|
|
15
|
+
'include_subscription_ids'?: Array<string>;
|
|
21
16
|
/**
|
|
22
17
|
* Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call
|
|
23
18
|
*/
|
|
@@ -27,44 +22,41 @@ export class PlayerNotificationTarget {
|
|
|
27
22
|
*/
|
|
28
23
|
'include_phone_numbers'?: Array<string>;
|
|
29
24
|
/**
|
|
30
|
-
* Not Recommended: Please consider using
|
|
25
|
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call
|
|
31
26
|
*/
|
|
32
27
|
'include_ios_tokens'?: Array<string>;
|
|
33
28
|
/**
|
|
34
|
-
* Not Recommended: Please consider using
|
|
29
|
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call
|
|
35
30
|
*/
|
|
36
31
|
'include_wp_wns_uris'?: Array<string>;
|
|
37
32
|
/**
|
|
38
|
-
* Not Recommended: Please consider using
|
|
33
|
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call
|
|
39
34
|
*/
|
|
40
35
|
'include_amazon_reg_ids'?: Array<string>;
|
|
41
36
|
/**
|
|
42
|
-
* Not Recommended: Please consider using
|
|
37
|
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome App 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
|
|
43
38
|
*/
|
|
44
39
|
'include_chrome_reg_ids'?: Array<string>;
|
|
45
40
|
/**
|
|
46
|
-
* Not Recommended: Please consider using
|
|
41
|
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome Web Push 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
|
|
47
42
|
*/
|
|
48
43
|
'include_chrome_web_reg_ids'?: Array<string>;
|
|
49
44
|
/**
|
|
50
|
-
* Not Recommended: Please consider using
|
|
45
|
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases 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
|
|
51
46
|
*/
|
|
52
47
|
'include_android_reg_ids'?: Array<string>;
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms.
|
|
50
|
+
*/
|
|
51
|
+
'include_aliases'?: { [key: string]: Array<string>; };
|
|
52
|
+
'target_channel'?: SubscriptionNotificationTargetTargetChannelEnum;
|
|
55
53
|
|
|
56
54
|
static readonly discriminator: string | undefined = undefined;
|
|
57
55
|
|
|
58
56
|
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
59
57
|
{
|
|
60
|
-
"name": "
|
|
61
|
-
"baseName": "
|
|
62
|
-
"type": "Array<string>",
|
|
63
|
-
"format": ""
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"name": "include_external_user_ids",
|
|
67
|
-
"baseName": "include_external_user_ids",
|
|
58
|
+
"name": "include_subscription_ids",
|
|
59
|
+
"baseName": "include_subscription_ids",
|
|
68
60
|
"type": "Array<string>",
|
|
69
61
|
"format": ""
|
|
70
62
|
},
|
|
@@ -119,18 +111,18 @@ export class PlayerNotificationTarget {
|
|
|
119
111
|
{
|
|
120
112
|
"name": "include_aliases",
|
|
121
113
|
"baseName": "include_aliases",
|
|
122
|
-
"type": "
|
|
114
|
+
"type": "{ [key: string]: Array<string>; }",
|
|
123
115
|
"format": ""
|
|
124
116
|
},
|
|
125
117
|
{
|
|
126
118
|
"name": "target_channel",
|
|
127
119
|
"baseName": "target_channel",
|
|
128
|
-
"type": "
|
|
120
|
+
"type": "SubscriptionNotificationTargetTargetChannelEnum",
|
|
129
121
|
"format": ""
|
|
130
122
|
} ];
|
|
131
123
|
|
|
132
124
|
static getAttributeTypeMap() {
|
|
133
|
-
return
|
|
125
|
+
return SubscriptionNotificationTarget.attributeTypeMap;
|
|
134
126
|
}
|
|
135
127
|
|
|
136
128
|
public constructor() {
|
|
@@ -138,5 +130,5 @@ export class PlayerNotificationTarget {
|
|
|
138
130
|
}
|
|
139
131
|
|
|
140
132
|
|
|
141
|
-
export type
|
|
133
|
+
export type SubscriptionNotificationTargetTargetChannelEnum = "push" | "email" | "sms" ;
|
|
142
134
|
|
|
@@ -2,14 +2,14 @@
|
|
|
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
|
+
* API Version: 5.0.0-alpha-01
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { HttpFile } from '../http/http';
|
|
10
10
|
|
|
11
11
|
export class TransferSubscriptionRequestBody {
|
|
12
|
-
'identity'?: { [key: string]:
|
|
12
|
+
'identity'?: { [key: string]: string; };
|
|
13
13
|
|
|
14
14
|
static readonly discriminator: string | undefined = undefined;
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ export class TransferSubscriptionRequestBody {
|
|
|
17
17
|
{
|
|
18
18
|
"name": "identity",
|
|
19
19
|
"baseName": "identity",
|
|
20
|
-
"type": "{ [key: string]:
|
|
20
|
+
"type": "{ [key: string]: string; }",
|
|
21
21
|
"format": ""
|
|
22
22
|
} ];
|
|
23
23
|
|
|
@@ -2,23 +2,41 @@
|
|
|
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
|
+
* API Version: 5.0.0-alpha-01
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { LanguageStringMap } from './LanguageStringMap';
|
|
9
10
|
import { HttpFile } from '../http/http';
|
|
10
11
|
|
|
11
12
|
export class UpdateLiveActivityRequest {
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* An internal name to assist with your campaign organization. This does not get displayed in the message itself.
|
|
14
15
|
*/
|
|
15
|
-
'name':
|
|
16
|
+
'name': string;
|
|
16
17
|
'event': UpdateLiveActivityRequestEventEnum;
|
|
18
|
+
/**
|
|
19
|
+
* This must match the ContentState interface you have defined within your Live Activity in your app.
|
|
20
|
+
*/
|
|
17
21
|
'event_updates': object;
|
|
22
|
+
'contents'?: LanguageStringMap;
|
|
23
|
+
'headings'?: LanguageStringMap;
|
|
24
|
+
/**
|
|
25
|
+
* Sound file that is included in your app to play instead of the default device notification sound. Omit to disable vibration and sound for the notification.
|
|
26
|
+
*/
|
|
27
|
+
'sound'?: string;
|
|
18
28
|
/**
|
|
19
|
-
*
|
|
29
|
+
* Accepts Unix timestamp in seconds. When time reaches the configured stale date, the system considers the Live Activity out of date, and the ActivityState of the Live Activity changes to ActivityState.stale.
|
|
20
30
|
*/
|
|
21
|
-
'
|
|
31
|
+
'stale_date'?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Accepts Unix timestamp in seconds; only allowed if event is \"end\"
|
|
34
|
+
*/
|
|
35
|
+
'dismissal_date'?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Delivery priority through the the push provider (APNs). Pass 10 for higher priority notifications, or 5 for lower priority notifications. Lower priority notifications are sent based on the power considerations of the end user\'s device. If not set, defaults to 10. Some providers (APNs) allow for a limited budget of high priority notifications per hour, and if that budget is exceeded, the provider may throttle notification delivery.
|
|
38
|
+
*/
|
|
39
|
+
'priority'?: number;
|
|
22
40
|
|
|
23
41
|
static readonly discriminator: string | undefined = undefined;
|
|
24
42
|
|
|
@@ -26,7 +44,7 @@ export class UpdateLiveActivityRequest {
|
|
|
26
44
|
{
|
|
27
45
|
"name": "name",
|
|
28
46
|
"baseName": "name",
|
|
29
|
-
"type": "
|
|
47
|
+
"type": "string",
|
|
30
48
|
"format": ""
|
|
31
49
|
},
|
|
32
50
|
{
|
|
@@ -42,8 +60,38 @@ export class UpdateLiveActivityRequest {
|
|
|
42
60
|
"format": ""
|
|
43
61
|
},
|
|
44
62
|
{
|
|
45
|
-
"name": "
|
|
46
|
-
"baseName": "
|
|
63
|
+
"name": "contents",
|
|
64
|
+
"baseName": "contents",
|
|
65
|
+
"type": "LanguageStringMap",
|
|
66
|
+
"format": ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "headings",
|
|
70
|
+
"baseName": "headings",
|
|
71
|
+
"type": "LanguageStringMap",
|
|
72
|
+
"format": ""
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "sound",
|
|
76
|
+
"baseName": "sound",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"format": ""
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "stale_date",
|
|
82
|
+
"baseName": "stale_date",
|
|
83
|
+
"type": "number",
|
|
84
|
+
"format": ""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "dismissal_date",
|
|
88
|
+
"baseName": "dismissal_date",
|
|
89
|
+
"type": "number",
|
|
90
|
+
"format": ""
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "priority",
|
|
94
|
+
"baseName": "priority",
|
|
47
95
|
"type": "number",
|
|
48
96
|
"format": ""
|
|
49
97
|
} ];
|
|
@@ -57,6 +105,5 @@ export class UpdateLiveActivityRequest {
|
|
|
57
105
|
}
|
|
58
106
|
|
|
59
107
|
|
|
60
|
-
export type UpdateLiveActivityRequestNameEnum = "headings" | "contents" | "ios_sound" | "priority_level" ;
|
|
61
108
|
export type UpdateLiveActivityRequestEventEnum = "update" | "end" ;
|
|
62
109
|
|
|
@@ -2,31 +2,23 @@
|
|
|
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
|
+
* API Version: 5.0.0-alpha-01
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { Notification200Errors } from './Notification200Errors';
|
|
10
9
|
import { HttpFile } from '../http/http';
|
|
11
10
|
|
|
12
11
|
export class UpdateLiveActivitySuccessResponse {
|
|
13
|
-
'
|
|
14
|
-
'errors'?: Notification200Errors;
|
|
12
|
+
'id'?: string;
|
|
15
13
|
|
|
16
14
|
static readonly discriminator: string | undefined = undefined;
|
|
17
15
|
|
|
18
16
|
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
19
17
|
{
|
|
20
|
-
"name": "
|
|
21
|
-
"baseName": "
|
|
18
|
+
"name": "id",
|
|
19
|
+
"baseName": "id",
|
|
22
20
|
"type": "string",
|
|
23
21
|
"format": ""
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "errors",
|
|
27
|
-
"baseName": "errors",
|
|
28
|
-
"type": "Notification200Errors",
|
|
29
|
-
"format": ""
|
|
30
22
|
} ];
|
|
31
23
|
|
|
32
24
|
static getAttributeTypeMap() {
|
package/models/User.ts
CHANGED
|
@@ -2,20 +2,18 @@
|
|
|
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
|
+
* API Version: 5.0.0-alpha-01
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PropertiesObject } from './PropertiesObject';
|
|
10
|
-
import {
|
|
11
|
-
import { UserSubscriptionOptions } from './UserSubscriptionOptions';
|
|
10
|
+
import { Subscription } from './Subscription';
|
|
12
11
|
import { HttpFile } from '../http/http';
|
|
13
12
|
|
|
14
13
|
export class User {
|
|
15
14
|
'properties'?: PropertiesObject;
|
|
16
|
-
'identity'?: { [key: string]:
|
|
17
|
-
'subscriptions'?: Array<
|
|
18
|
-
'subscription_options'?: UserSubscriptionOptions;
|
|
15
|
+
'identity'?: { [key: string]: string; };
|
|
16
|
+
'subscriptions'?: Array<Subscription>;
|
|
19
17
|
|
|
20
18
|
static readonly discriminator: string | undefined = undefined;
|
|
21
19
|
|
|
@@ -29,19 +27,13 @@ export class User {
|
|
|
29
27
|
{
|
|
30
28
|
"name": "identity",
|
|
31
29
|
"baseName": "identity",
|
|
32
|
-
"type": "{ [key: string]:
|
|
30
|
+
"type": "{ [key: string]: string; }",
|
|
33
31
|
"format": ""
|
|
34
32
|
},
|
|
35
33
|
{
|
|
36
34
|
"name": "subscriptions",
|
|
37
35
|
"baseName": "subscriptions",
|
|
38
|
-
"type": "Array<
|
|
39
|
-
"format": ""
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"name": "subscription_options",
|
|
43
|
-
"baseName": "subscription_options",
|
|
44
|
-
"type": "UserSubscriptionOptions",
|
|
36
|
+
"type": "Array<Subscription>",
|
|
45
37
|
"format": ""
|
|
46
38
|
} ];
|
|
47
39
|
|
|
@@ -2,14 +2,14 @@
|
|
|
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
|
+
* API Version: 5.0.0-alpha-01
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { HttpFile } from '../http/http';
|
|
10
10
|
|
|
11
|
-
export class
|
|
12
|
-
'identity'?: { [key: string]:
|
|
11
|
+
export class UserIdentityBody {
|
|
12
|
+
'identity'?: { [key: string]: string; };
|
|
13
13
|
|
|
14
14
|
static readonly discriminator: string | undefined = undefined;
|
|
15
15
|
|
|
@@ -17,12 +17,12 @@ export class InlineResponse200 {
|
|
|
17
17
|
{
|
|
18
18
|
"name": "identity",
|
|
19
19
|
"baseName": "identity",
|
|
20
|
-
"type": "{ [key: string]:
|
|
20
|
+
"type": "{ [key: string]: string; }",
|
|
21
21
|
"format": ""
|
|
22
22
|
} ];
|
|
23
23
|
|
|
24
24
|
static getAttributeTypeMap() {
|
|
25
|
-
return
|
|
25
|
+
return UserIdentityBody.attributeTypeMap;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
public constructor() {
|
|
@@ -2,34 +2,48 @@
|
|
|
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
|
+
* API Version: 5.0.0-alpha-01
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { HttpFile } from '../http/http';
|
|
10
10
|
|
|
11
|
-
export class
|
|
12
|
-
'
|
|
13
|
-
'
|
|
11
|
+
export class WebButton {
|
|
12
|
+
'id': string;
|
|
13
|
+
'text'?: string;
|
|
14
|
+
'icon'?: string;
|
|
15
|
+
'url'?: string;
|
|
14
16
|
|
|
15
17
|
static readonly discriminator: string | undefined = undefined;
|
|
16
18
|
|
|
17
19
|
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
18
20
|
{
|
|
19
|
-
"name": "
|
|
20
|
-
"baseName": "
|
|
21
|
+
"name": "id",
|
|
22
|
+
"baseName": "id",
|
|
21
23
|
"type": "string",
|
|
22
24
|
"format": ""
|
|
23
25
|
},
|
|
24
26
|
{
|
|
25
|
-
"name": "
|
|
26
|
-
"baseName": "
|
|
27
|
+
"name": "text",
|
|
28
|
+
"baseName": "text",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "icon",
|
|
34
|
+
"baseName": "icon",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "url",
|
|
40
|
+
"baseName": "url",
|
|
27
41
|
"type": "string",
|
|
28
42
|
"format": ""
|
|
29
43
|
} ];
|
|
30
44
|
|
|
31
45
|
static getAttributeTypeMap() {
|
|
32
|
-
return
|
|
46
|
+
return WebButton.attributeTypeMap;
|
|
33
47
|
}
|
|
34
48
|
|
|
35
49
|
public constructor() {
|
package/models/all.ts
CHANGED
|
@@ -2,37 +2,26 @@ export * from './App'
|
|
|
2
2
|
export * from './BasicNotification'
|
|
3
3
|
export * from './BasicNotificationAllOf'
|
|
4
4
|
export * from './BasicNotificationAllOfAndroidBackgroundLayout'
|
|
5
|
-
export * from './BeginLiveActivityRequest'
|
|
6
5
|
export * from './Button'
|
|
7
|
-
export * from './CancelNotificationSuccessResponse'
|
|
8
6
|
export * from './CreateNotificationSuccessResponse'
|
|
9
|
-
export * from './CreatePlayerSuccessResponse'
|
|
10
7
|
export * from './CreateSegmentConflictResponse'
|
|
11
8
|
export * from './CreateSegmentSuccessResponse'
|
|
12
|
-
export * from './CreateSubscriptionRequestBody'
|
|
13
9
|
export * from './CreateUserConflictResponse'
|
|
14
10
|
export * from './CreateUserConflictResponseErrorsInner'
|
|
15
11
|
export * from './CreateUserConflictResponseErrorsItemsMeta'
|
|
16
|
-
export * from './DeletePlayerNotFoundResponse'
|
|
17
|
-
export * from './DeletePlayerSuccessResponse'
|
|
18
|
-
export * from './DeleteSegmentNotFoundResponse'
|
|
19
|
-
export * from './DeleteSegmentSuccessResponse'
|
|
20
12
|
export * from './DeliveryData'
|
|
21
13
|
export * from './ExportEventsSuccessResponse'
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
14
|
+
export * from './ExportSubscriptionsRequestBody'
|
|
15
|
+
export * from './ExportSubscriptionsSuccessResponse'
|
|
24
16
|
export * from './Filter'
|
|
25
|
-
export * from './
|
|
17
|
+
export * from './FilterExpression'
|
|
26
18
|
export * from './GenericError'
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './InlineResponse2003'
|
|
31
|
-
export * from './InlineResponse201'
|
|
32
|
-
export * from './InlineResponse202'
|
|
19
|
+
export * from './GenericSuccessBoolResponse'
|
|
20
|
+
export * from './GetNotificationHistoryRequestBody'
|
|
21
|
+
export * from './GetSegmentsSuccessResponse'
|
|
33
22
|
export * from './InvalidIdentifierError'
|
|
23
|
+
export * from './LanguageStringMap'
|
|
34
24
|
export * from './Notification'
|
|
35
|
-
export * from './Notification200Errors'
|
|
36
25
|
export * from './NotificationAllOf'
|
|
37
26
|
export * from './NotificationHistorySuccessResponse'
|
|
38
27
|
export * from './NotificationSlice'
|
|
@@ -45,27 +34,21 @@ export * from './OutcomesData'
|
|
|
45
34
|
export * from './PlatformDeliveryData'
|
|
46
35
|
export * from './PlatformDeliveryDataEmailAllOf'
|
|
47
36
|
export * from './PlatformDeliveryDataSmsAllOf'
|
|
48
|
-
export * from './
|
|
49
|
-
export * from './PlayerNotificationTarget'
|
|
50
|
-
export * from './PlayerNotificationTargetIncludeAliases'
|
|
51
|
-
export * from './PlayerSlice'
|
|
37
|
+
export * from './PropertiesBody'
|
|
52
38
|
export * from './PropertiesDeltas'
|
|
53
39
|
export * from './PropertiesObject'
|
|
54
40
|
export * from './Purchase'
|
|
55
|
-
export * from './
|
|
41
|
+
export * from './RateLimitError'
|
|
56
42
|
export * from './Segment'
|
|
43
|
+
export * from './SegmentData'
|
|
57
44
|
export * from './SegmentNotificationTarget'
|
|
58
|
-
export * from './
|
|
59
|
-
export * from './
|
|
45
|
+
export * from './Subscription'
|
|
46
|
+
export * from './SubscriptionBody'
|
|
47
|
+
export * from './SubscriptionNotificationTarget'
|
|
60
48
|
export * from './TransferSubscriptionRequestBody'
|
|
61
49
|
export * from './UpdateLiveActivityRequest'
|
|
62
50
|
export * from './UpdateLiveActivitySuccessResponse'
|
|
63
|
-
export * from './UpdatePlayerSuccessResponse'
|
|
64
|
-
export * from './UpdatePlayerTagsRequestBody'
|
|
65
|
-
export * from './UpdatePlayerTagsSuccessResponse'
|
|
66
|
-
export * from './UpdateSubscriptionRequestBody'
|
|
67
51
|
export * from './UpdateUserRequest'
|
|
68
52
|
export * from './User'
|
|
69
|
-
export * from './
|
|
70
|
-
export * from './
|
|
71
|
-
export * from './UserSubscriptionOptions'
|
|
53
|
+
export * from './UserIdentityBody'
|
|
54
|
+
export * from './WebButton'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onesignal/node-onesignal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-alpha-01",
|
|
4
4
|
"description": "OpenAPI client for @onesignal/node-onesignal",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"prepare": "npm run build"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@types/node": "^20.
|
|
24
|
+
"@types/node": "^20.12.8",
|
|
25
25
|
"@types/node-fetch": "^2.5.7",
|
|
26
26
|
"btoa": "^1.2.1",
|
|
27
27
|
"es6-promise": "^4.2.4",
|
package/servers.ts
CHANGED
|
@@ -48,6 +48,6 @@ export class ServerConfiguration<T extends { [key: string]: string }> implements
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export const server1 = new ServerConfiguration<{ }>("https://onesignal.com
|
|
51
|
+
export const server1 = new ServerConfiguration<{ }>("https://api.onesignal.com", { })
|
|
52
52
|
|
|
53
53
|
export const servers = [server1];
|