@cirrobio/api-client 0.0.38-alpha → 0.0.39-alpha

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.0.38-alpha --save
39
+ npm install @cirrobio/api-client@0.0.39-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -27,13 +27,13 @@ export interface FileAccessRequest {
27
27
  * @type {string}
28
28
  * @memberof FileAccessRequest
29
29
  */
30
- datasetId: string;
30
+ datasetId?: string | null;
31
31
  /**
32
32
  *
33
33
  * @type {number}
34
34
  * @memberof FileAccessRequest
35
35
  */
36
- tokenLifetimeHours: number;
36
+ tokenLifetimeHours?: number | null;
37
37
  }
38
38
  /**
39
39
  * Check if a given object implements the FileAccessRequest interface.
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.FileAccessRequestToJSON = exports.FileAccessRequestFromJSONTyped = exports.FileAccessRequestFromJSON = exports.instanceOfFileAccessRequest = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  var AccessType_1 = require("./AccessType");
18
19
  /**
19
20
  * Check if a given object implements the FileAccessRequest interface.
@@ -21,8 +22,6 @@ var AccessType_1 = require("./AccessType");
21
22
  function instanceOfFileAccessRequest(value) {
22
23
  var isInstance = true;
23
24
  isInstance = isInstance && "accessType" in value;
24
- isInstance = isInstance && "datasetId" in value;
25
- isInstance = isInstance && "tokenLifetimeHours" in value;
26
25
  return isInstance;
27
26
  }
28
27
  exports.instanceOfFileAccessRequest = instanceOfFileAccessRequest;
@@ -36,8 +35,8 @@ function FileAccessRequestFromJSONTyped(json, ignoreDiscriminator) {
36
35
  }
37
36
  return {
38
37
  'accessType': (0, AccessType_1.AccessTypeFromJSON)(json['accessType']),
39
- 'datasetId': json['datasetId'],
40
- 'tokenLifetimeHours': json['tokenLifetimeHours'],
38
+ 'datasetId': !(0, runtime_1.exists)(json, 'datasetId') ? undefined : json['datasetId'],
39
+ 'tokenLifetimeHours': !(0, runtime_1.exists)(json, 'tokenLifetimeHours') ? undefined : json['tokenLifetimeHours'],
41
40
  };
42
41
  }
43
42
  exports.FileAccessRequestFromJSONTyped = FileAccessRequestFromJSONTyped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.0.38-alpha",
3
+ "version": "0.0.39-alpha",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -37,13 +37,13 @@ export interface FileAccessRequest {
37
37
  * @type {string}
38
38
  * @memberof FileAccessRequest
39
39
  */
40
- datasetId: string;
40
+ datasetId?: string | null;
41
41
  /**
42
42
  *
43
43
  * @type {number}
44
44
  * @memberof FileAccessRequest
45
45
  */
46
- tokenLifetimeHours: number;
46
+ tokenLifetimeHours?: number | null;
47
47
  }
48
48
 
49
49
  /**
@@ -52,8 +52,6 @@ export interface FileAccessRequest {
52
52
  export function instanceOfFileAccessRequest(value: object): boolean {
53
53
  let isInstance = true;
54
54
  isInstance = isInstance && "accessType" in value;
55
- isInstance = isInstance && "datasetId" in value;
56
- isInstance = isInstance && "tokenLifetimeHours" in value;
57
55
 
58
56
  return isInstance;
59
57
  }
@@ -69,8 +67,8 @@ export function FileAccessRequestFromJSONTyped(json: any, ignoreDiscriminator: b
69
67
  return {
70
68
 
71
69
  'accessType': AccessTypeFromJSON(json['accessType']),
72
- 'datasetId': json['datasetId'],
73
- 'tokenLifetimeHours': json['tokenLifetimeHours'],
70
+ 'datasetId': !exists(json, 'datasetId') ? undefined : json['datasetId'],
71
+ 'tokenLifetimeHours': !exists(json, 'tokenLifetimeHours') ? undefined : json['tokenLifetimeHours'],
74
72
  };
75
73
  }
76
74