@extrahorizon/javascript-sdk 8.9.0-feat-134-c0f5b9d → 8.9.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/build/index.cjs.js +75 -119
  3. package/build/index.mjs +74 -120
  4. package/build/types/errors.d.ts +6 -0
  5. package/build/types/http/oAuth1Signature.d.ts +4 -0
  6. package/build/types/mockType.d.ts +30 -24
  7. package/build/types/services/auth/oidc/providers/types.d.ts +4 -0
  8. package/build/types/services/events/index.d.ts +1 -2
  9. package/build/types/services/events/types.d.ts +5 -0
  10. package/build/types/services/localizations/index.d.ts +1 -2
  11. package/build/types/services/localizations/types.d.ts +5 -0
  12. package/build/types/services/notifications/index.d.ts +1 -2
  13. package/build/types/services/notifications/types.d.ts +5 -0
  14. package/build/types/services/notificationsV2/index.d.ts +1 -2
  15. package/build/types/services/notificationsV2/types.d.ts +5 -0
  16. package/build/types/services/profiles/index.d.ts +1 -2
  17. package/build/types/services/profiles/types.d.ts +5 -0
  18. package/build/types/services/tasks/functions/types.d.ts +1 -1
  19. package/build/types/services/tasks/schedules/types.d.ts +4 -0
  20. package/build/types/services/tasks/types.d.ts +11 -0
  21. package/build/types/services/templates/types.d.ts +70 -32
  22. package/build/types/services/templatesV2/index.d.ts +1 -2
  23. package/build/types/services/templatesV2/types.d.ts +16 -5
  24. package/build/types/services/users/index.d.ts +2 -4
  25. package/build/types/services/users/types.d.ts +5 -0
  26. package/build/types/types.d.ts +1 -0
  27. package/build/types/version.d.ts +1 -1
  28. package/package.json +3 -3
  29. package/build/types/services/events/health.d.ts +0 -9
  30. package/build/types/services/localizations/health.d.ts +0 -9
  31. package/build/types/services/notifications/health.d.ts +0 -9
  32. package/build/types/services/notificationsV2/health.d.ts +0 -9
  33. package/build/types/services/profiles/health.d.ts +0 -9
  34. package/build/types/services/templatesV2/health.d.ts +0 -9
  35. package/build/types/services/users/health.d.ts +0 -9
package/build/index.mjs CHANGED
@@ -643,6 +643,8 @@ class RefreshTokenUnknownError extends BadRequestError {
643
643
  }
644
644
  class RefreshTokenExpiredError extends BadRequestError {
645
645
  }
646
+ class LambdaInvocationError extends BadRequestError {
647
+ }
646
648
  class FirebaseInvalidPlatformDataError extends BadRequestError {
647
649
  constructor(apiError) {
648
650
  super(apiError);
@@ -723,6 +725,8 @@ class NotFoundError extends ApiError {
723
725
  }
724
726
  class ResourceUnknownError extends NotFoundError {
725
727
  }
728
+ class ServiceNotFoundError extends NotFoundError {
729
+ }
726
730
  class NoConfiguredAppStoreProduct extends NotFoundError {
727
731
  }
728
732
  // 500 Server Error
@@ -897,10 +901,12 @@ const ErrorClassMap = {
897
901
  414: StatusInUseError,
898
902
  415: LockedDocumentError,
899
903
  801: DefaultLocalizationMissingError,
904
+ 903: ServiceNotFoundError,
900
905
  1002: LocalizationKeyMissingError,
901
906
  1003: TemplateFillingError,
902
907
  1004: TemplateSyntaxError,
903
908
  1005: TemplateResolvingError,
909
+ 1405: LambdaInvocationError,
904
910
  2605: InvalidTokenError,
905
911
  2606: UnauthorizedTokenError,
906
912
  2607: TokenNotDeleteableError,
@@ -985,6 +991,7 @@ var TaskStatus;
985
991
  TaskStatus["IN_PROGRESS"] = "inProgress";
986
992
  TaskStatus["COMPLETE"] = "complete";
987
993
  TaskStatus["FAILED"] = "failed";
994
+ TaskStatus["RETRIED"] = "retried";
988
995
  TaskStatus["CANCELED"] = "canceled";
989
996
  })(TaskStatus || (TaskStatus = {}));
990
997
 
@@ -1233,15 +1240,6 @@ var QueuedMailStatus;
1233
1240
  QueuedMailStatus["FAILED"] = "failed";
1234
1241
  })(QueuedMailStatus || (QueuedMailStatus = {}));
