Options
All
  • Public
  • Public/Protected
  • All
Menu

Node Harvest

Build Status Coverage Status npm version Dev Dependencies Greenkeeper badge styled with prettier semantic-release

Version 1.x - Will be depreciated in the days to come, once enough testing of Version 2.x has been completed.

Version 2.x - This is a substantial update to the prior versions adding functionality compatible with the Harvest API v2. This version is not backwards compatible

Harvest is a tool that enables businesses to track time, track projects, manage clients, and invoice. This is a full client API built using node.js and the Harvest API. This node module provides an easy to use wrapper for the API returning promises.

Install

npm install harvest

Usage

Basic Authentication

import Harvest from 'harvest';

const harvest = new Harvest({
  subdomain: 'SUBDOMAIN',
  userAgent: 'MyApp (yourname@example.com)',
  concurrency: 1,
  auth: {
    accessToken: process.env.ACCESS_TOKEN,
    accountId: process.env.ACCOUNT_ID
  }
});

harvest.company
  .get()
  .then((response) => {
    const company = response;
    // Do some things with the company data
  });

OAuth Authentication

NOTE: This feature has not yet been coded. To track its progress or provide feedback, use the following issue: https://github.com/simplyspoke/node-harvest/issues/85

Resources

Every resource is accessed via your harvest instance:

// harvest.<resouce_name>.<method_name>

Each method returns to a promise that resolves the results:

harvest.projects.list().then((projects) =>{
  // Do something with the projects list.
})

Available resources and methods (Method documentation not complete.)

  • clients
  • company
  • contacts
  • estimateItemCategories
  • estimateMessages
  • estimates
  • expenseCategories
  • expenses
  • invoiceItemCategories
  • invoiceMessages
  • invoicePayments
  • invoices
  • projectAssignments
  • projects
  • roles
  • taskAssignments
  • tasks
  • timeEntries
  • userAssignments
  • users

For all methods, the last variable is expected to be a callback function. The possible options available for the params object can be found in the Harvest API Documentation.

Testing

In order to run the tests, you will need to have the following environmental variables defined:

SUBDOMAIN=''
ACCESS_TOKEN=''
ACCOUNT_ID=''

For additional information about setting up harvest access tokens, visit the following page: https://help.getharvest.com/api-v2/authentication-api/authentication/authentication/

Running the tests

npm test
npm run test:watch
npm run test:integration
npm run test:integration:watch

Projects using this library

  • impleri/sow: Command line time tracking utility
  • pingsrl/revenue: Revenue is a dashboard that gives you a quick summary of your revenue from Harvest

Index

Classes

Interfaces

Variables

Object literals

Variables

Const ResponseCodes

ResponseCodes: ResponseCode[] = [{code: 200,description: 'Your request was successful.'},{code: 201,description:'A new object has been created. It’s representation will be returned in the response body.'},{code: 403,description:'The object you requested was found but you don’t have authorization to perform your request.'},{code: 404,description: 'The object you requested can’t be found.'},{code: 422,description:'There were errors processing your request. Check the response body for additional information.'},{code: 429,description:'Your request has been throttled. Refer to the Rate Limiting section for details.'},{code: 500,description:'There was a server error. Contact support@getharvest.com for help.'}]

Const SupportedCurrency

