Skip to content

Commit db398fd

Browse files
committed
chore: fix graphql version conflicts
1 parent 6e6ded9 commit db398fd

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

scopes/cloud/hooks/use-cloud-scopes/use-cloud-scopes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const GET_CLOUD_SCOPES_QUERY = gql`
1313
displayName
1414
}
1515
}
16-
`;
16+
` as any;
1717

1818
export function useCloudScopes(ids?: string[]): { cloudScopes?: ScopeDescriptor[] } {
1919
const { data } = useDataQuery<{ getCloudScopes?: (ScopeDescriptor & { id: string })[] }>(GET_CLOUD_SCOPES_QUERY, {

scopes/cloud/hooks/use-current-user/use-current-user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const CURRENT_USER_QUERY = gql`
1919
loginUrl
2020
isLoggedIn
2121
}
22-
`;
22+
` as any;
2323

2424
export function useCurrentUser(): {
2525
currentUser?: CloudUser;

scopes/component/component/host/use-component-host.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const COMPONENT_HOST = gql`
2424
}
2525
}
2626
}
27-
`;
27+
` as any;
2828

2929
export function useComponentHost() {
3030
const { data, loading } = useDataQuery(COMPONENT_HOST);

scopes/component/component/ui/aspect-page/aspect-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const GET_COMPONENT = gql`
2121
}
2222
}
2323
}
24-
`;
24+
` as any;
2525

2626
// TODO: get the docs domain from the community aspect and pass it here as a prop
2727
export function AspectPage() {

scopes/component/component/ui/use-component.fragments.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const componentIdFields = gql`
66
version
77
scope
88
}
9-
`;
9+
` as any;
1010

1111
export const componentOverviewFields = gql`
1212
fragment componentOverviewFields on Component {
@@ -56,7 +56,7 @@ export const componentOverviewFields = gql`
5656
}
5757
}
5858
${componentIdFields}
59-
`;
59+
` as any;
6060

6161
export const componentFields = gql`
6262
fragment componentFields on Component {
@@ -72,7 +72,7 @@ export const componentFields = gql`
7272
}
7373
}
7474
${componentOverviewFields}
75-
`;
75+
` as any;
7676

7777
export const componentFieldsWithLogs = gql`
7878
fragment componentFieldWithLogs on Component {
@@ -100,7 +100,7 @@ export const componentFieldsWithLogs = gql`
100100
}
101101
}
102102
${componentIdFields}
103-
`;
103+
` as any;
104104

105105
export const COMPONENT_QUERY_LOG_FIELDS = `
106106
$logOffset: Int
@@ -109,7 +109,7 @@ export const COMPONENT_QUERY_LOG_FIELDS = `
109109
$logHead: String
110110
$logSort: String
111111
$logTakeHeadFromComponent: Boolean
112-
`;
112+
` as any;
113113

114114
export const GET_COMPONENT = gql`
115115
query Component($extensionId: String!, $id: String!) {
@@ -121,7 +121,7 @@ export const GET_COMPONENT = gql`
121121
}
122122
}
123123
${componentFields}
124-
`;
124+
` as any;
125125

126126
export const GET_COMPONENT_WITH_LOGS = gql`
127127
query Component(
@@ -137,7 +137,7 @@ export const GET_COMPONENT_WITH_LOGS = gql`
137137
}
138138
}
139139
${componentFieldsWithLogs}
140-
`;
140+
` as any;
141141

142142
export const SUB_SUBSCRIPTION_ADDED = gql`
143143
subscription OnComponentAdded {
@@ -148,7 +148,7 @@ export const SUB_SUBSCRIPTION_ADDED = gql`
148148
}
149149
}
150150
${componentFields}
151-
`;
151+
` as any;
152152

153153
export const SUB_COMPONENT_CHANGED = gql`
154154
subscription OnComponentChanged {
@@ -159,7 +159,7 @@ export const SUB_COMPONENT_CHANGED = gql`
159159
}
160160
}
161161
${componentFields}
162-
`;
162+
` as any;
163163

164164
export const SUB_COMPONENT_REMOVED = gql`
165165
subscription OnComponentRemoved {
@@ -170,4 +170,4 @@ export const SUB_COMPONENT_REMOVED = gql`
170170
}
171171
}
172172
${componentIdFields}
173-
`;
173+
` as any;

scopes/react/react/react.main.runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ export class ReactMain {
467467
);
468468
const appType = new ReactAppType('react-app', reactEnv, logger, dependencyResolver);
469469
const react = new ReactMain(reactEnv, envs, application, appType, dependencyResolver, logger);
470-
graphql.register(() => reactSchema(react));
470+
graphql.register(() => reactSchema(react) as any);
471471
envs.registerEnv(reactEnv);
472472
if (generator) {
473473
const envContext = new EnvContext(ComponentID.fromString(ReactAspect.id), loggerMain, workerMain, harmony);

scopes/workspace/workspace/ui/workspace/use-workspace.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const wcComponentFields = gql`
6565
icon
6666
}
6767
}
68-
`;
68+
` as any;
6969

7070
const WORKSPACE = gql`
7171
query workspace {
@@ -79,7 +79,7 @@ const WORKSPACE = gql`
7979
}
8080
}
8181
${wcComponentFields}
82-
`;
82+
` as any;
8383

8484
const COMPONENT_SUBSCRIPTION_ADDED = gql`
8585
subscription OnComponentAdded {
@@ -90,7 +90,7 @@ const COMPONENT_SUBSCRIPTION_ADDED = gql`
9090
}
9191
}
9292
${wcComponentFields}
93-
`;
93+
` as any;
9494

9595
const COMPONENT_SUBSCRIPTION_CHANGED = gql`
9696
subscription OnComponentChanged {
@@ -101,7 +101,7 @@ const COMPONENT_SUBSCRIPTION_CHANGED = gql`
101101
}
102102
}
103103
${wcComponentFields}
104-
`;
104+
` as any;
105105

106106
const COMPONENT_SUBSCRIPTION_REMOVED = gql`
107107
subscription OnComponentRemoved {
@@ -113,7 +113,7 @@ const COMPONENT_SUBSCRIPTION_REMOVED = gql`
113113
}
114114
}
115115
}
116-
`;
116+
` as any;
117117

118118
const COMPONENT_SERVER_STARTED = gql`
119119
subscription OnComponentServerStarted {
@@ -124,7 +124,7 @@ const COMPONENT_SERVER_STARTED = gql`
124124
basePath
125125
}
126126
}
127-
`;
127+
` as any;
128128

129129
export function useWorkspace(options: UseWorkspaceOptions = {}) {
130130
const { data, subscribeToMore, ...rest } = useDataQuery(WORKSPACE);

0 commit comments

Comments
 (0)