1235
1242
 
1236
- var ObjectMinBytesOptionType;
1237
- (function (ObjectMinBytesOptionType) {
1238
- ObjectMinBytesOptionType["MIN_BYTES"] = "min_bytes";
1239
- })(ObjectMinBytesOptionType || (ObjectMinBytesOptionType = {}));
1240
- var ObjectMaxBytesOptionType;
1241
- (function (ObjectMaxBytesOptionType) {
1242
- ObjectMaxBytesOptionType["MAX_BYTES"] = "max_bytes";
1243
- })(ObjectMaxBytesOptionType || (ObjectMaxBytesOptionType = {}));
1244
-
1245
1243
  var ActionType;
1246
1244
  (function (ActionType) {
1247
1245
  ActionType["MAIL"] = "mail";
@@ -2030,8 +2028,7 @@ function getUrlInfoFromRequest(url) {
2030
2028
  const { protocol, host, pathname, search } = new URL(url);
2031
2029
  return {
2032
2030
  baseUrl: `${protocol}//${host}${pathname}`,
2033
- searchParameters: qs.parse(search.startsWith('?') ? search.slice(1) : search, { decodeDotInKeys: false } // Without this oAuth1 signatures will break, opened an issue in qs: https://github.com/ljharb/qs/issues/500
2034
- ),
2031
+ searchParameters: qs.parse(search.startsWith('?') ? search.slice(1) : search),
2035
2032
  };
2036
2033
  }
2037
2034
  // Util functions
@@ -3453,10 +3450,13 @@ var providers = (oidcClient, httpWithAuth) => {
3453
3450
  const { data } = await oidcClient.post(httpWithAuth, `/oidc/providers/${providerId}/disable`, {});
3454
3451
  return data;
3455
3452
  },
3456
- async delete(providerId) {
3453
+ async remove(providerId) {
3457
3454
  const { data } = await oidcClient.delete(httpWithAuth, `/oidc/providers/${providerId}`);
3458
3455
  return data;
3459
3456
  },
3457
+ delete(providerId) {
3458
+ return this.remove(providerId);
3459
+ },
3460
3460
  };
3461
3461
  };
3462
3462
 
@@ -4025,7 +4025,7 @@ var functions = (client, httpAuth) => ({
4025
4025
  });
4026
4026
  return response.data;
4027
4027
  },
4028
- async delete(name, options) {
4028
+ async remove(name, options) {
4029
4029
  const response = await client.delete(httpAuth, `/functions/${name}`, options);
4030
4030
  return response.data;
4031
4031
  },
@@ -4076,10 +4076,13 @@ var schedules = (client, httpAuth) => {
4076
4076
  });
4077
4077
  return data;
4078
4078
  },
