2023-09-19 02:11:03 +05:30
|
|
|
|
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>default | forgejo-notifications-core</title><meta name="description" content="Documentation for forgejo-notifications-core"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
|
|
|
<div class="tsd-toolbar-contents container">
|
|
|
|
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
|
|
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
|
|
|
<div class="field">
|
|
|
|
|
<div id="tsd-toolbar-links"></div></div>
|
|
|
|
|
<ul class="results">
|
|
|
|
|
<li class="state loading">Preparing search index...</li>
|
|
|
|
|
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">forgejo-notifications-core</a></div>
|
|
|
|
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-menu"></use></svg></a></div></div></header>
|
|
|
|
|
<div class="container container-main">
|
|
|
|
|
<div class="col-content">
|
|
|
|
|
<div class="tsd-page-title">
|
|
|
|
|
<ul class="tsd-breadcrumb">
|
2023-09-19 03:08:26 +05:30
|
|
|
|
<li><a href="../modules.html">forgejo-notifications-core</a></li>
|
|
|
|
|
<li><a href="default.html">default</a></li></ul>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<h1>Class default</h1></div>
|
|
|
|
|
<section class="tsd-panel tsd-hierarchy">
|
|
|
|
|
<h4>Hierarchy</h4>
|
|
|
|
|
<ul class="tsd-hierarchy">
|
|
|
|
|
<li><span class="target">default</span></li></ul></section><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Defined in index.ts:12</li></ul></aside>
|
|
|
|
|
<section class="tsd-panel-group tsd-index-group">
|
|
|
|
|
<section class="tsd-panel tsd-index-panel">
|
|
|
|
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
|
|
|
<h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex=0><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-chevronSmall"></use></svg> Index</h5></summary>
|
|
|
|
|
<div class="tsd-accordion-details">
|
|
|
|
|
<section class="tsd-index-section">
|
|
|
|
|
<h3 class="tsd-index-heading">Constructors</h3>
|
2023-09-19 03:08:26 +05:30
|
|
|
|
<div class="tsd-index-list"><a href="default.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-512"></use></svg><span>constructor</span></a>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
</div></section>
|
|
|
|
|
<section class="tsd-index-section">
|
|
|
|
|
<h3 class="tsd-index-heading">Properties</h3>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<div class="tsd-index-list"><a href="default.html#cors" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>cors</span></a>
|
|
|
|
|
<a href="default.html#token" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>token?</span></a>
|
2023-09-19 03:08:26 +05:30
|
|
|
|
<a href="default.html#url" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>url</span></a>
|
|
|
|
|
<a href="default.html#username" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>username</span></a>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
</div></section>
|
|
|
|
|
<section class="tsd-index-section">
|
|
|
|
|
<h3 class="tsd-index-heading">Methods</h3>
|
2023-09-19 03:08:26 +05:30
|
|
|
|
<div class="tsd-index-list"><a href="default.html#findMentionsInIssue" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find<wbr/>Mentions<wbr/>In<wbr/>Issue</span></a>
|
|
|
|
|
<a href="default.html#getCommentsForIssue" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Comments<wbr/>For<wbr/>Issue</span></a>
|
|
|
|
|
<a href="default.html#getIssue" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Issue</span></a>
|
|
|
|
|
<a href="default.html#getNotificationThread" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Notification<wbr/>Thread</span></a>
|
|
|
|
|
<a href="default.html#getNotifications" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Notifications</span></a>
|
|
|
|
|
<a href="default.html#getNumUnreadNotifications" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Num<wbr/>Unread<wbr/>Notifications</span></a>
|
|
|
|
|
<a href="default.html#getTokenAuth" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Token<wbr/>Auth</span></a>
|
|
|
|
|
<a href="default.html#getTokenAuthHeader" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Token<wbr/>Auth<wbr/>Header</span></a>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<a href="default.html#getUrl" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Url</span></a>
|
2023-09-19 03:08:26 +05:30
|
|
|
|
<a href="default.html#getUser" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>User</span></a>
|
|
|
|
|
<a href="default.html#lastReadTime" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>last<wbr/>Read<wbr/>Time</span></a>
|
|
|
|
|
<a href="default.html#markNotificationRead" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>mark<wbr/>Notification<wbr/>Read</span></a>
|
|
|
|
|
<a href="default.html#markNotificationReadForRepo" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>mark<wbr/>Notification<wbr/>Read<wbr/>For<wbr/>Repo</span></a>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<a href="default.html#setCors" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>set<wbr/>Cors</span></a>
|
2023-09-19 03:08:26 +05:30
|
|
|
|
<a href="default.html#setTokenAuth" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>set<wbr/>Token<wbr/>Auth</span></a>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
</div></section></div></details></section></section>
|
|
|
|
|
<section class="tsd-panel-group tsd-member-group">
|
|
|
|
|
<h2>Constructors</h2>
|
|
|
|
|
<section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
2023-09-19 03:35:34 +05:30
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="constructor.new_default"><span class="tsd-kind-constructor-signature">new default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="default.html" class="tsd-signature-type tsd-kind-class">default</a><a href="#constructor.new_default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Represents a Forgejo instance.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-parameters">
|
|
|
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
|
|
|
<ul class="tsd-parameter-list">
|
|
|
|
|
<li>
|
|
|
|
|
<h5><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></h5>
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>The URL of the Forgejo instance</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div></li></ul></div>
|
2023-09-19 03:08:26 +05:30
|
|
|
|
<h4 class="tsd-returns-title">Returns <a href="default.html" class="tsd-signature-type tsd-kind-class">default</a></h4>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:22</li></ul></aside></li></ul></section></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel-group tsd-member-group">
|
|
|
|
|
<h2>Properties</h2>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="cors" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>cors</span><a href="#cors" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<div class="tsd-signature"><span class="tsd-kind-property">cors</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Defined in index.ts:16</li></ul></aside></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="token" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>token</span><a href="#token" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<div class="tsd-signature"><span class="tsd-kind-property">token</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type ">Auth</span></div><aside class="tsd-sources">
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<ul>
|
|
|
|
|
<li>Defined in index.ts:15</li></ul></aside></section>
|
|
|
|
|
<section class="tsd-panel tsd-member"><a id="url" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>url</span><a href="#url" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<div class="tsd-signature"><span class="tsd-kind-property">url</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">URL</span></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Defined in index.ts:13</li></ul></aside></section>
|
|
|
|
|
<section class="tsd-panel tsd-member"><a id="username" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>username</span><a href="#username" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<div class="tsd-signature"><span class="tsd-kind-property">username</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Defined in index.ts:14</li></ul></aside></section></section>
|
|
|
|
|
<section class="tsd-panel-group tsd-member-group">
|
|
|
|
|
<h2>Methods</h2>
|
|
|
|
|
<section class="tsd-panel tsd-member"><a id="findMentionsInIssue" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>find<wbr/>Mentions<wbr/>In<wbr/>Issue</span><a href="#findMentionsInIssue" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
2023-09-19 05:44:15 +05:30
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="findMentionsInIssue.findMentionsInIssue-1"><span class="tsd-kind-call-signature">find<wbr/>Mentions<wbr/>In<wbr/>Issue</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">issue</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><a href="#findMentionsInIssue.findMentionsInIssue-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Check if logged in user is mentioned in the issue</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-parameters">
|
|
|
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
|
|
|
<ul class="tsd-parameter-list">
|
|
|
|
|
<li>
|
2023-09-19 05:44:15 +05:30
|
|
|
|
<h5><span class="tsd-kind-parameter">issue</span>: <span class="tsd-signature-type ">Issue</span></h5></li></ul></div>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:134</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="getCommentsForIssue" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Comments<wbr/>For<wbr/>Issue</span><a href="#getCommentsForIssue" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="getCommentsForIssue.getCommentsForIssue-1"><span class="tsd-kind-call-signature">get<wbr/>Comments<wbr/>For<wbr/>Issue</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">issue</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Issue</span><span class="tsd-signature-symbol">></span><a href="#getCommentsForIssue.getCommentsForIssue-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li class="tsd-description">
|
2023-09-19 02:41:14 +05:30
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Fetch and save comments for the issue objects</p>
|
|
|
|
|
</div>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<div class="tsd-parameters">
|
|
|
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
|
|
|
<ul class="tsd-parameter-list">
|
|
|
|
|
<li>
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<h5><span class="tsd-kind-parameter">issue</span>: <span class="tsd-signature-type ">Issue</span></h5></li></ul></div>
|
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Issue</span><span class="tsd-signature-symbol">></span></h4>
|
2023-09-19 02:41:14 +05:30
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:227</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="getIssue" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Issue</span><a href="#getIssue" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="getIssue.getIssue-1"><span class="tsd-kind-call-signature">get<wbr/>Issue</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">owner</span>, <span class="tsd-kind-parameter">repo</span>, <span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Issue</span><span class="tsd-signature-symbol">></span><a href="#getIssue.getIssue-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Get Issue and its comments</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-parameters">
|
|
|
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
|
|
|
<ul class="tsd-parameter-list">
|
|
|
|
|
<li>
|
|
|
|
|
<h5><span class="tsd-kind-parameter">owner</span>: <span class="tsd-signature-type">string</span></h5>
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>The owner of the repository</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div></li>
|
|
|
|
|
<li>
|
|
|
|
|
<h5><span class="tsd-kind-parameter">repo</span>: <span class="tsd-signature-type">string</span></h5>
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>The name of the repository</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div></li>
|
|
|
|
|
<li>
|
|
|
|
|
<h5><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">number</span></h5>
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>The ID of an issue</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div></li></ul></div>
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Issue</span><span class="tsd-signature-symbol">></span></h4>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:196</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="getNotificationThread" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Notification<wbr/>Thread</span><a href="#getNotificationThread" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="getNotificationThread.getNotificationThread-1"><span class="tsd-kind-call-signature">get<wbr/>Notification<wbr/>Thread</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Notification</span><span class="tsd-signature-symbol">></span><a href="#getNotificationThread.getNotificationThread-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Get Notification Thread</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-parameters">
|
|
|
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
|
|
|
<ul class="tsd-parameter-list">
|
|
|
|
|
<li>
|
|
|
|
|
<h5><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">number</span></h5>
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>The ID of a notification thread</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div></li></ul></div>
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Notification</span><span class="tsd-signature-symbol">></span></h4>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:114</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="getNotifications" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Notifications</span><a href="#getNotifications" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="getNotifications.getNotifications-1"><span class="tsd-kind-call-signature">get<wbr/>Notifications</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Notification</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span><a href="#getNotifications.getNotifications-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Get all notifications</p>
|
|
|
|
|
</div>
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Notification</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></h4>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:84</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="getNumUnreadNotifications" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Num<wbr/>Unread<wbr/>Notifications</span><a href="#getNumUnreadNotifications" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="getNumUnreadNotifications.getNumUnreadNotifications-1"><span class="tsd-kind-call-signature">get<wbr/>Num<wbr/>Unread<wbr/>Notifications</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span><a href="#getNumUnreadNotifications.getNumUnreadNotifications-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Get number of unread notifications</p>
|
|
|
|
|
</div>
|
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></h4>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:98</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="getTokenAuth" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Token<wbr/>Auth</span><a href="#getTokenAuth" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="getTokenAuth.getTokenAuth-1"><span class="tsd-kind-call-signature">get<wbr/>Token<wbr/>Auth</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Auth</span><a href="#getTokenAuth.getTokenAuth-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li class="tsd-description">
|
2023-09-19 02:41:14 +05:30
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Get access token</p>
|
|
|
|
|
</div>
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Auth</span></h4>
|
2023-09-19 02:41:14 +05:30
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:40</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="getTokenAuthHeader" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Token<wbr/>Auth<wbr/>Header</span><a href="#getTokenAuthHeader" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="getTokenAuthHeader.getTokenAuthHeader-1"><span class="tsd-kind-call-signature">get<wbr/>Token<wbr/>Auth<wbr/>Header</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span><br/><span> </span><span class="tsd-kind-property">Authorization</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><a href="#getTokenAuthHeader.getTokenAuthHeader-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
|
|
|
<li class="tsd-description">
|
2023-09-19 02:41:14 +05:30
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Get access token in header format for the fetch API</p>
|
|
|
|
|
</div>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">{ </span><br/><span> </span><span class="tsd-kind-property">Authorization</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></h4>
|
|
|
|
|
<ul class="tsd-parameters">
|
|
|
|
|
<li class="tsd-parameter">
|
2023-09-19 02:41:14 +05:30
|
|
|
|
<h5><span class="tsd-kind-property">Authorization</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:51</li></ul></aside></li></ul></section>
|
|
|
|
|
<section class="tsd-panel tsd-member"><a id="getUrl" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>get<wbr/>Url</span><a href="#getUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="getUrl.getUrl-1"><span class="tsd-kind-call-signature">get<wbr/>Url</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">URL</span><a href="#getUrl.getUrl-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">URL</span></h4><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Defined in index.ts:55</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="getUser" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>get<wbr/>User</span><a href="#getUser" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="getUser.getUser-1"><span class="tsd-kind-call-signature">get<wbr/>User</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">User</span><span class="tsd-signature-symbol">></span><a href="#getUser.getUser-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Get logged in user</p>
|
|
|
|
|
</div>
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">User</span><span class="tsd-signature-symbol">></span></h4>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:67</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="lastReadTime" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>last<wbr/>Read<wbr/>Time</span><a href="#lastReadTime" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="lastReadTime.lastReadTime-1"><span class="tsd-kind-call-signature">last<wbr/>Read<wbr/>Time</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">issue</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Date</span><a href="#lastReadTime.lastReadTime-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Get the time at which the issue was last read</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-parameters">
|
|
|
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
|
|
|
<ul class="tsd-parameter-list">
|
|
|
|
|
<li>
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<h5><span class="tsd-kind-parameter">issue</span>: <span class="tsd-signature-type ">Issue</span></h5></li></ul></div>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Date</span></h4>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:127</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="markNotificationRead" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>mark<wbr/>Notification<wbr/>Read</span><a href="#markNotificationRead" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="markNotificationRead.markNotificationRead-1"><span class="tsd-kind-call-signature">mark<wbr/>Notification<wbr/>Read</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#markNotificationRead.markNotificationRead-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Mark Notification Read</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-parameters">
|
|
|
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
|
|
|
<ul class="tsd-parameter-list">
|
|
|
|
|
<li>
|
|
|
|
|
<h5><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">number</span></h5>
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>The ID of a notification thread</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div></li></ul></div>
|
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:175</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="markNotificationReadForRepo" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>mark<wbr/>Notification<wbr/>Read<wbr/>For<wbr/>Repo</span><a href="#markNotificationReadForRepo" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="markNotificationReadForRepo.markNotificationReadForRepo-1"><span class="tsd-kind-call-signature">mark<wbr/>Notification<wbr/>Read<wbr/>For<wbr/>Repo</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">owner</span>, <span class="tsd-kind-parameter">repo</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#markNotificationReadForRepo.markNotificationReadForRepo-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Mark Notification Read for a specific repository</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-parameters">
|
|
|
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
|
|
|
<ul class="tsd-parameter-list">
|
|
|
|
|
<li>
|
|
|
|
|
<h5><span class="tsd-kind-parameter">owner</span>: <span class="tsd-signature-type">string</span></h5>
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Name of the owner of the repository</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div></li>
|
|
|
|
|
<li>
|
|
|
|
|
<h5><span class="tsd-kind-parameter">repo</span>: <span class="tsd-signature-type">string</span></h5>
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Name of the repository</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div></li></ul></div>
|
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:185</li></ul></aside></li></ul></section>
|
|
|
|
|
<section class="tsd-panel tsd-member"><a id="setCors" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>set<wbr/>Cors</span><a href="#setCors" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="setCors.setCors-1"><span class="tsd-kind-call-signature">set<wbr/>Cors</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#setCors.setCors-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Defined in index.ts:77</li></ul></aside></li></ul></section>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<section class="tsd-panel tsd-member"><a id="setTokenAuth" class="tsd-anchor"></a>
|
|
|
|
|
<h3 class="tsd-anchor-link"><span>set<wbr/>Token<wbr/>Auth</span><a href="#setTokenAuth" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
|
|
|
<ul class="tsd-signatures">
|
2023-09-19 03:35:34 +05:30
|
|
|
|
<li class="tsd-signature tsd-anchor-link" id="setTokenAuth.setTokenAuth-1"><span class="tsd-kind-call-signature">set<wbr/>Token<wbr/>Auth</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">token</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span><a href="#setTokenAuth.setTokenAuth-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li class="tsd-description">
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>Authenticate with token</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-parameters">
|
|
|
|
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
|
|
|
<ul class="tsd-parameter-list">
|
|
|
|
|
<li>
|
|
|
|
|
<h5><span class="tsd-kind-parameter">token</span>: <span class="tsd-signature-type">string</span></h5>
|
|
|
|
|
<div class="tsd-comment tsd-typography"><p>access token</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tsd-comment tsd-typography"></div></li></ul></div>
|
2023-09-19 03:35:34 +05:30
|
|
|
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
|
|
|
<ul>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li>Defined in index.ts:31</li></ul></aside></li></ul></section></section></div>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<div class="col-sidebar">
|
|
|
|
|
<div class="page-menu">
|
|
|
|
|
<div class="tsd-navigation settings">
|
|
|
|
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
|
|
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>Settings</h3></summary>
|
|
|
|
|
<div class="tsd-accordion-details">
|
|
|
|
|
<div class="tsd-filter-visibility">
|
|
|
|
|
<h4 class="uppercase">Member Visibility</h4><form>
|
|
|
|
|
<ul id="tsd-filter-options">
|
|
|
|
|
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><use href="#icon-checkbox"></use></svg><span>Protected</span></label></li>
|
|
|
|
|
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><use href="#icon-checkbox"></use></svg><span>Private</span></label></li>
|
|
|
|
|
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><use href="#icon-checkbox"></use></svg><span>Inherited</span></label></li>
|
|
|
|
|
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><use href="#icon-checkbox"></use></svg><span>External</span></label></li></ul></form></div>
|
|
|
|
|
<div class="tsd-theme-toggle">
|
|
|
|
|
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
|
|
|
<details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary">
|
|
|
|
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary>
|
|
|
|
|
<div class="tsd-accordion-details">
|
|
|
|
|
<ul>
|
|
|
|
|
<li><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-512"></use></svg><span>constructor</span></a></li>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li><a href="#cors" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>cors</span></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li><a href="#token" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>token</span></a></li>
|
|
|
|
|
<li><a href="#url" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>url</span></a></li>
|
|
|
|
|
<li><a href="#username" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>username</span></a></li>
|
|
|
|
|
<li><a href="#findMentionsInIssue" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>find<wbr/>Mentions<wbr/>In<wbr/>Issue</span></a></li>
|
|
|
|
|
<li><a href="#getCommentsForIssue" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Comments<wbr/>For<wbr/>Issue</span></a></li>
|
|
|
|
|
<li><a href="#getIssue" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Issue</span></a></li>
|
|
|
|
|
<li><a href="#getNotificationThread" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Notification<wbr/>Thread</span></a></li>
|
|
|
|
|
<li><a href="#getNotifications" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Notifications</span></a></li>
|
|
|
|
|
<li><a href="#getNumUnreadNotifications" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Num<wbr/>Unread<wbr/>Notifications</span></a></li>
|
|
|
|
|
<li><a href="#getTokenAuth" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Token<wbr/>Auth</span></a></li>
|
|
|
|
|
<li><a href="#getTokenAuthHeader" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Token<wbr/>Auth<wbr/>Header</span></a></li>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li><a href="#getUrl" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Url</span></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li><a href="#getUser" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>User</span></a></li>
|
|
|
|
|
<li><a href="#lastReadTime" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>last<wbr/>Read<wbr/>Time</span></a></li>
|
|
|
|
|
<li><a href="#markNotificationRead" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>mark<wbr/>Notification<wbr/>Read</span></a></li>
|
|
|
|
|
<li><a href="#markNotificationReadForRepo" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>mark<wbr/>Notification<wbr/>Read<wbr/>For<wbr/>Repo</span></a></li>
|
2023-09-19 21:57:39 +05:30
|
|
|
|
<li><a href="#setCors" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>set<wbr/>Cors</span></a></li>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<li><a href="#setTokenAuth" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>set<wbr/>Token<wbr/>Auth</span></a></li></ul></div></details></div>
|
|
|
|
|
<div class="site-menu">
|
2023-09-19 03:08:26 +05:30
|
|
|
|
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1"></use></svg><span>forgejo-notifications-core</span></a>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base="..">
|
2023-09-19 03:09:25 +05:30
|
|
|
|
<li><a href="default.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg>default</a></li></ul></nav></div></div></div>
|
2023-09-19 02:11:03 +05:30
|
|
|
|
<div class="tsd-generator">
|
|
|
|
|
<p>Generated using <a href="https://typedoc.org/" rel="noopener" target="_blank">TypeDoc</a></p></div>
|
|
|
|
|
<div class="overlay"></div><svg style="display: none"><g id="icon-1"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-2"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g><g id="icon-8"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.45 16V7.24H14.49V8.224H10.518V10.936H14.07V11.908H10.518V15.016H14.49V16H9.45Z" fill="var(--color-text)"></path></g><g id="icon-16"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g><g id="icon-32"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)"></path></g><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g><g id="icon-128"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.120
|