From a03c60bd902e787c8cfad6a49bf4ed168a69bb69 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Wed, 2 Nov 2022 21:32:40 +0100 Subject: [PATCH] refactor: remove step property out of app auth --- packages/backend/src/apps/discord/auth/index.ts | 11 ----------- packages/backend/src/apps/flickr/auth/index.ts | 11 ----------- packages/backend/src/apps/github/auth/index.ts | 11 ----------- packages/backend/src/apps/slack/auth/index.ts | 11 ----------- packages/backend/src/apps/smtp/auth/index.ts | 5 ----- packages/backend/src/apps/twilio/auth/index.ts | 5 ----- packages/backend/src/apps/twitter/auth/index.ts | 11 ----------- 7 files changed, 65 deletions(-) diff --git a/packages/backend/src/apps/discord/auth/index.ts b/packages/backend/src/apps/discord/auth/index.ts index fc3d2fde..8ebc550c 100644 --- a/packages/backend/src/apps/discord/auth/index.ts +++ b/packages/backend/src/apps/discord/auth/index.ts @@ -55,7 +55,6 @@ export default { ], authenticationSteps: [ { - step: 1, type: 'mutation' as const, name: 'createConnection', arguments: [ @@ -84,7 +83,6 @@ export default { ] }, { - step: 2, type: 'mutation' as const, name: 'createAuthData', arguments: [ @@ -95,7 +93,6 @@ export default { ] }, { - step: 3, type: 'openWithPopup' as const, name: 'openAuthPopup', arguments: [ @@ -106,7 +103,6 @@ export default { ] }, { - step: 4, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -127,7 +123,6 @@ export default { ] }, { - step: 5, type: 'mutation' as const, name: 'verifyConnection', arguments: [ @@ -140,7 +135,6 @@ export default { ], reconnectionSteps: [ { - step: 1, type: 'mutation' as const, name: 'resetConnection', arguments: [ @@ -151,7 +145,6 @@ export default { ] }, { - step: 2, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -180,7 +173,6 @@ export default { ] }, { - step: 3, type: 'mutation' as const, name: 'createAuthData', arguments: [ @@ -191,7 +183,6 @@ export default { ] }, { - step: 4, type: 'openWithPopup' as const, name: 'openAuthPopup', arguments: [ @@ -202,7 +193,6 @@ export default { ] }, { - step: 5, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -223,7 +213,6 @@ export default { ] }, { - step: 6, type: 'mutation' as const, name: 'verifyConnection', arguments: [ diff --git a/packages/backend/src/apps/flickr/auth/index.ts b/packages/backend/src/apps/flickr/auth/index.ts index 33aeb02c..4b78c335 100644 --- a/packages/backend/src/apps/flickr/auth/index.ts +++ b/packages/backend/src/apps/flickr/auth/index.ts @@ -43,7 +43,6 @@ export default { ], authenticationSteps: [ { - step: 1, type: 'mutation' as const, name: 'createConnection', arguments: [ @@ -68,7 +67,6 @@ export default { ] }, { - step: 2, type: 'mutation' as const, name: 'createAuthData', arguments: [ @@ -79,7 +77,6 @@ export default { ] }, { - step: 3, type: 'openWithPopup' as const, name: 'openAuthPopup', arguments: [ @@ -90,7 +87,6 @@ export default { ] }, { - step: 4, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -111,7 +107,6 @@ export default { ] }, { - step: 5, type: 'mutation' as const, name: 'verifyConnection', arguments: [ @@ -124,7 +119,6 @@ export default { ], reconnectionSteps: [ { - step: 1, type: 'mutation' as const, name: 'resetConnection', arguments: [ @@ -135,7 +129,6 @@ export default { ] }, { - step: 2, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -160,7 +153,6 @@ export default { ] }, { - step: 3, type: 'mutation' as const, name: 'createAuthData', arguments: [ @@ -171,7 +163,6 @@ export default { ] }, { - step: 4, type: 'openWithPopup' as const, name: 'openAuthPopup', arguments: [ @@ -182,7 +173,6 @@ export default { ] }, { - step: 5, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -203,7 +193,6 @@ export default { ] }, { - step: 6, type: 'mutation' as const, name: 'verifyConnection', arguments: [ diff --git a/packages/backend/src/apps/github/auth/index.ts b/packages/backend/src/apps/github/auth/index.ts index 5f4637ce..5cfc9f59 100644 --- a/packages/backend/src/apps/github/auth/index.ts +++ b/packages/backend/src/apps/github/auth/index.ts @@ -43,7 +43,6 @@ export default { ], authenticationSteps: [ { - step: 1, type: 'mutation' as const, name: 'createConnection', arguments: [ @@ -68,7 +67,6 @@ export default { ] }, { - step: 2, type: 'mutation' as const, name: 'createAuthData', arguments: [ @@ -79,7 +77,6 @@ export default { ] }, { - step: 3, type: 'openWithPopup' as const, name: 'openAuthPopup', arguments: [ @@ -90,7 +87,6 @@ export default { ] }, { - step: 4, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -111,7 +107,6 @@ export default { ] }, { - step: 5, type: 'mutation' as const, name: 'verifyConnection', arguments: [ @@ -124,7 +119,6 @@ export default { ], reconnectionSteps: [ { - step: 1, type: 'mutation' as const, name: 'resetConnection', arguments: [ @@ -135,7 +129,6 @@ export default { ] }, { - step: 2, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -160,7 +153,6 @@ export default { ] }, { - step: 3, type: 'mutation' as const, name: 'createAuthData', arguments: [ @@ -171,7 +163,6 @@ export default { ] }, { - step: 4, type: 'openWithPopup' as const, name: 'openAuthPopup', arguments: [ @@ -182,7 +173,6 @@ export default { ] }, { - step: 5, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -203,7 +193,6 @@ export default { ] }, { - step: 6, type: 'mutation' as const, name: 'verifyConnection', arguments: [ diff --git a/packages/backend/src/apps/slack/auth/index.ts b/packages/backend/src/apps/slack/auth/index.ts index 88569ba0..a4d02952 100644 --- a/packages/backend/src/apps/slack/auth/index.ts +++ b/packages/backend/src/apps/slack/auth/index.ts @@ -41,7 +41,6 @@ export default { ], authenticationSteps: [ { - step: 1, type: 'mutation' as const, name: 'createConnection', arguments: [ @@ -66,7 +65,6 @@ export default { ], }, { - step: 2, type: 'mutation' as const, name: 'createAuthData', arguments: [ @@ -77,7 +75,6 @@ export default { ], }, { - step: 3, type: 'openWithPopup' as const, name: 'openAuthPopup', arguments: [ @@ -88,7 +85,6 @@ export default { ], }, { - step: 4, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -113,7 +109,6 @@ export default { ], }, { - step: 5, type: 'mutation' as const, name: 'verifyConnection', arguments: [ @@ -126,7 +121,6 @@ export default { ], reconnectionSteps: [ { - step: 1, type: 'mutation' as const, name: 'resetConnection', arguments: [ @@ -137,7 +131,6 @@ export default { ], }, { - step: 2, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -162,7 +155,6 @@ export default { ], }, { - step: 3, type: 'mutation' as const, name: 'createAuthData', arguments: [ @@ -173,7 +165,6 @@ export default { ], }, { - step: 4, type: 'openWithPopup' as const, name: 'openAuthPopup', arguments: [ @@ -184,7 +175,6 @@ export default { ], }, { - step: 5, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -209,7 +199,6 @@ export default { ], }, { - step: 6, type: 'mutation' as const, name: 'verifyConnection', arguments: [ diff --git a/packages/backend/src/apps/smtp/auth/index.ts b/packages/backend/src/apps/smtp/auth/index.ts index fa41d608..0a4ad9e0 100644 --- a/packages/backend/src/apps/smtp/auth/index.ts +++ b/packages/backend/src/apps/smtp/auth/index.ts @@ -88,7 +88,6 @@ export default { ], authenticationSteps: [ { - step: 1, type: 'mutation' as const, name: 'createConnection', arguments: [ @@ -129,7 +128,6 @@ export default { ], }, { - step: 2, type: 'mutation' as const, name: 'verifyConnection', arguments: [ @@ -142,7 +140,6 @@ export default { ], reconnectionSteps: [ { - step: 1, type: 'mutation' as const, name: 'resetConnection', arguments: [ @@ -153,7 +150,6 @@ export default { ], }, { - step: 2, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -194,7 +190,6 @@ export default { ], }, { - step: 3, type: 'mutation' as const, name: 'verifyConnection', arguments: [ diff --git a/packages/backend/src/apps/twilio/auth/index.ts b/packages/backend/src/apps/twilio/auth/index.ts index 8df9da7c..d33548ba 100644 --- a/packages/backend/src/apps/twilio/auth/index.ts +++ b/packages/backend/src/apps/twilio/auth/index.ts @@ -29,7 +29,6 @@ export default { ], authenticationSteps: [ { - step: 1, type: 'mutation' as const, name: 'createConnection', arguments: [ @@ -54,7 +53,6 @@ export default { ], }, { - step: 2, type: 'mutation' as const, name: 'verifyConnection', arguments: [ @@ -67,7 +65,6 @@ export default { ], reconnectionSteps: [ { - step: 1, type: 'mutation' as const, name: 'resetConnection', arguments: [ @@ -78,7 +75,6 @@ export default { ], }, { - step: 2, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -103,7 +99,6 @@ export default { ], }, { - step: 3, type: 'mutation' as const, name: 'verifyConnection', arguments: [ diff --git a/packages/backend/src/apps/twitter/auth/index.ts b/packages/backend/src/apps/twitter/auth/index.ts index 98d04eee..ecf5ae3f 100644 --- a/packages/backend/src/apps/twitter/auth/index.ts +++ b/packages/backend/src/apps/twitter/auth/index.ts @@ -41,7 +41,6 @@ export default { ], authenticationSteps: [ { - step: 1, type: 'mutation' as const, name: 'createConnection', arguments: [ @@ -66,7 +65,6 @@ export default { ], }, { - step: 2, type: 'mutation' as const, name: 'createAuthData', arguments: [ @@ -77,7 +75,6 @@ export default { ], }, { - step: 3, type: 'openWithPopup' as const, name: 'openAuthPopup', arguments: [ @@ -88,7 +85,6 @@ export default { ], }, { - step: 4, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -109,7 +105,6 @@ export default { ], }, { - step: 5, type: 'mutation' as const, name: 'verifyConnection', arguments: [ @@ -122,7 +117,6 @@ export default { ], reconnectionSteps: [ { - step: 1, type: 'mutation' as const, name: 'resetConnection', arguments: [ @@ -133,7 +127,6 @@ export default { ], }, { - step: 2, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -158,7 +151,6 @@ export default { ], }, { - step: 3, type: 'mutation' as const, name: 'createAuthData', arguments: [ @@ -169,7 +161,6 @@ export default { ], }, { - step: 4, type: 'openWithPopup' as const, name: 'openAuthPopup', arguments: [ @@ -180,7 +171,6 @@ export default { ], }, { - step: 5, type: 'mutation' as const, name: 'updateConnection', arguments: [ @@ -201,7 +191,6 @@ export default { ], }, { - step: 6, type: 'mutation' as const, name: 'verifyConnection', arguments: [