bimplus-websdk 1.0.26 → 1.0.27
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.
- package/package.json +1 -1
- package/types/bimplus-websdk.d.ts +38 -1
package/package.json
CHANGED
|
@@ -167,6 +167,35 @@ declare module 'bimplus-websdk' {
|
|
|
167
167
|
type HyperlinksResponse = Hyperlink[];
|
|
168
168
|
type AttachmentLinksResponse = AttachmentLink[];
|
|
169
169
|
|
|
170
|
+
type CommentsResponse = CommentResponse[];
|
|
171
|
+
|
|
172
|
+
export interface CommentResponse {
|
|
173
|
+
id: string;
|
|
174
|
+
issueId?: string;
|
|
175
|
+
status?: string | null;
|
|
176
|
+
verbalStatus?: string | null;
|
|
177
|
+
parentId?: string;
|
|
178
|
+
text?: string;
|
|
179
|
+
createdAt?: string;
|
|
180
|
+
modifiedAt?: string;
|
|
181
|
+
author?: Author;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export interface Author {
|
|
185
|
+
id?: string;
|
|
186
|
+
email?: string;
|
|
187
|
+
status?: string | null;
|
|
188
|
+
firstname?: string;
|
|
189
|
+
lastname?: string;
|
|
190
|
+
company?: string;
|
|
191
|
+
fullname?: string;
|
|
192
|
+
displayname?: string;
|
|
193
|
+
shortdisplayname?: string;
|
|
194
|
+
preferedLanguage?: string | null;
|
|
195
|
+
updated?: string;
|
|
196
|
+
tokensInvalidated?: string;
|
|
197
|
+
};
|
|
198
|
+
|
|
170
199
|
export class Objects {
|
|
171
200
|
constructor(api: Api);
|
|
172
201
|
get(objectId: string, revision: number | undefined, properties: string | undefined, projectId: string | undefined, shortInfo: boolean | undefined, type: string | undefined);
|
|
@@ -176,6 +205,8 @@ declare module 'bimplus-websdk' {
|
|
|
176
205
|
postHyperlink(objectId: string, data: string): Promise<Hyperlink>;
|
|
177
206
|
getAttachmentLinks(objectId: string): Promise<AttachmentLinksResponse>;
|
|
178
207
|
postAttachmentLink(objectId: string, data: string): Promise<AttachmentLink>;
|
|
208
|
+
postComment(objectId: string, data: string): Promise<CommentResponse>;
|
|
209
|
+
getComments(objectId: string): Promise<CommentsResponse>;
|
|
179
210
|
}
|
|
180
211
|
|
|
181
212
|
export class Attachments {
|
|
@@ -286,7 +317,12 @@ declare module 'bimplus-websdk' {
|
|
|
286
317
|
objectIds:string[];
|
|
287
318
|
sizeMB: string
|
|
288
319
|
}
|
|
289
|
-
|
|
320
|
+
|
|
321
|
+
export class Comments {
|
|
322
|
+
constructor(api: Api);
|
|
323
|
+
delete(id: string): Promise<void>;
|
|
324
|
+
}
|
|
325
|
+
|
|
290
326
|
|
|
291
327
|
export class Api {
|
|
292
328
|
constructor(config: ApiConfig);
|
|
@@ -306,6 +342,7 @@ declare module 'bimplus-websdk' {
|
|
|
306
342
|
imprints: PrivacyTexts;
|
|
307
343
|
dataProtection: PrivacyTexts;
|
|
308
344
|
hyperlinks: Hyperlinks;
|
|
345
|
+
comments: Comments;
|
|
309
346
|
|
|
310
347
|
setAccessToken(token: AccessToken): void;
|
|
311
348
|
getAccessToken(): AccessToken | null;
|