-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using letter uuid for letter filetype
- Loading branch information
1 parent
b79bead
commit 11457bd
Showing
12 changed files
with
90 additions
and
63 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,15 @@ import { ConfigService } from '../config/config.service'; | |
@Injectable() | ||
export class ArtifactService { | ||
rerFiletypeUuid = ''; | ||
letterFiletypeUuid= ''; | ||
|
||
constructor( | ||
private readonly crmService: CrmService, | ||
private readonly sharepointService: SharepointService, | ||
private readonly config: ConfigService, | ||
) { | ||
this.rerFiletypeUuid = this.config.get('RER_FILETYPE_UUID'); | ||
this.letterFiletypeUuid = this.config.get('LETTER_FILETYPE_UUID'); | ||
} | ||
|
||
public async createEquityReport(projectId: string) { | ||
|
@@ -47,7 +49,6 @@ export class ArtifactService { | |
|
||
public async createProjectInitiationArtifacts(projectId: string) { | ||
let newArtifact = null; | ||
console.log(`project id: ${projectId}`); | ||
|
||
try { | ||
newArtifact = this.crmService.create('dcp_artifactses', { | ||
|
@@ -56,13 +57,11 @@ export class ArtifactService { | |
dcp_filecreator: 717170000, // Applicant | ||
dcp_filecategory: 717170006, // Other | ||
dcp_visibility: 717170002, // Applicant Only | ||
'[email protected]': `/dcp_filetypes(${'letter'})`, | ||
'[email protected]': `/dcp_filetypes(${this.letterFiletypeUuid})`, | ||
...(projectId | ||
? { '[email protected]': `/dcp_projects(${projectId})` } | ||
: {}), | ||
}); | ||
console.debug('new artifact in artifact service', newArtifact); | ||
|
||
}); | ||
} catch (e) { | ||
throw new HttpException( | ||
{ | ||
|
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