@myclub_se/data-access 2.4.0 → 2.5.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-group-role.mjs +2 -0
- package/esm2020/lib/api-models/api-invoice/api-member-invoice.mjs +1 -1
- package/esm2020/lib/api-models/api-member-public-form.mjs +1 -1
- package/esm2020/lib/api-models/index.mjs +2 -1
- package/esm2020/lib/models/group-role.mjs +11 -0
- package/esm2020/lib/models/index.mjs +2 -1
- package/esm2020/lib/models/invoice/member-invoice.mjs +3 -2
- package/esm2020/lib/models/member-public-form.mjs +10 -2
- package/esm2020/lib/services/api.service.mjs +7 -1
- package/esm2020/lib/services/booking-calendar.service.mjs +30 -5
- package/esm2020/lib/services/factories/group-role-factory.mjs +3 -0
- package/esm2020/lib/services/factories/index.mjs +6 -1
- package/esm2020/lib/services/factories/member-invoice-factory.mjs +2 -2
- package/esm2020/lib/services/factories/member-public-form-factory.mjs +5 -3
- package/fesm2015/myclub_se-data-access.mjs +71 -14
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +71 -14
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-group-role.d.ts +8 -0
- package/lib/api-models/api-invoice/api-member-invoice.d.ts +1 -0
- package/lib/api-models/api-member-public-form.d.ts +9 -0
- package/lib/api-models/index.d.ts +1 -0
- package/lib/models/group-role.d.ts +9 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/invoice/member-invoice.d.ts +2 -1
- package/lib/models/member-public-form.d.ts +10 -1
- package/lib/services/api.service.d.ts +2 -0
- package/lib/services/booking-calendar.service.d.ts +1 -0
- package/lib/services/factories/group-role-factory.d.ts +3 -0
- package/lib/services/factories/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import { ApiSearchTeam } from './api-search-team';
|
|
2
2
|
import { ApiMemberType } from './api-member-type';
|
|
3
|
+
import { ApiGroupRole } from './api-group-role';
|
|
3
4
|
export interface ApiMemberPublicForm {
|
|
4
5
|
id: string;
|
|
5
6
|
active_from: string | null;
|
|
6
7
|
active_to: string | null;
|
|
7
8
|
comment: string;
|
|
9
|
+
dataprotection_policy_choice: string;
|
|
10
|
+
dataprotection_policy_url: string | null;
|
|
8
11
|
fields: Object | null;
|
|
9
12
|
full_text: string;
|
|
13
|
+
has_nationality_field: boolean;
|
|
14
|
+
max_members_per_team: number;
|
|
10
15
|
max_registered_in_form_total: number;
|
|
11
16
|
member_types: Array<ApiMemberType>;
|
|
17
|
+
member_type_help_text: string;
|
|
12
18
|
name: string;
|
|
19
|
+
num_chars_birth_date: number;
|
|
13
20
|
num_registered: number;
|
|
21
|
+
role_help_text: string;
|
|
22
|
+
roles: Array<ApiGroupRole>;
|
|
14
23
|
team_help_text: string;
|
|
15
24
|
teams: Array<ApiSearchTeam>;
|
|
16
25
|
url: string;
|
|
@@ -21,6 +21,7 @@ export * from './api-event';
|
|
|
21
21
|
export * from './api-external-link';
|
|
22
22
|
export * from './api-file-object';
|
|
23
23
|
export * from './api-general-image';
|
|
24
|
+
export * from './api-group-role';
|
|
24
25
|
export * from './api-image-urls';
|
|
25
26
|
export * from './api-invoice';
|
|
26
27
|
export * from './api-member';
|
package/lib/models/index.d.ts
CHANGED
|
@@ -15,10 +15,11 @@ export declare class MemberInvoice {
|
|
|
15
15
|
invoiceText: string;
|
|
16
16
|
isPaid: boolean;
|
|
17
17
|
memberId: string;
|
|
18
|
+
organisationName: string;
|
|
18
19
|
payee: string;
|
|
19
20
|
paymentUrl: string;
|
|
20
21
|
reference: string;
|
|
21
22
|
swish: Swish | null;
|
|
22
23
|
zimpler: Zimpler | null;
|
|
23
|
-
constructor(id: string, amount: number, amountPaid: number, balance: number, clubBillId: number, clubName: string, creditCard: CreditCard | null, datePaid: string, dueDate: string, giro: Giro | null, invoiceRows: Array<MemberInvoiceRow>, invoiceText: string, isPaid: boolean, memberId: string, payee: string, paymentUrl: string, reference: string, swish: Swish | null, zimpler: Zimpler | null);
|
|
24
|
+
constructor(id: string, amount: number, amountPaid: number, balance: number, clubBillId: number, clubName: string, creditCard: CreditCard | null, datePaid: string, dueDate: string, giro: Giro | null, invoiceRows: Array<MemberInvoiceRow>, invoiceText: string, isPaid: boolean, memberId: string, organisationName: string, payee: string, paymentUrl: string, reference: string, swish: Swish | null, zimpler: Zimpler | null);
|
|
24
25
|
}
|
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
import { MemberPublicFormField } from './member-public-form-field';
|
|
2
2
|
import { SearchTeam } from './search-team';
|
|
3
3
|
import { MemberType } from './member-type';
|
|
4
|
+
import { GroupRole } from './group-role';
|
|
4
5
|
export declare class MemberPublicForm {
|
|
5
6
|
id: string;
|
|
6
7
|
active_form: string | null;
|
|
7
8
|
active_to: string | null;
|
|
8
9
|
userToken: string | null;
|
|
9
10
|
comment: string;
|
|
11
|
+
dataprotection_policy_choice: string;
|
|
12
|
+
dataprotection_policy_url: string | null;
|
|
10
13
|
fields: Map<string, MemberPublicFormField>;
|
|
11
14
|
full_text: string;
|
|
15
|
+
has_nationality_field: boolean;
|
|
16
|
+
max_members_per_team: number;
|
|
12
17
|
max_registered_in_form_total: number;
|
|
13
18
|
member_types: Array<MemberType>;
|
|
19
|
+
member_type_help_text: string;
|
|
14
20
|
name: string;
|
|
21
|
+
num_chars_birth_date: number;
|
|
15
22
|
num_registered: number;
|
|
23
|
+
role_help_text: string;
|
|
24
|
+
roles: Array<GroupRole>;
|
|
16
25
|
team_help_text: string;
|
|
17
26
|
teams: Array<SearchTeam>;
|
|
18
27
|
url: string;
|
|
19
|
-
constructor(id: string, active_form: string | null, active_to: string | null, userToken: string | null, comment: string, fields: Map<string, MemberPublicFormField>, full_text: string, max_registered_in_form_total: number, member_types: Array<MemberType>, name: string, num_registered: number, team_help_text: string, teams: Array<SearchTeam>, url: string);
|
|
28
|
+
constructor(id: string, active_form: string | null, active_to: string | null, userToken: string | null, comment: string, dataprotection_policy_choice: string, dataprotection_policy_url: string | null, fields: Map<string, MemberPublicFormField>, full_text: string, has_nationality_field: boolean, max_members_per_team: number, max_registered_in_form_total: number, member_types: Array<MemberType>, member_type_help_text: string, name: string, num_chars_birth_date: number, num_registered: number, role_help_text: string, roles: Array<GroupRole>, team_help_text: string, teams: Array<SearchTeam>, url: string);
|
|
20
29
|
}
|
|
@@ -26,6 +26,7 @@ export declare class ApiService {
|
|
|
26
26
|
[key: string]: string;
|
|
27
27
|
} | FormData): import("rxjs").Observable<T>;
|
|
28
28
|
postResource<A, T>(factory: Factory<A, T>, role: Role, path: string, pathParams: PathParams | undefined, data: unknown, options?: Options): import("rxjs").Observable<T>;
|
|
29
|
+
postResourceNoResponse(role: Role, path: string, pathParams: PathParams | undefined, data: unknown, options?: Options): import("rxjs").Observable<boolean>;
|
|
29
30
|
updateResource<A, T>(responseFactory: Factory<A, T>, role: Role, path: string, pathParams: PathParams | undefined, data: unknown, options?: Options): import("rxjs").Observable<T>;
|
|
30
31
|
private delete;
|
|
31
32
|
private get;
|
|
@@ -33,6 +34,7 @@ export declare class ApiService {
|
|
|
33
34
|
private patch;
|
|
34
35
|
private path;
|
|
35
36
|
private post;
|
|
37
|
+
private postEmptyResponse;
|
|
36
38
|
private url;
|
|
37
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiService, never>;
|
|
38
40
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiService>;
|
|
@@ -11,6 +11,7 @@ export declare class BookingCalendarService {
|
|
|
11
11
|
deleteClubBookingCalendar(clubId: string, id: string): import("rxjs").Observable<boolean>;
|
|
12
12
|
createClubBookingCalendarSlot(clubId: string, slot: Partial<BookingCalendarSlot>): import("rxjs").Observable<BookingCalendarSlot>;
|
|
13
13
|
getClubBookingCalendarSlots(clubId: string, startDate?: string | null, endDate?: string | null, calendarIds?: string[] | null, locationIds?: string[] | null, teamIds?: string[] | null, hasOpenSessions?: boolean | null): import("rxjs").Observable<import("../models").Collection<BookingCalendarSlot>>;
|
|
14
|
+
copyClubBookingCalendarSlots(clubId: string, weekRelativeIndexes: number[], startDate?: string | null, endDate?: string | null, calendarIds?: string[] | null, locationIds?: string[] | null, teamIds?: string[] | null, hasOpenSessions?: boolean | null): import("rxjs").Observable<boolean>;
|
|
14
15
|
getClubBookingCalendarSlot(clubId: string, id: string): import("rxjs").Observable<BookingCalendarSlot>;
|
|
15
16
|
updateClubBookingCalendarSlot(clubId: string, slot: BookingCalendarSlot): import("rxjs").Observable<BookingCalendarSlot>;
|
|
16
17
|
deleteClubBookingCalendarSlot(clubId: string, id: string): import("rxjs").Observable<boolean>;
|
|
@@ -9,6 +9,10 @@ export * from './auth-member-factory';
|
|
|
9
9
|
export * from './auth-section-factory';
|
|
10
10
|
export * from './auth-team-factory';
|
|
11
11
|
export * from './auth-team-section-factory';
|
|
12
|
+
export * from './booking-calendar-factory';
|
|
13
|
+
export * from './booking-calendar-slot-factory';
|
|
14
|
+
export * from './booking-calendar-slot-session-factory';
|
|
15
|
+
export * from './booking-settings-factory';
|
|
12
16
|
export * from './card-deal-factory';
|
|
13
17
|
export * from './card-factory';
|
|
14
18
|
export * from './card-logo-factory';
|
|
@@ -28,6 +32,7 @@ export * from './external-link-factory';
|
|
|
28
32
|
export * from './file-factory';
|
|
29
33
|
export * from './general-image-factory';
|
|
30
34
|
export * from './giro-factory';
|
|
35
|
+
export * from './group-role-factory';
|
|
31
36
|
export * from './home-team-factory';
|
|
32
37
|
export * from './image-urls-factory';
|
|
33
38
|
export * from './member-attribute-factory';
|
package/package.json
CHANGED