-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #561 from bcgov/oleks
BL stories: DSS-735, DSS-693, DSS-736, DSS-738, DSS-708
- Loading branch information
Showing
30 changed files
with
911 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...d/src/app/common/listing-upload-history-table/listing-upload-history-table.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...d/src/app/common/listing-upload-history-table/listing-upload-history-table.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
:host { | ||
width: 100%; | ||
background-color: #FFFFFF; | ||
|
||
h2 { | ||
padding: 0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
export interface BusinessLicence { | ||
|
||
businessLicenceId: number; | ||
|
||
updDtm: string; | ||
|
||
businessNm?: string; | ||
physicalRentalAddressTxt: string; | ||
|
||
businessLicenceNo: string; | ||
licenceTypeTxt: string; | ||
expiryDt: string; | ||
licenceStatusType: 'ISSUED' | 'EXPIRED' | 'SUSPENDED' | 'REVOKED' | 'CANCELLED' | 'PENDING'; | ||
restrictionTxt?: string; | ||
|
||
businessOwnerNm?: string; | ||
businessOwnerEmailAddressDsc?: string; | ||
businessOwnerPhoneNo?: string; | ||
|
||
businessOperatorNm?: string; | ||
businessOperatorEmailAddressDsc?: string; | ||
businessOperatorPhoneNo?: string; | ||
|
||
propertyZoneTxt?: string; | ||
availableBedroomsQty: number; | ||
maxGuestsAllowedQty: number; | ||
isPrincipalResidence: boolean; | ||
isOwnerLivingOnsite: boolean; | ||
isOwnerPropertyTenant: boolean; | ||
infractionTxt?: string; | ||
infractionDt?: string; | ||
|
||
propertyFolioNo?: string; | ||
propertyParcelIdentifierNo?: string; | ||
propertyLegalDescriptionTxt?: string; | ||
|
||
providingOrganizationId: number; | ||
affectedByPhysicalAddressId: number; | ||
updUserGuid: string; | ||
licenceStatus: { | ||
licenceStatusType: "ISSUED"; | ||
licenceStatusTypeNm: "Issued"; | ||
licenceStatusSortNo: number; | ||
} | ||
|
||
mailingStreetAddressTxt: string; | ||
mailingCityNm: string; | ||
mailingProvinceCd: string; | ||
mailingPostalCd: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
frontend/src/app/common/services/business-licence.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { TestBed } from '@angular/core/testing'; | ||
|
||
import { BusinessLicenceService } from './business-licence.service'; | ||
import { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
|
||
xdescribe('BusinessLicenceService', () => { | ||
let service: BusinessLicenceService; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
imports: [HttpClientTestingModule], | ||
}); | ||
service = TestBed.inject(BusinessLicenceService); | ||
}); | ||
|
||
it('should be created', () => { | ||
expect(service).toBeTruthy(); | ||
}); | ||
}); |
42 changes: 42 additions & 0 deletions
42
frontend/src/app/common/services/business-licence.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { HttpClient } from '@angular/common/http'; | ||
import { Injectable } from '@angular/core'; | ||
import { Observable, of } from 'rxjs'; | ||
import { environment } from '../../../environments/environment'; | ||
|
||
@Injectable({ | ||
providedIn: 'root' | ||
}) | ||
export class BusinessLicenceService { | ||
constructor(private httpClient: HttpClient) { } | ||
|
||
getUploadHistory( | ||
pageNumber: number = 1, | ||
pageSize: number = 10, | ||
orderBy: string = '', | ||
direction: 'asc' | 'desc' = 'asc', | ||
orgId: number = 0, | ||
): Observable<any> { | ||
let url = `${environment.API_HOST}/bizlicences/uploadhistory?pageSize=${pageSize}&pageNumber=${pageNumber}`; | ||
|
||
if (!!orgId) { | ||
url += `&orgId=${orgId}`; | ||
} | ||
|
||
if (orderBy) { | ||
url += `&orderBy=${orderBy}&direction=${direction}`; | ||
} | ||
|
||
return this.httpClient.get<any>(url); | ||
} | ||
|
||
uploadFile(file: any, orgId: number): Observable<any> { | ||
const formData = new FormData(); | ||
formData.append('organizationId', orgId.toString()); | ||
formData.append('file', file); | ||
|
||
return this.httpClient.post<any>( | ||
`${environment.API_HOST}/bizlicences`, | ||
formData, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
.../src/app/features/components/listing-upload-history/listing-upload-history.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
:host { | ||
width: 100%; | ||
padding: 24px; | ||
background-color: #FFFFFF; | ||
padding-top: 12px; | ||
} |
Oops, something went wrong.