@cirrobio/api-client 0.9.3 → 0.9.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.
package/README.md
CHANGED
|
@@ -99,6 +99,12 @@ export interface ProjectRequirement {
|
|
|
99
99
|
* @memberof ProjectRequirement
|
|
100
100
|
*/
|
|
101
101
|
expirationDate?: Date | null;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the requirement is past the enactment date
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof ProjectRequirement
|
|
106
|
+
*/
|
|
107
|
+
isEnacted: boolean;
|
|
102
108
|
/**
|
|
103
109
|
* Optional files with extra information, e.g. templates for documents, links, etc
|
|
104
110
|
* @type {Array<GovernanceFile>}
|
|
@@ -117,6 +123,12 @@ export interface ProjectRequirement {
|
|
|
117
123
|
* @memberof ProjectRequirement
|
|
118
124
|
*/
|
|
119
125
|
authorship?: GovernanceScope | null;
|
|
126
|
+
/**
|
|
127
|
+
* A requirement is project configured if it was created by the tenant but needs a file uploaded by the project
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof ProjectRequirement
|
|
130
|
+
*/
|
|
131
|
+
isProjectConfigured: boolean;
|
|
120
132
|
/**
|
|
121
133
|
*
|
|
122
134
|
* @type {GovernanceTrainingVerification}
|
|
@@ -31,6 +31,8 @@ export function instanceOfProjectRequirement(value) {
|
|
|
31
31
|
isInstance = isInstance && "supplementalPath" in value;
|
|
32
32
|
isInstance = isInstance && "scope" in value;
|
|
33
33
|
isInstance = isInstance && "contacts" in value;
|
|
34
|
+
isInstance = isInstance && "isEnacted" in value;
|
|
35
|
+
isInstance = isInstance && "isProjectConfigured" in value;
|
|
34
36
|
isInstance = isInstance && "isFulfilled" in value;
|
|
35
37
|
return isInstance;
|
|
36
38
|
}
|
|
@@ -55,9 +57,11 @@ export function ProjectRequirementFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
57
|
'expirationType': !exists(json, 'expirationType') ? undefined : GovernanceExpiryTypeFromJSON(json['expirationType']),
|
|
56
58
|
'expirationDaysAfterCompletion': !exists(json, 'expirationDaysAfterCompletion') ? undefined : json['expirationDaysAfterCompletion'],
|
|
57
59
|
'expirationDate': !exists(json, 'expirationDate') ? undefined : (json['expirationDate'] === null ? null : new Date(json['expirationDate'])),
|
|
60
|
+
'isEnacted': json['isEnacted'],
|
|
58
61
|
'supplementalDocs': !exists(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : json['supplementalDocs'].map(GovernanceFileFromJSON)),
|
|
59
62
|
'file': !exists(json, 'file') ? undefined : GovernanceFileFromJSON(json['file']),
|
|
60
63
|
'authorship': !exists(json, 'authorship') ? undefined : GovernanceScopeFromJSON(json['authorship']),
|
|
64
|
+
'isProjectConfigured': json['isProjectConfigured'],
|
|
61
65
|
'verificationMethod': !exists(json, 'verificationMethod') ? undefined : GovernanceTrainingVerificationFromJSON(json['verificationMethod']),
|
|
62
66
|
'isFulfilled': json['isFulfilled'],
|
|
63
67
|
'fulfillmentId': !exists(json, 'fulfillmentId') ? undefined : json['fulfillmentId'],
|
|
@@ -87,9 +91,11 @@ export function ProjectRequirementToJSON(value) {
|
|
|
87
91
|
'expirationType': GovernanceExpiryTypeToJSON(value.expirationType),
|
|
88
92
|
'expirationDaysAfterCompletion': value.expirationDaysAfterCompletion,
|
|
89
93
|
'expirationDate': value.expirationDate === undefined ? undefined : (value.expirationDate === null ? null : value.expirationDate.toISOString()),
|
|
94
|
+
'isEnacted': value.isEnacted,
|
|
90
95
|
'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFileToJSON)),
|
|
91
96
|
'file': GovernanceFileToJSON(value.file),
|
|
92
97
|
'authorship': GovernanceScopeToJSON(value.authorship),
|
|
98
|
+
'isProjectConfigured': value.isProjectConfigured,
|
|
93
99
|
'verificationMethod': GovernanceTrainingVerificationToJSON(value.verificationMethod),
|
|
94
100
|
'isFulfilled': value.isFulfilled,
|
|
95
101
|
'fulfillmentId': value.fulfillmentId,
|
|
@@ -99,6 +99,12 @@ export interface ProjectRequirement {
|
|
|
99
99
|
* @memberof ProjectRequirement
|
|
100
100
|
*/
|
|
101
101
|
expirationDate?: Date | null;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the requirement is past the enactment date
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof ProjectRequirement
|
|
106
|
+
*/
|
|
107
|
+
isEnacted: boolean;
|
|
102
108
|
/**
|
|
103
109
|
* Optional files with extra information, e.g. templates for documents, links, etc
|
|
104
110
|
* @type {Array<GovernanceFile>}
|
|
@@ -117,6 +123,12 @@ export interface ProjectRequirement {
|
|
|
117
123
|
* @memberof ProjectRequirement
|
|
118
124
|
*/
|
|
119
125
|
authorship?: GovernanceScope | null;
|
|
126
|
+
/**
|
|
127
|
+
* A requirement is project configured if it was created by the tenant but needs a file uploaded by the project
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof ProjectRequirement
|
|
130
|
+
*/
|
|
131
|
+
isProjectConfigured: boolean;
|
|
120
132
|
/**
|
|
121
133
|
*
|
|
122
134
|
* @type {GovernanceTrainingVerification}
|
|
@@ -34,6 +34,8 @@ function instanceOfProjectRequirement(value) {
|
|
|
34
34
|
isInstance = isInstance && "supplementalPath" in value;
|
|
35
35
|
isInstance = isInstance && "scope" in value;
|
|
36
36
|
isInstance = isInstance && "contacts" in value;
|
|
37
|
+
isInstance = isInstance && "isEnacted" in value;
|
|
38
|
+
isInstance = isInstance && "isProjectConfigured" in value;
|
|
37
39
|
isInstance = isInstance && "isFulfilled" in value;
|
|
38
40
|
return isInstance;
|
|
39
41
|
}
|
|
@@ -60,9 +62,11 @@ function ProjectRequirementFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
62
|
'expirationType': !(0, runtime_1.exists)(json, 'expirationType') ? undefined : (0, GovernanceExpiryType_1.GovernanceExpiryTypeFromJSON)(json['expirationType']),
|
|
61
63
|
'expirationDaysAfterCompletion': !(0, runtime_1.exists)(json, 'expirationDaysAfterCompletion') ? undefined : json['expirationDaysAfterCompletion'],
|
|
62
64
|
'expirationDate': !(0, runtime_1.exists)(json, 'expirationDate') ? undefined : (json['expirationDate'] === null ? null : new Date(json['expirationDate'])),
|
|
65
|
+
'isEnacted': json['isEnacted'],
|
|
63
66
|
'supplementalDocs': !(0, runtime_1.exists)(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : json['supplementalDocs'].map(GovernanceFile_1.GovernanceFileFromJSON)),
|
|
64
67
|
'file': !(0, runtime_1.exists)(json, 'file') ? undefined : (0, GovernanceFile_1.GovernanceFileFromJSON)(json['file']),
|
|
65
68
|
'authorship': !(0, runtime_1.exists)(json, 'authorship') ? undefined : (0, GovernanceScope_1.GovernanceScopeFromJSON)(json['authorship']),
|
|
69
|
+
'isProjectConfigured': json['isProjectConfigured'],
|
|
66
70
|
'verificationMethod': !(0, runtime_1.exists)(json, 'verificationMethod') ? undefined : (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationFromJSON)(json['verificationMethod']),
|
|
67
71
|
'isFulfilled': json['isFulfilled'],
|
|
68
72
|
'fulfillmentId': !(0, runtime_1.exists)(json, 'fulfillmentId') ? undefined : json['fulfillmentId'],
|
|
@@ -93,9 +97,11 @@ function ProjectRequirementToJSON(value) {
|
|
|
93
97
|
'expirationType': (0, GovernanceExpiryType_1.GovernanceExpiryTypeToJSON)(value.expirationType),
|
|
94
98
|
'expirationDaysAfterCompletion': value.expirationDaysAfterCompletion,
|
|
95
99
|
'expirationDate': value.expirationDate === undefined ? undefined : (value.expirationDate === null ? null : value.expirationDate.toISOString()),
|
|
100
|
+
'isEnacted': value.isEnacted,
|
|
96
101
|
'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : value.supplementalDocs.map(GovernanceFile_1.GovernanceFileToJSON)),
|
|
97
102
|
'file': (0, GovernanceFile_1.GovernanceFileToJSON)(value.file),
|
|
98
103
|
'authorship': (0, GovernanceScope_1.GovernanceScopeToJSON)(value.authorship),
|
|
104
|
+
'isProjectConfigured': value.isProjectConfigured,
|
|
99
105
|
'verificationMethod': (0, GovernanceTrainingVerification_1.GovernanceTrainingVerificationToJSON)(value.verificationMethod),
|
|
100
106
|
'isFulfilled': value.isFulfilled,
|
|
101
107
|
'fulfillmentId': value.fulfillmentId,
|