@myclub_se/data-access 1.7.0 → 1.7.1
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/esm2020/lib/api-models/api-event.mjs +1 -1
- package/esm2020/lib/models/event.mjs +5 -2
- package/esm2020/lib/services/factories/event-factory.mjs +2 -2
- package/fesm2015/myclub_se-data-access.mjs +5 -2
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +5 -2
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-event.d.ts +3 -0
- package/lib/models/event.d.ts +4 -1
- package/package.json +1 -1
|
@@ -586,10 +586,13 @@ class EmailRecipient {
|
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
class Event {
|
|
589
|
-
constructor(id, activity_id, activity_type, calendar_name, description, end, invitation_id, invitation_response, location, meet_up_place, meet_up_time, member_id, start, title, type) {
|
|
589
|
+
constructor(id, activity_id, activity_type, base_background_color, base_color, base_name, calendar_name, description, end, invitation_id, invitation_response, location, meet_up_place, meet_up_time, member_id, start, title, type) {
|
|
590
590
|
this.id = id;
|
|
591
591
|
this.activity_id = activity_id;
|
|
592
592
|
this.activity_type = activity_type;
|
|
593
|
+
this.base_background_color = base_background_color;
|
|
594
|
+
this.base_color = base_color;
|
|
595
|
+
this.base_name = base_name;
|
|
593
596
|
this.calendar_name = calendar_name;
|
|
594
597
|
this.description = description;
|
|
595
598
|
this.end = end;
|
|
@@ -1333,7 +1336,7 @@ const fileFactory = (file) => new FileObject(file.id, file.created, null, typeof
|
|
|
1333
1336
|
|
|
1334
1337
|
const directoryFactory = (directory) => new Directory(directory.id, directory.club_id, directory.section_id, directory.team_id, directory.created, directory.files.map((file) => fileFactory(file)), directory.name, directory.location_name, directory.updated);
|
|
1335
1338
|
|
|
1336
|
-
const eventFactory = (apiEvent) => new Event(apiEvent.id, apiEvent.activity_id, apiEvent.activity_type, apiEvent.calendar_name, apiEvent.description, apiEvent.end, apiEvent.invitation_id, apiEvent.invitation_response, apiEvent.location, apiEvent.meet_up_place, apiEvent.meet_up_time, apiEvent.member_id, apiEvent.start, apiEvent.title, apiEvent.type);
|
|
1339
|
+
const eventFactory = (apiEvent) => new Event(apiEvent.id, apiEvent.activity_id, apiEvent.activity_type, apiEvent.base_background_color, apiEvent.base_color, apiEvent.base_name, apiEvent.calendar_name, apiEvent.description, apiEvent.end, apiEvent.invitation_id, apiEvent.invitation_response, apiEvent.location, apiEvent.meet_up_place, apiEvent.meet_up_time, apiEvent.member_id, apiEvent.start, apiEvent.title, apiEvent.type);
|
|
1337
1340
|
|
|
1338
1341
|
const externalLinkFactory = (apiExternalLink) => new ExternalLink(apiExternalLink.text, apiExternalLink.value);
|
|
1339
1342
|
|