@onesignal/node-onesignal
Version:
OpenAPI client for @onesignal/node-onesignal
56 lines (48 loc) • 1.48 kB
text/typescript
/**
* OneSignal
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* API Version: 5.2.0
* Contact: devrel@onesignal.com
*/
import { FilterExpression } from './FilterExpression';
import { HttpFile } from '../http/http';
export class Segment {
/**
* UUID of the segment. If left empty, it will be assigned automaticaly.
*/
'id'?: string;
/**
* Name of the segment. You\'ll see this name on the Web UI.
*/
'name': string;
/**
* Filter or operators the segment will have. For a list of available filters with details, please see Send to Users Based on Filters.
*/
'filters': Array<FilterExpression>;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "id",
"baseName": "id",
"type": "string",
"format": ""
},
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
},
{
"name": "filters",
"baseName": "filters",
"type": "Array<FilterExpression>",
"format": ""
} ];
static getAttributeTypeMap() {
return Segment.attributeTypeMap;
}
public constructor() {
}
}