@myclub_se/data-access 2.7.7 → 2.8.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/esm2020/lib/api-models/api-activity.mjs +1 -1
- package/esm2020/lib/api-models/api-event.mjs +1 -1
- package/esm2020/lib/api-models/api-open-activity.mjs +2 -0
- package/esm2020/lib/api-models/api-search-club.mjs +1 -1
- package/esm2020/lib/api-models/index.mjs +2 -1
- package/esm2020/lib/models/activity.mjs +4 -2
- package/esm2020/lib/models/event.mjs +3 -2
- package/esm2020/lib/models/index.mjs +2 -1
- package/esm2020/lib/models/open-activity.mjs +55 -0
- package/esm2020/lib/models/search-club.mjs +4 -2
- package/esm2020/lib/services/activity.service.mjs +39 -2
- package/esm2020/lib/services/api.service.mjs +8 -2
- package/esm2020/lib/services/factories/activity-factory.mjs +2 -2
- package/esm2020/lib/services/factories/event-factory.mjs +2 -2
- package/esm2020/lib/services/factories/index.mjs +2 -1
- package/esm2020/lib/services/factories/open-activity-factory.mjs +5 -0
- package/esm2020/lib/services/factories/search-club-factory.mjs +2 -2
- package/esm2020/lib/types/booking-calendar-slot-type.mjs +1 -1
- package/fesm2015/myclub_se-data-access.mjs +113 -8
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +113 -8
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-activity.d.ts +1 -0
- package/lib/api-models/api-event.d.ts +1 -0
- package/lib/api-models/api-open-activity.d.ts +53 -0
- package/lib/api-models/api-search-club.d.ts +2 -0
- package/lib/api-models/index.d.ts +1 -0
- package/lib/models/activity.d.ts +2 -1
- package/lib/models/event.d.ts +2 -1
- package/lib/models/index.d.ts +1 -0
- package/lib/models/open-activity.d.ts +54 -0
- package/lib/models/search-club.d.ts +3 -1
- package/lib/services/activity.service.d.ts +4 -0
- package/lib/services/api.service.d.ts +2 -0
- package/lib/services/factories/index.d.ts +1 -0
- package/lib/services/factories/open-activity-factory.d.ts +3 -0
- package/lib/types/booking-calendar-slot-type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { format, sub } from 'date-fns';
|
|
|
9
9
|
import * as i2 from '@angular/router';
|
|
10
10
|
|
|
11
11
|
class Activity {
|
|
12
|
-
constructor(id, activity_group_id, activity_type_id, club_id, location_id, team_id, activity_location, activity_type_name, allow_maybe, calendar_name, created, current_num_attendants, day, description, end_time, file, invitation_text, invite_first_days, invite_groups, invite_hide_before_sent, invite_last_response_date, invite_remind, invite_remind_receivers, invite_second_days, invite_settings, invited_members, last_response_date, max_num_attendants, max_num_attendants_type, meet_up_place, meet_up_time, meet_up_time_display, repeat, repeat_num, repeat_to_day, repeat_type, show_other_invited, start_time, title, updated, use_invite, update_repeating) {
|
|
12
|
+
constructor(id, activity_group_id, activity_type_id, club_id, location_id, team_id, activity_location, activity_type_name, allow_maybe, calendar_name, created, current_num_attendants, day, description, end_time, file, invitation_text, invite_first_days, invite_groups, invite_hide_before_sent, invite_last_response_date, invite_remind, invite_remind_receivers, invite_second_days, invite_settings, invited_members, last_response_date, max_num_attendants, max_num_attendants_type, meet_up_place, meet_up_time, meet_up_time_display, open_activity, repeat, repeat_num, repeat_to_day, repeat_type, show_other_invited, start_time, title, updated, use_invite, update_repeating) {
|
|
13
13
|
this.id = id;
|
|
14
14
|
this.activity_group_id = activity_group_id;
|
|
15
15
|
this.activity_type_id = activity_type_id;
|
|
@@ -42,6 +42,7 @@ class Activity {
|
|
|
42
42
|
this.meet_up_place = meet_up_place;
|
|
43
43
|
this.meet_up_time = meet_up_time;
|
|
44
44
|
this.meet_up_time_display = meet_up_time_display;
|
|
45
|
+
this.open_activity = open_activity;
|
|
45
46
|
this.repeat = repeat;
|
|
46
47
|
this.repeat_num = repeat_num;
|
|
47
48
|
this.repeat_to_day = repeat_to_day;
|
|
@@ -82,6 +83,7 @@ class Activity {
|
|
|
82
83
|
max_num_attendants_type: new FormControl((activity === null || activity === void 0 ? void 0 : activity.max_num_attendants_type) || 'only_participants'),
|
|
83
84
|
meet_up_place: new FormControl((activity === null || activity === void 0 ? void 0 : activity.meet_up_place) || ''),
|
|
84
85
|
meet_up_time: new FormControl((activity === null || activity === void 0 ? void 0 : activity.meet_up_time) || 0),
|
|
86
|
+
open_activity: new FormControl((activity === null || activity === void 0 ? void 0 : activity.open_activity) || false),
|
|
85
87
|
repeat: new FormControl((activity === null || activity === void 0 ? void 0 : activity.repeat) || 'none'),
|
|
86
88
|
repeat_num: new FormControl(Number.isInteger(activity === null || activity === void 0 ? void 0 : activity.repeat_num) ? activity === null || activity === void 0 ? void 0 : activity.repeat_num : 6),
|
|
87
89
|
repeat_to_day: new FormControl((activity === null || activity === void 0 ? void 0 : activity.repeat_to_day) || ''),
|
|
@@ -774,7 +776,7 @@ class Email {
|
|
|
774
776
|
}
|
|
775
777
|
|
|
776
778
|
class Event {
|
|
777
|
-
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) {
|
|
779
|
+
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, open_activity, start, title, type) {
|
|
778
780
|
this.id = id;
|
|
779
781
|
this.activity_id = activity_id;
|
|
780
782
|
this.activity_type = activity_type;
|
|
@@ -790,6 +792,7 @@ class Event {
|
|
|
790
792
|
this.meet_up_place = meet_up_place;
|
|
791
793
|
this.meet_up_time = meet_up_time;
|
|
792
794
|
this.member_id = member_id;
|
|
795
|
+
this.open_activity = open_activity;
|
|
793
796
|
this.start = start;
|
|
794
797
|
this.title = title;
|
|
795
798
|
this.type = type;
|
|
@@ -1363,6 +1366,61 @@ class News {
|
|
|
1363
1366
|
}
|
|
1364
1367
|
}
|
|
1365
1368
|
|
|
1369
|
+
class OpenActivity {
|
|
1370
|
+
constructor(id, activity_group_id, activity_type_id, club_id, location_id, member_id, team_id, activity_location, activity_type_name, allow_maybe, calendar_name, created, current_num_attendants, day, description, end, end_time, file, invitation_text, invite_first_days, invite_groups, invite_hide_before_sent, invite_last_response_date, invite_remind, invite_remind_receivers, invite_second_days, invite_settings, invited_members, last_response_date, location_name, max_num_attendants, max_num_attendants_type, meet_up_place, meet_up_time, meet_up_time_display, meet_up_time_show, member_name, open_activity, repeat, repeat_num, repeat_to_day, repeat_type, show_other_invited, start, start_time, status, title, updated, use_invite, update_repeating) {
|
|
1371
|
+
this.id = id;
|
|
1372
|
+
this.activity_group_id = activity_group_id;
|
|
1373
|
+
this.activity_type_id = activity_type_id;
|
|
1374
|
+
this.club_id = club_id;
|
|
1375
|
+
this.location_id = location_id;
|
|
1376
|
+
this.member_id = member_id;
|
|
1377
|
+
this.team_id = team_id;
|
|
1378
|
+
this.activity_location = activity_location;
|
|
1379
|
+
this.activity_type_name = activity_type_name;
|
|
1380
|
+
this.allow_maybe = allow_maybe;
|
|
1381
|
+
this.calendar_name = calendar_name;
|
|
1382
|
+
this.created = created;
|
|
1383
|
+
this.current_num_attendants = current_num_attendants;
|
|
1384
|
+
this.day = day;
|
|
1385
|
+
this.description = description;
|
|
1386
|
+
this.end = end;
|
|
1387
|
+
this.end_time = end_time;
|
|
1388
|
+
this.file = file;
|
|
1389
|
+
this.invitation_text = invitation_text;
|
|
1390
|
+
this.invite_first_days = invite_first_days;
|
|
1391
|
+
this.invite_groups = invite_groups;
|
|
1392
|
+
this.invite_hide_before_sent = invite_hide_before_sent;
|
|
1393
|
+
this.invite_last_response_date = invite_last_response_date;
|
|
1394
|
+
this.invite_remind = invite_remind;
|
|
1395
|
+
this.invite_remind_receivers = invite_remind_receivers;
|
|
1396
|
+
this.invite_second_days = invite_second_days;
|
|
1397
|
+
this.invite_settings = invite_settings;
|
|
1398
|
+
this.invited_members = invited_members;
|
|
1399
|
+
this.last_response_date = last_response_date;
|
|
1400
|
+
this.location_name = location_name;
|
|
1401
|
+
this.max_num_attendants = max_num_attendants;
|
|
1402
|
+
this.max_num_attendants_type = max_num_attendants_type;
|
|
1403
|
+
this.meet_up_place = meet_up_place;
|
|
1404
|
+
this.meet_up_time = meet_up_time;
|
|
1405
|
+
this.meet_up_time_display = meet_up_time_display;
|
|
1406
|
+
this.meet_up_time_show = meet_up_time_show;
|
|
1407
|
+
this.member_name = member_name;
|
|
1408
|
+
this.open_activity = open_activity;
|
|
1409
|
+
this.repeat = repeat;
|
|
1410
|
+
this.repeat_num = repeat_num;
|
|
1411
|
+
this.repeat_to_day = repeat_to_day;
|
|
1412
|
+
this.repeat_type = repeat_type;
|
|
1413
|
+
this.show_other_invited = show_other_invited;
|
|
1414
|
+
this.start = start;
|
|
1415
|
+
this.start_time = start_time;
|
|
1416
|
+
this.status = status;
|
|
1417
|
+
this.title = title;
|
|
1418
|
+
this.updated = updated;
|
|
1419
|
+
this.use_invite = use_invite;
|
|
1420
|
+
this.update_repeating = update_repeating;
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1366
1424
|
class Partner {
|
|
1367
1425
|
constructor(id, image, name, url) {
|
|
1368
1426
|
this.id = id;
|
|
@@ -1383,11 +1441,13 @@ var Role;
|
|
|
1383
1441
|
})(Role || (Role = {}));
|
|
1384
1442
|
|
|
1385
1443
|
class SearchClub {
|
|
1386
|
-
constructor(id, leader_member_search, member_search, member_view, name) {
|
|
1444
|
+
constructor(id, leader_member_search, member_search, member_view, open_activities, open_activities_name, name) {
|
|
1387
1445
|
this.id = id;
|
|
1388
1446
|
this.leader_member_search = leader_member_search;
|
|
1389
1447
|
this.member_search = member_search;
|
|
1390
1448
|
this.member_view = member_view;
|
|
1449
|
+
this.open_activities = open_activities;
|
|
1450
|
+
this.open_activities_name = open_activities_name;
|
|
1391
1451
|
this.name = name;
|
|
1392
1452
|
}
|
|
1393
1453
|
}
|
|
@@ -1500,11 +1560,14 @@ class ApiService {
|
|
|
1500
1560
|
return this.post(role, path, pathParams, data, options).pipe(map((apiResource) => factory(apiResource)));
|
|
1501
1561
|
}
|
|
1502
1562
|
postResourceNoResponse(role, path, pathParams = {}, data, options = {}) {
|
|
1503
|
-
return this.postEmptyResponse(role, path, pathParams, data, options).pipe(map((response) => response.status === 200));
|
|
1563
|
+
return this.postEmptyResponse(role, path, pathParams, data, options).pipe(map((response) => response.status === 200 || response.status === 201 || response.status === 204));
|
|
1504
1564
|
}
|
|
1505
1565
|
updateResource(responseFactory, role, path, pathParams = {}, data, options = {}) {
|
|
1506
1566
|
return this.patch(role, path, pathParams, data, options).pipe(map((apiResource) => responseFactory(apiResource)));
|
|
1507
1567
|
}
|
|
1568
|
+
updateResourceNoResponse(role, path, pathParams = {}, data, options = {}) {
|
|
1569
|
+
return this.patchEmptyResponse(role, path, pathParams, data, options).pipe(map((response) => response.status === 200 || response.status === 204));
|
|
1570
|
+
}
|
|
1508
1571
|
delete(role, path, pathParams, options) {
|
|
1509
1572
|
if (options.body) {
|
|
1510
1573
|
return this.http.request('delete', this.url(this.path(role, path, pathParams)), options);
|
|
@@ -1527,6 +1590,9 @@ class ApiService {
|
|
|
1527
1590
|
patch(role, path, pathParams, data, options) {
|
|
1528
1591
|
return this.http.patch(this.url(this.path(role, path, pathParams)), data, options);
|
|
1529
1592
|
}
|
|
1593
|
+
patchEmptyResponse(role, path, pathParams, data, options) {
|
|
1594
|
+
return this.http.patch(this.url(this.path(role, path, pathParams)), data, Object.assign(Object.assign({}, options), { observe: 'response' }));
|
|
1595
|
+
}
|
|
1530
1596
|
path(role, path, params) {
|
|
1531
1597
|
for (const [key, value] of Object.entries(params)) {
|
|
1532
1598
|
const regexp = new RegExp(':' + key, 'g');
|
|
@@ -1578,7 +1644,7 @@ const activityExtraMemberFactory = (apiActivityExtraMember) => new ActivityExtra
|
|
|
1578
1644
|
|
|
1579
1645
|
const memberActivityInviteFactory = (invitedMember) => new MemberActivityInvite(invitedMember.id, invitedMember.comment, invitedMember.current_num_attendants, invitedMember.last_invite, invitedMember.leader, invitedMember.member_email, invitedMember.member_id, invitedMember.member_name, invitedMember.next_invite, invitedMember.response_date, invitedMember.status);
|
|
1580
1646
|
|
|
1581
|
-
const activityFactory = (apiActivity) => new Activity(apiActivity.id, apiActivity.activity_group_id, apiActivity.activity_type_id, apiActivity.club_id, apiActivity.location_id, apiActivity.team_id, apiActivity.activity_location, apiActivity.activity_type_name, apiActivity.allow_maybe, apiActivity.calendar_name, apiActivity.created, apiActivity.current_num_attendants, apiActivity.day, apiActivity.description, apiActivity.end_time, apiActivity.file, apiActivity.invitation_text, apiActivity.invite_first_days, [], apiActivity.invite_hide_before_sent, apiActivity.invite_last_response_date, apiActivity.invite_remind, apiActivity.invite_remind_receivers, apiActivity.invite_second_days, 'same_as_last', (apiActivity.invited_members && apiActivity.invited_members.length) ? apiActivity.invited_members.map((invitedMember) => memberActivityInviteFactory(invitedMember)) : [], apiActivity.last_response_date, apiActivity.max_num_attendants, apiActivity.max_num_attendants_type, apiActivity.meet_up_place, apiActivity.meet_up_time, apiActivity.meet_up_time_display, 'none', 6, format(new Date(), 'yyyy-MM-dd'), 'repeat_until', apiActivity.show_other_invited, apiActivity.start_time, apiActivity.title, apiActivity.updated, apiActivity.use_invite, false);
|
|
1647
|
+
const activityFactory = (apiActivity) => new Activity(apiActivity.id, apiActivity.activity_group_id, apiActivity.activity_type_id, apiActivity.club_id, apiActivity.location_id, apiActivity.team_id, apiActivity.activity_location, apiActivity.activity_type_name, apiActivity.allow_maybe, apiActivity.calendar_name, apiActivity.created, apiActivity.current_num_attendants, apiActivity.day, apiActivity.description, apiActivity.end_time, apiActivity.file, apiActivity.invitation_text, apiActivity.invite_first_days, [], apiActivity.invite_hide_before_sent, apiActivity.invite_last_response_date, apiActivity.invite_remind, apiActivity.invite_remind_receivers, apiActivity.invite_second_days, 'same_as_last', (apiActivity.invited_members && apiActivity.invited_members.length) ? apiActivity.invited_members.map((invitedMember) => memberActivityInviteFactory(invitedMember)) : [], apiActivity.last_response_date, apiActivity.max_num_attendants, apiActivity.max_num_attendants_type, apiActivity.meet_up_place, apiActivity.meet_up_time, apiActivity.meet_up_time_display, apiActivity.open_activity, 'none', 6, format(new Date(), 'yyyy-MM-dd'), 'repeat_until', apiActivity.show_other_invited, apiActivity.start_time, apiActivity.title, apiActivity.updated, apiActivity.use_invite, false);
|
|
1582
1648
|
|
|
1583
1649
|
const unpaidInvoiceFactory = (apiUnpaidInvoice) => new UnpaidMemberInvoice(apiUnpaidInvoice.id, apiUnpaidInvoice.club_bill_id, apiUnpaidInvoice.member_id, apiUnpaidInvoice.token);
|
|
1584
1650
|
|
|
@@ -1658,7 +1724,7 @@ const fileFactory = (file) => new FileObject(file.id, file.created, null, typeof
|
|
|
1658
1724
|
|
|
1659
1725
|
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);
|
|
1660
1726
|
|
|
1661
|
-
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);
|
|
1727
|
+
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.open_activity, apiEvent.start, apiEvent.title, apiEvent.type);
|
|
1662
1728
|
|
|
1663
1729
|
const externalLinkFactory = (apiExternalLink) => new ExternalLink(apiExternalLink.text, apiExternalLink.value);
|
|
1664
1730
|
|
|
@@ -1716,6 +1782,8 @@ const memberTeamThroughFactory = (apiMemberTeamThrough) => new MemberTeamThrough
|
|
|
1716
1782
|
|
|
1717
1783
|
const newsFactory = (apiNews) => new News(apiNews.id, apiNews.club_id, apiNews.created, apiNews.created_by_id, apiNews.section_id, apiNews.team_id, apiNews.active_to, apiNews.author, apiNews.ingress, apiNews.news_image, apiNews.news_image_text, apiNews.published_date, apiNews.read, apiNews.show_on_my_pages, apiNews.show_on_webpage, apiNews.text, apiNews.title, apiNews.updated, apiNews.urls ? imageUrlsFactory(apiNews.urls) : null);
|
|
1718
1784
|
|
|
1785
|
+
const openActivityFactory = (apiOpenActivity) => new OpenActivity(apiOpenActivity.id, apiOpenActivity.activity_group_id, apiOpenActivity.activity_type_id, apiOpenActivity.club_id, apiOpenActivity.location_id, apiOpenActivity.member_id, apiOpenActivity.team_id, apiOpenActivity.activity_location, apiOpenActivity.activity_type_name, apiOpenActivity.allow_maybe, apiOpenActivity.calendar_name, apiOpenActivity.created, apiOpenActivity.current_num_attendants, apiOpenActivity.day, apiOpenActivity.description, apiOpenActivity.end, apiOpenActivity.end_time, apiOpenActivity.file, apiOpenActivity.invitation_text, apiOpenActivity.invite_first_days, [], apiOpenActivity.invite_hide_before_sent, apiOpenActivity.invite_last_response_date, apiOpenActivity.invite_remind, apiOpenActivity.invite_remind_receivers, apiOpenActivity.invite_second_days, 'same_as_last', (apiOpenActivity.invited_members && apiOpenActivity.invited_members.length) ? apiOpenActivity.invited_members.map((invitedMember) => memberActivityInviteFactory(invitedMember)) : [], apiOpenActivity.last_response_date, apiOpenActivity.location_name, apiOpenActivity.max_num_attendants, apiOpenActivity.max_num_attendants_type, apiOpenActivity.meet_up_place, apiOpenActivity.meet_up_time, apiOpenActivity.meet_up_time_display, apiOpenActivity.meet_up_time_show, apiOpenActivity.member_name, apiOpenActivity.open_activity, 'none', 6, format(new Date(), 'yyyy-MM-dd'), 'repeat_until', apiOpenActivity.show_other_invited, apiOpenActivity.start, apiOpenActivity.start_time, apiOpenActivity.status, apiOpenActivity.title, apiOpenActivity.updated, apiOpenActivity.use_invite, false);
|
|
1786
|
+
|
|
1719
1787
|
const otherMemberFieldFactory = (apiOtherMemberFieldFactory) => new OtherMemberField(apiOtherMemberFieldFactory.display_name, apiOtherMemberFieldFactory.field_name, apiOtherMemberFieldFactory.value);
|
|
1720
1788
|
|
|
1721
1789
|
const otherMemberFactory = (apiOtherMember) => new OtherMember(apiOtherMember.id, apiOtherMember.country, apiOtherMember.created, apiOtherMember.first_name, apiOtherMember.image, apiOtherMember.last_name, apiOtherMember.name, apiOtherMember.fields ? apiOtherMember.fields.map((memberField) => otherMemberFieldFactory(memberField)) : []);
|
|
@@ -1743,7 +1811,7 @@ const paymentAttemptFactory = (apiPaymentAttempt) => {
|
|
|
1743
1811
|
return new PaymentAttempt(apiPaymentAttempt.id, apiPaymentAttempt.amount, apiPaymentAttempt.error, apiPaymentAttempt.invoice_id, apiPaymentAttempt.paid_date, paymentAttemptData, apiPaymentAttempt.status, apiPaymentAttempt.type);
|
|
1744
1812
|
};
|
|
1745
1813
|
|
|
1746
|
-
const searchClubFactory = (apiSearchClub) => new SearchClub(apiSearchClub.id, apiSearchClub.leader_member_search, apiSearchClub.member_search, apiSearchClub.member_view, apiSearchClub.name);
|
|
1814
|
+
const searchClubFactory = (apiSearchClub) => new SearchClub(apiSearchClub.id, apiSearchClub.leader_member_search, apiSearchClub.member_search, apiSearchClub.member_view, apiSearchClub.open_activities, apiSearchClub.open_activities_name, apiSearchClub.name);
|
|
1747
1815
|
|
|
1748
1816
|
const searchMemberCardFactory = (apiSearchMemberCard) => new SearchMemberCard(apiSearchMemberCard.id, apiSearchMemberCard.name, apiSearchMemberCard.notification_count, apiSearchMemberCard.pdf_url);
|
|
1749
1817
|
|
|
@@ -1809,6 +1877,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
1809
1877
|
const MEMBER_ACTIVITY_INVITE_PATH = ':memberId/activities/:activityInviteId/';
|
|
1810
1878
|
const MEMBER_ACTIVITY_INVITES_PATH = ':memberId/activities/';
|
|
1811
1879
|
const MEMBER_CALENDAR_PATH = ':memberId/activities/calendar/';
|
|
1880
|
+
const MEMBER_OPEN_ACTIVITIES_PATH = ':memberId/open-activities/';
|
|
1881
|
+
const MEMBER_OPEN_ACTIVITY_PATH = ':memberId/open-activities/:activityId/';
|
|
1882
|
+
const MEMBER_OPEN_ACTIVITY_RESPOND_PATH = ':memberId/open-activities/:activityId/respond/';
|
|
1812
1883
|
const PUBLIC_ACTIVITY_INVITE_PATH = 'activities/:id/:token/';
|
|
1813
1884
|
const TEAM_ACTIVITIES_PATH = ':teamId/activities/';
|
|
1814
1885
|
const TEAM_ACTIVITY_INVITES_PATH = ':teamId/activities/:activityId/invites/';
|
|
@@ -1905,6 +1976,24 @@ class ActivityService {
|
|
|
1905
1976
|
params
|
|
1906
1977
|
});
|
|
1907
1978
|
}
|
|
1979
|
+
getMemberOpenActivities(memberId, startDate, endDate) {
|
|
1980
|
+
const params = {
|
|
1981
|
+
end_date: endDate,
|
|
1982
|
+
limit: 'null',
|
|
1983
|
+
start_date: startDate
|
|
1984
|
+
};
|
|
1985
|
+
return this.apiService
|
|
1986
|
+
.getCollection(openActivityFactory, Role.MemberAdmin, MEMBER_OPEN_ACTIVITIES_PATH, { memberId }, {
|
|
1987
|
+
params
|
|
1988
|
+
});
|
|
1989
|
+
}
|
|
1990
|
+
getMemberOpenActivity(memberId, activityId) {
|
|
1991
|
+
return this.apiService
|
|
1992
|
+
.getResource(openActivityFactory, Role.MemberAdmin, MEMBER_OPEN_ACTIVITY_PATH, {
|
|
1993
|
+
memberId,
|
|
1994
|
+
activityId
|
|
1995
|
+
});
|
|
1996
|
+
}
|
|
1908
1997
|
getPublicActivityInvite(id, token) {
|
|
1909
1998
|
return this.apiService
|
|
1910
1999
|
.getResource(activityInviteFactory, Role.Public, PUBLIC_ACTIVITY_INVITE_PATH, {
|
|
@@ -2248,6 +2337,22 @@ class ActivityService {
|
|
|
2248
2337
|
activityInviteId
|
|
2249
2338
|
}, {});
|
|
2250
2339
|
}
|
|
2340
|
+
removeMemberOpenActivity(memberId, activityId) {
|
|
2341
|
+
return this.apiService
|
|
2342
|
+
.deleteResource(Role.MemberAdmin, MEMBER_OPEN_ACTIVITY_RESPOND_PATH, {
|
|
2343
|
+
memberId,
|
|
2344
|
+
activityId
|
|
2345
|
+
});
|
|
2346
|
+
}
|
|
2347
|
+
signUpMemberOpenActivity(memberId, activityId, comment) {
|
|
2348
|
+
return this.apiService
|
|
2349
|
+
.updateResourceNoResponse(Role.MemberAdmin, MEMBER_OPEN_ACTIVITY_RESPOND_PATH, {
|
|
2350
|
+
memberId,
|
|
2351
|
+
activityId
|
|
2352
|
+
}, {
|
|
2353
|
+
comment
|
|
2354
|
+
});
|
|
2355
|
+
}
|
|
2251
2356
|
updateMemberActivity(memberId, activityInviteId, activityInvite) {
|
|
2252
2357
|
return this.apiService
|
|
2253
2358
|
.updateResource(activityInviteFactory, Role.MemberAdmin, MEMBER_ACTIVITY_INVITE_PATH, {
|
|
@@ -4017,5 +4122,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
4017
4122
|
* Generated bundle index. Do not edit.
|
|
4018
4123
|
*/
|
|
4019
4124
|
|
|
4020
|
-
export { APP, Activity, ActivityExtraMember, ActivityInvite, ActivityLocation, ActivityLocationGroup, ActivityLocationPart, ActivityLocationTag, ActivityService, ActivitySettings, ActivityType, Auth, AuthMember, AuthSection, AuthService, AuthTeam, AuthTeamSection, AuthenticatedGuard, Authentication, AuthenticationInterceptor, AuthenticationService, BookingCalendar, BookingCalendarApplicationTime, BookingCalendarService, BookingCalendarSlot, BookingCalendarSlotSession, BookingSettings, BookingSlotFilter, Calendar, CalendarEvent, Card, CardDeal, CardLogo, CardLogoUrls, CardMemberTicket, CardTheme, CardTicket, CardTicketLocation, Club, ClubImage, ClubSection, ClubService, Collection, ConstantService, Contact, CreditCard, DataAccessModule, Directory, Email, EmailService, Event, ExternalLink, ExternalLinkService, FileObject, FileService, GeneralImage, Giro, GroupRole, HandleGrantTokenGuard, HomeTeam, ImageUrls, InvoiceService, MaintenanceModeService, Member, MemberActivityInvite, MemberAttribute, MemberCard, MemberCardService, MemberContact, MemberFee, MemberFunction, MemberInvoice, MemberInvoiceRow, MemberPublicForm, MemberPublicFormField, MemberPublicFormFieldOption, MemberPublicFormService, MemberService, MemberTeam, MemberTeamThrough, MemberType, MemberValidationSettings, News, NewsService, OtherMember, OtherMemberField, Partner, PaymentAttempt, PaymentAttemptService, Role, SearchClub, SearchMember, SearchMemberCard, SearchMemberInvoice, SearchTeam, Section, SectionService, Swish, SwishQrCode, TeamService, Token, TokenService, USER_NOTIFICATIONS_PATH, UnpaidMemberInvoice, User, UserNotification, UserNotificationService, UserService, Zimpler };
|
|
4125
|
+
export { APP, Activity, ActivityExtraMember, ActivityInvite, ActivityLocation, ActivityLocationGroup, ActivityLocationPart, ActivityLocationTag, ActivityService, ActivitySettings, ActivityType, Auth, AuthMember, AuthSection, AuthService, AuthTeam, AuthTeamSection, AuthenticatedGuard, Authentication, AuthenticationInterceptor, AuthenticationService, BookingCalendar, BookingCalendarApplicationTime, BookingCalendarService, BookingCalendarSlot, BookingCalendarSlotSession, BookingSettings, BookingSlotFilter, Calendar, CalendarEvent, Card, CardDeal, CardLogo, CardLogoUrls, CardMemberTicket, CardTheme, CardTicket, CardTicketLocation, Club, ClubImage, ClubSection, ClubService, Collection, ConstantService, Contact, CreditCard, DataAccessModule, Directory, Email, EmailService, Event, ExternalLink, ExternalLinkService, FileObject, FileService, GeneralImage, Giro, GroupRole, HandleGrantTokenGuard, HomeTeam, ImageUrls, InvoiceService, MaintenanceModeService, Member, MemberActivityInvite, MemberAttribute, MemberCard, MemberCardService, MemberContact, MemberFee, MemberFunction, MemberInvoice, MemberInvoiceRow, MemberPublicForm, MemberPublicFormField, MemberPublicFormFieldOption, MemberPublicFormService, MemberService, MemberTeam, MemberTeamThrough, MemberType, MemberValidationSettings, News, NewsService, OpenActivity, OtherMember, OtherMemberField, Partner, PaymentAttempt, PaymentAttemptService, Role, SearchClub, SearchMember, SearchMemberCard, SearchMemberInvoice, SearchTeam, Section, SectionService, Swish, SwishQrCode, TeamService, Token, TokenService, USER_NOTIFICATIONS_PATH, UnpaidMemberInvoice, User, UserNotification, UserNotificationService, UserService, Zimpler };
|
|
4021
4126
|
//# sourceMappingURL=myclub_se-data-access.mjs.map
|