@evergis/api 5.0.35 → 5.0.37
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/dist/__generated__/ClientSettingsService.d.ts +74 -12
- package/dist/__generated__/data-contracts.d.ts +155 -19
- package/dist/api.esm.js +93 -19
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +92 -18
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1318,7 +1318,7 @@ class ClientSettingsService extends Service {
|
|
|
1318
1318
|
* @tags ClientSettings
|
|
1319
1319
|
* @name GetConfiguration
|
|
1320
1320
|
* @operationId ClientSettingsController_GetConfiguration
|
|
1321
|
-
* @summary Get config for urlPath.
|
|
1321
|
+
* @summary Get config for urlPath, with the current user's role overrides applied.
|
|
1322
1322
|
* @request GET:/settings
|
|
1323
1323
|
* @secure
|
|
1324
1324
|
* @response `200` OK
|
|
@@ -1327,16 +1327,17 @@ class ClientSettingsService extends Service {
|
|
|
1327
1327
|
return this.http.get(`/settings`, query).text();
|
|
1328
1328
|
}
|
|
1329
1329
|
/**
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1330
|
+
* No description
|
|
1331
|
+
*
|
|
1332
|
+
* @tags ClientSettings
|
|
1333
|
+
* @name SetConfiguration
|
|
1334
|
+
* @operationId ClientSettingsController_SetConfiguration
|
|
1335
|
+
* @summary Set config for urlPath. This is an idempotent upsert keyed by urlPath,
|
|
1336
|
+
so `PUT` is the correct verb; `POST` is kept alongside it for existing clients.
|
|
1337
|
+
* @request POST:/settings
|
|
1338
|
+
* @secure
|
|
1339
|
+
* @response `200` OK
|
|
1340
|
+
*/
|
|
1340
1341
|
setConfiguration(query, data) {
|
|
1341
1342
|
return this.http.post(`/settings`, data, query).then(() => { });
|
|
1342
1343
|
}
|
|
@@ -1354,6 +1355,77 @@ class ClientSettingsService extends Service {
|
|
|
1354
1355
|
removeConfiguration(query) {
|
|
1355
1356
|
return this.http.delete(`/settings`, null, query).then(() => { });
|
|
1356
1357
|
}
|
|
1358
|
+
/**
|
|
1359
|
+
* No description
|
|
1360
|
+
*
|
|
1361
|
+
* @tags ClientSettings
|
|
1362
|
+
* @name GetConfigurationOverrides
|
|
1363
|
+
* @operationId ClientSettingsController_GetConfigurationOverrides
|
|
1364
|
+
* @summary Get overrides of a configuration. A superuser sees every role; other users see only their own.
|
|
1365
|
+
* @request GET:/settings/overrides
|
|
1366
|
+
* @secure
|
|
1367
|
+
* @response `200` OK
|
|
1368
|
+
*/
|
|
1369
|
+
getConfigurationOverrides(query) {
|
|
1370
|
+
return this.http.get(`/settings/overrides`, query).json();
|
|
1371
|
+
}
|
|
1372
|
+
/**
|
|
1373
|
+
* No description
|
|
1374
|
+
*
|
|
1375
|
+
* @tags ClientSettings
|
|
1376
|
+
* @name SetConfigurationOverride
|
|
1377
|
+
* @operationId ClientSettingsController_SetConfigurationOverride
|
|
1378
|
+
* @summary Create or update an override for a single configuration element.
|
|
1379
|
+
* @request PUT:/settings/overrides
|
|
1380
|
+
* @secure
|
|
1381
|
+
* @response `200` OK
|
|
1382
|
+
*/
|
|
1383
|
+
setConfigurationOverride(query, data) {
|
|
1384
|
+
return this.http.put(`/settings/overrides`, data, query).then(() => { });
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* No description
|
|
1388
|
+
*
|
|
1389
|
+
* @tags ClientSettings
|
|
1390
|
+
* @name RemoveConfigurationOverride
|
|
1391
|
+
* @operationId ClientSettingsController_RemoveConfigurationOverride
|
|
1392
|
+
* @summary Remove an override of a single configuration element.
|
|
1393
|
+
* @request DELETE:/settings/overrides
|
|
1394
|
+
* @secure
|
|
1395
|
+
* @response `200` OK
|
|
1396
|
+
*/
|
|
1397
|
+
removeConfigurationOverride(query) {
|
|
1398
|
+
return this.http.delete(`/settings/overrides`, null, query).then(() => { });
|
|
1399
|
+
}
|
|
1400
|
+
/**
|
|
1401
|
+
* No description
|
|
1402
|
+
*
|
|
1403
|
+
* @tags ClientSettings
|
|
1404
|
+
* @name SetConfigurationOverridesBatch
|
|
1405
|
+
* @operationId ClientSettingsController_SetConfigurationOverridesBatch
|
|
1406
|
+
* @summary Create or update several overrides of one configuration in a single transaction (all or none).
|
|
1407
|
+
* @request PUT:/settings/overrides/batch
|
|
1408
|
+
* @secure
|
|
1409
|
+
* @response `200` OK
|
|
1410
|
+
*/
|
|
1411
|
+
setConfigurationOverridesBatch(query, data) {
|
|
1412
|
+
return this.http.put(`/settings/overrides/batch`, data, query).then(() => { });
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
* No description
|
|
1416
|
+
*
|
|
1417
|
+
* @tags ClientSettings
|
|
1418
|
+
* @name RemoveConfigurationOverridesBatch
|
|
1419
|
+
* @operationId ClientSettingsController_RemoveConfigurationOverridesBatch
|
|
1420
|
+
* @summary Remove several overrides of one configuration in a single transaction. Idempotent: keys that no
|
|
1421
|
+
longer exist are skipped. Uses POST because a request body is required.
|
|
1422
|
+
* @request POST:/settings/overrides/batch-delete
|
|
1423
|
+
* @secure
|
|
1424
|
+
* @response `200` OK
|
|
1425
|
+
*/
|
|
1426
|
+
removeConfigurationOverridesBatch(query, data) {
|
|
1427
|
+
return this.http.post(`/settings/overrides/batch-delete`, data, query).then(() => { });
|
|
1428
|
+
}
|
|
1357
1429
|
}
|
|
1358
1430
|
|
|
1359
1431
|
class ClientSettings extends ClientSettingsService {
|
|
@@ -3153,13 +3225,6 @@ exports.AttributeIconType = void 0;
|
|
|
3153
3225
|
AttributeIconType["PNG"] = "PNG";
|
|
3154
3226
|
AttributeIconType["SVG"] = "SVG";
|
|
3155
3227
|
})(exports.AttributeIconType || (exports.AttributeIconType = {}));
|
|
3156
|
-
exports.AttributeSelectorType = void 0;
|
|
3157
|
-
(function (AttributeSelectorType) {
|
|
3158
|
-
AttributeSelectorType["None"] = "None";
|
|
3159
|
-
AttributeSelectorType["SelectFromHandBook"] = "SelectFromHandBook";
|
|
3160
|
-
AttributeSelectorType["SelectFromRange"] = "SelectFromRange";
|
|
3161
|
-
AttributeSelectorType["ViewHandBook"] = "ViewHandBook";
|
|
3162
|
-
})(exports.AttributeSelectorType || (exports.AttributeSelectorType = {}));
|
|
3163
3228
|
exports.AttributeType = void 0;
|
|
3164
3229
|
(function (AttributeType) {
|
|
3165
3230
|
AttributeType["Unknown"] = "Unknown";
|
|
@@ -3211,6 +3276,15 @@ exports.ClassifyAttributeType = void 0;
|
|
|
3211
3276
|
ClassifyAttributeType["DateTime"] = "dateTime";
|
|
3212
3277
|
ClassifyAttributeType["Text"] = "text";
|
|
3213
3278
|
})(exports.ClassifyAttributeType || (exports.ClassifyAttributeType = {}));
|
|
3279
|
+
/**
|
|
3280
|
+
* Kind of change an override applies to a configuration element (RFC 6902 semantics).
|
|
3281
|
+
*/
|
|
3282
|
+
exports.ConfigOperationType = void 0;
|
|
3283
|
+
(function (ConfigOperationType) {
|
|
3284
|
+
ConfigOperationType["Replace"] = "Replace";
|
|
3285
|
+
ConfigOperationType["Remove"] = "Remove";
|
|
3286
|
+
ConfigOperationType["Add"] = "Add";
|
|
3287
|
+
})(exports.ConfigOperationType || (exports.ConfigOperationType = {}));
|
|
3214
3288
|
exports.ConflictResolutionStrategy = void 0;
|
|
3215
3289
|
(function (ConflictResolutionStrategy) {
|
|
3216
3290
|
ConflictResolutionStrategy["Skip"] = "Skip";
|