Skip to content

Commit

Permalink
Update graphql (#950)
Browse files Browse the repository at this point in the history
* update graphql

* fix types

* update versions

* fix types
  • Loading branch information
andy-t-wang authored Oct 4, 2024
1 parent c974001 commit 8cfe197
Show file tree
Hide file tree
Showing 145 changed files with 4,612 additions and 5,141 deletions.
11 changes: 7 additions & 4 deletions web/api/create-team/graphql/insert-membership.generated.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* eslint-disable import/no-relative-parent-imports -- auto generated file */
import * as Types from "@/graphql/graphql";

import { GraphQLClient } from "graphql-request";
import { GraphQLClientRequestHeaders } from "graphql-request/build/cjs/types";
import { GraphQLClient, RequestOptions } from "graphql-request";
import gql from "graphql-tag";
type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
export type InsertMembershipMutationVariables = Types.Exact<{
team_id: Types.Scalars["String"];
user_id?: Types.InputMaybe<Types.Scalars["String"]>;
team_id: Types.Scalars["String"]["input"];
user_id?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
role?: Types.InputMaybe<Types.Role_Enum>;
}>;

Expand Down Expand Up @@ -68,12 +68,14 @@ export type SdkFunctionWrapper = <T>(
action: (requestHeaders?: Record<string, string>) => Promise<T>,
operationName: string,
operationType?: string,
variables?: any,
) => Promise<T>;

const defaultWrapper: SdkFunctionWrapper = (
action,
_operationName,
_operationType,
_variables,
) => action();

export function getSdk(
Expand All @@ -94,6 +96,7 @@ export function getSdk(
),
"InsertMembership",
"mutation",
variables,
);
},
};
Expand Down
9 changes: 6 additions & 3 deletions web/api/create-team/graphql/insert-team.generated.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable import/no-relative-parent-imports -- auto generated file */
import * as Types from "@/graphql/graphql";

import { GraphQLClient } from "graphql-request";
import { GraphQLClientRequestHeaders } from "graphql-request/build/cjs/types";
import { GraphQLClient, RequestOptions } from "graphql-request";
import gql from "graphql-tag";
type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
export type InsertTeamMutationVariables = Types.Exact<{
team_name: Types.Scalars["String"];
team_name: Types.Scalars["String"]["input"];
}>;

export type InsertTeamMutation = {
Expand All @@ -25,12 +25,14 @@ export type SdkFunctionWrapper = <T>(
action: (requestHeaders?: Record<string, string>) => Promise<T>,
operationName: string,
operationType?: string,
variables?: any,
) => Promise<T>;

const defaultWrapper: SdkFunctionWrapper = (
action,
_operationName,
_operationType,
_variables,
) => action();

export function getSdk(
Expand All @@ -50,6 +52,7 @@ export function getSdk(
}),
"InsertTeam",
"mutation",
variables,
);
},
};
Expand Down
7 changes: 5 additions & 2 deletions web/api/create-team/graphql/insert-user.generated.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-disable import/no-relative-parent-imports -- auto generated file */
import * as Types from "@/graphql/graphql";

import { GraphQLClient } from "graphql-request";
import { GraphQLClientRequestHeaders } from "graphql-request/build/cjs/types";
import { GraphQLClient, RequestOptions } from "graphql-request";
import gql from "graphql-tag";
type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
export type InsertUserMutationVariables = Types.Exact<{
user_data: Types.User_Insert_Input;
}>;
Expand Down Expand Up @@ -32,12 +32,14 @@ export type SdkFunctionWrapper = <T>(
action: (requestHeaders?: Record<string, string>) => Promise<T>,
operationName: string,
operationType?: string,
variables?: any,
) => Promise<T>;

const defaultWrapper: SdkFunctionWrapper = (
action,
_operationName,
_operationType,
_variables,
) => action();

export function getSdk(
Expand All @@ -57,6 +59,7 @@ export function getSdk(
}),
"InsertUser",
"mutation",
variables,
);
},
};
Expand Down
55 changes: 30 additions & 25 deletions web/api/hasura/create-new-draft/graphql/create-draft.generated.ts
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
/* eslint-disable import/no-relative-parent-imports -- auto generated file */
import * as Types from "@/graphql/graphql";

