@valiantys/atlassian-app 3.2.0-alpha-7 → 3.2.0-alpha-9

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,49 +4,6 @@
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
-
50
7
  // @public (undocumented)
51
8
  export interface AvatarUrls {
52
9
  // (undocumented)
@@ -82,8 +39,10 @@ export interface CreatedIssue {
82
39
 
83
40
  // @public (undocumented)
84
41
  export interface CreateIssue {
42
+ // Warning: (ae-forgotten-export) The symbol "AdfDoc" needs to be exported by the entry point util-jira-v3-api.d.ts
43
+ //
85
44
  // (undocumented)
86
- fields: IssueFields<AtlassianDocumentFormat | string>;
45
+ fields: IssueFields<AdfDoc | string>;
87
46
  // (undocumented)
88
47
  historyMetadata?: HistoryMetadata;
89
48
  // (undocumented)
@@ -183,13 +142,7 @@ export interface HistoryMetadataParticipant {
183
142
  }
184
143
 
185
144
  // @public (undocumented)
186
- export function isAtlassianDocumentFormatParagraphNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatParagraphNode;
187
-
188
- // @public (undocumented)
189
- export function isAtlassianDocumentFormatTextNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatTextNode;
190
-
191
- // @public (undocumented)
192
- export interface Issue<T = AtlassianDocumentFormat> {
145
+ export interface Issue<T = AdfDoc> {
193
146
  // (undocumented)
194
147
  expand?: string;
195
148
  // (undocumented)
@@ -204,10 +157,17 @@ export interface Issue<T = AtlassianDocumentFormat> {
204
157
  self?: string;
205
158
  }
206
159
 
160
+ // @public (undocumented)
161
+ export type IssueAssetFieldValue = {
162
+ workspaceId: string;
163
+ id: string;
164
+ objectId: string;
165
+ }[];
166
+
207
167
  // @public (undocumented)
208
168
  export type IssueComment = {
209
169
  author: User;
210
- body: AtlassianDocumentFormat;
170
+ body: AdfDoc;
211
171
  created: string;
212
172
  id: string;
213
173
  self: string;
@@ -217,7 +177,7 @@ export type IssueComment = {
217
177
  };
218
178
 
219
179
  // @public (undocumented)
220
- export type IssueFields<T = AtlassianDocumentFormat> = CustomFields & StaticIssueFields<T>;
180
+ export type IssueFields<T = AdfDoc> = CustomFields & StaticIssueFields<T>;
221
181
 
222
182
  // @public (undocumented)
223
183
  export interface IssueLink {
@@ -243,7 +203,7 @@ export interface IssueLink {
243
203
  export interface IssueLinkRequest {
244
204
  // (undocumented)
245
205
  comment?: {
246
- body: AtlassianDocumentFormat;
206
+ body: AdfDoc;
247
207
  };
248
208
  // (undocumented)
249
209
  inwardIssue: {
@@ -544,7 +504,7 @@ export interface RemoteIssueLink {
544
504
  }
545
505
 
546
506
  // @public (undocumented)
547
- export interface StaticIssueFields<T = AtlassianDocumentFormat> {
507
+ export interface StaticIssueFields<T = AdfDoc> {
548
508
  // (undocumented)
549
509
  aggregatetimespent?: number;
550
510
  // (undocumented)
@@ -650,7 +610,7 @@ export interface TransitionIssueRequest {
650
610
  // @public (undocumented)
651
611
  export interface UpdateIssue {
652
612
  // (undocumented)
653
- fields?: IssueFields<AtlassianDocumentFormat | string>;
613
+ fields?: IssueFields<AdfDoc | string>;
654
614
  // (undocumented)
655
615
  historyMetadata?: HistoryMetadata;
656
616
  // (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"),t=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.cjs.js");exports.FIX_VERSIONS_FIELD=e.FIX_VERSIONS_FIELD;exports.isAtlassianDocumentFormatParagraphNode=e.isAtlassianDocumentFormatParagraphNode;exports.isAtlassianDocumentFormatTextNode=e.isAtlassianDocumentFormatTextNode;exports.switchAtlassianApiUrlToUseSiteUrl=t.switchAtlassianApiUrlToUseSiteUrl;
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"),i=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.cjs.js");exports.FIX_VERSIONS_FIELD=e.FIX_VERSIONS_FIELD;exports.switchAtlassianApiUrlToUseSiteUrl=i.switchAtlassianApiUrlToUseSiteUrl;
@@ -1,28 +1,42 @@
1
- export declare interface AtlassianDocumentFormat {
1
+ /** Root document node */
2
+ declare interface AdfDoc {
2
3
  type: 'doc';
3
- version: number;
4
- content: AtlassianDocumentFormatNode[];
4
+ version: 1;
5
+ content: AdfNode[];
5
6
  }
6
7
 
7
- export declare interface AtlassianDocumentFormatBlockNode {
8
+ /**
9
+ * TypeScript types for Atlassian Document Format (ADF)
10
+ * Conforms to https://unpkg.com/@atlaskit/adf-schema@52.4.0/dist/json-schema/v1/full.json
11
+ */
12
+ declare interface AdfMark {
8
13
  type: string;
9
- content: AtlassianDocumentFormatNode[];
14
+ attrs?: Record<string, unknown>;
10
15
  }
11
16
 
12
- export declare interface AtlassianDocumentFormatInlineNode {
17
+ /**
18
+ * Base for all ADF nodes. `content` is optional because many block nodes
19
+ * (paragraph, heading, codeBlock, etc.) define it as optional in the schema.
20
+ * `text` is only populated on text nodes. `attrs` is present on most non-text
21
+ * nodes. `marks` is present on nodes that support formatting.
22
+ */
23
+ declare interface AdfNode {
13
24
  type: string;
25
+ text?: string;
26
+ attrs?: AdfNodeAttrs;
27
+ content?: AdfNode[];
28
+ marks?: AdfMark[];
14
29
  }
15
30
 
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;
31
+ /**
32
+ * Attrs common across node types. Many inline node types (emoji, mention,
33
+ * status, placeholder, hardBreak, inlineExtension, extension, bodiedExtension)
34
+ * store their display text in `attrs.text`.
35
+ */
36
+ declare interface AdfNodeAttrs {
37
+ text?: string;
38
+ localId?: string;
39
+ [key: string]: unknown;
26
40
  }
27
41
 
28
42
  export declare interface AvatarUrls {
@@ -49,7 +63,7 @@ export declare interface CreatedIssue {
49
63
  }
50
64
 
51
65
  export declare interface CreateIssue {
52
- fields: IssueFields<AtlassianDocumentFormat | string>;
66
+ fields: IssueFields<AdfDoc | string>;
53
67
  properties?: {
54
68
  key: string;
55
69
  value: unknown;
@@ -108,11 +122,7 @@ export declare interface HistoryMetadataParticipant {
108
122
  url: string;
109
123
  }
110
124
 
111
- export declare function isAtlassianDocumentFormatParagraphNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatParagraphNode;
112
-
113
- export declare function isAtlassianDocumentFormatTextNode(node: AtlassianDocumentFormatNode): node is AtlassianDocumentFormatTextNode;
114
-
115
- export declare interface Issue<T = AtlassianDocumentFormat> {
125
+ export declare interface Issue<T = AdfDoc> {
116
126
  id: string;
117
127
  expand?: string;
118
128
  key: string;
@@ -121,9 +131,15 @@ export declare interface Issue<T = AtlassianDocumentFormat> {
121
131
  renderedFields?: IssueFields<string>;
122
132
  }
123
133
 
134
+ export declare type IssueAssetFieldValue = {
135
+ workspaceId: string;
136
+ id: string;
137
+ objectId: string;
138
+ }[];
139
+
124
140
  export declare type IssueComment = {
125
141
  author: User;
126
- body: AtlassianDocumentFormat;
142
+ body: AdfDoc;
127
143
  created: string;
128
144
  id: string;
129
145
  self: string;
@@ -132,7 +148,7 @@ export declare type IssueComment = {
132
148
  visibility: Visibility;
133
149
  };
134
150
 
135
- export declare type IssueFields<T = AtlassianDocumentFormat> = CustomFields & StaticIssueFields<T>;
151
+ export declare type IssueFields<T = AdfDoc> = CustomFields & StaticIssueFields<T>;
136
152
 
137
153
  export declare interface IssueLink {
138
154
  id: string;
@@ -158,7 +174,7 @@ export declare interface IssueLinkRequest {
158
174
  key?: string;
159
175
  };
160
176
  comment?: {
161
- body: AtlassianDocumentFormat;
177
+ body: AdfDoc;
162
178
  };
163
179
  type: {
164
180
  id?: string;
@@ -353,7 +369,7 @@ export declare interface RemoteIssueLink {
353
369
  self?: string;
354
370
  }
355
371
 
356
- export declare interface StaticIssueFields<T = AtlassianDocumentFormat> {
372
+ export declare interface StaticIssueFields<T = AdfDoc> {
357
373
  statuscategorychangedate?: string;
358
374
  fixVersions?: FixVersions;
359
375
  resolution?: unknown;
@@ -424,7 +440,7 @@ export declare interface TransitionIssueRequest {
424
440
  }
425
441
 
426
442
  export declare interface UpdateIssue {
427
- fields?: IssueFields<AtlassianDocumentFormat | string>;
443
+ fields?: IssueFields<AdfDoc | string>;
428
444
  properties?: {
429
445
  key: string;
430
446
  value: unknown;
@@ -1,8 +1,6 @@
1
- import { FIX_VERSIONS_FIELD as o, isAtlassianDocumentFormatParagraphNode as r, isAtlassianDocumentFormatTextNode as s } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js";
1
+ import { FIX_VERSIONS_FIELD as t } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js";
2
2
  import { switchAtlassianApiUrlToUseSiteUrl as i } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.es.js";
3
3
  export {
4
- o as FIX_VERSIONS_FIELD,
5
- r as isAtlassianDocumentFormatParagraphNode,
6
- s as isAtlassianDocumentFormatTextNode,
4
+ t as FIX_VERSIONS_FIELD,
7
5
  i as switchAtlassianApiUrlToUseSiteUrl
8
6
  };