Constraint.ts•2.88 kB
/**
* api
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.47.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpFile } from '../http/http';
export class Constraint {
'id'?: string;
'segmentKey'?: string;
'type'?: ConstraintTypeEnum;
'property'?: string;
'operator'?: string;
'value'?: string;
'createdAt'?: Date;
'updatedAt'?: Date;
'namespaceKey'?: string;
'description'?: string;
static readonly discriminator: string | undefined = undefined;
static readonly mapping: {[index: string]: string} | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "id",
"baseName": "id",
"type": "string",
"format": ""
},
{
"name": "segmentKey",
"baseName": "segmentKey",
"type": "string",
"format": ""
},
{
"name": "type",
"baseName": "type",
"type": "ConstraintTypeEnum",
"format": "enum"
},
{
"name": "property",
"baseName": "property",
"type": "string",
"format": ""
},
{
"name": "operator",
"baseName": "operator",
"type": "string",
"format": ""
},
{
"name": "value",
"baseName": "value",
"type": "string",
"format": ""
},
{
"name": "createdAt",
"baseName": "createdAt",
"type": "Date",
"format": "date-time"
},
{
"name": "updatedAt",
"baseName": "updatedAt",
"type": "Date",
"format": "date-time"
},
{
"name": "namespaceKey",
"baseName": "namespaceKey",
"type": "string",
"format": ""
},
{
"name": "description",
"baseName": "description",
"type": "string",
"format": ""
} ];
static getAttributeTypeMap() {
return Constraint.attributeTypeMap;
}
public constructor() {
}
}
export enum ConstraintTypeEnum {
UnknownComparisonType = 'UNKNOWN_COMPARISON_TYPE',
StringComparisonType = 'STRING_COMPARISON_TYPE',
NumberComparisonType = 'NUMBER_COMPARISON_TYPE',
BooleanComparisonType = 'BOOLEAN_COMPARISON_TYPE',
DatetimeComparisonType = 'DATETIME_COMPARISON_TYPE',
EntityIdComparisonType = 'ENTITY_ID_COMPARISON_TYPE'
}