-
Notifications
You must be signed in to change notification settings - Fork 8
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 #600 from Sanofi-IADC/feat/ARM-2020
feat: ARM-2020 Add APIs for Official PDF Exports - Custom Content
- Loading branch information
Showing
8 changed files
with
260 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { | ||
IsNotEmpty, IsString, | ||
} from 'class-validator'; | ||
|
||
export default class GetAttachmentByIdParamsDTO { | ||
@ApiProperty({ | ||
type: String, | ||
description: 'The Id of attachment to retrieve', | ||
example: '1234', | ||
}) | ||
@IsNotEmpty() | ||
@IsString() | ||
id: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { | ||
IsNotEmpty, IsString, | ||
} from 'class-validator'; | ||
|
||
export default class GetCustomContentByIdParamsDTO { | ||
@ApiProperty({ | ||
type: Number, | ||
description: 'The Id of custom content to retrieve', | ||
example: '1234', | ||
}) | ||
@IsNotEmpty() | ||
@IsString() | ||
id: number; | ||
} |
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,15 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { | ||
IsNotEmpty, IsString, | ||
} from 'class-validator'; | ||
|
||
export default class GetCustomContentsInSpaceParamsDTO { | ||
@ApiProperty({ | ||
type: Number, | ||
description: 'The Id of space to retrieve custom contents from', | ||
example: '1234', | ||
}) | ||
@IsNotEmpty() | ||
@IsString() | ||
spaceId: number; | ||
} |
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,29 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { Type } from 'class-transformer'; | ||
import { | ||
IsInt, | ||
Check warning on line 4 in src/proxy-api/dto/GetCustomContentsInSpaceQuery.ts
|
||
IsNotEmpty, | ||
IsOptional, | ||
IsString, | ||
} from 'class-validator'; | ||
|
||
export default class GetCustomContentsInSpaceQueryDTO { | ||
@ApiProperty({ | ||
type: String, | ||
description: 'The type of custom content to retrieve', | ||
example: 'forge:42bc20e9-123e-4153-bcd1-02a43d44cc6e:847c9fab-7106-4bde-b688-25e9cd330117:custom-content-sanofi-forge-official-exports', | ||
}) | ||
@IsNotEmpty() | ||
@IsString() | ||
type: string; | ||
|
||
@ApiProperty({ | ||
type: String, | ||
description: 'Starting cursor used for pagination', | ||
example: 'xyz', | ||
}) | ||
@IsOptional() | ||
@IsString() | ||
@Type(() => String) | ||
next = ''; | ||
} |
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