@cirrobio/api-client 0.2.11 → 0.2.13

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.11 --save
39
+ npm install @cirrobio/api-client@0.2.13 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { RepositoryType } from './RepositoryType';
12
13
  import type { SyncStatus } from './SyncStatus';
13
14
  /**
14
15
  * Used to describe the location of the process definition dependencies
@@ -34,6 +35,12 @@ export interface CustomPipelineSettings {
34
35
  * @memberof CustomPipelineSettings
35
36
  */
36
37
  folder?: string;
38
+ /**
39
+ *
40
+ * @type {RepositoryType}
41
+ * @memberof CustomPipelineSettings
42
+ */
43
+ repositoryType?: RepositoryType | null;
37
44
  /**
38
45
  * Time of last sync
39
46
  * @type {Date}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CustomPipelineSettingsToJSON = exports.CustomPipelineSettingsFromJSONTyped = exports.CustomPipelineSettingsFromJSON = exports.instanceOfCustomPipelineSettings = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var RepositoryType_1 = require("./RepositoryType");
18
19
  var SyncStatus_1 = require("./SyncStatus");
19
20
  /**
20
21
  * Check if a given object implements the CustomPipelineSettings interface.
@@ -37,6 +38,7 @@ function CustomPipelineSettingsFromJSONTyped(json, ignoreDiscriminator) {
37
38
  'repository': json['repository'],
38
39
  'branch': !(0, runtime_1.exists)(json, 'branch') ? undefined : json['branch'],
39
40
  'folder': !(0, runtime_1.exists)(json, 'folder') ? undefined : json['folder'],
41
+ 'repositoryType': !(0, runtime_1.exists)(json, 'repositoryType') ? undefined : (0, RepositoryType_1.RepositoryTypeFromJSON)(json['repositoryType']),
40
42
  'lastSync': !(0, runtime_1.exists)(json, 'lastSync') ? undefined : (json['lastSync'] === null ? null : new Date(json['lastSync'])),
41
43
  'syncStatus': !(0, runtime_1.exists)(json, 'syncStatus') ? undefined : (0, SyncStatus_1.SyncStatusFromJSON)(json['syncStatus']),
42
44
  'commitHash': !(0, runtime_1.exists)(json, 'commitHash') ? undefined : json['commitHash'],
@@ -55,6 +57,7 @@ function CustomPipelineSettingsToJSON(value) {
55
57
  'repository': value.repository,
56
58
  'branch': value.branch,
57
59
  'folder': value.folder,
60
+ 'repositoryType': (0, RepositoryType_1.RepositoryTypeToJSON)(value.repositoryType),
58
61
  'lastSync': value.lastSync === undefined ? undefined : (value.lastSync === null ? null : value.lastSync.toISOString()),
59
62
  'syncStatus': (0, SyncStatus_1.SyncStatusToJSON)(value.syncStatus),
60
63
  'commitHash': value.commitHash,
@@ -82,6 +82,12 @@ export interface ProjectSettings {
82
82
  * @memberof ProjectSettings
83
83
  */
84
84
  retentionPolicyDays?: number;
85
+ /**
86
+ * Days to keep temporary storage space (workflow executor cache)
87
+ * @type {number}
88
+ * @memberof ProjectSettings
89
+ */
90
+ temporaryStorageLifetimeDays?: number;
85
91
  /**
86
92
  * List of service connections to enable
87
93
  * @type {Array<string>}
@@ -46,6 +46,7 @@ function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
46
46
  'maxSpotVCPU': !(0, runtime_1.exists)(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
47
47
  'maxGPUVCPU': !(0, runtime_1.exists)(json, 'maxGPUVCPU') ? undefined : json['maxGPUVCPU'],
48
48
  'retentionPolicyDays': !(0, runtime_1.exists)(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
49
+ 'temporaryStorageLifetimeDays': !(0, runtime_1.exists)(json, 'temporaryStorageLifetimeDays') ? undefined : json['temporaryStorageLifetimeDays'],
49
50
  'serviceConnections': !(0, runtime_1.exists)(json, 'serviceConnections') ? undefined : json['serviceConnections'],
50
51
  'vpcId': !(0, runtime_1.exists)(json, 'vpcId') ? undefined : json['vpcId'],
51
52
  'batchSubnets': !(0, runtime_1.exists)(json, 'batchSubnets') ? undefined : json['batchSubnets'],
@@ -75,6 +76,7 @@ function ProjectSettingsToJSON(value) {
75
76
  'maxSpotVCPU': value.maxSpotVCPU,
76
77
  'maxGPUVCPU': value.maxGPUVCPU,
77
78
  'retentionPolicyDays': value.retentionPolicyDays,
79
+ 'temporaryStorageLifetimeDays': value.temporaryStorageLifetimeDays,
78
80
  'serviceConnections': value.serviceConnections,
79
81
  'vpcId': value.vpcId,
80
82
  'batchSubnets': value.batchSubnets,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { RepositoryType } from './RepositoryType';
17
+ import {
18
+ RepositoryTypeFromJSON,
19
+ RepositoryTypeFromJSONTyped,
20
+ RepositoryTypeToJSON,
21
+ } from './RepositoryType';
16
22
  import type { SyncStatus } from './SyncStatus';
17
23
  import {
18
24
  SyncStatusFromJSON,
@@ -44,6 +50,12 @@ export interface CustomPipelineSettings {
44
50
  * @memberof CustomPipelineSettings
45
51
  */
