Skip to content

Commit

Permalink
Update types.generated.ts changes caused by bump in typescript-resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
eddeee888 committed Apr 5, 2023
1 parent 51eb2f2 commit db94510
Show file tree
Hide file tree
Showing 10 changed files with 456 additions and 276 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,24 @@ export type DirectiveResolverFn<
info: GraphQLResolveInfo
) => TResult | Promise<TResult>;

/** Mapping of union types */
export type ResolversUnionTypes = {
TopicByIdPayload: StandardError | TopicByIdResult;
TopicCreatePayload: StandardError | TopicCreateResult;
TopicEditPayload: StandardError | TopicEditResult;
TopicsCreatedByUserPayload: StandardError | TopicsCreatedByUserResult;
UserPayload: StandardError | UserResult;
};

/** Mapping of union parent types */
export type ResolversUnionParentTypes = {
TopicByIdPayload: StandardError | TopicByIdResult;
TopicCreatePayload: StandardError | TopicCreateResult;
TopicEditPayload: StandardError | TopicEditResult;
TopicsCreatedByUserPayload: StandardError | TopicsCreatedByUserResult;
UserPayload: StandardError | UserResult;
};

/** Mapping between all available schema types and the resolvers types */
export type ResolversTypes = {
BigInt: ResolverTypeWrapper<Scalars['BigInt']>;
Expand All @@ -305,27 +323,27 @@ export type ResolversTypes = {
StandardError: ResolverTypeWrapper<StandardError>;
Subscription: ResolverTypeWrapper<{}>;
Topic: ResolverTypeWrapper<Topic>;
TopicByIdPayload:
| ResolversTypes['StandardError']
| ResolversTypes['TopicByIdResult'];
TopicByIdPayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicByIdPayload']
>;
TopicByIdResult: ResolverTypeWrapper<TopicByIdResult>;
TopicCreateInput: TopicCreateInput;
TopicCreatePayload:
| ResolversTypes['StandardError']
| ResolversTypes['TopicCreateResult'];
TopicCreatePayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicCreatePayload']
>;
TopicCreateResult: ResolverTypeWrapper<TopicCreateResult>;
TopicEditInput: TopicEditInput;
TopicEditPayload:
| ResolversTypes['StandardError']
| ResolversTypes['TopicEditResult'];
TopicEditPayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicEditPayload']
>;
TopicEditResult: ResolverTypeWrapper<TopicEditResult>;
TopicsCreatedByUserInput: TopicsCreatedByUserInput;
TopicsCreatedByUserPayload:
| ResolversTypes['StandardError']
| ResolversTypes['TopicsCreatedByUserResult'];
TopicsCreatedByUserPayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicsCreatedByUserPayload']
>;
TopicsCreatedByUserResult: ResolverTypeWrapper<TopicsCreatedByUserResult>;
User: ResolverTypeWrapper<User>;
UserPayload: ResolversTypes['StandardError'] | ResolversTypes['UserResult'];
UserPayload: ResolverTypeWrapper<ResolversUnionTypes['UserPayload']>;
UserResult: ResolverTypeWrapper<UserResult>;
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
};
Expand All @@ -347,29 +365,19 @@ export type ResolversParentTypes = {
StandardError: StandardError;
Subscription: {};
Topic: Topic;
TopicByIdPayload:
| ResolversParentTypes['StandardError']
| ResolversParentTypes['TopicByIdResult'];
TopicByIdPayload: ResolversUnionParentTypes['TopicByIdPayload'];
TopicByIdResult: TopicByIdResult;
TopicCreateInput: TopicCreateInput;
TopicCreatePayload:
| ResolversParentTypes['StandardError']
| ResolversParentTypes['TopicCreateResult'];
TopicCreatePayload: ResolversUnionParentTypes['TopicCreatePayload'];
TopicCreateResult: TopicCreateResult;
TopicEditInput: TopicEditInput;
TopicEditPayload:
| ResolversParentTypes['StandardError']
| ResolversParentTypes['TopicEditResult'];
TopicEditPayload: ResolversUnionParentTypes['TopicEditPayload'];
TopicEditResult: TopicEditResult;
TopicsCreatedByUserInput: TopicsCreatedByUserInput;
TopicsCreatedByUserPayload:
| ResolversParentTypes['StandardError']
| ResolversParentTypes['TopicsCreatedByUserResult'];
TopicsCreatedByUserPayload: ResolversUnionParentTypes['TopicsCreatedByUserPayload'];
TopicsCreatedByUserResult: TopicsCreatedByUserResult;
User: User;
UserPayload:
| ResolversParentTypes['StandardError']
| ResolversParentTypes['UserResult'];
UserPayload: ResolversUnionParentTypes['UserPayload'];
UserResult: UserResult;
Boolean: Scalars['Boolean'];
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,24 @@ export type DirectiveResolverFn<
info: GraphQLResolveInfo
) => TResult | Promise<TResult>;

/** Mapping of union types */
export type ResolversUnionTypes = {
TopicByIdPayload: StandardError | TopicByIdResult;
TopicCreatePayload: StandardError | TopicCreateResult;
TopicEditPayload: StandardError | TopicEditResult;
TopicsCreatedByUserPayload: StandardError | TopicsCreatedByUserResult;
UserPayload: StandardError | UserResult;
};

/** Mapping of union parent types */
export type ResolversUnionParentTypes = {
TopicByIdPayload: StandardError | TopicByIdResult;
TopicCreatePayload: StandardError | TopicCreateResult;
TopicEditPayload: StandardError | TopicEditResult;
TopicsCreatedByUserPayload: StandardError | TopicsCreatedByUserResult;
UserPayload: StandardError | UserResult;
};

/** Mapping between all available schema types and the resolvers types */
export type ResolversTypes = {
AbsoluteDefault: ResolverTypeWrapper<Scalars['AbsoluteDefault']>;
Expand Down Expand Up @@ -315,27 +333,27 @@ export type ResolversTypes = {
StandardError: ResolverTypeWrapper<StandardError>;
Subscription: ResolverTypeWrapper<{}>;
Topic: ResolverTypeWrapper<Topic>;
TopicByIdPayload:
| ResolversTypes['StandardError']
| ResolversTypes['TopicByIdResult'];
TopicByIdPayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicByIdPayload']
>;
TopicByIdResult: ResolverTypeWrapper<TopicByIdResult>;
TopicCreateInput: TopicCreateInput;
TopicCreatePayload:
| ResolversTypes['StandardError']
| ResolversTypes['TopicCreateResult'];
TopicCreatePayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicCreatePayload']
>;
TopicCreateResult: ResolverTypeWrapper<TopicCreateResult>;
TopicEditInput: TopicEditInput;
TopicEditPayload:
| ResolversTypes['StandardError']
| ResolversTypes['TopicEditResult'];
TopicEditPayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicEditPayload']
>;
TopicEditResult: ResolverTypeWrapper<TopicEditResult>;
TopicsCreatedByUserInput: TopicsCreatedByUserInput;
TopicsCreatedByUserPayload:
| ResolversTypes['StandardError']
| ResolversTypes['TopicsCreatedByUserResult'];
TopicsCreatedByUserPayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicsCreatedByUserPayload']
>;
TopicsCreatedByUserResult: ResolverTypeWrapper<TopicsCreatedByUserResult>;
User: ResolverTypeWrapper<User>;
UserPayload: ResolversTypes['StandardError'] | ResolversTypes['UserResult'];
UserPayload: ResolverTypeWrapper<ResolversUnionTypes['UserPayload']>;
UserResult: ResolverTypeWrapper<UserResult>;
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
};
Expand Down Expand Up @@ -363,29 +381,19 @@ export type ResolversParentTypes = {
StandardError: StandardError;
Subscription: {};
Topic: Topic;
TopicByIdPayload:
| ResolversParentTypes['StandardError']
| ResolversParentTypes['TopicByIdResult'];
TopicByIdPayload: ResolversUnionParentTypes['TopicByIdPayload'];
TopicByIdResult: TopicByIdResult;
TopicCreateInput: TopicCreateInput;
TopicCreatePayload:
| ResolversParentTypes['StandardError']
| ResolversParentTypes['TopicCreateResult'];
TopicCreatePayload: ResolversUnionParentTypes['TopicCreatePayload'];
TopicCreateResult: TopicCreateResult;
TopicEditInput: TopicEditInput;
TopicEditPayload:
| ResolversParentTypes['StandardError']
| ResolversParentTypes['TopicEditResult'];
TopicEditPayload: ResolversUnionParentTypes['TopicEditPayload'];
TopicEditResult: TopicEditResult;
TopicsCreatedByUserInput: TopicsCreatedByUserInput;
TopicsCreatedByUserPayload:
| ResolversParentTypes['StandardError']
| ResolversParentTypes['TopicsCreatedByUserResult'];
TopicsCreatedByUserPayload: ResolversUnionParentTypes['TopicsCreatedByUserPayload'];
TopicsCreatedByUserResult: TopicsCreatedByUserResult;
User: User;
UserPayload:
| ResolversParentTypes['StandardError']
| ResolversParentTypes['UserResult'];
UserPayload: ResolversUnionParentTypes['UserPayload'];
UserResult: UserResult;
Boolean: Scalars['Boolean'];
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,58 @@ export type DirectiveResolverFn<
info: GraphQLResolveInfo
) => TResult | Promise<TResult>;

/** Mapping of union types */
export type ResolversUnionTypes = {
TopicByIdPayload:
| Error
| (Omit<TopicByIdResult, 'result'> & {
result?: Maybe<ResolversTypes['Topic']>;
});
TopicCreatePayload:
| Error
| (Omit<TopicCreateResult, 'result'> & { result: ResolversTypes['Topic'] });
TopicEditPayload:
| Error
| (Omit<TopicEditResult, 'result'> & { result: ResolversTypes['Topic'] });
TopicsCreatedByUserPayload:
| Error
| (Omit<TopicsCreatedByUserResult, 'result'> & {
result: Array<ResolversTypes['Topic']>;
});
UserPayload:
| Error
| (Omit<UserResult, 'result'> & { result?: Maybe<ResolversTypes['User']> });
};

/** Mapping of union parent types */
export type ResolversUnionParentTypes = {
TopicByIdPayload:
| Error
| (Omit<TopicByIdResult, 'result'> & {
result?: Maybe<ResolversParentTypes['Topic']>;
});
TopicCreatePayload:
| Error
| (Omit<TopicCreateResult, 'result'> & {
result: ResolversParentTypes['Topic'];
});
TopicEditPayload:
| Error
| (Omit<TopicEditResult, 'result'> & {
result: ResolversParentTypes['Topic'];
});
TopicsCreatedByUserPayload:
| Error
| (Omit<TopicsCreatedByUserResult, 'result'> & {
result: Array<ResolversParentTypes['Topic']>;
});
UserPayload:
| Error
| (Omit<UserResult, 'result'> & {
result?: Maybe<ResolversParentTypes['User']>;
});
};

/** Mapping between all available schema types and the resolvers types */
export type ResolversTypes = {
Account: ResolverTypeWrapper<AccountMapper>;
Expand All @@ -298,35 +350,39 @@ export type ResolversTypes = {
Topic: ResolverTypeWrapper<
Omit<Topic, 'creator'> & { creator: ResolversTypes['User'] }
>;
TopicByIdPayload: ResolversTypes['Error'] | ResolversTypes['TopicByIdResult'];
TopicByIdPayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicByIdPayload']
>;
TopicByIdResult: ResolverTypeWrapper<
Omit<TopicByIdResult, 'result'> & {
result?: Maybe<ResolversTypes['Topic']>;
}
>;
TopicCreateInput: TopicCreateInput;
TopicCreatePayload:
| ResolversTypes['Error']
| ResolversTypes['TopicCreateResult'];
TopicCreatePayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicCreatePayload']
>;
TopicCreateResult: ResolverTypeWrapper<
Omit<TopicCreateResult, 'result'> & { result: ResolversTypes['Topic'] }
>;
TopicEditInput: TopicEditInput;
TopicEditPayload: ResolversTypes['Error'] | ResolversTypes['TopicEditResult'];
TopicEditPayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicEditPayload']
>;
TopicEditResult: ResolverTypeWrapper<
Omit<TopicEditResult, 'result'> & { result: ResolversTypes['Topic'] }
>;
TopicsCreatedByUserInput: TopicsCreatedByUserInput;
TopicsCreatedByUserPayload:
| ResolversTypes['Error']
| ResolversTypes['TopicsCreatedByUserResult'];
TopicsCreatedByUserPayload: ResolverTypeWrapper<
ResolversUnionTypes['TopicsCreatedByUserPayload']
>;
TopicsCreatedByUserResult: ResolverTypeWrapper<
Omit<TopicsCreatedByUserResult, 'result'> & {
result: Array<ResolversTypes['Topic']>;
}
>;
User: ResolverTypeWrapper<UserMapper>;
UserPayload: ResolversTypes['Error'] | ResolversTypes['UserResult'];
UserPayload: ResolverTypeWrapper<ResolversUnionTypes['UserPayload']>;
UserResult: ResolverTypeWrapper<
Omit<UserResult, 'result'> & { result?: Maybe<ResolversTypes['User']> }
>;
Expand All @@ -348,37 +404,27 @@ export type ResolversParentTypes = {
Query: {};
Subscription: {};
Topic: Omit<Topic, 'creator'> & { creator: ResolversParentTypes['User'] };
TopicByIdPayload:
| ResolversParentTypes['Error']
| ResolversParentTypes['TopicByIdResult'];
TopicByIdPayload: ResolversUnionParentTypes['TopicByIdPayload'];
TopicByIdResult: Omit<TopicByIdResult, 'result'> & {
result?: Maybe<ResolversParentTypes['Topic']>;
};
TopicCreateInput: TopicCreateInput;
TopicCreatePayload:
| ResolversParentTypes['Error']
| ResolversParentTypes['TopicCreateResult'];
TopicCreatePayload: ResolversUnionParentTypes['TopicCreatePayload'];
TopicCreateResult: Omit<TopicCreateResult, 'result'> & {
result: ResolversParentTypes['Topic'];
};
TopicEditInput: TopicEditInput;
TopicEditPayload:
| ResolversParentTypes['Error']
| ResolversParentTypes['TopicEditResult'];
TopicEditPayload: ResolversUnionParentTypes['TopicEditPayload'];
TopicEditResult: Omit<TopicEditResult, 'result'> & {
result: ResolversParentTypes['Topic'];
};
TopicsCreatedByUserInput: TopicsCreatedByUserInput;
TopicsCreatedByUserPayload:
| ResolversParentTypes['Error']
| ResolversParentTypes['TopicsCreatedByUserResult'];
TopicsCreatedByUserPayload: ResolversUnionParentTypes['TopicsCreatedByUserPayload'];
TopicsCreatedByUserResult: Omit<TopicsCreatedByUserResult, 'result'> & {
result: Array<ResolversParentTypes['Topic']>;
};
User: UserMapper;
UserPayload:
| ResolversParentTypes['Error']
| ResolversParentTypes['UserResult'];
UserPayload: ResolversUnionParentTypes['UserPayload'];
UserResult: Omit<UserResult, 'result'> & {
result?: Maybe<ResolversParentTypes['User']>;
};
Expand Down
Loading

0 comments on commit db94510

Please sign in to comment.