@onesignal/node-onesignal 5.3.0-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.js +44 -44
- 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 -3293
- package/RELEASE_INSTRUCTIONS.md +0 -2
- package/apis/DefaultApi.ts +0 -4673
- 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/ApiKeyToken.js.map +0 -1
- package/dist/models/ApiKeyTokensListResponse.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/CopyTemplateRequest.js.map +0 -1
- package/dist/models/CreateApiKeyRequest.js.map +0 -1
- package/dist/models/CreateApiKeyResponse.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/CreateTemplateRequest.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/CustomEvent.js.map +0 -1
- package/dist/models/CustomEventsRequest.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/StartLiveActivityRequest.js.map +0 -1
- package/dist/models/StartLiveActivitySuccessResponse.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/TemplateResource.js.map +0 -1
- package/dist/models/TemplatesListResponse.js.map +0 -1
- package/dist/models/TransferSubscriptionRequestBody.js.map +0 -1
- package/dist/models/UpdateApiKeyRequest.js.map +0 -1
- package/dist/models/UpdateLiveActivityRequest.js.map +0 -1
- package/dist/models/UpdateLiveActivitySuccessResponse.js.map +0 -1
- package/dist/models/UpdateTemplateRequest.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/ApiKeyToken.ts +0 -69
- package/models/ApiKeyTokensListResponse.ts +0 -32
- 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/CopyTemplateRequest.ts +0 -34
- package/models/CreateApiKeyRequest.ts +0 -48
- package/models/CreateApiKeyResponse.ts +0 -38
- package/models/CreateNotificationSuccessResponse.ts +0 -48
- package/models/CreateSegmentConflictResponse.ts +0 -38
- package/models/CreateSegmentSuccessResponse.ts +0 -41
- package/models/CreateTemplateRequest.ts +0 -102
- package/models/CreateUserConflictResponse.ts +0 -32
- package/models/CreateUserConflictResponseErrorsInner.ts +0 -46
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +0 -31
- package/models/CustomEvent.ts +0 -74
- package/models/CustomEventsRequest.ts +0 -32
- 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 -1206
- package/models/NotificationWithMetaAllOf.ts +0 -142
- package/models/ObjectSerializer.ts +0 -442
- 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/StartLiveActivityRequest.ts +0 -177
- package/models/StartLiveActivitySuccessResponse.ts +0 -31
- package/models/Subscription.ts +0 -146
- package/models/SubscriptionBody.ts +0 -32
- package/models/SubscriptionNotificationTarget.ts +0 -134
- package/models/TemplateResource.ts +0 -72
- package/models/TemplatesListResponse.ts +0 -32
- package/models/TransferSubscriptionRequestBody.ts +0 -31
- package/models/UpdateApiKeyRequest.ts +0 -48
- package/models/UpdateLiveActivityRequest.ts +0 -109
- package/models/UpdateLiveActivitySuccessResponse.ts +0 -31
- package/models/UpdateTemplateRequest.ts +0 -92
- 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 -67
- package/onesignal-node-onesignal-5.3.0-beta1.tgz +0 -0
- package/rxjsStub.ts +0 -27
- package/servers.ts +0 -53
- package/tsconfig.json +0 -28
- package/types/ObjectParamAPI.ts +0 -1270
- package/types/ObservableAPI.ts +0 -1201
- package/types/PromiseAPI.ts +0 -585
- package/util.ts +0 -37
package/models/DeliveryData.ts
DELETED
|
@@ -1,74 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class DeliveryData {
|
|
12
|
-
/**
|
|
13
|
-
* Number of messages delivered to push servers, mobile carriers, or email service providers.
|
|
14
|
-
*/
|
|
15
|
-
'successful'?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Number of messages sent to unsubscribed devices.
|
|
18
|
-
*/
|
|
19
|
-
'failed'?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Number of errors reported.
|
|
22
|
-
*/
|
|
23
|
-
'errored'?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Number of messages that were clicked.
|
|
26
|
-
*/
|
|
27
|
-
'converted'?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Number of devices that received the message.
|
|
30
|
-
*/
|
|
31
|
-
'received'?: number;
|
|
32
|
-
|
|
33
|
-
static readonly discriminator: string | undefined = undefined;
|
|
34
|
-
|
|
35
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
36
|
-
{
|
|
37
|
-
"name": "successful",
|
|
38
|
-
"baseName": "successful",
|
|
39
|
-
"type": "number",
|
|
40
|
-
"format": ""
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "failed",
|
|
44
|
-
"baseName": "failed",
|
|
45
|
-
"type": "number",
|
|
46
|
-
"format": ""
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "errored",
|
|
50
|
-
"baseName": "errored",
|
|
51
|
-
"type": "number",
|
|
52
|
-
"format": ""
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "converted",
|
|
56
|
-
"baseName": "converted",
|
|
57
|
-
"type": "number",
|
|
58
|
-
"format": ""
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "received",
|
|
62
|
-
"baseName": "received",
|
|
63
|
-
"type": "number",
|
|
64
|
-
"format": ""
|
|
65
|
-
} ];
|
|
66
|
-
|
|
67
|
-
static getAttributeTypeMap() {
|
|
68
|
-
return DeliveryData.attributeTypeMap;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
public constructor() {
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
@@ -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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class ExportEventsSuccessResponse {
|
|
12
|
-
'csv_file_url'?: 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": "csv_file_url",
|
|
19
|
-
"baseName": "csv_file_url",
|
|
20
|
-
"type": "string",
|
|
21
|
-
"format": ""
|
|
22
|
-
} ];
|
|
23
|
-
|
|
24
|
-
static getAttributeTypeMap() {
|
|
25
|
-
return ExportEventsSuccessResponse.attributeTypeMap;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
public constructor() {
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class ExportSubscriptionsRequestBody {
|
|
12
|
-
/**
|
|
13
|
-
* Additional fields that you wish to include. Currently supports location, country, rooted, notification_types, ip, external_user_id, web_auth, and web_p256.
|
|
14
|
-
*/
|
|
15
|
-
'extra_fields'?: Array<string>;
|
|
16
|
-
/**
|
|
17
|
-
* Export all devices with a last_active timestamp greater than this time. Unixtime in seconds.
|
|
18
|
-
*/
|
|
19
|
-
'last_active_since'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Export all devices belonging to the segment.
|
|
22
|
-
*/
|
|
23
|
-
'segment_name'?: 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": "extra_fields",
|
|
30
|
-
"baseName": "extra_fields",
|
|
31
|
-
"type": "Array<string>",
|
|
32
|
-
"format": ""
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "last_active_since",
|
|
36
|
-
"baseName": "last_active_since",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"format": ""
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "segment_name",
|
|
42
|
-
"baseName": "segment_name",
|
|
43
|
-
"type": "string",
|
|
44
|
-
"format": ""
|
|
45
|
-
} ];
|
|
46
|
-
|
|
47
|
-
static getAttributeTypeMap() {
|
|
48
|
-
return ExportSubscriptionsRequestBody.attributeTypeMap;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
public constructor() {
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
@@ -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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class ExportSubscriptionsSuccessResponse {
|
|
12
|
-
'csv_file_url'?: 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": "csv_file_url",
|
|
19
|
-
"baseName": "csv_file_url",
|
|
20
|
-
"type": "string",
|
|
21
|
-
"format": ""
|
|
22
|
-
} ];
|
|
23
|
-
|
|
24
|
-
static getAttributeTypeMap() {
|
|
25
|
-
return ExportSubscriptionsSuccessResponse.attributeTypeMap;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
public constructor() {
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
package/models/Filter.ts
DELETED
|
@@ -1,107 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class Filter {
|
|
12
|
-
/**
|
|
13
|
-
* Required. Name of the field to use as the first operand in the filter expression.
|
|
14
|
-
*/
|
|
15
|
-
'field'?: string;
|
|
16
|
-
/**
|
|
17
|
-
* If `field` is `tag`, this field is *required* to specify `key` inside the tags.
|
|
18
|
-
*/
|
|
19
|
-
'key'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.
|
|
22
|
-
*/
|
|
23
|
-
'value'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* If `field` is session-related, this is *required* to specify the number of hours before or after the user\'s session.
|
|
26
|
-
*/
|
|
27
|
-
'hours_ago'?: string;
|
|
28
|
-
/**
|
|
29
|
-
* If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`.
|
|
30
|
-
*/
|
|
31
|
-
'radius'?: number;
|
|
32
|
-
/**
|
|
33
|
-
* If `field` is `location`, this is *required* to specify the user\'s latitude.
|
|
34
|
-
*/
|
|
35
|
-
'lat'?: number;
|
|
36
|
-
/**
|
|
37
|
-
* If `field` is `location`, this is *required* to specify the user\'s longitude.
|
|
38
|
-
*/
|
|
39
|
-
'long'?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Required. Operator of a filter expression.
|
|
42
|
-
*/
|
|
43
|
-
'relation'?: FilterRelationEnum;
|
|
44
|
-
|
|
45
|
-
static readonly discriminator: string | undefined = undefined;
|
|
46
|
-
|
|
47
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
48
|
-
{
|
|
49
|
-
"name": "field",
|
|
50
|
-
"baseName": "field",
|
|
51
|
-
"type": "string",
|
|
52
|
-
"format": ""
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "key",
|
|
56
|
-
"baseName": "key",
|
|
57
|
-
"type": "string",
|
|
58
|
-
"format": ""
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "value",
|
|
62
|
-
"baseName": "value",
|
|
63
|
-
"type": "string",
|
|
64
|
-
"format": ""
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "hours_ago",
|
|
68
|
-
"baseName": "hours_ago",
|
|
69
|
-
"type": "string",
|
|
70
|
-
"format": ""
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "radius",
|
|
74
|
-
"baseName": "radius",
|
|
75
|
-
"type": "number",
|
|
76
|
-
"format": ""
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "lat",
|
|
80
|
-
"baseName": "lat",
|
|
81
|
-
"type": "number",
|
|
82
|
-
"format": ""
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "long",
|
|
86
|
-
"baseName": "long",
|
|
87
|
-
"type": "number",
|
|
88
|
-
"format": ""
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "relation",
|
|
92
|
-
"baseName": "relation",
|
|
93
|
-
"type": "FilterRelationEnum",
|
|
94
|
-
"format": ""
|
|
95
|
-
} ];
|
|
96
|
-
|
|
97
|
-
static getAttributeTypeMap() {
|
|
98
|
-
return Filter.attributeTypeMap;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
public constructor() {
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
export type FilterRelationEnum = ">" | "<" | "=" | "!=" | "exists" | "not_exists" | "time_elapsed_gt" | "time_elapsed_lt" ;
|
|
107
|
-
|
|
@@ -1,120 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { Filter } from './Filter';
|
|
10
|
-
import { Operator } from './Operator';
|
|
11
|
-
import { HttpFile } from '../http/http';
|
|
12
|
-
|
|
13
|
-
export class FilterExpression {
|
|
14
|
-
/**
|
|
15
|
-
* Required. Name of the field to use as the first operand in the filter expression.
|
|
16
|
-
*/
|
|
17
|
-
'field'?: string;
|
|
18
|
-
/**
|
|
19
|
-
* If `field` is `tag`, this field is *required* to specify `key` inside the tags.
|
|
20
|
-
*/
|
|
21
|
-
'key'?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.
|
|
24
|
-
*/
|
|
25
|
-
'value'?: string;
|
|
26
|
-
/**
|
|
27
|
-
* If `field` is session-related, this is *required* to specify the number of hours before or after the user\'s session.
|
|
28
|
-
*/
|
|
29
|
-
'hours_ago'?: string;
|
|
30
|
-
/**
|
|
31
|
-
* If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`.
|
|
32
|
-
*/
|
|
33
|
-
'radius'?: number;
|
|
34
|
-
/**
|
|
35
|
-
* If `field` is `location`, this is *required* to specify the user\'s latitude.
|
|
36
|
-
*/
|
|
37
|
-
'lat'?: number;
|
|
38
|
-
/**
|
|
39
|
-
* If `field` is `location`, this is *required* to specify the user\'s longitude.
|
|
40
|
-
*/
|
|
41
|
-
'long'?: number;
|
|
42
|
-
/**
|
|
43
|
-
* Required. Operator of a filter expression.
|
|
44
|
-
*/
|
|
45
|
-
'relation'?: FilterExpressionRelationEnum;
|
|
46
|
-
/**
|
|
47
|
-
* Strictly, this must be either `\"OR\"`, or `\"AND\"`. It can be used to compose Filters as part of a Filters object.
|
|
48
|
-
*/
|
|
49
|
-
'operator'?: FilterExpressionOperatorEnum;
|
|
50
|
-
|
|
51
|
-
static readonly discriminator: string | undefined = undefined;
|
|
52
|
-
|
|
53
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
54
|
-
{
|
|
55
|
-
"name": "field",
|
|
56
|
-
"baseName": "field",
|
|
57
|
-
"type": "string",
|
|
58
|
-
"format": ""
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "key",
|
|
62
|
-
"baseName": "key",
|
|
63
|
-
"type": "string",
|
|
64
|
-
"format": ""
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "value",
|
|
68
|
-
"baseName": "value",
|
|
69
|
-
"type": "string",
|
|
70
|
-
"format": ""
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "hours_ago",
|
|
74
|
-
"baseName": "hours_ago",
|
|
75
|
-
"type": "string",
|
|
76
|
-
"format": ""
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "radius",
|
|
80
|
-
"baseName": "radius",
|
|
81
|
-
"type": "number",
|
|
82
|
-
"format": ""
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "lat",
|
|
86
|
-
"baseName": "lat",
|
|
87
|
-
"type": "number",
|
|
88
|
-
"format": ""
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "long",
|
|
92
|
-
"baseName": "long",
|
|
93
|
-
"type": "number",
|
|
94
|
-
"format": ""
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"name": "relation",
|
|
98
|
-
"baseName": "relation",
|
|
99
|
-
"type": "FilterExpressionRelationEnum",
|
|
100
|
-
"format": ""
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"name": "operator",
|
|
104
|
-
"baseName": "operator",
|
|
105
|
-
"type": "FilterExpressionOperatorEnum",
|
|
106
|
-
"format": ""
|
|
107
|
-
} ];
|
|
108
|
-
|
|
109
|
-
static getAttributeTypeMap() {
|
|
110
|
-
return FilterExpression.attributeTypeMap;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
public constructor() {
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
export type FilterExpressionRelationEnum = ">" | "<" | "=" | "!=" | "exists" | "not_exists" | "time_elapsed_gt" | "time_elapsed_lt" ;
|
|
119
|
-
export type FilterExpressionOperatorEnum = "OR" | "AND" ;
|
|
120
|
-
|
package/models/GenericError.ts
DELETED
|
@@ -1,45 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class GenericError {
|
|
12
|
-
'errors'?: any;
|
|
13
|
-
'success'?: boolean;
|
|
14
|
-
'reference'?: any;
|
|
15
|
-
|
|
16
|
-
static readonly discriminator: string | undefined = undefined;
|
|
17
|
-
|
|
18
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
19
|
-
{
|
|
20
|
-
"name": "errors",
|
|
21
|
-
"baseName": "errors",
|
|
22
|
-
"type": "any",
|
|
23
|
-
"format": ""
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "success",
|
|
27
|
-
"baseName": "success",
|
|
28
|
-
"type": "boolean",
|
|
29
|
-
"format": ""
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "reference",
|
|
33
|
-
"baseName": "reference",
|
|
34
|
-
"type": "any",
|
|
35
|
-
"format": ""
|
|
36
|
-
} ];
|
|
37
|
-
|
|
38
|
-
static getAttributeTypeMap() {
|
|
39
|
-
return GenericError.attributeTypeMap;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
public constructor() {
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
@@ -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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class GenericSuccessBoolResponse {
|
|
12
|
-
'success'?: boolean;
|
|
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": "success",
|
|
19
|
-
"baseName": "success",
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"format": ""
|
|
22
|
-
} ];
|
|
23
|
-
|
|
24
|
-
static getAttributeTypeMap() {
|
|
25
|
-
return GenericSuccessBoolResponse.attributeTypeMap;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
public constructor() {
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class GetNotificationHistoryRequestBody {
|
|
12
|
-
/**
|
|
13
|
-
* -> \"sent\" - All the devices by player_id that were sent the specified notification_id. Notifications targeting under 1000 recipients will not have \"sent\" events recorded, but will show \"clicked\" events. \"clicked\" - All the devices by `player_id` that clicked the specified notification_id.
|
|
14
|
-
*/
|
|
15
|
-
'events'?: GetNotificationHistoryRequestBodyEventsEnum;
|
|
16
|
-
/**
|
|
17
|
-
* The email address you would like the report sent.
|
|
18
|
-
*/
|
|
19
|
-
'email'?: string;
|
|
20
|
-
'app_id'?: string;
|
|
21
|
-
|
|
22
|
-
static readonly discriminator: string | undefined = undefined;
|
|
23
|
-
|
|
24
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
25
|
-
{
|
|
26
|
-
"name": "events",
|
|
27
|
-
"baseName": "events",
|
|
28
|
-
"type": "GetNotificationHistoryRequestBodyEventsEnum",
|
|
29
|
-
"format": ""
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "email",
|
|
33
|
-
"baseName": "email",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"format": ""
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "app_id",
|
|
39
|
-
"baseName": "app_id",
|
|
40
|
-
"type": "string",
|
|
41
|
-
"format": ""
|
|
42
|
-
} ];
|
|
43
|
-
|
|
44
|
-
static getAttributeTypeMap() {
|
|
45
|
-
return GetNotificationHistoryRequestBody.attributeTypeMap;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
public constructor() {
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export type GetNotificationHistoryRequestBodyEventsEnum = "sent" | "clicked" ;
|
|
54
|
-
|
|
@@ -1,65 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { SegmentData } from './SegmentData';
|
|
10
|
-
import { HttpFile } from '../http/http';
|
|
11
|
-
|
|
12
|
-
export class GetSegmentsSuccessResponse {
|
|
13
|
-
/**
|
|
14
|
-
* The number of Segments in the response.
|
|
15
|
-
*/
|
|
16
|
-
'total_count'?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Set with the offset query parameter. Default 0.
|
|
19
|
-
*/
|
|
20
|
-
'offset'?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Maximum number of Segments returned. Default 300.
|
|
23
|
-
*/
|
|
24
|
-
'limit'?: number;
|
|
25
|
-
/**
|
|
26
|
-
* An array containing the Segment information.
|
|
27
|
-
*/
|
|
28
|
-
'segments'?: Array<SegmentData>;
|
|
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": "total_count",
|
|
35
|
-
"baseName": "total_count",
|
|
36
|
-
"type": "number",
|
|
37
|
-
"format": ""
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "offset",
|
|
41
|
-
"baseName": "offset",
|
|
42
|
-
"type": "number",
|
|
43
|
-
"format": ""
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "limit",
|
|
47
|
-
"baseName": "limit",
|
|
48
|
-
"type": "number",
|
|
49
|
-
"format": ""
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "segments",
|
|
53
|
-
"baseName": "segments",
|
|
54
|
-
"type": "Array<SegmentData>",
|
|
55
|
-
"format": ""
|
|
56
|
-
} ];
|
|
57
|
-
|
|
58
|
-
static getAttributeTypeMap() {
|
|
59
|
-
return GetSegmentsSuccessResponse.attributeTypeMap;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
public constructor() {
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|