import { GraphQLClient } from "graphql-request";
import { GraphQLClientRequestHeaders } from "graphql-request/build/cjs/types";
import { GraphQLClient, RequestOptions } from "graphql-request";
import gql from "graphql-tag";
type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
export type CreateDraftMutationVariables = Types.Exact<{
app_id: Types.Scalars["String"];
name?: Types.InputMaybe<Types.Scalars["String"]>;
short_name?: Types.InputMaybe<Types.Scalars["String"]>;
logo_img_url?: Types.InputMaybe<Types.Scalars["String"]>;
app_id: Types.Scalars["String"]["input"];
name?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
short_name?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
logo_img_url?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
showcase_img_urls?: Types.InputMaybe<
Array<Types.Scalars["String"]> | Types.Scalars["String"]
Array<Types.Scalars["String"]["input"]> | Types.Scalars["String"]["input"]
>;
hero_image_url?: Types.InputMaybe<Types.Scalars["String"]>;
description?: Types.InputMaybe<Types.Scalars["String"]>;
world_app_description?: Types.InputMaybe<Types.Scalars["String"]>;
category?: Types.InputMaybe<Types.Scalars["String"]>;
is_developer_allow_listing?: Types.InputMaybe<Types.Scalars["Boolean"]>;
integration_url?: Types.InputMaybe<Types.Scalars["String"]>;
app_website_url?: Types.InputMaybe<Types.Scalars["String"]>;
source_code_url?: Types.InputMaybe<Types.Scalars["String"]>;
verification_status?: Types.InputMaybe<Types.Scalars["String"]>;
world_app_button_text?: Types.InputMaybe<Types.Scalars["String"]>;
app_mode?: Types.InputMaybe<Types.Scalars["String"]>;
hero_image_url?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
description?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
world_app_description?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
category?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
is_developer_allow_listing?: Types.InputMaybe<
Types.Scalars["Boolean"]["input"]
>;
integration_url?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
app_website_url?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
source_code_url?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
verification_status?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
world_app_button_text?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
app_mode?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
whitelisted_addresses?: Types.InputMaybe<
Array<Types.Scalars["String"]> | Types.Scalars["String"]
Array<Types.Scalars["String"]["input"]> | Types.Scalars["String"]["input"]
>;
support_link?: Types.InputMaybe<Types.Scalars["String"]>;
support_link?: Types.InputMaybe<Types.Scalars["String"]["input"]>;
supported_countries?: Types.InputMaybe<
Array<Types.Scalars["String"]> | Types.Scalars["String"]
Array<Types.Scalars["String"]["input"]> | Types.Scalars["String"]["input"]
>;
supported_languages?: Types.InputMaybe<
Array<Types.Scalars["String"]> | Types.Scalars["String"]
Array<Types.Scalars["String"]["input"]> | Types.Scalars["String"]["input"]
>;
associated_domains?: Types.InputMaybe<
Array<Types.Scalars["String"]> | Types.Scalars["String"]
Array<Types.Scalars["String"]["input"]> | Types.Scalars["String"]["input"]
>;
contracts?: Types.InputMaybe<
Array<Types.Scalars["String"]> | Types.Scalars["String"]
Array<Types.Scalars["String"]["input"]> | Types.Scalars["String"]["input"]
>;
permit2_tokens?: Types.InputMaybe<
Array<Types.Scalars["String"]> | Types.Scalars["String"]
Array<Types.Scalars["String"]["input"]> | Types.Scalars["String"]["input"]
>;
}>;

Expand Down Expand Up @@ -111,12 +113,14 @@ export type SdkFunctionWrapper = <T>(
action: (requestHeaders?: Record<string, string>) => Promise<T>,
operationName: string,
operationType?: string,
variables?: any,
) => Promise<T>;

const defaultWrapper: SdkFunctionWrapper = (
action,
_operationName,
_operationType,
_variables,
) => action();

export function getSdk(
Expand All @@ -136,6 +140,7 @@ export function getSdk(
}),
"CreateDraft",
"mutation",
variables,
);
},
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-disable import/no-relative-parent-imports -- auto generated file */
import * as Types from "@/graphql/graphql";

