diff --git a/packages/api/src/@core/connections/connections.controller.ts b/packages/api/src/@core/connections/connections.controller.ts index 9c0531784..8dc586a07 100644 --- a/packages/api/src/@core/connections/connections.controller.ts +++ b/packages/api/src/@core/connections/connections.controller.ts @@ -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( @@ -324,7 +324,7 @@ export class ConnectionsController { } @ApiOperation({ - operationId: 'list', + operationId: 'getConnections', summary: 'List Connections', }) @ApiResponse({ status: 200 }) diff --git a/packages/api/swagger/swagger-spec.json b/packages/api/swagger/swagger-spec.json index 7fc9eee68..5a648ce2c 100644 --- a/packages/api/swagger/swagger-spec.json +++ b/packages/api/swagger/swagger-spec.json @@ -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, @@ -331,8 +284,18 @@ } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BodyDataType" + } + } + } + }, "responses": { - "200": { + "201": { "description": "" } }, @@ -16031,6 +15994,10 @@ "projectId" ] }, + "BodyDataType": { + "type": "object", + "properties": {} + }, "WebhookDto": { "type": "object", "properties": { diff --git a/packages/api/swagger/swagger-spec.yaml b/packages/api/swagger/swagger-spec.yaml index e74d168eb..73bb1f4cc 100644 --- a/packages/api/swagger/swagger-spec.yaml +++ b/packages/api/swagger/swagger-spec.yaml @@ -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: @@ -9287,6 +9264,9 @@ components: type: string required: - projectId + BodyDataType: + type: object + properties: {} WebhookDto: type: object properties: diff --git a/packages/shared/src/connectors/metadata.ts b/packages/shared/src/connectors/metadata.ts index 9260d8f76..4897af6ba 100644 --- a/packages/shared/src/connectors/metadata.ts +++ b/packages/shared/src/connectors/metadata.ts @@ -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 }