next-ft-api-client

No caching, no models, no complexity, none of that or any of that.

This module is no longer maintained. Please use Next API or speak to a member of the Next team about using Elasticsearch.
Last updated 4 years ago by financial-times .
Original npm · Tarball · package.json
$ cnpm install next-ft-api-client 
SYNC missed versions from official npm registry.

next-ft-api-client

No caching, no models, no complexity, none of that or any of that.

npm install --save next-ft-api-client
var api = require('next-ft-api-client');

.content(opts)

  • uuid - uuid (or array of uuids) of wanted content

If uuid is a string return a Promise that resolves with V3 Elasticsearch content, if uuid is an array, returns a Promise that resolves with an array of content.

.contentAnnotatedBy(opts)

  • uuid - uuid of thing wanted to select content by
  • count - number of items of content to return (default 10)

Returns with a Promise that resolves with an array of V2 content objects.

.lists(opts)

  • uuid - uuid of wanted list

Returns with a Promise that resolves with a list.

.organisations(opts)

  • uuid - uuid of wanted organisation

Returns with a Promise that resolves with an organisation.

.people(opts)

  • uuid - uuid of wanted person

Returns with a Promise that resolves with a person.

.search(opts)

  • filter - search filter. Either an array of [ fieldname, value ] or an Elasticsearch filter object.
  • fields - an array of source document fields to fetch
  • count - number of documents to return (default 10)
  • offset - number of documents to offset by (default 0)

Returns a promise that resolves an array of documents from the V3 Elasticsearch index.

.things(opts)

  • identifierValues - an array of source thing ids you wish to fetch
  • identifierType - property type of indetifier you wish to search on, such as prefLabel or idV1 (default 'idV1')
  • authority - the authority the terms belong too (defaults to FT-TME: http://api.ft.com/system/FT-TME)

Returns with a Promise that resolves with an array of things.

.mapping(uuid, taxonomy)

  • uuid - uuid of thing to map
  • taxonomy - taxonomy of thing to map

Returns with a Promise that resolves with the mapped concept.

.hui(opts)

  • model - string of the type of model you want returned (default 'content')
  • industry - uuid of an industry
  • position - uuid of a position
  • sector - uuid of a sector
  • country - uuid of a country
  • period - time period to use e.g last-1-day, last-1-week (default last-1-day)
  • count - number of UUIDs to return (default 10)

Returns with a Promise that resolves with a list.

.concordance(opts)

  • id - string of the id either TME (v1) or uuid (v2)

If it is passed a uuid it will concord to the v1 TME. If the id is not a uuid it will concord to the V2 uuid.

Current Tags

  • 3.26.0                                ...           latest (4 years ago)

67 Versions

  • 3.26.0 [deprecated]           ...           4 years ago
  • 3.25.6 [deprecated]           ...           4 years ago
  • 3.25.5 [deprecated]           ...           4 years ago
  • 3.25.4 [deprecated]           ...           4 years ago
  • 3.25.3 [deprecated]           ...           4 years ago
  • 3.25.2 [deprecated]           ...           4 years ago
  • 3.25.1 [deprecated]           ...           4 years ago
  • 3.25.0 [deprecated]           ...           4 years ago
  • 3.24.1 [deprecated]           ...           4 years ago
  • 3.24.0 [deprecated]           ...           4 years ago
  • 3.23.0 [deprecated]           ...           4 years ago
  • 3.22.0 [deprecated]           ...           4 years ago
  • 3.21.1 [deprecated]           ...           5 years ago
  • 3.21.0 [deprecated]           ...           5 years ago
  • 3.20.0 [deprecated]           ...           5 years ago
  • 3.19.0 [deprecated]           ...           5 years ago
  • 3.18.0 [deprecated]           ...           5 years ago
  • 3.17.0 [deprecated]           ...           5 years ago
  • 3.16.0 [deprecated]           ...           5 years ago
  • 3.15.0 [deprecated]           ...           5 years ago
  • 3.14.0 [deprecated]           ...           5 years ago
  • 3.13.1 [deprecated]           ...           5 years ago
  • 3.13.0 [deprecated]           ...           5 years ago
  • 3.12.0 [deprecated]           ...           5 years ago
  • 3.11.0 [deprecated]           ...           5 years ago
  • 3.10.2 [deprecated]           ...           5 years ago
  • 3.10.1 [deprecated]           ...           5 years ago
  • 3.9.5 [deprecated]           ...           5 years ago
  • 3.9.4 [deprecated]           ...           5 years ago
  • 3.9.3 [deprecated]           ...           5 years ago
  • 3.10.0 [deprecated]           ...           5 years ago
  • 3.9.2 [deprecated]           ...           5 years ago
  • 3.9.1 [deprecated]           ...           5 years ago
  • 3.9.0 [deprecated]           ...           5 years ago
  • 3.8.1 [deprecated]           ...           5 years ago
  • 3.8.0 [deprecated]           ...           5 years ago
  • 3.7.0 [deprecated]           ...           5 years ago
  • 3.6.1 [deprecated]           ...           5 years ago
  • 3.6.0 [deprecated]           ...           5 years ago
  • 3.5.1 [deprecated]           ...           5 years ago
  • 3.5.0 [deprecated]           ...           5 years ago
  • 3.4.2 [deprecated]           ...           5 years ago
  • 3.4.1 [deprecated]           ...           5 years ago
  • 3.4.0 [deprecated]           ...           5 years ago
  • 3.3.0 [deprecated]           ...           5 years ago
  • 3.2.0 [deprecated]           ...           5 years ago
  • 3.1.0 [deprecated]           ...           5 years ago
  • 3.0.0 [deprecated]           ...           5 years ago
  • 3.0.0-beta.1                                ...           5 years ago
  • 2.4.0 [deprecated]           ...           5 years ago
  • 2.3.0 [deprecated]           ...           5 years ago
  • 2.2.0 [deprecated]           ...           5 years ago
  • 2.1.0 [deprecated]           ...           5 years ago
  • 2.0.4 [deprecated]           ...           5 years ago
  • 2.0.3 [deprecated]           ...           5 years ago
  • 2.0.1 [deprecated]           ...           5 years ago
  • 2.0.0 [deprecated]           ...           5 years ago
  • 1.4.3 [deprecated]           ...           5 years ago
  • 1.4.2 [deprecated]           ...           5 years ago
  • 1.4.1 [deprecated]           ...           5 years ago
  • 1.4.0 [deprecated]           ...           5 years ago
  • 1.3.0 [deprecated]           ...           5 years ago
  • 1.2.0 [deprecated]           ...           5 years ago
  • 1.1.1 [deprecated]           ...           5 years ago
  • 1.1.0 [deprecated]           ...           5 years ago
  • 1.0.2 [deprecated]           ...           5 years ago
  • 1.0.1 [deprecated]           ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (10)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |