@extrahorizon/javascript-sdk 8.9.0-dev-144-fe86b3e → 8.9.0-dev-146-a1caf73

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.
@@ -673,6 +673,8 @@ class RefreshTokenUnknownError extends BadRequestError {
673
673
  }
674
674
  class RefreshTokenExpiredError extends BadRequestError {
675
675
  }
676
+ class LambdaInvocationError extends BadRequestError {
677
+ }
676
678
  class FirebaseInvalidPlatformDataError extends BadRequestError {
677
679
  constructor(apiError) {
678
680
  super(apiError);
@@ -934,6 +936,7 @@ const ErrorClassMap = {
934
936
  1003: TemplateFillingError,
935
937
  1004: TemplateSyntaxError,
936
938
  1005: TemplateResolvingError,
939
+ 1405: LambdaInvocationError,
937
940
  2605: InvalidTokenError,
938
941
  2606: UnauthorizedTokenError,
939
942
  2607: TokenNotDeleteableError,
@@ -2055,8 +2058,7 @@ function getUrlInfoFromRequest(url) {
2055
2058
  const { protocol, host, pathname, search } = new URL(url);
2056
2059
  return {
2057
2060
  baseUrl: `${protocol}//${host}${pathname}`,
2058
- searchParameters: qs__namespace.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
2059
- ),
2061
+ searchParameters: qs__namespace.parse(search.startsWith('?') ? search.slice(1) : search),
2060
2062
  };
2061
2063
  }
2062
2064
  // Util functions
@@ -5613,7 +5615,7 @@ const templatesV2Service = (httpWithAuth) => {
5613
5615
  };
5614
5616
  };
5615
5617
 
5616
- const version = '8.9.0-dev-144-fe86b3e';
5618
+ const version = '8.9.0-dev-146-a1caf73';
5617
5619
 
5618
5620
  /**
5619
5621
  * Create ExtraHorizon client.
@@ -5839,6 +5841,7 @@ exports.InvalidPresenceTokenError = InvalidPresenceTokenError;
5839
5841
  exports.InvalidReceiptDataError = InvalidReceiptDataError;
5840
5842
  exports.InvalidRequestError = InvalidRequestError;
5841
5843
  exports.InvalidTokenError = InvalidTokenError;
5844
+ exports.LambdaInvocationError = LambdaInvocationError;
5842
5845
  exports.LocalizationKeyMissingError = LocalizationKeyMissingError;
5843
5846
  exports.LockedDocumentError = LockedDocumentError;
5844
5847
  exports.LoginFreezeError = LoginFreezeError;
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);
@@ -904,6 +906,7 @@ const ErrorClassMap = {
904
906
  1003: TemplateFillingError,
905
907
  1004: TemplateSyntaxError,
906
908
  1005: TemplateResolvingError,
909
+ 1405: LambdaInvocationError,
907
910
  2605: InvalidTokenError,
908
911
  2606: UnauthorizedTokenError,
909
912
  2607: TokenNotDeleteableError,
@@ -2025,8 +2028,7 @@ function getUrlInfoFromRequest(url) {
2025
2028
  const { protocol, host, pathname, search } = new URL(url);
2026
2029
  return {
2027
2030
  baseUrl: `${protocol}//${host}${pathname}`,
2028
- 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
2029
- ),
2031
+ searchParameters: qs.parse(search.startsWith('?') ? search.slice(1) : search),
2030
2032
  };
2031
2033
  }
2032
2034
  // Util functions
@@ -5583,7 +5585,7 @@ const templatesV2Service = (httpWithAuth) => {
5583
5585
  };
5584
5586
  };
5585
5587
 
5586
- const version = '8.9.0-dev-144-fe86b3e';
5588
+ const version = '8.9.0-dev-146-a1caf73';
5587
5589
 
5588
5590
  /**
5589
5591
  * Create ExtraHorizon client.
@@ -5763,4 +5765,4 @@ const parseStoredCredentials = (fileContent) => exhCredentialsDecoder(fileConten
5763
5765
  .filter(line => line.length === 2)
5764
5766
  .reduce((memo, [key, value]) => ({ ...memo, [key]: value }), {}));
5765
5767
 
5766
- 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, 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 };
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[];
@@ -338,6 +340,7 @@ export declare const ErrorClassMap: {
338
340
  1003: typeof TemplateFillingError;
339
341
  1004: typeof TemplateSyntaxError;
340
342
  1005: typeof TemplateResolvingError;
343
+ 1405: typeof LambdaInvocationError;
341
344
  2605: typeof InvalidTokenError;
342
345
  2606: typeof UnauthorizedTokenError;
343
346
  2607: typeof TokenNotDeleteableError;
@@ -1 +1 @@
1
- export declare const version = "8.9.0-dev-144-fe86b3e";
1
+ export declare const version = "8.9.0-dev-146-a1caf73";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/javascript-sdk",
3
- "version": "8.9.0-dev-144-fe86b3e",
3
+ "version": "8.9.0-dev-146-a1caf73",
4
4
  "description": "This package serves as a JavaScript wrapper around all Extra Horizon cloud services.",
5
5
  "main": "build/index.cjs.js",
6
6
  "types": "build/types/index.d.ts",