@myclub_se/data-access 2.9.6 → 2.11.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.
@@ -3,7 +3,8 @@ export interface ApiSearchClub {
3
3
  leader_member_search: boolean;
4
4
  member_search: boolean;
5
5
  member_view: boolean;
6
+ name: string;
6
7
  open_activities: boolean;
7
8
  open_activities_name: string;
8
- name: string;
9
+ open_activities_search_type: string;
9
10
  }
@@ -25,6 +25,7 @@ export declare class AuthenticationService {
25
25
  authenticateByCredentials(username: string, password: string): Observable<Token>;
26
26
  authenticateByToken(token: string): Observable<Token>;
27
27
  clearAuthentication(): void;
28
+ clearPublicAuthentication(): void;
28
29
  getLoginCode(email: string, clubId: string | null): Observable<import("../models").Collection<import("../models").SearchClub>>;
29
30
  getPublicToken(email: string, code: string, clubId: string): Observable<PublicAuthentication>;
30
31
  changePublicToken(memberId: string): Observable<PublicAuthentication>;
@@ -1,4 +1,5 @@
1
1
  export * from './email-recipient.interface';
2
2
  export * from './new-account.interface';
3
+ export * from './open-activity-search-params.interface';
3
4
  export * from './option.interface';
4
5
  export * from './sms-recipient.interface';
@@ -0,0 +1,6 @@
1
+ export interface OpenActivitySearchParamsInterface {
2
+ activityTypeId?: string;
3
+ endDate: string;
4
+ locationId?: string;
5
+ startDate: string;
6
+ }
@@ -3,8 +3,9 @@ export declare class SearchClub {
3
3
  leader_member_search: boolean;
4
4
  member_search: boolean;
5
5
  member_view: boolean;
6
+ name: string;
6
7
  open_activities: boolean;
7
8
  open_activities_name: string;
8
- name: string;
9
- constructor(id: string, leader_member_search: boolean, member_search: boolean, member_view: boolean, open_activities: boolean, open_activities_name: string, name: string);
9
+ open_activities_search_type: string;
10
+ constructor(id: string, leader_member_search: boolean, member_search: boolean, member_view: boolean, name: string, open_activities: boolean, open_activities_name: string, open_activities_search_type: string);
10
11
  }
@@ -1,5 +1,6 @@
1
1
  import { ApiService } from './api.service';
2
2
  import { Activity, ActivityLocation, ActivityLocationGroup, ActivityLocationTag, ActivityType, Collection, MemberActivityInvite, Role } from '../models';
3
+ import { OpenActivitySearchParamsInterface } from '../interfaces';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ActivityService {
5
6
  private apiService;
@@ -15,11 +16,15 @@ export declare class ActivityService {
15
16
  getMemberActivityInvite(memberId: string, activityInviteId: string): import("rxjs").Observable<import("../models").ActivityInvite>;
16
17
  getMemberActivityInvites(memberId: string): import("rxjs").Observable<Collection<import("../models").ActivityInvite>>;
17
18
  getMemberCalendarEvents(memberId: string, startDate?: string | null, endDate?: string | null): import("rxjs").Observable<Collection<import("../models").Event>>;
18
- getMemberOpenActivities(memberId: string, startDate: string, endDate: string): import("rxjs").Observable<Collection<import("../models").OpenActivity>>;
19
+ getMemberOpenActivities(memberId: string, openActivitySearchParams: OpenActivitySearchParamsInterface): import("rxjs").Observable<Collection<import("../models").OpenActivity>>;
19
20
  getMemberOpenActivity(memberId: string, activityId: string): import("rxjs").Observable<import("../models").OpenActivity>;
21
+ getMemberOpenActivityActivityTypes(memberId: string, startDate?: string | null, endDate?: string | null, all?: boolean): import("rxjs").Observable<Collection<ActivityType>>;
22
+ getMemberOpenActivityLocations(memberId: string, startDate?: string | null, endDate?: string | null, all?: boolean): import("rxjs").Observable<Collection<ActivityLocation>>;
20
23
  getPublicActivityInvite(id: string, token: string): import("rxjs").Observable<import("../models").ActivityInvite>;
21
- getPublicOpenActivities(startDate: string, endDate: string): import("rxjs").Observable<Collection<import("../models").OpenActivity>>;
24
+ getPublicOpenActivities(openActivitySearchParams: OpenActivitySearchParamsInterface): import("rxjs").Observable<Collection<import("../models").OpenActivity>>;
22
25
  getPublicOpenActivity(activityId: string): import("rxjs").Observable<import("../models").OpenActivity>;
26
+ getPublicOpenActivityActivityTypes(startDate?: string | null, endDate?: string | null, all?: boolean): import("rxjs").Observable<Collection<ActivityType>>;
27
+ getPublicOpenActivityLocations(startDate?: string | null, endDate?: string | null, all?: boolean): import("rxjs").Observable<Collection<ActivityLocation>>;
23
28
  getTeamActivity(teamId: string, id: string): import("rxjs").Observable<Activity>;
24
29
  getActivityLocations(role: Role, clubOrSectionOrTeamId: string, force?: boolean): import("rxjs").Observable<Collection<ActivityLocation> | undefined>;
25
30
  getTeamActivityLocations(teamId: string, force?: boolean): import("rxjs").Observable<Collection<ActivityLocation> | undefined>;
@@ -81,6 +86,8 @@ export declare class ActivityService {
81
86
  updateTeamActivity(teamId: string, activity: Activity): import("rxjs").Observable<Activity>;
82
87
  updateTeamActivityInvite(teamId: string, activityId: string, activityInviteId: string, activityInvite: MemberActivityInvite): import("rxjs").Observable<MemberActivityInvite>;
83
88
  updateTeamActivityParticipants(teamId: string, activityId: string, members: Array<string>): import("rxjs").Observable<void>;
89
+ private getOpenActivityDateParams;
90
+ private getOpenActivitySearchParams;
84
91
  private removeUnusedActivityFields;
85
92
  static ɵfac: i0.ɵɵFactoryDeclaration<ActivityService, never>;
86
93
  static ɵprov: i0.ɵɵInjectableDeclaration<ActivityService>;
@@ -9,6 +9,7 @@ export declare class AuthService {
9
9
  removeMemberAuth(authId: string, memberId: string): import("rxjs").Observable<boolean>;
10
10
  removeSectionAuth(authId: string, sectionId: string): import("rxjs").Observable<boolean>;
11
11
  removeTeamAuth(authId: string, teamId: string): import("rxjs").Observable<boolean>;
12
+ updateMembers(): import("rxjs").Observable<boolean>;
12
13
  private removeAuth;
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
14
15
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
@@ -52,7 +52,7 @@ export declare class BookingCalendarService {
52
52
  private getClubBookingCalendarApplicationTimes;
53
53
  private getSectionBookingCalendarApplicationTimes;
54
54
  private getTeamBookingCalendarApplicationTimes;
55
- copyBookingCalendarSlots(role: Role, clubOrSectionOrTeamId: string, weekRelativeIndexes: number[], onlyCopySlots: boolean | undefined, bookingSlotFilter: BookingSlotFilter): import("rxjs").Observable<boolean>;
55
+ copyBookingCalendarSlots(role: Role, clubOrSectionOrTeamId: string, weekRelativeIndexes: number[], onlyCopySlots: boolean | undefined, weekdays: number[] | undefined, bookingSlotFilter: BookingSlotFilter): import("rxjs").Observable<boolean>;
56
56
  private copyClubBookingCalendarSlots;
57
57
  private copySectionBookingCalendarSlots;
58
58
  clearBookingCalendarSlots(role: Role, clubOrSectionOrTeamId: string, currentWeekStartDate: string, weekRelativeIndexes: number[], onlyDeleteSessions: boolean | undefined, shouldDeleteRepeatingSlots: boolean | undefined, bookingSlotFilter: BookingSlotFilter): import("rxjs").Observable<boolean>;
@@ -4,6 +4,7 @@ export declare class ClubService {
4
4
  private apiService;
5
5
  constructor(apiService: ApiService);
6
6
  getMemberClubInfo(memberId: string): import("rxjs").Observable<import("../models").SearchClub>;
7
+ getPublicClubInfo(): import("rxjs").Observable<import("../models").SearchClub>;
7
8
  getTeamClubInfo(teamId: string): import("rxjs").Observable<import("../models").SearchClub>;
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ClubService, never>;
9
10
  static ɵprov: i0.ɵɵInjectableDeclaration<ClubService>;
@@ -1,10 +1,11 @@
1
- import { MemberTeam, MemberTeamThrough, SearchTeam } from '../models';
1
+ import { MemberTeam, MemberTeamThrough, Role, SearchTeam } from '../models';
2
2
  import { ApiService } from './api.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TeamService {
5
5
  private apiService;
6
6
  constructor(apiService: ApiService);
7
7
  deleteTeamLeaderTeamMember(teamId: string, id: string): import("rxjs").Observable<boolean>;
8
+ getTeams(role: Role, clubOrSectionOrTeamId: string): import("rxjs").Observable<import("../models").Collection<SearchTeam>>;
8
9
  getClubTeams(clubId: string): import("rxjs").Observable<import("../models").Collection<SearchTeam>>;
9
10
  getMemberTeam(memberId: string, teamId: string): import("rxjs").Observable<MemberTeam>;
10
11
  getMemberTeamExtraMember(memberId: string, teamId: string, id: string): import("rxjs").Observable<import("../models").ActivityExtraMember>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@myclub_se/data-access",
3
3
  "description": "This is the package required to access the api for the MyClub Member API V3 from angular",
4
- "version": "2.9.6",
4
+ "version": "2.11.0",
5
5
  "license": "MIT",
6
6
  "main": "src/index.ts",
7
7
  "peerDependencies": {