@myclub_se/data-access 1.9.0 → 2.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/esm2020/lib/api-models/api-activity-location-group.mjs +2 -0
- package/esm2020/lib/api-models/api-booking-calendar-slot.mjs +1 -1
- package/esm2020/lib/api-models/index.mjs +2 -1
- package/esm2020/lib/interfaces/email-recipient.interface.mjs +2 -0
- package/esm2020/lib/interfaces/index.mjs +3 -1
- package/esm2020/lib/interfaces/sms-recipient.interface.mjs +2 -0
- package/esm2020/lib/models/activity-location-group.mjs +11 -0
- package/esm2020/lib/models/booking-calendar-slot.mjs +14 -2
- package/esm2020/lib/models/email.mjs +1 -1
- package/esm2020/lib/models/index.mjs +2 -2
- package/esm2020/lib/services/activity.service.mjs +22 -2
- package/esm2020/lib/services/booking-calendar.service.mjs +16 -2
- package/esm2020/lib/services/email.service.mjs +1 -1
- package/esm2020/lib/services/factories/activity-location-group-factory.mjs +6 -0
- package/esm2020/lib/services/factories/booking-calendar-slot-factory.mjs +3 -2
- package/fesm2015/myclub_se-data-access.mjs +65 -12
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +65 -12
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-activity-location-group.d.ts +9 -0
- package/lib/api-models/api-booking-calendar-slot.d.ts +6 -0
- package/lib/api-models/index.d.ts +1 -0
- package/lib/interfaces/email-recipient.interface.d.ts +4 -0
- package/lib/interfaces/index.d.ts +2 -0
- package/lib/interfaces/sms-recipient.interface.d.ts +4 -0
- package/lib/models/activity-location-group.d.ts +10 -0
- package/lib/models/booking-calendar-slot.d.ts +13 -1
- package/lib/models/email.d.ts +3 -3
- package/lib/models/index.d.ts +1 -1
- package/lib/services/activity.service.d.ts +5 -0
- package/lib/services/booking-calendar.service.d.ts +4 -4
- package/lib/services/email.service.d.ts +4 -3
- package/lib/services/factories/activity-location-group-factory.d.ts +3 -0
- package/package.json +1 -1
- package/esm2020/lib/models/email-recipient.mjs +0 -7
- package/lib/models/email-recipient.d.ts +0 -5
|
@@ -5,6 +5,7 @@ export interface ApiBookingCalendarSlot {
|
|
|
5
5
|
readonly color: string;
|
|
6
6
|
day: string;
|
|
7
7
|
end_time: string;
|
|
8
|
+
group_id: string | null;
|
|
8
9
|
id: string;
|
|
9
10
|
location_id: string;
|
|
10
11
|
readonly location_name: string;
|
|
@@ -13,4 +14,9 @@ export interface ApiBookingCalendarSlot {
|
|
|
13
14
|
sessions: Array<ApiBookingCalendarSlotSession> | null;
|
|
14
15
|
start_time: string;
|
|
15
16
|
type: BookingCalendarSlotType;
|
|
17
|
+
repeat: string;
|
|
18
|
+
repeat_to_day?: string | null;
|
|
19
|
+
repeat_num?: number | null;
|
|
20
|
+
repeat_type?: string | null;
|
|
21
|
+
update_repeating: boolean;
|
|
16
22
|
}
|
|
@@ -2,6 +2,7 @@ export * from './api-activity';
|
|
|
2
2
|
export * from './api-activity-extra-member';
|
|
3
3
|
export * from './api-activity-invite';
|
|
4
4
|
export * from './api-activity-location';
|
|
5
|
+
export * from './api-activity-location-group';
|
|
5
6
|
export * from './api-activity-type';
|
|
6
7
|
export * from './api-auth';
|
|
7
8
|
export * from './api-booking-calendar';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ActivityLocation } from "./activity-location";
|
|
2
|
+
export declare class ActivityLocationGroup {
|
|
3
|
+
id: string;
|
|
4
|
+
club_id: string;
|
|
5
|
+
section_id: string | null;
|
|
6
|
+
active: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
locations: Array<ActivityLocation> | null;
|
|
9
|
+
constructor(id: string, club_id: string, section_id: string | null, active: boolean, name: string, locations: Array<ActivityLocation> | null);
|
|
10
|
+
}
|
|
@@ -8,20 +8,32 @@ export declare class BookingCalendarSlot {
|
|
|
8
8
|
color: string;
|
|
9
9
|
day: string;
|
|
10
10
|
end_time: string;
|
|
11
|
+
group_id: string | null;
|
|
11
12
|
location_name: string;
|
|
12
13
|
number_of_available_sessions: number;
|
|
13
14
|
sessions: Array<BookingCalendarSlotSession>;
|
|
14
15
|
start_time: string;
|
|
15
16
|
type: BookingCalendarSlotType;
|
|
17
|
+
repeat: string;
|
|
18
|
+
update_repeating: boolean;
|
|
19
|
+
repeat_num?: number | null | undefined;
|
|
20
|
+
repeat_to_day?: string | null | undefined;
|
|
21
|
+
repeat_type?: string | null | undefined;
|
|
16
22
|
static asFormGroup(slot?: BookingCalendarSlot): FormGroup<{
|
|
17
23
|
id: FormControl<string | null>;
|
|
18
24
|
calendar_id: FormControl<string | null>;
|
|
19
25
|
location_id: FormControl<string | null>;
|
|
20
26
|
day: FormControl<string | null>;
|
|
21
27
|
end_time: FormControl<string | null>;
|
|
28
|
+
group_id: FormControl<string | null>;
|
|
22
29
|
number_of_available_sessions: FormControl<number | null>;
|
|
23
30
|
start_time: FormControl<string | null>;
|
|
24
31
|
type: FormControl<string | null>;
|
|
32
|
+
repeat: FormControl<string | null>;
|
|
33
|
+
repeat_num: FormControl<number | null>;
|
|
34
|
+
repeat_to_day: FormControl<string | null>;
|
|
35
|
+
repeat_type: FormControl<string | null>;
|
|
36
|
+
update_repeating: FormControl<boolean | null>;
|
|
25
37
|
}>;
|
|
26
|
-
constructor(id: string, calendar_id: string, location_id: string, color: string, day: string, end_time: string, location_name: string, number_of_available_sessions: number, sessions: Array<BookingCalendarSlotSession>, start_time: string, type: BookingCalendarSlotType);
|
|
38
|
+
constructor(id: string, calendar_id: string, location_id: string, color: string, day: string, end_time: string, group_id: string | null, location_name: string, number_of_available_sessions: number, sessions: Array<BookingCalendarSlotSession>, start_time: string, type: BookingCalendarSlotType, repeat: string, update_repeating: boolean, repeat_num?: number | null | undefined, repeat_to_day?: string | null | undefined, repeat_type?: string | null | undefined);
|
|
27
39
|
}
|
package/lib/models/email.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EmailRecipientInterface } from '../interfaces';
|
|
2
2
|
export declare class Email {
|
|
3
3
|
body: string;
|
|
4
4
|
subject: string;
|
|
5
|
-
recipients: Array<
|
|
6
|
-
constructor(body: string, subject: string, recipients?: Array<
|
|
5
|
+
recipients: Array<EmailRecipientInterface>;
|
|
6
|
+
constructor(body: string, subject: string, recipients?: Array<EmailRecipientInterface>);
|
|
7
7
|
}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './activity';
|
|
|
2
2
|
export * from './activity-extra-member';
|
|
3
3
|
export * from './activity-invite';
|
|
4
4
|
export * from './activity-location';
|
|
5
|
+
export * from './activity-location-group';
|
|
5
6
|
export * from './activity-settings';
|
|
6
7
|
export * from './activity-type';
|
|
7
8
|
export * from './auth';
|
|
@@ -19,7 +20,6 @@ export * from './collection';
|
|
|
19
20
|
export * from './contact';
|
|
20
21
|
export * from './directory';
|
|
21
22
|
export * from './email';
|
|
22
|
-
export * from './email-recipient';
|
|
23
23
|
export * from './event';
|
|
24
24
|
export * from './external-link';
|
|
25
25
|
export * from './file-object';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ApiService } from './api.service';
|
|
2
2
|
import { Activity, ActivityLocation, ActivityType, Collection, MemberActivityInvite } from '../models';
|
|
3
|
+
import { ActivityLocationGroup } from "../models/activity-location-group";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class ActivityService {
|
|
5
6
|
private apiService;
|
|
6
7
|
activityLocationCollection: Collection<ActivityLocation> | undefined;
|
|
8
|
+
activityLocationGroupCollection: Collection<ActivityLocationGroup> | undefined;
|
|
7
9
|
activityTypeCollection: Collection<ActivityType> | undefined;
|
|
8
10
|
activityLocationResponseDate: Date | undefined;
|
|
11
|
+
activityLocationGroupResponseDate: Date | undefined;
|
|
9
12
|
activityTypeResponseDate: Date | undefined;
|
|
10
13
|
constructor(apiService: ApiService);
|
|
11
14
|
addTeamActivityInvites(teamId: string, activityId: string, memberIds: Array<string>): import("rxjs").Observable<boolean>;
|
|
@@ -19,9 +22,11 @@ export declare class ActivityService {
|
|
|
19
22
|
getTeamActivity(teamId: string, id: string): import("rxjs").Observable<Activity>;
|
|
20
23
|
getTeamActivityLocations(teamId: string): import("rxjs").Observable<Collection<ActivityLocation> | undefined>;
|
|
21
24
|
getClubActivityLocations(clubId: string): import("rxjs").Observable<Collection<ActivityLocation> | undefined>;
|
|
25
|
+
getClubActivityLocationGroups(clubId: string): import("rxjs").Observable<Collection<ActivityLocationGroup> | undefined>;
|
|
22
26
|
getTeamActivityNew(teamId: string): import("rxjs").Observable<Activity>;
|
|
23
27
|
getTeamActivityParticipants(teamId: string, activityId: string): import("rxjs").Observable<Collection<import("../models").SearchMember>>;
|
|
24
28
|
getTeamActivitySettings(teamId: string): import("rxjs").Observable<import("../models").ActivitySettings>;
|
|
29
|
+
getClubActivitySettings(clubId: string): import("rxjs").Observable<import("../models").ActivitySettings>;
|
|
25
30
|
getTeamActivityTypes(teamId: string): import("rxjs").Observable<Collection<ActivityType> | undefined>;
|
|
26
31
|
getTeamCalendarEvents(teamId: string, startDate?: string | null, endDate?: string | null): import("rxjs").Observable<Collection<import("../models").Event>>;
|
|
27
32
|
resendInvite(teamId: string, activityId: string, activityInviteId: string): import("rxjs").Observable<import("../models").ActivityInvite>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ApiService } from './api.service';
|
|
2
|
-
import { Collection } from '../models';
|
|
3
2
|
import { BookingCalendar } from "../models/booking-calendar";
|
|
4
3
|
import { BookingCalendarSlot } from "../models/booking-calendar-slot";
|
|
5
4
|
import { BookingCalendarSlotSession } from "../models/booking-calendar-slot-session";
|
|
@@ -8,17 +7,18 @@ export declare class BookingCalendarService {
|
|
|
8
7
|
private apiService;
|
|
9
8
|
constructor(apiService: ApiService);
|
|
10
9
|
createClubBookingCalendar(clubId: string, calendar: Partial<BookingCalendar>): import("rxjs").Observable<BookingCalendar>;
|
|
11
|
-
getClubBookingCalendars(clubId: string, name?: string | null): import("rxjs").Observable<Collection<BookingCalendar>>;
|
|
10
|
+
getClubBookingCalendars(clubId: string, name?: string | null): import("rxjs").Observable<import("../models").Collection<BookingCalendar>>;
|
|
12
11
|
getClubBookingCalendar(clubId: string, id: string): import("rxjs").Observable<BookingCalendar>;
|
|
13
12
|
updateClubBookingCalendar(clubId: string, calendar: BookingCalendar): import("rxjs").Observable<BookingCalendar>;
|
|
14
13
|
deleteClubBookingCalendar(clubId: string, id: string): import("rxjs").Observable<boolean>;
|
|
15
14
|
createClubBookingCalendarSlot(clubId: string, slot: Partial<BookingCalendarSlot>): import("rxjs").Observable<BookingCalendarSlot>;
|
|
16
|
-
getClubBookingCalendarSlots(clubId: string, startDate?: string | null, endDate?: string | null): import("rxjs").Observable<Collection<BookingCalendarSlot>>;
|
|
15
|
+
getClubBookingCalendarSlots(clubId: string, startDate?: string | null, endDate?: string | null, calendarIds?: string[] | null, locationIds?: string[] | null): import("rxjs").Observable<import("../models").Collection<BookingCalendarSlot>>;
|
|
17
16
|
getClubBookingCalendarSlot(clubId: string, id: string): import("rxjs").Observable<BookingCalendarSlot>;
|
|
18
17
|
updateClubBookingCalendarSlot(clubId: string, slot: BookingCalendarSlot): import("rxjs").Observable<BookingCalendarSlot>;
|
|
19
18
|
deleteClubBookingCalendarSlot(clubId: string, id: string): import("rxjs").Observable<boolean>;
|
|
19
|
+
deleteClubBookingCalendarSlotRepeatable(clubId: string, id: string): import("rxjs").Observable<boolean>;
|
|
20
20
|
createClubBookingCalendarSlotSession(clubId: string, session: Partial<BookingCalendarSlotSession>): import("rxjs").Observable<BookingCalendarSlotSession>;
|
|
21
|
-
getClubBookingCalendarSlotSessions(clubId: string, startDate?: string | null, endDate?: string | null): import("rxjs").Observable<Collection<BookingCalendarSlotSession>>;
|
|
21
|
+
getClubBookingCalendarSlotSessions(clubId: string, startDate?: string | null, endDate?: string | null): import("rxjs").Observable<import("../models").Collection<BookingCalendarSlotSession>>;
|
|
22
22
|
getClubBookingCalendarSlotSession(clubId: string, id: string): import("rxjs").Observable<BookingCalendarSlotSession>;
|
|
23
23
|
updateClubBookingCalendarSlotSession(clubId: string, session: BookingCalendarSlotSession): import("rxjs").Observable<BookingCalendarSlotSession>;
|
|
24
24
|
deleteClubBookingCalendarSlotSession(clubId: string, id: string): import("rxjs").Observable<boolean>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Email
|
|
1
|
+
import { Email } from '../models';
|
|
2
2
|
import { ApiService } from './api.service';
|
|
3
|
+
import { EmailRecipientInterface } from '../interfaces';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class EmailService {
|
|
5
6
|
private apiService;
|
|
@@ -8,11 +9,11 @@ export declare class EmailService {
|
|
|
8
9
|
constructor(apiService: ApiService);
|
|
9
10
|
clear(): void;
|
|
10
11
|
getBackHref(): string;
|
|
11
|
-
getRecipients(): Array<
|
|
12
|
+
getRecipients(): Array<EmailRecipientInterface>;
|
|
12
13
|
removeRecipient(id: string): boolean;
|
|
13
14
|
sendTeamLeaderEmail(teamId: string, email: Email): import("rxjs").Observable<number>;
|
|
14
15
|
setBackHref(href: string): void;
|
|
15
|
-
setRecipients(emailRecipients: Array<
|
|
16
|
+
setRecipients(emailRecipients: Array<EmailRecipientInterface>): void;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<EmailService, never>;
|
|
17
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<EmailService>;
|
|
18
19
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ApiActivityLocationGroup } from "../../api-models/api-activity-location-group";
|
|
2
|
+
import { ActivityLocationGroup } from "../../models/activity-location-group";
|
|
3
|
+
export declare const activityLocationGroupFactory: (apiActivityLocationGroup: ApiActivityLocationGroup) => ActivityLocationGroup;
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export class EmailRecipient {
|
|
2
|
-
constructor(id, name) {
|
|
3
|
-
this.id = id;
|
|
4
|
-
this.name = name;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1haWwtcmVjaXBpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZGF0YS1hY2Nlc3Mvc3JjL2xpYi9tb2RlbHMvZW1haWwtcmVjaXBpZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxjQUFjO0lBQ3pCLFlBQW1CLEVBQVUsRUFBUyxJQUFZO1FBQS9CLE9BQUUsR0FBRixFQUFFLENBQVE7UUFBUyxTQUFJLEdBQUosSUFBSSxDQUFRO0lBQ2xELENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBFbWFpbFJlY2lwaWVudCB7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBpZDogc3RyaW5nLCBwdWJsaWMgbmFtZTogc3RyaW5nKSB7XG4gIH1cbn1cbiJdfQ==
|