@cirrobio/api-client 0.2.1 → 0.2.2

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.1 --save
39
+ npm install @cirrobio/api-client@0.2.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -110,32 +110,32 @@ export declare class DatasetsApi extends runtime.BaseAPI {
110
110
  */
111
111
  importPublicDataset(requestParameters: ImportPublicDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
112
112
  /**
113
- * Rerun sample ingest (TODO).
113
+ * Rerun sample ingest.
114
114
  * Rerun sample ingest
115
115
  */
116
116
  ingestSamplesRaw(requestParameters: IngestSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
117
117
  /**
118
- * Rerun sample ingest (TODO).
118
+ * Rerun sample ingest.
119
119
  * Rerun sample ingest
120
120
  */
121
121
  ingestSamples(requestParameters: IngestSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
122
122
  /**
123
- * Regenerate dataset manifest (TODO).
123
+ * Regenerate dataset file listing.
124
124
  * Regenerate dataset manifest
125
125
  */
126
126
  regenerateManifestRaw(requestParameters: RegenerateManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
127
127
  /**
128
- * Regenerate dataset manifest (TODO).
128
+ * Regenerate dataset file listing.
129
129
  * Regenerate dataset manifest
130
130
  */
131
131
  regenerateManifest(requestParameters: RegenerateManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
132
132
  /**
133
- * Rerun data transforms (TODO).
133
+ * Rerun data transforms and web optimization.
134
134
  * Rerun data transforms
135
135
  */
136
136
  rerunTransformRaw(requestParameters: RerunTransformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
137
137
  /**
138
- * Rerun data transforms (TODO).
138
+ * Rerun data transforms and web optimization.
139
139
  * Rerun data transforms
140
140
  */
141
141
  rerunTransform(requestParameters: RerunTransformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -375,7 +375,7 @@ var DatasetsApi = /** @class */ (function (_super) {
375
375
  });
376
376
  };
377
377
  /**
378
- * Rerun sample ingest (TODO).
378
+ * Rerun sample ingest.
379
379
  * Rerun sample ingest
380
380
  */
381
381
  DatasetsApi.prototype.ingestSamplesRaw = function (requestParameters, initOverrides) {
@@ -415,7 +415,7 @@ var DatasetsApi = /** @class */ (function (_super) {
415
415
  });
416
416
  };
417
417
  /**
418
- * Rerun sample ingest (TODO).
418
+ * Rerun sample ingest.
419
419
  * Rerun sample ingest
420
420
  */
421
421
  DatasetsApi.prototype.ingestSamples = function (requestParameters, initOverrides) {
@@ -431,7 +431,7 @@ var DatasetsApi = /** @class */ (function (_super) {
431
431
  });
432
432
  };
433
433
  /**
434
- * Regenerate dataset manifest (TODO).
434
+ * Regenerate dataset file listing.
435
435
  * Regenerate dataset manifest
436
436
  */
437
437
  DatasetsApi.prototype.regenerateManifestRaw = function (requestParameters, initOverrides) {
@@ -471,7 +471,7 @@ var DatasetsApi = /** @class */ (function (_super) {
471
471
  });
472
472
  };
473
473
  /**
474
- * Regenerate dataset manifest (TODO).
474
+ * Regenerate dataset file listing.
475
475
  * Regenerate dataset manifest
476
476
  */
477
477
  DatasetsApi.prototype.regenerateManifest = function (requestParameters, initOverrides) {
@@ -487,7 +487,7 @@ var DatasetsApi = /** @class */ (function (_super) {
487
487
  });
488
488
  };
489
489
  /**
490
- * Rerun data transforms (TODO).
490
+ * Rerun data transforms and web optimization.
491
491
  * Rerun data transforms
492
492
  */
493
493
  DatasetsApi.prototype.rerunTransformRaw = function (requestParameters, initOverrides) {
@@ -527,7 +527,7 @@ var DatasetsApi = /** @class */ (function (_super) {
527
527
  });
528
528
  };
529
529
  /**
530
- * Rerun data transforms (TODO).
530
+ * Rerun data transforms and web optimization.
531
531
  * Rerun data transforms
532
532
  */
533
533
  DatasetsApi.prototype.rerunTransform = function (requestParameters, initOverrides) {
@@ -39,6 +39,10 @@ export interface SubscribeShareRequest {
39
39
  projectId: string;
40
40
  shareId: string;
41
41
  }
42
+ export interface UnsubscribeShareRequest {
43
+ projectId: string;
44
+ shareId: string;
45
+ }
42
46
  export interface UpdateShareRequest {
43
47
  projectId: string;
44
48
  shareId: string;
@@ -118,6 +122,16 @@ export declare class SharingApi extends runtime.BaseAPI {
118
122
  * Subscribe to share
119
123
  */
120
124
  subscribeShare(requestParameters: SubscribeShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
125
+ /**
126
+ * Unsubscribe from a share that has been shared with your project
127
+ * Unsubscribe from share
128
+ */
129
+ unsubscribeShareRaw(requestParameters: UnsubscribeShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
130
+ /**
131
+ * Unsubscribe from a share that has been shared with your project
132
+ * Unsubscribe from share
133
+ */
134
+ unsubscribeShare(requestParameters: UnsubscribeShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
121
135
  /**
122
136
  * Update a share that you\'ve published
123
137
  * Update share
@@ -479,6 +479,62 @@ var SharingApi = /** @class */ (function (_super) {
479
479
  });
480
480
  });
481
481
  };
482
+ /**
483
+ * Unsubscribe from a share that has been shared with your project
484
+ * Unsubscribe from share
485
+ */
486
+ SharingApi.prototype.unsubscribeShareRaw = function (requestParameters, initOverrides) {
487
+ return __awaiter(this, void 0, void 0, function () {
488
+ var queryParameters, headerParameters, token, tokenString, response;
489
+ return __generator(this, function (_a) {
490
+ switch (_a.label) {
491
+ case 0:
492
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
493
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling unsubscribeShare.');
494
+ }
495
+ if (requestParameters.shareId === null || requestParameters.shareId === undefined) {
496
+ throw new runtime.RequiredError('shareId', 'Required parameter requestParameters.shareId was null or undefined when calling unsubscribeShare.');
497
+ }
498
+ queryParameters = {};
499
+ headerParameters = {};
500
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
501
+ token = this.configuration.accessToken;
502
+ return [4 /*yield*/, token("accessToken", [])];
503
+ case 1:
504
+ tokenString = _a.sent();
505
+ if (tokenString) {
506
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
507
+ }
508
+ _a.label = 2;
509
+ case 2: return [4 /*yield*/, this.request({
510
+ path: "/projects/{projectId}/shares/{shareId}:unsubscribe".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("shareId", "}"), encodeURIComponent(String(requestParameters.shareId))),
511
+ method: 'PUT',
512
+ headers: headerParameters,
513
+ query: queryParameters,
514
+ }, initOverrides)];
515
+ case 3:
516
+ response = _a.sent();
517
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
518
+ }
519
+ });
520
+ });
521
+ };
522
+ /**
523
+ * Unsubscribe from a share that has been shared with your project
524
+ * Unsubscribe from share
525
+ */
526
+ SharingApi.prototype.unsubscribeShare = function (requestParameters, initOverrides) {
527
+ return __awaiter(this, void 0, void 0, function () {
528
+ return __generator(this, function (_a) {
529
+ switch (_a.label) {
530
+ case 0: return [4 /*yield*/, this.unsubscribeShareRaw(requestParameters, initOverrides)];
531
+ case 1:
532
+ _a.sent();
533
+ return [2 /*return*/];
534
+ }
535
+ });
536
+ });
537
+ };
482
538
  /**
483
539
  * Update a share that you\'ve published
484
540
  * Update share
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { NamedItem } from './NamedItem';
12
13
  import type { Status } from './Status';
13
14
  import type { Tag } from './Tag';
14
15
  /**
@@ -59,6 +60,12 @@ export interface DatasetDetail {
59
60
  * @memberof DatasetDetail
60
61
  */
61
62
  sourceDatasetIds: Array<string>;
63
+ /**
64
+ *
65
+ * @type {Array<NamedItem>}
66
+ * @memberof DatasetDetail
67
+ */
68
+ sourceDatasets: Array<NamedItem>;
62
69
  /**
63
70
  *
64
71
  * @type {Status}
@@ -93,6 +100,12 @@ export interface DatasetDetail {
93
100
  info: {
94
101
  [key: string]: any;
95
102
  };
103
+ /**
104
+ *
105
+ * @type {NamedItem}
106
+ * @memberof DatasetDetail
107
+ */
108
+ share?: NamedItem | null;
96
109
  /**
97
110
  *
98
111
  * @type {string}
@@ -14,6 +14,8 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DatasetDetailToJSON = exports.DatasetDetailFromJSONTyped = exports.DatasetDetailFromJSON = exports.instanceOfDatasetDetail = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var NamedItem_1 = require("./NamedItem");
17
19
  var Status_1 = require("./Status");
18
20
  var Tag_1 = require("./Tag");
19
21
  /**
@@ -28,6 +30,7 @@ function instanceOfDatasetDetail(value) {
28
30
  isInstance = isInstance && "processId" in value;
29
31
  isInstance = isInstance && "projectId" in value;
30
32
  isInstance = isInstance && "sourceDatasetIds" in value;
33
+ isInstance = isInstance && "sourceDatasets" in value;
31
34
  isInstance = isInstance && "status" in value;
32
35
  isInstance = isInstance && "statusMessage" in value;
33
36
  isInstance = isInstance && "tags" in value;
@@ -55,11 +58,13 @@ function DatasetDetailFromJSONTyped(json, ignoreDiscriminator) {
55
58
  'processId': json['processId'],
56
59
  'projectId': json['projectId'],
57
60
  'sourceDatasetIds': json['sourceDatasetIds'],
61
+ 'sourceDatasets': (json['sourceDatasets'].map(NamedItem_1.NamedItemFromJSON)),
58
62
  'status': (0, Status_1.StatusFromJSON)(json['status']),
59
63
  'statusMessage': json['statusMessage'],
60
64
  'tags': (json['tags'].map(Tag_1.TagFromJSON)),
61
65
  'params': json['params'],
62
66
  'info': json['info'],
67
+ 'share': !(0, runtime_1.exists)(json, 'share') ? undefined : (0, NamedItem_1.NamedItemFromJSON)(json['share']),
63
68
  'createdBy': json['createdBy'],
64
69
  'createdAt': (new Date(json['createdAt'])),
65
70
  'updatedAt': (new Date(json['updatedAt'])),
@@ -81,11 +86,13 @@ function DatasetDetailToJSON(value) {
81
86
  'processId': value.processId,
82
87
  'projectId': value.projectId,
83
88
  'sourceDatasetIds': value.sourceDatasetIds,
89
+ 'sourceDatasets': (value.sourceDatasets.map(NamedItem_1.NamedItemToJSON)),
84
90
  'status': (0, Status_1.StatusToJSON)(value.status),
85
91
  'statusMessage': value.statusMessage,
86
92
  'tags': (value.tags.map(Tag_1.TagToJSON)),
87
93
  'params': value.params,
88
94
  'info': value.info,
95
+ 'share': (0, NamedItem_1.NamedItemToJSON)(value.share),
89
96
  'createdBy': value.createdBy,
90
97
  'createdAt': (value.createdAt.toISOString()),
91
98
  'updatedAt': (value.updatedAt.toISOString()),
@@ -51,6 +51,24 @@ export interface GovernanceContact {
51
51
  * @memberof GovernanceContact
52
52
  */
53
53
  email: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof GovernanceContact
58
+ */
59
+ createdBy: string;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof GovernanceContact
64
+ */
65
+ createdAt: Date;
66
+ /**
67
+ *
68
+ * @type {Date}
69
+ * @memberof GovernanceContact
70
+ */
71
+ updatedAt: Date;
54
72
  }
55
73
  /**
56
74
  * Check if a given object implements the GovernanceContact interface.
@@ -25,6 +25,9 @@ function instanceOfGovernanceContact(value) {
25
25
  isInstance = isInstance && "name" in value;
26
26
  isInstance = isInstance && "phone" in value;
27
27
  isInstance = isInstance && "email" in value;
28
+ isInstance = isInstance && "createdBy" in value;
29
+ isInstance = isInstance && "createdAt" in value;
30
+ isInstance = isInstance && "updatedAt" in value;
28
31
  return isInstance;
29
32
  }
30
33
  exports.instanceOfGovernanceContact = instanceOfGovernanceContact;
@@ -43,6 +46,9 @@ function GovernanceContactFromJSONTyped(json, ignoreDiscriminator) {
43
46
  'name': json['name'],
44
47
  'phone': json['phone'],
45
48
  'email': json['email'],
49
+ 'createdBy': json['createdBy'],
50
+ 'createdAt': (new Date(json['createdAt'])),
51
+ 'updatedAt': (new Date(json['updatedAt'])),
46
52
  };
47
53
  }
48
54
  exports.GovernanceContactFromJSONTyped = GovernanceContactFromJSONTyped;
@@ -60,6 +66,9 @@ function GovernanceContactToJSON(value) {
60
66
  'name': value.name,
61
67
  'phone': value.phone,
62
68
  'email': value.email,
69
+ 'createdBy': value.createdBy,
70
+ 'createdAt': (value.createdAt.toISOString()),
71
+ 'updatedAt': (value.updatedAt.toISOString()),
63
72
  };
64
73
  }
65
74
  exports.GovernanceContactToJSON = GovernanceContactToJSON;
@@ -31,49 +31,55 @@ export interface GovernanceRequirement {
31
31
  * @type {string}
32
32
  * @memberof GovernanceRequirement
33
33
  */
34
- name?: string;
34
+ name: string;
35
35
  /**
36
36
  * A brief description of the requirement
37
37
  * @type {string}
38
38
  * @memberof GovernanceRequirement
39
39
  */
40
- description?: string;
40
+ description: string;
41
41
  /**
42
42
  *
43
43
  * @type {GovernanceType}
44
44
  * @memberof GovernanceRequirement
45
45
  */
46
- type?: GovernanceType;
46
+ type: GovernanceType;
47
47
  /**
48
- * The full S3 path where files for the requirement are saved
48
+ * S3 prefix where files for the requirement are saved
49
49
  * @type {string}
50
50
  * @memberof GovernanceRequirement
51
51
  */
52
- path?: string;
52
+ path: string;
53
53
  /**
54
54
  *
55
55
  * @type {GovernanceScope}
56
56
  * @memberof GovernanceRequirement
57
57
  */
58
- scope?: GovernanceScope;
58
+ scope: GovernanceScope;
59
59
  /**
60
60
  *
61
61
  * @type {GovernanceScope}
62
62
  * @memberof GovernanceRequirement
63
63
  */
64
- acceptance?: GovernanceScope;
64
+ acceptance?: GovernanceScope | null;
65
65
  /**
66
- * The IDs of governance contacts assigned to the requirement.
66
+ * The IDs of governance contacts assigned to the requirement.
67
67
  * @type {Array<string>}
68
68
  * @memberof GovernanceRequirement
69
69
  */
70
- contactIds?: Array<string> | null;
70
+ contactIds: Array<string>;
71
71
  /**
72
72
  *
73
73
  * @type {GovernanceExpiry}
74
74
  * @memberof GovernanceRequirement
75
75
  */
76
76
  expiration: GovernanceExpiry;
77
+ /**
78
+ * The date of enactment for a requirement
79
+ * @type {Date}
80
+ * @memberof GovernanceRequirement
81
+ */
82
+ enactmentDate?: Date | null;
77
83
  /**
78
84
  * Optional files with extra information, e.g. templates for documents, links, etc
79
85
  * @type {Array<GovernanceFile>}
@@ -98,6 +104,24 @@ export interface GovernanceRequirement {
98
104
  * @memberof GovernanceRequirement
99
105
  */
100
106
  verification?: GovernanceTrainingVerification | null;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof GovernanceRequirement
111
+ */
112
+ createdBy: string;
113
+ /**
114
+ *
115
+ * @type {Date}
116
+ * @memberof GovernanceRequirement
117
+ */
118
+ createdAt: Date;
119
+ /**
120
+ *
121
+ * @type {Date}
122
+ * @memberof GovernanceRequirement
123
+ */
124
+ updatedAt: Date;
101
125
  }
102
126
  /**
103
127
  * Check if a given object implements the GovernanceRequirement interface.
@@ -26,7 +26,16 @@ var GovernanceType_1 = require("./GovernanceType");
26
26
  function instanceOfGovernanceRequirement(value) {
27
27
  var isInstance = true;
28
28
  isInstance = isInstance && "id" in value;
29
+ isInstance = isInstance && "name" in value;
30
+ isInstance = isInstance && "description" in value;
31
+ isInstance = isInstance && "type" in value;
32
+ isInstance = isInstance && "path" in value;
33
+ isInstance = isInstance && "scope" in value;
34
+ isInstance = isInstance && "contactIds" in value;
29
35
  isInstance = isInstance && "expiration" in value;
36
+ isInstance = isInstance && "createdBy" in value;
37
+ isInstance = isInstance && "createdAt" in value;
38
+ isInstance = isInstance && "updatedAt" in value;
30
39
  return isInstance;
31
40
  }
32
41
  exports.instanceOfGovernanceRequirement = instanceOfGovernanceRequirement;
@@ -40,18 +49,22 @@ function GovernanceRequirementFromJSONTyped(json, ignoreDiscriminator) {
40
49
  }
41
50
  return {
42
51
  'id': json['id'],
43
- 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
44
- 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
45
- 'type': !(0, runtime_1.exists)(json, 'type') ? undefined : (0, GovernanceType_1.GovernanceTypeFromJSON)(json['type']),
46
- 'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
47
- 'scope': !(0, runtime_1.exists)(json, 'scope') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['scope']),
52
+ 'name': json['name'],
53
+ 'description': json['description'],
54
+ 'type': (0, GovernanceType_1.GovernanceTypeFromJSON)(json['type']),
55
+ 'path': json['path'],
56
+ 'scope': (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['scope']),
48
57
  'acceptance': !(0, runtime_1.exists)(json, 'acceptance') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['acceptance']),
49
- 'contactIds': !(0, runtime_1.exists)(json, 'contactIds') ? undefined : json['contactIds'],
58
+ 'contactIds': json['contactIds'],
50
59
  'expiration': (0, GovernanceExpiry_1.GovernanceExpiryFromJSON)(json['expiration']),
60
+ 'enactmentDate': !(0, runtime_1.exists)(json, 'enactmentDate') ? undefined : (json['enactmentDate'] === null ? null : new Date(json['enactmentDate'])),
51
61
  'supplementalDocs': !(0, runtime_1.exists)(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : json['supplementalDocs'].map(GovernanceFile_1.GovernanceFileFromJSON)),
52
62
  'file': !(0, runtime_1.exists)(json, 'file') ? undefined : (0, GovernanceFile_1.GovernanceFileFromJSON)(json['file']),
53
63
  'authorship': !(0, runtime_1.exists)(json, 'authorship') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['authorship']),
54
64
  'verification': !(0, runtime_1.exists)(json, 'verification') ? undefined : (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationFromJSON)(json['verification']),
65
+ 'createdBy': json['createdBy'],
66
+ 'createdAt': (new Date(json['createdAt'])),
67
+ 'updatedAt': (new Date(json['updatedAt'])),
55
68
  };
56
69
  }
57
70
  exports.GovernanceRequirementFromJSONTyped = GovernanceRequirementFromJSONTyped;
@@ -72,10 +85,14 @@ function GovernanceRequirementToJSON(value) {
72
85
  'acceptance': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.acceptance),
73
86
  'contactIds': value.contactIds,
74
87
  'expiration': (0, GovernanceExpiry_1.GovernanceExpiryToJSON)(value.expiration),
88
+ 'enactmentDate': value.enactmentDate === undefined ? undefined : (value.enactmentDate === null ? null : value.enactmentDate.toISOString()),
75
89
  'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFile_1.GovernanceFileToJSON)),
76
90
  'file': (0, GovernanceFile_1.GovernanceFileToJSON)(value.file),
77
91
  'authorship': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.authorship),
78
92
  'verification': (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationToJSON)(value.verification),
93
+ 'createdBy': value.createdBy,
94
+ 'createdAt': (value.createdAt.toISOString()),
95
+ 'updatedAt': (value.updatedAt.toISOString()),
79
96
  };
80
97
  }
81
98
  exports.GovernanceRequirementToJSON = GovernanceRequirementToJSON;
@@ -49,19 +49,25 @@ export interface RequirementInput {
49
49
  * @type {GovernanceScope}
50
50
  * @memberof RequirementInput
51
51
  */
52
- acceptance: GovernanceScope;
52
+ acceptance?: GovernanceScope | null;
53
53
  /**
54
54
  *
55
55
  * @type {Array<string>}
56
56
  * @memberof RequirementInput
57
57
  */
58
- contactIds?: Array<string> | null;
58
+ contactIds: Array<string>;
59
59
  /**
60
60
  *
61
61
  * @type {GovernanceExpiry}
62
62
  * @memberof RequirementInput
63
63
  */
64
64
  expiration: GovernanceExpiry;
65
+ /**
66
+ *
67
+ * @type {Date}
68
+ * @memberof RequirementInput
69
+ */
70
+ enactmentDate?: Date | null;
65
71
  /**
66
72
  *
67
73
  * @type {Array<GovernanceFile>}
@@ -29,7 +29,7 @@ function instanceOfRequirementInput(value) {
29
29
  isInstance = isInstance && "description" in value;
30
30
  isInstance = isInstance && "type" in value;
31
31
  isInstance = isInstance && "scope" in value;
32
- isInstance = isInstance && "acceptance" in value;
32
+ isInstance = isInstance && "contactIds" in value;
33
33
  isInstance = isInstance && "expiration" in value;
34
34
  return isInstance;
35
35
  }
@@ -47,9 +47,10 @@ function RequirementInputFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'description': json['description'],
48
48
  'type': (0, GovernanceType_1.GovernanceTypeFromJSON)(json['type']),
49
49
  'scope': (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['scope']),
50
- 'acceptance': (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['acceptance']),
51
- 'contactIds': !(0, runtime_1.exists)(json, 'contactIds') ? undefined : json['contactIds'],
50
+ 'acceptance': !(0, runtime_1.exists)(json, 'acceptance') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['acceptance']),
51
+ 'contactIds': json['contactIds'],
52
52
  'expiration': (0, GovernanceExpiry_1.GovernanceExpiryFromJSON)(json['expiration']),
53
+ 'enactmentDate': !(0, runtime_1.exists)(json, 'enactmentDate') ? undefined : (json['enactmentDate'] === null ? null : new Date(json['enactmentDate'])),
53
54
  'supplementalDocs': !(0, runtime_1.exists)(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : json['supplementalDocs'].map(GovernanceFile_1.GovernanceFileFromJSON)),
54
55
  'file': !(0, runtime_1.exists)(json, 'file') ? undefined : (0, GovernanceFile_1.GovernanceFileFromJSON)(json['file']),
55
56
  'authorship': !(0, runtime_1.exists)(json, 'authorship') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['authorship']),
@@ -72,6 +73,7 @@ function RequirementInputToJSON(value) {
72
73
  'acceptance': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.acceptance),
73
74
  'contactIds': value.contactIds,
74
75
  'expiration': (0, GovernanceExpiry_1.GovernanceExpiryToJSON)(value.expiration),
76
+ 'enactmentDate': value.enactmentDate === undefined ? undefined : (value.enactmentDate === null ? null : value.enactmentDate.toISOString()),
75
77
  'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFile_1.GovernanceFileToJSON)),
76
78
  'file': (0, GovernanceFile_1.GovernanceFileToJSON)(value.file),
77
79
  'authorship': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.authorship),
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { DatasetCondition } from './DatasetCondition';
12
13
  import type { ShareType } from './ShareType';
13
14
  /**
14
15
  *
@@ -46,6 +47,12 @@ export interface Share {
46
47
  * @memberof Share
47
48
  */
48
49
  shareType: ShareType;
50
+ /**
51
+ *
52
+ * @type {Array<DatasetCondition>}
53
+ * @memberof Share
54
+ */
55
+ conditions: Array<DatasetCondition>;
49
56
  /**
50
57
  *
51
58
  * @type {Array<string>}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ShareToJSON = exports.ShareFromJSONTyped = exports.ShareFromJSON = exports.instanceOfShare = void 0;
17
+ var DatasetCondition_1 = require("./DatasetCondition");
17
18
  var ShareType_1 = require("./ShareType");
18
19
  /**
19
20
  * Check if a given object implements the Share interface.
@@ -25,6 +26,7 @@ function instanceOfShare(value) {
25
26
  isInstance = isInstance && "description" in value;
26
27
  isInstance = isInstance && "originatingProjectId" in value;
27
28
  isInstance = isInstance && "shareType" in value;
29
+ isInstance = isInstance && "conditions" in value;
28
30
  isInstance = isInstance && "classificationIds" in value;
29
31
  isInstance = isInstance && "keywords" in value;
30
32
  isInstance = isInstance && "createdBy" in value;
@@ -47,6 +49,7 @@ function ShareFromJSONTyped(json, ignoreDiscriminator) {
47
49
  'description': json['description'],
48
50
  'originatingProjectId': json['originatingProjectId'],
49
51
  'shareType': (0, ShareType_1.ShareTypeFromJSON)(json['shareType']),
52
+ 'conditions': (json['conditions'].map(DatasetCondition_1.DatasetConditionFromJSON)),
50
53
  'classificationIds': json['classificationIds'],
51
54
  'keywords': json['keywords'],
52
55
  'createdBy': json['createdBy'],
@@ -68,6 +71,7 @@ function ShareToJSON(value) {
68
71
  'description': value.description,
69
72
  'originatingProjectId': value.originatingProjectId,
70
73
  'shareType': (0, ShareType_1.ShareTypeToJSON)(value.shareType),
74
+ 'conditions': (value.conditions.map(DatasetCondition_1.DatasetConditionToJSON)),
71
75
  'classificationIds': value.classificationIds,
72
76
  'keywords': value.keywords,
73
77
  'createdBy': value.createdBy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -337,7 +337,7 @@ export class DatasetsApi extends runtime.BaseAPI {
337
337
  }
338
338
 
339
339
  /**
340
- * Rerun sample ingest (TODO).
340
+ * Rerun sample ingest.
341
341
  * Rerun sample ingest
342
342
  */
343
343
  async ingestSamplesRaw(requestParameters: IngestSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -372,7 +372,7 @@ export class DatasetsApi extends runtime.BaseAPI {
372
372
  }
373
373
 
374
374
  /**
375
- * Rerun sample ingest (TODO).
375
+ * Rerun sample ingest.
376
376
  * Rerun sample ingest
377
377
  */
378
378
  async ingestSamples(requestParameters: IngestSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -380,7 +380,7 @@ export class DatasetsApi extends runtime.BaseAPI {
380
380
  }
381
381
 
382
382
  /**
383
- * Regenerate dataset manifest (TODO).
383
+ * Regenerate dataset file listing.
384
384
  * Regenerate dataset manifest
385
385
  */
386
386
  async regenerateManifestRaw(requestParameters: RegenerateManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -415,7 +415,7 @@ export class DatasetsApi extends runtime.BaseAPI {
415
415
  }
416
416
 
417
417
  /**
418
- * Regenerate dataset manifest (TODO).
418
+ * Regenerate dataset file listing.
419
419
  * Regenerate dataset manifest
420
420
  */
421
421
  async regenerateManifest(requestParameters: RegenerateManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -423,7 +423,7 @@ export class DatasetsApi extends runtime.BaseAPI {
423
423
  }
424
424
 
425
425
  /**
426
- * Rerun data transforms (TODO).
426
+ * Rerun data transforms and web optimization.
427
427
  * Rerun data transforms
428
428
  */
429
429
  async rerunTransformRaw(requestParameters: RerunTransformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -458,7 +458,7 @@ export class DatasetsApi extends runtime.BaseAPI {
458
458
  }
459
459
 
460
460
  /**
461
- * Rerun data transforms (TODO).
461
+ * Rerun data transforms and web optimization.
462
462
  * Rerun data transforms
463
463
  */
464
464
  async rerunTransform(requestParameters: RerunTransformRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
@@ -69,6 +69,11 @@ export interface SubscribeShareRequest {
69
69
  shareId: string;
70
70
  }
71
71
 
72
+ export interface UnsubscribeShareRequest {
73
+ projectId: string;
74
+ shareId: string;
75
+ }
76
+
72
77
  export interface UpdateShareRequest {
73
78
  projectId: string;
74
79
  shareId: string;
@@ -389,6 +394,49 @@ export class SharingApi extends runtime.BaseAPI {
389
394
  await this.subscribeShareRaw(requestParameters, initOverrides);
390
395
  }
391
396
 
397
+ /**
398
+ * Unsubscribe from a share that has been shared with your project
399
+ * Unsubscribe from share
400
+ */
401
+ async unsubscribeShareRaw(requestParameters: UnsubscribeShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
402
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
403
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling unsubscribeShare.');
404
+ }
405
+
406
+ if (requestParameters.shareId === null || requestParameters.shareId === undefined) {
407
+ throw new runtime.RequiredError('shareId','Required parameter requestParameters.shareId was null or undefined when calling unsubscribeShare.');
408
+ }
409
+
410
+ const queryParameters: any = {};
411
+
412
+ const headerParameters: runtime.HTTPHeaders = {};
413
+
414
+ if (this.configuration && this.configuration.accessToken) {
415
+ const token = this.configuration.accessToken;
416
+ const tokenString = await token("accessToken", []);
417
+
418
+ if (tokenString) {
419
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
420
+ }
421
+ }
422
+ const response = await this.request({
423
+ path: `/projects/{projectId}/shares/{shareId}:unsubscribe`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"shareId"}}`, encodeURIComponent(String(requestParameters.shareId))),
424
+ method: 'PUT',
425
+ headers: headerParameters,
426
+ query: queryParameters,
427
+ }, initOverrides);
428
+
429
+ return new runtime.VoidApiResponse(response);
430
+ }
431
+
432
+ /**
433
+ * Unsubscribe from a share that has been shared with your project
434
+ * Unsubscribe from share
435
+ */
436
+ async unsubscribeShare(requestParameters: UnsubscribeShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
437
+ await this.unsubscribeShareRaw(requestParameters, initOverrides);
438
+ }
439
+
392
440
  /**
393
441
  * Update a share that you\'ve published
394
442
  * Update share
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { NamedItem } from './NamedItem';
17
+ import {
18
+ NamedItemFromJSON,
19
+ NamedItemFromJSONTyped,
20
+ NamedItemToJSON,
21
+ } from './NamedItem';
16
22
  import type { Status } from './Status';
17
23
  import {
18
24
  StatusFromJSON,
@@ -74,6 +80,12 @@ export interface DatasetDetail {
74
80
  * @memberof DatasetDetail
75
81
  */
76
82
  sourceDatasetIds: Array<string>;
83
+ /**
84
+ *
85
+ * @type {Array<NamedItem>}
86
+ * @memberof DatasetDetail
87
+ */
88
+ sourceDatasets: Array<NamedItem>;
77
89
  /**
78
90
  *
79
91
  * @type {Status}
@@ -104,6 +116,12 @@ export interface DatasetDetail {
104
116
  * @memberof DatasetDetail
105
117
  */
106
118
  info: { [key: string]: any; };
119
+ /**
120
+ *
121
+ * @type {NamedItem}
122
+ * @memberof DatasetDetail
123
+ */
124
+ share?: NamedItem | null;
107
125
  /**
108
126
  *
109
127
  * @type {string}
@@ -136,6 +154,7 @@ export function instanceOfDatasetDetail(value: object): boolean {
136
154
  isInstance = isInstance && "processId" in value;
137
155
  isInstance = isInstance && "projectId" in value;
138
156
  isInstance = isInstance && "sourceDatasetIds" in value;
157
+ isInstance = isInstance && "sourceDatasets" in value;
139
158
  isInstance = isInstance && "status" in value;
140
159
  isInstance = isInstance && "statusMessage" in value;
141
160
  isInstance = isInstance && "tags" in value;
@@ -165,11 +184,13 @@ export function DatasetDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
165
184
  'processId': json['processId'],
166
185
  'projectId': json['projectId'],
167
186
  'sourceDatasetIds': json['sourceDatasetIds'],
187
+ 'sourceDatasets': ((json['sourceDatasets'] as Array<any>).map(NamedItemFromJSON)),
168
188
  'status': StatusFromJSON(json['status']),
169
189
  'statusMessage': json['statusMessage'],
170
190
  'tags': ((json['tags'] as Array<any>).map(TagFromJSON)),
171
191
  'params': json['params'],
172
192
  'info': json['info'],
193
+ 'share': !exists(json, 'share') ? undefined : NamedItemFromJSON(json['share']),
173
194
  'createdBy': json['createdBy'],
174
195
  'createdAt': (new Date(json['createdAt'])),
175
196
  'updatedAt': (new Date(json['updatedAt'])),
@@ -192,11 +213,13 @@ export function DatasetDetailToJSON(value?: DatasetDetail | null): any {
192
213
  'processId': value.processId,
193
214
  'projectId': value.projectId,
194
215
  'sourceDatasetIds': value.sourceDatasetIds,
216
+ 'sourceDatasets': ((value.sourceDatasets as Array<any>).map(NamedItemToJSON)),
195
217
  'status': StatusToJSON(value.status),
196
218
  'statusMessage': value.statusMessage,
197
219
  'tags': ((value.tags as Array<any>).map(TagToJSON)),
198
220
  'params': value.params,
199
221
  'info': value.info,
222
+ 'share': NamedItemToJSON(value.share),
200
223
  'createdBy': value.createdBy,
201
224
  'createdAt': (value.createdAt.toISOString()),
202
225
  'updatedAt': (value.updatedAt.toISOString()),
@@ -55,6 +55,24 @@ export interface GovernanceContact {
55
55
  * @memberof GovernanceContact
56
56
  */
57
57
  email: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof GovernanceContact
62
+ */
63
+ createdBy: string;
64
+ /**
65
+ *
66
+ * @type {Date}
67
+ * @memberof GovernanceContact
68
+ */
69
+ createdAt: Date;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof GovernanceContact
74
+ */
75
+ updatedAt: Date;
58
76
  }
59
77
 
60
78
  /**
@@ -68,6 +86,9 @@ export function instanceOfGovernanceContact(value: object): boolean {
68
86
  isInstance = isInstance && "name" in value;
69
87
  isInstance = isInstance && "phone" in value;
70
88
  isInstance = isInstance && "email" in value;
89
+ isInstance = isInstance && "createdBy" in value;
90
+ isInstance = isInstance && "createdAt" in value;
91
+ isInstance = isInstance && "updatedAt" in value;
71
92
 
72
93
  return isInstance;
73
94
  }
@@ -88,6 +109,9 @@ export function GovernanceContactFromJSONTyped(json: any, ignoreDiscriminator: b
88
109
  'name': json['name'],
89
110
  'phone': json['phone'],
90
111
  'email': json['email'],
112
+ 'createdBy': json['createdBy'],
113
+ 'createdAt': (new Date(json['createdAt'])),
114
+ 'updatedAt': (new Date(json['updatedAt'])),
91
115
  };
92
116
  }
93
117
 
@@ -106,6 +130,9 @@ export function GovernanceContactToJSON(value?: GovernanceContact | null): any {
106
130
  'name': value.name,
107
131
  'phone': value.phone,
108
132
  'email': value.email,
133
+ 'createdBy': value.createdBy,
134
+ 'createdAt': (value.createdAt.toISOString()),
135
+ 'updatedAt': (value.updatedAt.toISOString()),
109
136
  };
110
137
  }
111
138
 
@@ -61,49 +61,55 @@ export interface GovernanceRequirement {
61
61
  * @type {string}
62
62
  * @memberof GovernanceRequirement
63
63
  */
64
- name?: string;
64
+ name: string;
65
65
  /**
66
66
  * A brief description of the requirement
67
67
  * @type {string}
68
68
  * @memberof GovernanceRequirement
69
69
  */
70
- description?: string;
70
+ description: string;
71
71
  /**
72
72
  *
73
73
  * @type {GovernanceType}
74
74
  * @memberof GovernanceRequirement
75
75
  */
76
- type?: GovernanceType;
76
+ type: GovernanceType;
77
77
  /**
78
- * The full S3 path where files for the requirement are saved
78
+ * S3 prefix where files for the requirement are saved
79
79
  * @type {string}
80
80
  * @memberof GovernanceRequirement
81
81
  */
82
- path?: string;
82
+ path: string;
83
83
  /**
84
84
  *
85
85
  * @type {GovernanceScope}
86
86
  * @memberof GovernanceRequirement
87
87
  */
88
- scope?: GovernanceScope;
88
+ scope: GovernanceScope;
89
89
  /**
90
90
  *
91
91
  * @type {GovernanceScope}
92
92
  * @memberof GovernanceRequirement
93
93
  */
94
- acceptance?: GovernanceScope;
94
+ acceptance?: GovernanceScope | null;
95
95
  /**
96
- * The IDs of governance contacts assigned to the requirement.
96
+ * The IDs of governance contacts assigned to the requirement.
97
97
  * @type {Array<string>}
98
98
  * @memberof GovernanceRequirement
99
99
  */
100
- contactIds?: Array<string> | null;
100
+ contactIds: Array<string>;
101
101
  /**
102
102
  *
103
103
  * @type {GovernanceExpiry}
104
104
  * @memberof GovernanceRequirement
105
105
  */
106
106
  expiration: GovernanceExpiry;
107
+ /**
108
+ * The date of enactment for a requirement
109
+ * @type {Date}
110
+ * @memberof GovernanceRequirement
111
+ */
112
+ enactmentDate?: Date | null;
107
113
  /**
108
114
  * Optional files with extra information, e.g. templates for documents, links, etc
109
115
  * @type {Array<GovernanceFile>}
@@ -128,6 +134,24 @@ export interface GovernanceRequirement {
128
134
  * @memberof GovernanceRequirement
129
135
  */
130
136
  verification?: GovernanceTrainingVerification | null;
137
+ /**
138
+ *
139
+ * @type {string}
140
+ * @memberof GovernanceRequirement
141
+ */
142
+ createdBy: string;
143
+ /**
144
+ *
145
+ * @type {Date}
146
+ * @memberof GovernanceRequirement
147
+ */
148
+ createdAt: Date;
149
+ /**
150
+ *
151
+ * @type {Date}
152
+ * @memberof GovernanceRequirement
153
+ */
154
+ updatedAt: Date;
131
155
  }
132
156
 
133
157
  /**
@@ -136,7 +160,16 @@ export interface GovernanceRequirement {
136
160
  export function instanceOfGovernanceRequirement(value: object): boolean {
137
161
  let isInstance = true;
138
162
  isInstance = isInstance && "id" in value;
163
+ isInstance = isInstance && "name" in value;
164
+ isInstance = isInstance && "description" in value;
165
+ isInstance = isInstance && "type" in value;
166
+ isInstance = isInstance && "path" in value;
167
+ isInstance = isInstance && "scope" in value;
168
+ isInstance = isInstance && "contactIds" in value;
139
169
  isInstance = isInstance && "expiration" in value;
170
+ isInstance = isInstance && "createdBy" in value;
171
+ isInstance = isInstance && "createdAt" in value;
172
+ isInstance = isInstance && "updatedAt" in value;
140
173
 
141
174
  return isInstance;
142
175
  }
@@ -152,18 +185,22 @@ export function GovernanceRequirementFromJSONTyped(json: any, ignoreDiscriminato
152
185
  return {
153
186
 
154
187
  'id': json['id'],
155
- 'name': !exists(json, 'name') ? undefined : json['name'],
156
- 'description': !exists(json, 'description') ? undefined : json['description'],
157
- 'type': !exists(json, 'type') ? undefined : GovernanceTypeFromJSON(json['type']),
158
- 'path': !exists(json, 'path') ? undefined : json['path'],
159
- 'scope': !exists(json, 'scope') ? undefined : GovernanceScopeFromJSON(json['scope']),
188
+ 'name': json['name'],
189
+ 'description': json['description'],
190
+ 'type': GovernanceTypeFromJSON(json['type']),
191
+ 'path': json['path'],
192
+ 'scope': GovernanceScopeFromJSON(json['scope']),
160
193
  'acceptance': !exists(json, 'acceptance') ? undefined : GovernanceScopeFromJSON(json['acceptance']),
161
- 'contactIds': !exists(json, 'contactIds') ? undefined : json['contactIds'],
194
+ 'contactIds': json['contactIds'],
162
195
  'expiration': GovernanceExpiryFromJSON(json['expiration']),
196
+ 'enactmentDate': !exists(json, 'enactmentDate') ? undefined : (json['enactmentDate'] === null ? null : new Date(json['enactmentDate'])),
163
197
  'supplementalDocs': !exists(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : (json['supplementalDocs'] as Array<any>).map(GovernanceFileFromJSON)),
164
198
  'file': !exists(json, 'file') ? undefined : GovernanceFileFromJSON(json['file']),
165
199
  'authorship': !exists(json, 'authorship') ? undefined : GovernanceScopeFromJSON(json['authorship']),
166
200
  'verification': !exists(json, 'verification') ? undefined : GovernanceTrainingVerificationFromJSON(json['verification']),
201
+ 'createdBy': json['createdBy'],
202
+ 'createdAt': (new Date(json['createdAt'])),
203
+ 'updatedAt': (new Date(json['updatedAt'])),
167
204
  };
168
205
  }
169
206
 
@@ -185,10 +222,14 @@ export function GovernanceRequirementToJSON(value?: GovernanceRequirement | null
185
222
  'acceptance': GovernanceScopeToJSON(value.acceptance),
186
223
  'contactIds': value.contactIds,
187
224
  'expiration': GovernanceExpiryToJSON(value.expiration),
225
+ 'enactmentDate': value.enactmentDate === undefined ? undefined : (value.enactmentDate === null ? null : value.enactmentDate.toISOString()),
188
226
  'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : (value.supplementalDocs as Array<any>).map(GovernanceFileToJSON)),
189
227
  'file': GovernanceFileToJSON(value.file),
190
228
  'authorship': GovernanceScopeToJSON(value.authorship),
191
229
  'verification': GovernanceTrainingVerificationToJSON(value.verification),
230
+ 'createdBy': value.createdBy,
231
+ 'createdAt': (value.createdAt.toISOString()),
232
+ 'updatedAt': (value.updatedAt.toISOString()),
192
233
  };
193
234
  }
194
235
 
@@ -79,19 +79,25 @@ export interface RequirementInput {
79
79
  * @type {GovernanceScope}
80
80
  * @memberof RequirementInput
81
81
  */
82
- acceptance: GovernanceScope;
82
+ acceptance?: GovernanceScope | null;
83
83
  /**
84
84
  *
85
85
  * @type {Array<string>}
86
86
  * @memberof RequirementInput
87
87
  */
88
- contactIds?: Array<string> | null;
88
+ contactIds: Array<string>;
89
89
  /**
90
90
  *
91
91
  * @type {GovernanceExpiry}
92
92
  * @memberof RequirementInput
93
93
  */
94
94
  expiration: GovernanceExpiry;
95
+ /**
96
+ *
97
+ * @type {Date}
98
+ * @memberof RequirementInput
99
+ */
100
+ enactmentDate?: Date | null;
95
101
  /**
96
102
  *
97
103
  * @type {Array<GovernanceFile>}
@@ -127,7 +133,7 @@ export function instanceOfRequirementInput(value: object): boolean {
127
133
  isInstance = isInstance && "description" in value;
128
134
  isInstance = isInstance && "type" in value;
129
135
  isInstance = isInstance && "scope" in value;
130
- isInstance = isInstance && "acceptance" in value;
136
+ isInstance = isInstance && "contactIds" in value;
131
137
  isInstance = isInstance && "expiration" in value;
132
138
 
133
139
  return isInstance;
@@ -147,9 +153,10 @@ export function RequirementInputFromJSONTyped(json: any, ignoreDiscriminator: bo
147
153
  'description': json['description'],
148
154
  'type': GovernanceTypeFromJSON(json['type']),
149
155
  'scope': GovernanceScopeFromJSON(json['scope']),
150
- 'acceptance': GovernanceScopeFromJSON(json['acceptance']),
151
- 'contactIds': !exists(json, 'contactIds') ? undefined : json['contactIds'],
156
+ 'acceptance': !exists(json, 'acceptance') ? undefined : GovernanceScopeFromJSON(json['acceptance']),
157
+ 'contactIds': json['contactIds'],
152
158
  'expiration': GovernanceExpiryFromJSON(json['expiration']),
159
+ 'enactmentDate': !exists(json, 'enactmentDate') ? undefined : (json['enactmentDate'] === null ? null : new Date(json['enactmentDate'])),
153
160
  'supplementalDocs': !exists(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : (json['supplementalDocs'] as Array<any>).map(GovernanceFileFromJSON)),
154
161
  'file': !exists(json, 'file') ? undefined : GovernanceFileFromJSON(json['file']),
155
162
  'authorship': !exists(json, 'authorship') ? undefined : GovernanceScopeFromJSON(json['authorship']),
@@ -173,6 +180,7 @@ export function RequirementInputToJSON(value?: RequirementInput | null): any {
173
180
  'acceptance': GovernanceScopeToJSON(value.acceptance),
174
181
  'contactIds': value.contactIds,
175
182
  'expiration': GovernanceExpiryToJSON(value.expiration),
183
+ 'enactmentDate': value.enactmentDate === undefined ? undefined : (value.enactmentDate === null ? null : value.enactmentDate.toISOString()),
176
184
  'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : (value.supplementalDocs as Array<any>).map(GovernanceFileToJSON)),
177
185
  'file': GovernanceFileToJSON(value.file),
178
186
  'authorship': GovernanceScopeToJSON(value.authorship),
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { DatasetCondition } from './DatasetCondition';
17
+ import {
18
+ DatasetConditionFromJSON,
19
+ DatasetConditionFromJSONTyped,
20
+ DatasetConditionToJSON,
21
+ } from './DatasetCondition';
16
22
  import type { ShareType } from './ShareType';
17
23
  import {
18
24
  ShareTypeFromJSON,
@@ -56,6 +62,12 @@ export interface Share {
56
62
  * @memberof Share
57
63
  */
58
64
  shareType: ShareType;
65
+ /**
66
+ *
67
+ * @type {Array<DatasetCondition>}
68
+ * @memberof Share
69
+ */
70
+ conditions: Array<DatasetCondition>;
59
71
  /**
60
72
  *
61
73
  * @type {Array<string>}
@@ -98,6 +110,7 @@ export function instanceOfShare(value: object): boolean {
98
110
  isInstance = isInstance && "description" in value;
99
111
  isInstance = isInstance && "originatingProjectId" in value;
100
112
  isInstance = isInstance && "shareType" in value;
113
+ isInstance = isInstance && "conditions" in value;
101
114
  isInstance = isInstance && "classificationIds" in value;
102
115
  isInstance = isInstance && "keywords" in value;
103
116
  isInstance = isInstance && "createdBy" in value;
@@ -122,6 +135,7 @@ export function ShareFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sha
122
135
  'description': json['description'],
123
136
  'originatingProjectId': json['originatingProjectId'],
124
137
  'shareType': ShareTypeFromJSON(json['shareType']),
138
+ 'conditions': ((json['conditions'] as Array<any>).map(DatasetConditionFromJSON)),
125
139
  'classificationIds': json['classificationIds'],
126
140
  'keywords': json['keywords'],
127
141
  'createdBy': json['createdBy'],
@@ -144,6 +158,7 @@ export function ShareToJSON(value?: Share | null): any {
144
158
  'description': value.description,
145
159
  'originatingProjectId': value.originatingProjectId,
146
160
  'shareType': ShareTypeToJSON(value.shareType),
161
+ 'conditions': ((value.conditions as Array<any>).map(DatasetConditionToJSON)),
147
162
  'classificationIds': value.classificationIds,
148
163
  'keywords': value.keywords,
149
164
  'createdBy': value.createdBy,