@extrahorizon/javascript-sdk 8.9.0-feat-134-c0f5b9d → 8.9.0-feat-142-7066b40
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 +8 -1
- package/build/index.cjs.js +70 -117
- package/build/index.mjs +70 -118
- package/build/types/errors.d.ts +3 -0
- package/build/types/mockType.d.ts +30 -24
- 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/functions/types.d.ts +1 -1
- 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 +70 -32
- package/build/types/services/templatesV2/index.d.ts +1 -2
- package/build/types/services/templatesV2/types.d.ts +16 -5
- 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
|
@@ -8,8 +8,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
8
|
## [8.9.0]
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
|
-
- Added the `exh.tasks.functions` methods `find`, `getByName`, `update`, `enable`, `disable` and `
|
|
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
|
@@ -753,6 +753,8 @@ class NotFoundError extends ApiError {
|
|
|
753
753
|
}
|
|
754
754
|
class ResourceUnknownError extends NotFoundError {
|
|
755
755
|
}
|
|
756
|
+
class ServiceNotFoundError extends NotFoundError {
|
|
757
|
+
}
|
|
756
758
|
class NoConfiguredAppStoreProduct extends NotFoundError {
|
|
757
759
|
}
|
|
758
760
|
// 500 Server Error
|
|
@@ -927,6 +929,7 @@ const ErrorClassMap = {
|
|
|
927
929
|
414: StatusInUseError,
|
|
928
930
|
415: LockedDocumentError,
|
|
929
931
|
801: DefaultLocalizationMissingError,
|
|
932
|
+
903: ServiceNotFoundError,
|
|
930
933
|
1002: LocalizationKeyMissingError,
|
|
931
934
|
1003: TemplateFillingError,
|
|
932
935
|
1004: TemplateSyntaxError,
|
|
@@ -1015,6 +1018,7 @@ exports.TaskStatus = void 0;
|
|
|
1015
1018
|
TaskStatus["IN_PROGRESS"] = "inProgress";
|
|
1016
1019
|
TaskStatus["COMPLETE"] = "complete";
|
|
1017
1020
|
TaskStatus["FAILED"] = "failed";
|
|
1021
|
+
TaskStatus["RETRIED"] = "retried";
|
|
1018
1022
|
TaskStatus["CANCELED"] = "canceled";
|
|
1019
1023
|
})(exports.TaskStatus || (exports.TaskStatus = {}));
|
|
1020
1024
|
|
|
@@ -1263,15 +1267,6 @@ exports.QueuedMailStatus = void 0;
|
|
|
1263
1267
|
QueuedMailStatus["FAILED"] = "failed";
|
|
1264
1268
|
})(exports.QueuedMailStatus || (exports.QueuedMailStatus = {}));
|
|
1265
1269
|
|
|
1266
|
-
exports.ObjectMinBytesOptionType = void 0;
|
|
1267
|
-
(function (ObjectMinBytesOptionType) {
|
|
1268
|
-
ObjectMinBytesOptionType["MIN_BYTES"] = "min_bytes";
|
|
1269
|
-
})(exports.ObjectMinBytesOptionType || (exports.ObjectMinBytesOptionType = {}));
|
|
1270
|
-
exports.ObjectMaxBytesOptionType = void 0;
|
|
1271
|
-
(function (ObjectMaxBytesOptionType) {
|
|
1272
|
-
ObjectMaxBytesOptionType["MAX_BYTES"] = "max_bytes";
|
|
1273
|
-
})(exports.ObjectMaxBytesOptionType || (exports.ObjectMaxBytesOptionType = {}));
|
|
1274
|
-
|
|
1275
1270
|
exports.ActionType = void 0;
|
|
1276
1271
|
(function (ActionType) {
|
|
1277
1272
|
ActionType["MAIL"] = "mail";
|
|
@@ -3483,10 +3478,13 @@ var providers = (oidcClient, httpWithAuth) => {
|
|
|
3483
3478
|
const { data } = await oidcClient.post(httpWithAuth, `/oidc/providers/${providerId}/disable`, {});
|
|
3484
3479
|
return data;
|
|
3485
3480
|
},
|
|
3486
|
-
async
|
|
3481
|
+
async remove(providerId) {
|
|
3487
3482
|
const { data } = await oidcClient.delete(httpWithAuth, `/oidc/providers/${providerId}`);
|
|
3488
3483
|
return data;
|
|
3489
3484
|
},
|
|
3485
|
+
delete(providerId) {
|
|
3486
|
+
return this.remove(providerId);
|
|
3487
|
+
},
|
|
3490
3488
|
};
|
|
3491
3489
|
};
|
|
3492
3490
|
|
|
@@ -4055,7 +4053,7 @@ var functions = (client, httpAuth) => ({
|
|
|
4055
4053
|
});
|
|
4056
4054
|
return response.data;
|
|
4057
4055
|
},
|
|
4058
|
-
async
|
|
4056
|
+
async remove(name, options) {
|
|
4059
4057
|
const response = await client.delete(httpAuth, `/functions/${name}`, options);
|
|
4060
4058
|
return response.data;
|
|
4061
4059
|
},
|
|
@@ -4106,10 +4104,13 @@ var schedules = (client, httpAuth) => {
|
|
|
4106
4104
|
});
|
|
4107
4105
|
return data;
|
|
4108
4106
|
},
|
|
4109
|
-
async
|
|
4107
|
+
async remove(scheduleId, options) {
|
|
4110
4108
|
const { data } = await client.delete(httpAuth, `/schedules/${scheduleId}`, options);
|
|
4111
4109
|
return data;
|
|
4112
4110
|
},
|
|
4111
|
+
delete(scheduleId, options) {
|
|
4112
|
+
return this.remove(scheduleId, options);
|
|
4113
|
+
},
|
|
4113
4114
|
async find(options) {
|
|
4114
4115
|
const result = await query(options);
|
|
4115
4116
|
return addPagersFn(query, options, result);
|
|
@@ -4317,17 +4318,6 @@ var groupRoles = (client, httpWithAuth) => ({
|
|
|
4317
4318
|
},
|
|
4318
4319
|
});
|
|
4319
4320
|
|
|
4320
|
-
var health$7 = (userClient, http) => ({
|
|
4321
|
-
/**
|
|
4322
|
-
* Perform a health check
|
|
4323
|
-
* @returns {boolean} success
|
|
4324
|
-
*/
|
|
4325
|
-
async health() {
|
|
4326
|
-
const result = await userClient.get(http, '/health');
|
|
4327
|
-
return result.status === exports.Results.Success;
|
|
4328
|
-
},
|
|
4329
|
-
});
|
|
4330
|
-
|
|
4331
4321
|
const settingsService = (client, httpWithAuth) => ({
|
|
4332
4322
|
async getVerificationSettings(options) {
|
|
4333
4323
|
const response = await client.get(httpWithAuth, '/settings/verification', options);
|
|
@@ -4510,6 +4500,10 @@ var users$1 = (userClient, httpWithAuth, http) => {
|
|
|
4510
4500
|
const { data } = await userClient.put(httpWithAuth, '/email_templates', templates);
|
|
4511
4501
|
return data;
|
|
4512
4502
|
},
|
|
4503
|
+
async health() {
|
|
4504
|
+
const result = await userClient.get(http, '/health');
|
|
4505
|
+
return result.status === 200;
|
|
4506
|
+
},
|
|
4513
4507
|
};
|
|
4514
4508
|
};
|
|
4515
4509
|
|
|
@@ -4518,7 +4512,6 @@ const usersService = (httpWithAuth, http) => {
|
|
|
4518
4512
|
basePath: USER_BASE,
|
|
4519
4513
|
transformRequestData: decamelizeRequestData,
|
|
4520
4514
|
});
|
|
4521
|
-
const healthMethods = health$7(userClient, httpWithAuth);
|
|
4522
4515
|
const usersMethods = users$1(userClient, httpWithAuth, http);
|
|
4523
4516
|
const groupRolesMethods = groupRoles(userClient, httpWithAuth);
|
|
4524
4517
|
const globalRolesMethods = globalRoles(userClient, httpWithAuth);
|
|
@@ -4526,7 +4519,6 @@ const usersService = (httpWithAuth, http) => {
|
|
|
4526
4519
|
const forgotPasswordRequestsMethods = forgotPasswordRequestsService(userClient, httpWithAuth);
|
|
4527
4520
|
const settingsMethods = settingsService(userClient, httpWithAuth);
|
|
4528
4521
|
return {
|
|
4529
|
-
...healthMethods,
|
|
4530
4522
|
...usersMethods,
|
|
4531
4523
|
groupRoles: groupRolesMethods,
|
|
4532
4524
|
globalRoles: globalRolesMethods,
|
|
@@ -4635,10 +4627,11 @@ var templates = (client, httpAuth) => ({
|
|
|
4635
4627
|
return result.status === exports.Results.Success;
|
|
4636
4628
|
},
|
|
4637
4629
|
async find(options) {
|
|
4638
|
-
|
|
4630
|
+
const result = await client.get(httpAuth, `/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, {
|
|
4639
4631
|
...options,
|
|
4640
4632
|
customResponseKeys: ['data.schema.fields', 'data.fields'],
|
|
4641
|
-
})
|
|
4633
|
+
});
|
|
4634
|
+
return result.data;
|
|
4642
4635
|
},
|
|
4643
4636
|
async findAll(options) {
|
|
4644
4637
|
return findAllGeneric(this.find, options);
|
|
@@ -4659,47 +4652,54 @@ var templates = (client, httpAuth) => ({
|
|
|
4659
4652
|
return res.data[0];
|
|
4660
4653
|
},
|
|
4661
4654
|
async create(requestBody, options) {
|
|
4662
|
-
|
|
4655
|
+
const result = await client.post(httpAuth, '/', requestBody, {
|
|
4663
4656
|
...options,
|
|
4664
4657
|
customKeys: ['schema.fields', 'fields'],
|
|
4665
|
-
})
|
|
4658
|
+
});
|
|
4659
|
+
return result.data;
|
|
4666
4660
|
},
|
|
4667
4661
|
async update(templateId, requestBody, options) {
|
|
4668
|
-
|
|
4662
|
+
const result = await client.put(httpAuth, `/${templateId}`, requestBody, {
|
|
4669
4663
|
...options,
|
|
4670
4664
|
customKeys: ['schema.fields', 'fields'],
|
|
4671
|
-
})
|
|
4665
|
+
});
|
|
4666
|
+
return result.data;
|
|
4672
4667
|
},
|
|
4673
4668
|
async remove(templateId, options) {
|
|
4674
|
-
|
|
4669
|
+
const result = await client.delete(httpAuth, `/${templateId}`, options);
|
|
4670
|
+
return result.data;
|
|
4675
4671
|
},
|
|
4676
4672
|
async resolveAsPdf(templateId, requestBody, options) {
|
|
4677
|
-
|
|
4673
|
+
const result = await client.post(httpAuth, `/${templateId}/pdf`, requestBody, {
|
|
4678
4674
|
...options,
|
|
4679
4675
|
customRequestKeys: ['content'],
|
|
4680
4676
|
responseType: 'arraybuffer',
|
|
4681
|
-
})
|
|
4677
|
+
});
|
|
4678
|
+
return result.data;
|
|
4682
4679
|
},
|
|
4683
4680
|
async resolveAsPdfUsingCode(templateId, localizationCode, requestBody, options) {
|
|
4684
|
-
|
|
4681
|
+
const result = await client.post(httpAuth, `/${templateId}/pdf/${localizationCode}`, requestBody, {
|
|
4685
4682
|
...options,
|
|
4686
4683
|
customRequestKeys: ['content'],
|
|
4687
4684
|
responseType: 'arraybuffer',
|
|
4688
|
-
})
|
|
4685
|
+
});
|
|
4686
|
+
return result.data;
|
|
4689
4687
|
},
|
|
4690
4688
|
async resolveAsJson(templateId, requestBody, options) {
|
|
4691
|
-
|
|
4689
|
+
const result = await client.post(httpAuth, `/${templateId}/resolve`, requestBody, {
|
|
4692
4690
|
...options,
|
|
4693
4691
|
customRequestKeys: ['content'],
|
|
4694
4692
|
customResponseKeys: ['*'],
|
|
4695
|
-
})
|
|
4693
|
+
});
|
|
4694
|
+
return result.data;
|
|
4696
4695
|
},
|
|
4697
4696
|
async resolveAsJsonUsingCode(templateId, localizationCode, requestBody, options) {
|
|
4698
|
-
|
|
4697
|
+
const result = await client.post(httpAuth, `/${templateId}/resolve/${localizationCode}`, requestBody, {
|
|
4699
4698
|
...options,
|
|
4700
4699
|
customRequestKeys: ['content'],
|
|
4701
4700
|
customResponseKeys: ['*'],
|
|
4702
|
-
})
|
|
4701
|
+
});
|
|
4702
|
+
return result.data;
|
|
4703
4703
|
},
|
|
4704
4704
|
});
|
|
4705
4705
|
|
|
@@ -4900,7 +4900,7 @@ var appStoreSubscriptions = (client, httpAuth) => ({
|
|
|
4900
4900
|
},
|
|
4901
4901
|
});
|
|
4902
4902
|
|
|
4903
|
-
var health
|
|
4903
|
+
var health = (client, httpAuth) => ({
|
|
4904
4904
|
/**
|
|
4905
4905
|
* Check if the service is available
|
|
4906
4906
|
* @returns true if service is up and running
|
|
@@ -5104,7 +5104,7 @@ const paymentsService = (httpWithAuth) => {
|
|
|
5104
5104
|
basePath: PAYMENTS_BASE,
|
|
5105
5105
|
});
|
|
5106
5106
|
return {
|
|
5107
|
-
...health
|
|
5107
|
+
...health(client, httpWithAuth),
|
|
5108
5108
|
products: products(client, httpWithAuth),
|
|
5109
5109
|
orders: orders(client, httpWithAuth),
|
|
5110
5110
|
subscriptions: subscriptions$1(client, httpWithAuth),
|
|
@@ -5126,17 +5126,6 @@ var countries = (client, httpAuth) => ({
|
|
|
5126
5126
|
},
|
|
5127
5127
|
});
|
|
5128
5128
|
|
|
5129
|
-
var health$5 = (client, http) => ({
|
|
5130
|
-
/**
|
|
5131
|
-
* Perform a health check
|
|
5132
|
-
* @returns {boolean} success
|
|
5133
|
-
*/
|
|
5134
|
-
async health() {
|
|
5135
|
-
const result = await client.get(http, '/health');
|
|
5136
|
-
return result.status === exports.Results.Success;
|
|
5137
|
-
},
|
|
5138
|
-
});
|
|
5139
|
-
|
|
5140
5129
|
var languages = (client, httpAuth) => ({
|
|
5141
5130
|
async getLanguages(options) {
|
|
5142
5131
|
return (await client.get(httpAuth, '/languages', options)).data.data;
|
|
@@ -5170,6 +5159,10 @@ var localizations = (client, httpAuth) => ({
|
|
|
5170
5159
|
customResponseKeys: ['*'],
|
|
5171
5160
|
})).data;
|
|
5172
5161
|
},
|
|
5162
|
+
async health() {
|
|
5163
|
+
const result = await client.get(httpAuth, '/health');
|
|
5164
|
+
return result.status === 200;
|
|
5165
|
+
},
|
|
5173
5166
|
});
|
|
5174
5167
|
|
|
5175
5168
|
const localizationsService = (httpWithAuth) => {
|
|
@@ -5178,7 +5171,6 @@ const localizationsService = (httpWithAuth) => {
|
|
|
5178
5171
|
basePath: LOCALIZATIONS_BASE,
|
|
5179
5172
|
});
|
|
5180
5173
|
return {
|
|
5181
|
-
...health$5(client, httpWithAuth),
|
|
5182
5174
|
...localizations(client, httpWithAuth),
|
|
5183
5175
|
...countries(client, httpWithAuth),
|
|
5184
5176
|
...languages(client, httpWithAuth),
|
|
@@ -5203,17 +5195,6 @@ var groups = (client, httpAuth) => ({
|
|
|
5203
5195
|
},
|
|
5204
5196
|
});
|
|
5205
5197
|
|
|
5206
|
-
var health$4 = (client, httpAuth) => ({
|
|
5207
|
-
/**
|
|
5208
|
-
* Perform a health check for profiles service
|
|
5209
|
-
* @returns {boolean} success
|
|
5210
|
-
*/
|
|
5211
|
-
async health() {
|
|
5212
|
-
const result = await client.get(httpAuth, '/health');
|
|
5213
|
-
return result.status === exports.Results.Success;
|
|
5214
|
-
},
|
|
5215
|
-
});
|
|
5216
|
-
|
|
5217
5198
|
var logs = (client, httpAuth) => {
|
|
5218
5199
|
function partialApplyFind(profileId, groupId) {
|
|
5219
5200
|
return async (options) => (await client.get(httpAuth, `/${profileId}/groups/${groupId}/logs/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, options)).data;
|
|
@@ -5284,6 +5265,10 @@ var profiles = (client, httpAuth) => ({
|
|
|
5284
5265
|
async getImpediments(options) {
|
|
5285
5266
|
return (await client.get(httpAuth, '/impediments', options)).data;
|
|
5286
5267
|
},
|
|
5268
|
+
async health() {
|
|
5269
|
+
const result = await client.get(httpAuth, '/health');
|
|
5270
|
+
return result.status === 200;
|
|
5271
|
+
},
|
|
5287
5272
|
});
|
|
5288
5273
|
|
|
5289
5274
|
const profilesService = (httpWithAuth) => {
|
|
@@ -5292,24 +5277,12 @@ const profilesService = (httpWithAuth) => {
|
|
|
5292
5277
|
basePath: PROFILES_BASE,
|
|
5293
5278
|
});
|
|
5294
5279
|
return {
|
|
5295
|
-
...health$4(client, httpWithAuth),
|
|
5296
5280
|
...profiles(client, httpWithAuth),
|
|
5297
5281
|
groups: groups(client, httpWithAuth),
|
|
5298
5282
|
logs: logs(client, httpWithAuth),
|
|
5299
5283
|
};
|
|
5300
5284
|
};
|
|
5301
5285
|
|
|
5302
|
-
var health$3 = (client, http) => ({
|
|
5303
|
-
/**
|
|
5304
|
-
* Perform a health check
|
|
5305
|
-
* @returns {boolean} success
|
|
5306
|
-
*/
|
|
5307
|
-
async health() {
|
|
5308
|
-
const result = await client.get(http, '/health');
|
|
5309
|
-
return result.status === exports.Results.Success;
|
|
5310
|
-
},
|
|
5311
|
-
});
|
|
5312
|
-
|
|
5313
5286
|
var notifications = (client, httpAuth) => {
|
|
5314
5287
|
async function find(options) {
|
|
5315
5288
|
return (await client.get(httpAuth, `/notifications${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, options)).data;
|
|
@@ -5355,6 +5328,10 @@ var notifications = (client, httpAuth) => {
|
|
|
5355
5328
|
async getTypes(options) {
|
|
5356
5329
|
return (await client.get(httpAuth, '/types', options)).data;
|
|
5357
5330
|
},
|
|
5331
|
+
async health() {
|
|
5332
|
+
const result = await client.get(httpAuth, '/health');
|
|
5333
|
+
return result.status === 200;
|
|
5334
|
+
},
|
|
5358
5335
|
};
|
|
5359
5336
|
};
|
|
5360
5337
|
|
|
@@ -5384,23 +5361,11 @@ const notificationsService = (httpWithAuth) => {
|
|
|
5384
5361
|
transformRequestData: decamelizeRequestData,
|
|
5385
5362
|
});
|
|
5386
5363
|
return {
|
|
5387
|
-
...health$3(client, httpWithAuth),
|
|
5388
5364
|
...notifications(client, httpWithAuth),
|
|
5389
5365
|
settings: settings(client, httpWithAuth),
|
|
5390
5366
|
};
|
|
5391
5367
|
};
|
|
5392
5368
|
|
|
5393
|
-
var health$2 = (client, http) => ({
|
|
5394
|
-
/**
|
|
5395
|
-
* Perform a health check
|
|
5396
|
-
* @returns {boolean} success
|
|
5397
|
-
*/
|
|
5398
|
-
async health() {
|
|
5399
|
-
const result = await client.get(http, '/health');
|
|
5400
|
-
return result.status === exports.Results.Success;
|
|
5401
|
-
},
|
|
5402
|
-
});
|
|
5403
|
-
|
|
5404
5369
|
var notificationsV2 = (client, httpWithAuth) => {
|
|
5405
5370
|
async function find(options) {
|
|
5406
5371
|
const result = await client.get(httpWithAuth, `/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, {
|
|
@@ -5437,6 +5402,10 @@ var notificationsV2 = (client, httpWithAuth) => {
|
|
|
5437
5402
|
const rqlWithNotificationId = rqlBuilder().eq('id', notificationId).build();
|
|
5438
5403
|
return await this.findFirst({ ...options, rql: rqlWithNotificationId });
|
|
5439
5404
|
},
|
|
5405
|
+
async health() {
|
|
5406
|
+
const result = await client.get(httpWithAuth, '/health');
|
|
5407
|
+
return result.status === 200;
|
|
5408
|
+
},
|
|
5440
5409
|
};
|
|
5441
5410
|
};
|
|
5442
5411
|
|
|
@@ -5485,7 +5454,6 @@ const notificationsV2Service = (httpWithAuth) => {
|
|
|
5485
5454
|
basePath: NOTIFICATIONS_V2_BASE,
|
|
5486
5455
|
});
|
|
5487
5456
|
return {
|
|
5488
|
-
...health$2(client, httpWithAuth),
|
|
5489
5457
|
...notificationsV2(client, httpWithAuth),
|
|
5490
5458
|
userSettings: notificationV2UserSettings(client, httpWithAuth),
|
|
5491
5459
|
};
|
|
@@ -5511,16 +5479,9 @@ var events = (client, httpAuth) => ({
|
|
|
5511
5479
|
}
|
|
5512
5480
|
return (await client.post(httpAuth, '/', requestBody, requestOptions)).data;
|
|
5513
5481
|
},
|
|
5514
|
-
});
|
|
5515
|
-
|
|
5516
|
-
var health$1 = (client, http) => ({
|
|
5517
|
-
/**
|
|
5518
|
-
* Perform a health check
|
|
5519
|
-
* @returns {boolean} success
|
|
5520
|
-
*/
|
|
5521
5482
|
async health() {
|
|
5522
|
-
const result = await client.get(
|
|
5523
|
-
return result.status ===
|
|
5483
|
+
const result = await client.get(httpAuth, '/health');
|
|
5484
|
+
return result.status === 200;
|
|
5524
5485
|
},
|
|
5525
5486
|
});
|
|
5526
5487
|
|
|
@@ -5549,7 +5510,6 @@ const eventsService = (httpWithAuth) => {
|
|
|
5549
5510
|
transformRequestData: decamelizeRequestData,
|
|
5550
5511
|
});
|
|
5551
5512
|
return {
|
|
5552
|
-
...health$1(client, httpWithAuth),
|
|
5553
5513
|
...events(client, httpWithAuth),
|
|
5554
5514
|
subscriptions: subscriptions(client, httpWithAuth),
|
|
5555
5515
|
};
|
|
@@ -5581,22 +5541,11 @@ const logsService = (httpWithAuth) => {
|
|
|
5581
5541
|
};
|
|
5582
5542
|
};
|
|
5583
5543
|
|
|
5584
|
-
var health = (client, http) => ({
|
|
5585
|
-
/**
|
|
5586
|
-
* Perform a health check
|
|
5587
|
-
* @returns {boolean} success
|
|
5588
|
-
*/
|
|
5589
|
-
async health() {
|
|
5590
|
-
const result = await client.get(http, '/health');
|
|
5591
|
-
return result.status === exports.Results.Success;
|
|
5592
|
-
},
|
|
5593
|
-
});
|
|
5594
|
-
|
|
5595
5544
|
var templatesV2 = (client, httpWithAuth) => {
|
|
5596
5545
|
async function find(options) {
|
|
5597
5546
|
const result = await client.get(httpWithAuth, `/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, {
|
|
5598
5547
|
...options,
|
|
5599
|
-
customResponseKeys: ['data.
|
|
5548
|
+
customResponseKeys: ['data.inputs', 'data.outputs'],
|
|
5600
5549
|
});
|
|
5601
5550
|
return result.data;
|
|
5602
5551
|
}
|
|
@@ -5604,14 +5553,14 @@ var templatesV2 = (client, httpWithAuth) => {
|
|
|
5604
5553
|
async create(requestBody, options) {
|
|
5605
5554
|
const result = (await client.post(httpWithAuth, '/', requestBody, {
|
|
5606
5555
|
...options,
|
|
5607
|
-
customKeys: ['
|
|
5556
|
+
customKeys: ['inputs', 'outputs'],
|
|
5608
5557
|
}));
|
|
5609
5558
|
return result.data;
|
|
5610
5559
|
},
|
|
5611
5560
|
async update(templateId, requestBody, options) {
|
|
5612
5561
|
const result = (await client.put(httpWithAuth, `/${templateId}`, requestBody, {
|
|
5613
5562
|
...options,
|
|
5614
|
-
customKeys: ['
|
|
5563
|
+
customKeys: ['inputs', 'outputs'],
|
|
5615
5564
|
}));
|
|
5616
5565
|
return result.data;
|
|
5617
5566
|
},
|
|
@@ -5622,7 +5571,7 @@ var templatesV2 = (client, httpWithAuth) => {
|
|
|
5622
5571
|
async resolve(templateId, requestBody, options) {
|
|
5623
5572
|
const result = (await client.post(httpWithAuth, `/${templateId}/resolve`, requestBody, {
|
|
5624
5573
|
...options,
|
|
5625
|
-
customRequestKeys: ['
|
|
5574
|
+
customRequestKeys: ['inputs'],
|
|
5626
5575
|
customResponseKeys: ['*'],
|
|
5627
5576
|
}));
|
|
5628
5577
|
return result.data;
|
|
@@ -5648,6 +5597,10 @@ var templatesV2 = (client, httpWithAuth) => {
|
|
|
5648
5597
|
const result = await find(options);
|
|
5649
5598
|
return result.data[0];
|
|
5650
5599
|
},
|
|
5600
|
+
async health() {
|
|
5601
|
+
const result = await client.get(httpWithAuth, '/health');
|
|
5602
|
+
return result.status === 200;
|
|
5603
|
+
},
|
|
5651
5604
|
};
|
|
5652
5605
|
};
|
|
5653
5606
|
|
|
@@ -5656,12 +5609,11 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5656
5609
|
basePath: TEMPLATES_V2_BASE,
|
|
5657
5610
|
});
|
|
5658
5611
|
return {
|
|
5659
|
-
...health(client, httpWithAuth),
|
|
5660
5612
|
...templatesV2(client, httpWithAuth),
|
|
5661
5613
|
};
|
|
5662
5614
|
};
|
|
5663
5615
|
|
|
5664
|
-
const version = '8.9.0-feat-
|
|
5616
|
+
const version = '8.9.0-feat-142-7066b40';
|
|
5665
5617
|
|
|
5666
5618
|
/**
|
|
5667
5619
|
* Create ExtraHorizon client.
|
|
@@ -5927,6 +5879,7 @@ exports.RequestAbortedError = RequestAbortedError;
|
|
|
5927
5879
|
exports.ResourceAlreadyExistsError = ResourceAlreadyExistsError;
|
|
5928
5880
|
exports.ResourceUnknownError = ResourceUnknownError;
|
|
5929
5881
|
exports.ServerError = ServerError;
|
|
5882
|
+
exports.ServiceNotFoundError = ServiceNotFoundError;
|
|
5930
5883
|
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
5931
5884
|
exports.StatusInUseError = StatusInUseError;
|
|
5932
5885
|
exports.StripePaymentMethodError = StripePaymentMethodError;
|