<commit_before># GraphQL POD Fetcher

This serverless function returns a GraphQL resolver for consuming the Tuffnells XML endpoint.

## Installation

  ```bash
  git clone https://github.com/Norseal/pod-fetcher.api.norseal.co.uk.git
  cd pod-fetcher.api.norseal.co.uk
  yarn
  ```

## Configuration

Tuffnells uses IP based authentication. In production, it is recommended you use a Proxy with a fixed IP to relay requests.

The `PROXY_URI` must be available to the current `process`.

  ```bash
  export PROXY_URI=
  ```

## Development

To start the development server, you must run:

  ```bash
  yarn dev
  ```

## Deploy

  ```
  now
  ```<commit_msg>Example GQL query added to README<commit_after># GraphQL POD Fetcher

This serverless function returns a GraphQL resolver for consuming the Tuffnells XML endpoint.

## Installation

  ```bash
  git clone https://github.com/Norseal/pod-fetcher.api.norseal.co.uk.git
  cd pod-fetcher.api.norseal.co.uk
  yarn
  ```

## Configuration

Tuffnells uses IP based authentication. In production, it is recommended you use a Proxy with a fixed IP to relay requests.

The `PROXY_URI` must be available to the current `process`.

  ```bash
  export PROXY_URI=
  ```

## Development

To start the development server, you must run:

  ```bash
  yarn dev
  ```

## Example Query

  ```graphql
  {
  Pod(AccountCode: 123456, Reference:"N123456") {
    Authorised
    DeliveryAddress{
      CompanyName
      Address1
      Town
      Postcode
      ContactName
      ContactTelephone
    }
  }
}
  ```

## Deploy

  ```
  now
  ```
{'fraction_non_alphanumeric': 0.09617834394904459, 'fraction_numerical': 0.008280254777070064, 'mean_word_length': 3.2574525745257454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '36590', 'n_tokens_mistral': 529, 'n_tokens_neox': 507, 'n_words': 165}