@onesignal/node-onesignal 1.0.0-beta8 → 2.0.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/Zapier.yml +34 -0
- package/CHANGELOG.md +15 -0
- package/DefaultApi.md +988 -3
- package/README.md +152 -24
- package/apis/DefaultApi.ts +1339 -98
- package/dist/apis/DefaultApi.d.ts +39 -0
- package/dist/apis/DefaultApi.js +1490 -408
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/models/BasicNotification.d.ts +4 -0
- package/dist/models/BasicNotification.js +12 -0
- package/dist/models/BasicNotification.js.map +1 -1
- package/dist/models/CreateNotificationSuccessResponse.d.ts +2 -2
- package/dist/models/CreateSubscriptionRequestBody.d.ts +19 -0
- package/dist/models/CreateSubscriptionRequestBody.js +28 -0
- package/dist/models/CreateSubscriptionRequestBody.js.map +1 -0
- package/dist/models/CreateUserConflictResponse.d.ts +18 -0
- package/dist/models/CreateUserConflictResponse.js +22 -0
- package/dist/models/CreateUserConflictResponse.js.map +1 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.d.ts +20 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.js +34 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.js.map +1 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.d.ts +17 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +22 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +1 -0
- package/dist/models/IdentifyUserConflictResponse.d.ts +18 -0
- package/dist/models/IdentifyUserConflictResponse.js +22 -0
- package/dist/models/IdentifyUserConflictResponse.js.map +1 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.d.ts +18 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js +28 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +1 -0
- package/dist/models/InlineResponse200.d.ts +19 -0
- package/dist/models/InlineResponse200.js +22 -0
- package/dist/models/InlineResponse200.js.map +1 -0
- package/dist/models/InlineResponse2003.d.ts +17 -0
- package/dist/models/InlineResponse2003.js +22 -0
- package/dist/models/InlineResponse2003.js.map +1 -0
- package/dist/models/InlineResponse201.d.ts +18 -0
- package/dist/models/InlineResponse201.js +22 -0
- package/dist/models/InlineResponse201.js.map +1 -0
- package/dist/models/InlineResponse202.d.ts +18 -0
- package/dist/models/InlineResponse202.js +22 -0
- package/dist/models/InlineResponse202.js.map +1 -0
- package/dist/models/Notification.d.ts +4 -0
- package/dist/models/Notification.js +12 -0
- package/dist/models/Notification.js.map +1 -1
- package/dist/models/NotificationTarget.d.ts +4 -0
- package/dist/models/NotificationTarget.js +12 -0
- package/dist/models/NotificationTarget.js.map +1 -1
- package/dist/models/NotificationWithMeta.d.ts +4 -0
- package/dist/models/NotificationWithMeta.js +12 -0
- package/dist/models/NotificationWithMeta.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +21 -0
- package/dist/models/ObjectSerializer.js +69 -0
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/Player.d.ts +1 -1
- package/dist/models/Player.js +1 -1
- package/dist/models/Player.js.map +1 -1
- package/dist/models/PlayerNotificationTarget.d.ts +4 -0
- package/dist/models/PlayerNotificationTarget.js +12 -0
- package/dist/models/PlayerNotificationTarget.js.map +1 -1
- package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +17 -0
- package/dist/models/PlayerNotificationTargetIncludeAliases.js +22 -0
- package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +1 -0
- package/dist/models/PropertiesDeltas.d.ts +20 -0
- package/dist/models/PropertiesDeltas.js +34 -0
- package/dist/models/PropertiesDeltas.js.map +1 -0
- package/dist/models/PropertiesObject.d.ts +30 -0
- package/dist/models/PropertiesObject.js +82 -0
- package/dist/models/PropertiesObject.js.map +1 -0
- package/dist/models/Purchase.d.ts +2 -1
- package/dist/models/Purchase.js +7 -1
- package/dist/models/Purchase.js.map +1 -1
- package/dist/models/SubscriptionObject.d.ts +34 -0
- package/dist/models/SubscriptionObject.js +118 -0
- package/dist/models/SubscriptionObject.js.map +1 -0
- package/dist/models/TransferSubscriptionRequestBody.d.ts +19 -0
- package/dist/models/TransferSubscriptionRequestBody.js +22 -0
- package/dist/models/TransferSubscriptionRequestBody.js.map +1 -0
- package/dist/models/UpdateSubscriptionRequestBody.d.ts +18 -0
- package/dist/models/UpdateSubscriptionRequestBody.js +22 -0
- package/dist/models/UpdateSubscriptionRequestBody.js.map +1 -0
- package/dist/models/UpdateUserRequest.d.ts +21 -0
- package/dist/models/UpdateUserRequest.js +34 -0
- package/dist/models/UpdateUserRequest.js.map +1 -0
- package/dist/models/User.d.ts +25 -0
- package/dist/models/User.js +40 -0
- package/dist/models/User.js.map +1 -0
- package/dist/models/UserIdentityRequestBody.d.ts +19 -0
- package/dist/models/UserIdentityRequestBody.js +22 -0
- package/dist/models/UserIdentityRequestBody.js.map +1 -0
- package/dist/models/UserIdentityResponse.d.ts +19 -0
- package/dist/models/UserIdentityResponse.js +22 -0
- package/dist/models/UserIdentityResponse.js.map +1 -0
- package/dist/models/UserSubscriptionOptions.d.ts +17 -0
- package/dist/models/UserSubscriptionOptions.js +22 -0
- package/dist/models/UserSubscriptionOptions.js.map +1 -0
- package/dist/models/all.d.ts +21 -0
- package/dist/models/all.js +21 -0
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +95 -0
- package/dist/types/ObjectParamAPI.js +42 -0
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +25 -0
- package/dist/types/ObservableAPI.js +383 -47
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +25 -0
- package/dist/types/PromiseAPI.js +56 -0
- package/dist/types/PromiseAPI.js.map +1 -1
- package/models/App.ts +1 -1
- package/models/BadRequestError.ts +1 -1
- package/models/BasicNotification.ts +17 -1
- package/models/BasicNotificationAllOf.ts +1 -1
- 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 +3 -3
- package/models/CreatePlayerSuccessResponse.ts +1 -1
- package/models/CreateSegmentConflictResponse.ts +1 -1
- package/models/CreateSegmentSuccessResponse.ts +1 -1
- package/models/CreateSubscriptionRequestBody.ts +39 -0
- package/models/CreateUserConflictResponse.ts +32 -0
- package/models/CreateUserConflictResponseErrorsInner.ts +46 -0
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +31 -0
- 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/ExportPlayersRequestBody.ts +1 -1
- package/models/ExportPlayersSuccessResponse.ts +1 -1
- package/models/Filter.ts +1 -1
- package/models/FilterExpressions.ts +1 -1
- package/models/GetNotificationRequestBody.ts +1 -1
- package/models/IdentifyUserConflictResponse.ts +32 -0
- package/models/IdentifyUserConflictResponseErrorsInner.ts +38 -0
- package/models/InlineResponse200.ts +31 -0
- package/models/InlineResponse2003.ts +31 -0
- package/models/InlineResponse201.ts +32 -0
- package/models/InlineResponse202.ts +32 -0
- package/models/InvalidIdentifierError.ts +1 -1
- package/models/Notification.ts +17 -1
- 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 +19 -1
- package/models/NotificationWithMeta.ts +17 -1
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +74 -5
- 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 +3 -3
- package/models/PlayerNotificationTarget.ts +19 -1
- package/models/PlayerNotificationTargetIncludeAliases.ts +31 -0
- package/models/PlayerSlice.ts +1 -1
- package/models/PropertiesDeltas.ts +46 -0
- package/models/PropertiesObject.ts +102 -0
- package/models/Purchase.ts +10 -3
- package/models/Segment.ts +1 -1
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/StringMap.ts +1 -1
- package/models/SubscriptionObject.ts +146 -0
- package/models/TransferSubscriptionRequestBody.ts +31 -0
- 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 +32 -0
- package/models/UpdateUserRequest.ts +47 -0
- package/models/User.ts +55 -0
- package/models/UserIdentityRequestBody.ts +31 -0
- package/models/UserIdentityResponse.ts +31 -0
- package/models/UserSubscriptionOptions.ts +31 -0
- package/models/all.ts +21 -0
- package/package.json +2 -2
- package/types/ObjectParamAPI.ts +427 -0
- package/types/ObservableAPI.ts +371 -0
- package/types/PromiseAPI.ts +175 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSignal
|
|
3
|
+
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
|
+
*
|
|
5
|
+
* API Version: 1.2.1
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { CreateUserConflictResponseErrorsItemsMeta } from './CreateUserConflictResponseErrorsItemsMeta';
|
|
10
|
+
import { HttpFile } from '../http/http';
|
|
11
|
+
|
|
12
|
+
export class CreateUserConflictResponseErrorsInner {
|
|
13
|
+
'code'?: string;
|
|
14
|
+
'title'?: string;
|
|
15
|
+
'meta'?: CreateUserConflictResponseErrorsItemsMeta;
|
|
16
|
+
|
|
17
|
+
static readonly discriminator: string | undefined = undefined;
|
|
18
|
+
|
|
19
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
20
|
+
{
|
|
21
|
+
"name": "code",
|
|
22
|
+
"baseName": "code",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "title",
|
|
28
|
+
"baseName": "title",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "meta",
|
|
34
|
+
"baseName": "meta",
|
|
35
|
+
"type": "CreateUserConflictResponseErrorsItemsMeta",
|
|
36
|
+
"format": ""
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return CreateUserConflictResponseErrorsInner.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public constructor() {
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSignal
|
|
3
|
+
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
|
+
*
|
|
5
|
+
* API Version: 1.2.1
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { HttpFile } from '../http/http';
|
|
10
|
+
|
|
11
|
+
export class CreateUserConflictResponseErrorsItemsMeta {
|
|
12
|
+
'conflicting_aliases'?: object;
|
|
13
|
+
|
|
14
|
+
static readonly discriminator: string | undefined = undefined;
|
|
15
|
+
|
|
16
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
17
|
+
{
|
|
18
|
+
"name": "conflicting_aliases",
|
|
19
|
+
"baseName": "conflicting_aliases",
|
|
20
|
+
"type": "object",
|
|
21
|
+
"format": ""
|
|
22
|
+
} ];
|
|
23
|
+
|
|
24
|
+
static getAttributeTypeMap() {
|
|
25
|
+
return CreateUserConflictResponseErrorsItemsMeta.attributeTypeMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public constructor() {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
package/models/DeliveryData.ts
CHANGED
package/models/Filter.ts
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSignal
|
|
3
|
+
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
|
+
*
|
|
5
|
+
* API Version: 1.2.1
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { IdentifyUserConflictResponseErrorsInner } from './IdentifyUserConflictResponseErrorsInner';
|
|
10
|
+
import { HttpFile } from '../http/http';
|
|
11
|
+
|
|
12
|
+
export class IdentifyUserConflictResponse {
|
|
13
|
+
'errors'?: Array<IdentifyUserConflictResponseErrorsInner>;
|
|
14
|
+
|
|
15
|
+
static readonly discriminator: string | undefined = undefined;
|
|
16
|
+
|
|
17
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
18
|
+
{
|
|
19
|
+
"name": "errors",
|
|
20
|
+
"baseName": "errors",
|
|
21
|
+
"type": "Array<IdentifyUserConflictResponseErrorsInner>",
|
|
22
|
+
"format": ""
|
|
23
|
+
} ];
|
|
24
|
+
|
|
25
|
+
static getAttributeTypeMap() {
|
|
26
|
+
return IdentifyUserConflictResponse.attributeTypeMap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public constructor() {
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSignal
|
|
3
|
+
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
|
+
*
|
|
5
|
+
* API Version: 1.2.1
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { HttpFile } from '../http/http';
|
|
10
|
+
|
|
11
|
+
export class IdentifyUserConflictResponseErrorsInner {
|
|
12
|
+
'code'?: string;
|
|
13
|
+
'title'?: string;
|
|
14
|
+
|
|
15
|
+
static readonly discriminator: string | undefined = undefined;
|
|
16
|
+
|
|
17
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
18
|
+
{
|
|
19
|
+
"name": "code",
|
|
20
|
+
"baseName": "code",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": ""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "title",
|
|
26
|
+
"baseName": "title",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": ""
|
|
29
|
+
} ];
|
|
30
|
+
|
|
31
|
+
static getAttributeTypeMap() {
|
|
32
|
+
return IdentifyUserConflictResponseErrorsInner.attributeTypeMap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public constructor() {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSignal
|
|
3
|
+
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
|
+
*
|
|
5
|
+
* API Version: 1.2.1
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { HttpFile } from '../http/http';
|
|
10
|
+
|
|
11
|
+
export class InlineResponse200 {
|
|
12
|
+
'identity'?: { [key: string]: any; };
|
|
13
|
+
|
|
14
|
+
static readonly discriminator: string | undefined = undefined;
|
|
15
|
+
|
|
16
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
17
|
+
{
|
|
18
|
+
"name": "identity",
|
|
19
|
+
"baseName": "identity",
|
|
20
|
+
"type": "{ [key: string]: any; }",
|
|
21
|
+
"format": ""
|
|
22
|
+
} ];
|
|
23
|
+
|
|
24
|
+
static getAttributeTypeMap() {
|
|
25
|
+
return InlineResponse200.attributeTypeMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public constructor() {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSignal
|
|
3
|
+
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
|
+
*
|
|
5
|
+
* API Version: 1.2.1
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { HttpFile } from '../http/http';
|
|
10
|
+
|
|
11
|
+
export class InlineResponse2003 {
|
|
12
|
+
'in_app_messages'?: Array<object>;
|
|
13
|
+
|
|
14
|
+
static readonly discriminator: string | undefined = undefined;
|
|
15
|
+
|
|
16
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
17
|
+
{
|
|
18
|
+
"name": "in_app_messages",
|
|
19
|
+
"baseName": "in_app_messages",
|
|
20
|
+
"type": "Array<object>",
|
|
21
|
+
"format": ""
|
|
22
|
+
} ];
|
|
23
|
+
|
|
24
|
+
static getAttributeTypeMap() {
|
|
25
|
+
return InlineResponse2003.attributeTypeMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public constructor() {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSignal
|
|
3
|
+
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
|
+
*
|
|
5
|
+
* API Version: 1.2.1
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { SubscriptionObject } from './SubscriptionObject';
|
|
10
|
+
import { HttpFile } from '../http/http';
|
|
11
|
+
|
|
12
|
+
export class InlineResponse201 {
|
|
13
|
+
'subscription'?: SubscriptionObject;
|
|
14
|
+
|
|
15
|
+
static readonly discriminator: string | undefined = undefined;
|
|
16
|
+
|
|
17
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
18
|
+
{
|
|
19
|
+
"name": "subscription",
|
|
20
|
+
"baseName": "subscription",
|
|
21
|
+
"type": "SubscriptionObject",
|
|
22
|
+
"format": ""
|
|
23
|
+
} ];
|
|
24
|
+
|
|
25
|
+
static getAttributeTypeMap() {
|
|
26
|
+
return InlineResponse201.attributeTypeMap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public constructor() {
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSignal
|
|
3
|
+
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
|
+
*
|
|
5
|
+
* API Version: 1.2.1
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PropertiesObject } from './PropertiesObject';
|
|
10
|
+
import { HttpFile } from '../http/http';
|
|
11
|
+
|
|
12
|
+
export class InlineResponse202 {
|
|
13
|
+
'properties'?: PropertiesObject;
|
|
14
|
+
|
|
15
|
+
static readonly discriminator: string | undefined = undefined;
|
|
16
|
+
|
|
17
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
18
|
+
{
|
|
19
|
+
"name": "properties",
|
|
20
|
+
"baseName": "properties",
|
|
21
|
+
"type": "PropertiesObject",
|
|
22
|
+
"format": ""
|
|
23
|
+
} ];
|
|
24
|
+
|
|
25
|
+
static getAttributeTypeMap() {
|
|
26
|
+
return InlineResponse202.attributeTypeMap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public constructor() {
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
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.2.1
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -11,6 +11,7 @@ import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificati
|
|
|
11
11
|
import { Button } from './Button';
|
|
12
12
|
import { Filter } from './Filter';
|
|
13
13
|
import { NotificationAllOf } from './NotificationAllOf';
|
|
14
|
+
import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
|
|
14
15
|
import { StringMap } from './StringMap';
|
|
15
16
|
import { HttpFile } from '../http/http';
|
|
16
17
|
|
|
@@ -63,6 +64,8 @@ export class Notification {
|
|
|
63
64
|
* Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
|
|
64
65
|
*/
|
|
65
66
|
'include_android_reg_ids'?: Array<string>;
|
|
67
|
+
'include_aliases'?: PlayerNotificationTargetIncludeAliases;
|
|
68
|
+
'target_channel'?: NotificationTargetChannelEnum;
|
|
66
69
|
'id'?: string;
|
|
67
70
|
'value'?: number;
|
|
68
71
|
/**
|
|
@@ -475,6 +478,18 @@ export class Notification {
|
|
|
475
478
|
"type": "Array<string>",
|
|
476
479
|
"format": ""
|
|
477
480
|
},
|
|
481
|
+
{
|
|
482
|
+
"name": "include_aliases",
|
|
483
|
+
"baseName": "include_aliases",
|
|
484
|
+
"type": "PlayerNotificationTargetIncludeAliases",
|
|
485
|
+
"format": ""
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "target_channel",
|
|
489
|
+
"baseName": "target_channel",
|
|
490
|
+
"type": "NotificationTargetChannelEnum",
|
|
491
|
+
"format": ""
|
|
492
|
+
},
|
|
478
493
|
{
|
|
479
494
|
"name": "id",
|
|
480
495
|
"baseName": "id",
|
|
@@ -1025,5 +1040,6 @@ export class Notification {
|
|
|
1025
1040
|
}
|
|
1026
1041
|
|
|
1027
1042
|
|
|
1043
|
+
export type NotificationTargetChannelEnum = "push" | "email" | "sms" ;
|
|
1028
1044
|
export type NotificationAggregationEnum = "sum" | "count" ;
|
|
1029
1045
|
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* OneSignal
|
|
3
3
|
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
4
|
*
|
|
5
|
-
* API Version: 1.
|
|
5
|
+
* API Version: 1.2.1
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PlayerNotificationTarget } from './PlayerNotificationTarget';
|
|
10
|
+
import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
|
|
10
11
|
import { SegmentNotificationTarget } from './SegmentNotificationTarget';
|
|
11
12
|
import { HttpFile } from '../http/http';
|
|
12
13
|
|
|
@@ -59,6 +60,8 @@ export class NotificationTarget {
|
|
|
59
60
|
* Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
|
|
60
61
|
*/
|
|
61
62
|
'include_android_reg_ids'?: Array<string>;
|
|
63
|
+
'include_aliases'?: PlayerNotificationTargetIncludeAliases;
|
|
64
|
+
'target_channel'?: NotificationTargetTargetChannelEnum;
|
|
62
65
|
|
|
63
66
|
static readonly discriminator: string | undefined = undefined;
|
|
64
67
|
|
|
@@ -134,6 +137,18 @@ export class NotificationTarget {
|
|
|
134
137
|
"baseName": "include_android_reg_ids",
|
|
135
138
|
"type": "Array<string>",
|
|
136
139
|
"format": ""
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "include_aliases",
|
|
143
|
+
"baseName": "include_aliases",
|
|
144
|
+
"type": "PlayerNotificationTargetIncludeAliases",
|
|
145
|
+
"format": ""
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "target_channel",
|
|
149
|
+
"baseName": "target_channel",
|
|
150
|
+
"type": "NotificationTargetTargetChannelEnum",
|
|
151
|
+
"format": ""
|
|
137
152
|
} ];
|
|
138
153
|
|
|
139
154
|
static getAttributeTypeMap() {
|
|
@@ -144,3 +159,6 @@ export class NotificationTarget {
|
|
|
144
159
|
}
|
|
145
160
|
}
|
|
146
161
|
|
|
162
|
+
|
|
163
|
+
export type NotificationTargetTargetChannelEnum = "push" | "email" | "sms" ;
|
|
164
|
+
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OneSignal
|
|
3
3
|
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
4
|
*
|
|
5
|
-
* API Version: 1.
|
|
5
|
+
* API Version: 1.2.1
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -15,6 +15,7 @@ import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
|
|
|
15
15
|
import { OutcomeData } from './OutcomeData';
|
|
16
16
|
import { OutcomesData } from './OutcomesData';
|
|
17
17
|
import { PlatformDeliveryData } from './PlatformDeliveryData';
|
|
18
|
+
import { PlayerNotificationTargetIncludeAliases } from './PlayerNotificationTargetIncludeAliases';
|
|
18
19
|
import { StringMap } from './StringMap';
|
|
19
20
|
import { HttpFile } from '../http/http';
|
|
20
21
|
|
|
@@ -67,6 +68,8 @@ export class NotificationWithMeta {
|
|
|
67
68
|
* Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
|
|
68
69
|
*/
|
|
69
70
|
'include_android_reg_ids'?: Array<string>;
|
|
71
|
+
'include_aliases'?: PlayerNotificationTargetIncludeAliases;
|
|
72
|
+
'target_channel'?: NotificationWithMetaTargetChannelEnum;
|
|
70
73
|
'id'?: string;
|
|
71
74
|
'value'?: number;
|
|
72
75
|
/**
|
|
@@ -513,6 +516,18 @@ export class NotificationWithMeta {
|
|
|
513
516
|
"type": "Array<string>",
|
|
514
517
|
"format": ""
|
|
515
518
|
},
|
|
519
|
+
{
|
|
520
|
+
"name": "include_aliases",
|
|
521
|
+
"baseName": "include_aliases",
|
|
522
|
+
"type": "PlayerNotificationTargetIncludeAliases",
|
|
523
|
+
"format": ""
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "target_channel",
|
|
527
|
+
"baseName": "target_channel",
|
|
528
|
+
"type": "NotificationWithMetaTargetChannelEnum",
|
|
529
|
+
"format": ""
|
|
530
|
+
},
|
|
516
531
|
{
|
|
517
532
|
"name": "id",
|
|
518
533
|
"baseName": "id",
|
|
@@ -1123,5 +1138,6 @@ export class NotificationWithMeta {
|
|
|
1123
1138
|
}
|
|
1124
1139
|
|
|
1125
1140
|
|
|
1141
|
+
export type NotificationWithMetaTargetChannelEnum = "push" | "email" | "sms" ;
|
|
1126
1142
|
export type NotificationWithMetaAggregationEnum = "sum" | "count" ;
|
|
1127
1143
|
|