@arrowsphere/api-client 3.26.0-rc.2 → 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
  }
@@ -77,7 +77,7 @@ export declare type IssueType = {
77
77
  [IssueFields.COLUMN_CREATED_BY]?: IssueCreatedByType;
78
78
  [IssueFields.COLUMN_SUPPORT_PLAN]?: IssueSupportPlanType;
79
79
  [IssueFields.COLUMN_PROGRAM]: string;
80
- [IssueFields.COLUMN_ADDITIONAL_DATA]: Array<IssueAdditionalDataType>;
80
+ [IssueFields.COLUMN_ADDITIONAL_DATA]?: Array<IssueAdditionalDataType>;
81
81
  [IssueFields.COLUMN_CREATED]?: string;
82
82
  [IssueFields.COLUMN_UPDATED]?: string;
83
83
  };
@@ -128,7 +128,7 @@ export declare class Issue extends AbstractEntity<IssueType> {
128
128
  get createdBy(): IssueCreatedBy | undefined;
129
129
  get supportPlan(): IssueSupportPlan | undefined;
130
130
  get program(): string;
131
- get additionalData(): Array<IssueAdditionalData>;
131
+ get additionalData(): Array<IssueAdditionalData> | undefined;
132
132
  get created(): Date | undefined;
133
133
  get updated(): Date | undefined;
134
134
  toJSON(): IssueType;
@@ -219,7 +219,9 @@ class Issue extends abstractEntity_1.AbstractEntity {
219
219
  ? new IssueSupportPlan(input[IssueFields.COLUMN_SUPPORT_PLAN])
220
220
  : undefined);
221
221
  __classPrivateFieldSet(this, _program, input[IssueFields.COLUMN_PROGRAM]);
222
- __classPrivateFieldSet(this, _additionalData, input[IssueFields.COLUMN_ADDITIONAL_DATA].map((item) => new IssueAdditionalData(item)));
222
+ __classPrivateFieldSet(this, _additionalData, input[IssueFields.COLUMN_ADDITIONAL_DATA]
223
+ ? input[IssueFields.COLUMN_ADDITIONAL_DATA].map((item) => new IssueAdditionalData(item))
224
+ : undefined);
223
225
  __classPrivateFieldSet(this, _created, input[IssueFields.COLUMN_CREATED]
224
226
  ? new Date(input[IssueFields.COLUMN_CREATED])
225
227
  : undefined);
@@ -273,7 +275,7 @@ class Issue extends abstractEntity_1.AbstractEntity {
273
275
  return __classPrivateFieldGet(this, _updated);
274
276
  }
275
277
  toJSON() {
276
- var _a, _b, _c, _d, _e;
278
+ var _a, _b, _c, _d, _e, _f;
277
279
  return {
278
280
  [IssueFields.COLUMN_ID]: this.id,
279
281
  [IssueFields.COLUMN_TITLE]: this.title,
@@ -287,9 +289,9 @@ class Issue extends abstractEntity_1.AbstractEntity {
287
289
  [IssueFields.COLUMN_CREATED_BY]: (_b = this.createdBy) === null || _b === void 0 ? void 0 : _b.toJSON(),
288
290
  [IssueFields.COLUMN_SUPPORT_PLAN]: (_c = this.supportPlan) === null || _c === void 0 ? void 0 : _c.toJSON(),
289
291
  [IssueFields.COLUMN_PROGRAM]: this.program,
290
- [IssueFields.COLUMN_ADDITIONAL_DATA]: this.additionalData.map((item) => item.toJSON()),
291
- [IssueFields.COLUMN_CREATED]: (_d = this.created) === null || _d === void 0 ? void 0 : _d.toISOString(),
292
- [IssueFields.COLUMN_UPDATED]: (_e = this.updated) === null || _e === void 0 ? void 0 : _e.toISOString(),
292
+ [IssueFields.COLUMN_ADDITIONAL_DATA]: (_d = this.additionalData) === null || _d === void 0 ? void 0 : _d.map((item) => item.toJSON()),
293
+ [IssueFields.COLUMN_CREATED]: (_e = this.created) === null || _e === void 0 ? void 0 : _e.toISOString(),
294
+ [IssueFields.COLUMN_UPDATED]: (_f = this.updated) === null || _f === void 0 ? void 0 : _f.toISOString(),
293
295
  };
294
296
  }
295
297
  }
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.2",
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",