4079
- async delete(scheduleId, options) {
4079
+ async remove(scheduleId, options) {
4080
4080
  const { data } = await client.delete(httpAuth, `/schedules/${scheduleId}`, options);
4081
4081
  return data;
4082
4082
  },
4083
+ delete(scheduleId, options) {
4084
+ return this.remove(scheduleId, options);
4085
+ },
4083
4086
  async find(options) {
4084
4087
  const result = await query(options);
4085
4088
  return addPagersFn(query, options, result);
@@ -4287,17 +4290,6 @@ var groupRoles = (client, httpWithAuth) => ({
4287
4290
  },
4288
4291
  });
4289
4292
 
4290
- var health$7 = (userClient, http) => ({
4291
- /**
4292
- * Perform a health check
4293
- * @returns {boolean} success
4294
- */
4295
- async health() {
4296
- const result = await userClient.get(http, '/health');
4297
- return result.status === Results.Success;
4298
- },
4299
- });
4300
-
4301
4293
  const settingsService = (client, httpWithAuth) => ({
4302
4294
  async getVerificationSettings(options) {
4303
4295
  const response = await client.get(httpWithAuth, '/settings/verification', options);
@@ -4480,6 +4472,10 @@ var users$1 = (userClient, httpWithAuth, http) => {
4480
4472
  const { data } = await userClient.put(httpWithAuth, '/email_templates', templates);
4481
4473
  return data;
4482
4474
  },
4475
+ async health() {
4476
+ const result = await userClient.get(http, '/health');
4477
+ return result.status === 200;
4478
+ },
4483
4479
  };
4484
4480
  };
4485
4481
 
@@ -4488,7 +4484,6 @@ const usersService = (httpWithAuth, http) => {
4488
4484
  basePath: USER_BASE,
4489
4485
  transformRequestData: decamelizeRequestData,
4490
4486
  });
4491
- const healthMethods = health$7(userClient, httpWithAuth);
4492
4487
  const usersMethods = users$1(userClient, httpWithAuth, http);
4493
4488
  const groupRolesMethods = groupRoles(userClient, httpWithAuth);
4494
4489
  const globalRolesMethods = globalRoles(userClient, httpWithAuth);
@@ -4496,7 +4491,6 @@ const usersService = (httpWithAuth, http) => {
4496
4491
  const forgotPasswordRequestsMethods = forgotPasswordRequestsService(userClient, httpWithAuth);
4497
4492
  const settingsMethods = settingsService(userClient, httpWithAuth);
4498
4493
  return {
4499
- ...healthMethods,
4500
4494
  ...usersMethods,
4501
4495
  groupRoles: groupRolesMethods,
4502
4496
  globalRoles: globalRolesMethods,
@@ -4605,10 +4599,11 @@ var templates = (client, httpAuth) => ({
4605
4599
  return result.status === Results.Success;
4606
4600
  },
4607
4601
  async find(options) {
4608
- return (await client.get(httpAuth, `/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, {
4602
+ const result = await client.get(httpAuth, `/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, {
4609
4603
  ...options,
4610
4604
  customResponseKeys: ['data.schema.fields', 'data.fields'],
4611
- })).data;
4605
+ });
4606
+ return result.data;
4612
4607
  },
4613
4608
  async findAll(options) {
4614
4609
  return findAllGeneric(this.find, options);
@@ -4629,47 +4624,54 @@ var templates = (client, httpAuth) => ({
4629
4624
  return res.data[0];
4630
4625
  },
4631
4626
  async create(requestBody, options) {
4632
- return (await client.post(httpAuth, '/', requestBody, {
4627
+ const result = await client.post(httpAuth, '/', requestBody, {
4633
4628
  ...options,
4634
4629
  customKeys: ['schema.fields', 'fields'],
4635
- })).data;
4630
+ });
4631
+ return result.data;
4636
4632
  },
4637
4633
  async update(templateId, requestBody, options) {
4638
- return (await client.put(httpAuth, `/${templateId}`, requestBody, {
4634
+ const result = await client.put(httpAuth, `/${templateId}`, requestBody, {
4639
4635
  ...options,
4640
4636
  customKeys: ['schema.fields', 'fields'],
4641
- })).data;
4637
+ });
4638
+ return result.data;
4642
4639
  },
4643
4640
  async remove(templateId, options) {
4644
- return (await client.delete(httpAuth, `/${templateId}`, options)).data;
4641
+ const result = await client.delete(httpAuth, `/${templateId}`, options);
4642
+ return result.data;
4645
4643
  },
4646
4644
  async resolveAsPdf(templateId, requestBody, options) {
4647
- return (await client.post(httpAuth, `/${templateId}/pdf`, requestBody, {
4645
+ const result = await client.post(httpAuth, `/${templateId}/pdf`, requestBody, {
4648
4646
  ...options,
4649
4647
  customRequestKeys: ['content'],
4650
4648
  responseType: 'arraybuffer',
4651
- })).data;
4649
+ });
4650
+ return result.data;
4652
4651
  },
4653
4652
  async resolveAsPdfUsingCode(templateId, localizationCode, requestBody, options) {
4654
- return (await client.post(httpAuth, `/${templateId}/pdf/${localizationCode}`, requestBody, {
4653
+ const result = await client.post(httpAuth, `/${templateId}/pdf/${localizationCode}`, requestBody, {
4655
4654
  ...options,
4656
4655
  customRequestKeys: ['content'],
4657
4656
  responseType: 'arraybuffer',
4658
- })).data;
4657
+ });
4658
+ return result.data;
4659
4659
  },
4660
4660
  async resolveAsJson(templateId, requestBody, options) {
4661
- return (await client.post(httpAuth, `/${templateId}/resolve`, requestBody, {
4661
+ const result = await client.post(httpAuth, `/${templateId}/resolve`, requestBody, {
4662
4662
  ...options,
4663
4663
  customRequestKeys: ['content'],
4664
4664
  customResponseKeys: ['*'],
4665
- })).data;
4665
+ });
4666
+ return result.data;
4666
4667
  },
4667
4668
  async resolveAsJsonUsingCode(templateId, localizationCode, requestBody, options) {
4668
- return (await client.post(httpAuth, `/${templateId}/resolve/${localizationCode}`, requestBody, {
4669
+ const result = await client.post(httpAuth, `/${templateId}/resolve/${localizationCode}`, requestBody, {
4669
4670
  ...options,
4670
4671
  customRequestKeys: ['content'],
4671
4672
  customResponseKeys: ['*'],
4672
- })).data;
4673
+ });
4674
+ return result.data;
4673
4675
  },
4674
4676
  });
4675
4677
 
@@ -4870,7 +4872,7 @@ var appStoreSubscriptions = (client, httpAuth) => ({
4870
4872
  },
4871
4873
  });
4872
4874
 
4873
- var health$6 = (client, httpAuth) => ({
4875
+ var health = (client, httpAuth) => ({
4874
4876
  /**
4875
4877
  * Check if the service is available
4876
4878
  * @returns true if service is up and running
@@ -5074,7 +5076,7 @@ const paymentsService = (httpWithAuth) => {
5074
5076
  basePath: PAYMENTS_BASE,
5075
5077
  });
5076
5078
  return {
5077
- ...health$6(client, httpWithAuth),
5079
+ ...health(client, httpWithAuth),
5078
5080
  products: products(client, httpWithAuth),
5079
5081
  orders: orders(client, httpWithAuth),
5080
5082
  subscriptions: subscriptions$1(client, httpWithAuth),
@@ -5096,17 +5098,6 @@ var countries = (client, httpAuth) => ({
5096
5098
  },
5097
5099
  });
5098
5100
 
5099
- var health$5 = (client, http) => ({
5100
- /**
5101
- * Perform a health check
5102
- * @returns {boolean} success
5103
- */
5104
- async health() {
5105
- const result = await client.get(http, '/health');
5106
- return result.status === Results.Success;
5107
- },
5108
- });
5109
-
5110
5101
  var languages = (client, httpAuth) => ({
5111
5102
  async getLanguages(options) {
5112
5103
  return (await client.get(httpAuth, '/languages', options)).data.data;
@@ -5140,6 +5131,10 @@ var localizations = (client, httpAuth) => ({
5140
5131
  customResponseKeys: ['*'],
5141
5132
  })).data;
5142
5133
  },
5134
+ async health() {
5135
+ const result = await client.get(httpAuth, '/health');
5136
+ return result.status === 200;
5137
+ },
5143
5138
  });
5144
5139
 
5145
5140
  const localizationsService = (httpWithAuth) => {
@@ -5148,7 +5143,6 @@ const localizationsService = (httpWithAuth) => {
5148
5143
  basePath: LOCALIZATIONS_BASE,
5149
5144
  });
5150
5145
  return {
5151
- ...health$5(client, httpWithAuth),
5152
5146
  ...localizations(client, httpWithAuth),
5153
5147
  ...countries(client, httpWithAuth),
5154
5148
  ...languages(client, httpWithAuth),
@@ -5173,17 +5167,6 @@ var groups = (client, httpAuth) => ({
5173
5167
  },
5174
5168
  });
5175
5169
 
5176
- var health$4 = (client, httpAuth) => ({
5177
- /**
5178
- * Perform a health check for profiles service
5179
- * @returns {boolean} success
5180
- */
5181
- async health() {
5182
- const result = await client.get(httpAuth, '/health');
5183
- return result.status === Results.Success;
5184
- },
5185
- });
5186
-
5187
5170
  var logs = (client, httpAuth) => {
5188
5171
  function partialApplyFind(profileId, groupId) {
5189
5172
  return async (options) => (await client.get(httpAuth, `/${profileId}/groups/${groupId}/logs/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, options)).data;
@@ -5254,6 +5237,10 @@ var profiles = (client, httpAuth) => ({
5254
5237
  async getImpediments(options) {
5255
5238
  return (await client.get(httpAuth, '/impediments', options)).data;
5256
5239
  },
5240
+ async health() {
5241
+ const result = await client.get(httpAuth, '/health');
5242
+ return result.status === 200;
5243
+ },
5257
5244
  });
5258
5245
 
5259
5246
  const profilesService = (httpWithAuth) => {
@@ -5262,24 +5249,12 @@ const profilesService = (httpWithAuth) => {
5262
5249
  basePath: PROFILES_BASE,
5263
5250
  });
5264
5251
  return {
5265
- ...health$4(client, httpWithAuth),
5266
5252
  ...profiles(client, httpWithAuth),
5267
5253
  groups: groups(client, httpWithAuth),
5268
5254
  logs: logs(client, httpWithAuth),
5269
5255
  };
5270
5256
  };
5271
5257
 
5272
- var health$3 = (client, http) => ({
5273
- /**
5274
- * Perform a health check
5275
- * @returns {boolean} success
5276
- */
5277
- async health() {
5278
- const result = await client.get(http, '/health');
5279
- return result.status === Results.Success;
5280
- },
5281
- });
5282
-
5283
5258
  var notifications = (client, httpAuth) => {
5284
5259
  async function find(options) {
5285
5260
  return (await client.get(httpAuth, `/notifications${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, options)).data;
@@ -5325,6 +5300,10 @@ var notifications = (client, httpAuth) => {
5325
5300
  async getTypes(options) {
5326
5301
  return (await client.get(httpAuth, '/types', options)).data;
5327
5302
  },
5303
+ async health() {
5304
+ const result = await client.get(httpAuth, '/health');
5305
+ return result.status === 200;
5306
+ },
5328
5307
  };
5329
5308
  };
5330
5309
 
@@ -5354,23 +5333,11 @@ const notificationsService = (httpWithAuth) => {
5354
5333
  transformRequestData: decamelizeRequestData,
5355
5334
  });
5356
5335
  return {
5357
- ...health$3(client, httpWithAuth),
5358
5336
  ...notifications(client, httpWithAuth),
5359
5337
  settings: settings(client, httpWithAuth),
5360
5338
  };
5361
5339
  };
5362
5340
 
5363
- var health$2 = (client, http) => ({
5364
- /**
5365
- * Perform a health check
5366
- * @returns {boolean} success
5367
- */
5368
- async health() {
5369
- const result = await client.get(http, '/health');
5370
- return result.status === Results.Success;
5371
- },
5372
- });
5373
-
5374
5341
  var notificationsV2 = (client, httpWithAuth) => {
5375
5342
  async function find(options) {
5376
5343
  const result = await client.get(httpWithAuth, `/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, {
@@ -5407,6 +5374,10 @@ var notificationsV2 = (client, httpWithAuth) => {
5407
5374
  const rqlWithNotificationId = rqlBuilder().eq('id', notificationId).build();
5408
5375
  return await this.findFirst({ ...options, rql: rqlWithNotificationId });
5409
5376
  },
5377
+ async health() {
5378
+ const result = await client.get(httpWithAuth, '/health');
5379
+ return result.status === 200;
5380
+ },
5410
5381
  };
5411
5382
  };
5412
5383
 
@@ -5455,7 +5426,6 @@ const notificationsV2Service = (httpWithAuth) => {
5455
5426
  basePath: NOTIFICATIONS_V2_BASE,
5456
5427
  });
5457
5428
  return {
5458
- ...health$2(client, httpWithAuth),
5459
5429
  ...notificationsV2(client, httpWithAuth),
5460
5430
  userSettings: notificationV2UserSettings(client, httpWithAuth),
5461
5431
  };
@@ -5481,16 +5451,9 @@ var events = (client, httpAuth) => ({
5481
5451
  }
5482
5452
  return (await client.post(httpAuth, '/', requestBody, requestOptions)).data;
5483
5453
  },
5484
- });
5485
-
5486
- var health$1 = (client, http) => ({
5487
- /**
5488
- * Perform a health check
5489
- * @returns {boolean} success
5490
- */
5491
5454
  async health() {
5492
- const result = await client.get(http, '/health');
5493
- return result.status === Results.Success;
5455
+ const result = await client.get(httpAuth, '/health');
5456
+ return result.status === 200;
5494
5457
  },
5495
5458
  });
5496
5459
 
@@ -5519,7 +5482,6 @@ const eventsService = (httpWithAuth) => {
5519
5482
  transformRequestData: decamelizeRequestData,
5520
5483
  });
5521
5484
  return {
5522
- ...health$1(client, httpWithAuth),
5523
5485
  ...events(client, httpWithAuth),
5524
5486
  subscriptions: subscriptions(client, httpWithAuth),
5525
5487
  };
@@ -5551,22 +5513,11 @@ const logsService = (httpWithAuth) => {
5551
5513
  };
5552
5514
  };
5553
5515
 
5554
- var health = (client, http) => ({
5555
- /**
5556
- * Perform a health check
5557
- * @returns {boolean} success
5558
- */
5559
- async health() {
5560
- const result = await client.get(http, '/health');
5561
- return result.status === Results.Success;
5562
- },
5563
- });
5564
-
5565
5516
  var templatesV2 = (client, httpWithAuth) => {
5566
5517
  async function find(options) {
5567
5518
  const result = await client.get(httpWithAuth, `/${(options === null || options === void 0 ? void 0 : options.rql) || ''}`, {
5568
5519
  ...options,
5569
- customResponseKeys: ['data.properties', 'data.outputs'],
5520
+ customResponseKeys: ['data.inputs', 'data.outputs'],
5570
5521
  });
5571
5522
  return result.data;
5572
5523
  }
@@ -5574,14 +5525,14 @@ var templatesV2 = (client, httpWithAuth) => {
5574
5525
  async create(requestBody, options) {
5575
5526
  const result = (await client.post(httpWithAuth, '/', requestBody, {
5576
5527
  ...options,
5577
- customKeys: ['properties', 'outputs'],
5528
+ customKeys: ['inputs', 'outputs'],
5578
5529
  }));
5579
5530
  return result.data;
5580
5531
  },
5581
5532
  async update(templateId, requestBody, options) {
5582
5533
  const result = (await client.put(httpWithAuth, `/${templateId}`, requestBody, {
5583
5534
  ...options,
5584
- customKeys: ['properties', 'outputs'],
5535
+ customKeys: ['inputs', 'outputs'],
5585
5536
  }));
5586
5537
  return result.data;
5587
5538
  },
@@ -5592,7 +5543,7 @@ var templatesV2 = (client, httpWithAuth) => {
5592
5543
  async resolve(templateId, requestBody, options) {
5593
5544
  const result = (await client.post(httpWithAuth, `/${templateId}/resolve`, requestBody, {
5594
5545
  ...options,
5595
- customRequestKeys: ['data'],
5546
+ customRequestKeys: ['inputs'],
5596
5547
  customResponseKeys: ['*'],
5597
5548
  }));
5598
5549
  return result.data;
@@ -5618,6 +5569,10 @@ var templatesV2 = (client, httpWithAuth) => {
5618
5569
  const result = await find(options);
5619
5570
  return result.data[0];
5620
5571
  },
5572
+ async health() {
5573
+ const result = await client.get(httpWithAuth, '/health');
5574
+ return result.status === 200;
5575
+ },
5621
5576
  };
5622
5577
  };
5623
5578
 
@@ -5626,12 +5581,11 @@ const templatesV2Service = (httpWithAuth) => {
5626
5581
  basePath: TEMPLATES_V2_BASE,
5627
5582
  });
5628
5583
  return {
5629
- ...health(client, httpWithAuth),
5630
5584
  ...templatesV2(client, httpWithAuth),
5631
5585
  };
5632
5586
  };
5633
5587
 
5634
- const version = '8.9.0-feat-134-c0f5b9d';
5588
+ const version = '8.9.0';
5635
5589
 
5636
5590
  /**
5637
5591
  * Create ExtraHorizon client.
@@ -5811,4 +5765,4 @@ const parseStoredCredentials = (fileContent) => exhCredentialsDecoder(fileConten
5811
5765
  .filter(line => line.length === 2)
5812
5766
  .reduce((memo, [key, value]) => ({ ...memo, [key]: value }), {}));
5813
5767
 
5814
- export { AccessTokenExpiredError, AccessTokenUnknownError, ActionType, ActivationRequestLimitError, ActivationRequestTimeoutError, ActivationUnknownError, AlreadyActivatedError, ApiError, ApiFunctionRequestMethod, ApiRequestErrorType, AppStoreTransactionAlreadyLinked, ApplicationNotAuthenticatedError, ApplicationType, ApplicationUnknownError, AuthenticationError, AuthorizationCodeExpiredError, AuthorizationUnknownError, BadGatewayServerError, BadRequestError, BodyFormatError, CallbackNotValidError, Comorbidities, DefaultLocalizationMissingError, DisabledForOidcUsersError, DuplicateRequestError, EmailUnknownError, EmailUsedError, EmptyBodyError, ErrorClassMap, FieldFormatError, FieldType, FileTooLargeError, FirebaseConnectionError, FirebaseInvalidPlatformDataError, ForbiddenError, ForgotPasswordRequestLimitError, ForgotPasswordRequestTimeoutError, FunctionPermissionMode, Gender, GlobalPermissionName, IDFormatError, IllegalArgumentError, IllegalStateError, Impediments, IncorrectPinCodeError, InvalidClientError, InvalidCurrencyForProductPrice, InvalidGrantError, InvalidMfaCodeError, InvalidMfaTokenError, InvalidNonceError, InvalidPKCEError, InvalidPresenceTokenError, InvalidReceiptDataError, InvalidRequestError, InvalidTokenError, JSONSchemaType, LocalizationKeyMissingError, LockedDocumentError, LoginAttemptStatus, LoginFreezeError, LoginTimeoutError, MedicationFrequency, MedicationUnit, MfaReattemptDelayError, MfaRequiredError, MissingPKCEVerifierError, MissingRequiredFieldsError, NewMFARequiredError, NewPasswordHashUnknownError, NewPasswordPinCodeUnknownError, NoConfiguredAppStoreProduct, NoConfiguredPlayStoreProduct, NoMatchingPlayStoreLinkedSubscription, NoPermissionError, NotActivatedError, NotEnoughMfaMethodsError, NotFoundError, OAuth2ClientIdError, OAuth2ClientSecretError, OAuth2ErrorClassMap, OAuth2LoginError, OAuth2MissingClientCredentialsError, OauthKeyError, OauthSignatureError, OauthTokenError, ObjectMaxBytesOptionType, ObjectMinBytesOptionType, OidcIdTokenError, OidcInvalidAuthorizationCodeError, OidcProviderResponseError, OrderSchemaStatus, PasswordError, PaymentIntentCreationSchemaPaymentMethodType, PaymentIntentCreationSchemaSetupPaymentMethodReuse, PinCodesNotEnabledError, PlayStoreTransactionAlreadyLinked, ProfileActivity, ProfileAlreadyExistsError, QueuedMailStatus, RefreshTokenExpiredError, RefreshTokenUnknownError, RemoveFieldError, RequestAbortedError, ResourceAlreadyExistsError, ResourceUnknownError, Results, ServerError, ServiceUnavailableError, StatusInUseError, StripePaymentMethodError, StripeRequestError, SubscriptionEntitlementSource, SubscriptionEntitlementStatus, SubscriptionEntitlementStatusCategory, SubscriptionEventSource, SubscriptionEventType, SupportedLanguageCodes, TaskStatus, TemplateFillingError, TemplateResolvingError, TemplateSyntaxError, TokenNotDeleteableError, TokenPermission, TooManyFailedAttemptsError, UnauthorizedClientError, UnauthorizedError, UnauthorizedTokenError, UnknownReceiptTransactionError, UnsupportedGrantError, UnsupportedGrantTypeError, UnsupportedResponseTypeError, UserNotAuthenticatedError, createClient, createOAuth1Client, createOAuth2Client, createProxyClient, findAllGeneric, findAllIterator, getMockSdkOAuth2 as getMockSdk, getMockSdkOAuth1, getMockSdkOAuth2, getMockSdkProxy, parseGlobalPermissions, parseStoredCredentials, recursiveMap, rqlBuilder, rqlParser };
5768
+ export { AccessTokenExpiredError, AccessTokenUnknownError, ActionType, ActivationRequestLimitError, ActivationRequestTimeoutError, ActivationUnknownError, AlreadyActivatedError, ApiError, ApiFunctionRequestMethod, ApiRequestErrorType, AppStoreTransactionAlreadyLinked, ApplicationNotAuthenticatedError, ApplicationType, ApplicationUnknownError, AuthenticationError, AuthorizationCodeExpiredError, AuthorizationUnknownError, BadGatewayServerError, BadRequestError, BodyFormatError, CallbackNotValidError, Comorbidities, DefaultLocalizationMissingError, DisabledForOidcUsersError, DuplicateRequestError, EmailUnknownError, EmailUsedError, EmptyBodyError, ErrorClassMap, FieldFormatError, FieldType, FileTooLargeError, FirebaseConnectionError, FirebaseInvalidPlatformDataError, ForbiddenError, ForgotPasswordRequestLimitError, ForgotPasswordRequestTimeoutError, FunctionPermissionMode, Gender, GlobalPermissionName, IDFormatError, IllegalArgumentError, IllegalStateError, Impediments, IncorrectPinCodeError, InvalidClientError, InvalidCurrencyForProductPrice, InvalidGrantError, InvalidMfaCodeError, InvalidMfaTokenError, InvalidNonceError, InvalidPKCEError, InvalidPresenceTokenError, InvalidReceiptDataError, InvalidRequestError, InvalidTokenError, JSONSchemaType, LambdaInvocationError, LocalizationKeyMissingError, LockedDocumentError, LoginAttemptStatus, LoginFreezeError, LoginTimeoutError, MedicationFrequency, MedicationUnit, MfaReattemptDelayError, MfaRequiredError, MissingPKCEVerifierError, MissingRequiredFieldsError, NewMFARequiredError, NewPasswordHashUnknownError, NewPasswordPinCodeUnknownError, NoConfiguredAppStoreProduct, NoConfiguredPlayStoreProduct, NoMatchingPlayStoreLinkedSubscription, NoPermissionError, NotActivatedError, NotEnoughMfaMethodsError, NotFoundError, OAuth2ClientIdError, OAuth2ClientSecretError, OAuth2ErrorClassMap, OAuth2LoginError, OAuth2MissingClientCredentialsError, OauthKeyError, OauthSignatureError, OauthTokenError, OidcIdTokenError, OidcInvalidAuthorizationCodeError, OidcProviderResponseError, OrderSchemaStatus, PasswordError, PaymentIntentCreationSchemaPaymentMethodType, PaymentIntentCreationSchemaSetupPaymentMethodReuse, PinCodesNotEnabledError, PlayStoreTransactionAlreadyLinked, ProfileActivity, ProfileAlreadyExistsError, QueuedMailStatus, RefreshTokenExpiredError, RefreshTokenUnknownError, RemoveFieldError, RequestAbortedError, ResourceAlreadyExistsError, ResourceUnknownError, Results, ServerError, ServiceNotFoundError, ServiceUnavailableError, StatusInUseError, StripePaymentMethodError, StripeRequestError, SubscriptionEntitlementSource, SubscriptionEntitlementStatus, SubscriptionEntitlementStatusCategory, SubscriptionEventSource, SubscriptionEventType, SupportedLanguageCodes, TaskStatus, TemplateFillingError, TemplateResolvingError, TemplateSyntaxError, TokenNotDeleteableError, TokenPermission, TooManyFailedAttemptsError, UnauthorizedClientError, UnauthorizedError, UnauthorizedTokenError, UnknownReceiptTransactionError, UnsupportedGrantError, UnsupportedGrantTypeError, UnsupportedResponseTypeError, UserNotAuthenticatedError, createClient, createOAuth1Client, createOAuth2Client, createProxyClient, findAllGeneric, findAllIterator, getMockSdkOAuth2 as getMockSdk, getMockSdkOAuth1, getMockSdkOAuth2, getMockSdkProxy, parseGlobalPermissions, parseStoredCredentials, recursiveMap, rqlBuilder, rqlParser };
@@ -154,6 +154,8 @@ export declare class RefreshTokenUnknownError extends BadRequestError {
154
154
  }
155
155
  export declare class RefreshTokenExpiredError extends BadRequestError {
156
156
  }
157
+ export declare class LambdaInvocationError extends BadRequestError {
158
+ }
157
159
  export declare class FirebaseInvalidPlatformDataError extends BadRequestError {
158
160
  notificationId?: string;
159
161
  errors?: NotificationV2Error[];
@@ -219,6 +221,8 @@ export declare class NotFoundError extends ApiError {
219
221
  }
220
222
  export declare class ResourceUnknownError extends NotFoundError {
221
223
  }
224
+ export declare class ServiceNotFoundError extends NotFoundError {
225
+ }
222
226
  export declare class NoConfiguredAppStoreProduct extends NotFoundError {
223
227
  }
224
228
  export declare class ServerError extends ApiError {
@@ -331,10 +335,12 @@ export declare const ErrorClassMap: {
331
335
  414: typeof StatusInUseError;
332
336
  415: typeof LockedDocumentError;
333
337
  801: typeof DefaultLocalizationMissingError;
338
+ 903: typeof ServiceNotFoundError;
334
339
  1002: typeof LocalizationKeyMissingError;
335
340
  1003: typeof TemplateFillingError;
336
341
  1004: typeof TemplateSyntaxError;
337
342
  1005: typeof TemplateResolvingError;
343
+ 1405: typeof LambdaInvocationError;
338
344
  2605: typeof InvalidTokenError;
339
345
  2606: typeof UnauthorizedTokenError;
340
346
  2607: typeof TokenNotDeleteableError;
@@ -11,4 +11,8 @@ interface OAuth1RequestInformation {
11
11
  export declare function getOAuth1AuthorizationHeader(requestInformation: OAuth1RequestInformation): {
12
12
  Authorization: string;
13
13
  };
14
+ export declare function getUrlInfoFromRequest(url: string): {
15
+ baseUrl: string;
16
+ searchParameters: any;
17
+ };
14
18
  export {};