def query_shop_catalogue(client, shop_id): query = get_query_from_file('shopCatalogue.graphql') variables = { 'shopId': shop_id } response = client.post_graphql(query, variables) return get_graphql_content(response)
def login(client, **kwargs): check_compulsory_login_credential_arguments(kwargs) query = get_query_from_file('login.graphql') response = client.post_graphql(query, kwargs) return get_graphql_content(response)
def query_shops(client): query = get_query_from_file('shops.graphql') response = client.post_graphql(query) return get_graphql_content(response)
def login_query(): queryfile = 'login.graphql' return get_query_from_file(queryfile)
def set_new_password(client, **kwargs): check_compulsory_password_reinit_credential_arguments(kwargs) query = get_query_from_file('setPassword.graphql') response = client.post_graphql(query, kwargs) return get_graphql_content(response)
def reset_password(client, user_email): query = get_query_from_file('passwordReset.graphql') variables = {'email': user_email} response = client.post_graphql(query, variables) return get_graphql_content(response)
def activate_account(client, **kwargs): check_compulsory_account_activation_credential_arguments(kwargs) query = get_query_from_file('activateConsumer.graphql') response = client.post_graphql(query, kwargs) return get_graphql_content(response)