/* Options: Date: 2025-05-04 23:15:28 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetInheritedSchedule.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Struct extends Map implements IConvertible { Struct(); Struct.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "Struct"; TypeContext? context = _ctx; } class Value implements IConvertible { bool? boolValue; String? stringValue; double? numberValue; List? listValue; Struct? structValue; Value({this.boolValue,this.stringValue,this.numberValue,this.listValue,this.structValue}); Value.fromJson(Map json) { fromMap(json); } fromMap(Map json) { boolValue = json['boolValue']; stringValue = json['stringValue']; numberValue = JsonConverters.toDouble(json['numberValue']); listValue = JsonConverters.fromJson(json['listValue'],'List',context!); structValue = JsonConverters.fromJson(json['structValue'],'Struct',context!); return this; } Map toJson() => { 'boolValue': boolValue, 'stringValue': stringValue, 'numberValue': numberValue, 'listValue': JsonConverters.toJson(listValue,'List',context!), 'structValue': JsonConverters.toJson(structValue,'Struct',context!) }; getTypeName() => "Value"; TypeContext? context = _ctx; } enum SimpleSchedulingRuleTypes { Always, CustomerState, Time, } enum DayOfWeek { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, } class ScheduleDay implements IConvertible { int? offset; DayOfWeek? dayOfWeek; ScheduleDay({this.offset,this.dayOfWeek}); ScheduleDay.fromJson(Map json) { fromMap(json); } fromMap(Map json) { offset = json['offset']; dayOfWeek = JsonConverters.fromJson(json['dayOfWeek'],'DayOfWeek',context!); return this; } Map toJson() => { 'offset': offset, 'dayOfWeek': JsonConverters.toJson(dayOfWeek,'DayOfWeek',context!) }; getTypeName() => "ScheduleDay"; TypeContext? context = _ctx; } enum SchedulingRuleFrequency { None, Secondly, Minutely, Hourly, Daily, Weekly, Monthly, Yearly, } class SchedulingRule implements IConvertible { String? id; String? name; int? priority; String? state; String? source; String? condition; SimpleSchedulingRuleTypes? simpleRuleType; String? customerState; String? flowId; Struct? flowParams; bool? isAllDay; String? startDate; String? startTime; String? endTime; List? bySetPosition; List? byMonth; List? byWeekNo; List? byYearDay; List? byMonthDay; List? byDay; List? byHour; List? byMinute; int? interval; int? count; String? untilDate; SchedulingRuleFrequency? frequency; SchedulingRule({this.id,this.name,this.priority,this.state,this.source,this.condition,this.simpleRuleType,this.customerState,this.flowId,this.flowParams,this.isAllDay,this.startDate,this.startTime,this.endTime,this.bySetPosition,this.byMonth,this.byWeekNo,this.byYearDay,this.byMonthDay,this.byDay,this.byHour,this.byMinute,this.interval,this.count,this.untilDate,this.frequency}); SchedulingRule.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; priority = json['priority']; state = json['state']; source = json['source']; condition = json['condition']; simpleRuleType = JsonConverters.fromJson(json['simpleRuleType'],'SimpleSchedulingRuleTypes',context!); customerState = json['customerState']; flowId = json['flowId']; flowParams = JsonConverters.fromJson(json['flowParams'],'Struct',context!); isAllDay = json['isAllDay']; startDate = json['startDate']; startTime = json['startTime']; endTime = json['endTime']; bySetPosition = JsonConverters.fromJson(json['bySetPosition'],'List',context!); byMonth = JsonConverters.fromJson(json['byMonth'],'List',context!); byWeekNo = JsonConverters.fromJson(json['byWeekNo'],'List',context!); byYearDay = JsonConverters.fromJson(json['byYearDay'],'List',context!); byMonthDay = JsonConverters.fromJson(json['byMonthDay'],'List',context!); byDay = JsonConverters.fromJson(json['byDay'],'List',context!); byHour = JsonConverters.fromJson(json['byHour'],'List',context!); byMinute = JsonConverters.fromJson(json['byMinute'],'List',context!); interval = json['interval']; count = json['count']; untilDate = json['untilDate']; frequency = JsonConverters.fromJson(json['frequency'],'SchedulingRuleFrequency',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'priority': priority, 'state': state, 'source': source, 'condition': condition, 'simpleRuleType': JsonConverters.toJson(simpleRuleType,'SimpleSchedulingRuleTypes',context!), 'customerState': customerState, 'flowId': flowId, 'flowParams': JsonConverters.toJson(flowParams,'Struct',context!), 'isAllDay': isAllDay, 'startDate': startDate, 'startTime': startTime, 'endTime': endTime, 'bySetPosition': JsonConverters.toJson(bySetPosition,'List',context!), 'byMonth': JsonConverters.toJson(byMonth,'List',context!), 'byWeekNo': JsonConverters.toJson(byWeekNo,'List',context!), 'byYearDay': JsonConverters.toJson(byYearDay,'List',context!), 'byMonthDay': JsonConverters.toJson(byMonthDay,'List',context!), 'byDay': JsonConverters.toJson(byDay,'List',context!), 'byHour': JsonConverters.toJson(byHour,'List',context!), 'byMinute': JsonConverters.toJson(byMinute,'List',context!), 'interval': interval, 'count': count, 'untilDate': untilDate, 'frequency': JsonConverters.toJson(frequency,'SchedulingRuleFrequency',context!) }; getTypeName() => "SchedulingRule"; TypeContext? context = _ctx; } class Schedule implements IConvertible { String? timeZoneId; bool? inherit; bool? forceClosed; List? rules; String? defaultState; Schedule({this.timeZoneId,this.inherit,this.forceClosed,this.rules,this.defaultState}); Schedule.fromJson(Map json) { fromMap(json); } fromMap(Map json) { timeZoneId = json['timeZoneId']; inherit = json['inherit']; forceClosed = json['forceClosed']; rules = JsonConverters.fromJson(json['rules'],'List',context!); defaultState = json['defaultState']; return this; } Map toJson() => { 'timeZoneId': timeZoneId, 'inherit': inherit, 'forceClosed': forceClosed, 'rules': JsonConverters.toJson(rules,'List',context!), 'defaultState': defaultState }; getTypeName() => "Schedule"; TypeContext? context = _ctx; } /** * Get the inherited schedule for this customer */ // @Route("/customers/{customerId}/inherited-schedule", "GET") // @Route("/endpoints/{endpointId}/inherited-schedule", "GET") // @Api(Description="Get the inherited schedule for this customer") class GetInheritedSchedule implements IReturn, IConvertible, IGet { /** * The customer ID whose inherited schedule you want to retrieve */ // @ApiMember(Description="The customer ID whose inherited schedule you want to retrieve") String? customerId; /** * The endpoint ID whose inherited schedule you want to retrieve (use this OR customer id */ // @ApiMember(Description="The endpoint ID whose inherited schedule you want to retrieve (use this OR customer id") String? endpointId; GetInheritedSchedule({this.customerId,this.endpointId}); GetInheritedSchedule.fromJson(Map json) { fromMap(json); } fromMap(Map json) { customerId = json['customerId']; endpointId = json['endpointId']; return this; } Map toJson() => { 'customerId': customerId, 'endpointId': endpointId }; createResponse() => Schedule(); getResponseTypeName() => "Schedule"; getTypeName() => "GetInheritedSchedule"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'Struct': TypeInfo(TypeOf.Class, create:() => Struct()), 'Value': TypeInfo(TypeOf.Class, create:() => Value()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SimpleSchedulingRuleTypes': TypeInfo(TypeOf.Enum, enumValues:SimpleSchedulingRuleTypes.values), 'DayOfWeek': TypeInfo(TypeOf.Enum, enumValues:DayOfWeek.values), 'ScheduleDay': TypeInfo(TypeOf.Class, create:() => ScheduleDay()), 'SchedulingRuleFrequency': TypeInfo(TypeOf.Enum, enumValues:SchedulingRuleFrequency.values), 'SchedulingRule': TypeInfo(TypeOf.Class, create:() => SchedulingRule()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Schedule': TypeInfo(TypeOf.Class, create:() => Schedule()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetInheritedSchedule': TypeInfo(TypeOf.Class, create:() => GetInheritedSchedule()), });