Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
remove resolver and the logic around it
Browse files Browse the repository at this point in the history
  • Loading branch information
Sboonny committed Mar 13, 2023
1 parent dbc5fad commit 1edbfe4
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 403 deletions.
159 changes: 0 additions & 159 deletions client/graphql.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3826,116 +3826,6 @@
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "InstanceSettings",
"description": null,
"fields": [
{
"name": "code_of_conduct_url",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "id",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "policy_url",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "terms_of_services_url",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "INPUT_OBJECT",
"name": "InstanceSettingsInputs",
"description": null,
"fields": null,
"inputFields": [
{
"name": "code_of_conduct_url",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "policy_url",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "terms_of_services_url",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "Int",
Expand Down Expand Up @@ -5139,39 +5029,6 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "updateInstanceSettings",
"description": null,
"args": [
{
"name": "data",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "InstanceSettingsInputs",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "InstanceSettings",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "updateMe",
"description": null,
Expand Down Expand Up @@ -5788,22 +5645,6 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "instanceSettings",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "InstanceSettings",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "me",
"description": null,
Expand Down
159 changes: 0 additions & 159 deletions client/src/generated/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,20 +365,6 @@ export type InstanceRolePermission = {
instance_permission: InstancePermission;
};

export type InstanceSettings = {
__typename?: 'InstanceSettings';
code_of_conduct_url?: Maybe<Scalars['String']>;
id: Scalars['Int'];
policy_url?: Maybe<Scalars['String']>;
terms_of_services_url?: Maybe<Scalars['String']>;
};

export type InstanceSettingsInputs = {
code_of_conduct_url?: InputMaybe<Scalars['String']>;
policy_url?: InputMaybe<Scalars['String']>;
terms_of_services_url?: InputMaybe<Scalars['String']>;
};

export type Mutation = {
__typename?: 'Mutation';
attendEvent: EventUserWithRelations;
Expand Down Expand Up @@ -412,7 +398,6 @@ export type Mutation = {
unsubscribeFromEvent: EventUser;
updateChapter: Chapter;
updateEvent: Event;
updateInstanceSettings: InstanceSettings;
updateMe: User;
updateSponsor: Sponsor;
updateVenue: Venue;
Expand Down Expand Up @@ -544,10 +529,6 @@ export type MutationUpdateEventArgs = {
id: Scalars['Int'];
};

export type MutationUpdateInstanceSettingsArgs = {
data: InstanceSettingsInputs;
};

export type MutationUpdateMeArgs = {
data: UpdateUserInputs;
};
Expand Down Expand Up @@ -586,7 +567,6 @@ export type Query = {
event?: Maybe<EventWithRelationsWithEventUser>;
eventRoles: Array<EventRole>;
instanceRoles: Array<InstanceRole>;
instanceSettings: InstanceSettings;
me?: Maybe<UserWithPermissions>;
paginatedEventsWithTotal: PaginatedEventsWithChapters;
sponsorWithEvents: SponsorWithEvents;
Expand Down Expand Up @@ -1472,33 +1452,6 @@ export type ChapterVenuesQuery = {
chapterVenues: Array<{ __typename?: 'Venue'; id: number; name: string }>;
};

export type UpdateInstanceSettingsMutationVariables = Exact<{
data: InstanceSettingsInputs;
}>;

export type UpdateInstanceSettingsMutation = {
__typename?: 'Mutation';
updateInstanceSettings: {
__typename?: 'InstanceSettings';
policy_url?: string | null;
terms_of_services_url?: string | null;
code_of_conduct_url?: string | null;
};
};

export type InstanceSettingsQueryVariables = Exact<{ [key: string]: never }>;

export type InstanceSettingsQuery = {
__typename?: 'Query';
instanceSettings: {
__typename?: 'InstanceSettings';
id: number;
policy_url?: string | null;
terms_of_services_url?: string | null;
code_of_conduct_url?: string | null;
};
};

export type CreateSponsorMutationVariables = Exact<{
data: CreateSponsorInputs;
}>;
Expand Down Expand Up @@ -4145,118 +4098,6 @@ export type ChapterVenuesQueryResult = Apollo.QueryResult<
ChapterVenuesQuery,
ChapterVenuesQueryVariables
>;
export const UpdateInstanceSettingsDocument = gql`
mutation updateInstanceSettings($data: InstanceSettingsInputs!) {
updateInstanceSettings(data: $data) {
policy_url
terms_of_services_url
code_of_conduct_url
}
}
`;
export type UpdateInstanceSettingsMutationFn = Apollo.MutationFunction<
UpdateInstanceSettingsMutation,
UpdateInstanceSettingsMutationVariables
>;

/**
* __useUpdateInstanceSettingsMutation__
*
* To run a mutation, you first call `useUpdateInstanceSettingsMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useUpdateInstanceSettingsMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
*
* @example
* const [updateInstanceSettingsMutation, { data, loading, error }] = useUpdateInstanceSettingsMutation({
* variables: {
* data: // value for 'data'
* },
* });
*/
export function useUpdateInstanceSettingsMutation(
baseOptions?: Apollo.MutationHookOptions<
UpdateInstanceSettingsMutation,
UpdateInstanceSettingsMutationVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useMutation<
UpdateInstanceSettingsMutation,
UpdateInstanceSettingsMutationVariables
>(UpdateInstanceSettingsDocument, options);
}
export type UpdateInstanceSettingsMutationHookResult = ReturnType<
typeof useUpdateInstanceSettingsMutation
>;
export type UpdateInstanceSettingsMutationResult =
Apollo.MutationResult<UpdateInstanceSettingsMutation>;
export type UpdateInstanceSettingsMutationOptions = Apollo.BaseMutationOptions<
UpdateInstanceSettingsMutation,
UpdateInstanceSettingsMutationVariables
>;
export const InstanceSettingsDocument = gql`
query instanceSettings {
instanceSettings {
id
policy_url
terms_of_services_url
code_of_conduct_url
}
}
`;

/**
* __useInstanceSettingsQuery__
*
* To run a query within a React component, call `useInstanceSettingsQuery` and pass it any options that fit your needs.
* When your component renders, `useInstanceSettingsQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useInstanceSettingsQuery({
* variables: {
* },
* });
*/
export function useInstanceSettingsQuery(
baseOptions?: Apollo.QueryHookOptions<
InstanceSettingsQuery,
InstanceSettingsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery<InstanceSettingsQuery, InstanceSettingsQueryVariables>(
InstanceSettingsDocument,
options,
);
}
export function useInstanceSettingsLazyQuery(
baseOptions?: Apollo.LazyQueryHookOptions<
InstanceSettingsQuery,
InstanceSettingsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery<
InstanceSettingsQuery,
InstanceSettingsQueryVariables
>(InstanceSettingsDocument, options);
}
export type InstanceSettingsQueryHookResult = ReturnType<
typeof useInstanceSettingsQuery
>;
export type InstanceSettingsLazyQueryHookResult = ReturnType<
typeof useInstanceSettingsLazyQuery
>;
export type InstanceSettingsQueryResult = Apollo.QueryResult<
InstanceSettingsQuery,
InstanceSettingsQueryVariables
>;
export const CreateSponsorDocument = gql`
mutation createSponsor($data: CreateSponsorInputs!) {
createSponsor(data: $data) {
Expand Down
11 changes: 0 additions & 11 deletions client/src/modules/dashboard/InstanceSettings/graphql/mutations.ts

This file was deleted.

Loading

0 comments on commit 1edbfe4

Please sign in to comment.