cat-documents-ng 1.0.8 → 1.0.9
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.
|
@@ -1431,7 +1431,7 @@ class DocumentHttpService {
|
|
|
1431
1431
|
*/
|
|
1432
1432
|
getDocumentCatagories(contextId) {
|
|
1433
1433
|
let headers = new HttpHeaders({
|
|
1434
|
-
'Authorization': `Bearer
|
|
1434
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1435
1435
|
});
|
|
1436
1436
|
return this.http.get(`${this.apiUrl}${URLS.DOCUMENTS_CATAGORIES}/${contextId}`, { headers })
|
|
1437
1437
|
.pipe(tap((response) => {
|
|
@@ -1477,7 +1477,7 @@ class DocumentHttpService {
|
|
|
1477
1477
|
*/
|
|
1478
1478
|
getDocumentByFolderID(folderId, contextId) {
|
|
1479
1479
|
let headers = new HttpHeaders({
|
|
1480
|
-
'Authorization': `Bearer
|
|
1480
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1481
1481
|
});
|
|
1482
1482
|
return this.http.get(`${this.apiUrl}${URLS.DOCUMENT_UPLOAD}/${URLS.PARENT_DOCUMENT_TYPE_ID}${folderId}${URLS.CONTEXT_ID}${contextId}`, { headers }).pipe(tap((records) => {
|
|
1483
1483
|
this.documentStore.set(records);
|
|
@@ -1495,7 +1495,7 @@ class DocumentHttpService {
|
|
|
1495
1495
|
*/
|
|
1496
1496
|
updateDocumentName(documentId, payload) {
|
|
1497
1497
|
let headers = new HttpHeaders({
|
|
1498
|
-
'Authorization': `Bearer
|
|
1498
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1499
1499
|
});
|
|
1500
1500
|
return this.http.put(`${this.apiUrl}${URLS.ALIAS_NAME}${documentId}`, payload, { headers }).pipe(catchError((error) => {
|
|
1501
1501
|
return throwError(() => new Error(error));
|
|
@@ -1508,7 +1508,7 @@ class DocumentHttpService {
|
|
|
1508
1508
|
*/
|
|
1509
1509
|
getUserListByContextId(contextId) {
|
|
1510
1510
|
let headers = new HttpHeaders({
|
|
1511
|
-
'Authorization': `Bearer
|
|
1511
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1512
1512
|
});
|
|
1513
1513
|
if (!contextId)
|
|
1514
1514
|
return EMPTY;
|
|
@@ -1529,7 +1529,7 @@ class DocumentHttpService {
|
|
|
1529
1529
|
if (!applicationId)
|
|
1530
1530
|
return EMPTY;
|
|
1531
1531
|
let headers = new HttpHeaders({
|
|
1532
|
-
'Authorization': `Bearer
|
|
1532
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1533
1533
|
});
|
|
1534
1534
|
let url = `${this.apiUrl}${URLS.STATUS_DOCUMENT_COUNT}${applicationId}`;
|
|
1535
1535
|
let params = new HttpParams();
|
|
@@ -1559,7 +1559,7 @@ class DocumentHttpService {
|
|
|
1559
1559
|
*/
|
|
1560
1560
|
getDocumentsBySelection(contextId, menuItem, userId, status, searchKey = null) {
|
|
1561
1561
|
let headers = new HttpHeaders({
|
|
1562
|
-
'Authorization': `Bearer
|
|
1562
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1563
1563
|
});
|
|
1564
1564
|
let params = new HttpParams();
|
|
1565
1565
|
if (userId) {
|
|
@@ -1581,7 +1581,7 @@ class DocumentHttpService {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
getDocumentHistory(documentId) {
|
|
1583
1583
|
let headers = new HttpHeaders({
|
|
1584
|
-
'Authorization': `Bearer
|
|
1584
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1585
1585
|
});
|
|
1586
1586
|
if (!documentId) {
|
|
1587
1587
|
return of([]);
|
|
@@ -1599,7 +1599,7 @@ class DocumentHttpService {
|
|
|
1599
1599
|
if (!source)
|
|
1600
1600
|
return EMPTY;
|
|
1601
1601
|
let headers = new HttpHeaders({
|
|
1602
|
-
'Authorization': `Bearer
|
|
1602
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1603
1603
|
});
|
|
1604
1604
|
return this.http.get(`${this.apiUrl}${URLS.GET_CATEGORIES_BY_SOURCE}${source}`, { headers }).pipe(catchError((error) => {
|
|
1605
1605
|
return throwError(() => new Error(error));
|
|
@@ -1612,7 +1612,7 @@ class DocumentHttpService {
|
|
|
1612
1612
|
*/
|
|
1613
1613
|
getDocumentTypesByCategory(categoryId) {
|
|
1614
1614
|
let headers = new HttpHeaders({
|
|
1615
|
-
'Authorization': `Bearer
|
|
1615
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1616
1616
|
});
|
|
1617
1617
|
if (!categoryId)
|
|
1618
1618
|
return EMPTY;
|
|
@@ -1627,7 +1627,7 @@ class DocumentHttpService {
|
|
|
1627
1627
|
*/
|
|
1628
1628
|
uploadFile(formData) {
|
|
1629
1629
|
let headers = new HttpHeaders({
|
|
1630
|
-
'Authorization': `Bearer
|
|
1630
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1631
1631
|
});
|
|
1632
1632
|
return this.http.post(`${this.apiUrl}${URLS.DOCUMENT_UPLOAD_FILE}`, formData, { headers }).pipe(catchError((error) => {
|
|
1633
1633
|
return throwError(() => new Error(error));
|
|
@@ -1640,7 +1640,7 @@ class DocumentHttpService {
|
|
|
1640
1640
|
*/
|
|
1641
1641
|
saveDocumentUpload(payload) {
|
|
1642
1642
|
let headers = new HttpHeaders({
|
|
1643
|
-
'Authorization': `Bearer
|
|
1643
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1644
1644
|
});
|
|
1645
1645
|
return this.http.post(`${this.apiUrl}${URLS.SAVE_DOCUMENT_UPLOAD}`, payload, { headers }).pipe(catchError((error) => {
|
|
1646
1646
|
return throwError(() => new Error(error));
|
|
@@ -1655,7 +1655,7 @@ class DocumentHttpService {
|
|
|
1655
1655
|
*/
|
|
1656
1656
|
updateDocumentStatus(documentId, status, statusUpdateDescription) {
|
|
1657
1657
|
let headers = new HttpHeaders({
|
|
1658
|
-
'Authorization': `Bearer
|
|
1658
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1659
1659
|
});
|
|
1660
1660
|
const payload = {
|
|
1661
1661
|
statusUpdateDescription: statusUpdateDescription
|
|
@@ -1694,7 +1694,7 @@ class DocumentHttpService {
|
|
|
1694
1694
|
*/
|
|
1695
1695
|
deleteDocument(documentId, contextId) {
|
|
1696
1696
|
let headers = new HttpHeaders({
|
|
1697
|
-
'Authorization': `Bearer
|
|
1697
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1698
1698
|
});
|
|
1699
1699
|
return this.http.delete(`${this.apiUrl}${URLS.DELETE_DOCUMENT}${documentId}`, { headers }).pipe(tap(() => {
|
|
1700
1700
|
this.getDocumentCatagories(contextId).subscribe();
|
|
@@ -1713,7 +1713,7 @@ class DocumentHttpService {
|
|
|
1713
1713
|
*/
|
|
1714
1714
|
downloadExcelFile(documentUrl) {
|
|
1715
1715
|
let headers = new HttpHeaders({
|
|
1716
|
-
'Authorization': `Bearer
|
|
1716
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1717
1717
|
});
|
|
1718
1718
|
return this.http.get(documentUrl, { headers,
|
|
1719
1719
|
responseType: 'arraybuffer'
|
|
@@ -1729,7 +1729,7 @@ class DocumentHttpService {
|
|
|
1729
1729
|
*/
|
|
1730
1730
|
downloadCsvFile(documentUrl) {
|
|
1731
1731
|
let headers = new HttpHeaders({
|
|
1732
|
-
'Authorization': `Bearer
|
|
1732
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1733
1733
|
});
|
|
1734
1734
|
return this.http.get(documentUrl, { headers,
|
|
1735
1735
|
responseType: 'text'
|
|
@@ -1744,7 +1744,7 @@ class DocumentHttpService {
|
|
|
1744
1744
|
*/
|
|
1745
1745
|
downloadEmailFile(documentUrl) {
|
|
1746
1746
|
let headers = new HttpHeaders({
|
|
1747
|
-
'Authorization': `Bearer
|
|
1747
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1748
1748
|
});
|
|
1749
1749
|
const isAzureBlobStorage = documentUrl.includes('.blob.core.windows.net');
|
|
1750
1750
|
if (isAzureBlobStorage) {
|
|
@@ -1762,7 +1762,7 @@ class DocumentHttpService {
|
|
|
1762
1762
|
}
|
|
1763
1763
|
documentRequest(payload) {
|
|
1764
1764
|
let headers = new HttpHeaders({
|
|
1765
|
-
'Authorization': `Bearer
|
|
1765
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1766
1766
|
});
|
|
1767
1767
|
return this.http.post(`${this.apiUrl}${URLS.DOCUMENT_REQUEST}`, payload, { headers }).pipe(catchError((error) => {
|
|
1768
1768
|
return throwError(() => new Error(error));
|
|
@@ -1775,7 +1775,7 @@ class DocumentHttpService {
|
|
|
1775
1775
|
*/
|
|
1776
1776
|
getValuationReportByContextId(contextId) {
|
|
1777
1777
|
let headers = new HttpHeaders({
|
|
1778
|
-
'Authorization': `Bearer
|
|
1778
|
+
'Authorization': `Bearer c17a1cf8-5406-4729-bda8-630e759faf74`
|
|
1779
1779
|
});
|
|
1780
1780
|
if (!contextId)
|
|
1781
1781
|
return EMPTY;
|
|
@@ -3762,7 +3762,7 @@ class DocumentUploadComponent {
|
|
|
3762
3762
|
* @param applicants - Array of loaded applicants
|
|
3763
3763
|
*/
|
|
3764
3764
|
handleApplicantsLoaded(applicants) {
|
|
3765
|
-
this.applicantList =
|
|
3765
|
+
this.applicantList = applicants;
|
|
3766
3766
|
this.filterApplicants();
|
|
3767
3767
|
this.isLoadingApplicants = false;
|
|
3768
3768
|
this.validateForm();
|