@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,86 +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 { DeliveryData } from './DeliveryData';
|
|
10
|
-
import { PlatformDeliveryDataEmailAllOf } from './PlatformDeliveryDataEmailAllOf';
|
|
11
|
-
import { PlatformDeliveryDataSmsAllOf } from './PlatformDeliveryDataSmsAllOf';
|
|
12
|
-
import { HttpFile } from '../http/http';
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Hash of delivery statistics broken out by target device platform.
|
|
16
|
-
*/
|
|
17
|
-
export class PlatformDeliveryData {
|
|
18
|
-
'edge_web_push'?: DeliveryData;
|
|
19
|
-
'chrome_web_push'?: DeliveryData;
|
|
20
|
-
'firefox_web_push'?: DeliveryData;
|
|
21
|
-
'safari_web_push'?: DeliveryData;
|
|
22
|
-
'android'?: DeliveryData;
|
|
23
|
-
'ios'?: DeliveryData;
|
|
24
|
-
'sms'?: DeliveryData & PlatformDeliveryDataSmsAllOf;
|
|
25
|
-
'email'?: DeliveryData & PlatformDeliveryDataEmailAllOf;
|
|
26
|
-
|
|
27
|
-
static readonly discriminator: string | undefined = undefined;
|
|
28
|
-
|
|
29
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
30
|
-
{
|
|
31
|
-
"name": "edge_web_push",
|
|
32
|
-
"baseName": "edge_web_push",
|
|
33
|
-
"type": "DeliveryData",
|
|
34
|
-
"format": ""
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "chrome_web_push",
|
|
38
|
-
"baseName": "chrome_web_push",
|
|
39
|
-
"type": "DeliveryData",
|
|
40
|
-
"format": ""
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "firefox_web_push",
|
|
44
|
-
"baseName": "firefox_web_push",
|
|
45
|
-
"type": "DeliveryData",
|
|
46
|
-
"format": ""
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "safari_web_push",
|
|
50
|
-
"baseName": "safari_web_push",
|
|
51
|
-
"type": "DeliveryData",
|
|
52
|
-
"format": ""
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "android",
|
|
56
|
-
"baseName": "android",
|
|
57
|
-
"type": "DeliveryData",
|
|
58
|
-
"format": ""
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "ios",
|
|
62
|
-
"baseName": "ios",
|
|
63
|
-
"type": "DeliveryData",
|
|
64
|
-
"format": ""
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "sms",
|
|
68
|
-
"baseName": "sms",
|
|
69
|
-
"type": "DeliveryData & PlatformDeliveryDataSmsAllOf",
|
|
70
|
-
"format": ""
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "email",
|
|
74
|
-
"baseName": "email",
|
|
75
|
-
"type": "DeliveryData & PlatformDeliveryDataEmailAllOf",
|
|
76
|
-
"format": ""
|
|
77
|
-
} ];
|
|
78
|
-
|
|
79
|
-
static getAttributeTypeMap() {
|
|
80
|
-
return PlatformDeliveryData.attributeTypeMap;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
public constructor() {
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
@@ -1,94 +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 PlatformDeliveryDataEmailAllOf {
|
|
12
|
-
/**
|
|
13
|
-
* Number of times an email has been opened.
|
|
14
|
-
*/
|
|
15
|
-
'opened'?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Number of unique recipients who have opened your email.
|
|
18
|
-
*/
|
|
19
|
-
'unique_opens'?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Number of clicked links from your email. This can include the recipient clicking email links multiple times.
|
|
22
|
-
*/
|
|
23
|
-
'clicks'?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Number of unique clicks that your recipients have made on links from your email.
|
|
26
|
-
*/
|
|
27
|
-
'unique_clicks'?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Number of recipients who registered as a hard or soft bounce and didn\'t receive your email.
|
|
30
|
-
*/
|
|
31
|
-
'bounced'?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Number of recipients who reported this email as spam.
|
|
34
|
-
*/
|
|
35
|
-
'reported_spam'?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Number of recipients who opted out of your emails using the unsubscribe link in this email.
|
|
38
|
-
*/
|
|
39
|
-
'unsubscribed'?: 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": "opened",
|
|
46
|
-
"baseName": "opened",
|
|
47
|
-
"type": "number",
|
|
48
|
-
"format": ""
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "unique_opens",
|
|
52
|
-
"baseName": "unique_opens",
|
|
53
|
-
"type": "number",
|
|
54
|
-
"format": ""
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "clicks",
|
|
58
|
-
"baseName": "clicks",
|
|
59
|
-
"type": "number",
|
|
60
|
-
"format": ""
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "unique_clicks",
|
|
64
|
-
"baseName": "unique_clicks",
|
|
65
|
-
"type": "number",
|
|
66
|
-
"format": ""
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "bounced",
|
|
70
|
-
"baseName": "bounced",
|
|
71
|
-
"type": "number",
|
|
72
|
-
"format": ""
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "reported_spam",
|
|
76
|
-
"baseName": "reported_spam",
|
|
77
|
-
"type": "number",
|
|
78
|
-
"format": ""
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"name": "unsubscribed",
|
|
82
|
-
"baseName": "unsubscribed",
|
|
83
|
-
"type": "number",
|
|
84
|
-
"format": ""
|
|
85
|
-
} ];
|
|
86
|
-
|
|
87
|
-
static getAttributeTypeMap() {
|
|
88
|
-
return PlatformDeliveryDataEmailAllOf.attributeTypeMap;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
public constructor() {
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
@@ -1,54 +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 PlatformDeliveryDataSmsAllOf {
|
|
12
|
-
/**
|
|
13
|
-
* Number of messages reported as delivered successfully by the SMS service provider.
|
|
14
|
-
*/
|
|
15
|
-
'provider_successful'?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Number of recipients who didn\'t receive your message as reported by the SMS service provider.
|
|
18
|
-
*/
|
|
19
|
-
'provider_failed'?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Number of errors reported by the SMS service provider.
|
|
22
|
-
*/
|
|
23
|
-
'provider_errored'?: number;
|
|
24
|
-
|
|
25
|
-
static readonly discriminator: string | undefined = undefined;
|
|
26
|
-
|
|
27
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
28
|
-
{
|
|
29
|
-
"name": "provider_successful",
|
|
30
|
-
"baseName": "provider_successful",
|
|
31
|
-
"type": "number",
|
|
32
|
-
"format": ""
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "provider_failed",
|
|
36
|
-
"baseName": "provider_failed",
|
|
37
|
-
"type": "number",
|
|
38
|
-
"format": ""
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "provider_errored",
|
|
42
|
-
"baseName": "provider_errored",
|
|
43
|
-
"type": "number",
|
|
44
|
-
"format": ""
|
|
45
|
-
} ];
|
|
46
|
-
|
|
47
|
-
static getAttributeTypeMap() {
|
|
48
|
-
return PlatformDeliveryDataSmsAllOf.attributeTypeMap;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
public constructor() {
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
package/models/PropertiesBody.ts
DELETED
|
@@ -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 { PropertiesObject } from './PropertiesObject';
|
|
10
|
-
import { HttpFile } from '../http/http';
|
|
11
|
-
|
|
12
|
-
export class PropertiesBody {
|
|
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 PropertiesBody.attributeTypeMap;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public constructor() {
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
@@ -1,46 +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 { Purchase } from './Purchase';
|
|
10
|
-
import { HttpFile } from '../http/http';
|
|
11
|
-
|
|
12
|
-
export class PropertiesDeltas {
|
|
13
|
-
'session_time'?: number;
|
|
14
|
-
'session_count'?: number;
|
|
15
|
-
'purchases'?: Array<Purchase>;
|
|
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": "session_time",
|
|
22
|
-
"baseName": "session_time",
|
|
23
|
-
"type": "number",
|
|
24
|
-
"format": ""
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "session_count",
|
|
28
|
-
"baseName": "session_count",
|
|
29
|
-
"type": "number",
|
|
30
|
-
"format": ""
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "purchases",
|
|
34
|
-
"baseName": "purchases",
|
|
35
|
-
"type": "Array<Purchase>",
|
|
36
|
-
"format": ""
|
|
37
|
-
} ];
|
|
38
|
-
|
|
39
|
-
static getAttributeTypeMap() {
|
|
40
|
-
return PropertiesDeltas.attributeTypeMap;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
public constructor() {
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
@@ -1,102 +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 { Purchase } from './Purchase';
|
|
10
|
-
import { HttpFile } from '../http/http';
|
|
11
|
-
|
|
12
|
-
export class PropertiesObject {
|
|
13
|
-
'tags'?: { [key: string]: any; };
|
|
14
|
-
'language'?: string;
|
|
15
|
-
'timezone_id'?: string;
|
|
16
|
-
'lat'?: number;
|
|
17
|
-
'long'?: number;
|
|
18
|
-
'country'?: string;
|
|
19
|
-
'first_active'?: number;
|
|
20
|
-
'last_active'?: number;
|
|
21
|
-
'amount_spent'?: number;
|
|
22
|
-
'purchases'?: Array<Purchase>;
|
|
23
|
-
'ip'?: string;
|
|
24
|
-
|
|
25
|
-
static readonly discriminator: string | undefined = undefined;
|
|
26
|
-
|
|
27
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
28
|
-
{
|
|
29
|
-
"name": "tags",
|
|
30
|
-
"baseName": "tags",
|
|
31
|
-
"type": "{ [key: string]: any; }",
|
|
32
|
-
"format": ""
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "language",
|
|
36
|
-
"baseName": "language",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"format": ""
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "timezone_id",
|
|
42
|
-
"baseName": "timezone_id",
|
|
43
|
-
"type": "string",
|
|
44
|
-
"format": ""
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "lat",
|
|
48
|
-
"baseName": "lat",
|
|
49
|
-
"type": "number",
|
|
50
|
-
"format": ""
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "long",
|
|
54
|
-
"baseName": "long",
|
|
55
|
-
"type": "number",
|
|
56
|
-
"format": ""
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "country",
|
|
60
|
-
"baseName": "country",
|
|
61
|
-
"type": "string",
|
|
62
|
-
"format": ""
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "first_active",
|
|
66
|
-
"baseName": "first_active",
|
|
67
|
-
"type": "number",
|
|
68
|
-
"format": ""
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "last_active",
|
|
72
|
-
"baseName": "last_active",
|
|
73
|
-
"type": "number",
|
|
74
|
-
"format": ""
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"name": "amount_spent",
|
|
78
|
-
"baseName": "amount_spent",
|
|
79
|
-
"type": "number",
|
|
80
|
-
"format": ""
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "purchases",
|
|
84
|
-
"baseName": "purchases",
|
|
85
|
-
"type": "Array<Purchase>",
|
|
86
|
-
"format": ""
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"name": "ip",
|
|
90
|
-
"baseName": "ip",
|
|
91
|
-
"type": "string",
|
|
92
|
-
"format": ""
|
|
93
|
-
} ];
|
|
94
|
-
|
|
95
|
-
static getAttributeTypeMap() {
|
|
96
|
-
return PropertiesObject.attributeTypeMap;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
public constructor() {
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
package/models/Purchase.ts
DELETED
|
@@ -1,61 +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 Purchase {
|
|
12
|
-
/**
|
|
13
|
-
* The unique identifier of the purchased item.
|
|
14
|
-
*/
|
|
15
|
-
'sku': string;
|
|
16
|
-
/**
|
|
17
|
-
* The amount, in USD, spent purchasing the item.
|
|
18
|
-
*/
|
|
19
|
-
'amount': string;
|
|
20
|
-
/**
|
|
21
|
-
* The 3-letter ISO 4217 currency code. Required for correct storage and conversion of amount.
|
|
22
|
-
*/
|
|
23
|
-
'iso': string;
|
|
24
|
-
'count'?: number;
|
|
25
|
-
|
|
26
|
-
static readonly discriminator: string | undefined = undefined;
|
|
27
|
-
|
|
28
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
29
|
-
{
|
|
30
|
-
"name": "sku",
|
|
31
|
-
"baseName": "sku",
|
|
32
|
-
"type": "string",
|
|
33
|
-
"format": ""
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "amount",
|
|
37
|
-
"baseName": "amount",
|
|
38
|
-
"type": "string",
|
|
39
|
-
"format": ""
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"name": "iso",
|
|
43
|
-
"baseName": "iso",
|
|
44
|
-
"type": "string",
|
|
45
|
-
"format": ""
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "count",
|
|
49
|
-
"baseName": "count",
|
|
50
|
-
"type": "number",
|
|
51
|
-
"format": ""
|
|
52
|
-
} ];
|
|
53
|
-
|
|
54
|
-
static getAttributeTypeMap() {
|
|
55
|
-
return Purchase.attributeTypeMap;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
public constructor() {
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
package/models/RateLimitError.ts
DELETED
|
@@ -1,38 +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 RateLimitError {
|
|
12
|
-
'errors'?: Array<string>;
|
|
13
|
-
'limit'?: 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": "errors",
|
|
20
|
-
"baseName": "errors",
|
|
21
|
-
"type": "Array<string>",
|
|
22
|
-
"format": ""
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "limit",
|
|
26
|
-
"baseName": "limit",
|
|
27
|
-
"type": "string",
|
|
28
|
-
"format": ""
|
|
29
|
-
} ];
|
|
30
|
-
|
|
31
|
-
static getAttributeTypeMap() {
|
|
32
|
-
return RateLimitError.attributeTypeMap;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
public constructor() {
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
package/models/Segment.ts
DELETED
|
@@ -1,55 +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 { FilterExpression } from './FilterExpression';
|
|
10
|
-
import { HttpFile } from '../http/http';
|
|
11
|
-
|
|
12
|
-
export class Segment {
|
|
13
|
-
/**
|
|
14
|
-
* UUID of the segment. If left empty, it will be assigned automaticaly.
|
|
15
|
-
*/
|
|
16
|
-
'id'?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Name of the segment. You\'ll see this name on the Web UI.
|
|
19
|
-
*/
|
|
20
|
-
'name': string;
|
|
21
|
-
/**
|
|
22
|
-
* Filter or operators the segment will have. For a list of available filters with details, please see Send to Users Based on Filters.
|
|
23
|
-
*/
|
|
24
|
-
'filters': Array<FilterExpression>;
|
|
25
|
-
|
|
26
|
-
static readonly discriminator: string | undefined = undefined;
|
|
27
|
-
|
|
28
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
29
|
-
{
|
|
30
|
-
"name": "id",
|
|
31
|
-
"baseName": "id",
|
|
32
|
-
"type": "string",
|
|
33
|
-
"format": ""
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "name",
|
|
37
|
-
"baseName": "name",
|
|
38
|
-
"type": "string",
|
|
39
|
-
"format": ""
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"name": "filters",
|
|
43
|
-
"baseName": "filters",
|
|
44
|
-
"type": "Array<FilterExpression>",
|
|
45
|
-
"format": ""
|
|
46
|
-
} ];
|
|
47
|
-
|
|
48
|
-
static getAttributeTypeMap() {
|
|
49
|
-
return Segment.attributeTypeMap;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
public constructor() {
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
package/models/SegmentData.ts
DELETED
|
@@ -1,94 +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 SegmentData {
|
|
12
|
-
/**
|
|
13
|
-
* The segment ID
|
|
14
|
-
*/
|
|
15
|
-
'id'?: string;
|
|
16
|
-
/**
|
|
17
|
-
* The segment name
|
|
18
|
-
*/
|
|
19
|
-
'name'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Date segment created
|
|
22
|
-
*/
|
|
23
|
-
'created_at'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Date segment last updated
|
|
26
|
-
*/
|
|
27
|
-
'updated_at'?: string;
|
|
28
|
-
/**
|
|
29
|
-
* The app id
|
|
30
|
-
*/
|
|
31
|
-
'app_id'?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Is the segment read only?
|
|
34
|
-
*/
|
|
35
|
-
'read_only'?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Is the segment active?
|
|
38
|
-
*/
|
|
39
|
-
'is_active'?: boolean;
|
|
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": "id",
|
|
46
|
-
"baseName": "id",
|
|
47
|
-
"type": "string",
|
|
48
|
-
"format": ""
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "name",
|
|
52
|
-
"baseName": "name",
|
|
53
|
-
"type": "string",
|
|
54
|
-
"format": ""
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "created_at",
|
|
58
|
-
"baseName": "created_at",
|
|
59
|
-
"type": "string",
|
|
60
|
-
"format": ""
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "updated_at",
|
|
64
|
-
"baseName": "updated_at",
|
|
65
|
-
"type": "string",
|
|
66
|
-
"format": ""
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "app_id",
|
|
70
|
-
"baseName": "app_id",
|
|
71
|
-
"type": "string",
|
|
72
|
-
"format": ""
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "read_only",
|
|
76
|
-
"baseName": "read_only",
|
|
77
|
-
"type": "boolean",
|
|
78
|
-
"format": ""
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"name": "is_active",
|
|
82
|
-
"baseName": "is_active",
|
|
83
|
-
"type": "boolean",
|
|
84
|
-
"format": ""
|
|
85
|
-
} ];
|
|
86
|
-
|
|
87
|
-
static getAttributeTypeMap() {
|
|
88
|
-
return SegmentData.attributeTypeMap;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
public constructor() {
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|