-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/add-uiconfig-type
- Loading branch information
Showing
6 changed files
with
211 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
/* eslint-disable @typescript-eslint/no-empty-function */ | ||
export function ApiProperty() { | ||
return () => {}; | ||
} | ||
export function ApiPropertyOptional() { | ||
return () => {}; | ||
} | ||
export function ApiResponseProperty() { | ||
return () => {}; | ||
} | ||
export function ApiBasicAuth() { | ||
return () => {}; | ||
} | ||
export function ApiBearerAuth() { | ||
return () => {}; | ||
} | ||
export function ApiBody() { | ||
return () => {}; | ||
} | ||
export function ApiConsumes() { | ||
return () => {}; | ||
} | ||
export function ApiCookieAuth() { | ||
return () => {}; | ||
} | ||
export function ApiExcludeEndpoint() { | ||
return () => {}; | ||
} | ||
export function ApiExcludeController() { | ||
return () => {}; | ||
} | ||
export function ApiExtraModels() { | ||
return () => {}; | ||
} | ||
export function ApiHeader() { | ||
return () => {}; | ||
} | ||
export function ApiHeaders() { | ||
return () => {}; | ||
} | ||
export function ApiHideProperty() { | ||
return () => {}; | ||
} | ||
export function ApiOAuth2() { | ||
return () => {}; | ||
} | ||
export function ApiOperation() { | ||
return () => {}; | ||
} | ||
export function ApiParam() { | ||
return () => {}; | ||
} | ||
export function ApiProduces() { | ||
return () => {}; | ||
} | ||
export function ApiQuery() { | ||
return () => {}; | ||
} | ||
export function ApiResponse() { | ||
return () => {}; | ||
} | ||
export function ApiOkResponse() { | ||
return () => {}; | ||
} | ||
export function ApiCreatedResponse() { | ||
return () => {}; | ||
} | ||
export function ApiAcceptedResponse() { | ||
return () => {}; | ||
} | ||
export function ApiNoContentResponse() { | ||
return () => {}; | ||
} | ||
export function ApiMovedPermanentlyResponse() { | ||
return () => {}; | ||
} | ||
export function ApiFoundResponse() { | ||
return () => {}; | ||
} | ||
export function ApiBadRequestResponse() { | ||
return () => {}; | ||
} | ||
export function ApiUnauthorizedResponse() { | ||
return () => {}; | ||
} | ||
export function ApiTooManyRequestsResponse() { | ||
return () => {}; | ||
} | ||
export function ApiNotFoundResponse() { | ||
return () => {}; | ||
} | ||
export function ApiInternalServerErrorResponse() { | ||
return () => {}; | ||
} | ||
export function ApiBadGatewayResponse() { | ||
return () => {}; | ||
} | ||
export function ApiConflictResponse() { | ||
return () => {}; | ||
} | ||
export function ApiForbiddenResponse() { | ||
return () => {}; | ||
} | ||
export function ApiGatewayTimeoutResponse() { | ||
return () => {}; | ||
} | ||
export function ApiGoneResponse() { | ||
return () => {}; | ||
} | ||
export function ApiMethodNotAllowedResponse() { | ||
return () => {}; | ||
} | ||
export function ApiNotAcceptableResponse() { | ||
return () => {}; | ||
} | ||
export function ApiNotImplementedResponse() { | ||
return () => {}; | ||
} | ||
export function ApiPreconditionFailedResponse() { | ||
return () => {}; | ||
} | ||
export function ApiPayloadTooLargeResponse() { | ||
return () => {}; | ||
} | ||
export function ApiRequestTimeoutResponse() { | ||
return () => {}; | ||
} | ||
export function ApiServiceUnavailableResponse() { | ||
return () => {}; | ||
} | ||
export function ApiUnprocessableEntityResponse() { | ||
return () => {}; | ||
} | ||
export function ApiUnsupportedMediaTypeResponse() { | ||
return () => {}; | ||
} | ||
export function ApiDefaultResponse() { | ||
return () => {}; | ||
} | ||
export function ApiSecurity() { | ||
return () => {}; | ||
} | ||
export function ApiTags() { | ||
return () => {}; | ||
} | ||
export function ApiExtension() { | ||
return () => {}; | ||
} | ||
export function DocumentBuilder() { | ||
return () => {}; | ||
} | ||
export function SwaggerModule() { | ||
return () => {}; | ||
} | ||
export function IntersectionType() { | ||
return () => {}; | ||
} | ||
export function OmitType() { | ||
return () => {}; | ||
} | ||
export function PartialType() { | ||
return () => {}; | ||
} | ||
export function PickType() { | ||
return () => {}; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { INestApplication } from "@nestjs/common"; | ||
|
||
export function getGlobalPrefix(app: INestApplication): string { | ||
const internalConfigRef = (app as any).config; | ||
return (internalConfigRef && internalConfigRef.getGlobalPrefix()) || ''; | ||
} |
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 * as Shim from '../../lib/extra/swagger-shim'; | ||
import * as Actual from '../../lib'; | ||
|
||
describe('Shim file', () => { | ||
it('contains all types export by package', () => { | ||
const exceptions = ['getSchemaPath', 'refs']; | ||
|
||
const shimExportNames = Object.keys(Shim); | ||
const packageExportNames = Object.keys(Actual); | ||
|
||
const exportsMissingInShim = packageExportNames.filter( | ||
(exportName) => | ||
shimExportNames.indexOf(exportName) === -1 && | ||
exceptions.indexOf(exportName) === -1 | ||
); | ||
|
||
expect(exportsMissingInShim).toEqual([]); | ||
}); | ||
}); |