UNPKG

@esm-js/jira.js

Version:

A comprehensive JavaScript/TypeScript library designed for both Node.JS and browsers, facilitating seamless interaction with the Atlassian Jira API.

83 lines (82 loc) 2.86 kB
/** Data related to a single Remote Link.* */ export interface GetRemoteLinkById { /** * The schema version used for this data. * * Placeholder to support potential schema changes in the future. */ schemaVersion?: '1.0' | string; /** The identifier for the Remote Link. Must be unique for a given Provider. */ id: string; /** * An ID used to apply an ordering to updates for this Remote Link in the case of out-of-order receipt of update * requests. * * It must be a monotonically increasing number. For example, epoch time could be one way to generate the * `updateSequenceNumber`. * * Updates for a Remote Link that is received with an `updateSqeuenceNumber` less than or equal to what is currently * stored will be ignored. */ updateSequenceNumber: number; /** * The human-readable name for the Remote Link. * * Will be shown in the UI. */ displayName: string; /** The URL to this Remote Link in your system. */ url: string; /** * The type of the Remote Link. The current supported types are 'document', 'alert', 'test', 'security', 'logFile', * 'prototype', 'coverage', 'bugReport' and 'other' */ type: | 'document' | 'alert' | 'test' | 'security' | 'logFile' | 'prototype' | 'coverage' | 'bugReport' | 'other' | string; /** * An optional description to attach to this Remote Link. * * This may be anything that makes sense in your system. */ description?: string; /** The last-updated timestamp to present to the user as a summary of when Remote Link was last updated. */ lastUpdated: string; /** The entities to associate the Remote Link information with. */ associations?: unknown[]; /** The status of a Remote Link. */ status?: { /** * Appearance is a fixed set of appearance types affecting the colour of the status lozenge in the UI. The colours * they correspond to are equivalent to atlaskit's [Lozenge](https://atlaskit.atlassian.com/packages/core/lozenge) * component. */ appearance: 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'prototype' | 'success' | string; /** * The human-readable description for the Remote Link status. * * Will be shown in the UI. */ label: string; }; /** * Optional list of actionIds. They are associated with the actions the provider is able to provide when they * registered. Indicates which actions this Remote Link has. * * If any actions have a templateUrl that requires string substitution, then `attributeMap` must be passed in. */ actionIds?: string[]; /** * Map of key/values (string to string mapping). This is used to build the urls for actions from the templateUrl the * provider registered their available actions with. */ attributeMap?: unknown; }