@ieeesa-npm/groups 0.1.2 → 0.1.4

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.
@@ -1,9 +1,10 @@
1
- import { Observable } from 'rxjs';
2
- import { CreateGroupPayload, CreateGroupResponse } from '../models/create-group.model';
3
- import { GroupTypeResponse } from '../models/group-types.model';
4
- import { AlertsService, HttpService } from '@ieeesa-npm/utility';
5
- import { GetGroupResponse, GetGroupsPayload } from '../models/view-group.model';
1
+ import { Observable } from "rxjs";
2
+ import { CreateGroupPayload, CreateGroupResponse } from "../models/create-group.model";
3
+ import { GroupTypeResponse } from "../models/group-types.model";
4
+ import { AlertsService, HttpService } from "@ieeesa-npm/utility";
5
+ import { GetGroupResponse, GetGroupsPayload } from "../models/view-group.model";
6
6
  import { DeleteGroupPayload } from '../models/delete-group.model';
7
+ import { GroupInfo } from "../models/group-info.model";
7
8
  import * as i0 from "@angular/core";
8
9
  /**
9
10
  * Groups service is an abstract layer and responsible for managing groups REST API calls.
@@ -15,14 +16,33 @@ export declare class GroupsService {
15
16
  groupsText: {
16
17
  "1001": string;
17
18
  "1002": string;
18
- "1010": string;
19
+ "1003": string;
20
+ "1004": string;
21
+ "1005": string; /**
22
+ * Sets selected group info.
23
+ * @param {(GroupInfo | undefined)} selectedGroupInfo -selected group info.
24
+ * @memberof GroupsService
25
+ */
26
+ "1006": string;
27
+ "1008": string;
28
+ "1009": string;
29
+ "1010": string; /**
30
+ * Returns the selected group info.
31
+ * @return {(GroupInfo | undefined)} -group info.
32
+ * @memberof GroupsService
33
+ */
19
34
  "1011": string;
20
35
  "1012": string;
21
- "1009": string;
22
- "1008": string;
36
+ "1013": string;
37
+ "1014": string;
38
+ "1015": string;
39
+ "1016": string;
40
+ "1017": string;
41
+ "1018": string;
23
42
  };
24
43
  apiBaseUrl: string;
25
44
  userPermission: any;
45
+ selectedGroupInfo: GroupInfo | undefined;
26
46
  constructor(httpService: HttpService, alertService: AlertsService);
27
47
  setAppConfig(apiBaseUrl: string, userPermission: any): void;
28
48
  /**
@@ -59,6 +79,18 @@ export declare class GroupsService {
59
79
  * @memberof GroupsService
60
80
  */
61
81
  parseErrorMessage(errorCodes: string[]): string[];
82
+ /**
83
+ * Sets selected group info.
84
+ * @param {(GroupInfo | undefined)} selectedGroupInfo -selected group info.
85
+ * @memberof GroupsService
86
+ */
87
+ setSelectedGroupInfo(selectedGroupInfo: GroupInfo | undefined): void;
88
+ /**
89
+ * Returns the selected group info.
90
+ * @return {(GroupInfo | undefined)} -group info.
91
+ * @memberof GroupsService
92
+ */
93
+ getSelectedGroupInfo(): GroupInfo | undefined;
62
94
  static ɵfac: i0.ɵɵFactoryDeclaration<GroupsService, never>;
63
95
  static ɵprov: i0.ɵɵInjectableDeclaration<GroupsService>;
64
96
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/groups",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
7
- "@ieeesa-npm/presentation": "^0.3.8",
8
- "@ieeesa-npm/shared-styles": "^0.0.7",
9
- "@ieeesa-npm/utility": "^0.3.0"
7
+ "@ieeesa-npm/presentation": "^0.4.2",
8
+ "@ieeesa-npm/shared-styles": "^0.0.9",
9
+ "@ieeesa-npm/utility": "^0.3.3"
10
10
  },
11
11
  "dependencies": {
12
12
  "tslib": "^2.3.0"