Skip to content

Commit

Permalink
chore(deps): pin dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and phryneas committed Jan 5, 2024
1 parent 9b9acd2 commit d7f56f1
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 359 deletions.
224 changes: 13 additions & 211 deletions examples/polls-demo/components/poll/documents.generated.ts
Original file line number Diff line number Diff line change
@@ -1,220 +1,22 @@
import * as Types from "../types.generated";
import * as Types from '../types.generated';

import { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-node/core";
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type AnswerPollMutationVariables = Types.Exact<{
pollId: Types.Scalars["ID"];
answerId: Types.Scalars["ID"];
pollId: Types.Scalars['ID'];
answerId: Types.Scalars['ID'];
}>;

export type AnswerPollMutation = {
__typename?: "Mutation";
answerPoll?: {
__typename?: "Poll";
id: string;
question: string;
totalVotes: number;
answers: Array<{
__typename?: "Answer";
id: string;
text: string;
votes: number;
percentage: number;
}>;
} | null;
};

export type AnswerPollMutation = { __typename?: 'Mutation', answerPoll?: { __typename?: 'Poll', id: string, question: string, totalVotes: number, answers: Array<{ __typename?: 'Answer', id: string, text: string, votes: number, percentage: number }> } | null };

export type GetPollQueryVariables = Types.Exact<{
id: Types.Scalars["ID"];
delay?: Types.InputMaybe<Types.Scalars["Int"]>;
id: Types.Scalars['ID'];
delay?: Types.InputMaybe<Types.Scalars['Int']>;
}>;

export type GetPollQuery = {
__typename?: "Query";
poll?: {
__typename?: "Poll";
id: string;
question: string;
totalVotes: number;
answers: Array<{
__typename?: "Answer";
id: string;
text: string;
votes: number;
percentage: number;
}>;
} | null;
};

export const AnswerPollDocument = {
kind: "Document",
definitions: [
{
kind: "OperationDefinition",
operation: "mutation",
name: { kind: "Name", value: "AnswerPoll" },
variableDefinitions: [
{
kind: "VariableDefinition",
variable: {
kind: "Variable",
name: { kind: "Name", value: "pollId" },
},
type: {
kind: "NonNullType",
type: { kind: "NamedType", name: { kind: "Name", value: "ID" } },
},
},
{
kind: "VariableDefinition",
variable: {
kind: "Variable",
name: { kind: "Name", value: "answerId" },
},
type: {
kind: "NonNullType",
type: { kind: "NamedType", name: { kind: "Name", value: "ID" } },
},
},
],
selectionSet: {
kind: "SelectionSet",
selections: [
{
kind: "Field",
name: { kind: "Name", value: "answerPoll" },
arguments: [
{
kind: "Argument",
name: { kind: "Name", value: "id" },
value: {
kind: "Variable",
name: { kind: "Name", value: "pollId" },
},
},
{
kind: "Argument",
name: { kind: "Name", value: "answerId" },
value: {
kind: "Variable",
name: { kind: "Name", value: "answerId" },
},
},
],
selectionSet: {
kind: "SelectionSet",
selections: [
{ kind: "Field", name: { kind: "Name", value: "id" } },
{ kind: "Field", name: { kind: "Name", value: "question" } },
{ kind: "Field", name: { kind: "Name", value: "totalVotes" } },
{
kind: "Field",
name: { kind: "Name", value: "answers" },
selectionSet: {
kind: "SelectionSet",
selections: [
{ kind: "Field", name: { kind: "Name", value: "id" } },
{ kind: "Field", name: { kind: "Name", value: "text" } },
{ kind: "Field", name: { kind: "Name", value: "votes" } },
{
kind: "Field",
name: { kind: "Name", value: "percentage" },
},
],
},
},
],
},
},
],
},
},
],
} as unknown as DocumentNode<AnswerPollMutation, AnswerPollMutationVariables>;
export const GetPollDocument = {
kind: "Document",
definitions: [
{
kind: "OperationDefinition",
operation: "query",
name: { kind: "Name", value: "GetPoll" },
variableDefinitions: [
{
kind: "VariableDefinition",
variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
type: {
kind: "NonNullType",
type: { kind: "NamedType", name: { kind: "Name", value: "ID" } },
},
},
{
kind: "VariableDefinition",
variable: {
kind: "Variable",
name: { kind: "Name", value: "delay" },
},
type: { kind: "NamedType", name: { kind: "Name", value: "Int" } },
defaultValue: { kind: "IntValue", value: "0" },
},
],
selectionSet: {
kind: "SelectionSet",
selections: [
{
kind: "Field",
name: { kind: "Name", value: "poll" },
arguments: [
{
kind: "Argument",
name: { kind: "Name", value: "id" },
value: {
kind: "Variable",
name: { kind: "Name", value: "id" },
},
},
],
directives: [
{
kind: "Directive",
name: { kind: "Name", value: "delay" },
arguments: [
{
kind: "Argument",
name: { kind: "Name", value: "ms" },
value: {
kind: "Variable",
name: { kind: "Name", value: "delay" },
},
},
],
},
],
selectionSet: {
kind: "SelectionSet",
selections: [
{ kind: "Field", name: { kind: "Name", value: "id" } },
{ kind: "Field", name: { kind: "Name", value: "question" } },
{ kind: "Field", name: { kind: "Name", value: "totalVotes" } },
{
kind: "Field",
name: { kind: "Name", value: "answers" },
selectionSet: {
kind: "SelectionSet",
selections: [
{ kind: "Field", name: { kind: "Name", value: "id" } },
{ kind: "Field", name: { kind: "Name", value: "text" } },
{ kind: "Field", name: { kind: "Name", value: "votes" } },
{
kind: "Field",
name: { kind: "Name", value: "percentage" },
},
],
},
},
],
},
},
],
},
},
],
} as unknown as DocumentNode<GetPollQuery, GetPollQueryVariables>;
export type GetPollQuery = { __typename?: 'Query', poll?: { __typename?: 'Poll', id: string, question: string, totalVotes: number, answers: Array<{ __typename?: 'Answer', id: string, text: string, votes: number, percentage: number }> } | null };


export const AnswerPollDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AnswerPoll"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pollId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"answerId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"answerPoll"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pollId"}}},{"kind":"Argument","name":{"kind":"Name","value":"answerId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"answerId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"totalVotes"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"text"}},{"kind":"Field","name":{"kind":"Name","value":"votes"}},{"kind":"Field","name":{"kind":"Name","value":"percentage"}}]}}]}}]}}]} as unknown as DocumentNode<AnswerPollMutation, AnswerPollMutationVariables>;
export const GetPollDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetPoll"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"delay"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"defaultValue":{"kind":"IntValue","value":"0"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"poll"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"delay"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ms"},"value":{"kind":"Variable","name":{"kind":"Name","value":"delay"}}}]}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"question"}},{"kind":"Field","name":{"kind":"Name","value":"totalVotes"}},{"kind":"Field","name":{"kind":"Name","value":"answers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"text"}},{"kind":"Field","name":{"kind":"Name","value":"votes"}},{"kind":"Field","name":{"kind":"Name","value":"percentage"}}]}}]}}]}}]} as unknown as DocumentNode<GetPollQuery, GetPollQueryVariables>;
46 changes: 21 additions & 25 deletions examples/polls-demo/components/types.generated.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = {
[K in keyof T]: T[K];
};
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]?: Maybe<T[SubKey]>;
};
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]: Maybe<T[SubKey]>;
};
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
Expand All @@ -20,42 +14,44 @@ export type Scalars = {
};

