Skip to content

Commit e55dc00

Browse files
committed
Refactor RemoteSpecification
1 parent c539bc0 commit e55dc00

File tree

6 files changed

+103
-203
lines changed

6 files changed

+103
-203
lines changed

packages/app/src/cli/api/graphql/extension_specifications.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@ export interface ExtensionSpecificationsQueryVariables {
3131
}
3232

3333
export interface RemoteSpecification {
34+
name: string
35+
externalName: string
36+
identifier: string
37+
gated: boolean
38+
externalIdentifier: string
39+
experience: 'extension' | 'configuration' | 'deprecated'
40+
managementExperience: 'cli' | 'custom' | 'dashboard'
41+
registrationLimit: number
42+
uidStrategy: 'single' | 'dynamic' | 'uuid'
43+
validationSchema?: {
44+
jsonSchema: string
45+
} | null
46+
}
47+
48+
export interface PartnersRemoteSpecification {
3449
name: string
3550
externalName: string
3651
identifier: string
@@ -59,5 +74,5 @@ export interface FlattenedRemoteSpecification extends RemoteSpecification {
5974
}
6075

6176
export interface ExtensionSpecificationsQuerySchema {
62-
extensionSpecifications: RemoteSpecification[]
77+
extensionSpecifications: PartnersRemoteSpecification[]
6378
}

0 commit comments

Comments
 (0)