SupportedCurrency: Currency[] = [{name: 'United States Dollar',code: 'USD'},{name: 'Euro',code: 'EUR'},{name: 'British Pound',code: 'GBP'},{name: 'Australian Dollar',code: 'AUD'},{name: 'Canadian Dollar',code: 'CAD'},{name: 'Japanese Yen',code: 'JPY'},{name: 'United Arab Emirates Dirham',code: 'AED'},{name: 'Afghan Afghani',code: 'AFN'},{name: 'Albanian Lek',code: 'ALL'},{name: 'Armenian Dram',code: 'AMD'},{name: 'Netherlands Antillean Gulden',code: 'ANG'},{name: 'Angolan Kwanza',code: 'AOA'},{name: 'Argentine Peso',code: 'ARS'},{name: 'Aruban Florin',code: 'AWG'},{name: 'Azerbaijani Manat',code: 'AZN'},{name: 'Bosnia and Herzegovina Convertible Mark',code: 'BAM'},{name: 'Barbadian Dollar',code: 'BBD'},{name: 'Bangladeshi Taka',code: 'BDT'},{name: 'Bulgarian Lev',code: 'BGN'},{name: 'Bahraini Dinar',code: 'BHD'},{name: 'Burundian Franc',code: 'BIF'},{name: 'Bermudian Dollar',code: 'BMD'},{name: 'Brunei Dollar',code: 'BND'},{name: 'Bolivian Boliviano',code: 'BOB'},{name: 'Brazilian Real',code: 'BRL'},{name: 'Bahamian Dollar',code: 'BSD'},{name: 'Bhutanese Ngultrum',code: 'BTN'},{name: 'Botswana Pula',code: 'BWP'},{name: 'Belarusian Ruble',code: 'BYN'},{name: 'Belarusian Ruble',code: 'BYR'},{name: 'Belize Dollar',code: 'BZD'},{name: 'Congolese Franc',code: 'CDF'},{name: 'Swiss Franc',code: 'CHF'},{name: 'Unidad de Fomento',code: 'CLF'},{name: 'Chilean Peso',code: 'CLP'},{name: 'Chinese Renminbi Yuan',code: 'CNY'},{name: 'Colombian Peso',code: 'COP'},{name: 'Costa Rican Colón',code: 'CRC'},{name: 'Cuban Convertible Peso',code: 'CUC'},{name: 'Cuban Peso',code: 'CUP'},{name: 'Cape Verdean Escudo',code: 'CVE'},{name: 'Czech Koruna',code: 'CZK'},{name: 'Djiboutian Franc',code: 'DJF'},{name: 'Danish Krone',code: 'DKK'},{name: 'Dominican Peso',code: 'DOP'},{name: 'Algerian Dinar',code: 'DZD'},{name: 'Egyptian Pound',code: 'EGP'},{name: 'Eritrean Nakfa',code: 'ERN'},{name: 'Ethiopian Birr',code: 'ETB'},{name: 'Fijian Dollar',code: 'FJD'},{name: 'Falkland Pound',code: 'FKP'},{name: 'Georgian Lari',code: 'GEL'},{name: 'Ghanaian Cedi',code: 'GHS'},{name: 'Gibraltar Pound',code: 'GIP'},{name: 'Gambian Dalasi',code: 'GMD'},{name: 'Guinean Franc',code: 'GNF'},{name: 'Guatemalan Quetzal',code: 'GTQ'},{name: 'Guyanese Dollar',code: 'GYD'},{name: 'Hong Kong Dollar',code: 'HKD'},{name: 'Honduran Lempira',code: 'HNL'},{name: 'Croatian Kuna',code: 'HRK'},{name: 'Haitian Gourde',code: 'HTG'},{name: 'Hungarian Forint',code: 'HUF'},{name: 'Indonesian Rupiah',code: 'IDR'},{name: 'Israeli New Sheqel',code: 'ILS'},{name: 'Indian Rupee',code: 'INR'},{name: 'Iraqi Dinar',code: 'IQD'},{name: 'Iranian Rial',code: 'IRR'},{name: 'Icelandic Króna',code: 'ISK'},{name: 'Jamaican Dollar',code: 'JMD'},{name: 'Jordanian Dinar',code: 'JOD'},{name: 'Kenyan Shilling',code: 'KES'},{name: 'Kyrgyzstani Som',code: 'KGS'},{name: 'Cambodian Riel',code: 'KHR'},{name: 'Comorian Franc',code: 'KMF'},{name: 'North Korean Won',code: 'KPW'},{name: 'South Korean Won',code: 'KRW'},{name: 'Kuwaiti Dinar',code: 'KWD'},{name: 'Cayman Islands Dollar',code: 'KYD'},{name: 'Kazakhstani Tenge',code: 'KZT'},{name: 'Lao Kip',code: 'LAK'},{name: 'Lebanese Pound',code: 'LBP'},{name: 'Sri Lankan Rupee',code: 'LKR'},{name: 'Liberian Dollar',code: 'LRD'},{name: 'Lesotho Loti',code: 'LSL'},{name: 'Lithuanian Litas',code: 'LTL'},{name: 'Latvian Lats',code: 'LVL'},{name: 'Libyan Dinar',code: 'LYD'},{name: 'Moroccan Dirham',code: 'MAD'},{name: 'Moldovan Leu',code: 'MDL'},{name: 'Malagasy Ariary',code: 'MGA'},{name: 'Macedonian Denar',code: 'MKD'},{name: 'Myanmar Kyat',code: 'MMK'},{name: 'Mongolian Tögrög',code: 'MNT'},{name: 'Macanese Pataca',code: 'MOP'},{name: 'Mauritanian Ouguiya',code: 'MRO'},{name: 'Mauritian Rupee',code: 'MUR'},{name: 'Maldivian Rufiyaa',code: 'MVR'},{name: 'Malawian Kwacha',code: 'MWK'},{name: 'Mexican Peso',code: 'MXN'},{name: 'Malaysian Ringgit',code: 'MYR'},{name: 'Mozambican Metical',code: 'MZN'},{name: 'Namibian Dollar',code: 'NAD'},{name: 'Nigerian Naira',code: 'NGN'},{name: 'Nicaraguan Córdoba',code: 'NIO'},{name: 'Norwegian Krone',code: 'NOK'},{name: 'Nepalese Rupee',code: 'NPR'},{name: 'New Zealand Dollar',code: 'NZD'},{name: 'Omani Rial',code: 'OMR'},{name: 'Panamanian Balboa',code: 'PAB'},{name: 'Peruvian Sol',code: 'PEN'},{name: 'Papua New Guinean Kina',code: 'PGK'},{name: 'Philippine Peso',code: 'PHP'},{name: 'Pakistani Rupee',code: 'PKR'},{name: 'Polish Złoty',code: 'PLN'},{name: 'Paraguayan Guaraní',code: 'PYG'},{name: 'Qatari Riyal',code: 'QAR'},{name: 'Romanian Leu',code: 'RON'},{name: 'Serbian Dinar',code: 'RSD'},{name: 'Russian Ruble',code: 'RUB'},{name: 'Rwandan Franc',code: 'RWF'},{name: 'Saudi Riyal',code: 'SAR'},{name: 'Solomon Islands Dollar',code: 'SBD'},{name: 'Seychellois Rupee',code: 'SCR'},{name: 'Sudanese Pound',code: 'SDG'},{name: 'Swedish Krona',code: 'SEK'},{name: 'Singapore Dollar',code: 'SGD'},{name: 'Saint Helenian Pound',code: 'SHP'},{name: 'Slovak Koruna',code: 'SKK'},{name: 'Sierra Leonean Leone',code: 'SLL'},{name: 'Somali Shilling',code: 'SOS'},{name: 'Surinamese Dollar',code: 'SRD'},{name: 'South Sudanese Pound',code: 'SSP'},{name: 'São Tomé and Príncipe Dobra',code: 'STD'},{name: 'Salvadoran Colón',code: 'SVC'},{name: 'Syrian Pound',code: 'SYP'},{name: 'Swazi Lilangeni',code: 'SZL'},{name: 'Thai Baht',code: 'THB'},{name: 'Tajikistani Somoni',code: 'TJS'},{name: 'Turkmenistani Manat',code: 'TMT'},{name: 'Tunisian Dinar',code: 'TND'},{name: 'Tongan Paʻanga',code: 'TOP'},{name: 'Turkish Lira',code: 'TRY'},{name: 'Trinidad and Tobago Dollar',code: 'TTD'},{name: 'New Taiwan Dollar',code: 'TWD'},{name: 'Tanzanian Shilling',code: 'TZS'},{name: 'Ukrainian Hryvnia',code: 'UAH'},{name: 'Ugandan Shilling',code: 'UGX'},{name: 'Uruguayan Peso',code: 'UYU'},{name: 'Uzbekistan Som',code: 'UZS'},{name: 'Venezuelan Bolívar',code: 'VEF'},{name: 'Vietnamese Đồng',code: 'VND'},{name: 'Vanuatu Vatu',code: 'VUV'},{name: 'Samoan Tala',code: 'WST'},{name: 'Central African Cfa Franc',code: 'XAF'},{name: 'Silver (Troy Ounce)',code: 'XAG'},{name: 'Gold (Troy Ounce)',code: 'XAU'},{name: 'European Composite Unit',code: 'XBA'},{name: 'European Monetary Unit',code: 'XBB'},{name: 'European Unit of Account 9',code: 'XBC'},{name: 'European Unit of Account 17',code: 'XBD'},{name: 'East Caribbean Dollar',code: 'XCD'},{name: 'Special Drawing Rights',code: 'XDR'},{name: 'West African Cfa Franc',code: 'XOF'},{name: 'Palladium',code: 'XPD'},{name: 'Cfp Franc',code: 'XPF'},{name: 'Platinum',code: 'XPT'},{name: 'Yemeni Rial',code: 'YER'},{name: 'South African Rand',code: 'ZAR'},{name: 'Zambian Kwacha',code: 'ZMK'},{name: 'Zambian Kwacha',code: 'ZMW'}]

