@arrowsphere/api-client 3.26.0-rc.3 → 3.26.0-rc.4

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.
@@ -7,17 +7,17 @@ export declare enum IssueAttachmentFields {
7
7
  }
8
8
  export declare type IssueAttachmentType = {
9
9
  [IssueAttachmentFields.COLUMN_ID]: string;
10
- [IssueAttachmentFields.COLUMN_FILE_NAME]: string;
11
- [IssueAttachmentFields.COLUMN_MIME_TYPE]: string;
12
- [IssueAttachmentFields.COLUMN_CONTENT]: string;
10
+ [IssueAttachmentFields.COLUMN_FILE_NAME]?: string;
11
+ [IssueAttachmentFields.COLUMN_MIME_TYPE]?: string;
12
+ [IssueAttachmentFields.COLUMN_CONTENT]?: string;
13
13
  };
14
14
  export declare class IssueAttachment extends AbstractEntity<IssueAttachmentType> {
15
15
  #private;
16
16
  constructor(input: IssueAttachmentType);
17
17
  get id(): string;
18
- get fileName(): string;
19
- get mimeType(): string;
20
- get content(): string;
18
+ get fileName(): string | undefined;
19
+ get mimeType(): string | undefined;
20
+ get content(): string | undefined;
21
21
  toJSON(): IssueAttachmentType;
22
22
  }
23
23
  export declare type IssueAttachmentsType = Array<IssueAttachmentType>;
@@ -8,17 +8,17 @@ export declare enum IssueCommentFields {
8
8
  }
9
9
  export declare type IssueCommentType = {
10
10
  [IssueCommentFields.COLUMN_ID]: string;
11
- [IssueCommentFields.COLUMN_BODY]: string;
12
- [IssueCommentFields.COLUMN_DATE]: string;
13
- [IssueCommentFields.COLUMN_CREATED_BY]: IssueCreatedByType;
11
+ [IssueCommentFields.COLUMN_BODY]?: string;
12
+ [IssueCommentFields.COLUMN_DATE]?: string;
13
+ [IssueCommentFields.COLUMN_CREATED_BY]?: IssueCreatedByType;
14
14
  };
15
15
  export declare class IssueComment extends AbstractEntity<IssueCommentType> {
16
16
  #private;
17
17
  constructor(input: IssueCommentType);
18
18
  get id(): string;
19
- get body(): string;
20
- get date(): Date;
21
- get createdBy(): IssueCreatedBy;
19
+ get body(): string | undefined;
20
+ get date(): Date | undefined;
21
+ get createdBy(): IssueCreatedBy | undefined;
22
22
  toJSON(): IssueCommentType;
23
23
  }
24
24
  export declare type IssueCommentsType = Array<IssueCommentType>;
@@ -33,8 +33,12 @@ class IssueComment extends abstractEntity_1.AbstractEntity {
33
33
  _createdBy.set(this, void 0);
34
34
  __classPrivateFieldSet(this, _id, input[IssueCommentFields.COLUMN_ID]);
35
35
  __classPrivateFieldSet(this, _body, input[IssueCommentFields.COLUMN_BODY]);
36
- __classPrivateFieldSet(this, _date, new Date(input[IssueCommentFields.COLUMN_DATE]));
37
- __classPrivateFieldSet(this, _createdBy, new issue_1.IssueCreatedBy(input[IssueCommentFields.COLUMN_CREATED_BY]));
36
+ __classPrivateFieldSet(this, _date, input[IssueCommentFields.COLUMN_DATE]
37
+ ? new Date(input[IssueCommentFields.COLUMN_DATE])
38
+ : undefined);
39
+ __classPrivateFieldSet(this, _createdBy, input[IssueCommentFields.COLUMN_CREATED_BY]
40
+ ? new issue_1.IssueCreatedBy(input[IssueCommentFields.COLUMN_CREATED_BY])
41
+ : undefined);
38
42
  }
39
43
  get id() {
40
44
  return __classPrivateFieldGet(this, _id);
@@ -49,11 +53,12 @@ class IssueComment extends abstractEntity_1.AbstractEntity {
49
53
  return __classPrivateFieldGet(this, _createdBy);
50
54
  }
51
55
  toJSON() {
56
+ var _a, _b;
52
57
  return {
53
58
  [IssueCommentFields.COLUMN_ID]: this.id,
54
59
  [IssueCommentFields.COLUMN_BODY]: this.body,
55
- [IssueCommentFields.COLUMN_DATE]: this.date.toISOString(),
56
- [IssueCommentFields.COLUMN_CREATED_BY]: this.createdBy.toJSON(),
60
+ [IssueCommentFields.COLUMN_DATE]: (_a = this.date) === null || _a === void 0 ? void 0 : _a.toISOString(),
61
+ [IssueCommentFields.COLUMN_CREATED_BY]: (_b = this.createdBy) === null || _b === void 0 ? void 0 : _b.toJSON(),
57
62
  };
58
63
  }
59
64
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.26.0-rc.3",
7
+ "version": "3.26.0-rc.4",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",