-
Notifications
You must be signed in to change notification settings - Fork 70
/
calendar.dto.ts
83 lines (72 loc) · 1.42 KB
/
calendar.dto.ts
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
74
75
76
77
78
79
80
81
82
83
// Copyright (c) 2023 Sourcefuse Technologies
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
import {AnyObject, model, property} from '@loopback/repository';
import {CoreModel} from '@sourceloop/core';
import {Subscription} from './subscription.model';
import {WorkingHour} from './working-hour.model';
@model()
export class CalendarDTO extends CoreModel<CalendarDTO> {
@property({
type: 'string',
id: true,
})
id?: string;
@property({
type: 'string',
})
source?: string;
@property({
type: 'boolean',
default: false,
name: 'enable_working_hours',
})
enableWorkingHours?: boolean;
@property({
type: 'string',
jsonSchema: {
maxLength: 300,
},
})
location?: string;
@property({
type: 'string',
required: true,
name: 'identifier',
jsonSchema: {
maxLength: 200,
},
})
identifier: string;
@property({
type: 'string',
jsonSchema: {
maxLength: 100,
},
})
summary?: string;
@property({
type: 'string',
jsonSchema: {
maxLength: 120,
},
})
timezone?: string;
@property({
type: 'string',
name: 'ext_id',
})
extId?: string;
@property({
type: 'object',
name: 'ext_metadata',
})
extMetadata?: AnyObject;
@property.array(WorkingHour)
workingHours?: WorkingHour[];
@property({
type: 'object',
})
subscription?: Subscription;
}