UNPKG

xero-hero

Version:

Heroic utilities to simplify and enable your progress with the [xero-node](https://www.npmjs.com/package/xero-node) SDK.

243 lines (241 loc) 4.5 kB
declare class TimeEntry { /** * Identifier of the time entry. */ 'timeEntryId'?: string; /** * The xero user identifier of the person who logged time. */ 'userId'?: string; /** * Identifier of the project, that the task (which the time entry is logged against) belongs to. */ 'projectId'?: string; /** * Identifier of the task that time entry is logged against. */ 'taskId'?: string; /** * The date time that time entry is logged on. UTC Date Time in ISO-8601 format. */ 'dateUtc'?: Date; /** * The date time that time entry is created. UTC Date Time in ISO-8601 format. By default it is set to server time. */ 'dateEnteredUtc'?: Date; /** * The duration of logged minutes. */ 'duration'?: number; /** * A description of the time entry. */ 'description'?: string; /** * Status of the time entry. By default a time entry is created with status of `ACTIVE`. A `LOCKED` state indicates that the time entry is currently changing state (for example being invoiced). Updates are not allowed when in this state. It will have a status of INVOICED once it is invoiced. */ 'status'?: TimeEntry.StatusEnum; static discriminator: string | undefined; static attributeTypeMap: Array<{ baseName: string; name: string; type: string; }>; static getAttributeTypeMap(): { baseName: string; name: string; type: string; }[]; } declare namespace TimeEntry { enum StatusEnum { ACTIVE, LOCKED, INVOICED } } /** * 3 letter alpha code for the ISO-4217 currency code, e.g. USD, AUD. */ declare enum CurrencyCode { AED = 0, AFN = 1, ALL = 2, AMD = 3, ANG = 4, AOA = 5, ARS = 6, AUD = 7, AWG = 8, AZN = 9, BAM = 10, BBD = 11, BDT = 12, BGN = 13, BHD = 14, BIF = 15, BMD = 16, BND = 17, BOB = 18, BRL = 19, BSD = 20, BTN = 21, BWP = 22, BYN = 23, BZD = 24, CAD = 25, CDF = 26, CHF = 27, CLP = 28, CNY = 29, COP = 30, CRC = 31, CUC = 32, CUP = 33, CVE = 34, CZK = 35, DJF = 36, DKK = 37, DOP = 38, DZD = 39, EGP = 40, ERN = 41, ETB = 42, EUR = 43, FJD = 44, FKP = 45, GBP = 46, GEL = 47, GGP = 48, GHS = 49, GIP = 50, GMD = 51, GNF = 52, GTQ = 53, GYD = 54, HKD = 55, HNL = 56, HRK = 57, HTG = 58, HUF = 59, IDR = 60, ILS = 61, IMP = 62, INR = 63, IQD = 64, IRR = 65, ISK = 66, JEP = 67, JMD = 68, JOD = 69, JPY = 70, KES = 71, KGS = 72, KHR = 73, KMF = 74, KPW = 75, KRW = 76, KWD = 77, KYD = 78, KZT = 79, LAK = 80, LBP = 81, LKR = 82, LRD = 83, LSL = 84, LYD = 85, MAD = 86, MDL = 87, MGA = 88, MKD = 89, MMK = 90, MNT = 91, MOP = 92, MRU = 93, MUR = 94, MVR = 95, MWK = 96, MXN = 97, MYR = 98, MZN = 99, NAD = 100, NGN = 101, NIO = 102, NOK = 103, NPR = 104, NZD = 105, OMR = 106, PAB = 107, PEN = 108, PGK = 109, PHP = 110, PKR = 111, PLN = 112, PYG = 113, QAR = 114, RON = 115, RSD = 116, RUB = 117, RWF = 118, SAR = 119, SBD = 120, SCR = 121, SDG = 122, SEK = 123, SGD = 124, SHP = 125, SLL = 126, SOS = 127, SPL = 128, SRD = 129, STN = 130, SVC = 131, SYP = 132, SZL = 133, THB = 134, TJS = 135, TMT = 136, TND = 137, TOP = 138, TRY = 139, TTD = 140, TVD = 141, TWD = 142, TZS = 143, UAH = 144, UGX = 145, USD = 146, UYU = 147, UZS = 148, VEF = 149, VND = 150, VUV = 151, WST = 152, XAF = 153, XCD = 154, XDR = 155, XOF = 156, XPF = 157, YER = 158, ZAR = 159, ZMW = 160, ZMK = 161, ZWD = 162, Empty = 163 } declare class Amount { 'currency'?: CurrencyCode; 'value'?: number; static discriminator: string | undefined; static attributeTypeMap: Array<{ baseName: string; name: string; type: string; }>; static getAttributeTypeMap(): { baseName: string; name: string; type: string; }[]; } export { Amount, CurrencyCode, TimeEntry };