@eo4geo/ngx-bok-utils 1.2.0 → 1.2.1
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/fesm2022/eo4geo-ngx-bok-utils.mjs +817 -8
- package/fesm2022/eo4geo-ngx-bok-utils.mjs.map +1 -1
- package/lib/components/organizationAdmin/organizationAdmin.component.d.ts +53 -0
- package/lib/components/organizationForm/organizationForm.component.d.ts +29 -0
- package/lib/components/organizationPage/organizationPage.component.d.ts +56 -0
- package/lib/services/organization.service.d.ts +55 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Subscription } from "rxjs";
|
|
2
|
+
import { MessageService, ConfirmationService } from "primeng/api";
|
|
3
|
+
import { OrganizationService } from "../../services/organization.service";
|
|
4
|
+
import { UserService } from "../../services/user.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class OrganizationPageComponent {
|
|
7
|
+
private orgService;
|
|
8
|
+
private messageService;
|
|
9
|
+
private userService;
|
|
10
|
+
private confirmationService;
|
|
11
|
+
userOrganizations: {
|
|
12
|
+
_id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
email: string;
|
|
16
|
+
isAdmin: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
orgSubscription: Subscription;
|
|
19
|
+
userStateSubscription: Subscription;
|
|
20
|
+
adminMessageSubscription: Subscription;
|
|
21
|
+
organizations: {
|
|
22
|
+
_id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
}[];
|
|
25
|
+
selectedOrganization: {
|
|
26
|
+
_id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
logged: boolean;
|
|
30
|
+
duplicatedOrg: boolean;
|
|
31
|
+
newOrganization: {
|
|
32
|
+
_id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
email: string;
|
|
36
|
+
isAdmin: boolean;
|
|
37
|
+
};
|
|
38
|
+
newOrganizationError: boolean;
|
|
39
|
+
newOrganizationAcordion: never[];
|
|
40
|
+
constructor(orgService: OrganizationService, messageService: MessageService, userService: UserService, confirmationService: ConfirmationService);
|
|
41
|
+
ngOnInit(): void;
|
|
42
|
+
ngOnDestroy(): void;
|
|
43
|
+
leaveOrganization(orgId: string, orgName: string): void;
|
|
44
|
+
joinOrganization(): void;
|
|
45
|
+
updateDuplicatedOrg(): void;
|
|
46
|
+
copyEmail(email: string, name: string): void;
|
|
47
|
+
deleteModal(event: Event, orgId: string, orgName: string): void;
|
|
48
|
+
createOrganization(createData: {
|
|
49
|
+
name: string | null;
|
|
50
|
+
description: string | null;
|
|
51
|
+
contact: string | null;
|
|
52
|
+
}): void;
|
|
53
|
+
newOrganizationValidation(data: [string, string][]): boolean;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationPageComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OrganizationPageComponent, "organization-page", never, {}, {}, never, never, true, never>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ToastMessageOptions } from 'primeng/api';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class OrganizationService {
|
|
5
|
+
private auth;
|
|
6
|
+
private db;
|
|
7
|
+
private userCollection;
|
|
8
|
+
private orgCollection;
|
|
9
|
+
private adminOrganizationMessagesSource;
|
|
10
|
+
adminOrganizationMessages$: Observable<ToastMessageOptions>;
|
|
11
|
+
constructor();
|
|
12
|
+
emitMessage(message: ToastMessageOptions): void;
|
|
13
|
+
getOrganizations(): Observable<{
|
|
14
|
+
_id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}[]>;
|
|
17
|
+
getUserOrganizations(): Observable<{
|
|
18
|
+
_id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
email: string;
|
|
22
|
+
isAdmin: boolean;
|
|
23
|
+
}[]>;
|
|
24
|
+
private getOrganizationInfo;
|
|
25
|
+
getOrganizationUsers(orgId: string): Observable<{
|
|
26
|
+
_id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
email: string;
|
|
29
|
+
isAdmin: boolean;
|
|
30
|
+
}[]>;
|
|
31
|
+
private getUserInfo;
|
|
32
|
+
getOrganizationDivisions(orgId: string): Observable<string[]>;
|
|
33
|
+
leaveOrganization(orgId: string): Observable<void>;
|
|
34
|
+
joinOrganization(orgId: string): Observable<void>;
|
|
35
|
+
deleteUserFromOrganization(orgId: string, userId: string): Observable<void>;
|
|
36
|
+
addUserToOrganization(orgId: string, userId: string): Observable<void>;
|
|
37
|
+
changeAdminState(orgId: string, userId: string, newState: boolean): Observable<void>;
|
|
38
|
+
private updateUserOrganizations;
|
|
39
|
+
private updateOrganizationUsers;
|
|
40
|
+
addDivisions(orgId: string, newDivision: string): Observable<void>;
|
|
41
|
+
deleteDivision(orgId: string, newDivision: string): Observable<void>;
|
|
42
|
+
private updateOrganizationDivisions;
|
|
43
|
+
private addItem;
|
|
44
|
+
private removeItem;
|
|
45
|
+
private nothing;
|
|
46
|
+
updateOrganizationInformation(orgId: string, info: {
|
|
47
|
+
name: string | null;
|
|
48
|
+
description: string | null;
|
|
49
|
+
contact: string | null;
|
|
50
|
+
}): Observable<void>;
|
|
51
|
+
createOrganization(name: string, description: string, contact: string): Observable<void>;
|
|
52
|
+
deleteOrganization(orgId: string, users: string[]): Observable<void>;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationService, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrganizationService>;
|
|
55
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export * from './lib/components/footer/footer.component';
|
|
|
2
2
|
export * from './lib/components/header/header.component';
|
|
3
3
|
export * from './lib/components/404/notFoundPage.component';
|
|
4
4
|
export * from './lib/components/userPage/userPage.component';
|
|
5
|
+
export * from './lib/components/organizationPage/organizationPage.component';
|