@ieeesa-npm/tenants 0.3.4 → 0.3.6

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,5 +1,5 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { AlignType, CheckboxOption, FormGrid, AllowedFileTypes, FileUploadService, RadioOption, DynamicFormComponent, FormModel } from '@ieeesa-npm/presentation';
2
+ import { AlignType, CheckboxOption, FormGrid, AllowedFileTypes, RadioOption, DynamicFormComponent, FormModel, FileUploadService } from '@ieeesa-npm/presentation';
3
3
  import { Subject } from 'rxjs';
4
4
  import { FormGroup } from '@angular/forms';
5
5
  import { TenantApplicationsService } from '../../services/tenant-applications.service';
@@ -102,7 +102,7 @@ export declare class CreateTenantApplicationComponent implements OnInit, OnDestr
102
102
  * Gets pre-signed URL to upload the selected file to AWS S3 bucket.
103
103
  * @param {File | FileList} file
104
104
  */
105
- getFileUploadPresignedUrl(file: File | FileList): void;
105
+ getFileUploadPresignedUrl(file: File | FileList, appId: string): void;
106
106
  /**
107
107
  * Uploads the file to AWS S3 bucket and submit the form data to API to create new tenant.
108
108
  * @param {File | FileList} file
@@ -67,10 +67,7 @@ export declare class TenantBasicDetailsComponent implements OnDestroy {
67
67
  appIdMaxChars: string;
68
68
  appHeadingMaxChars: string;
69
69
  appDescriptionMaxChars: string;
70
- appLogoMaxSize: string; /**
71
- * Gets the application types.
72
- * @memberof TenantBasicDetailsComponent
73
- */
70
+ appLogoMaxSize: string;
74
71
  };
75
72
  pattern: {
76
73
  appId: string;
@@ -401,11 +398,6 @@ export declare class TenantBasicDetailsComponent implements OnDestroy {
401
398
  * @memberof TenantBasicDetailsComponent
402
399
  */
403
400
  getFileDownloadPresignedUrls(fileName: string): void;
404
- /**
405
- * Downloads file from AWS S3 using a presigned URL.
406
- * @memberof TenantBasicDetailsComponent
407
- */
408
- downloadFile(presignedUrl: string): void;
409
401
  /**
410
402
  * Performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
411
403
  * @memberof ViewTenantDetailsComponent
@@ -2,6 +2,7 @@ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { BreakpointObserverService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
3
3
  import { AccordionInfo, Menu, PaginatorConfig, TableActions, AlignType, RadioOption, IconButton, SlideToggleOption, TableColumnSchema, AccordionDetails, TableColumnMenuInfo } from '@ieeesa-npm/presentation';
4
4
  import { Subject } from 'rxjs';
5
+ import { ActivatedRoute } from '@angular/router';
5
6
  import { TenantApplicationsService } from '../../services/tenant-applications.service';
6
7
  import { TenantsPermissions, UserPermission } from '../../models/tenants-permission.model';
7
8
  import { SharedService } from '@ieeesa-npm/shared';
@@ -20,6 +21,7 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
20
21
  private tenantAppService;
21
22
  globalErrorHandlerService: GlobalErrorHandlerService;
22
23
  private sharedService;
24
+ private activatedRoute;
23
25
  destroy$: Subject<boolean>;
24
26
  apiBaseURL: string;
25
27
  userPermissions: UserPermission[];
@@ -68,7 +70,7 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
68
70
  selectedRoleInfo: RoleDetails;
69
71
  isGroupTypesExpanded: boolean;
70
72
  roleTypeOptions: RoleTypeOption[];
71
- constructor(dialog: MatDialog, breakpointObserverService: BreakpointObserverService, tenantAppService: TenantApplicationsService, globalErrorHandlerService: GlobalErrorHandlerService, sharedService: SharedService);
73
+ constructor(dialog: MatDialog, breakpointObserverService: BreakpointObserverService, tenantAppService: TenantApplicationsService, globalErrorHandlerService: GlobalErrorHandlerService, sharedService: SharedService, activatedRoute: ActivatedRoute);
72
74
  /**
73
75
  * Initializes view tenant details component.
74
76
  * @return -returns nothing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/tenants",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"