import { GraphQLClient } from "graphql-request";
import { GraphQLClientRequestHeaders } from "graphql-request/build/cjs/types";
import { GraphQLClient, RequestOptions } from "graphql-request";
import gql from "graphql-tag";
type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
export type CreateLocalisationMutationVariables = Types.Exact<{
input: Types.Localisations_Insert_Input;
}>;
Expand All @@ -28,12 +28,14 @@ export type SdkFunctionWrapper = <T>(
action: (requestHeaders?: Record<string, string>) => Promise<T>,
operationName: string,
operationType?: string,
variables?: any,
) => Promise<T>;

const defaultWrapper: SdkFunctionWrapper = (
action,
_operationName,
_operationType,
_variables,
) => action();

export function getSdk(
Expand All @@ -54,6 +56,7 @@ export function getSdk(
),
"CreateLocalisation",
"mutation",
variables,
);
},
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable import/no-relative-parent-imports -- auto generated file */
import * as Types from "@/graphql/graphql";

import { GraphQLClient } from "graphql-request";
import { GraphQLClientRequestHeaders } from "graphql-request/build/cjs/types";
import { GraphQLClient, RequestOptions } from "graphql-request";
import gql from "graphql-tag";
type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
export type FetchLocalisationsQueryVariables = Types.Exact<{
id: Types.Scalars["String"];
id: Types.Scalars["String"]["input"];
}>;

export type FetchLocalisationsQuery = {
Expand Down Expand Up @@ -42,12 +42,14 @@ export type SdkFunctionWrapper = <T>(
action: (requestHeaders?: Record<string, string>) => Promise<T>,
operationName: string,
operationType?: string,
variables?: any,
) => Promise<T>;

const defaultWrapper: SdkFunctionWrapper = (
action,
_operationName,
_operationType,
_variables,
) => action();

export function getSdk(
Expand All @@ -68,6 +70,7 @@ export function getSdk(
),
"FetchLocalisations",
"query",
variables,
);
},
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* eslint-disable import/no-relative-parent-imports -- auto generated file */
import * as Types from "@/graphql/graphql";

import { GraphQLClient } from "graphql-request";
import { GraphQLClientRequestHeaders } from "graphql-request/build/cjs/types";
import { GraphQLClient, RequestOptions } from "graphql-request";
import gql from "graphql-tag";
type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
export type FetchAppMetadataQueryVariables = Types.Exact<{
team_id: Types.Scalars["String"];
app_id: Types.Scalars["String"];
user_id: Types.Scalars["String"];
team_id: Types.Scalars["String"]["input"];
app_id: Types.Scalars["String"]["input"];
user_id: Types.Scalars["String"]["input"];
}>;

export type FetchAppMetadataQuery = {
Expand Down Expand Up @@ -95,12 +95,14 @@ export type SdkFunctionWrapper = <T>(
action: (requestHeaders?: Record<string, string>) => Promise<T>,
operationName: string,
operationType?: string,
variables?: any,
) => Promise<T>;

const defaultWrapper: SdkFunctionWrapper = (
action,
_operationName,
_operationType,
_variables,
) => action();

export function getSdk(
Expand All @@ -121,6 +123,7 @@ export function getSdk(
),
"FetchAppMetadata",
"query",
variables,
);
},
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable import/no-relative-parent-imports -- auto generated file */
import * as Types from "@/graphql/graphql";

import { GraphQLClient } from "graphql-request";
import { GraphQLClientRequestHeaders } from "graphql-request/build/cjs/types";
import { GraphQLClient, RequestOptions } from "graphql-request";
import gql from "graphql-tag";
type GraphQLClientRequestHeaders = RequestOptions["requestHeaders"];
export type GetAppReviewImagesQueryVariables = Types.Exact<{
app_id: Types.Scalars["String"];
app_id: Types.Scalars["String"]["input"];
}>;

export type GetAppReviewImagesQuery = {
Expand Down Expand Up @@ -37,12 +37,14 @@ export type SdkFunctionWrapper = <T>(
action: (requestHeaders?: Record<string, string>) => Promise<T>,
operationName: string,
operationType?: string,
variables?: any,
) => Promise<T>;

const defaultWrapper: SdkFunctionWrapper = (
action,
_operationName,
_operationType,
_variables,
) => action();

export function getSdk(
Expand All @@ -63,6 +65,7 @@ export function getSdk(
),
"GetAppReviewImages",
"query",
variables,
);
},
};
Expand Down
Loading

0 comments on commit 8cfe197

Please sign in to comment.