Const SupportedTimeZones

SupportedTimeZones: TimeZone[] = [{name: 'American Samoa',tz: 'Pacific/Pago_Pago',offset: '-11:00',offsetDST: '-11:00'},{name: 'International Date Line West',tz: 'Pacific/Midway',offset: '-11:00',offsetDST: '-11:00'},{name: 'Midway Island',tz: 'Pacific/Midway',offset: '-11:00',offsetDST: '-11:00'},{name: 'Hawaii',tz: 'Pacific/Honolulu',offset: '-10:00',offsetDST: '-10:00'},{name: 'Alaska',tz: 'America/Juneau',offset: '-09:00',offsetDST: '-08:00'},{name: 'Pacific Time (US & Canada)',tz: 'America/Los_Angeles',offset: '-08:00',offsetDST: '-07:00'},{name: 'Tijuana',tz: 'America/Tijuana',offset: '-08:00',offsetDST: '-07:00'},{name: 'Arizona',tz: 'America/Phoenix',offset: '-07:00',offsetDST: '-07:00'},{name: 'Chihuahua',tz: 'America/Chihuahua',offset: '-07:00',offsetDST: '-06:00'},{name: 'Mazatlan',tz: 'America/Mazatlan',offset: '-07:00',offsetDST: '-06:00'},{name: 'Mountain Time (US & Canada)',tz: 'America/Denver',offset: '-07:00',offsetDST: '-06:00'},{name: 'Central America',tz: 'America/Guatemala',offset: '-06:00',offsetDST: '-06:00'},{name: 'Central Time (US & Canada)',tz: 'America/Chicago',offset: '-06:00',offsetDST: '-05:00'},{name: 'Guadalajara',tz: 'America/Mexico_City',offset: '-06:00',offsetDST: '-05:00'},{name: 'Mexico City',tz: 'America/Mexico_City',offset: '-06:00',offsetDST: '-05:00'},{name: 'Monterrey',tz: 'America/Monterrey',offset: '-06:00',offsetDST: '-05:00'},{name: 'Saskatchewan',tz: 'America/Regina',offset: '-06:00',offsetDST: '-06:00'},{name: 'Bogota',tz: 'America/Bogota',offset: '-05:00',offsetDST: '-05:00'},{name: 'Eastern Time (US & Canada)',tz: 'America/New_York',offset: '-05:00',offsetDST: '-04:00'},{name: 'Indiana (East)',tz: 'America/Indiana/Indianapolis',offset: '-05:00',offsetDST: '-04:00'},{name: 'Lima',tz: 'America/Lima',offset: '-05:00',offsetDST: '-05:00'},{name: 'Quito',tz: 'America/Lima',offset: '-05:00',offsetDST: '-05:00'},{name: 'Atlantic Time (Canada)',tz: 'America/Halifax',offset: '-04:00',offsetDST: '-03:00'},{name: 'Caracas',tz: 'America/Caracas',offset: '-04:00',offsetDST: '-04:00'},{name: 'Georgetown',tz: 'America/Guyana',offset: '-04:00',offsetDST: '-04:00'},{name: 'La Paz',tz: 'America/La_Paz',offset: '-04:00',offsetDST: '-04:00'},{name: 'Santiago',tz: 'America/Santiago',offset: '-03:00',offsetDST: '-04:00'},{name: 'Newfoundland',tz: 'America/St_Johns',offset: '-03:30',offsetDST: '-02:30'},{name: 'Brasilia',tz: 'America/Sao_Paulo',offset: '-02:00',offsetDST: '-03:00'},{name: 'Buenos Aires',tz: 'America/Argentina/Buenos_Aires',offset: '-03:00',offsetDST: '-03:00'},{name: 'Greenland',tz: 'America/Godthab',offset: '-03:00',offsetDST: '-02:00'},{name: 'Montevideo',tz: 'America/Montevideo',offset: '-03:00',offsetDST: '-03:00'},{name: 'Mid-Atlantic',tz: 'Atlantic/South_Georgia',offset: '-02:00',offsetDST: '-02:00'},{name: 'Azores',tz: 'Atlantic/Azores',offset: '-01:00',offsetDST: '+00:00'},{name: 'Cape Verde Is.',tz: 'Atlantic/Cape_Verde',offset: '-01:00',offsetDST: '-01:00'},{name: 'Casablanca',tz: 'Africa/Casablanca',offset: '+00:00',offsetDST: '+01:00'},{name: 'Dublin',tz: 'Europe/Dublin',offset: '+00:00',offsetDST: '+01:00'},{name: 'Edinburgh',tz: 'Europe/London',offset: '+00:00',offsetDST: '+01:00'},{name: 'Lisbon',tz: 'Europe/Lisbon',offset: '+00:00',offsetDST: '+01:00'},{name: 'London',tz: 'Europe/London',offset: '+00:00',offsetDST: '+01:00'},{name: 'Monrovia',tz: 'Africa/Monrovia',offset: '+00:00',offsetDST: '+00:00'},{name: 'UTC',tz: 'Etc/UTC',offset: '+00:00',offsetDST: '+00:00'},{name: 'Amsterdam',tz: 'Europe/Amsterdam',offset: '+01:00',offsetDST: '+02:00'},{name: 'Belgrade',tz: 'Europe/Belgrade',offset: '+01:00',offsetDST: '+02:00'},{name: 'Berlin',tz: 'Europe/Berlin',offset: '+01:00',offsetDST: '+02:00'},{name: 'Bern',tz: 'Europe/Zurich',offset: '+01:00',offsetDST: '+02:00'},{name: 'Bratislava',tz: 'Europe/Bratislava',offset: '+01:00',offsetDST: '+02:00'},{name: 'Brussels',tz: 'Europe/Brussels',offset: '+01:00',offsetDST: '+02:00'},{name: 'Budapest',tz: 'Europe/Budapest',offset: '+01:00',offsetDST: '+02:00'},{name: 'Copenhagen',tz: 'Europe/Copenhagen',offset: '+01:00',offsetDST: '+02:00'},{name: 'Ljubljana',tz: 'Europe/Ljubljana',offset: '+01:00',offsetDST: '+02:00'},{name: 'Madrid',tz: 'Europe/Madrid',offset: '+01:00',offsetDST: '+02:00'},{name: 'Paris',tz: 'Europe/Paris',offset: '+01:00',offsetDST: '+02:00'},{name: 'Prague',tz: 'Europe/Prague',offset: '+01:00',offsetDST: '+02:00'},{name: 'Rome',tz: 'Europe/Rome',offset: '+01:00',offsetDST: '+02:00'},{name: 'Sarajevo',tz: 'Europe/Sarajevo',offset: '+01:00',offsetDST: '+02:00'},{name: 'Skopje',tz: 'Europe/Skopje',offset: '+01:00',offsetDST: '+02:00'},{name: 'Stockholm',tz: 'Europe/Stockholm',offset: '+01:00',offsetDST: '+02:00'},{name: 'Vienna',tz: 'Europe/Vienna',offset: '+01:00',offsetDST: '+02:00'},{name: 'Warsaw',tz: 'Europe/Warsaw',offset: '+01:00',offsetDST: '+02:00'},{name: 'West Central Africa',tz: 'Africa/Algiers',offset: '+01:00',offsetDST: '+01:00'},{name: 'Zagreb',tz: 'Europe/Zagreb',offset: '+01:00',offsetDST: '+02:00'},{name: 'Zurich',tz: 'Europe/Zurich',offset: '+01:00',offsetDST: '+02:00'},{name: 'Athens',tz: 'Europe/Athens',offset: '+02:00',offsetDST: '+03:00'},{name: 'Bucharest',tz: 'Europe/Bucharest',offset: '+02:00',offsetDST: '+03:00'},{name: 'Cairo',tz: 'Africa/Cairo',offset: '+02:00',offsetDST: '+02:00'},{name: 'Harare',tz: 'Africa/Harare',offset: '+02:00',offsetDST: '+02:00'},{name: 'Helsinki',tz: 'Europe/Helsinki',offset: '+02:00',offsetDST: '+03:00'},{name: 'Jerusalem',tz: 'Asia/Jerusalem',offset: '+02:00',offsetDST: '+03:00'},{name: 'Kaliningrad',tz: 'Europe/Kaliningrad',offset: '+02:00',offsetDST: '+02:00'},{name: 'Kyiv',tz: 'Europe/Kiev',offset: '+02:00',offsetDST: '+03:00'},{name: 'Pretoria',tz: 'Africa/Johannesburg',offset: '+02:00',offsetDST: '+02:00'},{name: 'Riga',tz: 'Europe/Riga',offset: '+02:00',offsetDST: '+03:00'},{name: 'Sofia',tz: 'Europe/Sofia',offset: '+02:00',offsetDST: '+03:00'},{name: 'Tallinn',tz: 'Europe/Tallinn',offset: '+02:00',offsetDST: '+03:00'},{name: 'Vilnius',tz: 'Europe/Vilnius',offset: '+02:00',offsetDST: '+03:00'},{name: 'Baghdad',tz: 'Asia/Baghdad',offset: '+03:00',offsetDST: '+03:00'},{name: 'Istanbul',tz: 'Europe/Istanbul',offset: '+03:00',offsetDST: '+03:00'},{name: 'Kuwait',tz: 'Asia/Kuwait',offset: '+03:00',offsetDST: '+03:00'},{name: 'Minsk',tz: 'Europe/Minsk',offset: '+03:00',offsetDST: '+03:00'},{name: 'Moscow',tz: 'Europe/Moscow',offset: '+03:00',offsetDST: '+03:00'},{name: 'Nairobi',tz: 'Africa/Nairobi',offset: '+03:00',offsetDST: '+03:00'},{name: 'Riyadh',tz: 'Asia/Riyadh',offset: '+03:00',offsetDST: '+03:00'},{name: 'St. Petersburg',tz: 'Europe/Moscow',offset: '+03:00',offsetDST: '+03:00'},{name: 'Volgograd',tz: 'Europe/Volgograd',offset: '+03:00',offsetDST: '+03:00'},{name: 'Tehran',tz: 'Asia/Tehran',offset: '+03:30',offsetDST: '+04:30'},{name: 'Abu Dhabi',tz: 'Asia/Muscat',offset: '+04:00',offsetDST: '+04:00'},{name: 'Baku',tz: 'Asia/Baku',offset: '+04:00',offsetDST: '+04:00'},{name: 'Muscat',tz: 'Asia/Muscat',offset: '+04:00',offsetDST: '+04:00'},{name: 'Samara',tz: 'Europe/Samara',offset: '+04:00',offsetDST: '+04:00'},{name: 'Tbilisi',tz: 'Asia/Tbilisi',offset: '+04:00',offsetDST: '+04:00'},{name: 'Yerevan',tz: 'Asia/Yerevan',offset: '+04:00',offsetDST: '+04:00'},{name: 'Kabul',tz: 'Asia/Kabul',offset: '+04:30',offsetDST: '+04:30'},{name: 'Ekaterinburg',tz: 'Asia/Yekaterinburg',offset: '+05:00',offsetDST: '+05:00'},{name: 'Islamabad',tz: 'Asia/Karachi',offset: '+05:00',offsetDST: '+05:00'},{name: 'Karachi',tz: 'Asia/Karachi',offset: '+05:00',offsetDST: '+05:00'},{name: 'Tashkent',tz: 'Asia/Tashkent',offset: '+05:00',offsetDST: '+05:00'},{name: 'Chennai',tz: 'Asia/Kolkata',offset: '+05:30',offsetDST: '+05:30'},{name: 'Kolkata',tz: 'Asia/Kolkata',offset: '+05:30',offsetDST: '+05:30'},{name: 'Mumbai',tz: 'Asia/Kolkata',offset: '+05:30',offsetDST: '+05:30'},{name: 'New Delhi',tz: 'Asia/Kolkata',offset: '+05:30',offsetDST: '+05:30'},{name: 'Sri Jayawardenepura',tz: 'Asia/Colombo',offset: '+05:30',offsetDST: '+05:30'},{name: 'Kathmandu',tz: 'Asia/Kathmandu',offset: '+05:45',offsetDST: '+05:45'},{name: 'Almaty',tz: 'Asia/Almaty',offset: '+06:00',offsetDST: '+06:00'},{name: 'Astana',tz: 'Asia/Dhaka',offset: '+06:00',offsetDST: '+06:00'},{name: 'Dhaka',tz: 'Asia/Dhaka',offset: '+06:00',offsetDST: '+06:00'},{name: 'Urumqi',tz: 'Asia/Urumqi',offset: '+06:00',offsetDST: '+06:00'},{name: 'Rangoon',tz: 'Asia/Rangoon',offset: '+06:30',offsetDST: '+06:30'},{name: 'Bangkok',tz: 'Asia/Bangkok',offset: '+07:00',offsetDST: '+07:00'},{name: 'Hanoi',tz: 'Asia/Bangkok',offset: '+07:00',offsetDST: '+07:00'},{name: 'Jakarta',tz: 'Asia/Jakarta',offset: '+07:00',offsetDST: '+07:00'},{name: 'Krasnoyarsk',tz: 'Asia/Krasnoyarsk',offset: '+07:00',offsetDST: '+07:00'},{name: 'Novosibirsk',tz: 'Asia/Novosibirsk',offset: '+07:00',offsetDST: '+07:00'},{name: 'Beijing',tz: 'Asia/Shanghai',offset: '+08:00',offsetDST: '+08:00'},{name: 'Chongqing',tz: 'Asia/Chongqing',offset: '+08:00',offsetDST: '+08:00'},{name: 'Hong Kong',tz: 'Asia/Hong_Kong',offset: '+08:00',offsetDST: '+08:00'},{name: 'Irkutsk',tz: 'Asia/Irkutsk',offset: '+08:00',offsetDST: '+08:00'},{name: 'Kuala Lumpur',tz: 'Asia/Kuala_Lumpur',offset: '+08:00',offsetDST: '+08:00'},{name: 'Perth',tz: 'Australia/Perth',offset: '+08:00',offsetDST: '+08:00'},{name: 'Singapore',tz: 'Asia/Singapore',offset: '+08:00',offsetDST: '+08:00'},{name: 'Taipei',tz: 'Asia/Taipei',offset: '+08:00',offsetDST: '+08:00'},{name: 'Ulaanbaatar',tz: 'Asia/Ulaanbaatar',offset: '+08:00',offsetDST: '+08:00'},{name: 'Osaka',tz: 'Asia/Tokyo',offset: '+09:00',offsetDST: '+09:00'},{name: 'Sapporo',tz: 'Asia/Tokyo',offset: '+09:00',offsetDST: '+09:00'},{name: 'Seoul',tz: 'Asia/Seoul',offset: '+09:00',offsetDST: '+09:00'},{name: 'Tokyo',tz: 'Asia/Tokyo',offset: '+09:00',offsetDST: '+09:00'},{name: 'Yakutsk',tz: 'Asia/Yakutsk',offset: '+09:00',offsetDST: '+09:00'},{name: 'Adelaide',tz: 'Australia/Adelaide',offset: '+10:30',offsetDST: '+09:30'},{name: 'Darwin',tz: 'Australia/Darwin',offset: '+09:30',offsetDST: '+09:30'},{name: 'Brisbane',tz: 'Australia/Brisbane',offset: '+10:00',offsetDST: '+10:00'},{name: 'Canberra',tz: 'Australia/Melbourne',offset: '+11:00',offsetDST: '+10:00'},{name: 'Guam',tz: 'Pacific/Guam',offset: '+10:00',offsetDST: '+10:00'},{name: 'Hobart',tz: 'Australia/Hobart',offset: '+11:00',offsetDST: '+10:00'},{name: 'Melbourne',tz: 'Australia/Melbourne',offset: '+11:00',offsetDST: '+10:00'},{name: 'Port Moresby',tz: 'Pacific/Port_Moresby',offset: '+10:00',offsetDST: '+10:00'},{name: 'Sydney',tz: 'Australia/Sydney',offset: '+11:00',offsetDST: '+10:00'},{name: 'Vladivostok',tz: 'Asia/Vladivostok',offset: '+10:00',offsetDST: '+10:00'},{name: 'Magadan',tz: 'Asia/Magadan',offset: '+11:00',offsetDST: '+11:00'},{name: 'New Caledonia',tz: 'Pacific/Noumea',offset: '+11:00',offsetDST: '+11:00'},{name: 'Solomon Is.',tz: 'Pacific/Guadalcanal',offset: '+11:00',offsetDST: '+11:00'},{name: 'Srednekolymsk',tz: 'Asia/Srednekolymsk',offset: '+11:00',offsetDST: '+11:00'},{name: 'Auckland',tz: 'Pacific/Auckland',offset: '+13:00',offsetDST: '+12:00'},{name: 'Fiji',tz: 'Pacific/Fiji',offset: '+13:00',offsetDST: '+12:00'},{name: 'Kamchatka',tz: 'Asia/Kamchatka',offset: '+12:00',offsetDST: '+12:00'},{name: 'Marshall Is.',tz: 'Pacific/Majuro',offset: '+12:00',offsetDST: '+12:00'},{name: 'Wellington',tz: 'Pacific/Auckland',offset: '+13:00',offsetDST: '+12:00'},{name: 'Chatham Is.',tz: 'Pacific/Chatham',offset: '+13:45',offsetDST: '+12:45'},{name: 'Nuku’alofa',tz: 'Pacific/Tongatapu',offset: '+13:00',offsetDST: '+13:00'},{name: 'Samoa',tz: 'Pacific/Apia',offset: '+14:00',offsetDST: '+13:00'},{name: 'Tokelau Is.',tz: 'Pacific/Fakaofo',offset: '+13:00',offsetDST: '+13:00'}]

Object literals

Const config

config: object

subdomain

subdomain: string = process.env.SUBDOMAIN

userAgent

userAgent: string = "Harvest API Example"

auth

auth: object

accessToken

accessToken: string = process.env.ACCESS_TOKEN

accountId

accountId: string = process.env.ACCOUNT_ID

Const harvest

harvest: object

request

  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void
  • request(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc