@flusys/nestjs-event-manager 7.1.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapters/event-manager.adapter.d.ts +2 -2
- package/adapters/index.d.ts +1 -1
- package/config/index.d.ts +3 -3
- package/controllers/event.controller.d.ts +3 -3
- package/controllers/index.d.ts +1 -1
- package/docs/event-manager-swagger.config.d.ts +2 -2
- package/docs/index.d.ts +1 -1
- package/dtos/calendar-query.dto.d.ts +1 -1
- package/dtos/event.dto.d.ts +1 -1
- package/dtos/index.d.ts +3 -3
- package/entities/event-with-company.entity.d.ts +1 -1
- package/entities/index.d.ts +8 -8
- package/fesm/477.js +1798 -0
- package/fesm/833.js +840 -0
- package/fesm/adapters/index.js +884 -1
- package/fesm/config/index.js +87 -3
- package/fesm/controllers/index.js +365 -1
- package/fesm/docs/index.js +155 -2
- package/fesm/dtos/index.js +720 -3
- package/fesm/entities/index.js +350 -11
- package/fesm/index.js +121 -9
- package/fesm/interfaces/index.js +16 -2
- package/fesm/modules/index.js +13 -1
- package/fesm/runtime.js +85 -0
- package/fesm/services/index.js +272 -4
- package/index.d.ts +9 -9
- package/interfaces/event-manager-module.interface.d.ts +3 -3
- package/interfaces/event.interface.d.ts +1 -1
- package/interfaces/index.d.ts +2 -2
- package/modules/event-manager.module.d.ts +2 -2
- package/modules/index.d.ts +1 -1
- package/package.json +29 -39
- package/services/event-manager-config.service.d.ts +3 -3
- package/services/event-manager-datasource.provider.d.ts +3 -3
- package/services/event-manager-helper.service.d.ts +3 -3
- package/services/event.service.d.ts +7 -7
- package/services/index.d.ts +4 -4
- package/cjs/adapters/event-manager.adapter.js +0 -65
- package/cjs/adapters/event-manager.adapter.spec.js +0 -104
- package/cjs/adapters/index.js +0 -18
- package/cjs/config/event-actions.js +0 -31
- package/cjs/config/event-manager.constants.js +0 -13
- package/cjs/config/index.js +0 -20
- package/cjs/config/message-keys.js +0 -27
- package/cjs/controllers/event.controller.js +0 -190
- package/cjs/controllers/event.controller.spec.js +0 -156
- package/cjs/controllers/index.js +0 -18
- package/cjs/docs/event-manager-swagger.config.js +0 -125
- package/cjs/docs/event-manager-swagger.config.spec.js +0 -65
- package/cjs/docs/index.js +0 -21
- package/cjs/dtos/calendar-query.dto.js +0 -212
- package/cjs/dtos/event-participant.dto.js +0 -181
- package/cjs/dtos/event.dto.js +0 -343
- package/cjs/dtos/index.js +0 -20
- package/cjs/entities/event-participant.entity.js +0 -89
- package/cjs/entities/event-with-company.entity.js +0 -56
- package/cjs/entities/event.entity.js +0 -156
- package/cjs/entities/index.js +0 -55
- package/cjs/entities/index.spec.js +0 -18
- package/cjs/index.js +0 -27
- package/cjs/interfaces/event-manager-module.interface.js +0 -4
- package/cjs/interfaces/event.interface.js +0 -4
- package/cjs/interfaces/index.js +0 -19
- package/cjs/modules/event-manager.module.js +0 -132
- package/cjs/modules/event-manager.module.spec.js +0 -146
- package/cjs/modules/index.js +0 -18
- package/cjs/services/event-manager-config.service.js +0 -76
- package/cjs/services/event-manager-config.service.spec.js +0 -111
- package/cjs/services/event-manager-datasource.provider.js +0 -84
- package/cjs/services/event-manager-datasource.provider.spec.js +0 -198
- package/cjs/services/event-manager-helper.service.js +0 -235
- package/cjs/services/event-manager-helper.service.spec.js +0 -327
- package/cjs/services/event.service.js +0 -481
- package/cjs/services/event.service.spec.js +0 -929
- package/cjs/services/index.js +0 -21
- package/fesm/adapters/event-manager.adapter.js +0 -55
- package/fesm/adapters/event-manager.adapter.spec.js +0 -100
- package/fesm/config/event-actions.js +0 -10
- package/fesm/config/event-manager.constants.js +0 -3
- package/fesm/config/message-keys.js +0 -9
- package/fesm/controllers/event.controller.js +0 -180
- package/fesm/controllers/event.controller.spec.js +0 -152
- package/fesm/docs/event-manager-swagger.config.js +0 -118
- package/fesm/docs/event-manager-swagger.config.spec.js +0 -61
- package/fesm/dtos/calendar-query.dto.js +0 -194
- package/fesm/dtos/event-participant.dto.js +0 -157
- package/fesm/dtos/event.dto.js +0 -322
- package/fesm/entities/event-participant.entity.js +0 -79
- package/fesm/entities/event-with-company.entity.js +0 -46
- package/fesm/entities/event.entity.js +0 -146
- package/fesm/entities/index.spec.js +0 -14
- package/fesm/interfaces/event-manager-module.interface.js +0 -3
- package/fesm/interfaces/event.interface.js +0 -1
- package/fesm/modules/event-manager.module.js +0 -122
- package/fesm/modules/event-manager.module.spec.js +0 -142
- package/fesm/services/event-manager-config.service.js +0 -66
- package/fesm/services/event-manager-config.service.spec.js +0 -107
- package/fesm/services/event-manager-datasource.provider.js +0 -74
- package/fesm/services/event-manager-datasource.provider.spec.js +0 -194
- package/fesm/services/event-manager-helper.service.js +0 -225
- package/fesm/services/event-manager-helper.service.spec.js +0 -323
- package/fesm/services/event.service.js +0 -471
- package/fesm/services/event.service.spec.js +0 -925
package/cjs/dtos/event.dto.js
DELETED
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
get CreateEventDto () {
|
|
13
|
-
return CreateEventDto;
|
|
14
|
-
},
|
|
15
|
-
get EventResponseDto () {
|
|
16
|
-
return EventResponseDto;
|
|
17
|
-
},
|
|
18
|
-
get UpdateEventDto () {
|
|
19
|
-
return UpdateEventDto;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
const _enums = require("@flusys/nestjs-shared/enums");
|
|
23
|
-
const _swagger = require("@nestjs/swagger");
|
|
24
|
-
const _classtransformer = require("class-transformer");
|
|
25
|
-
const _eventparticipantdto = require("./event-participant.dto");
|
|
26
|
-
const _classvalidator = require("class-validator");
|
|
27
|
-
function _define_property(obj, key, value) {
|
|
28
|
-
if (key in obj) {
|
|
29
|
-
Object.defineProperty(obj, key, {
|
|
30
|
-
value: value,
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true,
|
|
33
|
-
writable: true
|
|
34
|
-
});
|
|
35
|
-
} else {
|
|
36
|
-
obj[key] = value;
|
|
37
|
-
}
|
|
38
|
-
return obj;
|
|
39
|
-
}
|
|
40
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
41
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
42
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
43
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
44
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
45
|
-
}
|
|
46
|
-
function _ts_metadata(k, v) {
|
|
47
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
48
|
-
}
|
|
49
|
-
let CreateEventDto = class CreateEventDto {
|
|
50
|
-
constructor(){
|
|
51
|
-
_define_property(this, "title", void 0);
|
|
52
|
-
_define_property(this, "description", void 0);
|
|
53
|
-
_define_property(this, "eventDate", void 0);
|
|
54
|
-
_define_property(this, "startTime", void 0);
|
|
55
|
-
_define_property(this, "endTime", void 0);
|
|
56
|
-
_define_property(this, "isAllDay", void 0);
|
|
57
|
-
_define_property(this, "recurrenceType", void 0);
|
|
58
|
-
_define_property(this, "recurrenceEndDate", void 0);
|
|
59
|
-
_define_property(this, "weekDays", void 0);
|
|
60
|
-
_define_property(this, "color", void 0);
|
|
61
|
-
_define_property(this, "isActive", void 0);
|
|
62
|
-
_define_property(this, "meetingLink", void 0);
|
|
63
|
-
_define_property(this, "participantIds", void 0);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
_ts_decorate([
|
|
67
|
-
(0, _swagger.ApiProperty)({
|
|
68
|
-
description: 'Event title',
|
|
69
|
-
example: 'Team Meeting',
|
|
70
|
-
maxLength: 255
|
|
71
|
-
}),
|
|
72
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
73
|
-
(0, _classvalidator.IsString)(),
|
|
74
|
-
(0, _classvalidator.MaxLength)(255),
|
|
75
|
-
_ts_metadata("design:type", String)
|
|
76
|
-
], CreateEventDto.prototype, "title", void 0);
|
|
77
|
-
_ts_decorate([
|
|
78
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
79
|
-
description: 'Event description'
|
|
80
|
-
}),
|
|
81
|
-
(0, _classvalidator.IsOptional)(),
|
|
82
|
-
(0, _classvalidator.IsString)(),
|
|
83
|
-
_ts_metadata("design:type", String)
|
|
84
|
-
], CreateEventDto.prototype, "description", void 0);
|
|
85
|
-
_ts_decorate([
|
|
86
|
-
(0, _swagger.ApiProperty)({
|
|
87
|
-
description: 'Event date (YYYY-MM-DD)',
|
|
88
|
-
example: '2024-01-15'
|
|
89
|
-
}),
|
|
90
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
91
|
-
(0, _classvalidator.IsString)(),
|
|
92
|
-
(0, _classvalidator.Matches)(/^\d{4}-\d{2}-\d{2}$/, {
|
|
93
|
-
message: 'eventDate must be in YYYY-MM-DD format'
|
|
94
|
-
}),
|
|
95
|
-
_ts_metadata("design:type", String)
|
|
96
|
-
], CreateEventDto.prototype, "eventDate", void 0);
|
|
97
|
-
_ts_decorate([
|
|
98
|
-
(0, _swagger.ApiProperty)({
|
|
99
|
-
description: 'Start time (HH:mm)',
|
|
100
|
-
example: '09:00'
|
|
101
|
-
}),
|
|
102
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
103
|
-
(0, _classvalidator.IsString)(),
|
|
104
|
-
(0, _classvalidator.Matches)(/^\d{2}:\d{2}$/, {
|
|
105
|
-
message: 'startTime must be in HH:mm format'
|
|
106
|
-
}),
|
|
107
|
-
_ts_metadata("design:type", String)
|
|
108
|
-
], CreateEventDto.prototype, "startTime", void 0);
|
|
109
|
-
_ts_decorate([
|
|
110
|
-
(0, _swagger.ApiProperty)({
|
|
111
|
-
description: 'End time (HH:mm)',
|
|
112
|
-
example: '10:00'
|
|
113
|
-
}),
|
|
114
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
115
|
-
(0, _classvalidator.IsString)(),
|
|
116
|
-
(0, _classvalidator.Matches)(/^\d{2}:\d{2}$/, {
|
|
117
|
-
message: 'endTime must be in HH:mm format'
|
|
118
|
-
}),
|
|
119
|
-
_ts_metadata("design:type", String)
|
|
120
|
-
], CreateEventDto.prototype, "endTime", void 0);
|
|
121
|
-
_ts_decorate([
|
|
122
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
123
|
-
description: 'All day event flag',
|
|
124
|
-
default: false
|
|
125
|
-
}),
|
|
126
|
-
(0, _classvalidator.IsOptional)(),
|
|
127
|
-
(0, _classvalidator.IsBoolean)(),
|
|
128
|
-
_ts_metadata("design:type", Boolean)
|
|
129
|
-
], CreateEventDto.prototype, "isAllDay", void 0);
|
|
130
|
-
_ts_decorate([
|
|
131
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
132
|
-
description: 'Recurrence type',
|
|
133
|
-
enum: _enums.RecurrenceType,
|
|
134
|
-
default: _enums.RecurrenceType.NONE
|
|
135
|
-
}),
|
|
136
|
-
(0, _classvalidator.IsOptional)(),
|
|
137
|
-
(0, _classvalidator.IsEnum)(_enums.RecurrenceType),
|
|
138
|
-
_ts_metadata("design:type", typeof _enums.RecurrenceType === "undefined" ? Object : _enums.RecurrenceType)
|
|
139
|
-
], CreateEventDto.prototype, "recurrenceType", void 0);
|
|
140
|
-
_ts_decorate([
|
|
141
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
142
|
-
description: 'Recurrence end date (YYYY-MM-DD)',
|
|
143
|
-
example: '2024-12-31'
|
|
144
|
-
}),
|
|
145
|
-
(0, _classvalidator.IsOptional)(),
|
|
146
|
-
(0, _classvalidator.IsString)(),
|
|
147
|
-
(0, _classvalidator.Matches)(/^\d{4}-\d{2}-\d{2}$/, {
|
|
148
|
-
message: 'recurrenceEndDate must be in YYYY-MM-DD format'
|
|
149
|
-
}),
|
|
150
|
-
_ts_metadata("design:type", Object)
|
|
151
|
-
], CreateEventDto.prototype, "recurrenceEndDate", void 0);
|
|
152
|
-
_ts_decorate([
|
|
153
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
154
|
-
description: 'Selected weekdays for WEEKLY recurrence (e.g. ["MON","WED"])',
|
|
155
|
-
type: [
|
|
156
|
-
String
|
|
157
|
-
]
|
|
158
|
-
}),
|
|
159
|
-
(0, _classvalidator.IsOptional)(),
|
|
160
|
-
(0, _classvalidator.IsArray)(),
|
|
161
|
-
(0, _classvalidator.IsString)({
|
|
162
|
-
each: true
|
|
163
|
-
}),
|
|
164
|
-
_ts_metadata("design:type", Object)
|
|
165
|
-
], CreateEventDto.prototype, "weekDays", void 0);
|
|
166
|
-
_ts_decorate([
|
|
167
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
168
|
-
description: 'Event color (hex)',
|
|
169
|
-
example: '#3B82F6',
|
|
170
|
-
default: '#3B82F6'
|
|
171
|
-
}),
|
|
172
|
-
(0, _classvalidator.IsOptional)(),
|
|
173
|
-
(0, _classvalidator.IsString)(),
|
|
174
|
-
(0, _classvalidator.MaxLength)(7),
|
|
175
|
-
_ts_metadata("design:type", String)
|
|
176
|
-
], CreateEventDto.prototype, "color", void 0);
|
|
177
|
-
_ts_decorate([
|
|
178
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
179
|
-
description: 'Active status',
|
|
180
|
-
default: true
|
|
181
|
-
}),
|
|
182
|
-
(0, _classvalidator.IsOptional)(),
|
|
183
|
-
(0, _classvalidator.IsBoolean)(),
|
|
184
|
-
_ts_metadata("design:type", Boolean)
|
|
185
|
-
], CreateEventDto.prototype, "isActive", void 0);
|
|
186
|
-
_ts_decorate([
|
|
187
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
188
|
-
description: 'Meeting link URL (e.g. video call)',
|
|
189
|
-
example: 'https://meet.google.com/abc-def-ghi'
|
|
190
|
-
}),
|
|
191
|
-
(0, _classvalidator.IsOptional)(),
|
|
192
|
-
(0, _classvalidator.IsString)(),
|
|
193
|
-
(0, _classvalidator.IsUrl)({}, {
|
|
194
|
-
message: 'meetingLink must be a valid URL'
|
|
195
|
-
}),
|
|
196
|
-
(0, _classvalidator.MaxLength)(500),
|
|
197
|
-
_ts_metadata("design:type", Object)
|
|
198
|
-
], CreateEventDto.prototype, "meetingLink", void 0);
|
|
199
|
-
_ts_decorate([
|
|
200
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
201
|
-
description: 'Participant user IDs',
|
|
202
|
-
type: [
|
|
203
|
-
String
|
|
204
|
-
]
|
|
205
|
-
}),
|
|
206
|
-
(0, _classvalidator.IsOptional)(),
|
|
207
|
-
(0, _classvalidator.IsArray)(),
|
|
208
|
-
(0, _classvalidator.IsUUID)('4', {
|
|
209
|
-
each: true
|
|
210
|
-
}),
|
|
211
|
-
_ts_metadata("design:type", Array)
|
|
212
|
-
], CreateEventDto.prototype, "participantIds", void 0);
|
|
213
|
-
let UpdateEventDto = class UpdateEventDto extends (0, _swagger.PartialType)(CreateEventDto) {
|
|
214
|
-
constructor(...args){
|
|
215
|
-
super(...args), _define_property(this, "id", void 0);
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
_ts_decorate([
|
|
219
|
-
(0, _swagger.ApiProperty)({
|
|
220
|
-
description: 'Event ID',
|
|
221
|
-
example: 'f2e9c8d0-7a2a-11eb-9439-0242ac130002'
|
|
222
|
-
}),
|
|
223
|
-
(0, _classvalidator.IsUUID)(),
|
|
224
|
-
(0, _classvalidator.IsNotEmpty)(),
|
|
225
|
-
_ts_metadata("design:type", String)
|
|
226
|
-
], UpdateEventDto.prototype, "id", void 0);
|
|
227
|
-
let EventResponseDto = class EventResponseDto {
|
|
228
|
-
constructor(){
|
|
229
|
-
_define_property(this, "id", void 0);
|
|
230
|
-
_define_property(this, "title", void 0);
|
|
231
|
-
_define_property(this, "description", void 0);
|
|
232
|
-
_define_property(this, "eventDate", void 0);
|
|
233
|
-
_define_property(this, "startTime", void 0);
|
|
234
|
-
_define_property(this, "endTime", void 0);
|
|
235
|
-
_define_property(this, "isAllDay", void 0);
|
|
236
|
-
_define_property(this, "recurrenceType", void 0);
|
|
237
|
-
_define_property(this, "recurrenceEndDate", void 0);
|
|
238
|
-
_define_property(this, "weekDays", void 0);
|
|
239
|
-
_define_property(this, "color", void 0);
|
|
240
|
-
_define_property(this, "meetingLink", void 0);
|
|
241
|
-
_define_property(this, "isActive", void 0);
|
|
242
|
-
_define_property(this, "companyId", void 0);
|
|
243
|
-
_define_property(this, "createdAt", void 0);
|
|
244
|
-
_define_property(this, "updatedAt", void 0);
|
|
245
|
-
_define_property(this, "participants", void 0);
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
_ts_decorate([
|
|
249
|
-
(0, _classtransformer.Expose)(),
|
|
250
|
-
(0, _swagger.ApiProperty)(),
|
|
251
|
-
_ts_metadata("design:type", String)
|
|
252
|
-
], EventResponseDto.prototype, "id", void 0);
|
|
253
|
-
_ts_decorate([
|
|
254
|
-
(0, _classtransformer.Expose)(),
|
|
255
|
-
(0, _swagger.ApiProperty)(),
|
|
256
|
-
_ts_metadata("design:type", String)
|
|
257
|
-
], EventResponseDto.prototype, "title", void 0);
|
|
258
|
-
_ts_decorate([
|
|
259
|
-
(0, _classtransformer.Expose)(),
|
|
260
|
-
(0, _swagger.ApiPropertyOptional)(),
|
|
261
|
-
_ts_metadata("design:type", Object)
|
|
262
|
-
], EventResponseDto.prototype, "description", void 0);
|
|
263
|
-
_ts_decorate([
|
|
264
|
-
(0, _classtransformer.Expose)(),
|
|
265
|
-
(0, _swagger.ApiProperty)(),
|
|
266
|
-
_ts_metadata("design:type", String)
|
|
267
|
-
], EventResponseDto.prototype, "eventDate", void 0);
|
|
268
|
-
_ts_decorate([
|
|
269
|
-
(0, _classtransformer.Expose)(),
|
|
270
|
-
(0, _swagger.ApiProperty)(),
|
|
271
|
-
_ts_metadata("design:type", String)
|
|
272
|
-
], EventResponseDto.prototype, "startTime", void 0);
|
|
273
|
-
_ts_decorate([
|
|
274
|
-
(0, _classtransformer.Expose)(),
|
|
275
|
-
(0, _swagger.ApiProperty)(),
|
|
276
|
-
_ts_metadata("design:type", String)
|
|
277
|
-
], EventResponseDto.prototype, "endTime", void 0);
|
|
278
|
-
_ts_decorate([
|
|
279
|
-
(0, _classtransformer.Expose)(),
|
|
280
|
-
(0, _swagger.ApiProperty)(),
|
|
281
|
-
_ts_metadata("design:type", Boolean)
|
|
282
|
-
], EventResponseDto.prototype, "isAllDay", void 0);
|
|
283
|
-
_ts_decorate([
|
|
284
|
-
(0, _classtransformer.Expose)(),
|
|
285
|
-
(0, _swagger.ApiProperty)({
|
|
286
|
-
enum: _enums.RecurrenceType
|
|
287
|
-
}),
|
|
288
|
-
_ts_metadata("design:type", String)
|
|
289
|
-
], EventResponseDto.prototype, "recurrenceType", void 0);
|
|
290
|
-
_ts_decorate([
|
|
291
|
-
(0, _classtransformer.Expose)(),
|
|
292
|
-
(0, _swagger.ApiPropertyOptional)(),
|
|
293
|
-
_ts_metadata("design:type", Object)
|
|
294
|
-
], EventResponseDto.prototype, "recurrenceEndDate", void 0);
|
|
295
|
-
_ts_decorate([
|
|
296
|
-
(0, _classtransformer.Expose)(),
|
|
297
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
298
|
-
type: [
|
|
299
|
-
String
|
|
300
|
-
]
|
|
301
|
-
}),
|
|
302
|
-
_ts_metadata("design:type", Object)
|
|
303
|
-
], EventResponseDto.prototype, "weekDays", void 0);
|
|
304
|
-
_ts_decorate([
|
|
305
|
-
(0, _classtransformer.Expose)(),
|
|
306
|
-
(0, _swagger.ApiProperty)(),
|
|
307
|
-
_ts_metadata("design:type", String)
|
|
308
|
-
], EventResponseDto.prototype, "color", void 0);
|
|
309
|
-
_ts_decorate([
|
|
310
|
-
(0, _classtransformer.Expose)(),
|
|
311
|
-
(0, _swagger.ApiPropertyOptional)(),
|
|
312
|
-
_ts_metadata("design:type", Object)
|
|
313
|
-
], EventResponseDto.prototype, "meetingLink", void 0);
|
|
314
|
-
_ts_decorate([
|
|
315
|
-
(0, _classtransformer.Expose)(),
|
|
316
|
-
(0, _swagger.ApiProperty)(),
|
|
317
|
-
_ts_metadata("design:type", Boolean)
|
|
318
|
-
], EventResponseDto.prototype, "isActive", void 0);
|
|
319
|
-
_ts_decorate([
|
|
320
|
-
(0, _classtransformer.Expose)(),
|
|
321
|
-
(0, _swagger.ApiPropertyOptional)(),
|
|
322
|
-
_ts_metadata("design:type", Object)
|
|
323
|
-
], EventResponseDto.prototype, "companyId", void 0);
|
|
324
|
-
_ts_decorate([
|
|
325
|
-
(0, _classtransformer.Expose)(),
|
|
326
|
-
(0, _swagger.ApiProperty)(),
|
|
327
|
-
_ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
328
|
-
], EventResponseDto.prototype, "createdAt", void 0);
|
|
329
|
-
_ts_decorate([
|
|
330
|
-
(0, _classtransformer.Expose)(),
|
|
331
|
-
(0, _swagger.ApiProperty)(),
|
|
332
|
-
_ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
333
|
-
], EventResponseDto.prototype, "updatedAt", void 0);
|
|
334
|
-
_ts_decorate([
|
|
335
|
-
(0, _classtransformer.Expose)(),
|
|
336
|
-
(0, _swagger.ApiPropertyOptional)({
|
|
337
|
-
type: ()=>[
|
|
338
|
-
_eventparticipantdto.EventParticipantResponseDto
|
|
339
|
-
]
|
|
340
|
-
}),
|
|
341
|
-
(0, _classtransformer.Type)(()=>_eventparticipantdto.EventParticipantResponseDto),
|
|
342
|
-
_ts_metadata("design:type", Array)
|
|
343
|
-
], EventResponseDto.prototype, "participants", void 0);
|
package/cjs/dtos/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
_export_star(require("./event.dto"), exports);
|
|
6
|
-
_export_star(require("./event-participant.dto"), exports);
|
|
7
|
-
_export_star(require("./calendar-query.dto"), exports);
|
|
8
|
-
function _export_star(from, to) {
|
|
9
|
-
Object.keys(from).forEach(function(k) {
|
|
10
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
11
|
-
Object.defineProperty(to, k, {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function() {
|
|
14
|
-
return from[k];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
return from;
|
|
20
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "EventParticipant", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return EventParticipant;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _enums = require("@flusys/nestjs-shared/enums");
|
|
12
|
-
const _entities = require("@flusys/nestjs-shared/entities");
|
|
13
|
-
const _typeorm = require("typeorm");
|
|
14
|
-
function _define_property(obj, key, value) {
|
|
15
|
-
if (key in obj) {
|
|
16
|
-
Object.defineProperty(obj, key, {
|
|
17
|
-
value: value,
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true
|
|
21
|
-
});
|
|
22
|
-
} else {
|
|
23
|
-
obj[key] = value;
|
|
24
|
-
}
|
|
25
|
-
return obj;
|
|
26
|
-
}
|
|
27
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
28
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
29
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
30
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
31
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32
|
-
}
|
|
33
|
-
function _ts_metadata(k, v) {
|
|
34
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
35
|
-
}
|
|
36
|
-
let EventParticipant = class EventParticipant extends _entities.Identity {
|
|
37
|
-
constructor(...args){
|
|
38
|
-
super(...args), _define_property(this, "eventId", void 0), _define_property(this, "userId", void 0), _define_property(this, "status", void 0), _define_property(this, "isOrganizer", void 0);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
_ts_decorate([
|
|
42
|
-
(0, _typeorm.Index)(),
|
|
43
|
-
(0, _typeorm.Column)({
|
|
44
|
-
name: 'event_id',
|
|
45
|
-
type: 'uuid',
|
|
46
|
-
nullable: false
|
|
47
|
-
}),
|
|
48
|
-
_ts_metadata("design:type", String)
|
|
49
|
-
], EventParticipant.prototype, "eventId", void 0);
|
|
50
|
-
_ts_decorate([
|
|
51
|
-
(0, _typeorm.Column)({
|
|
52
|
-
name: 'user_id',
|
|
53
|
-
type: 'uuid',
|
|
54
|
-
nullable: false
|
|
55
|
-
}),
|
|
56
|
-
_ts_metadata("design:type", String)
|
|
57
|
-
], EventParticipant.prototype, "userId", void 0);
|
|
58
|
-
_ts_decorate([
|
|
59
|
-
(0, _typeorm.Column)({
|
|
60
|
-
type: 'varchar',
|
|
61
|
-
length: 50,
|
|
62
|
-
nullable: false,
|
|
63
|
-
default: _enums.ParticipantStatus.PENDING
|
|
64
|
-
}),
|
|
65
|
-
_ts_metadata("design:type", String)
|
|
66
|
-
], EventParticipant.prototype, "status", void 0);
|
|
67
|
-
_ts_decorate([
|
|
68
|
-
(0, _typeorm.Column)({
|
|
69
|
-
name: 'is_organizer',
|
|
70
|
-
type: 'boolean',
|
|
71
|
-
nullable: false,
|
|
72
|
-
default: false
|
|
73
|
-
}),
|
|
74
|
-
_ts_metadata("design:type", Boolean)
|
|
75
|
-
], EventParticipant.prototype, "isOrganizer", void 0);
|
|
76
|
-
EventParticipant = _ts_decorate([
|
|
77
|
-
(0, _typeorm.Entity)({
|
|
78
|
-
name: 'event_participant'
|
|
79
|
-
}),
|
|
80
|
-
(0, _typeorm.Index)([
|
|
81
|
-
'eventId',
|
|
82
|
-
'userId'
|
|
83
|
-
], {
|
|
84
|
-
unique: true
|
|
85
|
-
}),
|
|
86
|
-
(0, _typeorm.Index)([
|
|
87
|
-
'userId'
|
|
88
|
-
])
|
|
89
|
-
], EventParticipant);
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "EventWithCompany", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return EventWithCompany;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _typeorm = require("typeorm");
|
|
12
|
-
const _evententity = require("./event.entity");
|
|
13
|
-
function _define_property(obj, key, value) {
|
|
14
|
-
if (key in obj) {
|
|
15
|
-
Object.defineProperty(obj, key, {
|
|
16
|
-
value: value,
|
|
17
|
-
enumerable: true,
|
|
18
|
-
configurable: true,
|
|
19
|
-
writable: true
|
|
20
|
-
});
|
|
21
|
-
} else {
|
|
22
|
-
obj[key] = value;
|
|
23
|
-
}
|
|
24
|
-
return obj;
|
|
25
|
-
}
|
|
26
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
27
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
28
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
29
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
30
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31
|
-
}
|
|
32
|
-
function _ts_metadata(k, v) {
|
|
33
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
34
|
-
}
|
|
35
|
-
let EventWithCompany = class EventWithCompany extends _evententity.Event {
|
|
36
|
-
constructor(...args){
|
|
37
|
-
super(...args), _define_property(this, "companyId", void 0);
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
_ts_decorate([
|
|
41
|
-
(0, _typeorm.Column)({
|
|
42
|
-
name: 'company_id',
|
|
43
|
-
type: 'uuid',
|
|
44
|
-
nullable: true
|
|
45
|
-
}),
|
|
46
|
-
_ts_metadata("design:type", Object)
|
|
47
|
-
], EventWithCompany.prototype, "companyId", void 0);
|
|
48
|
-
EventWithCompany = _ts_decorate([
|
|
49
|
-
(0, _typeorm.Entity)({
|
|
50
|
-
name: 'event'
|
|
51
|
-
}),
|
|
52
|
-
(0, _typeorm.Index)([
|
|
53
|
-
'companyId',
|
|
54
|
-
'isActive'
|
|
55
|
-
])
|
|
56
|
-
], EventWithCompany);
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "Event", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return Event;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _nestjsshared = require("@flusys/nestjs-shared");
|
|
12
|
-
const _entities = require("@flusys/nestjs-shared/entities");
|
|
13
|
-
const _enums = require("@flusys/nestjs-shared/enums");
|
|
14
|
-
const _typeorm = require("typeorm");
|
|
15
|
-
function _define_property(obj, key, value) {
|
|
16
|
-
if (key in obj) {
|
|
17
|
-
Object.defineProperty(obj, key, {
|
|
18
|
-
value: value,
|
|
19
|
-
enumerable: true,
|
|
20
|
-
configurable: true,
|
|
21
|
-
writable: true
|
|
22
|
-
});
|
|
23
|
-
} else {
|
|
24
|
-
obj[key] = value;
|
|
25
|
-
}
|
|
26
|
-
return obj;
|
|
27
|
-
}
|
|
28
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
29
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
30
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
31
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
32
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33
|
-
}
|
|
34
|
-
function _ts_metadata(k, v) {
|
|
35
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
36
|
-
}
|
|
37
|
-
let Event = class Event extends _entities.Identity {
|
|
38
|
-
constructor(...args){
|
|
39
|
-
super(...args), _define_property(this, "title", void 0), _define_property(this, "description", void 0), _define_property(this, "eventDate", void 0), _define_property(this, "startTime", void 0), _define_property(this, "endTime", void 0), _define_property(this, "isAllDay", void 0), _define_property(this, "recurrenceType", void 0), _define_property(this, "recurrenceEndDate", void 0), _define_property(this, "weekDays", void 0), _define_property(this, "color", void 0), _define_property(this, "meetingLink", void 0), _define_property(this, "isActive", void 0);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
_ts_decorate([
|
|
43
|
-
(0, _typeorm.Column)({
|
|
44
|
-
type: 'varchar',
|
|
45
|
-
length: 255,
|
|
46
|
-
nullable: false
|
|
47
|
-
}),
|
|
48
|
-
_ts_metadata("design:type", String)
|
|
49
|
-
], Event.prototype, "title", void 0);
|
|
50
|
-
_ts_decorate([
|
|
51
|
-
(0, _typeorm.Column)({
|
|
52
|
-
type: 'text',
|
|
53
|
-
nullable: true
|
|
54
|
-
}),
|
|
55
|
-
_ts_metadata("design:type", Object)
|
|
56
|
-
], Event.prototype, "description", void 0);
|
|
57
|
-
_ts_decorate([
|
|
58
|
-
(0, _typeorm.Column)({
|
|
59
|
-
name: 'event_date',
|
|
60
|
-
type: 'date',
|
|
61
|
-
nullable: false
|
|
62
|
-
}),
|
|
63
|
-
_ts_metadata("design:type", String)
|
|
64
|
-
], Event.prototype, "eventDate", void 0);
|
|
65
|
-
_ts_decorate([
|
|
66
|
-
(0, _typeorm.Column)({
|
|
67
|
-
name: 'start_time',
|
|
68
|
-
type: 'varchar',
|
|
69
|
-
length: 5,
|
|
70
|
-
nullable: false,
|
|
71
|
-
default: '00:00'
|
|
72
|
-
}),
|
|
73
|
-
_ts_metadata("design:type", String)
|
|
74
|
-
], Event.prototype, "startTime", void 0);
|
|
75
|
-
_ts_decorate([
|
|
76
|
-
(0, _typeorm.Column)({
|
|
77
|
-
name: 'end_time',
|
|
78
|
-
type: 'varchar',
|
|
79
|
-
length: 5,
|
|
80
|
-
nullable: false,
|
|
81
|
-
default: '23:59'
|
|
82
|
-
}),
|
|
83
|
-
_ts_metadata("design:type", String)
|
|
84
|
-
], Event.prototype, "endTime", void 0);
|
|
85
|
-
_ts_decorate([
|
|
86
|
-
(0, _typeorm.Column)({
|
|
87
|
-
name: 'is_all_day',
|
|
88
|
-
type: 'boolean',
|
|
89
|
-
nullable: false,
|
|
90
|
-
default: false
|
|
91
|
-
}),
|
|
92
|
-
_ts_metadata("design:type", Boolean)
|
|
93
|
-
], Event.prototype, "isAllDay", void 0);
|
|
94
|
-
_ts_decorate([
|
|
95
|
-
(0, _typeorm.Column)({
|
|
96
|
-
name: 'recurrence_type',
|
|
97
|
-
type: 'varchar',
|
|
98
|
-
length: 20,
|
|
99
|
-
nullable: false,
|
|
100
|
-
default: _enums.RecurrenceType.NONE
|
|
101
|
-
}),
|
|
102
|
-
_ts_metadata("design:type", String)
|
|
103
|
-
], Event.prototype, "recurrenceType", void 0);
|
|
104
|
-
_ts_decorate([
|
|
105
|
-
(0, _typeorm.Column)({
|
|
106
|
-
name: 'recurrence_end_date',
|
|
107
|
-
type: 'date',
|
|
108
|
-
nullable: true
|
|
109
|
-
}),
|
|
110
|
-
_ts_metadata("design:type", Object)
|
|
111
|
-
], Event.prototype, "recurrenceEndDate", void 0);
|
|
112
|
-
_ts_decorate([
|
|
113
|
-
(0, _typeorm.Column)({
|
|
114
|
-
type: (0, _nestjsshared.getJsonColumnType)(),
|
|
115
|
-
nullable: true
|
|
116
|
-
}),
|
|
117
|
-
_ts_metadata("design:type", Object)
|
|
118
|
-
], Event.prototype, "weekDays", void 0);
|
|
119
|
-
_ts_decorate([
|
|
120
|
-
(0, _typeorm.Column)({
|
|
121
|
-
type: 'varchar',
|
|
122
|
-
length: 7,
|
|
123
|
-
nullable: false,
|
|
124
|
-
default: '#3B82F6'
|
|
125
|
-
}),
|
|
126
|
-
_ts_metadata("design:type", String)
|
|
127
|
-
], Event.prototype, "color", void 0);
|
|
128
|
-
_ts_decorate([
|
|
129
|
-
(0, _typeorm.Column)({
|
|
130
|
-
name: 'meeting_link',
|
|
131
|
-
type: 'varchar',
|
|
132
|
-
length: 500,
|
|
133
|
-
nullable: true
|
|
134
|
-
}),
|
|
135
|
-
_ts_metadata("design:type", Object)
|
|
136
|
-
], Event.prototype, "meetingLink", void 0);
|
|
137
|
-
_ts_decorate([
|
|
138
|
-
(0, _typeorm.Column)({
|
|
139
|
-
name: 'is_active',
|
|
140
|
-
type: 'boolean',
|
|
141
|
-
nullable: false,
|
|
142
|
-
default: true
|
|
143
|
-
}),
|
|
144
|
-
_ts_metadata("design:type", Boolean)
|
|
145
|
-
], Event.prototype, "isActive", void 0);
|
|
146
|
-
Event = _ts_decorate([
|
|
147
|
-
(0, _typeorm.Entity)({
|
|
148
|
-
name: 'event'
|
|
149
|
-
}),
|
|
150
|
-
(0, _typeorm.Index)([
|
|
151
|
-
'eventDate'
|
|
152
|
-
]),
|
|
153
|
-
(0, _typeorm.Index)([
|
|
154
|
-
'isActive'
|
|
155
|
-
])
|
|
156
|
-
], Event);
|