@cirrobio/api-client 0.0.24-alpha → 0.0.26-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 (45) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +1 -1
  3. package/dist/apis/FileApi.d.ts +45 -0
  4. package/dist/apis/FileApi.js +195 -0
  5. package/dist/apis/ProcessesApi.d.ts +15 -1
  6. package/dist/apis/ProcessesApi.js +60 -0
  7. package/dist/apis/UsersApi.d.ts +14 -1
  8. package/dist/apis/UsersApi.js +57 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AllowedDataType.d.ts +44 -0
  12. package/dist/models/AllowedDataType.js +57 -0
  13. package/dist/models/FileNamePattern.d.ts +43 -0
  14. package/dist/models/FileNamePattern.js +56 -0
  15. package/dist/models/GenerateSftpCredentialsRequest.d.ts +31 -0
  16. package/dist/models/GenerateSftpCredentialsRequest.js +50 -0
  17. package/dist/models/InviteUserRequest.d.ts +43 -0
  18. package/dist/models/InviteUserRequest.js +56 -0
  19. package/dist/models/InviteUserResponse.d.ts +31 -0
  20. package/dist/models/InviteUserResponse.js +50 -0
  21. package/dist/models/S3Credentials.d.ts +55 -0
  22. package/dist/models/S3Credentials.js +62 -0
  23. package/dist/models/SftpCredentials.d.ts +49 -0
  24. package/dist/models/SftpCredentials.js +59 -0
  25. package/dist/models/ValidateDataInputsRequest.d.ts +37 -0
  26. package/dist/models/ValidateDataInputsRequest.js +53 -0
  27. package/dist/models/ValidateDataInputsResponse.d.ts +44 -0
  28. package/dist/models/ValidateDataInputsResponse.js +57 -0
  29. package/dist/models/index.d.ts +9 -0
  30. package/dist/models/index.js +9 -0
  31. package/package.json +1 -1
  32. package/src/apis/FileApi.ts +132 -0
  33. package/src/apis/ProcessesApi.ts +58 -0
  34. package/src/apis/UsersApi.ts +53 -0
  35. package/src/apis/index.ts +1 -0
  36. package/src/models/AllowedDataType.ts +91 -0
  37. package/src/models/FileNamePattern.ts +84 -0
  38. package/src/models/GenerateSftpCredentialsRequest.ts +66 -0
  39. package/src/models/InviteUserRequest.ts +84 -0
  40. package/src/models/InviteUserResponse.ts +66 -0
  41. package/src/models/S3Credentials.ts +102 -0
  42. package/src/models/SftpCredentials.ts +93 -0
  43. package/src/models/ValidateDataInputsRequest.ts +75 -0
  44. package/src/models/ValidateDataInputsResponse.ts +91 -0
  45. package/src/models/index.ts +9 -0