46
52
  folder?: string;
53
+ /**
54
+ *
55
+ * @type {RepositoryType}
56
+ * @memberof CustomPipelineSettings
57
+ */
58
+ repositoryType?: RepositoryType | null;
47
59
  /**
48
60
  * Time of last sync
49
61
  * @type {Date}
@@ -93,6 +105,7 @@ export function CustomPipelineSettingsFromJSONTyped(json: any, ignoreDiscriminat
93
105
  'repository': json['repository'],
94
106
  'branch': !exists(json, 'branch') ? undefined : json['branch'],
95
107
  'folder': !exists(json, 'folder') ? undefined : json['folder'],
108
+ 'repositoryType': !exists(json, 'repositoryType') ? undefined : RepositoryTypeFromJSON(json['repositoryType']),
96
109
  'lastSync': !exists(json, 'lastSync') ? undefined : (json['lastSync'] === null ? null : new Date(json['lastSync'])),
97
110
  'syncStatus': !exists(json, 'syncStatus') ? undefined : SyncStatusFromJSON(json['syncStatus']),
98
111
  'commitHash': !exists(json, 'commitHash') ? undefined : json['commitHash'],
@@ -112,6 +125,7 @@ export function CustomPipelineSettingsToJSON(value?: CustomPipelineSettings | nu
112
125
  'repository': value.repository,
113
126
  'branch': value.branch,
114
127
  'folder': value.folder,
128
+ 'repositoryType': RepositoryTypeToJSON(value.repositoryType),
115
129
  'lastSync': value.lastSync === undefined ? undefined : (value.lastSync === null ? null : value.lastSync.toISOString()),
116
130
  'syncStatus': SyncStatusToJSON(value.syncStatus),
117
131
  'commitHash': value.commitHash,
@@ -92,6 +92,12 @@ export interface ProjectSettings {
92
92
  * @memberof ProjectSettings
93
93
  */
94
94
  retentionPolicyDays?: number;
95
+ /**
96
+ * Days to keep temporary storage space (workflow executor cache)
97
+ * @type {number}
98
+ * @memberof ProjectSettings
99
+ */
100
+ temporaryStorageLifetimeDays?: number;
95
101
  /**
96
102
  * List of service connections to enable
97
103
  * @type {Array<string>}
@@ -168,6 +174,7 @@ export function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boo
168
174
  'maxSpotVCPU': !exists(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
169
175
  'maxGPUVCPU': !exists(json, 'maxGPUVCPU') ? undefined : json['maxGPUVCPU'],
170
176
  'retentionPolicyDays': !exists(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
177
+ 'temporaryStorageLifetimeDays': !exists(json, 'temporaryStorageLifetimeDays') ? undefined : json['temporaryStorageLifetimeDays'],
171
178
  'serviceConnections': !exists(json, 'serviceConnections') ? undefined : json['serviceConnections'],
172
179
  'vpcId': !exists(json, 'vpcId') ? undefined : json['vpcId'],
173
180
  'batchSubnets': !exists(json, 'batchSubnets') ? undefined : json['batchSubnets'],
@@ -198,6 +205,7 @@ export function ProjectSettingsToJSON(value?: ProjectSettings | null): any {
198
205
  'maxSpotVCPU': value.maxSpotVCPU,
199
206
  'maxGPUVCPU': value.maxGPUVCPU,
200
207
  'retentionPolicyDays': value.retentionPolicyDays,
208
+ 'temporaryStorageLifetimeDays': value.temporaryStorageLifetimeDays,
201
209
  'serviceConnections': value.serviceConnections,
202
210
  'vpcId': value.vpcId,
203
211
  'batchSubnets': value.batchSubnets,