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