Loading packages/shop-mobile-expo/src/client/merchants/argumentInterfaces.ts 0 → 100644 +25 −0 Original line number Diff line number Diff line import type { MaybeType, ScalarsInterface } from '../../types'; import type { GeoLocationInputInterface } from '../types'; export interface MerchantsSearchedInterface { __typename: string; id: string; isActive: boolean; logo: string; name: string; username: string; } export interface QueryGetCloseMerchantsArgsInterface { geoLocation: GeoLocationInputInterface; } export interface MerchantsOrdersInterface { _id?: MaybeType<ScalarsInterface['String']>; ordersCount?: MaybeType<ScalarsInterface['Int']>; } export interface QueryGetMerchantsByNameArgsInterface { searchName: ScalarsInterface['String']; geoLocation?: MaybeType<GeoLocationInputInterface>; } packages/shop-mobile-expo/src/client/merchants/mutations.ts 0 → 100644 +1 −0 Original line number Diff line number Diff line // import { gql, TypedDocumentNode } from '@apollo/client'; packages/shop-mobile-expo/src/client/merchants/queries.ts 0 → 100644 +22 −0 Original line number Diff line number Diff line import { gql, TypedDocumentNode } from '@apollo/client'; /** * Query to retrieve merchants by name */ export const GET_MERCHANTS_QUERY: TypedDocumentNode = gql` query GetMerchantsBuyName( $searchName: String! $geoLocation: GeoLocationFindInput ) { getMerchantsBuyName( searchName: $searchName geoLocation: $geoLocation ) { id username name logo isActive } } `; Loading
packages/shop-mobile-expo/src/client/merchants/argumentInterfaces.ts 0 → 100644 +25 −0 Original line number Diff line number Diff line import type { MaybeType, ScalarsInterface } from '../../types'; import type { GeoLocationInputInterface } from '../types'; export interface MerchantsSearchedInterface { __typename: string; id: string; isActive: boolean; logo: string; name: string; username: string; } export interface QueryGetCloseMerchantsArgsInterface { geoLocation: GeoLocationInputInterface; } export interface MerchantsOrdersInterface { _id?: MaybeType<ScalarsInterface['String']>; ordersCount?: MaybeType<ScalarsInterface['Int']>; } export interface QueryGetMerchantsByNameArgsInterface { searchName: ScalarsInterface['String']; geoLocation?: MaybeType<GeoLocationInputInterface>; }
packages/shop-mobile-expo/src/client/merchants/mutations.ts 0 → 100644 +1 −0 Original line number Diff line number Diff line // import { gql, TypedDocumentNode } from '@apollo/client';
packages/shop-mobile-expo/src/client/merchants/queries.ts 0 → 100644 +22 −0 Original line number Diff line number Diff line import { gql, TypedDocumentNode } from '@apollo/client'; /** * Query to retrieve merchants by name */ export const GET_MERCHANTS_QUERY: TypedDocumentNode = gql` query GetMerchantsBuyName( $searchName: String! $geoLocation: GeoLocationFindInput ) { getMerchantsBuyName( searchName: $searchName geoLocation: $geoLocation ) { id username name logo isActive } } `;