@cirrobio/api-client 0.0.28-alpha → 0.0.30-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.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +3 -3
  2. package/README.md +1 -1
  3. package/dist/apis/ProcessesApi.d.ts +5 -5
  4. package/dist/apis/ProcessesApi.js +7 -7
  5. package/dist/models/CustomPipelineSettings.d.ts +13 -12
  6. package/dist/models/CustomPipelineSettings.js +9 -12
  7. package/dist/models/ErrorMessage.d.ts +31 -0
  8. package/dist/models/ErrorMessage.js +50 -0
  9. package/dist/models/Executor.d.ts +1 -1
  10. package/dist/models/Executor.js +1 -1
  11. package/dist/models/PipelineCode.d.ts +4 -4
  12. package/dist/models/PipelineCode.js +6 -4
  13. package/dist/models/PortalErrorResponse.d.ts +50 -0
  14. package/dist/models/PortalErrorResponse.js +60 -0
  15. package/dist/models/Process.d.ts +2 -2
  16. package/dist/models/ProcessDetail.d.ts +13 -6
  17. package/dist/models/ProcessDetail.js +6 -6
  18. package/dist/models/ProcessDetailAllOfPipelineCode.d.ts +50 -0
  19. package/dist/models/ProcessDetailAllOfPipelineCode.js +58 -0
  20. package/dist/models/ProjectRequest.d.ts +2 -2
  21. package/dist/models/ProjectRequest.js +4 -5
  22. package/dist/models/SyncStatus.d.ts +23 -0
  23. package/dist/models/SyncStatus.js +38 -0
  24. package/dist/models/ValidateFileRequirementsRequest.d.ts +4 -4
  25. package/dist/models/ValidateFileRequirementsRequest.js +3 -3
  26. package/dist/models/index.d.ts +3 -3
  27. package/dist/models/index.js +3 -3
  28. package/package.json +1 -1
  29. package/src/apis/ProcessesApi.ts +20 -17
  30. package/src/models/CustomPipelineSettings.ts +26 -24
  31. package/src/models/{Region.ts → ErrorMessage.ts} +14 -13
  32. package/src/models/Executor.ts +1 -1
  33. package/src/models/PipelineCode.ts +10 -7
  34. package/src/models/PortalErrorResponse.ts +100 -0
  35. package/src/models/Process.ts +2 -2
  36. package/src/models/ProcessDetail.ts +23 -12
  37. package/src/models/ProjectRequest.ts +5 -7
  38. package/src/models/{DatasetType.ts → SyncStatus.ts} +9 -9
  39. package/src/models/ValidateFileRequirementsRequest.ts +7 -7
  40. package/src/models/index.ts +3 -3
  41. package/src/models/CreateDashboardRequest.ts +0 -65
  42. package/src/models/CustomPipelineSettingsDto1.ts +0 -111
  43. package/src/models/CustomProcessRequest.ts +0 -175
  44. package/src/models/CustomProcessRequestPipelineCode.ts +0 -97
  45. package/src/models/RegisterDatasetRequest.ts +0 -92
  46. package/src/models/RegisterPublicDataRequest.ts +0 -83
@@ -21,7 +21,7 @@ import {
21
21
  } from './RepositoryType';
22
22
 
23
23
  /**
24
- * Used to describe the pipeline analysis code
24
+ * Used to describe the pipeline analysis code, not required for ingest processes
25
25
  * @export
26
26
  * @interface PipelineCode
27
27
  */
@@ -37,19 +37,19 @@ export interface PipelineCode {
37
37
  * @type {string}
38
38
  * @memberof PipelineCode
39
39
  */
40
- version?: string;
40
+ version: string;
41
41
  /**
42
42
  *
43
43
  * @type {RepositoryType}
44
44
  * @memberof PipelineCode
45
45
  */
46
- repositoryType?: RepositoryType;
46
+ repositoryType: RepositoryType;
47
47
  /**
48
48
  * Main script for running the pipeline
49
49
  * @type {string}
50
50
  * @memberof PipelineCode
51
51
  */
52
- entryPoint?: string;
52
+ entryPoint: string;
53
53
  }
