@targetprocess/equalizer-client 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 +310 -0
- package/bin/src/client.d.ts.map +1 -0
- package/bin/src/client.js +346 -0
- package/bin/src/client.js.map +1 -0
- package/package.json +35 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* © Copyright IBM Corp. 2024
|
|
3
|
+
*********************************************************************/
|
|
4
|
+
export interface IClient {
|
|
5
|
+
/**
|
|
6
|
+
* Get clusters configuration difference
|
|
7
|
+
* @param sourceCluster Source cluster name
|
|
8
|
+
* @param targetCluster Target cluster name
|
|
9
|
+
* @return Successful response
|
|
10
|
+
*/
|
|
11
|
+
getClustersDifference(sourceCluster: string, targetCluster: string): Promise<IClustersDiff>;
|
|
12
|
+
/**
|
|
13
|
+
* Synchronize clusters configuration
|
|
14
|
+
* @param filter Filtering options that will be applied during clusters sync
|
|
15
|
+
* @return Successful response
|
|
16
|
+
*/
|
|
17
|
+
synchronizeClusters(filter: IConfigsSyncFilter): Promise<IConfigsSyncResult>;
|
|
18
|
+
/**
|
|
19
|
+
* Synchronize clusters configuration from external source
|
|
20
|
+
* @param syncConfig Options that will be applied during clusters sync
|
|
21
|
+
* @return Successful response
|
|
22
|
+
*/
|
|
23
|
+
synchronizeFromExternalSource(syncConfig: IExternalSourceSyncConfig): Promise<IConfigsSyncResult>;
|
|
24
|
+
}
|
|
25
|
+
export declare class Client implements IClient {
|
|
26
|
+
private http;
|
|
27
|
+
private baseUrl;
|
|
28
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
29
|
+
constructor(baseUrl?: string, http?: {
|
|
30
|
+
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* Get clusters configuration difference
|
|
34
|
+
* @param sourceCluster Source cluster name
|
|
35
|
+
* @param targetCluster Target cluster name
|
|
36
|
+
* @return Successful response
|
|
37
|
+
*/
|
|
38
|
+
getClustersDifference(sourceCluster: string, targetCluster: string): Promise<IClustersDiff>;
|
|
39
|
+
protected processGetClustersDifference(response: Response): Promise<IClustersDiff>;
|
|
40
|
+
/**
|
|
41
|
+
* Synchronize clusters configuration
|
|
42
|
+
* @param filter Filtering options that will be applied during clusters sync
|
|
43
|
+
* @return Successful response
|
|
44
|
+
*/
|
|
45
|
+
synchronizeClusters(filter: IConfigsSyncFilter): Promise<IConfigsSyncResult>;
|
|
46
|
+
protected processSynchronizeClusters(response: Response): Promise<IConfigsSyncResult>;
|
|
47
|
+
/**
|
|
48
|
+
* Synchronize clusters configuration from external source
|
|
49
|
+
* @param syncConfig Options that will be applied during clusters sync
|
|
50
|
+
* @return Successful response
|
|
51
|
+
*/
|
|
52
|
+
synchronizeFromExternalSource(syncConfig: IExternalSourceSyncConfig): Promise<IConfigsSyncResult>;
|
|
53
|
+
protected processSynchronizeFromExternalSource(response: Response): Promise<IConfigsSyncResult>;
|
|
54
|
+
}
|
|
55
|
+
export interface IErrorDto {
|
|
56
|
+
/** Error message */
|
|
57
|
+
message: string;
|
|
58
|
+
}
|
|
59
|
+
export interface IClustersDiff {
|
|
60
|
+
/** Source cluster identifier */
|
|
61
|
+
sourceCluster: IClusterRef;
|
|
62
|
+
/** Target cluster identifier */
|
|
63
|
+
targetCluster: IClusterRef;
|
|
64
|
+
/** List of differing releases */
|
|
65
|
+
releasesDiff: IReleasesDiff[];
|
|
66
|
+
}
|
|
67
|
+
/** Cluster identifier */
|
|
68
|
+
export interface IClusterRef {
|
|
69
|
+
/** Cluster name */
|
|
70
|
+
name: string;
|
|
71
|
+
/** Cluster tags array */
|
|
72
|
+
tags?: string[] | undefined;
|
|
73
|
+
}
|
|
74
|
+
export interface IReleasesDiff {
|
|
75
|
+
/** Source release meta (null value means release is missing in source cluster) */
|
|
76
|
+
sourceRelease?: IRelease | undefined;
|
|
77
|
+
/** Source release meta (null value means release is missing in target cluster) */
|
|
78
|
+
targetRelease?: IRelease | undefined;
|
|
79
|
+
/** Difference between releases' charts (null value means charts are equal) */
|
|
80
|
+
chartsDiff?: IChartsDiff | undefined;
|
|
81
|
+
}
|
|
82
|
+
/** Helm release identifier */
|
|
83
|
+
export interface IReleaseRef {
|
|
84
|
+
/** Release name */
|
|
85
|
+
name: string;
|
|
86
|
+
}
|
|
87
|
+
/** Helm release */
|
|
88
|
+
export interface IRelease extends IReleaseRef {
|
|
89
|
+
/** Chart to install/upgrade */
|
|
90
|
+
chart: IChartRef;
|
|
91
|
+
namespace: INamespaceRef;
|
|
92
|
+
/** Cluster-specific helm template values overrides in raw (YAML) format. May differ between the selected release deployment on different clusters. Override both Portable values and chart defaults.
|
|
93
|
+
*/
|
|
94
|
+
values?: string | undefined;
|
|
95
|
+
/** Shared (portable) helm template values overrides in raw (YAML) format. Should be the same for selected release deployments on all clusters. Override chart defaults.
|
|
96
|
+
*/
|
|
97
|
+
portableValues?: string | undefined;
|
|
98
|
+
/** Install/upgrade strategy */
|
|
99
|
+
deployStrategy?: DeployStrategy | undefined;
|
|
100
|
+
/** Optional install/update timeout */
|
|
101
|
+
timeout?: number | undefined;
|
|
102
|
+
}
|
|
103
|
+
export interface IChartsDiff {
|
|
104
|
+
/** Source chart meta */
|
|
105
|
+
sourceChart: IChart;
|
|
106
|
+
/** Target chart meta */
|
|
107
|
+
targetChart: IChart;
|
|
108
|
+
}
|
|
109
|
+
/** Helm chart identifier */
|
|
110
|
+
export interface IChartRef {
|
|
111
|
+
/** The name of the chart */
|
|
112
|
+
name: string;
|
|
113
|
+
/** A SemVer 2 compatible version string of the chart */
|
|
114
|
+
version: string;
|
|
115
|
+
}
|
|
116
|
+
/** Helm chart dependency */
|
|
117
|
+
export interface IChartDependency extends IChartRef {
|
|
118
|
+
/** The repository URL ("https://example.com/charts") or alias ("@repo-name") */
|
|
119
|
+
repository: string;
|
|
120
|
+
/** A yaml path that resolves to a boolean, used for enabling/disabling charts (e.g. subchart1.enabled) */
|
|
121
|
+
condition?: string | undefined;
|
|
122
|
+
/** Tags can be used to group charts for enabling/disabling together */
|
|
123
|
+
tags?: string[] | undefined;
|
|
124
|
+
/** ImportValues holds the mapping of source values to parent key to be imported. Each item can be a string or pair of child/parent sublist items. */
|
|
125
|
+
'import-values'?: string[] | undefined;
|
|
126
|
+
/** Alias to be used for the chart. Useful when you have to add the same chart multiple times */
|
|
127
|
+
alias?: string | undefined;
|
|
128
|
+
}
|
|
129
|
+
/** Helm chart */
|
|
130
|
+
export interface IChart extends IChartRef {
|
|
131
|
+
/** The chart API version */
|
|
132
|
+
apiVersion: string;
|
|
133
|
+
/** A SemVer range of compatible Kubernetes versions */
|
|
134
|
+
kubeVersion?: string | undefined;
|
|
135
|
+
/** A single-sentence description of this project */
|
|
136
|
+
description: string;
|
|
137
|
+
/** The type of the chart (application/library, helm3 only) */
|
|
138
|
+
type?: string | undefined;
|
|
139
|
+
/** A list of keywords about this project */
|
|
140
|
+
keywords?: string[] | undefined;
|
|
141
|
+
/** The URL of this projects home page */
|
|
142
|
+
home?: string | undefined;
|
|
143
|
+
/** A list of URLs to source code for this project */
|
|
144
|
+
sources?: string[] | undefined;
|
|
145
|
+
/** A list of the chart requirements */
|
|
146
|
+
dependencies: IChartDependency[];
|
|
147
|
+
maintainers: IMaintainer[];
|
|
148
|
+
/** A URL to an SVG or PNG image to be used as an icon */
|
|
149
|
+
icon?: string | undefined;
|
|
150
|
+
/** The version of the app that this chart contains. This needn't be SemVer. */
|
|
151
|
+
appVersion?: string | undefined;
|
|
152
|
+
/** Whether this chart is deprecated */
|
|
153
|
+
deprecated?: boolean | undefined;
|
|
154
|
+
/** A list of annotations keyed by name */
|
|
155
|
+
annotations?: {
|
|
156
|
+
[key: string]: any;
|
|
157
|
+
} | undefined;
|
|
158
|
+
/** (DEPRECATED in helm v3) The name of the template engine (defaults to gotpl) */
|
|
159
|
+
engine?: string | undefined;
|
|
160
|
+
/** (DEPRECATED in helm v3) The SemVer version of Tiller that this chart requires. */
|
|
161
|
+
tillerVersion?: string | undefined;
|
|
162
|
+
/** A human-readable README file */
|
|
163
|
+
readme?: string | undefined;
|
|
164
|
+
/** A plain text file containing short usage notes */
|
|
165
|
+
notes?: string | undefined;
|
|
166
|
+
/** Root chart values */
|
|
167
|
+
values: IChartValues;
|
|
168
|
+
/** Combined values (root chart with subcharts) */
|
|
169
|
+
subchartValues: IChartValues;
|
|
170
|
+
}
|
|
171
|
+
/** Namespace identifier */
|
|
172
|
+
export interface INamespaceRef {
|
|
173
|
+
/** Namespace name */
|
|
174
|
+
name: string;
|
|
175
|
+
}
|
|
176
|
+
/** Sometimes we need to know how handle chart installation which may be different for different resource types. */
|
|
177
|
+
export declare enum DeployStrategy {
|
|
178
|
+
RollingUpdate = "RollingUpdate",
|
|
179
|
+
ReInstall = "ReInstall"
|
|
180
|
+
}
|
|
181
|
+
export interface IMaintainer {
|
|
182
|
+
/** Name is a user name or organization name */
|
|
183
|
+
name?: string | undefined;
|
|
184
|
+
/** Email is an optional email address to contact the named maintainer */
|
|
185
|
+
email?: string | undefined;
|
|
186
|
+
/** Url is an optional URL to an address for the named maintainer */
|
|
187
|
+
url?: string | undefined;
|
|
188
|
+
}
|
|
189
|
+
/** Values to parameterize chart templates. */
|
|
190
|
+
export interface IChartValues {
|
|
191
|
+
/** Raw values in YAML format */
|
|
192
|
+
raw: string;
|
|
193
|
+
/** Values as object/map */
|
|
194
|
+
values: {
|
|
195
|
+
[key: string]: any;
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
export interface IConfigsSyncFilter {
|
|
199
|
+
/** Source cluster identifier */
|
|
200
|
+
sourceCluster: IClusterRef;
|
|
201
|
+
/** List of target clusters identifiers. Should contain at least one target cluster ref.
|
|
202
|
+
*/
|
|
203
|
+
targetClusters: IClusterRef[];
|
|
204
|
+
/** List of namespaces to filter releases by. All releases that are not part of mentioned namespaces will be filtered off. Leave this field empty to avoid any namespace-based filtering (i.e. include all namespaces).
|
|
205
|
+
*/
|
|
206
|
+
namespaces?: INamespaceRef[] | undefined;
|
|
207
|
+
/** List of allowed release synchronization operations. All changes that do not match this list will be ignored. Leave this field empty to avoid any operation-based filtering (i.e. allow all operations).
|
|
208
|
+
*/
|
|
209
|
+
operations?: SyncOperation[] | undefined;
|
|
210
|
+
/** List of additional release synchronization options.
|
|
211
|
+
*/
|
|
212
|
+
additionalOptions?: SyncOption[] | undefined;
|
|
213
|
+
/** List of labels to be added to the merge request.
|
|
214
|
+
*/
|
|
215
|
+
mergeRequestLabels?: string[] | undefined;
|
|
216
|
+
}
|
|
217
|
+
export interface IExternalSourceSyncConfig {
|
|
218
|
+
/** External source cluster config */
|
|
219
|
+
sourceClusterConfig: IConfig;
|
|
220
|
+
/** List of target clusters identifiers. Should contain at least one target cluster ref.
|
|
221
|
+
*/
|
|
222
|
+
targetClusters: IClusterRef[];
|
|
223
|
+
/** List of namespaces to filter releases by. All releases that are not part of mentioned namespaces will be filtered off. Leave this field empty to avoid any namespace-based filtering (i.e. include all namespaces).
|
|
224
|
+
*/
|
|
225
|
+
namespaces?: INamespaceRef[] | undefined;
|
|
226
|
+
/** List of allowed release synchronization operations. All changes that do not match this list will be ignored. Leave this field empty to avoid any operation-based filtering (i.e. allow all operations).
|
|
227
|
+
*/
|
|
228
|
+
operations?: SyncOperation[] | undefined;
|
|
229
|
+
/** List of additional release synchronization options.
|
|
230
|
+
*/
|
|
231
|
+
additionalOptions?: SyncOption[] | undefined;
|
|
232
|
+
/** List of labels to be added to the merge request.
|
|
233
|
+
*/
|
|
234
|
+
mergeRequestLabels?: string[] | undefined;
|
|
235
|
+
}
|
|
236
|
+
export interface IConfigsSyncResult {
|
|
237
|
+
/** List of configuration diffs that need manual review */
|
|
238
|
+
blockers?: IMergeBlocker[] | undefined;
|
|
239
|
+
/** Resulting merge request in configs repo */
|
|
240
|
+
mergeRequest: IMergeRequest;
|
|
241
|
+
/** Source cluster identifier */
|
|
242
|
+
sourceCluster: IClusterRef;
|
|
243
|
+
/** Target clusters identifiers */
|
|
244
|
+
targetClusters: IClusterRef[];
|
|
245
|
+
}
|
|
246
|
+
export interface IMergeRequest {
|
|
247
|
+
/** MR identifier */
|
|
248
|
+
id: number;
|
|
249
|
+
/** whether MR was already merged */
|
|
250
|
+
isMerged: boolean;
|
|
251
|
+
/** MR title */
|
|
252
|
+
title: string;
|
|
253
|
+
/** description containing all config changes this MR applies */
|
|
254
|
+
desc: string;
|
|
255
|
+
/** MR url */
|
|
256
|
+
url: string;
|
|
257
|
+
}
|
|
258
|
+
export interface IMergeBlocker {
|
|
259
|
+
reason: MergeBlockerType;
|
|
260
|
+
/** Config change details */
|
|
261
|
+
diff: IReleasesDiff;
|
|
262
|
+
}
|
|
263
|
+
/** Exact reason of why a config change may be treated a blocker */
|
|
264
|
+
export declare enum MergeBlockerType {
|
|
265
|
+
NewRelease = "NewRelease",
|
|
266
|
+
DeletedRelease = "DeletedRelease",
|
|
267
|
+
VersionDowngrade = "VersionDowngrade",
|
|
268
|
+
ChartChanged = "ChartChanged",
|
|
269
|
+
ChartContractChanged = "ChartContractChanged"
|
|
270
|
+
}
|
|
271
|
+
/** Release synchronization operation type */
|
|
272
|
+
export declare enum SyncOperation {
|
|
273
|
+
AddRelease = "AddRelease",
|
|
274
|
+
RemoveRelease = "RemoveRelease",
|
|
275
|
+
AlterRelease = "AlterRelease"
|
|
276
|
+
}
|
|
277
|
+
/** Release synchronization options type */
|
|
278
|
+
export declare enum SyncOption {
|
|
279
|
+
DisallowVersionDowngrade = "DisallowVersionDowngrade"
|
|
280
|
+
}
|
|
281
|
+
export interface IConfigRef {
|
|
282
|
+
cluster: IClusterRef;
|
|
283
|
+
version: string;
|
|
284
|
+
}
|
|
285
|
+
export interface IConfigPartial {
|
|
286
|
+
namespaces: INamespace[];
|
|
287
|
+
}
|
|
288
|
+
export interface IConfig extends IConfigRef {
|
|
289
|
+
namespaces: INamespace[];
|
|
290
|
+
}
|
|
291
|
+
/** Information about cluster namespace and releases inside it. */
|
|
292
|
+
export interface INamespace extends INamespaceRef {
|
|
293
|
+
/** Releases inside this namespace */
|
|
294
|
+
releases: IRelease[];
|
|
295
|
+
}
|
|
296
|
+
export declare class ApiException extends Error {
|
|
297
|
+
message: string;
|
|
298
|
+
status: number;
|
|
299
|
+
response: string;
|
|
300
|
+
headers: {
|
|
301
|
+
[key: string]: any;
|
|
302
|
+
};
|
|
303
|
+
result: any;
|
|
304
|
+
constructor(message: string, status: number, response: string, headers: {
|
|
305
|
+
[key: string]: any;
|
|
306
|
+
}, result: any);
|
|
307
|
+
protected isApiException: boolean;
|
|
308
|
+
static isApiException(obj: any): obj is ApiException;
|
|
309
|
+
}
|
|
310
|
+
//# 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;;;;;OAKG;IACH,qBAAqB,CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;IAE3F;;;;OAIG;IACH,mBAAmB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;IAE5E;;;;OAIG;IACH,6BAA6B,CAAC,UAAU,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;CAClG;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,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,SAAS,CAAY;gBAGpF,OAAO,CAAC,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,EAA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a,YAAa,SAAQ,KAAK;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;IAC/B,MAAM,EAAE,GAAG,CAAA;gBAGT,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,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,346 @@
|
|
|
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.SyncOption = exports.SyncOperation = exports.MergeBlockerType = exports.DeployStrategy = 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
|
+
* Get clusters configuration difference
|
|
22
|
+
* @param sourceCluster Source cluster name
|
|
23
|
+
* @param targetCluster Target cluster name
|
|
24
|
+
* @return Successful response
|
|
25
|
+
*/
|
|
26
|
+
getClustersDifference(sourceCluster, targetCluster) {
|
|
27
|
+
let url_ = this.baseUrl + '/diff/{sourceCluster}/{targetCluster}';
|
|
28
|
+
if (sourceCluster === undefined || sourceCluster === null)
|
|
29
|
+
throw new Error("The parameter 'sourceCluster' must be defined.");
|
|
30
|
+
url_ = url_.replace('{sourceCluster}', encodeURIComponent('' + sourceCluster));
|
|
31
|
+
if (targetCluster === undefined || targetCluster === null)
|
|
32
|
+
throw new Error("The parameter 'targetCluster' must be defined.");
|
|
33
|
+
url_ = url_.replace('{targetCluster}', encodeURIComponent('' + targetCluster));
|
|
34
|
+
url_ = url_.replace(/[?&]$/, '');
|
|
35
|
+
let options_ = {
|
|
36
|
+
method: 'GET',
|
|
37
|
+
headers: {
|
|
38
|
+
Accept: 'application/json'
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
42
|
+
return this.processGetClustersDifference(_response);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
processGetClustersDifference(response) {
|
|
46
|
+
const status = response.status;
|
|
47
|
+
let _headers = {};
|
|
48
|
+
if (response.headers && response.headers.forEach) {
|
|
49
|
+
response.headers.forEach((v, k) => (_headers[k] = v));
|
|
50
|
+
}
|
|
51
|
+
if (status === 200) {
|
|
52
|
+
return response.text().then(_responseText => {
|
|
53
|
+
let result200 = null;
|
|
54
|
+
result200 =
|
|
55
|
+
_responseText === ''
|
|
56
|
+
? null
|
|
57
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
58
|
+
return result200;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
else if (status === 400) {
|
|
62
|
+
return response.text().then(_responseText => {
|
|
63
|
+
let result400 = null;
|
|
64
|
+
result400 =
|
|
65
|
+
_responseText === ''
|
|
66
|
+
? null
|
|
67
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
68
|
+
return throwException('Validation failed', status, _responseText, _headers, result400);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
else if (status === 401) {
|
|
72
|
+
return response.text().then(_responseText => {
|
|
73
|
+
let result401 = null;
|
|
74
|
+
result401 =
|
|
75
|
+
_responseText === ''
|
|
76
|
+
? null
|
|
77
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
78
|
+
return throwException('Unauthorized', status, _responseText, _headers, result401);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
else if (status === 403) {
|
|
82
|
+
return response.text().then(_responseText => {
|
|
83
|
+
let result403 = null;
|
|
84
|
+
result403 =
|
|
85
|
+
_responseText === ''
|
|
86
|
+
? null
|
|
87
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
88
|
+
return throwException('Forbidden', status, _responseText, _headers, result403);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
else if (status === 404) {
|
|
92
|
+
return response.text().then(_responseText => {
|
|
93
|
+
return throwException('Not found', status, _responseText, _headers);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
else if (status === 500) {
|
|
97
|
+
return response.text().then(_responseText => {
|
|
98
|
+
let result500 = null;
|
|
99
|
+
result500 =
|
|
100
|
+
_responseText === ''
|
|
101
|
+
? null
|
|
102
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
103
|
+
return throwException('General error', status, _responseText, _headers, result500);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
else if (status !== 200 && status !== 204) {
|
|
107
|
+
return response.text().then(_responseText => {
|
|
108
|
+
return throwException('An unexpected server error occurred.', status, _responseText, _headers);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return Promise.resolve(null);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Synchronize clusters configuration
|
|
115
|
+
* @param filter Filtering options that will be applied during clusters sync
|
|
116
|
+
* @return Successful response
|
|
117
|
+
*/
|
|
118
|
+
synchronizeClusters(filter) {
|
|
119
|
+
let url_ = this.baseUrl + '/sync';
|
|
120
|
+
url_ = url_.replace(/[?&]$/, '');
|
|
121
|
+
const content_ = JSON.stringify(filter);
|
|
122
|
+
let options_ = {
|
|
123
|
+
body: content_,
|
|
124
|
+
method: 'PUT',
|
|
125
|
+
headers: {
|
|
126
|
+
'Content-Type': 'application/json',
|
|
127
|
+
Accept: 'application/json'
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
131
|
+
return this.processSynchronizeClusters(_response);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
processSynchronizeClusters(response) {
|
|
135
|
+
const status = response.status;
|
|
136
|
+
let _headers = {};
|
|
137
|
+
if (response.headers && response.headers.forEach) {
|
|
138
|
+
response.headers.forEach((v, k) => (_headers[k] = v));
|
|
139
|
+
}
|
|
140
|
+
if (status === 200) {
|
|
141
|
+
return response.text().then(_responseText => {
|
|
142
|
+
let result200 = null;
|
|
143
|
+
result200 =
|
|
144
|
+
_responseText === ''
|
|
145
|
+
? null
|
|
146
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
147
|
+
return result200;
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
else if (status === 400) {
|
|
151
|
+
return response.text().then(_responseText => {
|
|
152
|
+
let result400 = null;
|
|
153
|
+
result400 =
|
|
154
|
+
_responseText === ''
|
|
155
|
+
? null
|
|
156
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
157
|
+
return throwException('Validation failed', status, _responseText, _headers, result400);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
else if (status === 401) {
|
|
161
|
+
return response.text().then(_responseText => {
|
|
162
|
+
let result401 = null;
|
|
163
|
+
result401 =
|
|
164
|
+
_responseText === ''
|
|
165
|
+
? null
|
|
166
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
167
|
+
return throwException('Unauthorized', status, _responseText, _headers, result401);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
else if (status === 403) {
|
|
171
|
+
return response.text().then(_responseText => {
|
|
172
|
+
let result403 = null;
|
|
173
|
+
result403 =
|
|
174
|
+
_responseText === ''
|
|
175
|
+
? null
|
|
176
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
177
|
+
return throwException('Forbidden', status, _responseText, _headers, result403);
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
else if (status === 404) {
|
|
181
|
+
return response.text().then(_responseText => {
|
|
182
|
+
return throwException('Not found', status, _responseText, _headers);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
else if (status === 500) {
|
|
186
|
+
return response.text().then(_responseText => {
|
|
187
|
+
let result500 = null;
|
|
188
|
+
result500 =
|
|
189
|
+
_responseText === ''
|
|
190
|
+
? null
|
|
191
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
192
|
+
return throwException('General error', status, _responseText, _headers, result500);
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
else if (status !== 200 && status !== 204) {
|
|
196
|
+
return response.text().then(_responseText => {
|
|
197
|
+
return throwException('An unexpected server error occurred.', status, _responseText, _headers);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
return Promise.resolve(null);
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Synchronize clusters configuration from external source
|
|
204
|
+
* @param syncConfig Options that will be applied during clusters sync
|
|
205
|
+
* @return Successful response
|
|
206
|
+
*/
|
|
207
|
+
synchronizeFromExternalSource(syncConfig) {
|
|
208
|
+
let url_ = this.baseUrl + '/sync/external';
|
|
209
|
+
url_ = url_.replace(/[?&]$/, '');
|
|
210
|
+
const content_ = JSON.stringify(syncConfig);
|
|
211
|
+
let options_ = {
|
|
212
|
+
body: content_,
|
|
213
|
+
method: 'PUT',
|
|
214
|
+
headers: {
|
|
215
|
+
'Content-Type': 'application/json',
|
|
216
|
+
Accept: 'application/json'
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
220
|
+
return this.processSynchronizeFromExternalSource(_response);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
processSynchronizeFromExternalSource(response) {
|
|
224
|
+
const status = response.status;
|
|
225
|
+
let _headers = {};
|
|
226
|
+
if (response.headers && response.headers.forEach) {
|
|
227
|
+
response.headers.forEach((v, k) => (_headers[k] = v));
|
|
228
|
+
}
|
|
229
|
+
if (status === 200) {
|
|
230
|
+
return response.text().then(_responseText => {
|
|
231
|
+
let result200 = null;
|
|
232
|
+
result200 =
|
|
233
|
+
_responseText === ''
|
|
234
|
+
? null
|
|
235
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
236
|
+
return result200;
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
else if (status === 400) {
|
|
240
|
+
return response.text().then(_responseText => {
|
|
241
|
+
let result400 = null;
|
|
242
|
+
result400 =
|
|
243
|
+
_responseText === ''
|
|
244
|
+
? null
|
|
245
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
246
|
+
return throwException('Validation failed', status, _responseText, _headers, result400);
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
else if (status === 401) {
|
|
250
|
+
return response.text().then(_responseText => {
|
|
251
|
+
let result401 = null;
|
|
252
|
+
result401 =
|
|
253
|
+
_responseText === ''
|
|
254
|
+
? null
|
|
255
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
256
|
+
return throwException('Unauthorized', status, _responseText, _headers, result401);
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
else if (status === 403) {
|
|
260
|
+
return response.text().then(_responseText => {
|
|
261
|
+
let result403 = null;
|
|
262
|
+
result403 =
|
|
263
|
+
_responseText === ''
|
|
264
|
+
? null
|
|
265
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
266
|
+
return throwException('Forbidden', status, _responseText, _headers, result403);
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
else if (status === 404) {
|
|
270
|
+
return response.text().then(_responseText => {
|
|
271
|
+
return throwException('Not found', status, _responseText, _headers);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
else if (status === 500) {
|
|
275
|
+
return response.text().then(_responseText => {
|
|
276
|
+
let result500 = null;
|
|
277
|
+
result500 =
|
|
278
|
+
_responseText === ''
|
|
279
|
+
? null
|
|
280
|
+
: JSON.parse(_responseText, this.jsonParseReviver);
|
|
281
|
+
return throwException('General error', status, _responseText, _headers, result500);
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
else if (status !== 200 && status !== 204) {
|
|
285
|
+
return response.text().then(_responseText => {
|
|
286
|
+
return throwException('An unexpected server error occurred.', status, _responseText, _headers);
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
return Promise.resolve(null);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
exports.Client = Client;
|
|
293
|
+
/** Sometimes we need to know how handle chart installation which may be different for different resource types. */
|
|
294
|
+
var DeployStrategy;
|
|
295
|
+
(function (DeployStrategy) {
|
|
296
|
+
DeployStrategy["RollingUpdate"] = "RollingUpdate";
|
|
297
|
+
DeployStrategy["ReInstall"] = "ReInstall";
|
|
298
|
+
})(DeployStrategy || (exports.DeployStrategy = DeployStrategy = {}));
|
|
299
|
+
/** Exact reason of why a config change may be treated a blocker */
|
|
300
|
+
var MergeBlockerType;
|
|
301
|
+
(function (MergeBlockerType) {
|
|
302
|
+
MergeBlockerType["NewRelease"] = "NewRelease";
|
|
303
|
+
MergeBlockerType["DeletedRelease"] = "DeletedRelease";
|
|
304
|
+
MergeBlockerType["VersionDowngrade"] = "VersionDowngrade";
|
|
305
|
+
MergeBlockerType["ChartChanged"] = "ChartChanged";
|
|
306
|
+
MergeBlockerType["ChartContractChanged"] = "ChartContractChanged";
|
|
307
|
+
})(MergeBlockerType || (exports.MergeBlockerType = MergeBlockerType = {}));
|
|
308
|
+
/** Release synchronization operation type */
|
|
309
|
+
var SyncOperation;
|
|
310
|
+
(function (SyncOperation) {
|
|
311
|
+
SyncOperation["AddRelease"] = "AddRelease";
|
|
312
|
+
SyncOperation["RemoveRelease"] = "RemoveRelease";
|
|
313
|
+
SyncOperation["AlterRelease"] = "AlterRelease";
|
|
314
|
+
})(SyncOperation || (exports.SyncOperation = SyncOperation = {}));
|
|
315
|
+
/** Release synchronization options type */
|
|
316
|
+
var SyncOption;
|
|
317
|
+
(function (SyncOption) {
|
|
318
|
+
SyncOption["DisallowVersionDowngrade"] = "DisallowVersionDowngrade";
|
|
319
|
+
})(SyncOption || (exports.SyncOption = SyncOption = {}));
|
|
320
|
+
class ApiException extends Error {
|
|
321
|
+
message;
|
|
322
|
+
status;
|
|
323
|
+
response;
|
|
324
|
+
headers;
|
|
325
|
+
result;
|
|
326
|
+
constructor(message, status, response, headers, result) {
|
|
327
|
+
super();
|
|
328
|
+
this.message = message;
|
|
329
|
+
this.status = status;
|
|
330
|
+
this.response = response;
|
|
331
|
+
this.headers = headers;
|
|
332
|
+
this.result = result;
|
|
333
|
+
}
|
|
334
|
+
isApiException = true;
|
|
335
|
+
static isApiException(obj) {
|
|
336
|
+
return obj.isApiException === true;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
exports.ApiException = ApiException;
|
|
340
|
+
function throwException(message, status, response, headers, result) {
|
|
341
|
+
if (result !== null && result !== undefined)
|
|
342
|
+
throw result;
|
|
343
|
+
else
|
|
344
|
+
throw new ApiException(message, status, response, headers, null);
|
|
345
|
+
}
|
|
346
|
+
//# 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;AACnB,4HAA4H;AAC5H,oBAAoB;AACpB,yBAAyB;;;AA8BzB,MAAa,MAAM;IACT,IAAI,CAAoE;IACxE,OAAO,CAAQ;IACb,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ACd,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
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@targetprocess/equalizer-client",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Client for the clusters configuration synchronization service",
|
|
5
|
+
"files": [
|
|
6
|
+
"bin/src"
|
|
7
|
+
],
|
|
8
|
+
"main": "bin/src/client.js",
|
|
9
|
+
"typings": "bin/src/client.d.ts",
|
|
10
|
+
"scripts": {
|
|
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"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"sdk"
|
|
19
|
+
],
|
|
20
|
+
"author": "Ilya Dus <dus@targetprocess.com>",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/node": "^22.13.1"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"cross-fetch": "3.x"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "https://github.com/TargetProcess/ci-cd_octopus"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
}
|
|
35
|
+
}
|