Skip to content

Commit

Permalink
🐛 Fix typo yaml and json swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Jun 22, 2024
1 parent bb98b0a commit 2708d0e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 89 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/@core/connections/connections.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export class ConnectionsController {
})
@ApiQuery({ name: 'state', required: true, type: String })
@ApiBody({ type: BodyDataType })
@UseGuards(JwtAuthGuard)
//@UseGuards(JwtAuthGuard)
@ApiResponse({ status: 201 })
@Post('apikey/callback')
async handleApiKeyCallback(
Expand Down Expand Up @@ -324,7 +324,7 @@ export class ConnectionsController {
}

@ApiOperation({
operationId: 'list',
operationId: 'getConnections',
summary: 'List Connections',
})
@ApiResponse({ status: 200 })
Expand Down
71 changes: 19 additions & 52 deletions packages/api/swagger/swagger-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,58 +270,11 @@
]
}
},
"/connections/gorgias/oauth/install": {
"get": {
"operationId": "ConnectionsController_handleGorgiasAuthUrl",
"/connections/apikey/callback": {
"post": {
"operationId": "handleApiKeyCallback",
"summary": "Capture api key callback",
"parameters": [
{
"name": "account",
"required": true,
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "response_type",
"required": true,
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "nonce",
"required": true,
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "scope",
"required": true,
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "client_id",
"required": true,
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "redirect_uri",
"required": true,
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "state",
"required": true,
Expand All @@ -331,8 +284,18 @@
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BodyDataType"
}
}
}
},
"responses": {
"200": {
"201": {
"description": ""
}
},
Expand Down Expand Up @@ -16031,6 +15994,10 @@
"projectId"
]
},
"BodyDataType": {
"type": "object",
"properties": {}
},
"WebhookDto": {
"type": "object",
"properties": {
Expand Down
48 changes: 14 additions & 34 deletions packages/api/swagger/swagger-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,47 +164,24 @@ paths:
description: ''
tags: &ref_1
- connections
/connections/gorgias/oauth/install:
get:
operationId: ConnectionsController_handleGorgiasAuthUrl
/connections/apikey/callback:
post:
operationId: handleApiKeyCallback
summary: Capture api key callback
parameters:
- name: account
required: true
in: query
schema:
type: string
- name: response_type
required: true
in: query
schema:
type: string
- name: nonce
required: true
in: query
schema:
type: string
- name: scope
required: true
in: query
schema:
type: string
- name: client_id
required: true
in: query
schema:
type: string
- name: redirect_uri
required: true
in: query
schema:
type: string
- name: state
required: true
in: query
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BodyDataType'
responses:
'200':
'201':
description: ''
tags: *ref_1
/connections:
Expand Down Expand Up @@ -9287,6 +9264,9 @@ components:
type: string
required:
- projectId
BodyDataType:
type: object
properties: {}
WebhookDto:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/connectors/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2733,7 +2733,7 @@ export const CONNECTORS_METADATA: ProvidersConfig = {
},
logoPath: 'https://upload.wikimedia.org/wikipedia/commons/4/45/Notion_app_logo.png',
description: 'Sync & Create contacts, deals, companies, notes, engagements, stages, tasks and users',
active: true,
active: false,
authStrategy: {
strategy: AuthStrategy.oauth2
}
Expand Down

0 comments on commit 2708d0e

Please sign in to comment.