@extrahorizon/javascript-sdk 8.9.0-dev-137-14a5300 → 8.9.0-dev-139-729209a
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 +7 -0
- package/build/index.cjs.js +38 -88
- package/build/index.mjs +38 -88
- package/build/types/mockType.d.ts +27 -21
- package/build/types/services/auth/oidc/providers/types.d.ts +4 -0
- package/build/types/services/events/index.d.ts +1 -2
- package/build/types/services/events/types.d.ts +5 -0
- package/build/types/services/localizations/index.d.ts +1 -2
- package/build/types/services/localizations/types.d.ts +5 -0
- package/build/types/services/notifications/index.d.ts +1 -2
- package/build/types/services/notifications/types.d.ts +5 -0
- package/build/types/services/notificationsV2/index.d.ts +1 -2
- package/build/types/services/notificationsV2/types.d.ts +5 -0
- package/build/types/services/profiles/index.d.ts +1 -2
- package/build/types/services/profiles/types.d.ts +5 -0
- package/build/types/services/tasks/schedules/types.d.ts +4 -0
- package/build/types/services/tasks/types.d.ts +11 -0
- package/build/types/services/templates/types.d.ts +12 -10
- package/build/types/services/templatesV2/index.d.ts +1 -2
- package/build/types/services/templatesV2/types.d.ts +5 -0
- package/build/types/services/users/index.d.ts +2 -4
- package/build/types/services/users/types.d.ts +5 -0
- package/build/types/types.d.ts +1 -0
- package/build/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/build/types/services/events/health.d.ts +0 -9
- package/build/types/services/localizations/health.d.ts +0 -9
- package/build/types/services/notifications/health.d.ts +0 -9
- package/build/types/services/notificationsV2/health.d.ts +0 -9
- package/build/types/services/profiles/health.d.ts +0 -9
- package/build/types/services/templatesV2/health.d.ts +0 -9
- package/build/types/services/users/health.d.ts +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
10
10
|
### Added
|
|
11
11
|
- Added the `exh.tasks.functions` methods `find`, `getByName`, `update`, `enable`, `disable` and `remove`
|
|
12
12
|
- Added a `exh.users.findByEmail` method to find a user by their email address.
|
|
13
|
+
- Completed the `Task` type for changes made in TaskService 1.3.0 a while ago:
|
|
14
|
+
- Added the `retriedByTaskId`, `retryForTaskIds`, and `error` properties.
|
|
15
|
+
- Added the `retried` status.
|
|
16
|
+
|
|
17
|
+
### Deprecated
|
|
18
|
+
- `exh.tasks.schedules.delete` is deprecated in favor of `exh.tasks.schedules.remove`
|
|
19
|
+
- `exh.auth.oidc.providers.delete` is deprecated in favor of `exh.auth.oidc.providers.remove`
|
|
13
20
|
|
|
14
21
|
### Fixed
|
|
15
22
|
- Corrected the types for the `findFirst` (based) methods to indicate they may return `undefined` when no results are found.
|
package/build/index.cjs.js
CHANGED
|
@@ -1015,6 +1015,7 @@ exports.TaskStatus = void 0;
|
|
|
1015
1015
|
TaskStatus["IN_PROGRESS"] = "inProgress";
|
|
1016
1016
|
TaskStatus["COMPLETE"] = "complete";
|
|
1017
1017
|
TaskStatus["FAILED"] = "failed";
|
|
1018
|
+
TaskStatus["RETRIED"] = "retried";
|
|
1018
1019
|
TaskStatus["CANCELED"] = "canceled";
|
|
1019
1020
|
})(exports.TaskStatus || (exports.TaskStatus = {}));
|
|
1020
1021
|
|
|
@@ -3474,10 +3475,13 @@ var providers = (oidcClient, httpWithAuth) => {
|
|
|
3474
3475
|
const { data } = await oidcClient.post(httpWithAuth, `/oidc/providers/${providerId}/disable`, {});
|
|
3475
3476
|
return data;
|
|
3476
3477
|
},
|
|
3477
|
-
async
|
|
3478
|
+
async remove(providerId) {
|
|
3478
3479
|
const { data } = await oidcClient.delete(httpWithAuth, `/oidc/providers/${providerId}`);
|
|
3479
3480
|
return data;
|
|
3480
3481
|
},
|
|
3482
|
+
delete(providerId) {
|
|
3483
|
+
return this.remove(providerId);
|
|
3484
|
+
},
|
|
3481
3485
|
};
|
|
3482
3486
|
};
|
|
3483
3487
|
|
|
@@ -4097,10 +4101,13 @@ var schedules = (client, httpAuth) => {
|
|
|
4097
4101
|
});
|
|
4098
4102
|
return data;
|
|
4099
4103
|
},
|
|
4100
|
-
async
|
|
4104
|
+
async remove(scheduleId, options) {
|
|
4101
4105
|
const { data } = await client.delete(httpAuth, `/schedules/${scheduleId}`, options);
|
|
4102
4106
|
return data;
|
|
4103
4107
|
},
|
|
4108
|
+
delete(scheduleId, options) {
|
|
4109
|
+
return this.remove(scheduleId, options);
|
|
4110
|
+
},
|
|
4104
4111
|
async find(options) {
|
|
4105
4112
|
const result = await query(options);
|
|
4106
4113
|
return addPagersFn(query, options, result);
|
|
@@ -4308,17 +4315,6 @@ var groupRoles = (client, httpWithAuth) => ({
|
|
|
4308
4315
|
},
|
|
4309
4316
|
});
|
|
4310
4317
|
|
|
4311
|
-
var health$7 = (userClient, http) => ({
|
|
4312
|
-
/**
|
|
4313
|
-
* Perform a health check
|
|
4314
|
-
* @returns {boolean} success
|
|
4315
|
-
*/
|
|
4316
|
-
async health() {
|
|
4317
|
-
const result = await userClient.get(http, '/health');
|
|
4318
|
-
return result.status === exports.Results.Success;
|
|
4319
|
-
},
|
|
4320
|
-
});
|
|
4321
|
-
|
|
4322
4318
|
const settingsService = (client, httpWithAuth) => ({
|
|
4323
4319
|
async getVerificationSettings(options) {
|
|
4324
4320
|
const response = await client.get(httpWithAuth, '/settings/verification', options);
|
|
@@ -4501,6 +4497,10 @@ var users$1 = (userClient, httpWithAuth, http) => {
|
|
|
4501
4497
|
const { data } = await userClient.put(httpWithAuth, '/email_templates', templates);
|
|
4502
4498
|
return data;
|
|
4503
4499
|
},
|
|
4500
|
+
async health() {
|
|
4501
|
+
const result = await userClient.get(http, '/health');
|
|
4502
|
+
return result.status === 200;
|
|
4503
|
+
},
|
|
4504
4504
|
};
|
|
4505
4505
|
};
|
|
4506
4506
|
|
|
@@ -4509,7 +4509,6 @@ const usersService = (httpWithAuth, http) => {
|
|
|
4509
4509
|
basePath: USER_BASE,
|
|
4510
4510
|
transformRequestData: decamelizeRequestData,
|
|
4511
4511
|
});
|
|
4512
|
-
const healthMethods = health$7(userClient, httpWithAuth);
|
|
4513
4512
|
const usersMethods = users$1(userClient, httpWithAuth, http);
|
|
4514
4513
|
const groupRolesMethods = groupRoles(userClient, httpWithAuth);
|
|
4515
4514
|
const globalRolesMethods = globalRoles(userClient, httpWithAuth);
|
|
@@ -4517,7 +4516,6 @@ const usersService = (httpWithAuth, http) => {
|
|
|
4517
4516
|
const forgotPasswordRequestsMethods = forgotPasswordRequestsService(userClient, httpWithAuth);
|
|
4518
4517
|
const settingsMethods = settingsService(userClient, httpWithAuth);
|
|
4519
4518
|
return {
|
|
4520
|
-
...healthMethods,
|
|
4521
4519
|
...usersMethods,
|
|
4522
4520
|
groupRoles: groupRolesMethods,
|
|
4523
4521
|
globalRoles: globalRolesMethods,
|
|
@@ -4899,7 +4897,7 @@ var appStoreSubscriptions = (client, httpAuth) => ({
|
|
|
4899
4897
|
},
|
|
4900
4898
|
});
|
|
4901
4899
|
|
|
4902
|
-
var health
|
|
4900
|
+
var health = (client, httpAuth) => ({
|
|
4903
4901
|
/**
|
|
4904
4902
|
* Check if the service is available
|
|
4905
4903
|
* @returns true if service is up and running
|
|
@@ -5103,7 +5101,7 @@ const paymentsService = (httpWithAuth) => {
|
|
|
5103
5101
|
basePath: PAYMENTS_BASE,
|
|
5104
5102
|
});
|
|
5105
5103
|
return {
|
|
5106
|
-
...health
|
|
5104
|
+
...health(client, httpWithAuth),
|
|
5107
5105
|
products: products(client, httpWithAuth),
|
|
5108
5106
|
orders: orders(client, httpWithAuth),
|
|
5109
5107
|
subscriptions: subscriptions$1(client, httpWithAuth),
|
|
@@ -5125,17 +5123,6 @@ var countries = (client, httpAuth) => ({
|
|
|
5125
5123
|
},
|
|
5126
5124
|
});
|
|
5127
5125
|
|
|
5128
|
-
var health$5 = (client, http) => ({
|
|
5129
|
-
/**
|
|
5130
|
-
* Perform a health check
|
|
5131
|
-
* @returns {boolean} success
|
|
5132
|
-
*/
|
|
5133
|
-
async health() {
|
|
5134
|
-
const result = await client.get(http, '/health');
|
|
5135
|
-
return result.status === exports.Results.Success;
|
|
5136
|
-
},
|
|
5137
|
-
});
|
|
5138
|
-
|
|
5139
5126
|
var languages = (client, httpAuth) => ({
|
|
5140
5127
|
async getLanguages(options) {
|
|
5141
5128
|
return (await client.get(httpAuth, '/languages', options)).data.data;
|
|
@@ -5169,6 +5156,10 @@ var localizations = (client, httpAuth) => ({
|
|
|
5169
5156
|
customResponseKeys: ['*'],
|
|
5170
5157
|
})).data;
|
|
5171
5158
|
},
|
|
5159
|
+
async health() {
|
|
5160
|
+
const result = await client.get(httpAuth, '/health');
|
|
5161
|
+
return result.status === 200;
|
|
5162
|
+
},
|
|
5172
5163
|
});
|
|
5173
5164
|
|
|
5174
5165
|
const localizationsService = (httpWithAuth) => {
|
|
@@ -5177,7 +5168,6 @@ const localizationsService = (httpWithAuth) => {
|
|
|
5177
5168
|
basePath: LOCALIZATIONS_BASE,
|
|
5178
5169
|
});
|
|
5179
5170
|
return {
|
|
5180
|
-
...health$5(client, httpWithAuth),
|
|
5181
5171
|
...localizations(client, httpWithAuth),
|
|
5182
5172
|
...countries(client, httpWithAuth),
|
|
5183
5173
|
...languages(client, httpWithAuth),
|
|
@@ -5202,17 +5192,6 @@ var groups = (client, httpAuth) => ({
|
|
|
5202
5192
|
},
|
|
5203
5193
|
});
|
|
5204
5194
|
|
|
5205
|
-
var health$4 = (client, httpAuth) => ({
|
|
5206
|
-
/**
|
|
5207
|
-
* Perform a health check for profiles service
|
|
5208
|
-
* @returns {boolean} success
|
|
5209
|
-
*/
|
|
5210
|
-
async health() {
|
|
5211
|
-
const result = await client.get(httpAuth, '/health');
|
|
5212
|
-
return result.status === exports.Results.Success;
|
|
5213
|
-
},
|
|
5214
|
-
});
|
|
5215
|
-
|
|
5216
5195
|
var logs = (client, httpAuth) => {
|
|
5217
5196
|
function partialApplyFind(profileId, groupId) {
|
|
5218
5197
|
return async (options) => (await client.get(httpAuth, `/${profileId}/groups/${groupId}/logs/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, options)).data;
|
|
@@ -5283,6 +5262,10 @@ var profiles = (client, httpAuth) => ({
|
|
|
5283
5262
|
async getImpediments(options) {
|
|
5284
5263
|
return (await client.get(httpAuth, '/impediments', options)).data;
|
|
5285
5264
|
},
|
|
5265
|
+
async health() {
|
|
5266
|
+
const result = await client.get(httpAuth, '/health');
|
|
5267
|
+
return result.status === 200;
|
|
5268
|
+
},
|
|
5286
5269
|
});
|
|
5287
5270
|
|
|
5288
5271
|
const profilesService = (httpWithAuth) => {
|
|
@@ -5291,24 +5274,12 @@ const profilesService = (httpWithAuth) => {
|
|
|
5291
5274
|
basePath: PROFILES_BASE,
|
|
5292
5275
|
});
|
|
5293
5276
|
return {
|
|
5294
|
-
...health$4(client, httpWithAuth),
|
|
5295
5277
|
...profiles(client, httpWithAuth),
|
|
5296
5278
|
groups: groups(client, httpWithAuth),
|
|
5297
5279
|
logs: logs(client, httpWithAuth),
|
|
5298
5280
|
};
|
|
5299
5281
|
};
|
|
5300
5282
|
|
|
5301
|
-
var health$3 = (client, http) => ({
|
|
5302
|
-
/**
|
|
5303
|
-
* Perform a health check
|
|
5304
|
-
* @returns {boolean} success
|
|
5305
|
-
*/
|
|
5306
|
-
async health() {
|
|
5307
|
-
const result = await client.get(http, '/health');
|
|
5308
|
-
return result.status === exports.Results.Success;
|
|
5309
|
-
},
|
|
5310
|
-
});
|
|
5311
|
-
|
|
5312
5283
|
var notifications = (client, httpAuth) => {
|
|
5313
5284
|
async function find(options) {
|
|
5314
5285
|
return (await client.get(httpAuth, `/notifications${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, options)).data;
|
|
@@ -5354,6 +5325,10 @@ var notifications = (client, httpAuth) => {
|
|
|
5354
5325
|
async getTypes(options) {
|
|
5355
5326
|
return (await client.get(httpAuth, '/types', options)).data;
|
|
5356
5327
|
},
|
|
5328
|
+
async health() {
|
|
5329
|
+
const result = await client.get(httpAuth, '/health');
|
|
5330
|
+
return result.status === 200;
|
|
5331
|
+
},
|
|
5357
5332
|
};
|
|
5358
5333
|
};
|
|
5359
5334
|
|
|
@@ -5383,23 +5358,11 @@ const notificationsService = (httpWithAuth) => {
|
|
|
5383
5358
|
transformRequestData: decamelizeRequestData,
|
|
5384
5359
|
});
|
|
5385
5360
|
return {
|
|
5386
|
-
...health$3(client, httpWithAuth),
|
|
5387
5361
|
...notifications(client, httpWithAuth),
|
|
5388
5362
|
settings: settings(client, httpWithAuth),
|
|
5389
5363
|
};
|
|
5390
5364
|
};
|
|
5391
5365
|
|
|
5392
|
-
var health$2 = (client, http) => ({
|
|
5393
|
-
/**
|
|
5394
|
-
* Perform a health check
|
|
5395
|
-
* @returns {boolean} success
|
|
5396
|
-
*/
|
|
5397
|
-
async health() {
|
|
5398
|
-
const result = await client.get(http, '/health');
|
|
5399
|
-
return result.status === exports.Results.Success;
|
|
5400
|
-
},
|
|
5401
|
-
});
|
|
5402
|
-
|
|
5403
5366
|
var notificationsV2 = (client, httpWithAuth) => {
|
|
5404
5367
|
async function find(options) {
|
|
5405
5368
|
const result = await client.get(httpWithAuth, `/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, {
|
|
@@ -5436,6 +5399,10 @@ var notificationsV2 = (client, httpWithAuth) => {
|
|
|
5436
5399
|
const rqlWithNotificationId = rqlBuilder().eq('id', notificationId).build();
|
|
5437
5400
|
return await this.findFirst({ ...options, rql: rqlWithNotificationId });
|
|
5438
5401
|
},
|
|
5402
|
+
async health() {
|
|
5403
|
+
const result = await client.get(httpWithAuth, '/health');
|
|
5404
|
+
return result.status === 200;
|
|
5405
|
+
},
|
|
5439
5406
|
};
|
|
5440
5407
|
};
|
|
5441
5408
|
|
|
@@ -5484,7 +5451,6 @@ const notificationsV2Service = (httpWithAuth) => {
|
|
|
5484
5451
|
basePath: NOTIFICATIONS_V2_BASE,
|
|
5485
5452
|
});
|
|
5486
5453
|
return {
|
|
5487
|
-
...health$2(client, httpWithAuth),
|
|
5488
5454
|
...notificationsV2(client, httpWithAuth),
|
|
5489
5455
|
userSettings: notificationV2UserSettings(client, httpWithAuth),
|
|
5490
5456
|
};
|
|
@@ -5510,16 +5476,9 @@ var events = (client, httpAuth) => ({
|
|
|
5510
5476
|
}
|
|
5511
5477
|
return (await client.post(httpAuth, '/', requestBody, requestOptions)).data;
|
|
5512
5478
|
},
|
|
5513
|
-
});
|
|
5514
|
-
|
|
5515
|
-
var health$1 = (client, http) => ({
|
|
5516
|
-
/**
|
|
5517
|
-
* Perform a health check
|
|
5518
|
-
* @returns {boolean} success
|
|
5519
|
-
*/
|
|
5520
5479
|
async health() {
|
|
5521
|
-
const result = await client.get(
|
|
5522
|
-
return result.status ===
|
|
5480
|
+
const result = await client.get(httpAuth, '/health');
|
|
5481
|
+
return result.status === 200;
|
|
5523
5482
|
},
|
|
5524
5483
|
});
|
|
5525
5484
|
|
|
@@ -5548,7 +5507,6 @@ const eventsService = (httpWithAuth) => {
|
|
|
5548
5507
|
transformRequestData: decamelizeRequestData,
|
|
5549
5508
|
});
|
|
5550
5509
|
return {
|
|
5551
|
-
...health$1(client, httpWithAuth),
|
|
5552
5510
|
...events(client, httpWithAuth),
|
|
5553
5511
|
subscriptions: subscriptions(client, httpWithAuth),
|
|
5554
5512
|
};
|
|
@@ -5580,17 +5538,6 @@ const logsService = (httpWithAuth) => {
|
|
|
5580
5538
|
};
|
|
5581
5539
|
};
|
|
5582
5540
|
|
|
5583
|
-
var health = (client, http) => ({
|
|
5584
|
-
/**
|
|
5585
|
-
* Perform a health check
|
|
5586
|
-
* @returns {boolean} success
|
|
5587
|
-
*/
|
|
5588
|
-
async health() {
|
|
5589
|
-
const result = await client.get(http, '/health');
|
|
5590
|
-
return result.status === exports.Results.Success;
|
|
5591
|
-
},
|
|
5592
|
-
});
|
|
5593
|
-
|
|
5594
5541
|
var templatesV2 = (client, httpWithAuth) => {
|
|
5595
5542
|
async function find(options) {
|
|
5596
5543
|
const result = await client.get(httpWithAuth, `/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, {
|
|
@@ -5647,6 +5594,10 @@ var templatesV2 = (client, httpWithAuth) => {
|
|
|
5647
5594
|
const result = await find(options);
|
|
5648
5595
|
return result.data[0];
|
|
5649
5596
|
},
|
|
5597
|
+
async health() {
|
|
5598
|
+
const result = await client.get(httpWithAuth, '/health');
|
|
5599
|
+
return result.status === 200;
|
|
5600
|
+
},
|
|
5650
5601
|
};
|
|
5651
5602
|
};
|
|
5652
5603
|
|
|
@@ -5655,12 +5606,11 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5655
5606
|
basePath: TEMPLATES_V2_BASE,
|
|
5656
5607
|
});
|
|
5657
5608
|
return {
|
|
5658
|
-
...health(client, httpWithAuth),
|
|
5659
5609
|
...templatesV2(client, httpWithAuth),
|
|
5660
5610
|
};
|
|
5661
5611
|
};
|
|
5662
5612
|
|
|
5663
|
-
const version = '8.9.0-dev-
|
|
5613
|
+
const version = '8.9.0-dev-139-729209a';
|
|
5664
5614
|
|
|
5665
5615
|
/**
|
|
5666
5616
|
* Create ExtraHorizon client.
|
package/build/index.mjs
CHANGED
|
@@ -985,6 +985,7 @@ var TaskStatus;
|
|
|
985
985
|
TaskStatus["IN_PROGRESS"] = "inProgress";
|
|
986
986
|
TaskStatus["COMPLETE"] = "complete";
|
|
987
987
|
TaskStatus["FAILED"] = "failed";
|
|
988
|
+
TaskStatus["RETRIED"] = "retried";
|
|
988
989
|
TaskStatus["CANCELED"] = "canceled";
|
|
989
990
|
})(TaskStatus || (TaskStatus = {}));
|
|
990
991
|
|
|
@@ -3444,10 +3445,13 @@ var providers = (oidcClient, httpWithAuth) => {
|
|
|
3444
3445
|
const { data } = await oidcClient.post(httpWithAuth, `/oidc/providers/${providerId}/disable`, {});
|
|
3445
3446
|
return data;
|
|
3446
3447
|
},
|
|
3447
|
-
async
|
|
3448
|
+
async remove(providerId) {
|
|
3448
3449
|
const { data } = await oidcClient.delete(httpWithAuth, `/oidc/providers/${providerId}`);
|
|
3449
3450
|
return data;
|
|
3450
3451
|
},
|
|
3452
|
+
delete(providerId) {
|
|
3453
|
+
return this.remove(providerId);
|
|
3454
|
+
},
|
|
3451
3455
|
};
|
|
3452
3456
|
};
|
|
3453
3457
|
|
|
@@ -4067,10 +4071,13 @@ var schedules = (client, httpAuth) => {
|
|
|
4067
4071
|
});
|
|
4068
4072
|
return data;
|
|
4069
4073
|
},
|
|
4070
|
-
async
|
|
4074
|
+
async remove(scheduleId, options) {
|
|
4071
4075
|
const { data } = await client.delete(httpAuth, `/schedules/${scheduleId}`, options);
|
|
4072
4076
|
return data;
|
|
4073
4077
|
},
|
|
4078
|
+
delete(scheduleId, options) {
|
|
4079
|
+
return this.remove(scheduleId, options);
|
|
4080
|
+
},
|
|
4074
4081
|
async find(options) {
|
|
4075
4082
|
const result = await query(options);
|
|
4076
4083
|
return addPagersFn(query, options, result);
|
|
@@ -4278,17 +4285,6 @@ var groupRoles = (client, httpWithAuth) => ({
|
|
|
4278
4285
|
},
|
|
4279
4286
|
});
|
|
4280
4287
|
|
|
4281
|
-
var health$7 = (userClient, http) => ({
|
|
4282
|
-
/**
|
|
4283
|
-
* Perform a health check
|
|
4284
|
-
* @returns {boolean} success
|
|
4285
|
-
*/
|
|
4286
|
-
async health() {
|
|
4287
|
-
const result = await userClient.get(http, '/health');
|
|
4288
|
-
return result.status === Results.Success;
|
|
4289
|
-
},
|
|
4290
|
-
});
|
|
4291
|
-
|
|
4292
4288
|
const settingsService = (client, httpWithAuth) => ({
|
|
4293
4289
|
async getVerificationSettings(options) {
|
|
4294
4290
|
const response = await client.get(httpWithAuth, '/settings/verification', options);
|
|
@@ -4471,6 +4467,10 @@ var users$1 = (userClient, httpWithAuth, http) => {
|
|
|
4471
4467
|
const { data } = await userClient.put(httpWithAuth, '/email_templates', templates);
|
|
4472
4468
|
return data;
|
|
4473
4469
|
},
|
|
4470
|
+
async health() {
|
|
4471
|
+
const result = await userClient.get(http, '/health');
|
|
4472
|
+
return result.status === 200;
|
|
4473
|
+
},
|
|
4474
4474
|
};
|
|
4475
4475
|
};
|
|
4476
4476
|
|
|
@@ -4479,7 +4479,6 @@ const usersService = (httpWithAuth, http) => {
|
|
|
4479
4479
|
basePath: USER_BASE,
|
|
4480
4480
|
transformRequestData: decamelizeRequestData,
|
|
4481
4481
|
});
|
|
4482
|
-
const healthMethods = health$7(userClient, httpWithAuth);
|
|
4483
4482
|
const usersMethods = users$1(userClient, httpWithAuth, http);
|
|
4484
4483
|
const groupRolesMethods = groupRoles(userClient, httpWithAuth);
|
|
4485
4484
|
const globalRolesMethods = globalRoles(userClient, httpWithAuth);
|
|
@@ -4487,7 +4486,6 @@ const usersService = (httpWithAuth, http) => {
|
|
|
4487
4486
|
const forgotPasswordRequestsMethods = forgotPasswordRequestsService(userClient, httpWithAuth);
|
|
4488
4487
|
const settingsMethods = settingsService(userClient, httpWithAuth);
|
|
4489
4488
|
return {
|
|
4490
|
-
...healthMethods,
|
|
4491
4489
|
...usersMethods,
|
|
4492
4490
|
groupRoles: groupRolesMethods,
|
|
4493
4491
|
globalRoles: globalRolesMethods,
|
|
@@ -4869,7 +4867,7 @@ var appStoreSubscriptions = (client, httpAuth) => ({
|
|
|
4869
4867
|
},
|
|
4870
4868
|
});
|
|
4871
4869
|
|
|
4872
|
-
var health
|
|
4870
|
+
var health = (client, httpAuth) => ({
|
|
4873
4871
|
/**
|
|
4874
4872
|
* Check if the service is available
|
|
4875
4873
|
* @returns true if service is up and running
|
|
@@ -5073,7 +5071,7 @@ const paymentsService = (httpWithAuth) => {
|
|
|
5073
5071
|
basePath: PAYMENTS_BASE,
|
|
5074
5072
|
});
|
|
5075
5073
|
return {
|
|
5076
|
-
...health
|
|
5074
|
+
...health(client, httpWithAuth),
|
|
5077
5075
|
products: products(client, httpWithAuth),
|
|
5078
5076
|
orders: orders(client, httpWithAuth),
|
|
5079
5077
|
subscriptions: subscriptions$1(client, httpWithAuth),
|
|
@@ -5095,17 +5093,6 @@ var countries = (client, httpAuth) => ({
|
|
|
5095
5093
|
},
|
|
5096
5094
|
});
|
|
5097
5095
|
|
|
5098
|
-
var health$5 = (client, http) => ({
|
|
5099
|
-
/**
|
|
5100
|
-
* Perform a health check
|
|
5101
|
-
* @returns {boolean} success
|
|
5102
|
-
*/
|
|
5103
|
-
async health() {
|
|
5104
|
-
const result = await client.get(http, '/health');
|
|
5105
|
-
return result.status === Results.Success;
|
|
5106
|
-
},
|
|
5107
|
-
});
|
|
5108
|
-
|
|
5109
5096
|
var languages = (client, httpAuth) => ({
|
|
5110
5097
|
async getLanguages(options) {
|
|
5111
5098
|
return (await client.get(httpAuth, '/languages', options)).data.data;
|
|
@@ -5139,6 +5126,10 @@ var localizations = (client, httpAuth) => ({
|
|
|
5139
5126
|
customResponseKeys: ['*'],
|
|
5140
5127
|
})).data;
|
|
5141
5128
|
},
|
|
5129
|
+
async health() {
|
|
5130
|
+
const result = await client.get(httpAuth, '/health');
|
|
5131
|
+
return result.status === 200;
|
|
5132
|
+
},
|
|
5142
5133
|
});
|
|
5143
5134
|
|
|
5144
5135
|
const localizationsService = (httpWithAuth) => {
|
|
@@ -5147,7 +5138,6 @@ const localizationsService = (httpWithAuth) => {
|
|
|
5147
5138
|
basePath: LOCALIZATIONS_BASE,
|
|
5148
5139
|
});
|
|
5149
5140
|
return {
|
|
5150
|
-
...health$5(client, httpWithAuth),
|
|
5151
5141
|
...localizations(client, httpWithAuth),
|
|
5152
5142
|
...countries(client, httpWithAuth),
|
|
5153
5143
|
...languages(client, httpWithAuth),
|
|
@@ -5172,17 +5162,6 @@ var groups = (client, httpAuth) => ({
|
|
|
5172
5162
|
},
|
|
5173
5163
|
});
|
|
5174
5164
|
|
|
5175
|
-
var health$4 = (client, httpAuth) => ({
|
|
5176
|
-
/**
|
|
5177
|
-
* Perform a health check for profiles service
|
|
5178
|
-
* @returns {boolean} success
|
|
5179
|
-
*/
|
|
5180
|
-
async health() {
|
|
5181
|
-
const result = await client.get(httpAuth, '/health');
|
|
5182
|
-
return result.status === Results.Success;
|
|
5183
|
-
},
|
|
5184
|
-
});
|
|
5185
|
-
|
|
5186
5165
|
var logs = (client, httpAuth) => {
|
|
5187
5166
|
function partialApplyFind(profileId, groupId) {
|
|
5188
5167
|
return async (options) => (await client.get(httpAuth, `/${profileId}/groups/${groupId}/logs/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, options)).data;
|
|
@@ -5253,6 +5232,10 @@ var profiles = (client, httpAuth) => ({
|
|
|
5253
5232
|
async getImpediments(options) {
|
|
5254
5233
|
return (await client.get(httpAuth, '/impediments', options)).data;
|
|
5255
5234
|
},
|
|
5235
|
+
async health() {
|
|
5236
|
+
const result = await client.get(httpAuth, '/health');
|
|
5237
|
+
return result.status === 200;
|
|
5238
|
+
},
|
|
5256
5239
|
});
|
|
5257
5240
|
|
|
5258
5241
|
const profilesService = (httpWithAuth) => {
|
|
@@ -5261,24 +5244,12 @@ const profilesService = (httpWithAuth) => {
|
|
|
5261
5244
|
basePath: PROFILES_BASE,
|
|
5262
5245
|
});
|
|
5263
5246
|
return {
|
|
5264
|
-
...health$4(client, httpWithAuth),
|
|
5265
5247
|
...profiles(client, httpWithAuth),
|
|
5266
5248
|
groups: groups(client, httpWithAuth),
|
|
5267
5249
|
logs: logs(client, httpWithAuth),
|
|
5268
5250
|
};
|
|
5269
5251
|
};
|
|
5270
5252
|
|
|
5271
|
-
var health$3 = (client, http) => ({
|
|
5272
|
-
/**
|
|
5273
|
-
* Perform a health check
|
|
5274
|
-
* @returns {boolean} success
|
|
5275
|
-
*/
|
|
5276
|
-
async health() {
|
|
5277
|
-
const result = await client.get(http, '/health');
|
|
5278
|
-
return result.status === Results.Success;
|
|
5279
|
-
},
|
|
5280
|
-
});
|
|
5281
|
-
|
|
5282
5253
|
var notifications = (client, httpAuth) => {
|
|
5283
5254
|
async function find(options) {
|
|
5284
5255
|
return (await client.get(httpAuth, `/notifications${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, options)).data;
|
|
@@ -5324,6 +5295,10 @@ var notifications = (client, httpAuth) => {
|
|
|
5324
5295
|
async getTypes(options) {
|
|
5325
5296
|
return (await client.get(httpAuth, '/types', options)).data;
|
|
5326
5297
|
},
|
|
5298
|
+
async health() {
|
|
5299
|
+
const result = await client.get(httpAuth, '/health');
|
|
5300
|
+
return result.status === 200;
|
|
5301
|
+
},
|
|
5327
5302
|
};
|
|
5328
5303
|
};
|
|
5329
5304
|
|
|
@@ -5353,23 +5328,11 @@ const notificationsService = (httpWithAuth) => {
|
|
|
5353
5328
|
transformRequestData: decamelizeRequestData,
|
|
5354
5329
|
});
|
|
5355
5330
|
return {
|
|
5356
|
-
...health$3(client, httpWithAuth),
|
|
5357
5331
|
...notifications(client, httpWithAuth),
|
|
5358
5332
|
settings: settings(client, httpWithAuth),
|
|
5359
5333
|
};
|
|
5360
5334
|
};
|
|
5361
5335
|
|
|
5362
|
-
var health$2 = (client, http) => ({
|
|
5363
|
-
/**
|
|
5364
|
-
* Perform a health check
|
|
5365
|
-
* @returns {boolean} success
|
|
5366
|
-
*/
|
|
5367
|
-
async health() {
|
|
5368
|
-
const result = await client.get(http, '/health');
|
|
5369
|
-
return result.status === Results.Success;
|
|
5370
|
-
},
|
|
5371
|
-
});
|
|
5372
|
-
|
|
5373
5336
|
var notificationsV2 = (client, httpWithAuth) => {
|
|
5374
5337
|
async function find(options) {
|
|
5375
5338
|
const result = await client.get(httpWithAuth, `/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, {
|
|
@@ -5406,6 +5369,10 @@ var notificationsV2 = (client, httpWithAuth) => {
|
|
|
5406
5369
|
const rqlWithNotificationId = rqlBuilder().eq('id', notificationId).build();
|
|
5407
5370
|
return await this.findFirst({ ...options, rql: rqlWithNotificationId });
|
|
5408
5371
|
},
|
|
5372
|
+
async health() {
|
|
5373
|
+
const result = await client.get(httpWithAuth, '/health');
|
|
5374
|
+
return result.status === 200;
|
|
5375
|
+
},
|
|
5409
5376
|
};
|
|
5410
5377
|
};
|
|
5411
5378
|
|
|
@@ -5454,7 +5421,6 @@ const notificationsV2Service = (httpWithAuth) => {
|
|
|
5454
5421
|
basePath: NOTIFICATIONS_V2_BASE,
|
|
5455
5422
|
});
|
|
5456
5423
|
return {
|
|
5457
|
-
...health$2(client, httpWithAuth),
|
|
5458
5424
|
...notificationsV2(client, httpWithAuth),
|
|
5459
5425
|
userSettings: notificationV2UserSettings(client, httpWithAuth),
|
|
5460
5426
|
};
|
|
@@ -5480,16 +5446,9 @@ var events = (client, httpAuth) => ({
|
|
|
5480
5446
|
}
|
|
5481
5447
|
return (await client.post(httpAuth, '/', requestBody, requestOptions)).data;
|
|
5482
5448
|
},
|
|
5483
|
-
});
|
|
5484
|
-
|
|
5485
|
-
var health$1 = (client, http) => ({
|
|
5486
|
-
/**
|
|
5487
|
-
* Perform a health check
|
|
5488
|
-
* @returns {boolean} success
|
|
5489
|
-
*/
|
|
5490
5449
|
async health() {
|
|
5491
|
-
const result = await client.get(
|
|
5492
|
-
return result.status ===
|
|
5450
|
+
const result = await client.get(httpAuth, '/health');
|
|
5451
|
+
return result.status === 200;
|
|
5493
5452
|
},
|
|
5494
5453
|
});
|
|
5495
5454
|
|
|
@@ -5518,7 +5477,6 @@ const eventsService = (httpWithAuth) => {
|
|
|
5518
5477
|
transformRequestData: decamelizeRequestData,
|
|
5519
5478
|
});
|
|
5520
5479
|
return {
|
|
5521
|
-
...health$1(client, httpWithAuth),
|
|
5522
5480
|
...events(client, httpWithAuth),
|
|
5523
5481
|
subscriptions: subscriptions(client, httpWithAuth),
|
|
5524
5482
|
};
|
|
@@ -5550,17 +5508,6 @@ const logsService = (httpWithAuth) => {
|
|
|
5550
5508
|
};
|
|
5551
5509
|
};
|
|
5552
5510
|
|
|
5553
|
-
var health = (client, http) => ({
|
|
5554
|
-
/**
|
|
5555
|
-
* Perform a health check
|
|
5556
|
-
* @returns {boolean} success
|
|
5557
|
-
*/
|
|
5558
|
-
async health() {
|
|
5559
|
-
const result = await client.get(http, '/health');
|
|
5560
|
-
return result.status === Results.Success;
|
|
5561
|
-
},
|
|
5562
|
-
});
|
|
5563
|
-
|
|
5564
5511
|
var templatesV2 = (client, httpWithAuth) => {
|
|
5565
5512
|
async function find(options) {
|
|
5566
5513
|
const result = await client.get(httpWithAuth, `/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, {
|
|
@@ -5617,6 +5564,10 @@ var templatesV2 = (client, httpWithAuth) => {
|
|
|
5617
5564
|
const result = await find(options);
|
|
5618
5565
|
return result.data[0];
|
|
5619
5566
|
},
|
|
5567
|
+
async health() {
|
|
5568
|
+
const result = await client.get(httpWithAuth, '/health');
|
|
5569
|
+
return result.status === 200;
|
|
5570
|
+
},
|
|
5620
5571
|
};
|
|
5621
5572
|
};
|
|
5622
5573
|
|
|
@@ -5625,12 +5576,11 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5625
5576
|
basePath: TEMPLATES_V2_BASE,
|
|
5626
5577
|
});
|
|
5627
5578
|
return {
|
|
5628
|
-
...health(client, httpWithAuth),
|
|
5629
5579
|
...templatesV2(client, httpWithAuth),
|
|
5630
5580
|
};
|
|
5631
5581
|
};
|
|
5632
5582
|
|
|
5633
|
-
const version = '8.9.0-dev-
|
|
5583
|
+
const version = '8.9.0-dev-139-729209a';
|
|
5634
5584
|
|
|
5635
5585
|
/**
|
|
5636
5586
|
* Create ExtraHorizon client.
|