@ieeesa-npm/tenants 0.4.3 → 0.4.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.
Files changed (144) hide show
  1. package/.eslintrc.json +31 -0
  2. package/ng-package.json +8 -0
  3. package/package.json +12 -25
  4. package/src/lib/assets/constants.json +454 -0
  5. package/src/lib/assets/tenant-validations.ts +18 -0
  6. package/src/lib/assets/tenants-mock.ts +1240 -0
  7. package/src/lib/components/create-modify-group-type/create-modify-group-type.component.html +15 -0
  8. package/src/lib/components/create-modify-group-type/create-modify-group-type.component.scss +44 -0
  9. package/src/lib/components/create-modify-group-type/create-modify-group-type.component.spec.ts +574 -0
  10. package/src/lib/components/create-modify-group-type/create-modify-group-type.component.ts +602 -0
  11. package/src/lib/components/create-modify-role/create-modify-role.component.html +15 -0
  12. package/src/lib/components/create-modify-role/create-modify-role.component.scss +83 -0
  13. package/src/lib/components/create-modify-role/create-modify-role.component.spec.ts +346 -0
  14. package/src/lib/components/create-modify-role/create-modify-role.component.ts +321 -0
  15. package/src/lib/components/create-tenant-application/create-tenant-application.component.html +18 -0
  16. package/src/lib/components/create-tenant-application/create-tenant-application.component.scss +73 -0
  17. package/src/lib/components/create-tenant-application/create-tenant-application.component.spec.ts +775 -0
  18. package/src/lib/components/create-tenant-application/create-tenant-application.component.ts +638 -0
  19. package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.html +22 -0
  20. package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.scss +79 -0
  21. package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.spec.ts +716 -0
  22. package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.ts +504 -0
  23. package/src/lib/components/tenant-basic-details/tenant-basic-details.component.html +44 -0
  24. package/src/lib/components/tenant-basic-details/tenant-basic-details.component.scss +16 -0
  25. package/src/lib/components/tenant-basic-details/tenant-basic-details.component.spec.ts +115 -0
  26. package/src/lib/components/tenant-basic-details/tenant-basic-details.component.ts +109 -0
  27. package/src/lib/components/view-tenant-details/view-tenant-details.component.html +195 -0
  28. package/src/lib/components/view-tenant-details/view-tenant-details.component.scss +163 -0
  29. package/src/lib/components/view-tenant-details/view-tenant-details.component.spec.ts +1221 -0
  30. package/src/lib/components/view-tenant-details/view-tenant-details.component.ts +876 -0
  31. package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.html +10 -0
  32. package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.scss +44 -0
  33. package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.spec.ts +410 -0
  34. package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.ts +219 -0
  35. package/src/lib/components/view-tenants-list/view-tenants-list.component.html +32 -0
  36. package/src/lib/components/view-tenants-list/view-tenants-list.component.scss +35 -0
  37. package/src/lib/components/view-tenants-list/view-tenants-list.component.spec.ts +464 -0
  38. package/src/lib/components/view-tenants-list/view-tenants-list.component.ts +388 -0
  39. package/src/lib/models/app-type-config.model.ts +14 -0
  40. package/src/lib/models/app-type.model.ts +5 -0
  41. package/src/lib/models/create-group-type-config.model.ts +18 -0
  42. package/src/lib/models/create-group-type.model.ts +46 -0
  43. package/src/lib/models/feature-permission-id.model.ts +6 -0
  44. package/src/lib/models/features.model.ts +15 -0
  45. package/src/lib/models/form-status.model.ts +5 -0
  46. package/src/lib/models/permission-type.model.ts +9 -0
  47. package/src/lib/models/role-menu-action.model.ts +5 -0
  48. package/src/lib/models/role-type.model.ts +34 -0
  49. package/src/lib/models/roles-and-permissions-table-type.model.ts +5 -0
  50. package/src/lib/models/roles-and-permissions.model.ts +113 -0
  51. package/src/lib/models/route-config.model.ts +4 -0
  52. package/src/lib/models/table-column-schema-view-tenant-list.model.ts +21 -0
  53. package/src/lib/models/tenant-function-type.model.ts +10 -0
  54. package/src/lib/models/tenant.model.ts +47 -0
  55. package/src/lib/models/tenants-permission.model.ts +9 -0
  56. package/src/lib/models/update-tenant-status.model.ts +12 -0
  57. package/src/lib/models/view-tenant-group-types.model.ts +34 -0
  58. package/src/lib/services/tenant-applications.service.spec.ts +1245 -0
  59. package/src/lib/services/tenant-applications.service.ts +798 -0
  60. package/src/lib/services/tenant-permissions-map.service.spec.ts +25 -0
  61. package/src/lib/services/tenant-permissions-map.service.ts +28 -0
  62. package/src/lib/services/tenant-permissions.service.spec.ts +62 -0
  63. package/src/lib/services/tenant-permissions.service.ts +49 -0
  64. package/src/lib/tenant-applications.component.html +0 -0
  65. package/src/lib/tenant-applications.component.scss +0 -0
  66. package/src/lib/tenant-applications.component.spec.ts +28 -0
  67. package/src/lib/tenant-applications.component.ts +12 -0
  68. package/src/lib/tenant-applications.module.ts +8 -0
  69. package/{public-api.d.ts → src/public-api.ts} +40 -33
  70. package/tsconfig.lib.json +14 -0
  71. package/tsconfig.lib.prod.json +10 -0
  72. package/tsconfig.spec.json +14 -0
  73. package/esm2022/ieeesa-npm-tenants.mjs +0 -5
  74. package/esm2022/lib/assets/constants.json +0 -454
  75. package/esm2022/lib/assets/tenant-validations.mjs +0 -17
  76. package/esm2022/lib/components/create-modify-group-type/create-modify-group-type.component.mjs +0 -477
  77. package/esm2022/lib/components/create-modify-role/create-modify-role.component.mjs +0 -280
  78. package/esm2022/lib/components/create-tenant-application/create-tenant-application.component.mjs +0 -512
  79. package/esm2022/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.mjs +0 -391
  80. package/esm2022/lib/components/tenant-basic-details/tenant-basic-details.component.mjs +0 -95
  81. package/esm2022/lib/components/view-tenant-details/view-tenant-details.component.mjs +0 -732
  82. package/esm2022/lib/components/view-tenant-group-types/view-tenant-group-types.component.mjs +0 -194
  83. package/esm2022/lib/components/view-tenants-list/view-tenants-list.component.mjs +0 -334
  84. package/esm2022/lib/models/app-type-config.model.mjs +0 -2
  85. package/esm2022/lib/models/app-type.model.mjs +0 -7
  86. package/esm2022/lib/models/create-group-type-config.model.mjs +0 -22
  87. package/esm2022/lib/models/create-group-type.model.mjs +0 -2
  88. package/esm2022/lib/models/feature-permission-id.model.mjs +0 -8
  89. package/esm2022/lib/models/features.model.mjs +0 -2
  90. package/esm2022/lib/models/form-status.model.mjs +0 -7
  91. package/esm2022/lib/models/permission-type.model.mjs +0 -12
  92. package/esm2022/lib/models/role-menu-action.model.mjs +0 -7
  93. package/esm2022/lib/models/role-type.model.mjs +0 -2
  94. package/esm2022/lib/models/roles-and-permissions-table-type.model.mjs +0 -7
  95. package/esm2022/lib/models/roles-and-permissions.model.mjs +0 -2
  96. package/esm2022/lib/models/route-config.model.mjs +0 -2
  97. package/esm2022/lib/models/table-column-schema-view-tenant-list.model.mjs +0 -16
  98. package/esm2022/lib/models/tenant-function-type.model.mjs +0 -12
  99. package/esm2022/lib/models/tenant.model.mjs +0 -2
  100. package/esm2022/lib/models/tenants-permission.model.mjs +0 -2
  101. package/esm2022/lib/models/update-tenant-status.model.mjs +0 -2
  102. package/esm2022/lib/models/view-tenant-group-types.model.mjs +0 -11
  103. package/esm2022/lib/services/tenant-applications.service.mjs +0 -618
  104. package/esm2022/lib/services/tenant-permissions-map.service.mjs +0 -36
  105. package/esm2022/lib/services/tenant-permissions.service.mjs +0 -38
  106. package/esm2022/lib/tenant-applications.component.mjs +0 -14
  107. package/esm2022/lib/tenant-applications.module.mjs +0 -16
  108. package/esm2022/public-api.mjs +0 -37
  109. package/fesm2022/ieeesa-npm-tenants.mjs +0 -4241
  110. package/fesm2022/ieeesa-npm-tenants.mjs.map +0 -1
  111. package/index.d.ts +0 -5
  112. package/lib/assets/tenant-validations.d.ts +0 -15
  113. package/lib/components/create-modify-group-type/create-modify-group-type.component.d.ts +0 -129
  114. package/lib/components/create-modify-role/create-modify-role.component.d.ts +0 -103
  115. package/lib/components/create-tenant-application/create-tenant-application.component.d.ts +0 -128
  116. package/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.d.ts +0 -106
  117. package/lib/components/tenant-basic-details/tenant-basic-details.component.d.ts +0 -472
  118. package/lib/components/view-tenant-details/view-tenant-details.component.d.ts +0 -223
  119. package/lib/components/view-tenant-group-types/view-tenant-group-types.component.d.ts +0 -63
  120. package/lib/components/view-tenants-list/view-tenants-list.component.d.ts +0 -134
  121. package/lib/models/app-type-config.model.d.ts +0 -14
  122. package/lib/models/app-type.model.d.ts +0 -4
  123. package/lib/models/create-group-type-config.model.d.ts +0 -16
  124. package/lib/models/create-group-type.model.d.ts +0 -49
  125. package/lib/models/feature-permission-id.model.d.ts +0 -4
  126. package/lib/models/features.model.d.ts +0 -15
  127. package/lib/models/form-status.model.d.ts +0 -4
  128. package/lib/models/permission-type.model.d.ts +0 -8
  129. package/lib/models/role-menu-action.model.d.ts +0 -4
  130. package/lib/models/role-type.model.d.ts +0 -27
  131. package/lib/models/roles-and-permissions-table-type.model.d.ts +0 -4
  132. package/lib/models/roles-and-permissions.model.d.ts +0 -119
  133. package/lib/models/route-config.model.d.ts +0 -4
  134. package/lib/models/table-column-schema-view-tenant-list.model.d.ts +0 -20
  135. package/lib/models/tenant-function-type.model.d.ts +0 -9
  136. package/lib/models/tenant.model.d.ts +0 -51
  137. package/lib/models/tenants-permission.model.d.ts +0 -9
  138. package/lib/models/update-tenant-status.model.d.ts +0 -14
  139. package/lib/models/view-tenant-group-types.model.d.ts +0 -29
  140. package/lib/services/tenant-applications.service.d.ts +0 -398
  141. package/lib/services/tenant-permissions-map.service.d.ts +0 -13
  142. package/lib/services/tenant-permissions.service.d.ts +0 -22
  143. package/lib/tenant-applications.component.d.ts +0 -5
  144. package/lib/tenant-applications.module.d.ts +0 -6
