@cirrobio/api-client 0.0.37-alpha → 0.0.38-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.
@@ -17,6 +17,7 @@ src/apis/SystemApi.ts
17
17
  src/apis/UsersApi.ts
18
18
  src/apis/index.ts
19
19
  src/index.ts
20
+ src/models/AWSCredentials.ts
20
21
  src/models/AccessType.ts
21
22
  src/models/AllowedDataType.ts
22
23
  src/models/BillingAccount.ts
@@ -71,7 +72,6 @@ src/models/ReferenceType.ts
71
72
  src/models/RepositoryType.ts
72
73
  src/models/ResourcesInfo.ts
73
74
  src/models/RunAnalysisRequest.ts
74
- src/models/S3Credentials.ts
75
75
  src/models/Sample.ts
76
76
  src/models/SampleRequest.ts
77
77
  src/models/ServiceConnection.ts
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.37-alpha --save
39
+ npm install @cirrobio/api-client@0.0.38-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { FileAccessRequest, GenerateSftpCredentialsRequest, S3Credentials, SftpCredentials } from '../models/index';
13
+ import type { AWSCredentials, FileAccessRequest, GenerateSftpCredentialsRequest, SftpCredentials } from '../models/index';
14
14
  export interface GenerateProjectFileAccessTokenRequest {
15
15
  projectId: string;
16
16
  fileAccessRequest: FileAccessRequest;
@@ -27,12 +27,12 @@ export declare class FileApi extends runtime.BaseAPI {
27
27
  * Generates credentials used for connecting via S3
28
28
  * Create project file access token
29
29
  */
30
- generateProjectFileAccessTokenRaw(requestParameters: GenerateProjectFileAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<S3Credentials>>;
30
+ generateProjectFileAccessTokenRaw(requestParameters: GenerateProjectFileAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AWSCredentials>>;
31
31
  /**
32
32
  * Generates credentials used for connecting via S3
33
33
  * Create project file access token
34
34
  */
35
- generateProjectFileAccessToken(requestParameters: GenerateProjectFileAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<S3Credentials>;
35
+ generateProjectFileAccessToken(requestParameters: GenerateProjectFileAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AWSCredentials>;
36
36
  /**
37
37
  * Generates credentials used for connecting via SFTP
38
38
  * Create project SFTP Token
@@ -112,7 +112,7 @@ var FileApi = /** @class */ (function (_super) {
112
112
  }, initOverrides)];
113
113
  case 3:
114
114
  response = _a.sent();
115
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.S3CredentialsFromJSON)(jsonValue); })];
115
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AWSCredentialsFromJSON)(jsonValue); })];
116
116
  }
117
117
  });
118
118
  });
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AWSCredentials
16
+ */
17
+ export interface AWSCredentials {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AWSCredentials
22
+ */
23
+ accessKeyId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AWSCredentials
28
+ */
29
+ secretAccessKey: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AWSCredentials
34
+ */
35
+ sessionToken: string;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof AWSCredentials
40
+ */
41
+ expiration: Date;
42
+ /**
43
+ * Region of requested resource (i.e., S3 Bucket)
44
+ * @type {string}
45
+ * @memberof AWSCredentials
46
+ */
47
+ region?: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AWSCredentials interface.
51
+ */
52
+ export declare function instanceOfAWSCredentials(value: object): boolean;
53
+ export declare function AWSCredentialsFromJSON(json: any): AWSCredentials;
54
+ export declare function AWSCredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AWSCredentials;
55
+ export declare function AWSCredentialsToJSON(value?: AWSCredentials | null): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AWSCredentialsToJSON = exports.AWSCredentialsFromJSONTyped = exports.AWSCredentialsFromJSON = exports.instanceOfAWSCredentials = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the AWSCredentials interface.
20
+ */
21
+ function instanceOfAWSCredentials(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "accessKeyId" in value;
24
+ isInstance = isInstance && "secretAccessKey" in value;
25
+ isInstance = isInstance && "sessionToken" in value;
26
+ isInstance = isInstance && "expiration" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfAWSCredentials = instanceOfAWSCredentials;
30
+ function AWSCredentialsFromJSON(json) {
31
+ return AWSCredentialsFromJSONTyped(json, false);
32
+ }
33
+ exports.AWSCredentialsFromJSON = AWSCredentialsFromJSON;
34
+ function AWSCredentialsFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'accessKeyId': json['accessKeyId'],
40
+ 'secretAccessKey': json['secretAccessKey'],
41
+ 'sessionToken': json['sessionToken'],
42
+ 'expiration': (new Date(json['expiration'])),
43
+ 'region': !(0, runtime_1.exists)(json, 'region') ? undefined : json['region'],
44
+ };
45
+ }
46
+ exports.AWSCredentialsFromJSONTyped = AWSCredentialsFromJSONTyped;
47
+ function AWSCredentialsToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'accessKeyId': value.accessKeyId,
56
+ 'secretAccessKey': value.secretAccessKey,
57
+ 'sessionToken': value.sessionToken,
58
+ 'expiration': (value.expiration.toISOString()),
59
+ 'region': value.region,
60
+ };
61
+ }
62
+ exports.AWSCredentialsToJSON = AWSCredentialsToJSON;
@@ -1,3 +1,4 @@
1
+ export * from './AWSCredentials';
1
2
  export * from './AccessType';
