@myclub_se/data-access 3.0.1 → 3.1.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/esm2022/lib/api-models/api-swish-incident.mjs +2 -0
- package/esm2022/lib/api-models/index.mjs +2 -1
- package/esm2022/lib/models/index.mjs +2 -1
- package/esm2022/lib/models/swish-incident.mjs +33 -0
- package/esm2022/lib/services/factories/index.mjs +2 -1
- package/esm2022/lib/services/factories/swish-incident-factory.mjs +3 -0
- package/esm2022/lib/services/swish-incident.service.mjs +25 -0
- package/esm2022/lib/store/actions/index.mjs +2 -1
- package/esm2022/lib/store/actions/swish-incident.actions.mjs +11 -0
- package/esm2022/lib/store/effects/data-access.effects.mjs +4 -2
- package/esm2022/lib/store/effects/swish-incidents.effects.mjs +20 -0
- package/fesm2022/myclub_se-data-access.mjs +176 -97
- package/fesm2022/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-swish-incident.d.ts +12 -0
- package/lib/api-models/index.d.ts +1 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/swish-incident.d.ts +14 -0
- package/lib/services/factories/index.d.ts +1 -0
- package/lib/services/factories/swish-incident-factory.d.ts +3 -0
- package/lib/services/swish-incident.service.d.ts +9 -0
- package/lib/store/actions/index.d.ts +1 -0
- package/lib/store/actions/swish-incident.actions.d.ts +18 -0
- package/lib/store/effects/data-access.effects.d.ts +3 -2
- package/lib/store/effects/swish-incidents.effects.d.ts +14 -0
- package/package.json +1 -1
|
@@ -51,6 +51,7 @@ export * from './api-registration-qr-code';
|
|
|
51
51
|
export * from './api-search-club';
|
|
52
52
|
export * from './api-search-team';
|
|
53
53
|
export * from './api-section';
|
|
54
|
+
export * from './api-swish-incident';
|
|
54
55
|
export * from './api-token';
|
|
55
56
|
export * from './api-user';
|
|
56
57
|
export * from './api-user-notification';
|
package/lib/models/index.d.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function swishIncidentGetMostSevereStatus(items: Array<SwishIncident>): string;
|
|
2
|
+
export declare class SwishIncident {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly swishId: string;
|
|
6
|
+
readonly status: string;
|
|
7
|
+
readonly statusDisplay: string;
|
|
8
|
+
readonly pageStatus: string;
|
|
9
|
+
readonly pageStatusDisplay: string;
|
|
10
|
+
readonly message: string;
|
|
11
|
+
readonly created: string;
|
|
12
|
+
readonly updated: string;
|
|
13
|
+
constructor(id: string, name: string, swishId: string, status: string, statusDisplay: string, pageStatus: string, pageStatusDisplay: string, message: string, created: string, updated: string);
|
|
14
|
+
}
|
|
@@ -79,6 +79,7 @@ export * from './search-member-invoice-factory';
|
|
|
79
79
|
export * from './search-member-team-through-factory';
|
|
80
80
|
export * from './section-factory';
|
|
81
81
|
export * from './swish-factory';
|
|
82
|
+
export * from './swish-incident-factory';
|
|
82
83
|
export * from './token-factory';
|
|
83
84
|
export * from './unpaid-invoice-factory';
|
|
84
85
|
export * from './user-factory';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApiService } from './api.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SwishIncidentService {
|
|
4
|
+
private apiService;
|
|
5
|
+
constructor(apiService: ApiService);
|
|
6
|
+
listSwishIncidents(): import("rxjs").Observable<import("../models").Collection<import("../models").SwishIncident>>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwishIncidentService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SwishIncidentService>;
|
|
9
|
+
}
|
|
@@ -13,6 +13,7 @@ export * from './member-card.actions';
|
|
|
13
13
|
export * from './news.actions';
|
|
14
14
|
export * from './public-form.actions';
|
|
15
15
|
export * from './store.actions';
|
|
16
|
+
export * from './swish-incident.actions';
|
|
16
17
|
export * from './team.actions';
|
|
17
18
|
export * from './token.actions';
|
|
18
19
|
export * from './user.actions';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
+
import { SwishIncident } from '../../models';
|
|
3
|
+
export declare enum SwishIncidentActionTypes {
|
|
4
|
+
ListSwishIncidents = "[SwishIncident] List Swish incidents",
|
|
5
|
+
ListSwishIncidentsFail = "[SwishIncident] List Swish incidents fail",
|
|
6
|
+
ListSwishIncidentsSuccess = "[SwishIncident] List Swish incidents success"
|
|
7
|
+
}
|
|
8
|
+
export declare const listSwishIncidentsAction: import("@ngrx/store").ActionCreator<SwishIncidentActionTypes.ListSwishIncidents, () => import("@ngrx/store").Action<SwishIncidentActionTypes.ListSwishIncidents>>;
|
|
9
|
+
export declare const listSwishIncidentsFailureAction: import("@ngrx/store").ActionCreator<SwishIncidentActionTypes.ListSwishIncidentsFail, (props: {
|
|
10
|
+
payload: HttpErrorResponse;
|
|
11
|
+
}) => {
|
|
12
|
+
payload: HttpErrorResponse;
|
|
13
|
+
} & import("@ngrx/store").Action<SwishIncidentActionTypes.ListSwishIncidentsFail>>;
|
|
14
|
+
export declare const listSwishIncidentsSuccessAction: import("@ngrx/store").ActionCreator<SwishIncidentActionTypes.ListSwishIncidentsSuccess, (props: {
|
|
15
|
+
payload: Array<SwishIncident>;
|
|
16
|
+
}) => {
|
|
17
|
+
payload: Array<SwishIncident>;
|
|
18
|
+
} & import("@ngrx/store").Action<SwishIncidentActionTypes.ListSwishIncidentsSuccess>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActivityEffects } from './activity.effects';
|
|
2
2
|
import { AuthEffects } from './auth.effects';
|
|
3
|
+
import { BookingEffects } from './booking.effects';
|
|
3
4
|
import { CalendarEffects } from './calendar.effects';
|
|
4
5
|
import { ClubInfoEffects } from './club-info.effects';
|
|
5
6
|
import { ConstantEffects } from './constant.effects';
|
|
@@ -11,8 +12,8 @@ import { MemberEffects } from './member.effects';
|
|
|
11
12
|
import { MemberCardEffects } from './member-card.effects';
|
|
12
13
|
import { NewsEffects } from './news.effects';
|
|
13
14
|
import { PublicFormEffects } from './public-form.effects';
|
|
15
|
+
import { SwishIncidentsEffects } from './swish-incidents.effects';
|
|
14
16
|
import { TeamEffects } from './team.effects';
|
|
15
17
|
import { TokenEffects } from './token.effects';
|
|
16
18
|
import { UserEffects } from './user.effects';
|
|
17
|
-
|
|
18
|
-
export declare const dataAccessEffects: (typeof ActivityEffects | typeof AuthEffects | typeof CalendarEffects | typeof ClubInfoEffects | typeof ConstantEffects | typeof EmailEffects | typeof ExternalLinkEffects | typeof FileEffects | typeof InvoiceEffects | typeof MemberEffects | typeof MemberCardEffects | typeof NewsEffects | typeof PublicFormEffects | typeof TeamEffects | typeof TokenEffects | typeof UserEffects | typeof BookingEffects)[];
|
|
19
|
+
export declare const dataAccessEffects: (typeof ActivityEffects | typeof AuthEffects | typeof BookingEffects | typeof CalendarEffects | typeof ClubInfoEffects | typeof ConstantEffects | typeof EmailEffects | typeof ExternalLinkEffects | typeof FileEffects | typeof InvoiceEffects | typeof MemberEffects | typeof MemberCardEffects | typeof NewsEffects | typeof PublicFormEffects | typeof SwishIncidentsEffects | typeof TeamEffects | typeof TokenEffects | typeof UserEffects)[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SwishIncident } from '../../models';
|
|
2
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SwishIncidentsEffects {
|
|
5
|
+
private actions$;
|
|
6
|
+
private swishIncidentService;
|
|
7
|
+
listSwishIncidents$: import("rxjs").Observable<({
|
|
8
|
+
payload: SwishIncident[];
|
|
9
|
+
} & import("@ngrx/store").Action<import("../actions").SwishIncidentActionTypes.ListSwishIncidentsSuccess>) | ({
|
|
10
|
+
payload: HttpErrorResponse;
|
|
11
|
+
} & import("@ngrx/store").Action<import("../actions").SwishIncidentActionTypes.ListSwishIncidentsFail>)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwishIncidentsEffects, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SwishIncidentsEffects>;
|
|
14
|
+
}
|
package/package.json
CHANGED