@targetprocess/global-yaft-client 0.4.0 → 0.6.0-alpha.1
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/CHANGELOG.md +11 -0
- package/bin/src/index.d.ts +123 -0
- package/bin/src/index.d.ts.map +1 -1
- package/bin/src/index.js +202 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.5.0](https://gitlab.tpondemand.net/infrastructure/yaft/compare/@targetprocess/global-yaft-client@0.4.0...@targetprocess/global-yaft-client@0.5.0) (2022-01-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **global-yaft:** add feature toggles slice endpoint ([130de9a](https://gitlab.tpondemand.net/infrastructure/yaft/commit/130de9ae5987b817e938d2e5653fdfb3b0992d0d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [0.4.0](https://gitlab.tpondemand.net/infrastructure/yaft/compare/@targetprocess/global-yaft-client@0.3.1...@targetprocess/global-yaft-client@0.4.0) (2022-01-19)
|
|
7
18
|
|
|
8
19
|
|
package/bin/src/index.d.ts
CHANGED
|
@@ -120,6 +120,25 @@ export interface IGlobalYaftClient {
|
|
|
120
120
|
* @return Successful response
|
|
121
121
|
*/
|
|
122
122
|
search(namePattern: string | null | undefined): Promise<Feature[]>;
|
|
123
|
+
/**
|
|
124
|
+
* Search feature toggles audit entries
|
|
125
|
+
* @param auditQuery Feature toggle audit query
|
|
126
|
+
* @return Successful response
|
|
127
|
+
*/
|
|
128
|
+
searchAuditEntries(auditQuery: AuditEntryQuery): Promise<AuditEntry[]>;
|
|
129
|
+
/**
|
|
130
|
+
* Get all feature toggles audit identities
|
|
131
|
+
* @return Successful response
|
|
132
|
+
*/
|
|
133
|
+
getAuditIdentities(): Promise<AuditIdentity[]>;
|
|
134
|
+
/**
|
|
135
|
+
* Get specified feature toggle state on all environments
|
|
136
|
+
* @param featureName Feature name
|
|
137
|
+
* @return Successful response
|
|
138
|
+
*/
|
|
139
|
+
getFeatureToggleStateSlice(featureName: string): Promise<{
|
|
140
|
+
[key: string]: FeatureToggleSlicePerCluster;
|
|
141
|
+
}>;
|
|
123
142
|
}
|
|
124
143
|
export declare class GlobalYaftClient implements IGlobalYaftClient {
|
|
125
144
|
private http;
|
|
@@ -289,6 +308,30 @@ export declare class GlobalYaftClient implements IGlobalYaftClient {
|
|
|
289
308
|
*/
|
|
290
309
|
search(namePattern: string | null | undefined): Promise<Feature[]>;
|
|
291
310
|
protected processSearch(response: Response): Promise<Feature[]>;
|
|
311
|
+
/**
|
|
312
|
+
* Search feature toggles audit entries
|
|
313
|
+
* @param auditQuery Feature toggle audit query
|
|
314
|
+
* @return Successful response
|
|
315
|
+
*/
|
|
316
|
+
searchAuditEntries(auditQuery: AuditEntryQuery): Promise<AuditEntry[]>;
|
|
317
|
+
protected processSearchAuditEntries(response: Response): Promise<AuditEntry[]>;
|
|
318
|
+
/**
|
|
319
|
+
* Get all feature toggles audit identities
|
|
320
|
+
* @return Successful response
|
|
321
|
+
*/
|
|
322
|
+
getAuditIdentities(): Promise<AuditIdentity[]>;
|
|
323
|
+
protected processGetAuditIdentities(response: Response): Promise<AuditIdentity[]>;
|
|
324
|
+
/**
|
|
325
|
+
* Get specified feature toggle state on all environments
|
|
326
|
+
* @param featureName Feature name
|
|
327
|
+
* @return Successful response
|
|
328
|
+
*/
|
|
329
|
+
getFeatureToggleStateSlice(featureName: string): Promise<{
|
|
330
|
+
[key: string]: FeatureToggleSlicePerCluster;
|
|
331
|
+
}>;
|
|
332
|
+
protected processGetFeatureToggleStateSlice(response: Response): Promise<{
|
|
333
|
+
[key: string]: FeatureToggleSlicePerCluster;
|
|
334
|
+
}>;
|
|
292
335
|
}
|
|
293
336
|
export interface Feature {
|
|
294
337
|
/** Feature name */
|
|
@@ -312,6 +355,78 @@ export interface PatchDocument {
|
|
|
312
355
|
/** A string containing a JSON Pointer value. */
|
|
313
356
|
from?: string | undefined;
|
|
314
357
|
}
|
|
358
|
+
export interface FeatureToggleSlice {
|
|
359
|
+
[key: string]: FeatureToggleSlicePerCluster;
|
|
360
|
+
}
|
|
361
|
+
export interface FeatureToggleSlicePerCluster {
|
|
362
|
+
clusterState?: boolean | undefined;
|
|
363
|
+
accountsState: {
|
|
364
|
+
[key: string]: boolean;
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
/** Type of identity: * service - service identifier (e.g. OIDC service identifier) * user - user identifier (e.g. email or other claims taken from JWT) * unknown - shouldn't appear in production data (except for testing and old data migration purposes) */
|
|
368
|
+
export declare enum AuditIdentityType {
|
|
369
|
+
Service = "service",
|
|
370
|
+
User = "user",
|
|
371
|
+
Unknown = "unknown"
|
|
372
|
+
}
|
|
373
|
+
/** Type of change: * createdOn - new feature toggle was created in ON state * createdOff - new feature toggle was created in OFF state * toggledOn - existing feature toggle was switched from OFF to ON state * toggledOff - existing feature toggle was switched from ON to OFF state * deleted - existing feature toggle state was deleted (i.e. changed to undefined) */
|
|
374
|
+
export declare enum AuditModificationType {
|
|
375
|
+
CreatedOn = "createdOn",
|
|
376
|
+
CreatedOff = "createdOff",
|
|
377
|
+
ToggledOn = "toggledOn",
|
|
378
|
+
ToggledOff = "toggledOff",
|
|
379
|
+
Deleted = "deleted"
|
|
380
|
+
}
|
|
381
|
+
/** Identity initiating the audited feature toggles change event */
|
|
382
|
+
export interface AuditIdentity {
|
|
383
|
+
/** Identity unique ID */
|
|
384
|
+
id: number;
|
|
385
|
+
/** Identity name or other human-readable specifier */
|
|
386
|
+
name: string;
|
|
387
|
+
identityType: AuditIdentityType;
|
|
388
|
+
}
|
|
389
|
+
/** Entry about specific change applied to single feature toggle */
|
|
390
|
+
export interface AuditEntry {
|
|
391
|
+
/** Audit entry unique ID */
|
|
392
|
+
id: number;
|
|
393
|
+
identity: AuditIdentity;
|
|
394
|
+
/** Date & time when change was applied */
|
|
395
|
+
modificationDate: Date;
|
|
396
|
+
modificationType: AuditModificationType;
|
|
397
|
+
/** The name of the feature which toggle state was changed */
|
|
398
|
+
featureName: string;
|
|
399
|
+
/** The name of the cluster for which the feature toggle change was applied (or to which the affected account belongs - in case the change was applied to specific cluster) */
|
|
400
|
+
clusterName: string;
|
|
401
|
+
/** The name of the account for which the feature toggle change was applied (should be undefined in case the change was applied to whole cluster) */
|
|
402
|
+
accountName?: string | undefined;
|
|
403
|
+
/** Some explanation of executed feature toggle change */
|
|
404
|
+
comment?: string | undefined;
|
|
405
|
+
}
|
|
406
|
+
/** Set of mutually inclusive conditions applied during feature toggle audit events search */
|
|
407
|
+
export interface AuditFilter {
|
|
408
|
+
/** The minimum date-time of feature toggle event to search for */
|
|
409
|
+
modificationDateFrom?: Date | undefined;
|
|
410
|
+
/** The maximum date-time of feature toggle event to search for */
|
|
411
|
+
modificationDateTo?: Date | undefined;
|
|
412
|
+
/** The name of the feature which toggle events to search for */
|
|
413
|
+
featureName?: string | undefined;
|
|
414
|
+
modificationType?: AuditModificationType | undefined;
|
|
415
|
+
/** The name of the cluster which feature toggle events to search for */
|
|
416
|
+
clusterName?: string | undefined;
|
|
417
|
+
/** The name of the account which feature toggle events to search for */
|
|
418
|
+
accountName?: string | undefined;
|
|
419
|
+
/** The identifier of the person or service triggering the feature toggle event to search for */
|
|
420
|
+
identityName?: string | undefined;
|
|
421
|
+
identityType?: AuditIdentityType | undefined;
|
|
422
|
+
}
|
|
423
|
+
/** Query specifying the filters that need to be applied when searching audit data entries */
|
|
424
|
+
export interface AuditEntryQuery {
|
|
425
|
+
/** Array of mutually inclusive filters limiting the search results */
|
|
426
|
+
filters?: AuditFilter[] | undefined;
|
|
427
|
+
/** Pagination settings */
|
|
428
|
+
paging: Paging;
|
|
429
|
+
}
|
|
315
430
|
export declare enum PatchDocumentOp {
|
|
316
431
|
Add = "add",
|
|
317
432
|
Remove = "remove",
|
|
@@ -320,6 +435,14 @@ export declare enum PatchDocumentOp {
|
|
|
320
435
|
Copy = "copy",
|
|
321
436
|
Test = "test"
|
|
322
437
|
}
|
|
438
|
+
export interface Paging {
|
|
439
|
+
/** Maximum ID of resulting entities to return (mutually exclusive with entryIdAfter) */
|
|
440
|
+
entryIdBefore?: number | undefined;
|
|
441
|
+
/** Minimum ID of resulting entities to return (mutually exclusive with entryIdAfter) */
|
|
442
|
+
entryIdAfter?: number | undefined;
|
|
443
|
+
/** Requested number of resulting objects */
|
|
444
|
+
take: number;
|
|
445
|
+
}
|
|
323
446
|
export declare class ApiException extends Error {
|
|
324
447
|
message: string;
|
|
325
448
|
status: number;
|
package/bin/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAAE,CAAC,CAAC;IACpF;;;;OAIG;IACH,0BAA0B,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAAE,CAAC,CAAC;IAChH;;;;;OAKG;IACH,+BAA+B,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAAE,CAAC,CAAC;IAChH;;;;;OAKG;IACH,iCAAiC,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,C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AAI,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,YAAa,SAAQ,KAAK;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,CAAC;IACjC,MAAM,EAAE,GAAG,CAAC;gBAEA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,EAAE,MAAM,EAAE,GAAG;IAU5G,SAAS,CAAC,cAAc,UAAQ;IAEhC,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,YAAY;CAGvD"}
|
package/bin/src/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
//----------------------
|
|
9
9
|
// ReSharper disable InconsistentNaming
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.ApiException = exports.PatchDocumentOp = exports.GlobalYaftClient = void 0;
|
|
11
|
+
exports.ApiException = exports.PatchDocumentOp = exports.AuditModificationType = exports.AuditIdentityType = exports.GlobalYaftClient = void 0;
|
|
12
12
|
class GlobalYaftClient {
|
|
13
13
|
constructor(baseUrl, http) {
|
|
14
14
|
this.jsonParseReviver = undefined;
|
|
@@ -1066,8 +1066,209 @@ class GlobalYaftClient {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
return Promise.resolve(null);
|
|
1068
1068
|
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Search feature toggles audit entries
|
|
1071
|
+
* @param auditQuery Feature toggle audit query
|
|
1072
|
+
* @return Successful response
|
|
1073
|
+
*/
|
|
1074
|
+
searchAuditEntries(auditQuery) {
|
|
1075
|
+
let url_ = this.baseUrl + "/features/audit/search";
|
|
1076
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1077
|
+
const content_ = JSON.stringify(auditQuery);
|
|
1078
|
+
let options_ = {
|
|
1079
|
+
body: content_,
|
|
1080
|
+
method: "POST",
|
|
1081
|
+
headers: {
|
|
1082
|
+
"Content-Type": "application/json",
|
|
1083
|
+
"Accept": "application/json"
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1086
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
1087
|
+
return this.processSearchAuditEntries(_response);
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
processSearchAuditEntries(response) {
|
|
1091
|
+
const status = response.status;
|
|
1092
|
+
let _headers = {};
|
|
1093
|
+
if (response.headers && response.headers.forEach) {
|
|
1094
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1095
|
+
}
|
|
1096
|
+
;
|
|
1097
|
+
if (status === 200) {
|
|
1098
|
+
return response.text().then((_responseText) => {
|
|
1099
|
+
let result200 = null;
|
|
1100
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1101
|
+
return result200;
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
else if (status === 401) {
|
|
1105
|
+
return response.text().then((_responseText) => {
|
|
1106
|
+
let result401 = null;
|
|
1107
|
+
result401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1108
|
+
return throwException("Unauthorized", status, _responseText, _headers, result401);
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
else if (status === 403) {
|
|
1112
|
+
return response.text().then((_responseText) => {
|
|
1113
|
+
let result403 = null;
|
|
1114
|
+
result403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1115
|
+
return throwException("Forbidden", status, _responseText, _headers, result403);
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
else if (status === 500) {
|
|
1119
|
+
return response.text().then((_responseText) => {
|
|
1120
|
+
let result500 = null;
|
|
1121
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1122
|
+
return throwException("General error", status, _responseText, _headers, result500);
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
else if (status !== 200 && status !== 204) {
|
|
1126
|
+
return response.text().then((_responseText) => {
|
|
1127
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
return Promise.resolve(null);
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* Get all feature toggles audit identities
|
|
1134
|
+
* @return Successful response
|
|
1135
|
+
*/
|
|
1136
|
+
getAuditIdentities() {
|
|
1137
|
+
let url_ = this.baseUrl + "/features/audit/identities";
|
|
1138
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1139
|
+
let options_ = {
|
|
1140
|
+
method: "GET",
|
|
1141
|
+
headers: {
|
|
1142
|
+
"Accept": "application/json"
|
|
1143
|
+
}
|
|
1144
|
+
};
|
|
1145
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
1146
|
+
return this.processGetAuditIdentities(_response);
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
processGetAuditIdentities(response) {
|
|
1150
|
+
const status = response.status;
|
|
1151
|
+
let _headers = {};
|
|
1152
|
+
if (response.headers && response.headers.forEach) {
|
|
1153
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1154
|
+
}
|
|
1155
|
+
;
|
|
1156
|
+
if (status === 200) {
|
|
1157
|
+
return response.text().then((_responseText) => {
|
|
1158
|
+
let result200 = null;
|
|
1159
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1160
|
+
return result200;
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
else if (status === 401) {
|
|
1164
|
+
return response.text().then((_responseText) => {
|
|
1165
|
+
let result401 = null;
|
|
1166
|
+
result401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1167
|
+
return throwException("Unauthorized", status, _responseText, _headers, result401);
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
else if (status === 403) {
|
|
1171
|
+
return response.text().then((_responseText) => {
|
|
1172
|
+
let result403 = null;
|
|
1173
|
+
result403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1174
|
+
return throwException("Forbidden", status, _responseText, _headers, result403);
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
else if (status === 500) {
|
|
1178
|
+
return response.text().then((_responseText) => {
|
|
1179
|
+
let result500 = null;
|
|
1180
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1181
|
+
return throwException("General error", status, _responseText, _headers, result500);
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
else if (status !== 200 && status !== 204) {
|
|
1185
|
+
return response.text().then((_responseText) => {
|
|
1186
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
return Promise.resolve(null);
|
|
1190
|
+
}
|
|
1191
|
+
/**
|
|
1192
|
+
* Get specified feature toggle state on all environments
|
|
1193
|
+
* @param featureName Feature name
|
|
1194
|
+
* @return Successful response
|
|
1195
|
+
*/
|
|
1196
|
+
getFeatureToggleStateSlice(featureName) {
|
|
1197
|
+
let url_ = this.baseUrl + "/feature-toggles/slice/{featureName}";
|
|
1198
|
+
if (featureName === undefined || featureName === null)
|
|
1199
|
+
throw new Error("The parameter 'featureName' must be defined.");
|
|
1200
|
+
url_ = url_.replace("{featureName}", encodeURIComponent("" + featureName));
|
|
1201
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
1202
|
+
let options_ = {
|
|
1203
|
+
method: "GET",
|
|
1204
|
+
headers: {
|
|
1205
|
+
"Accept": "application/json"
|
|
1206
|
+
}
|
|
1207
|
+
};
|
|
1208
|
+
return this.http.fetch(url_, options_).then((_response) => {
|
|
1209
|
+
return this.processGetFeatureToggleStateSlice(_response);
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
processGetFeatureToggleStateSlice(response) {
|
|
1213
|
+
const status = response.status;
|
|
1214
|
+
let _headers = {};
|
|
1215
|
+
if (response.headers && response.headers.forEach) {
|
|
1216
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
1217
|
+
}
|
|
1218
|
+
;
|
|
1219
|
+
if (status === 200) {
|
|
1220
|
+
return response.text().then((_responseText) => {
|
|
1221
|
+
let result200 = null;
|
|
1222
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1223
|
+
return result200;
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
else if (status === 401) {
|
|
1227
|
+
return response.text().then((_responseText) => {
|
|
1228
|
+
let result401 = null;
|
|
1229
|
+
result401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1230
|
+
return throwException("Unauthorized", status, _responseText, _headers, result401);
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
else if (status === 403) {
|
|
1234
|
+
return response.text().then((_responseText) => {
|
|
1235
|
+
let result403 = null;
|
|
1236
|
+
result403 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1237
|
+
return throwException("Forbidden", status, _responseText, _headers, result403);
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
else if (status === 500) {
|
|
1241
|
+
return response.text().then((_responseText) => {
|
|
1242
|
+
let result500 = null;
|
|
1243
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
1244
|
+
return throwException("General error", status, _responseText, _headers, result500);
|
|
1245
|
+
});
|
|
1246
|
+
}
|
|
1247
|
+
else if (status !== 200 && status !== 204) {
|
|
1248
|
+
return response.text().then((_responseText) => {
|
|
1249
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
return Promise.resolve(null);
|
|
1253
|
+
}
|
|
1069
1254
|
}
|
|
1070
1255
|
exports.GlobalYaftClient = GlobalYaftClient;
|
|
1256
|
+
/** Type of identity: * service - service identifier (e.g. OIDC service identifier) * user - user identifier (e.g. email or other claims taken from JWT) * unknown - shouldn't appear in production data (except for testing and old data migration purposes) */
|
|
1257
|
+
var AuditIdentityType;
|
|
1258
|
+
(function (AuditIdentityType) {
|
|
1259
|
+
AuditIdentityType["Service"] = "service";
|
|
1260
|
+
AuditIdentityType["User"] = "user";
|
|
1261
|
+
AuditIdentityType["Unknown"] = "unknown";
|
|
1262
|
+
})(AuditIdentityType = exports.AuditIdentityType || (exports.AuditIdentityType = {}));
|
|
1263
|
+
/** Type of change: * createdOn - new feature toggle was created in ON state * createdOff - new feature toggle was created in OFF state * toggledOn - existing feature toggle was switched from OFF to ON state * toggledOff - existing feature toggle was switched from ON to OFF state * deleted - existing feature toggle state was deleted (i.e. changed to undefined) */
|
|
1264
|
+
var AuditModificationType;
|
|
1265
|
+
(function (AuditModificationType) {
|
|
1266
|
+
AuditModificationType["CreatedOn"] = "createdOn";
|
|
1267
|
+
AuditModificationType["CreatedOff"] = "createdOff";
|
|
1268
|
+
AuditModificationType["ToggledOn"] = "toggledOn";
|
|
1269
|
+
AuditModificationType["ToggledOff"] = "toggledOff";
|
|
1270
|
+
AuditModificationType["Deleted"] = "deleted";
|
|
1271
|
+
})(AuditModificationType = exports.AuditModificationType || (exports.AuditModificationType = {}));
|
|
1071
1272
|
var PatchDocumentOp;
|
|
1072
1273
|
(function (PatchDocumentOp) {
|
|
1073
1274
|
PatchDocumentOp["Add"] = "add";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targetprocess/global-yaft-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0-alpha.1",
|
|
4
4
|
"description": "Client for global-yaft service",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yaft"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "95140083fe3b6afed5706960457907ea368648b5"
|
|
37
37
|
}
|