export type Answer = {
__typename?: "Answer";
id: Scalars["ID"];
percentage: Scalars["Float"];
text: Scalars["String"];
votes: Scalars["Int"];
__typename?: 'Answer';
id: Scalars['ID'];
percentage: Scalars['Float'];
text: Scalars['String'];
votes: Scalars['Int'];
};

export type Mutation = {
__typename?: "Mutation";
__typename?: 'Mutation';
answerPoll?: Maybe<Poll>;
};


export type MutationAnswerPollArgs = {
answerId: Scalars["ID"];
id: Scalars["ID"];
answerId: Scalars['ID'];
id: Scalars['ID'];
};

export type Poll = {
__typename?: "Poll";
__typename?: 'Poll';
answers: Array<Answer>;
id: Scalars["ID"];
question: Scalars["String"];
totalVotes: Scalars["Int"];
id: Scalars['ID'];
question: Scalars['String'];
totalVotes: Scalars['Int'];
};

export type Query = {
__typename?: "Query";
__typename?: 'Query';
_service: _Service;
poll?: Maybe<Poll>;
};


export type QueryPollArgs = {
id: Scalars["ID"];
id: Scalars['ID'];
};

export type _Service = {
__typename?: "_Service";
sdl: Scalars["String"];
__typename?: '_Service';
sdl: Scalars['String'];
};
30 changes: 15 additions & 15 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@
},
"devDependencies": {
"@apollo/client": "^3.8.6",
"@total-typescript/shoehorn": "^0.1.1",
"@tsconfig/recommended": "^1.0.3",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "latest",
"@typescript-eslint/parser": "latest",
"eslint": "latest",
"eslint-plugin-react": "latest",
"graphql": "^16.8.1",
"next": "^14.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.2",
"vitest": "^1.0.0"
"@total-typescript/shoehorn": "0.1.1",
"@tsconfig/recommended": "1.0.3",
"@types/node": "20.9.0",
"@typescript-eslint/eslint-plugin": "5.55.0",
"@typescript-eslint/parser": "5.55.0",
"eslint": "8.36.0",
"eslint-plugin-react": "7.32.2",
"graphql": "16.8.1",
"next": "14.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"rimraf": "5.0.0",
"ts-node": "10.9.1",
"typescript": "5.0.2",
"vitest": "1.0.0"
},
"peerDependencies": {
"@apollo/client": ">=3.8.0-rc || ^3.8.0 || >=3.9.0-alpha || >=3.9.0-beta || >=3.9.0-rc",
Expand Down
Loading

0 comments on commit d7f56f1

Please sign in to comment.