@targetprocess/clusters-client 0.1.0 → 1.0.0
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/bin/src/client.d.ts +68 -0
- package/bin/src/client.d.ts.map +1 -0
- package/bin/src/client.js +188 -0
- package/bin/src/client.js.map +1 -0
- package/package.json +15 -9
- package/CHANGELOG.md +0 -28
- package/lib/client.d.ts +0 -53
- package/lib/client.js +0 -120
- package/lib/client.js.map +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* © Copyright IBM Corp. 2024
|
|
3
|
+
*********************************************************************/
|
|
4
|
+
export interface IClient {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves a list of clusters
|
|
7
|
+
* @return Successful response
|
|
8
|
+
*/
|
|
9
|
+
getClusters(): Promise<IClusterRef[]>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves clusters deployment tree
|
|
12
|
+
* @return Successful response
|
|
13
|
+
*/
|
|
14
|
+
getDeploymentTree(): Promise<IClusterComposite>;
|
|
15
|
+
}
|
|
16
|
+
export declare class Client implements IClient {
|
|
17
|
+
private http;
|
|
18
|
+
private baseUrl;
|
|
19
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
20
|
+
constructor(baseUrl?: string, http?: {
|
|
21
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves a list of clusters
|
|
25
|
+
* @return Successful response
|
|
26
|
+
*/
|
|
27
|
+
getClusters(): Promise<IClusterRef[]>;
|
|
28
|
+
protected processGetClusters(response: Response): Promise<IClusterRef[]>;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves clusters deployment tree
|
|
31
|
+
* @return Successful response
|
|
32
|
+
*/
|
|
33
|
+
getDeploymentTree(): Promise<IClusterComposite>;
|
|
34
|
+
protected processGetDeploymentTree(response: Response): Promise<IClusterComposite>;
|
|
35
|
+
}
|
|
36
|
+
/** Cluster identifier */
|
|
37
|
+
export interface IClusterRef {
|
|
38
|
+
/** Cluster name */
|
|
39
|
+
name: string;
|
|
40
|
+
/** Cluster tags array */
|
|
41
|
+
tags?: string[] | undefined;
|
|
42
|
+
}
|
|
43
|
+
/** Cluster with it's dependant clusters */
|
|
44
|
+
export interface IClusterComposite {
|
|
45
|
+
/** Cluster reference */
|
|
46
|
+
cluster: IClusterRef;
|
|
47
|
+
/** List of dependant clusters */
|
|
48
|
+
children?: IClusterComposite[] | undefined;
|
|
49
|
+
}
|
|
50
|
+
export interface IErrorDto {
|
|
51
|
+
/** Error message */
|
|
52
|
+
message: string;
|
|
53
|
+
}
|
|
54
|
+
export declare class ApiException extends Error {
|
|
55
|
+
message: string;
|
|
56
|
+
status: number;
|
|
57
|
+
response: string;
|
|
58
|
+
headers: {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
};
|
|
61
|
+
result: any;
|
|
62
|
+
constructor(message: string, status: number, response: string, headers: {
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
}, result: any);
|
|
65
|
+
protected isApiException: boolean;
|
|
66
|
+
static isApiException(obj: any): obj is ApiException;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA;;uEAEuE;AAWvE,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,WAAW,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;IAErC;;;OAGG;IACH,iBAAiB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAA;CAChD;AAED,qBAAa,MAAO,YAAW,OAAO;IACpC,OAAO,CAAC,IAAI,CAAoE;IAChF,OAAO,CAAC,OAAO,CAAQ;IACvB,SAAS,CAAC,gBAAgB,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,KA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ChB,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAC/B,MAAM,EAAE,GAAG;IAWb,SAAS,CAAC,cAAc,UAAO;IAE/B,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,YAAY;CAGrD"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*********************************************************************
|
|
3
|
+
* © Copyright IBM Corp. 2024
|
|
4
|
+
*********************************************************************/
|
|
5
|
+
// ----------------------
|
|
6
|
+
// <auto-generated>
|
|
7
|
+
// Generated using the NSwag toolchain v13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
8
|
+
// </auto-generated>
|
|
9
|
+
// ----------------------
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.ApiException = exports.Client = void 0;
|
|
12
|
+
class Client {
|
|
13
|
+
http;
|
|
14
|
+
baseUrl;
|
|
15
|
+
jsonParseReviver = undefined;
|
|
16
|
+
constructor(baseUrl, http) {
|
|
17
|
+
this.http = http ? http : window;
|
|
18
|
+
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : '';
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a list of clusters
|
|
22
|
+
* @return Successful response
|
|
23
|
+
*/
|
|
24
|
+
getClusters() {
|
|
25
|
+
let url_ = this.baseUrl + '/clusters';
|
|
26
|
+
url_ = url_.replace(/[?&]$/, '');
|
|
27
|
+
let options_ = {
|
|
28
|
+
method: 'GET',
|
|
29
|
+
headers: {
|
|
30
|
+
Accept: 'application/json'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
34
|
+
return this.processGetClusters(_response);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
processGetClusters(response) {
|
|
38
|
+
const status = response.status;
|
|
39
|
+
let _headers = {};
|
|
40
|
+
if (response.headers && response.headers.forEach) {
|
|
41
|
+
response.headers.forEach((v, k) => (_headers[k] = v));
|
|
42
|
+
}
|
|
43
|
+
if (status === 200) {
|
|
44
|
+
return response.text().then(_responseText => {
|
|
45
|
+
let result200 = null;
|
|
46
|
+
result200 =
|
|
47
|
+
_responseText === ''
|
|
48
|
+
? null
|
|
49
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
50
|
+
return result200;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
else if (status === 401) {
|
|
54
|
+
return response.text().then(_responseText => {
|
|
55
|
+
let result401 = null;
|
|
56
|
+
result401 =
|
|
57
|
+
_responseText === ''
|
|
58
|
+
? null
|
|
59
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
60
|
+
return throwException('Unauthorized', status, _responseText, _headers, result401);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
else if (status === 403) {
|
|
64
|
+
return response.text().then(_responseText => {
|
|
65
|
+
let result403 = null;
|
|
66
|
+
result403 =
|
|
67
|
+
_responseText === ''
|
|
68
|
+
? null
|
|
69
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
70
|
+
return throwException('Forbidden', status, _responseText, _headers, result403);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
else if (status === 500) {
|
|
74
|
+
return response.text().then(_responseText => {
|
|
75
|
+
let result500 = null;
|
|
76
|
+
result500 =
|
|
77
|
+
_responseText === ''
|
|
78
|
+
? null
|
|
79
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
80
|
+
return throwException('General error', status, _responseText, _headers, result500);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
else if (status !== 200 && status !== 204) {
|
|
84
|
+
return response.text().then(_responseText => {
|
|
85
|
+
return throwException('An unexpected server error occurred.', status, _responseText, _headers);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return Promise.resolve(null);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Retrieves clusters deployment tree
|
|
92
|
+
* @return Successful response
|
|
93
|
+
*/
|
|
94
|
+
getDeploymentTree() {
|
|
95
|
+
let url_ = this.baseUrl + '/clusters/tree';
|
|
96
|
+
url_ = url_.replace(/[?&]$/, '');
|
|
97
|
+
let options_ = {
|
|
98
|
+
method: 'GET',
|
|
99
|
+
headers: {
|
|
100
|
+
Accept: 'application/json'
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
104
|
+
return this.processGetDeploymentTree(_response);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
processGetDeploymentTree(response) {
|
|
108
|
+
const status = response.status;
|
|
109
|
+
let _headers = {};
|
|
110
|
+
if (response.headers && response.headers.forEach) {
|
|
111
|
+
response.headers.forEach((v, k) => (_headers[k] = v));
|
|
112
|
+
}
|
|
113
|
+
if (status === 200) {
|
|
114
|
+
return response.text().then(_responseText => {
|
|
115
|
+
let result200 = null;
|
|
116
|
+
result200 =
|
|
117
|
+
_responseText === ''
|
|
118
|
+
? null
|
|
119
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
120
|
+
return result200;
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
else if (status === 401) {
|
|
124
|
+
return response.text().then(_responseText => {
|
|
125
|
+
let result401 = null;
|
|
126
|
+
result401 =
|
|
127
|
+
_responseText === ''
|
|
128
|
+
? null
|
|
129
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
130
|
+
return throwException('Unauthorized', status, _responseText, _headers, result401);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
else if (status === 403) {
|
|
134
|
+
return response.text().then(_responseText => {
|
|
135
|
+
let result403 = null;
|
|
136
|
+
result403 =
|
|
137
|
+
_responseText === ''
|
|
138
|
+
? null
|
|
139
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
140
|
+
return throwException('Forbidden', status, _responseText, _headers, result403);
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
else if (status === 500) {
|
|
144
|
+
return response.text().then(_responseText => {
|
|
145
|
+
let result500 = null;
|
|
146
|
+
result500 =
|
|
147
|
+
_responseText === ''
|
|
148
|
+
? null
|
|
149
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
150
|
+
return throwException('General error', status, _responseText, _headers, result500);
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
else if (status !== 200 && status !== 204) {
|
|
154
|
+
return response.text().then(_responseText => {
|
|
155
|
+
return throwException('An unexpected server error occurred.', status, _responseText, _headers);
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
return Promise.resolve(null);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
exports.Client = Client;
|
|
162
|
+
class ApiException extends Error {
|
|
163
|
+
message;
|
|
164
|
+
status;
|
|
165
|
+
response;
|
|
166
|
+
headers;
|
|
167
|
+
result;
|
|
168
|
+
constructor(message, status, response, headers, result) {
|
|
169
|
+
super();
|
|
170
|
+
this.message = message;
|
|
171
|
+
this.status = status;
|
|
172
|
+
this.response = response;
|
|
173
|
+
this.headers = headers;
|
|
174
|
+
this.result = result;
|
|
175
|
+
}
|
|
176
|
+
isApiException = true;
|
|
177
|
+
static isApiException(obj) {
|
|
178
|
+
return obj.isApiException === true;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
exports.ApiException = ApiException;
|
|
182
|
+
function throwException(message, status, response, headers, result) {
|
|
183
|
+
if (result !== null && result !== undefined)
|
|
184
|
+
throw result;
|
|
185
|
+
else
|
|
186
|
+
throw new ApiException(message, status, response, headers, null);
|
|
187
|
+
}
|
|
188
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";AAAA;;uEAEuE;AACvE,yBAAyB;AACzB,mBAAmB;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AAQ;IAChB,OAAO,CAAwB;IAC/B,MAAM,CAAK;IAEX,YACE,OAAe,EACf,MAAc,EACd,QAAgB,EAChB,OAA+B,EAC/B,MAAW;QAEX,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAES,cAAc,GAAG,IAAI,CAAA;IAE/B,MAAM,CAAC,cAAc,CAAC,GAAQ;QAC5B,OAAO,GAAG,CAAC,cAAc,KAAK,IAAI,CAAA;IACpC,CAAC;CACF;AA5BD,oCA4BC;AAED,SAAS,cAAc,CACrB,OAAe,EACf,MAAc,EACd,QAAgB,EAChB,OAA+B,EAC/B,MAAY;IAEZ,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,SAAS;QAAE,MAAM,MAAM,CAAA;;QACpD,MAAM,IAAI,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;AACvE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targetprocess/clusters-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Client for the service responsible for store list of clusters",
|
|
5
5
|
"files": [
|
|
6
|
-
"
|
|
6
|
+
"bin/src"
|
|
7
7
|
],
|
|
8
|
-
"main": "
|
|
9
|
-
"typings": "
|
|
8
|
+
"main": "bin/src/client.js",
|
|
9
|
+
"typings": "bin/src/client.d.ts",
|
|
10
10
|
"scripts": {
|
|
11
|
-
"generate": "npm run _clean &&
|
|
12
|
-
"
|
|
11
|
+
"generate": "npm run _clean && npm run build",
|
|
12
|
+
"rebuild": "npm run _clean && npm run build",
|
|
13
|
+
"build": "tsc -b --pretty",
|
|
14
|
+
"_clean": "rimraf bin",
|
|
15
|
+
"prepublishOnly": "npm run rebuild"
|
|
13
16
|
},
|
|
14
17
|
"keywords": [
|
|
15
18
|
"sdk"
|
|
16
19
|
],
|
|
17
20
|
"author": "Pavel Shapel <shapel@targetprocess.com>",
|
|
18
21
|
"license": "ISC",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^22.13.1"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"cross-fetch": "3.x"
|
|
21
27
|
},
|
|
22
28
|
"repository": {
|
|
23
29
|
"type": "git",
|
|
24
|
-
"url": "https://
|
|
30
|
+
"url": "https://github.com/TargetProcess/ci-cd_octopus"
|
|
25
31
|
},
|
|
26
32
|
"publishConfig": {
|
|
27
33
|
"access": "public"
|
package/CHANGELOG.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
<a name="0.1.0"></a>
|
|
7
|
-
# 0.1.0 (2017-11-29)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
### Features
|
|
11
|
-
|
|
12
|
-
* init ([4121257](https://tp.githost.io/ci-cd/octopus/commits/4121257))
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<a name="1.0.0"></a>
|
|
18
|
-
# 1.0.0 (2017-11-28)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<a name="1.0.0"></a>
|
|
23
|
-
# 1.0.0 (2017-11-28)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
### Features
|
|
27
|
-
|
|
28
|
-
* init ([e62b5ce](https://tp.githost.io/ci-cd/octopus/commits/e62b5ce))
|
package/lib/client.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export interface IClient {
|
|
2
|
-
/**
|
|
3
|
-
* Retrieves a list of clusters
|
|
4
|
-
* @return Successful response
|
|
5
|
-
*/
|
|
6
|
-
getClusters(): Promise<IClusterRef[]>
|
|
7
|
-
}
|
|
8
|
-
export declare class Client implements IClient {
|
|
9
|
-
private http
|
|
10
|
-
private baseUrl
|
|
11
|
-
protected jsonParseReviver: ((key: string, value: any) => any) | undefined
|
|
12
|
-
constructor(
|
|
13
|
-
baseUrl?: string,
|
|
14
|
-
http?: {
|
|
15
|
-
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>
|
|
16
|
-
}
|
|
17
|
-
)
|
|
18
|
-
/**
|
|
19
|
-
* Retrieves a list of clusters
|
|
20
|
-
* @return Successful response
|
|
21
|
-
*/
|
|
22
|
-
getClusters(): Promise<IClusterRef[]>
|
|
23
|
-
protected processGetClusters(response: Response): Promise<IClusterRef[]>
|
|
24
|
-
}
|
|
25
|
-
/** Cluster identifier */
|
|
26
|
-
export interface IClusterRef {
|
|
27
|
-
/** Cluster name */
|
|
28
|
-
name: string
|
|
29
|
-
}
|
|
30
|
-
export interface IErrorDto {
|
|
31
|
-
/** Error message */
|
|
32
|
-
message: string
|
|
33
|
-
}
|
|
34
|
-
export declare class SwaggerException extends Error {
|
|
35
|
-
message: string
|
|
36
|
-
status: number
|
|
37
|
-
response: string
|
|
38
|
-
headers: {
|
|
39
|
-
[key: string]: any
|
|
40
|
-
}
|
|
41
|
-
result: any
|
|
42
|
-
constructor(
|
|
43
|
-
message: string,
|
|
44
|
-
status: number,
|
|
45
|
-
response: string,
|
|
46
|
-
headers: {
|
|
47
|
-
[key: string]: any
|
|
48
|
-
},
|
|
49
|
-
result: any
|
|
50
|
-
)
|
|
51
|
-
protected isSwaggerException: boolean
|
|
52
|
-
static isSwaggerException(obj: any): obj is SwaggerException
|
|
53
|
-
}
|
package/lib/client.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
//----------------------
|
|
4
|
-
// <auto-generated>
|
|
5
|
-
// Generated using the NSwag toolchain v11.11.3.0 (NJsonSchema v9.9.17.0 (Newtonsoft.Json v9.0.0.0)) (http://NSwag.org)
|
|
6
|
-
// </auto-generated>
|
|
7
|
-
//----------------------
|
|
8
|
-
// ReSharper disable InconsistentNaming
|
|
9
|
-
var __extends = (this && this.__extends) || (function () {
|
|
10
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
11
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
13
|
-
return function (d, b) {
|
|
14
|
-
extendStatics(d, b);
|
|
15
|
-
function __() { this.constructor = d; }
|
|
16
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17
|
-
};
|
|
18
|
-
})();
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
var Client = /** @class */ (function () {
|
|
21
|
-
function Client(baseUrl, http) {
|
|
22
|
-
this.jsonParseReviver = undefined;
|
|
23
|
-
this.http = http ? http : window;
|
|
24
|
-
this.baseUrl = baseUrl ? baseUrl : '';
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves a list of clusters
|
|
28
|
-
* @return Successful response
|
|
29
|
-
*/
|
|
30
|
-
Client.prototype.getClusters = function () {
|
|
31
|
-
var _this = this;
|
|
32
|
-
var url_ = this.baseUrl + '/clusters';
|
|
33
|
-
url_ = url_.replace(/[?&]$/, '');
|
|
34
|
-
var options_ = {
|
|
35
|
-
method: 'GET',
|
|
36
|
-
headers: {
|
|
37
|
-
'Content-Type': 'application/json',
|
|
38
|
-
Accept: 'application/json'
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
return this.http.fetch(url_, options_).then(function (_response) {
|
|
42
|
-
return _this.processGetClusters(_response);
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
Client.prototype.processGetClusters = function (response) {
|
|
46
|
-
var _this = this;
|
|
47
|
-
var status = response.status;
|
|
48
|
-
var _headers = {};
|
|
49
|
-
if (response.headers && response.headers.forEach) {
|
|
50
|
-
response.headers.forEach(function (v, k) { return (_headers[k] = v); });
|
|
51
|
-
}
|
|
52
|
-
if (status === 200) {
|
|
53
|
-
return response.text().then(function (_responseText) {
|
|
54
|
-
var result200 = null;
|
|
55
|
-
result200 =
|
|
56
|
-
_responseText === ''
|
|
57
|
-
? null
|
|
58
|
-
: JSON.parse(_responseText, _this.jsonParseReviver);
|
|
59
|
-
return result200;
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
else if (status === 401) {
|
|
63
|
-
return response.text().then(function (_responseText) {
|
|
64
|
-
var result401 = null;
|
|
65
|
-
result401 =
|
|
66
|
-
_responseText === '' ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
67
|
-
return throwException('A server error occurred.', status, _responseText, _headers, result401);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
else if (status === 403) {
|
|
71
|
-
return response.text().then(function (_responseText) {
|
|
72
|
-
var result403 = null;
|
|
73
|
-
result403 =
|
|
74
|
-
_responseText === '' ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
75
|
-
return throwException('A server error occurred.', status, _responseText, _headers, result403);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
else if (status === 500) {
|
|
79
|
-
return response.text().then(function (_responseText) {
|
|
80
|
-
var result500 = null;
|
|
81
|
-
result500 =
|
|
82
|
-
_responseText === '' ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
83
|
-
return throwException('A server error occurred.', status, _responseText, _headers, result500);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
else if (status !== 200 && status !== 204) {
|
|
87
|
-
return response.text().then(function (_responseText) {
|
|
88
|
-
return throwException('An unexpected server error occurred.', status, _responseText, _headers);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
return Promise.resolve(null);
|
|
92
|
-
};
|
|
93
|
-
return Client;
|
|
94
|
-
}());
|
|
95
|
-
exports.Client = Client;
|
|
96
|
-
var SwaggerException = /** @class */ (function (_super) {
|
|
97
|
-
__extends(SwaggerException, _super);
|
|
98
|
-
function SwaggerException(message, status, response, headers, result) {
|
|
99
|
-
var _this = _super.call(this) || this;
|
|
100
|
-
_this.isSwaggerException = true;
|
|
101
|
-
_this.message = message;
|
|
102
|
-
_this.status = status;
|
|
103
|
-
_this.response = response;
|
|
104
|
-
_this.headers = headers;
|
|
105
|
-
_this.result = result;
|
|
106
|
-
return _this;
|
|
107
|
-
}
|
|
108
|
-
SwaggerException.isSwaggerException = function (obj) {
|
|
109
|
-
return obj.isSwaggerException === true;
|
|
110
|
-
};
|
|
111
|
-
return SwaggerException;
|
|
112
|
-
}(Error));
|
|
113
|
-
exports.SwaggerException = SwaggerException;
|
|
114
|
-
function throwException(message, status, response, headers, result) {
|
|
115
|
-
if (result !== null && result !== undefined)
|
|
116
|
-
throw result;
|
|
117
|
-
else
|
|
118
|
-
throw new SwaggerException(message, status, response, headers, null);
|
|
119
|
-
}
|
|
120
|
-
//# sourceMappingURL=client.js.map
|
package/lib/client.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,wBAAwB;AACxB,mBAAmB;AACnB,2HAA2H;AAC3H,oBAAoB;AACpB,wBAAwB;AACxB,uCAAuC;;;;;;;;;;;;AAUvC;IAKE,gBACE,OAAgB,EAChB,IAAyE;QAJjE,qBAAgB,GAAmD,SAAS,CAAA;QAMpF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAM,MAAM,CAAA;QACrC,IAAI,CAAC,OAAO,GA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