@onesignal/node-onesignal 5.2.1-beta1 → 5.3.1-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/dist/apis/DefaultApi.d.ts +40 -0
- package/dist/apis/DefaultApi.js +1363 -100
- package/dist/models/ApiKeyToken.d.ts +23 -0
- package/dist/models/ApiKeyToken.js +52 -0
- package/dist/models/ApiKeyTokensListResponse.d.ts +18 -0
- package/dist/models/ApiKeyTokensListResponse.js +22 -0
- package/dist/models/CopyTemplateRequest.d.ts +17 -0
- package/dist/models/CopyTemplateRequest.js +22 -0
- package/dist/models/CreateApiKeyRequest.d.ts +20 -0
- package/dist/models/CreateApiKeyRequest.js +34 -0
- package/dist/models/CreateApiKeyResponse.d.ts +18 -0
- package/dist/models/CreateApiKeyResponse.js +28 -0
- package/dist/models/CreateTemplateRequest.d.ts +25 -0
- package/dist/models/CreateTemplateRequest.js +64 -0
- package/dist/models/CustomEvent.d.ts +23 -0
- package/dist/models/CustomEvent.js +46 -0
- package/dist/models/CustomEventsRequest.d.ts +18 -0
- package/dist/models/CustomEventsRequest.js +22 -0
- package/dist/models/NotificationWithMeta.d.ts +1 -0
- package/dist/models/NotificationWithMeta.js +6 -0
- package/dist/models/NotificationWithMetaAllOf.d.ts +1 -0
- package/dist/models/NotificationWithMetaAllOf.js +6 -0
- package/dist/models/ObjectSerializer.d.ts +14 -0
- package/dist/models/ObjectSerializer.js +47 -0
- package/dist/models/StartLiveActivityRequest.d.ts +37 -0
- package/dist/models/StartLiveActivityRequest.js +112 -0
- package/dist/models/StartLiveActivitySuccessResponse.d.ts +17 -0
- package/dist/models/StartLiveActivitySuccessResponse.js +22 -0
- package/dist/models/TemplateResource.d.ts +25 -0
- package/dist/models/TemplateResource.js +52 -0
- package/dist/models/TemplatesListResponse.d.ts +18 -0
- package/dist/models/TemplatesListResponse.js +22 -0
- package/dist/models/UpdateApiKeyRequest.d.ts +20 -0
- package/dist/models/UpdateApiKeyRequest.js +34 -0
- package/dist/models/UpdateTemplateRequest.d.ts +24 -0
- package/dist/models/UpdateTemplateRequest.js +58 -0
- package/dist/models/all.d.ts +14 -0
- package/dist/models/all.js +14 -0
- package/dist/types/ObjectParamAPI.d.ts +88 -0
- package/dist/types/ObjectParamAPI.js +42 -0
- package/dist/types/ObservableAPI.d.ts +26 -0
- package/dist/types/ObservableAPI.js +422 -86
- package/dist/types/PromiseAPI.d.ts +26 -0
- package/dist/types/PromiseAPI.js +56 -0
- package/package.json +9 -3
- package/.github/ISSUE_TEMPLATE/ask-question.yml +0 -25
- package/.github/ISSUE_TEMPLATE/bug-report.yml +0 -51
- package/.github/ISSUE_TEMPLATE/general-feedback.yml +0 -25
- package/.github/pull_request_template.md +0 -44
- package/.github/workflows/asana-add-comment.yml +0 -47
- package/.github/workflows/asana-create-task.yml +0 -119
- package/.github/workflows/asana-update-issue.yml +0 -172
- package/.github/workflows/npm_deploy.yml +0 -22
- package/.github/workflows/project.yml +0 -17
- package/CHANGELOG.md +0 -48
- package/DefaultApi.md +0 -2177
- package/RELEASE_INSTRUCTIONS.md +0 -2
- package/apis/DefaultApi.ts +0 -3270
- package/apis/baseapi.ts +0 -37
- package/apis/exception.ts +0 -15
- package/auth/auth.ts +0 -110
- package/configuration.ts +0 -85
- package/dist/apis/DefaultApi.js.map +0 -1
- package/dist/apis/baseapi.js.map +0 -1
- package/dist/apis/exception.js.map +0 -1
- package/dist/auth/auth.js.map +0 -1
- package/dist/configuration.js.map +0 -1
- package/dist/http/http.js.map +0 -1
- package/dist/http/isomorphic-fetch.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/middleware.js.map +0 -1
- package/dist/models/App.js.map +0 -1
- package/dist/models/BasicNotification.js.map +0 -1
- package/dist/models/BasicNotificationAllOf.js.map +0 -1
- package/dist/models/BasicNotificationAllOfAndroidBackgroundLayout.js.map +0 -1
- package/dist/models/Button.js.map +0 -1
- package/dist/models/CreateNotificationSuccessResponse.js.map +0 -1
- package/dist/models/CreateSegmentConflictResponse.js.map +0 -1
- package/dist/models/CreateSegmentSuccessResponse.js.map +0 -1
- package/dist/models/CreateUserConflictResponse.js.map +0 -1
- package/dist/models/CreateUserConflictResponseErrorsInner.js.map +0 -1
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +0 -1
- package/dist/models/DeliveryData.js.map +0 -1
- package/dist/models/ExportEventsSuccessResponse.js.map +0 -1
- package/dist/models/ExportSubscriptionsRequestBody.js.map +0 -1
- package/dist/models/ExportSubscriptionsSuccessResponse.js.map +0 -1
- package/dist/models/Filter.js.map +0 -1
- package/dist/models/FilterExpression.js.map +0 -1
- package/dist/models/GenericError.js.map +0 -1
- package/dist/models/GenericSuccessBoolResponse.js.map +0 -1
- package/dist/models/GetNotificationHistoryRequestBody.js.map +0 -1
- package/dist/models/GetSegmentsSuccessResponse.js.map +0 -1
- package/dist/models/LanguageStringMap.js.map +0 -1
- package/dist/models/Notification.js.map +0 -1
- package/dist/models/NotificationAllOf.js.map +0 -1
- package/dist/models/NotificationHistorySuccessResponse.js.map +0 -1
- package/dist/models/NotificationSlice.js.map +0 -1
- package/dist/models/NotificationTarget.js.map +0 -1
- package/dist/models/NotificationWithMeta.js.map +0 -1
- package/dist/models/NotificationWithMetaAllOf.js.map +0 -1
- package/dist/models/ObjectSerializer.js.map +0 -1
- package/dist/models/Operator.js.map +0 -1
- package/dist/models/OutcomeData.js.map +0 -1
- package/dist/models/OutcomesData.js.map +0 -1
- package/dist/models/PlatformDeliveryData.js.map +0 -1
- package/dist/models/PlatformDeliveryDataEmailAllOf.js.map +0 -1
- package/dist/models/PlatformDeliveryDataSmsAllOf.js.map +0 -1
- package/dist/models/PropertiesBody.js.map +0 -1
- package/dist/models/PropertiesDeltas.js.map +0 -1
- package/dist/models/PropertiesObject.js.map +0 -1
- package/dist/models/Purchase.js.map +0 -1
- package/dist/models/RateLimitError.js.map +0 -1
- package/dist/models/Segment.js.map +0 -1
- package/dist/models/SegmentData.js.map +0 -1
- package/dist/models/SegmentNotificationTarget.js.map +0 -1
- package/dist/models/Subscription.js.map +0 -1
- package/dist/models/SubscriptionBody.js.map +0 -1
- package/dist/models/SubscriptionNotificationTarget.js.map +0 -1
- package/dist/models/TransferSubscriptionRequestBody.js.map +0 -1
- package/dist/models/UpdateLiveActivityRequest.js.map +0 -1
- package/dist/models/UpdateLiveActivitySuccessResponse.js.map +0 -1
- package/dist/models/UpdateUserRequest.js.map +0 -1
- package/dist/models/User.js.map +0 -1
- package/dist/models/UserIdentityBody.js.map +0 -1
- package/dist/models/WebButton.js.map +0 -1
- package/dist/models/all.js.map +0 -1
- package/dist/rxjsStub.js.map +0 -1
- package/dist/servers.js.map +0 -1
- package/dist/types/ObjectParamAPI.js.map +0 -1
- package/dist/types/ObservableAPI.js.map +0 -1
- package/dist/types/PromiseAPI.js.map +0 -1
- package/dist/util.js.map +0 -1
- package/http/http.ts +0 -205
- package/http/isomorphic-fetch.ts +0 -30
- package/index.ts +0 -12
- package/middleware.ts +0 -66
- package/models/App.ts +0 -328
- package/models/BasicNotification.ts +0 -1088
- package/models/BasicNotificationAllOf.ts +0 -958
- package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +0 -57
- package/models/Button.ts +0 -45
- package/models/CreateNotificationSuccessResponse.ts +0 -48
- package/models/CreateSegmentConflictResponse.ts +0 -38
- package/models/CreateSegmentSuccessResponse.ts +0 -41
- package/models/CreateUserConflictResponse.ts +0 -32
- package/models/CreateUserConflictResponseErrorsInner.ts +0 -46
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +0 -31
- package/models/DeliveryData.ts +0 -74
- package/models/ExportEventsSuccessResponse.ts +0 -31
- package/models/ExportSubscriptionsRequestBody.ts +0 -54
- package/models/ExportSubscriptionsSuccessResponse.ts +0 -31
- package/models/Filter.ts +0 -107
- package/models/FilterExpression.ts +0 -120
- package/models/GenericError.ts +0 -45
- package/models/GenericSuccessBoolResponse.ts +0 -31
- package/models/GetNotificationHistoryRequestBody.ts +0 -54
- package/models/GetSegmentsSuccessResponse.ts +0 -65
- package/models/LanguageStringMap.ts +0 -454
- package/models/Notification.ts +0 -1098
- package/models/NotificationAllOf.ts +0 -34
- package/models/NotificationHistorySuccessResponse.ts +0 -38
- package/models/NotificationSlice.ts +0 -53
- package/models/NotificationTarget.ts +0 -156
- package/models/NotificationWithMeta.ts +0 -1196
- package/models/NotificationWithMetaAllOf.ts +0 -132
- package/models/ObjectSerializer.ts +0 -395
- package/models/Operator.ts +0 -37
- package/models/OutcomeData.ts +0 -48
- package/models/OutcomesData.ts +0 -32
- package/models/PlatformDeliveryData.ts +0 -86
- package/models/PlatformDeliveryDataEmailAllOf.ts +0 -94
- package/models/PlatformDeliveryDataSmsAllOf.ts +0 -54
- package/models/PropertiesBody.ts +0 -32
- package/models/PropertiesDeltas.ts +0 -46
- package/models/PropertiesObject.ts +0 -102
- package/models/Purchase.ts +0 -61
- package/models/RateLimitError.ts +0 -38
- package/models/Segment.ts +0 -55
- package/models/SegmentData.ts +0 -94
- package/models/SegmentNotificationTarget.ts +0 -44
- package/models/Subscription.ts +0 -146
- package/models/SubscriptionBody.ts +0 -32
- package/models/SubscriptionNotificationTarget.ts +0 -134
- package/models/TransferSubscriptionRequestBody.ts +0 -31
- package/models/UpdateLiveActivityRequest.ts +0 -109
- package/models/UpdateLiveActivitySuccessResponse.ts +0 -31
- package/models/UpdateUserRequest.ts +0 -47
- package/models/User.ts +0 -47
- package/models/UserIdentityBody.ts +0 -31
- package/models/WebButton.ts +0 -52
- package/models/all.ts +0 -53
- package/rxjsStub.ts +0 -27
- package/servers.ts +0 -53
- package/tsconfig.json +0 -28
- package/types/ObjectParamAPI.ts +0 -884
- package/types/ObservableAPI.ts +0 -831
- package/types/PromiseAPI.ts +0 -411
- package/util.ts +0 -37
|
@@ -1,44 +0,0 @@
|
|
|
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: 5.2.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class SegmentNotificationTarget {
|
|
12
|
-
/**
|
|
13
|
-
* The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"]
|
|
14
|
-
*/
|
|
15
|
-
'included_segments'?: Array<string>;
|
|
16
|
-
/**
|
|
17
|
-
* Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"]
|
|
18
|
-
*/
|
|
19
|
-
'excluded_segments'?: Array<string>;
|
|
20
|
-
|
|
21
|
-
static readonly discriminator: string | undefined = undefined;
|
|
22
|
-
|
|
23
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
24
|
-
{
|
|
25
|
-
"name": "included_segments",
|
|
26
|
-
"baseName": "included_segments",
|
|
27
|
-
"type": "Array<string>",
|
|
28
|
-
"format": ""
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"name": "excluded_segments",
|
|
32
|
-
"baseName": "excluded_segments",
|
|
33
|
-
"type": "Array<string>",
|
|
34
|
-
"format": ""
|
|
35
|
-
} ];
|
|
36
|
-
|
|
37
|
-
static getAttributeTypeMap() {
|
|
38
|
-
return SegmentNotificationTarget.attributeTypeMap;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
public constructor() {
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
package/models/Subscription.ts
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
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: 5.2.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class Subscription {
|
|
12
|
-
'id'?: string;
|
|
13
|
-
'type'?: SubscriptionTypeEnum;
|
|
14
|
-
'token'?: string;
|
|
15
|
-
'enabled'?: boolean;
|
|
16
|
-
'notification_types'?: number;
|
|
17
|
-
'session_time'?: number;
|
|
18
|
-
'session_count'?: number;
|
|
19
|
-
'sdk'?: string;
|
|
20
|
-
'device_model'?: string;
|
|
21
|
-
'device_os'?: string;
|
|
22
|
-
'rooted'?: boolean;
|
|
23
|
-
'test_type'?: number;
|
|
24
|
-
'app_version'?: string;
|
|
25
|
-
'net_type'?: number;
|
|
26
|
-
'carrier'?: string;
|
|
27
|
-
'web_auth'?: string;
|
|
28
|
-
'web_p256'?: string;
|
|
29
|
-
|
|
30
|
-
static readonly discriminator: string | undefined = undefined;
|
|
31
|
-
|
|
32
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
33
|
-
{
|
|
34
|
-
"name": "id",
|
|
35
|
-
"baseName": "id",
|
|
36
|
-
"type": "string",
|
|
37
|
-
"format": ""
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "type",
|
|
41
|
-
"baseName": "type",
|
|
42
|
-
"type": "SubscriptionTypeEnum",
|
|
43
|
-
"format": ""
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "token",
|
|
47
|
-
"baseName": "token",
|
|
48
|
-
"type": "string",
|
|
49
|
-
"format": ""
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "enabled",
|
|
53
|
-
"baseName": "enabled",
|
|
54
|
-
"type": "boolean",
|
|
55
|
-
"format": ""
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "notification_types",
|
|
59
|
-
"baseName": "notification_types",
|
|
60
|
-
"type": "number",
|
|
61
|
-
"format": ""
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "session_time",
|
|
65
|
-
"baseName": "session_time",
|
|
66
|
-
"type": "number",
|
|
67
|
-
"format": ""
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "session_count",
|
|
71
|
-
"baseName": "session_count",
|
|
72
|
-
"type": "number",
|
|
73
|
-
"format": ""
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "sdk",
|
|
77
|
-
"baseName": "sdk",
|
|
78
|
-
"type": "string",
|
|
79
|
-
"format": ""
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "device_model",
|
|
83
|
-
"baseName": "device_model",
|
|
84
|
-
"type": "string",
|
|
85
|
-
"format": ""
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"name": "device_os",
|
|
89
|
-
"baseName": "device_os",
|
|
90
|
-
"type": "string",
|
|
91
|
-
"format": ""
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"name": "rooted",
|
|
95
|
-
"baseName": "rooted",
|
|
96
|
-
"type": "boolean",
|
|
97
|
-
"format": ""
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "test_type",
|
|
101
|
-
"baseName": "test_type",
|
|
102
|
-
"type": "number",
|
|
103
|
-
"format": ""
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "app_version",
|
|
107
|
-
"baseName": "app_version",
|
|
108
|
-
"type": "string",
|
|
109
|
-
"format": ""
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "net_type",
|
|
113
|
-
"baseName": "net_type",
|
|
114
|
-
"type": "number",
|
|
115
|
-
"format": ""
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"name": "carrier",
|
|
119
|
-
"baseName": "carrier",
|
|
120
|
-
"type": "string",
|
|
121
|
-
"format": ""
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"name": "web_auth",
|
|
125
|
-
"baseName": "web_auth",
|
|
126
|
-
"type": "string",
|
|
127
|
-
"format": ""
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"name": "web_p256",
|
|
131
|
-
"baseName": "web_p256",
|
|
132
|
-
"type": "string",
|
|
133
|
-
"format": ""
|
|
134
|
-
} ];
|
|
135
|
-
|
|
136
|
-
static getAttributeTypeMap() {
|
|
137
|
-
return Subscription.attributeTypeMap;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
public constructor() {
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
export type SubscriptionTypeEnum = "iOSPush" | "AndroidPush" | "FireOSPush" | "ChromeExtensionPush" | "ChromePush" | "WindowsPush" | "SafariLegacyPush" | "FirefoxPush" | "macOSPush" | "HuaweiPush" | "SafariPush" | "Email" | "SMS" ;
|
|
146
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
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: 5.2.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { Subscription } from './Subscription';
|
|
10
|
-
import { HttpFile } from '../http/http';
|
|
11
|
-
|
|
12
|
-
export class SubscriptionBody {
|
|
13
|
-
'subscription'?: Subscription;
|
|
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": "Subscription",
|
|
22
|
-
"format": ""
|
|
23
|
-
} ];
|
|
24
|
-
|
|
25
|
-
static getAttributeTypeMap() {
|
|
26
|
-
return SubscriptionBody.attributeTypeMap;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public constructor() {
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
@@ -1,134 +0,0 @@
|
|
|
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: 5.2.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class SubscriptionNotificationTarget {
|
|
12
|
-
/**
|
|
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
|
|
14
|
-
*/
|
|
15
|
-
'include_subscription_ids'?: Array<string>;
|
|
16
|
-
/**
|
|
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
|
|
18
|
-
*/
|
|
19
|
-
'include_email_tokens'?: Array<string>;
|
|
20
|
-
/**
|
|
21
|
-
* Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call
|
|
22
|
-
*/
|
|
23
|
-
'include_phone_numbers'?: Array<string>;
|
|
24
|
-
/**
|
|
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
|
|
26
|
-
*/
|
|
27
|
-
'include_ios_tokens'?: Array<string>;
|
|
28
|
-
/**
|
|
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
|
|
30
|
-
*/
|
|
31
|
-
'include_wp_wns_uris'?: Array<string>;
|
|
32
|
-
/**
|
|
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
|
|
34
|
-
*/
|
|
35
|
-
'include_amazon_reg_ids'?: Array<string>;
|
|
36
|
-
/**
|
|
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
|
|
38
|
-
*/
|
|
39
|
-
'include_chrome_reg_ids'?: Array<string>;
|
|
40
|
-
/**
|
|
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
|
|
42
|
-
*/
|
|
43
|
-
'include_chrome_web_reg_ids'?: Array<string>;
|
|
44
|
-
/**
|
|
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
|
|
46
|
-
*/
|
|
47
|
-
'include_android_reg_ids'?: Array<string>;
|
|
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;
|
|
53
|
-
|
|
54
|
-
static readonly discriminator: string | undefined = undefined;
|
|
55
|
-
|
|
56
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
57
|
-
{
|
|
58
|
-
"name": "include_subscription_ids",
|
|
59
|
-
"baseName": "include_subscription_ids",
|
|
60
|
-
"type": "Array<string>",
|
|
61
|
-
"format": ""
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "include_email_tokens",
|
|
65
|
-
"baseName": "include_email_tokens",
|
|
66
|
-
"type": "Array<string>",
|
|
67
|
-
"format": ""
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "include_phone_numbers",
|
|
71
|
-
"baseName": "include_phone_numbers",
|
|
72
|
-
"type": "Array<string>",
|
|
73
|
-
"format": ""
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "include_ios_tokens",
|
|
77
|
-
"baseName": "include_ios_tokens",
|
|
78
|
-
"type": "Array<string>",
|
|
79
|
-
"format": ""
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "include_wp_wns_uris",
|
|
83
|
-
"baseName": "include_wp_wns_uris",
|
|
84
|
-
"type": "Array<string>",
|
|
85
|
-
"format": ""
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"name": "include_amazon_reg_ids",
|
|
89
|
-
"baseName": "include_amazon_reg_ids",
|
|
90
|
-
"type": "Array<string>",
|
|
91
|
-
"format": ""
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"name": "include_chrome_reg_ids",
|
|
95
|
-
"baseName": "include_chrome_reg_ids",
|
|
96
|
-
"type": "Array<string>",
|
|
97
|
-
"format": ""
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "include_chrome_web_reg_ids",
|
|
101
|
-
"baseName": "include_chrome_web_reg_ids",
|
|
102
|
-
"type": "Array<string>",
|
|
103
|
-
"format": ""
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "include_android_reg_ids",
|
|
107
|
-
"baseName": "include_android_reg_ids",
|
|
108
|
-
"type": "Array<string>",
|
|
109
|
-
"format": ""
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "include_aliases",
|
|
113
|
-
"baseName": "include_aliases",
|
|
114
|
-
"type": "{ [key: string]: Array<string>; }",
|
|
115
|
-
"format": ""
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"name": "target_channel",
|
|
119
|
-
"baseName": "target_channel",
|
|
120
|
-
"type": "SubscriptionNotificationTargetTargetChannelEnum",
|
|
121
|
-
"format": ""
|
|
122
|
-
} ];
|
|
123
|
-
|
|
124
|
-
static getAttributeTypeMap() {
|
|
125
|
-
return SubscriptionNotificationTarget.attributeTypeMap;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
public constructor() {
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
export type SubscriptionNotificationTargetTargetChannelEnum = "push" | "email" | "sms" ;
|
|
134
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
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: 5.2.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class TransferSubscriptionRequestBody {
|
|
12
|
-
'identity'?: { [key: string]: string; };
|
|
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]: string; }",
|
|
21
|
-
"format": ""
|
|
22
|
-
} ];
|
|
23
|
-
|
|
24
|
-
static getAttributeTypeMap() {
|
|
25
|
-
return TransferSubscriptionRequestBody.attributeTypeMap;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
public constructor() {
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -1,109 +0,0 @@
|
|
|
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: 5.2.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { LanguageStringMap } from './LanguageStringMap';
|
|
10
|
-
import { HttpFile } from '../http/http';
|
|
11
|
-
|
|
12
|
-
export class UpdateLiveActivityRequest {
|
|
13
|
-
/**
|
|
14
|
-
* An internal name to assist with your campaign organization. This does not get displayed in the message itself.
|
|
15
|
-
*/
|
|
16
|
-
'name': string;
|
|
17
|
-
'event': UpdateLiveActivityRequestEventEnum;
|
|
18
|
-
/**
|
|
19
|
-
* This must match the ContentState interface you have defined within your Live Activity in your app.
|
|
20
|
-
*/
|
|
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;
|
|
28
|
-
/**
|
|
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.
|
|
30
|
-
*/
|
|
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;
|
|
40
|
-
|
|
41
|
-
static readonly discriminator: string | undefined = undefined;
|
|
42
|
-
|
|
43
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
44
|
-
{
|
|
45
|
-
"name": "name",
|
|
46
|
-
"baseName": "name",
|
|
47
|
-
"type": "string",
|
|
48
|
-
"format": ""
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "event",
|
|
52
|
-
"baseName": "event",
|
|
53
|
-
"type": "UpdateLiveActivityRequestEventEnum",
|
|
54
|
-
"format": ""
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "event_updates",
|
|
58
|
-
"baseName": "event_updates",
|
|
59
|
-
"type": "object",
|
|
60
|
-
"format": ""
|
|
61
|
-
},
|
|
62
|
-
{
|
|
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",
|
|
95
|
-
"type": "number",
|
|
96
|
-
"format": ""
|
|
97
|
-
} ];
|
|
98
|
-
|
|
99
|
-
static getAttributeTypeMap() {
|
|
100
|
-
return UpdateLiveActivityRequest.attributeTypeMap;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
public constructor() {
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
export type UpdateLiveActivityRequestEventEnum = "update" | "end" ;
|
|
109
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
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: 5.2.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class UpdateLiveActivitySuccessResponse {
|
|
12
|
-
'id'?: string;
|
|
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": "id",
|
|
19
|
-
"baseName": "id",
|
|
20
|
-
"type": "string",
|
|
21
|
-
"format": ""
|
|
22
|
-
} ];
|
|
23
|
-
|
|
24
|
-
static getAttributeTypeMap() {
|
|
25
|
-
return UpdateLiveActivitySuccessResponse.attributeTypeMap;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
public constructor() {
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -1,47 +0,0 @@
|
|
|
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: 5.2.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PropertiesDeltas } from './PropertiesDeltas';
|
|
10
|
-
import { PropertiesObject } from './PropertiesObject';
|
|
11
|
-
import { HttpFile } from '../http/http';
|
|
12
|
-
|
|
13
|
-
export class UpdateUserRequest {
|
|
14
|
-
'properties'?: PropertiesObject;
|
|
15
|
-
'refresh_device_metadata'?: boolean;
|
|
16
|
-
'deltas'?: PropertiesDeltas;
|
|
17
|
-
|
|
18
|
-
static readonly discriminator: string | undefined = undefined;
|
|
19
|
-
|
|
20
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
21
|
-
{
|
|
22
|
-
"name": "properties",
|
|
23
|
-
"baseName": "properties",
|
|
24
|
-
"type": "PropertiesObject",
|
|
25
|
-
"format": ""
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "refresh_device_metadata",
|
|
29
|
-
"baseName": "refresh_device_metadata",
|
|
30
|
-
"type": "boolean",
|
|
31
|
-
"format": ""
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "deltas",
|
|
35
|
-
"baseName": "deltas",
|
|
36
|
-
"type": "PropertiesDeltas",
|
|
37
|
-
"format": ""
|
|
38
|
-
} ];
|
|
39
|
-
|
|
40
|
-
static getAttributeTypeMap() {
|
|
41
|
-
return UpdateUserRequest.attributeTypeMap;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
public constructor() {
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
package/models/User.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
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: 5.2.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { PropertiesObject } from './PropertiesObject';
|
|
10
|
-
import { Subscription } from './Subscription';
|
|
11
|
-
import { HttpFile } from '../http/http';
|
|
12
|
-
|
|
13
|
-
export class User {
|
|
14
|
-
'properties'?: PropertiesObject;
|
|
15
|
-
'identity'?: { [key: string]: string; };
|
|
16
|
-
'subscriptions'?: Array<Subscription>;
|
|
17
|
-
|
|
18
|
-
static readonly discriminator: string | undefined = undefined;
|
|
19
|
-
|
|
20
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
21
|
-
{
|
|
22
|
-
"name": "properties",
|
|
23
|
-
"baseName": "properties",
|
|
24
|
-
"type": "PropertiesObject",
|
|
25
|
-
"format": ""
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "identity",
|
|
29
|
-
"baseName": "identity",
|
|
30
|
-
"type": "{ [key: string]: string; }",
|
|
31
|
-
"format": ""
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "subscriptions",
|
|
35
|
-
"baseName": "subscriptions",
|
|
36
|
-
"type": "Array<Subscription>",
|
|
37
|
-
"format": ""
|
|
38
|
-
} ];
|
|
39
|
-
|
|
40
|
-
static getAttributeTypeMap() {
|
|
41
|
-
return User.attributeTypeMap;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
public constructor() {
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
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: 5.2.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class UserIdentityBody {
|
|
12
|
-
'identity'?: { [key: string]: string; };
|
|
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]: string; }",
|
|
21
|
-
"format": ""
|
|
22
|
-
} ];
|
|
23
|
-
|
|
24
|
-
static getAttributeTypeMap() {
|
|
25
|
-
return UserIdentityBody.attributeTypeMap;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
public constructor() {
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|