@@ -0,0 +1,84 @@
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 InviteUserRequest
20
+ */
21
+ export interface InviteUserRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof InviteUserRequest
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof InviteUserRequest
32
+ */
33
+ organization: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof InviteUserRequest
38
+ */
39
+ email: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the InviteUserRequest interface.
44
+ */
45
+ export function instanceOfInviteUserRequest(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "name" in value;
48
+ isInstance = isInstance && "organization" in value;
49
+ isInstance = isInstance && "email" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
54
+ export function InviteUserRequestFromJSON(json: any): InviteUserRequest {
55
+ return InviteUserRequestFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function InviteUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteUserRequest {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'name': json['name'],
65
+ 'organization': json['organization'],
66
+ 'email': json['email'],
67
+ };
68
+ }
69
+
70
+ export function InviteUserRequestToJSON(value?: InviteUserRequest | null): any {
71
+ if (value === undefined) {
72
+ return undefined;
73
+ }
74
+ if (value === null) {
75
+ return null;
76
+ }
77
+ return {
78
+
79
+ 'name': value.name,
80
+ 'organization': value.organization,
81
+ 'email': value.email,
82
+ };
83
+ }
84
+
@@ -0,0 +1,66 @@
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 InviteUserResponse
20
+ */
21
+ export interface InviteUserResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof InviteUserResponse
26
+ */
27
+ message: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the InviteUserResponse interface.
32
+ */
33
+ export function instanceOfInviteUserResponse(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "message" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function InviteUserResponseFromJSON(json: any): InviteUserResponse {
41
+ return InviteUserResponseFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function InviteUserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InviteUserResponse {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'message': json['message'],
51
+ };
52
+ }
53
+
54
+ export function InviteUserResponseToJSON(value?: InviteUserResponse | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'message': value.message,
64
+ };
65
+ }
66
+
@@ -0,0 +1,102 @@
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 S3Credentials
20
+ */
21
+ export interface S3Credentials {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof S3Credentials
26
+ */
27
+ accessKeyId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof S3Credentials
32
+ */
33
+ expiration: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof S3Credentials
38
+ */
39
+ secretAccessKey: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof S3Credentials
44
+ */
45
+ sessionToken: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof S3Credentials
50
+ */
51
+ region: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the S3Credentials interface.
56
+ */
57
+ export function instanceOfS3Credentials(value: object): boolean {
58
+ let isInstance = true;
59
+ isInstance = isInstance && "accessKeyId" in value;
60
+ isInstance = isInstance && "expiration" in value;
61
+ isInstance = isInstance && "secretAccessKey" in value;
62
+ isInstance = isInstance && "sessionToken" in value;
63
+ isInstance = isInstance && "region" in value;
64
+
65
+ return isInstance;
66
+ }
67
+
68
+ export function S3CredentialsFromJSON(json: any): S3Credentials {
69
+ return S3CredentialsFromJSONTyped(json, false);
70
+ }
71
+
72
+ export function S3CredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): S3Credentials {
73
+ if ((json === undefined) || (json === null)) {
74
+ return json;
75
+ }
76
+ return {
77
+
78
+ 'accessKeyId': json['accessKeyId'],
79
+ 'expiration': json['expiration'],
80
+ 'secretAccessKey': json['secretAccessKey'],
81
+ 'sessionToken': json['sessionToken'],
82
+ 'region': json['region'],
83
+ };
84
+ }
85
+
86
+ export function S3CredentialsToJSON(value?: S3Credentials | null): any {
87
+ if (value === undefined) {
88
+ return undefined;
89
+ }
90
+ if (value === null) {
91
+ return null;
92
+ }
93
+ return {
94
+
95
+ 'accessKeyId': value.accessKeyId,
96
+ 'expiration': value.expiration,
97
+ 'secretAccessKey': value.secretAccessKey,
98
+ 'sessionToken': value.sessionToken,
99
+ 'region': value.region,
100
+ };
101
+ }
102
+
@@ -0,0 +1,93 @@
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 SftpCredentials
20
+ */
21
+ export interface SftpCredentials {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SftpCredentials
26
+ */
27
+ username: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SftpCredentials
32
+ */
33
+ password: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SftpCredentials
38
+ */
39
+ projectId: string;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof SftpCredentials
44
+ */
45
+ expiresAt: Date;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the SftpCredentials interface.
50
+ */
51
+ export function instanceOfSftpCredentials(value: object): boolean {
52
+ let isInstance = true;
53
+ isInstance = isInstance && "username" in value;
54
+ isInstance = isInstance && "password" in value;
55
+ isInstance = isInstance && "projectId" in value;
56
+ isInstance = isInstance && "expiresAt" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function SftpCredentialsFromJSON(json: any): SftpCredentials {
62
+ return SftpCredentialsFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function SftpCredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SftpCredentials {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'username': json['username'],
72
+ 'password': json['password'],
73
+ 'projectId': json['projectId'],
74
+ 'expiresAt': (new Date(json['expiresAt'])),
75
+ };
76
+ }
77
+
78
+ export function SftpCredentialsToJSON(value?: SftpCredentials | null): any {
79
+ if (value === undefined) {
80
+ return undefined;
81
+ }
82
+ if (value === null) {
83
+ return null;
84
+ }
85
+ return {
86
+
87
+ 'username': value.username,
88
+ 'password': value.password,
89
+ 'projectId': value.projectId,
90
+ 'expiresAt': (value.expiresAt.toISOString()),
91
+ };
92
+ }
93
+
@@ -0,0 +1,75 @@
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 ValidateDataInputsRequest
20
+ */
21
+ export interface ValidateDataInputsRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ValidateDataInputsRequest
26
+ */
27
+ sampleSheet: string;
28
+ /**
29
+ *
30
+ * @type {Array<string>}
31
+ * @memberof ValidateDataInputsRequest
32
+ */
33
+ fileNames: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ValidateDataInputsRequest interface.
38
+ */
39
+ export function instanceOfValidateDataInputsRequest(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "sampleSheet" in value;
42
+ isInstance = isInstance && "fileNames" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function ValidateDataInputsRequestFromJSON(json: any): ValidateDataInputsRequest {
48
+ return ValidateDataInputsRequestFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function ValidateDataInputsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateDataInputsRequest {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'sampleSheet': json['sampleSheet'],
58
+ 'fileNames': json['fileNames'],
59
+ };
60
+ }
61
+
62
+ export function ValidateDataInputsRequestToJSON(value?: ValidateDataInputsRequest | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'sampleSheet': value.sampleSheet,
72
+ 'fileNames': value.fileNames,
73
+ };
74
+ }
75
+
@@ -0,0 +1,91 @@
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 { AllowedDataType } from './AllowedDataType';
17
+ import {
18
+ AllowedDataTypeFromJSON,
19
+ AllowedDataTypeFromJSONTyped,
20
+ AllowedDataTypeToJSON,
21
+ } from './AllowedDataType';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ValidateDataInputsResponse
27
+ */
28
+ export interface ValidateDataInputsResponse {
29
+ /**
30
+ *
31
+ * @type {Array<string>}
32
+ * @memberof ValidateDataInputsResponse
33
+ */
34
+ files: Array<string>;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ValidateDataInputsResponse
39
+ */
40
+ errorMsg: string;
41
+ /**
42
+ *
43
+ * @type {Array<AllowedDataType>}
44
+ * @memberof ValidateDataInputsResponse
45
+ */
46
+ allowedDataTypes: Array<AllowedDataType>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the ValidateDataInputsResponse interface.
51
+ */
52
+ export function instanceOfValidateDataInputsResponse(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "files" in value;
55
+ isInstance = isInstance && "errorMsg" in value;
56
+ isInstance = isInstance && "allowedDataTypes" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function ValidateDataInputsResponseFromJSON(json: any): ValidateDataInputsResponse {
62
+ return ValidateDataInputsResponseFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function ValidateDataInputsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidateDataInputsResponse {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'files': json['files'],
72
+ 'errorMsg': json['errorMsg'],
73
+ 'allowedDataTypes': ((json['allowedDataTypes'] as Array<any>).map(AllowedDataTypeFromJSON)),
74
+ };
75
+ }
76
+
77
+ export function ValidateDataInputsResponseToJSON(value?: ValidateDataInputsResponse | null): any {
78
+ if (value === undefined) {
79
+ return undefined;
80
+ }
81
+ if (value === null) {
82
+ return null;
83
+ }
84
+ return {
85
+
86
+ 'files': value.files,
87
+ 'errorMsg': value.errorMsg,
88
+ 'allowedDataTypes': ((value.allowedDataTypes as Array<any>).map(AllowedDataTypeToJSON)),
89
+ };
90
+ }
91
+
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './AllowedDataType';
3
4
  export * from './BillingAccount';
4
5
  export * from './BillingAccountRequest';
5
6
  export * from './BillingMethod';
@@ -18,9 +19,13 @@ export * from './DatasetDetail';
18
19
  export * from './DatasetFile';
19
20
  export * from './DatasetViz';
20
21
  export * from './Executor';
22
+ export * from './FileNamePattern';
21
23
  export * from './FormSchema';
24
+ export * from './GenerateSftpCredentialsRequest';
22
25
  export * from './GetExecutionLogsResponse';
23
26
  export * from './ImportDataRequest';
27
+ export * from './InviteUserRequest';
28
+ export * from './InviteUserResponse';
24
29
  export * from './LogEntry';
25
30
  export * from './MetricRecord';
26
31
  export * from './NotebookInstance';
@@ -40,10 +45,12 @@ export * from './ProjectUser';
40
45
  export * from './Reference';
41
46
  export * from './ReferenceType';
42
47
  export * from './RunAnalysisRequest';
48
+ export * from './S3Credentials';
43
49
  export * from './Sample';
44
50
  export * from './SampleRequest';
45
51
  export * from './ServiceConnection';
46
52
  export * from './SetUserProjectRoleRequest';
53
+ export * from './SftpCredentials';
47
54
  export * from './Status';
48
55
  export * from './StopExecutionResponse';
49
56
  export * from './SystemInfoResponse';
@@ -54,3 +61,5 @@ export * from './UpdateUserRequest';
54
61
  export * from './UploadDatasetCreateResponse';
55
62
  export * from './UploadDatasetRequest';
56
63
  export * from './User';
64
+ export * from './ValidateDataInputsRequest';
65
+ export * from './ValidateDataInputsResponse';