@cirrobio/api-client 0.2.17 → 0.2.19

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/README.md CHANGED
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.2.17 --save
39
+ npm install @cirrobio/api-client@0.2.19 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -27,7 +27,7 @@ export interface Artifact {
27
27
  * @type {string}
28
28
  * @memberof Artifact
29
29
  */
30
- relativePath: string;
30
+ path: string;
31
31
  }
32
32
  /**
33
33
  * Check if a given object implements the Artifact interface.
@@ -21,7 +21,7 @@ var ArtifactType_1 = require("./ArtifactType");
21
21
  function instanceOfArtifact(value) {
22
22
  var isInstance = true;
23
23
  isInstance = isInstance && "type" in value;
24
- isInstance = isInstance && "relativePath" in value;
24
+ isInstance = isInstance && "path" in value;
25
25
  return isInstance;
26
26
  }
27
27
  exports.instanceOfArtifact = instanceOfArtifact;
@@ -35,7 +35,7 @@ function ArtifactFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'type': (0, ArtifactType_1.ArtifactTypeFromJSON)(json['type']),
38
- 'relativePath': json['relativePath'],
38
+ 'path': json['path'],
39
39
  };
40
40
  }
41
41
  exports.ArtifactFromJSONTyped = ArtifactFromJSONTyped;
@@ -48,7 +48,7 @@ function ArtifactToJSON(value) {
48
48
  }
49
49
  return {
50
50
  'type': (0, ArtifactType_1.ArtifactTypeToJSON)(value.type),
51
- 'relativePath': value.relativePath,
51
+ 'path': value.path,
52
52
  };
53
53
  }
54
54
  exports.ArtifactToJSON = ArtifactToJSON;
@@ -21,6 +21,12 @@ export interface RequirementFulfillmentInput {
21
21
  * @memberof RequirementFulfillmentInput
22
22
  */
23
23
  file?: string | null;
24
+ /**
25
+ * If not provided, defaults to the current instant
26
+ * @type {Date}
27
+ * @memberof RequirementFulfillmentInput
28
+ */
29
+ completedOn?: Date | null;
24
30
  }
25
31
  /**
26
32
  * Check if a given object implements the RequirementFulfillmentInput interface.
@@ -33,6 +33,7 @@ function RequirementFulfillmentInputFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'file': !(0, runtime_1.exists)(json, 'file') ? undefined : json['file'],
36
+ 'completedOn': !(0, runtime_1.exists)(json, 'completedOn') ? undefined : (json['completedOn'] === null ? null : new Date(json['completedOn'])),
36
37
  };
37
38
  }
38
39
  exports.RequirementFulfillmentInputFromJSONTyped = RequirementFulfillmentInputFromJSONTyped;
@@ -45,6 +46,7 @@ function RequirementFulfillmentInputToJSON(value) {
45
46
  }
46
47
  return {
47
48
  'file': value.file,
49
+ 'completedOn': value.completedOn === undefined ? undefined : (value.completedOn === null ? null : value.completedOn.toISOString()),
48
50
  };
49
51
  }
50
52
  exports.RequirementFulfillmentInputToJSON = RequirementFulfillmentInputToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -37,7 +37,7 @@ export interface Artifact {
37
37
  * @type {string}
38
38
  * @memberof Artifact
39
39
  */
40
- relativePath: string;
40
+ path: string;
41
41
  }
42
42
 
43
43
  /**
@@ -46,7 +46,7 @@ export interface Artifact {
46
46
  export function instanceOfArtifact(value: object): boolean {
47
47
  let isInstance = true;
48
48
  isInstance = isInstance && "type" in value;
49
- isInstance = isInstance && "relativePath" in value;
49
+ isInstance = isInstance && "path" in value;
50
50
 
51
51
  return isInstance;
52
52
  }
@@ -62,7 +62,7 @@ export function ArtifactFromJSONTyped(json: any, ignoreDiscriminator: boolean):
62
62
  return {
63
63
 
64
64
  'type': ArtifactTypeFromJSON(json['type']),
65
- 'relativePath': json['relativePath'],
65
+ 'path': json['path'],
66
66
  };
67
67
  }
68
68
 
@@ -76,7 +76,7 @@ export function ArtifactToJSON(value?: Artifact | null): any {
76
76
  return {
77
77
 
78
78
  'type': ArtifactTypeToJSON(value.type),
79
- 'relativePath': value.relativePath,
79
+ 'path': value.path,
80
80
  };
81
81
  }
82
82
 
@@ -25,6 +25,12 @@ export interface RequirementFulfillmentInput {
25
25
  * @memberof RequirementFulfillmentInput
26
26
  */
27
27
  file?: string | null;
28
+ /**
29
+ * If not provided, defaults to the current instant
30
+ * @type {Date}
31
+ * @memberof RequirementFulfillmentInput
32
+ */
33
+ completedOn?: Date | null;
28
34
  }
29
35
 
30
36
  /**
@@ -47,6 +53,7 @@ export function RequirementFulfillmentInputFromJSONTyped(json: any, ignoreDiscri
47
53
  return {
48
54
 
49
55
  'file': !exists(json, 'file') ? undefined : json['file'],
56
+ 'completedOn': !exists(json, 'completedOn') ? undefined : (json['completedOn'] === null ? null : new Date(json['completedOn'])),
50
57
  };
51
58
  }
52
59
 
@@ -60,6 +67,7 @@ export function RequirementFulfillmentInputToJSON(value?: RequirementFulfillment
60
67
  return {
61
68
 
62
69
  'file': value.file,
70
+ 'completedOn': value.completedOn === undefined ? undefined : (value.completedOn === null ? null : value.completedOn.toISOString()),
63
71
  };
64
72
  }
65
73