@valiantys/atlassian-app-frontend 3.0.0-alpha-3 → 3.0.0-alpha-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,49 @@
4
4
 
5
5
  ```ts
6
6
 
7
+ // @public (undocumented)
8
+ export interface AtlassianDocumentFormat {
9
+ // (undocumented)
10
+ content: AtlassianDocumentFormatNode[];
11
+ // (undocumented)
12
+ type: 'doc';
13
+ // (undocumented)
14
+ version: number;
15
+ }
16
+
17
+ // @public (undocumented)
18
+ export interface AtlassianDocumentFormatBlockNode {
19
+ // (undocumented)
20
+ content: AtlassianDocumentFormatNode[];
21
+ // (undocumented)
22
+ type: string;
23
+ }
24
+
25
+ // @public (undocumented)
26
+ export interface AtlassianDocumentFormatInlineNode {
27
+ // (undocumented)
28
+ type: string;
29
+ }
30
+
31
+ // @public (undocumented)
32
+ export type AtlassianDocumentFormatNode = AtlassianDocumentFormatInlineNode | AtlassianDocumentFormatBlockNode;
33
+
34
+ // @public (undocumented)
35
+ export interface AtlassianDocumentFormatParagraphNode extends AtlassianDocumentFormatBlockNode {
36
+ // (undocumented)
37
+ content: AtlassianDocumentFormatInlineNode[];
38
+ // (undocumented)
39
+ type: 'paragraph';
40
+ }
41
+
42
+ // @public (undocumented)
43
+ export interface AtlassianDocumentFormatTextNode extends AtlassianDocumentFormatInlineNode {
44
+ // (undocumented)
45
+ text: string;
46
+ // (undocumented)
47
+ type: 'text';
48
+ }
49
+
7
50
  // @public (undocumented)
8
51
  export interface AvatarUrls {
9
52
  // (undocumented)
@@ -120,6 +163,12 @@ export interface HistoryMetadataParticipant {
120
163
  url: string;
121
164
  }
122
165
 
166
+ // @public (undocumented)
167
+ export function isAtlassianDocumentFormatParagraphNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatParagraphNode;
168
+
169
+ // @public (undocumented)
170
+ export function isAtlassianDocumentFormatTextNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatTextNode;
171
+
123
172
  // @public (undocumented)
124
173
  export interface Issue {
125
174
  // (undocumented)
@@ -134,6 +183,18 @@ export interface Issue {
134
183
  self?: string;
135
184
  }
136
185
 
186
+ // @public (undocumented)
187
+ export type IssueComment = {
188
+ author: User;
189
+ body: AtlassianDocumentFormat;
190
+ created: string;
191
+ id: string;
192
+ self: string;
193
+ updateAuthor: User;
194
+ updated: string;
195
+ visibility: Visibility;
196
+ };
197
+
137
198
  // @public (undocumented)
138
199
  export type IssueFields = CustomFields & StaticIssueFields;
139
200
 
@@ -197,6 +258,14 @@ export interface IssueTypeDetails {
197
258
  subtask: boolean;
198
259
  }
199
260
 
261
+ // @public (undocumented)
262
+ export type JiraCommentResponse = {
263
+ comments: IssueComment[];
264
+ maxResults: number;
265
+ startAt: number;
266
+ total: number;
267
+ };
268
+
200
269
  // @public (undocumented)
201
270
  export type Precomputation = {
202
271
  id: string;
@@ -310,17 +379,7 @@ export interface StaticIssueFields {
310
379
  // (undocumented)
311
380
  creator?: User;
312
381
  // (undocumented)
313
- description?: {
314
- type: 'doc';
315
- version: 1;
316
- content: {
317
- type: 'paragraph';
318
- content: {
319
- type: 'text';
320
- text: string;
321
- }[];
322
- }[];
323
- };
382
+ description?: AtlassianDocumentFormat;
324
383
  // (undocumented)
325
384
  fixVersions?: FixVersions;
326
385
  // (undocumented)
@@ -436,6 +495,13 @@ export interface UserPickerUser {
436
495
  html?: string;
437
496
  }
438
497
 
498
+ // @public (undocumented)
499
+ export type Visibility = {
500
+ identifier: string;
501
+ type: string;
502
+ value: string;
503
+ };
504
+
439
505
  // @public (undocumented)
440
506
  export interface Worklog extends WorklogCreateRequest {
441
507
  // (undocumented)
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js");exports.FIX_VERSIONS_FIELD=e.FIX_VERSIONS_FIELD;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js");exports.FIX_VERSIONS_FIELD=t.FIX_VERSIONS_FIELD;exports.isAtlassianDocumentFormatParagraphNode=t.isAtlassianDocumentFormatParagraphNode;exports.isAtlassianDocumentFormatTextNode=t.isAtlassianDocumentFormatTextNode;
@@ -1,3 +1,30 @@
1
+ export declare interface AtlassianDocumentFormat {
2
+ type: 'doc';
3
+ version: number;
4
+ content: AtlassianDocumentFormatNode[];
5
+ }
6
+
7
+ export declare interface AtlassianDocumentFormatBlockNode {
8
+ type: string;
9
+ content: AtlassianDocumentFormatNode[];
10
+ }
11
+
12
+ export declare interface AtlassianDocumentFormatInlineNode {
13
+ type: string;
14
+ }
15
+
16
+ export declare type AtlassianDocumentFormatNode = AtlassianDocumentFormatInlineNode | AtlassianDocumentFormatBlockNode;
17
+
18
+ export declare interface AtlassianDocumentFormatParagraphNode extends AtlassianDocumentFormatBlockNode {
19
+ type: 'paragraph';
20
+ content: AtlassianDocumentFormatInlineNode[];
21
+ }
22
+
23
+ export declare interface AtlassianDocumentFormatTextNode extends AtlassianDocumentFormatInlineNode {
24
+ type: 'text';
25
+ text: string;
26
+ }
27
+
1
28
  export declare interface AvatarUrls {
2
29
  '48x48': string;
3
30
  '24x24': string;
@@ -73,6 +100,10 @@ export declare interface HistoryMetadataParticipant {
73
100
  url: string;
74
101
  }
75
102
 
103
+ export declare function isAtlassianDocumentFormatParagraphNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatParagraphNode;
104
+
105
+ export declare function isAtlassianDocumentFormatTextNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatTextNode;
106
+
76
107
  export declare interface Issue {
77
108
  id: string;
78
109
  expand?: string;
@@ -81,6 +112,17 @@ export declare interface Issue {
81
112
  fields: IssueFields;
82
113
  }
83
114
 
115
+ export declare type IssueComment = {
116
+ author: User;
117
+ body: AtlassianDocumentFormat;
118
+ created: string;
119
+ id: string;
120
+ self: string;
121
+ updateAuthor: User;
122
+ updated: string;
123
+ visibility: Visibility;
124
+ };
125
+
84
126
  export declare type IssueFields = CustomFields & StaticIssueFields;
85
127
 
86
128
  export declare interface IssueLink {
@@ -120,6 +162,13 @@ export declare interface IssueTypeDetails {
120
162
  subtask: boolean;
121
163
  }
122
164
 
165
+ export declare type JiraCommentResponse = {
166
+ comments: IssueComment[];
167
+ maxResults: number;
168
+ startAt: number;
169
+ total: number;
170
+ };
171
+
123
172
  export declare type Precomputation = {
124
173
  id: string;
125
174
  value: string;
@@ -232,17 +281,7 @@ export declare interface StaticIssueFields {
232
281
  };
233
282
  created?: string;
234
283
  updated?: string;
235
- description?: {
236
- type: 'doc';
237
- version: 1;
238
- content: {
239
- type: 'paragraph';
240
- content: {
241
- type: 'text';
242
- text: string;
243
- }[];
244
- }[];
245
- };
284
+ description?: AtlassianDocumentFormat;
246
285
  timetracking?: {
247
286
  remainingEstimate: string;
248
287
  timeSpent: string;
@@ -283,6 +322,12 @@ export declare interface UserPickerUser {
283
322
  html?: string;
284
323
  }
285
324
 
325
+ export declare type Visibility = {
326
+ identifier: string;
327
+ type: string;
328
+ value: string;
329
+ };
330
+
286
331
  export declare interface Worklog extends WorklogCreateRequest {
287
332
  self: string;
288
333
  id: string;
@@ -1,4 +1,6 @@
1
- import { FIX_VERSIONS_FIELD as r } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js";
1
+ import { FIX_VERSIONS_FIELD as t, isAtlassianDocumentFormatParagraphNode as e, isAtlassianDocumentFormatTextNode as r } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js";
2
2
  export {
3
- r as FIX_VERSIONS_FIELD
3
+ t as FIX_VERSIONS_FIELD,
4
+ e as isAtlassianDocumentFormatParagraphNode,
5
+ r as isAtlassianDocumentFormatTextNode
4
6
  };