@@ -1,398 +0,0 @@
1
- import { HttpService } from '@ieeesa-npm/utility';
2
- import { Observable, Subject } from 'rxjs';
3
- import { GetTenantsPayload } from '../models/table-column-schema-view-tenant-list.model';
4
- import { TenantsPermissions, UserPermission } from '../models/tenants-permission.model';
5
- import { PermissionType } from '../models/permission-type.model';
6
- import { TenantPermissionsMapService } from './tenant-permissions-map.service';
7
- import { CreateTenantRequestPayload, CreateTenantResponse, GetTenantsResponse, NewTenantInfo, TenantBasicInfo, TenantDetailsResponse } from '../models/tenant.model';
8
- import { CheckboxOption, RadioOption } from '@ieeesa-npm/presentation';
9
- import { FeatureId, Features, GetFeaturesResponse } from '../models/features.model';
10
- import { AppTypeConfig, GetAppTypesResponse } from '../models/app-type-config.model';
11
- import { TenantPermissionsService } from './tenant-permissions.service';
12
- import { TenantFunctionType } from '../models/tenant-function-type.model';
13
- import { GetRolesAndPermissionsPayload, GetRolesAndPermissionsResponse, GetRolesResponse, RoleInfo, DeleteRoleRequestPayload, DeleteRoleResponse, Role, GetPermissionsResponse, RolePermissionMappingRequestPayload, RolePermissionMappingResponse, RolesAndPermissionsRequestPayload, RolesAndPermissionsResponse, RoleDetails, CreateModifyRoleRequestPayload, CreateModifyRoleResponse } from '../models/roles-and-permissions.model';
14
- import { UpdateTenantStatusRequestPayload, UpdateTenantStatusResponse } from '../models/update-tenant-status.model';
15
- import { GetRoleTypesPayload, RoleTypeConfiguration, RoleTypeOption, RoleTypeResponse } from '../models/role-type.model';
16
- import { ViewGroupTypeResponse } from '../models/view-tenant-group-types.model';
17
- import { CreateGroupTypeRequestPayload, CreateGroupTypeResponse, CreatedOrModifiedGroupTypeInfo, GetRosterTypeOrSettingsResponse } from '../models/create-group-type.model';
18
- import * as i0 from "@angular/core";
19
- export declare class TenantApplicationsService {
20
- private httpService;
21
- private tenantPermissionsService;
22
- private tenantPermissionsMapService;
23
- tenantsText: {
24
- "2050": string;
25
- "2051": string;
26
- "2054": string;
27
- "3007": string;
28
- "3008": string;
29
- "3009": string;
30
- "3010": string;
31
- "3011": string;
32
- };
33
- apiBaseUrl: string;
34
- userPermission: UserPermission[];
35
- selectedTenantInfo: TenantBasicInfo | undefined;
36
- userTenantsPermissions: TenantsPermissions[];
37
- createTenantsText: {
38
- "2003": string;
39
- "2026": string;
40
- "2028": string;
41
- "2029": string;
42
- "2030": string;
43
- "2031": string;
44
- "2032": string;
45
- "2033": string;
46
- "2034": string;
47
- "2035": string;
48
- "2036": string;
49
- "2037": string;
50
- "2038": string;
51
- "2039": string;
52
- "2040": string;
53
- "2041": string;
54
- "2042": string;
55
- "2043": string;
56
- "2044": string;
57
- "2045": string;
58
- "2046": string;
59
- "2047": string;
60
- "2048": string;
61
- "2049": string;
62
- "2050": string;
63
- "2052": string;
64
- "2053": string;
65
- };
66
- newTenantInfo: NewTenantInfo;
67
- tenantFunctionType: TenantFunctionType;
68
- radioOptions: RadioOption[];
69
- checkBoxOptions: CheckboxOption[];
70
- appTypeInfo: RadioOption[];
71
- featureList: Features[];
72
- roleTypeOptions: RoleTypeOption[];
73
- newlyCreatedRole: RoleInfo;
74
- roleTypeOption: RoleTypeOption[];
75
- selectedRoleInfo: RoleDetails;
76
- roles: Role[];
77
- groupTypes: ViewGroupTypeResponse;
78
- newlyCreatedGroupType: CreatedOrModifiedGroupTypeInfo;
79
- isGroupTypeAddedOrModified: Subject<boolean>;
80
- constructor(httpService: HttpService, tenantPermissionsService: TenantPermissionsService, tenantPermissionsMapService: TenantPermissionsMapService);
81
- setAppConfig(apiBaseUrl: string, userPermission: UserPermission[]): void;
82
- /**
83
- * Gets tenant details from server using HttpService
84
- * @param {string} appId
85
- * @return {Observable<TenantDetailsResponse>}
86
- * @memberof TenantApplicationsService
87
- */
88
- getTenantDetails(appId: string): Observable<TenantDetailsResponse>;
89
- /**
90
- * Sets the user tenants permissions
91
- * @param {TenantsPermissions[]} TenantsPermissions
92
- * @memberof TenantApplicationsService
93
- */
94
- setUserTenantsPermissions(userTenantsPermissions: TenantsPermissions[]): void;
95
- /**
96
- * Returns the user tenants permissions
97
- * @return {TenantsPermissions[]}
98
- * @memberof TenantApplicationsService
99
- */
100
- getUserTenantsPermissions(): TenantsPermissions[];
101
- /**
102
- * Sets the user tenants information
103
- * @param {TenantBasicInfo} tenantInfo
104
- * @memberof TenantApplicationsService
105
- */
106
- setSelectedTenantInformation(tenantInfo: TenantBasicInfo): void;
107
- /**
108
- * Returns the tenants information
109
- * @return {TenantBasicInfo}
110
- * @memberof TenantApplicationsService
111
- */
112
- getSelectedTenantInformation(): TenantBasicInfo | undefined;
113
- /**
114
- * Sets the roles informations
115
- * @param {Role} roles
116
- * @memberof TenantApplicationsService
117
- */
118
- setRolesInfo(roles: Role[]): void;
119
- /**
120
- * Returns the roles information
121
- * @return {Role}
122
- * @memberof TenantApplicationsService
123
- */
124
- getRolesInfo(): Role[] | undefined;
125
- /**
126
- * Sets the selected role information.
127
- * @param {RoleDetails} roleInfo
128
- * @memberof TenantApplicationsService
129
- */
130
- setSelectedRoleInformation(roleInfo: RoleDetails): void;
131
- /**
132
- * Returns the selected role information.
133
- * @return {RoleDetails}
134
- * @memberof TenantApplicationsService
135
- */
136
- getSelectedRoleInformation(): RoleDetails | undefined;
137
- /**
138
- * Sets the tenant role type options.
139
- * @param {RoleTypeOption} roleTypeOptions
140
- * @memberof TenantApplicationsService
141
- */
142
- setRoleTypeOption(roleTypeOptions: RoleTypeOption[]): void;
143
- /**
144
- * Returns the tenant role type options.
145
- * @return {RoleTypeOption}
146
- * @memberof TenantApplicationsService
147
- */
148
- getRoleTypeOption(): RoleTypeOption[];
149
- /**
150
- * Sets the list of application type information
151
- * @param {RadioOption} appTypeInfo
152
- * @memberof TenantApplicationsService
153
- */
154
- setApplicationType(appTypeInfo: RadioOption[]): void;
155
- /**
156
- * Returns the list of application type information
157
- * @return {RadioOption}
158
- * @memberof TenantApplicationsService
159
- */
160
- getApplicationType(): RadioOption[] | undefined;
161
- /**
162
- * Filter permissions
163
- * @param usersPermissions
164
- * @returns @memberof TenantApplicationsService
165
- */
166
- filterPermission(usersPermissions: UserPermission[]): TenantsPermissions[];
167
- /**
168
- * Validating access for tenants
169
- * @param permissionType Permission Type to validate permission
170
- * @param mappedUserPermissions Permission which are mapped with tenants
171
- * @returns true if permission is granted
172
- */
173
- validateAccess(permissionType: PermissionType, permissions: TenantsPermissions[]): boolean;
174
- /**
175
- * Gets the tenants.
176
- * @param {GetTenantsPayload} payload
177
- * @return {Observable<GetTenantsResponse>}
178
- * @memberof TenantApplicationsService
179
- */
180
- getTenantsList(payload: GetTenantsPayload): Observable<GetTenantsResponse>;
181
- /**
182
- * Gets list of features from server using HttpService.
183
- * @return {Observable<GetFeaturesResponse>}
184
- * @memberof TenantApplicationsService
185
- */
186
- getFeatures(): Observable<GetFeaturesResponse>;
187
- /**
188
- * Gets list of roles from server using HttpService.
189
- * @param {string} appId
190
- * @return {*} {Observable<GetRolesResponse>}
191
- * @memberof TenantApplicationsService
192
- */
193
- getRoles(appId: string): Observable<GetRolesResponse>;
194
- /**
195
- * Gets the list of permissions based on the appId and return the success or error response as Observable.
196
- * @param {string} appId
197
- * @return {Observable<GetPermissionsResponse>}
198
- * @memberof TenantApplicationsService
199
- */
200
- getPermissions(appId: string): Observable<GetPermissionsResponse>;
201
- /**
202
- * Gets the list of roles or permissions based on the roleId or permissionId in the payload and return the success or error response as Observable.
203
- * @param {RolePermissionMappingRequestPayload} payload
204
- * @returns {Observable<RolePermissionMappingResponse>}
205
- * @memberof TenantApplicationsService
206
- */
207
- getRolePermissionMapping(payload: RolePermissionMappingRequestPayload): Observable<RolePermissionMappingResponse>;
208
- /**
209
- * Submit the new mappings of roles to permissions to the server.
210
- * @param {RolesAndPermissionsRequestPayload} payload
211
- * @returns {Observable<RolesAndPermissionsResponse>}
212
- * @memberof TenantApplicationsService
213
- */
214
- saveRolePermissionMapping(payload: RolesAndPermissionsRequestPayload): Observable<RolesAndPermissionsResponse>;
215
- /**
216
- * Gets list of roles and permissions mappings from server using HttpService.
217
- * @param {string} appId
218
- * @param {GetRolesAndPermissionsPayload} payload
219
- * @return {*} {Observable<GetRolesAndPermissionsResponse>}
220
- * @memberof TenantApplicationsService
221
- */
222
- getRolesAndPermissionsMappings(appId: string, payload: GetRolesAndPermissionsPayload): Observable<GetRolesAndPermissionsResponse>;
223
- /**
224
- * Gets list of application types from server using HttpService.
225
- * @return {Observable<GetAppTypesResponse>}
226
- * @memberof TenantApplicationsService
227
- */
228
- getApplicationTypes(): Observable<GetAppTypesResponse>;
229
- /**
230
- * Posts create role form data to server using HttpService to create a new role.
231
- * @param {CreateModifyRoleRequestPayload} createModifyRolePayload
232
- * @return {Observable<CreateModifyRoleResponse>}
233
- * @memberof TenantApplicationsService
234
- */
235
- createRole(createModifyRolePayload: CreateModifyRoleRequestPayload): Observable<CreateModifyRoleResponse>;
236
- /**
237
- * Posts the edited role form data to server using HttpService for updating the role information.
238
- * @param {CreateModifyRoleRequestPayload} createModifyRolePayload
239
- * @return {Observable<CreateModifyRoleResponse>}
240
- * @memberof TenantApplicationsService
241
- */
242
- editRole(createModifyRolePayload: CreateModifyRoleRequestPayload): Observable<CreateModifyRoleResponse>;
243
- /**
244
- * Gets list of role types from server using HttpService.
245
- * @param {GetRoleTypesPayload} payload
246
- * @return {Observable<RoleTypeResponse>}
247
- * @memberof TenantApplicationsService
248
- */
249
- getRoleTypes(payload: GetRoleTypesPayload): Observable<RoleTypeResponse>;
250
- /**
251
- * Constructs the select/dropdown options from the role types received from server.
252
- * @param {RoleTypeConfiguration[]} roleTypeResponse
253
- * @return {RoleTypeOption[]}
254
- * @memberof TenantApplicationsService
255
- */
256
- getRoleTypeOptions(roleTypeResponse: RoleTypeConfiguration[]): RoleTypeOption[];
257
- /**
258
- * Posts tenant application form data to server using HttpService for creating new tenant application.
259
- * @param {CreateTenantPayload} createTenantPayload
260
- * @return {Observable<CreateTenantResponse>}
261
- * @memberof TenantApplicationsService
262
- */
263
- createTenant(createTenantPayload: CreateTenantRequestPayload): Observable<CreateTenantResponse>;
264
- /**
265
- * Constructs the checkbox options from features list from server.
266
- * @param {FeaturesList[]} features
267
- * @returns {CheckboxOption[]}
268
- */
269
- getFeatureOptions(features: Features[]): CheckboxOption[];
270
- /**
271
- * Constructs the radio options from application types from server.
272
- * @param {AppTypeConfig[]} appTypeOptions
273
- * @returns {RadioOption[]}
274
- */
275
- getApplicationTypeOptions(appTypeOptions: AppTypeConfig[]): RadioOption[];
276
- /**
277
- * Constructs the selected features id's.
278
- * @param {CheckboxOption[]} featureOptions
279
- * @returns {FeatureId[]}
280
- */
281
- getFeatureIds(featureOptions: CheckboxOption[]): FeatureId[];
282
- /**
283
- * Sets the newly created tenant information.
284
- * @param {NewTenantInfo} newTenantInfo
285
- */
286
- setNewTenantInfo(newTenantInfo: NewTenantInfo): void;
287
- /**
288
- * Returns the newly created tenant information.
289
- */
290
- get getNewTenantInfo(): NewTenantInfo;
291
- /**
292
- * Sets tenant function type.
293
- * @param {TenantFunctionType} tenantFunctionType -tenant function type.
294
- */
295
- setTenantFunctionType(tenantFunctionType: TenantFunctionType): void;
296
- /**
297
- * Returns tenant function type.
298
- * @return {TenantFunctionType} -tenant function type.
299
- */
300
- getTenantFunctionType(): TenantFunctionType;
301
- /**
302
- * Stores the newly created role information.
303
- * @param {RoleInfo} newlyCreatedRole -create role information.
304
- */
305
- setNewlyCreatedRoleInfo(newlyCreatedRole: RoleInfo): void;
306
- /**
307
- * Returns the newly created role information.
308
- * @return {RoleInfo} -create role information.
309
- */
310
- getNewlyCreatedRoleInfo(): RoleInfo;
311
- /**
312
- * Stores the newly created group type information.
313
- * @param {CreatedOrModifiedGroupTypeInfo} newlyCreatedGroupType
314
- * @memberof TenantApplicationsService
315
- */
316
- setNewlyCreatedGroupTypeInfo(newlyCreatedGroupType: CreatedOrModifiedGroupTypeInfo): void;
317
- /**
318
- * Returns the newly created group type information.
319
- * @return {*} {CreatedOrModifiedGroupTypeInfo}
320
- * @memberof TenantApplicationsService
321
- */
322
- getNewlyCreatedGroupTypeInfo(): CreatedOrModifiedGroupTypeInfo;
323
- /**
324
- * Posts the edited tenant application form data to server using HttpService for updating the tenant information.
325
- * @param {CreateTenantPayload} editTenantPayload
326
- * @return {Observable<CreateTenantResponse>}
327
- * @memberof TenantApplicationsService
328
- */
329
- editTenant(editTenantPayload: CreateTenantRequestPayload): Observable<CreateTenantResponse>;
330
- /**
331
- * Sends update request to the server to update the tenant application status to active/inactive using HttpService and returns the success or failure response.
332
- * @param {UpdateTenantStatusRequestPayload} updateTenantStatusPayload
333
- * @return {Observable<UpdateTenantStatusResponse>}
334
- * @memberof TenantApplicationsService
335
- */
336
- updateTenantStatus(updateTenantStatusPayload: UpdateTenantStatusRequestPayload): Observable<UpdateTenantStatusResponse>;
337
- /**
338
- * It generates Feature list from checkbox options generated in form array.
339
- * @param {CheckboxOption[]} features
340
- * @return {Features[]}
341
- * @memberof TenantApplicationsService
342
- */
343
- getFeaturesList(features: CheckboxOption[]): Features[];
344
- /**
345
- * Gets roster type from server using HttpService.
346
- * @return {*} {Observable<GetRosterTypeOrSettingsResponse>}
347
- * @memberof TenantApplicationsService
348
- */
349
- getRosterType(): Observable<GetRosterTypeOrSettingsResponse>;
350
- /**
351
- * Gets group type settings from server using HttpService.
352
- * @return {*} {Observable<GetRosterTypeOrSettingsResponse>}
353
- * @memberof TenantApplicationsService
354
- */
355
- getGroupTypeSettings(): Observable<GetRosterTypeOrSettingsResponse>;
356
- /**
357
- * Posts the group type details to server using HttpService to create new group type.
358
- * @param {CreateGroupTypeRequestPayload} createGroupTypePayload
359
- * @return {*} {Observable<CreateGroupTypeResponse>}
360
- * @memberof TenantApplicationsService
361
- */
362
- createGroupType(createGroupTypePayload: CreateGroupTypeRequestPayload): Observable<CreateGroupTypeResponse>;
363
- /**
364
- * Returns sorted role list data.
365
- * @param {Role[]} roleList
366
- * @return {Role[]}
367
- * @memberof TenantApplicationsService
368
- */
369
- sortRolesByRoleType(roleList: Role[]): Role[];
370
- /**
371
- * Posts the role details to server using HttpService for deleting the role.
372
- * @param {DeleteRoleRequestPayload} deleteRoleRequestPayload
373
- * @return {Observable<DeleteRoleResponse>}
374
- * @memberof TenantApplicationsService
375
- */
376
- deleteRole(deleteRolePayload: DeleteRoleRequestPayload): Observable<DeleteRoleResponse>;
377
- /**
378
- * Gets group types from server using HttpService.
379
- * @param {string} appId
380
- * @return {Observable<ViewGroupTypeResponse>}
381
- * @memberof TenantApplicationsService
382
- */
383
- getGroupTypes(appId: string): Observable<ViewGroupTypeResponse>;
384
- /**
385
- * Sets group type details.
386
- * @param {ViewGroupTypeResponse} groupTypes
387
- * @memberof TenantApplicationsService
388
- */
389
- setGroupTypeDetails(groupTypes: ViewGroupTypeResponse): void;
390
- /**
391
- * Returns group type details.
392
- * @return {ViewGroupTypeResponse}
393
- * @memberof TenantApplicationsService
394
- */
395
- getGroupTypeDetails(): ViewGroupTypeResponse;
396
- static ɵfac: i0.ɵɵFactoryDeclaration<TenantApplicationsService, never>;
397
- static ɵprov: i0.ɵɵInjectableDeclaration<TenantApplicationsService>;
398
- }
@@ -1,13 +0,0 @@
1
- import { TenantsPermissions } from '../models/tenants-permission.model';
2
- import * as i0 from "@angular/core";
3
- export declare class TenantPermissionsMapService {
4
- globalTenantsPermissions: TenantsPermissions[];
5
- /**
6
- * Returns global permissions mapping for tenants.
7
- * @return {TenantsPermissions[]}
8
- * @memberof TenantsPermissionsMapService
9
- */
10
- getGlobalTenantsPermissions(): TenantsPermissions[];
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TenantPermissionsMapService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<TenantPermissionsMapService>;
13
- }
@@ -1,22 +0,0 @@
1
- import { PermissionType } from '../models/permission-type.model';
2
- import { UserPermission, TenantsPermissions } from '../models/tenants-permission.model';
3
- import * as i0 from "@angular/core";
4
- export declare class TenantPermissionsService {
5
- /**
6
- * Returns access provision for the passed action/feature based on whether the signed in user has appropriate permission.
7
- * @param {PermissionType} permission
8
- * @param {TenantsPermission[]} tenantsPermissions
9
- * @return {boolean}
10
- * @memberof TenantPermissionsService
11
- */
12
- validateAccessPermission(permission: PermissionType, userTenantsPermissions: TenantsPermissions[]): boolean;
13
- /**
14
- * Filters signed in user tenants permissions from entire tenants permissions.
15
- * @param { UserPermission[] }
16
- * @return {TenantsPermissions[]}
17
- * @memberof TenantPermissionsService
18
- */
19
- filterTenantsPermissions(userPermissions: UserPermission[], tenantsPermissions: TenantsPermissions[]): TenantsPermissions[];
20
- static ɵfac: i0.ɵɵFactoryDeclaration<TenantPermissionsService, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<TenantPermissionsService>;
22
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TenantApplicationsComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<TenantApplicationsComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<TenantApplicationsComponent, "ieeesa-tenant-applications", never, {}, {}, never, never, true, never>;
5
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TenantApplicationsModule {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<TenantApplicationsModule, never>;
4
- static ɵmod: i0.ɵɵNgModuleDeclaration<TenantApplicationsModule, never, never, never>;
5
- static ɵinj: i0.ɵɵInjectorDeclaration<TenantApplicationsModule>;
6
- }