Skip to content

Commit 36925da

Browse files
committed
move ProviderInfo from core to account-client
Signed-off-by: nicolasschneider <[email protected]>
1 parent 2d29edf commit 36925da

File tree

8 files changed

+13
-11
lines changed

8 files changed

+13
-11
lines changed

packages/account-client/src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
type PersonId,
2424
type PersonInfo,
2525
type PersonUuid,
26-
type ProviderInfo,
2726
type SocialIdType,
2827
Version,
2928
type WorkspaceInfoWithStatus,
@@ -46,7 +45,8 @@ import type {
4645
RegionInfo,
4746
SocialId,
4847
WorkspaceLoginInfo,
49-
WorkspaceOperation
48+
WorkspaceOperation,
49+
ProviderInfo
5050
} from './types'
5151
import { getClientTimezone } from './utils'
5252

packages/account-client/src/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,8 @@ export interface IntegrationSecret {
108108
}
109109

110110
export type IntegrationSecretKey = Omit<IntegrationSecret, 'secret'>
111+
112+
export interface ProviderInfo {
113+
name: string
114+
displayName?: string
115+
}

packages/core/src/classes.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -869,9 +869,4 @@ export interface AccountInfo {
869869
locale?: string
870870
}
871871

872-
export interface ProviderInfo {
873-
name: string
874-
displayName?: string
875-
}
876-
877872
export type SocialKey = Pick<SocialId, 'type' | 'value'>

pods/authProviders/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"mongodb": "^6.12.0",
4949
"@hcengineering/core": "^0.6.32",
5050
"@hcengineering/account": "^0.6.0",
51+
"@hcengineering/account-client": "^0.6.0",
5152
"passport-custom": "~1.1.1",
5253
"passport-google-oauth20": "~2.0.0",
5354
"passport-github2": "~0.1.12",

pods/authProviders/src/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type AccountDB } from '@hcengineering/account'
2-
import { type ProviderInfo } from '@hcengineering/core'
2+
import { type ProviderInfo } from '@hcengineering/account-client'
33
import { BrandingMap, concatLink, MeasureContext, getBranding, SocialIdType } from '@hcengineering/core'
44
import Router from 'koa-router'
55
import { Strategy as GitHubStrategy } from 'passport-github2'

pods/authProviders/src/google.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type AccountDB } from '@hcengineering/account'
2-
import { type ProviderInfo } from '@hcengineering/core'
2+
import { type ProviderInfo } from '@hcengineering/account-client'
33
import { BrandingMap, concatLink, MeasureContext, getBranding, SocialIdType } from '@hcengineering/core'
44
import Router from 'koa-router'
55
import { Strategy as GoogleStrategy } from 'passport-google-oauth20'

pods/authProviders/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import { registerGithub } from './github'
66
import { registerGoogle } from './google'
77
import { registerOpenid } from './openid'
88
import { registerToken } from './token'
9-
import { BrandingMap, MeasureContext, type ProviderInfo } from '@hcengineering/core'
9+
import { BrandingMap, MeasureContext } from '@hcengineering/core'
1010
import { type AccountDB } from '@hcengineering/account'
11+
import { type ProviderInfo } from '@hcengineering/account-client'
1112

1213
export type Passport = typeof passport
1314

pods/authProviders/src/openid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414
//
1515
import { type AccountDB } from '@hcengineering/account'
16-
import { type ProviderInfo } from '@hcengineering/core'
16+
import { type ProviderInfo } from '@hcengineering/account-client'
1717
import { BrandingMap, concatLink, MeasureContext, getBranding, SocialIdType } from '@hcengineering/core'
1818
import Router from 'koa-router'
1919
import { Issuer, Strategy } from 'openid-client'

0 commit comments

Comments
 (0)