2
3
  export * from './AllowedDataType';
3
4
  export * from './BillingAccount';
@@ -52,7 +53,6 @@ export * from './ReferenceType';
52
53
  export * from './RepositoryType';
53
54
  export * from './ResourcesInfo';
54
55
  export * from './RunAnalysisRequest';
55
- export * from './S3Credentials';
56
56
  export * from './Sample';
57
57
  export * from './SampleRequest';
58
58
  export * from './ServiceConnection';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./AWSCredentials"), exports);
19
20
  __exportStar(require("./AccessType"), exports);
20
21
  __exportStar(require("./AllowedDataType"), exports);
21
22
  __exportStar(require("./BillingAccount"), exports);
@@ -70,7 +71,6 @@ __exportStar(require("./ReferenceType"), exports);
70
71
  __exportStar(require("./RepositoryType"), exports);
71
72
  __exportStar(require("./ResourcesInfo"), exports);
72
73
  __exportStar(require("./RunAnalysisRequest"), exports);
73
- __exportStar(require("./S3Credentials"), exports);
74
74
  __exportStar(require("./Sample"), exports);
75
75
  __exportStar(require("./SampleRequest"), exports);
76
76
  __exportStar(require("./ServiceConnection"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.0.37-alpha",
3
+ "version": "0.0.38-alpha",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -15,18 +15,18 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ AWSCredentials,
18
19
  FileAccessRequest,
19
20
  GenerateSftpCredentialsRequest,
20
- S3Credentials,
21
21
  SftpCredentials,
22
22
  } from '../models/index';
23
23
  import {
24
+ AWSCredentialsFromJSON,
25
+ AWSCredentialsToJSON,
24
26
  FileAccessRequestFromJSON,
25
27
  FileAccessRequestToJSON,
26
28
  GenerateSftpCredentialsRequestFromJSON,
27
29
  GenerateSftpCredentialsRequestToJSON,
28
- S3CredentialsFromJSON,
29
- S3CredentialsToJSON,
30
30
  SftpCredentialsFromJSON,
31
31
  SftpCredentialsToJSON,
32
32
  } from '../models/index';
@@ -50,7 +50,7 @@ export class FileApi extends runtime.BaseAPI {
50
50
  * Generates credentials used for connecting via S3
51
51
  * Create project file access token
52
52
  */
53
- async generateProjectFileAccessTokenRaw(requestParameters: GenerateProjectFileAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<S3Credentials>> {
53
+ async generateProjectFileAccessTokenRaw(requestParameters: GenerateProjectFileAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AWSCredentials>> {
54
54
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
55
55
  throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling generateProjectFileAccessToken.');
56
56
  }
@@ -81,14 +81,14 @@ export class FileApi extends runtime.BaseAPI {
81
81
  body: FileAccessRequestToJSON(requestParameters.fileAccessRequest),
82
82
  }, initOverrides);
83
83
 
84
- return new runtime.JSONApiResponse(response, (jsonValue) => S3CredentialsFromJSON(jsonValue));
84
+ return new runtime.JSONApiResponse(response, (jsonValue) => AWSCredentialsFromJSON(jsonValue));
85
85
  }
86
86
 
87
87
  /**
88
88
  * Generates credentials used for connecting via S3
89
89
  * Create project file access token
90
90
  */
91
- async generateProjectFileAccessToken(requestParameters: GenerateProjectFileAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<S3Credentials> {
91
+ async generateProjectFileAccessToken(requestParameters: GenerateProjectFileAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AWSCredentials> {
92
92
  const response = await this.generateProjectFileAccessTokenRaw(requestParameters, initOverrides);
93
93
  return await response.value();
94
94
  }
@@ -16,45 +16,45 @@ import { exists, mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface S3Credentials
19
+ * @interface AWSCredentials
20
20
  */
21
- export interface S3Credentials {
21
+ export interface AWSCredentials {
22
22
  /**
23
23
  *
24
24
  * @type {string}
25
- * @memberof S3Credentials
25
+ * @memberof AWSCredentials
26
26
  */
27
27
  accessKeyId: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
- * @memberof S3Credentials
31
+ * @memberof AWSCredentials
32
32
  */
33
33
  secretAccessKey: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
- * @memberof S3Credentials
37
+ * @memberof AWSCredentials
38
38
  */
39
39
  sessionToken: string;
40
40
  /**
41
41
  *
42
42
  * @type {Date}
43
- * @memberof S3Credentials
43
+ * @memberof AWSCredentials
44
44
  */
45
45
  expiration: Date;
46
46
  /**
47
- * Region of S3 Bucket
47
+ * Region of requested resource (i.e., S3 Bucket)
48
48
  * @type {string}
49
- * @memberof S3Credentials
49
+ * @memberof AWSCredentials
50
50
  */
51
51
  region?: string;
52
52
  }
53
53
 
54
54
  /**
55
- * Check if a given object implements the S3Credentials interface.
55
+ * Check if a given object implements the AWSCredentials interface.
56
56
  */
57
- export function instanceOfS3Credentials(value: object): boolean {
57
+ export function instanceOfAWSCredentials(value: object): boolean {
58
58
  let isInstance = true;
59
59
  isInstance = isInstance && "accessKeyId" in value;
60
60
  isInstance = isInstance && "secretAccessKey" in value;
@@ -64,11 +64,11 @@ export function instanceOfS3Credentials(value: object): boolean {
64
64
  return isInstance;
65
65
  }
66
66
 
67
- export function S3CredentialsFromJSON(json: any): S3Credentials {
68
- return S3CredentialsFromJSONTyped(json, false);
67
+ export function AWSCredentialsFromJSON(json: any): AWSCredentials {
68
+ return AWSCredentialsFromJSONTyped(json, false);
69
69
  }
70
70
 
71
- export function S3CredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): S3Credentials {
71
+ export function AWSCredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AWSCredentials {
72
72
  if ((json === undefined) || (json === null)) {
73
73
  return json;
74
74
  }
@@ -82,7 +82,7 @@ export function S3CredentialsFromJSONTyped(json: any, ignoreDiscriminator: boole
82
82
  };
83
83
  }
84
84
 
85
- export function S3CredentialsToJSON(value?: S3Credentials | null): any {
85
+ export function AWSCredentialsToJSON(value?: AWSCredentials | null): any {
86
86
  if (value === undefined) {
87
87
  return undefined;
88
88
  }
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './AWSCredentials';
3
4
  export * from './AccessType';
4
5
  export * from './AllowedDataType';
5
6
  export * from './BillingAccount';
@@ -54,7 +55,6 @@ export * from './ReferenceType';
54
55
  export * from './RepositoryType';
55
56
  export * from './ResourcesInfo';
56
57
  export * from './RunAnalysisRequest';
57
- export * from './S3Credentials';
58
58
  export * from './Sample';
59
59
  export * from './SampleRequest';
60
60
  export * from './ServiceConnection';