@cirrobio/api-client 0.0.1 → 0.0.3-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.
- package/README.md +1 -1
- package/dist/apis/BillingApi.js +66 -30
- package/dist/apis/DatasetsApi.js +82 -37
- package/dist/apis/ExecutionApi.d.ts +4 -4
- package/dist/apis/ExecutionApi.js +1 -13
- package/dist/apis/MetricsApi.js +16 -7
- package/dist/apis/NotebooksApi.js +97 -43
- package/dist/apis/ProcessesApi.js +32 -14
- package/dist/apis/ProjectsApi.js +100 -46
- package/dist/apis/SystemApi.js +32 -14
- package/dist/apis/UsersApi.js +49 -22
- package/dist/models/SystemInfoResponse.d.ts +12 -0
- package/dist/models/SystemInfoResponse.js +6 -0
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +32 -0
- package/src/apis/DatasetsApi.ts +40 -0
- package/src/apis/ExecutionApi.ts +5 -21
- package/src/apis/MetricsApi.ts +8 -0
- package/src/apis/NotebooksApi.ts +48 -0
- package/src/apis/ProcessesApi.ts +16 -0
- package/src/apis/ProjectsApi.ts +48 -0
- package/src/apis/SystemApi.ts +16 -0
- package/src/apis/UsersApi.ts +24 -0
- package/src/models/SystemInfoResponse.ts +18 -0
package/src/apis/UsersApi.ts
CHANGED
|
@@ -56,6 +56,14 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
56
56
|
|
|
57
57
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
58
58
|
|
|
59
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
60
|
+
const token = this.configuration.accessToken;
|
|
61
|
+
const tokenString = await token("accessToken", []);
|
|
62
|
+
|
|
63
|
+
if (tokenString) {
|
|
64
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
59
67
|
const response = await this.request({
|
|
60
68
|
path: `/users/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
|
|
61
69
|
method: 'GET',
|
|
@@ -92,6 +100,14 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
92
100
|
|
|
93
101
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
94
102
|
|
|
103
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
104
|
+
const token = this.configuration.accessToken;
|
|
105
|
+
const tokenString = await token("accessToken", []);
|
|
106
|
+
|
|
107
|
+
if (tokenString) {
|
|
108
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
95
111
|
const response = await this.request({
|
|
96
112
|
path: `/users`,
|
|
97
113
|
method: 'GET',
|
|
@@ -130,6 +146,14 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
130
146
|
|
|
131
147
|
headerParameters['Content-Type'] = 'application/json';
|
|
132
148
|
|
|
149
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
150
|
+
const token = this.configuration.accessToken;
|
|
151
|
+
const tokenString = await token("accessToken", []);
|
|
152
|
+
|
|
153
|
+
if (tokenString) {
|
|
154
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
133
157
|
const response = await this.request({
|
|
134
158
|
path: `/users/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
|
|
135
159
|
method: 'PUT',
|
|
@@ -49,6 +49,18 @@ export interface SystemInfoResponse {
|
|
|
49
49
|
* @memberof SystemInfoResponse
|
|
50
50
|
*/
|
|
51
51
|
systemMessage: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof SystemInfoResponse
|
|
56
|
+
*/
|
|
57
|
+
commitHash: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof SystemInfoResponse
|
|
62
|
+
*/
|
|
63
|
+
version: string;
|
|
52
64
|
}
|
|
53
65
|
|
|
54
66
|
/**
|
|
@@ -61,6 +73,8 @@ export function instanceOfSystemInfoResponse(value: object): boolean {
|
|
|
61
73
|
isInstance = isInstance && "dataEndpoint" in value;
|
|
62
74
|
isInstance = isInstance && "region" in value;
|
|
63
75
|
isInstance = isInstance && "systemMessage" in value;
|
|
76
|
+
isInstance = isInstance && "commitHash" in value;
|
|
77
|
+
isInstance = isInstance && "version" in value;
|
|
64
78
|
|
|
65
79
|
return isInstance;
|
|
66
80
|
}
|
|
@@ -80,6 +94,8 @@ export function SystemInfoResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
80
94
|
'dataEndpoint': json['dataEndpoint'],
|
|
81
95
|
'region': json['region'],
|
|
82
96
|
'systemMessage': json['systemMessage'],
|
|
97
|
+
'commitHash': json['commitHash'],
|
|
98
|
+
'version': json['version'],
|
|
83
99
|
};
|
|
84
100
|
}
|
|
85
101
|
|
|
@@ -97,6 +113,8 @@ export function SystemInfoResponseToJSON(value?: SystemInfoResponse | null): any
|
|
|
97
113
|
'dataEndpoint': value.dataEndpoint,
|
|
98
114
|
'region': value.region,
|
|
99
115
|
'systemMessage': value.systemMessage,
|
|
116
|
+
'commitHash': value.commitHash,
|
|
117
|
+
'version': value.version,
|
|
100
118
|
};
|
|
101
119
|
}
|
|
102
120
|
|