54
54
 
55
55
  /**
@@ -58,6 +58,9 @@ export interface PipelineCode {
58
58
  export function instanceOfPipelineCode(value: object): boolean {
59
59
  let isInstance = true;
60
60
  isInstance = isInstance && "repositoryPath" in value;
61
+ isInstance = isInstance && "version" in value;
62
+ isInstance = isInstance && "repositoryType" in value;
63
+ isInstance = isInstance && "entryPoint" in value;
61
64
 
62
65
  return isInstance;
63
66
  }
@@ -73,9 +76,9 @@ export function PipelineCodeFromJSONTyped(json: any, ignoreDiscriminator: boolea
73
76
  return {
74
77
 
75
78
  'repositoryPath': json['repositoryPath'],
76
- 'version': !exists(json, 'version') ? undefined : json['version'],
77
- 'repositoryType': !exists(json, 'repositoryType') ? undefined : RepositoryTypeFromJSON(json['repositoryType']),
78
- 'entryPoint': !exists(json, 'entryPoint') ? undefined : json['entryPoint'],
79
+ 'version': json['version'],
80
+ 'repositoryType': RepositoryTypeFromJSON(json['repositoryType']),
81
+ 'entryPoint': json['entryPoint'],
79
82
  };
80
83
  }
81
84
 
@@ -0,0 +1,100 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { ErrorMessage } from './ErrorMessage';
17
+ import {
18
+ ErrorMessageFromJSON,
19
+ ErrorMessageFromJSONTyped,
20
+ ErrorMessageToJSON,
21
+ } from './ErrorMessage';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface PortalErrorResponse
27
+ */
28
+ export interface PortalErrorResponse {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof PortalErrorResponse
33
+ */
34
+ statusCode: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof PortalErrorResponse
39
+ */
40
+ errorCode: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof PortalErrorResponse
45
+ */
46
+ errorDetail: string;
47
+ /**
48
+ *
49
+ * @type {Array<ErrorMessage>}
50
+ * @memberof PortalErrorResponse
51
+ */
52
+ errors: Array<ErrorMessage>;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the PortalErrorResponse interface.
57
+ */
58
+ export function instanceOfPortalErrorResponse(value: object): boolean {
59
+ let isInstance = true;
60
+ isInstance = isInstance && "statusCode" in value;
61
+ isInstance = isInstance && "errorCode" in value;
62
+ isInstance = isInstance && "errorDetail" in value;
63
+ isInstance = isInstance && "errors" in value;
64
+
65
+ return isInstance;
66
+ }
67
+
68
+ export function PortalErrorResponseFromJSON(json: any): PortalErrorResponse {
69
+ return PortalErrorResponseFromJSONTyped(json, false);
70
+ }
71
+
72
+ export function PortalErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalErrorResponse {
73
+ if ((json === undefined) || (json === null)) {
74
+ return json;
75
+ }
76
+ return {
77
+
78
+ 'statusCode': json['statusCode'],
79
+ 'errorCode': json['errorCode'],
80
+ 'errorDetail': json['errorDetail'],
81
+ 'errors': ((json['errors'] as Array<any>).map(ErrorMessageFromJSON)),
82
+ };
83
+ }
84
+
85
+ export function PortalErrorResponseToJSON(value?: PortalErrorResponse | null): any {
86
+ if (value === undefined) {
87
+ return undefined;
88
+ }
89
+ if (value === null) {
90
+ return null;
91
+ }
92
+ return {
93
+
94
+ 'statusCode': value.statusCode,
95
+ 'errorCode': value.errorCode,
96
+ 'errorDetail': value.errorDetail,
97
+ 'errors': ((value.errors as Array<any>).map(ErrorMessageToJSON)),
98
+ };
99
+ }
100
+
@@ -33,7 +33,7 @@ export interface Process {
33
33
  */
34
34
  id: string;
35
35
  /**
36
- *
36
+ * Friendly name for the process
37
37
  * @type {string}
38
38
  * @memberof Process
39
39
  */
@@ -69,7 +69,7 @@ export interface Process {
69
69
  */
70
70
  childProcessIds?: Array<string>;
71
71
  /**
72
- * IDs of pipelines that can be ran upstream
72
+ * IDs of pipelines that can run this pipeline
73
73
  * @type {Array<string>}
74
74
  * @memberof Process
75
75
  */
@@ -25,6 +25,12 @@ import {
25
25
  ExecutorFromJSONTyped,
26
26
  ExecutorToJSON,
27
27
  } from './Executor';
28
+ import type { PipelineCode } from './PipelineCode';
29
+ import {
30
+ PipelineCodeFromJSON,
31
+ PipelineCodeFromJSONTyped,
32
+ PipelineCodeToJSON,
33
+ } from './PipelineCode';
28
34
 
29
35
  /**
30
36
  *
@@ -61,13 +67,13 @@ export interface ProcessDetail {
61
67
  * @type {string}
62
68
  * @memberof ProcessDetail
63
69
  */
64
- documentationUrl: string;
70
+ documentationUrl?: string | null;
65
71
  /**
66
- * Description of the files to be uploaded (optional)
72
+ *
67
73
  * @type {string}
68
74
  * @memberof ProcessDetail
69
75
  */
70
- fileRequirementsMessage?: string;
76
+ fileRequirementsMessage?: string | null;
71
77
  /**
72
78
  *
73
79
  * @type {Array<string>}
@@ -85,13 +91,19 @@ export interface ProcessDetail {
85
91
  * @type {string}
86
92
  * @memberof ProcessDetail
87
93
  */
88
- owner: string;
94
+ owner?: string;
89
95
  /**
90
96
  *
91
97
  * @type {Array<string>}
92
98
  * @memberof ProcessDetail
93
99
  */
94
100
  linkedProjectIds: Array<string>;
101
+ /**
102
+ *
103
+ * @type {PipelineCode}
104
+ * @memberof ProcessDetail
105
+ */
106
+ pipelineCode?: PipelineCode | null;
95
107
  /**
96
108
  *
97
109
  * @type {CustomPipelineSettings}
@@ -99,11 +111,11 @@ export interface ProcessDetail {
99
111
  */
100
112
  customSettings: CustomPipelineSettings;
101
113
  /**
102
- *
114
+ * Whether the process is marked for removal
103
115
  * @type {boolean}
104
116
  * @memberof ProcessDetail
105
117
  */
106
- isArchived: boolean;
118
+ isArchived?: boolean;
107
119
  }
108
120
 
109
121
  /**
@@ -115,13 +127,10 @@ export function instanceOfProcessDetail(value: object): boolean {
115
127
  isInstance = isInstance && "name" in value;
116
128
  isInstance = isInstance && "description" in value;
117
129
  isInstance = isInstance && "executor" in value;
118
- isInstance = isInstance && "documentationUrl" in value;
119
130
  isInstance = isInstance && "childProcessIds" in value;
120
131
  isInstance = isInstance && "parentProcessIds" in value;
121
- isInstance = isInstance && "owner" in value;
122
132
  isInstance = isInstance && "linkedProjectIds" in value;
123
133
  isInstance = isInstance && "customSettings" in value;
124
- isInstance = isInstance && "isArchived" in value;
125
134
 
126
135
  return isInstance;
127
136
  }
@@ -140,14 +149,15 @@ export function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
140
149
  'name': json['name'],
141
150
  'description': json['description'],
142
151
  'executor': ExecutorFromJSON(json['executor']),
143
- 'documentationUrl': json['documentationUrl'],
152
+ 'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
144
153
  'fileRequirementsMessage': !exists(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
145
154
  'childProcessIds': json['childProcessIds'],
146
155
  'parentProcessIds': json['parentProcessIds'],
147
- 'owner': json['owner'],
156
+ 'owner': !exists(json, 'owner') ? undefined : json['owner'],
148
157
  'linkedProjectIds': json['linkedProjectIds'],
158
+ 'pipelineCode': !exists(json, 'pipelineCode') ? undefined : PipelineCodeFromJSON(json['pipelineCode']),
149
159
  'customSettings': CustomPipelineSettingsFromJSON(json['customSettings']),
150
- 'isArchived': json['isArchived'],
160
+ 'isArchived': !exists(json, 'isArchived') ? undefined : json['isArchived'],
151
161
  };
152
162
  }
153
163
 
@@ -170,6 +180,7 @@ export function ProcessDetailToJSON(value?: ProcessDetail | null): any {
170
180
  'parentProcessIds': value.parentProcessIds,
171
181
  'owner': value.owner,
172
182
  'linkedProjectIds': value.linkedProjectIds,
183
+ 'pipelineCode': PipelineCodeToJSON(value.pipelineCode),
173
184
  'customSettings': CustomPipelineSettingsToJSON(value.customSettings),
174
185
  'isArchived': value.isArchived,
175
186
  };
@@ -79,13 +79,13 @@ export interface ProjectRequest {
79
79
  * @type {CloudAccount}
80
80
  * @memberof ProjectRequest
81
81
  */
82
- account: CloudAccount | null;
82
+ account?: CloudAccount | null;
83
83
  /**
84
84
  *
85
85
  * @type {Array<Tag>}
86
86
  * @memberof ProjectRequest
87
87
  */
88
- tags: Array<Tag> | null;
88
+ tags?: Array<Tag> | null;
89
89
  }
90
90
 
91
91
  /**
@@ -98,8 +98,6 @@ export function instanceOfProjectRequest(value: object): boolean {
98
98
  isInstance = isInstance && "billingAccountId" in value;
99
99
  isInstance = isInstance && "settings" in value;
100
100
  isInstance = isInstance && "contacts" in value;
101
- isInstance = isInstance && "account" in value;
102
- isInstance = isInstance && "tags" in value;
103
101
 
104
102
  return isInstance;
105
103
  }
@@ -119,8 +117,8 @@ export function ProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
119
117
  'billingAccountId': json['billingAccountId'],
120
118
  'settings': ProjectSettingsFromJSON(json['settings']),
121
119
  'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
122
- 'account': CloudAccountFromJSON(json['account']),
123
- 'tags': (json['tags'] === null ? null : (json['tags'] as Array<any>).map(TagFromJSON)),
120
+ 'account': !exists(json, 'account') ? undefined : CloudAccountFromJSON(json['account']),
121
+ 'tags': !exists(json, 'tags') ? undefined : (json['tags'] === null ? null : (json['tags'] as Array<any>).map(TagFromJSON)),
124
122
  };
125
123
  }
126
124
 
@@ -139,7 +137,7 @@ export function ProjectRequestToJSON(value?: ProjectRequest | null): any {
139
137
  'settings': ProjectSettingsToJSON(value.settings),
140
138
  'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
141
139
  'account': CloudAccountToJSON(value.account),
142
- 'tags': (value.tags === null ? null : (value.tags as Array<any>).map(TagToJSON)),
140
+ 'tags': value.tags === undefined ? undefined : (value.tags === null ? null : (value.tags as Array<any>).map(TagToJSON)),
143
141
  };
144
142
  }
145
143
 
@@ -13,25 +13,25 @@
13
13
  */
14
14
 
15
15
  /**
16
- *
16
+ * Status of last sync
17
17
  * @export
18
18
  * @enum {string}
19
19
  */
20
- export enum DatasetType {
21
- Upload = 'UPLOAD',
22
- Public = 'PUBLIC'
20
+ export enum SyncStatus {
21
+ Successful = 'SUCCESSFUL',
22
+ Failed = 'FAILED'
23
23
  }
24
24
 
25
25
 
26
- export function DatasetTypeFromJSON(json: any): DatasetType {
27
- return DatasetTypeFromJSONTyped(json, false);
26
+ export function SyncStatusFromJSON(json: any): SyncStatus {
27
+ return SyncStatusFromJSONTyped(json, false);
28
28
  }
29
29
 
30
- export function DatasetTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatasetType {
31
- return json as DatasetType;
30
+ export function SyncStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncStatus {
31
+ return json as SyncStatus;
32
32
  }
33
33
 
34
- export function DatasetTypeToJSON(value?: DatasetType | null): any {
34
+ export function SyncStatusToJSON(value?: SyncStatus | null): any {
35
35
  return value as any;
36
36
  }
37
37
 
@@ -21,16 +21,16 @@ import { exists, mapValues } from '../runtime';
21
21
  export interface ValidateFileRequirementsRequest {
22
22
  /**
23
23
  *
24
- * @type {string}
24
+ * @type {Array<string>}
25
25
  * @memberof ValidateFileRequirementsRequest
26
26
  */
27
- sampleSheet: string;
27
+ fileNames: Array<string>;
28
28
  /**
29
29
  *
30
- * @type {Array<string>}
30
+ * @type {string}
31
31
  * @memberof ValidateFileRequirementsRequest
32
32
  */
33
- fileNames: Array<string>;
33
+ sampleSheet: string;
34
34
  }
35
35
 
36
36
  /**
@@ -38,8 +38,8 @@ export interface ValidateFileRequirementsRequest {
38
38
  */
39
39
  export function instanceOfValidateFileRequirementsRequest(value: object): boolean {
40
40
  let isInstance = true;
41
- isInstance = isInstance && "sampleSheet" in value;
42
41
  isInstance = isInstance && "fileNames" in value;
42
+ isInstance = isInstance && "sampleSheet" in value;
43
43
 
44
44
  return isInstance;
45
45
  }
@@ -54,8 +54,8 @@ export function ValidateFileRequirementsRequestFromJSONTyped(json: any, ignoreDi
54
54
  }
55
55
  return {
56
56
 
57
- 'sampleSheet': json['sampleSheet'],
58
57
  'fileNames': json['fileNames'],
58
+ 'sampleSheet': json['sampleSheet'],
59
59
  };
60
60
  }
61
61
 
@@ -68,8 +68,8 @@ export function ValidateFileRequirementsRequestToJSON(value?: ValidateFileRequir
68
68
  }
69
69
  return {
70
70
 
71
- 'sampleSheet': value.sampleSheet,
72
71
  'fileNames': value.fileNames,
72
+ 'sampleSheet': value.sampleSheet,
73
73
  };
74
74
  }
75
75
 
@@ -10,9 +10,6 @@ export * from './Contact';
10
10
  export * from './CreateNotebookInstanceRequest';
11
11
  export * from './CreateResponse';
12
12
  export * from './CustomPipelineSettings';
13
- export * from './CustomPipelineSettingsDto1';
14
- export * from './CustomProcessRequest';
15
- export * from './CustomProcessRequestPipelineCode';
16
13
  export * from './CustomerType';
17
14
  export * from './Dashboard';
18
15
  export * from './DashboardRequest';
@@ -21,6 +18,7 @@ export * from './DatasetAssetsManifest';
21
18
  export * from './DatasetDetail';
22
19
  export * from './DatasetFile';
23
20
  export * from './DatasetViz';
21
+ export * from './ErrorMessage';
24
22
  export * from './Executor';
25
23
  export * from './FileNamePattern';
26
24
  export * from './FileRequirements';
@@ -38,6 +36,7 @@ export * from './OpenNotebookInstanceResponse';
38
36
  export * from './PaginatedResponseDatasetListDto';
39
37
  export * from './PaginatedResponseSampleDto';
40
38
  export * from './PipelineCode';
39
+ export * from './PortalErrorResponse';
41
40
  export * from './Process';
42
41
  export * from './ProcessDetail';
43
42
  export * from './Project';
@@ -59,6 +58,7 @@ export * from './SetUserProjectRoleRequest';
59
58
  export * from './SftpCredentials';
60
59
  export * from './Status';
61
60
  export * from './StopExecutionResponse';
61
+ export * from './SyncStatus';
62
62
  export * from './SystemInfoResponse';
63
63
  export * from './Tag';
64
64
  export * from './Task';
@@ -1,65 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Cirro Data
5
- * Cirro Data Platform service API
6
- *
7
- * The version of the OpenAPI document: latest
8
- * Contact: support@cirro.bio
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CreateDashboardRequest
20
- */
21
- export interface CreateDashboardRequest {
22
- /**
23
- *
24
- * @type {object}
25
- * @memberof CreateDashboardRequest
26
- */
27
- dashboardRequest?: object;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the CreateDashboardRequest interface.
32
- */
33
- export function instanceOfCreateDashboardRequest(value: object): boolean {
34
- let isInstance = true;
35
-
36
- return isInstance;
37
- }
38
-
39
- export function CreateDashboardRequestFromJSON(json: any): CreateDashboardRequest {
40
- return CreateDashboardRequestFromJSONTyped(json, false);
41
- }
42
-
43
- export function CreateDashboardRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDashboardRequest {
44
- if ((json === undefined) || (json === null)) {
45
- return json;
46
- }
47
- return {
48
-
49
- 'dashboardRequest': !exists(json, 'dashboardRequest') ? undefined : json['dashboardRequest'],
50
- };
51
- }
52
-
53
- export function CreateDashboardRequestToJSON(value?: CreateDashboardRequest | null): any {
54
- if (value === undefined) {
55
- return undefined;
56
- }
57
- if (value === null) {
58
- return null;
59
- }
60
- return {
61
-
62
- 'dashboardRequest': value.dashboardRequest,
63
- };
64
- }
65
-
@@ -1,111 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Cirro Data
5
- * Cirro Data Platform service API
6
- *
7
- * The version of the OpenAPI document: latest
8
- * Contact: support@cirro.bio
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface CustomPipelineSettingsDto1
20
- */
21
- export interface CustomPipelineSettingsDto1 {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof CustomPipelineSettingsDto1
26
- */
27
- repository: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof CustomPipelineSettingsDto1
32
- */
33
- branch: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof CustomPipelineSettingsDto1
38
- */
39
- folder: string;
40
- /**
41
- *
42
- * @type {Date}
43
- * @memberof CustomPipelineSettingsDto1
44
- */
45
- lastSync: Date;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof CustomPipelineSettingsDto1
50
- */
51
- syncStatus: string;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof CustomPipelineSettingsDto1
56
- */
57
- commitHash: string;
58
- }
59
-
60
- /**
61
- * Check if a given object implements the CustomPipelineSettingsDto1 interface.
62
- */
63
- export function instanceOfCustomPipelineSettingsDto1(value: object): boolean {
64
- let isInstance = true;
65
- isInstance = isInstance && "repository" in value;
66
- isInstance = isInstance && "branch" in value;
67
- isInstance = isInstance && "folder" in value;
68
- isInstance = isInstance && "lastSync" in value;
69
- isInstance = isInstance && "syncStatus" in value;
70
- isInstance = isInstance && "commitHash" in value;
71
-
72
- return isInstance;
73
- }
74
-
75
- export function CustomPipelineSettingsDto1FromJSON(json: any): CustomPipelineSettingsDto1 {
76
- return CustomPipelineSettingsDto1FromJSONTyped(json, false);
77
- }
78
-
79
- export function CustomPipelineSettingsDto1FromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomPipelineSettingsDto1 {
80
- if ((json === undefined) || (json === null)) {
81
- return json;
82
- }
83
- return {
84
-
85
- 'repository': json['repository'],
86
- 'branch': json['branch'],
87
- 'folder': json['folder'],
88
- 'lastSync': (new Date(json['lastSync'])),
89
- 'syncStatus': json['syncStatus'],
90
- 'commitHash': json['commitHash'],
91
- };
92
- }
93
-
94
- export function CustomPipelineSettingsDto1ToJSON(value?: CustomPipelineSettingsDto1 | null): any {
95
- if (value === undefined) {
96
- return undefined;
97
- }
98
- if (value === null) {
99
- return null;
100
- }
101
- return {
102
-
103
- 'repository': value.repository,
104
- 'branch': value.branch,
105
- 'folder': value.folder,
106
- 'lastSync': (value.lastSync.toISOString()),
107
- 'syncStatus': value.syncStatus,
108
- 'commitHash': value.commitHash,
109
- };
110
- }
111
-