-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathCustomEvent.ts
More file actions
74 lines (67 loc) · 2.02 KB
/
Copy pathCustomEvent.ts
File metadata and controls
74 lines (67 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/**
* OneSignal
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* API Version: 5.13.0
* Contact: devrel@onesignal.com
*/
import { HttpFile } from '../http/http';
export class CustomEvent {
/**
* The identifier or name of the event. Maximum 128 characters.
*/
'name': string;
/**
* The external ID of the user targeted for the event. Either the user\'s External ID or OneSignal ID is required.
*/
'external_id'?: string;
/**
* The OneSignal ID of the user targeted for the event. Either the user\'s External ID or OneSignal ID is required.
*/
'onesignal_id'?: string;
/**
* Time the event occurred as an ISO8601 formatted string. Defaults to now if not included or past date provided.
*/
'timestamp'?: string;
/**
* Properties or data related to the event, like {\"geography\": \"USA\"}
*/
'payload'?: { [key: string]: any; };
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
},
{
"name": "external_id",
"baseName": "external_id",
"type": "string",
"format": ""
},
{
"name": "onesignal_id",
"baseName": "onesignal_id",
"type": "string",
"format": ""
},
{
"name": "timestamp",
"baseName": "timestamp",
"type": "string",
"format": "date-time"
},
{
"name": "payload",
"baseName": "payload",
"type": "{ [key: string]: any; }",
"format": ""
} ];
static getAttributeTypeMap() {
return CustomEvent.attributeTypeMap;
}
public constructor() {
}
}