@tonysamperi/ts-mapi-core 1.4.0-next.0 → 1.4.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.
@@ -1 +1 @@
1
- import{a as o}from"./chunk-OXO327UX.js";import{a as h}from"./chunk-NIJJBDPY.js";import{a as u}from"./chunk-RZ4YI35O.js";import{a as n}from"./chunk-EI7MMDWY.js";var _=class{static{n(this,"SmpHttpService")}static _cachePrefix="kik_rest_cache_";static _cacheStrategy=typeof sessionStorage<"u"?new h:new o;static _config={cachePrefix:this._cachePrefix,shared:new Map};static _errorClass=u;static _mergeParamsFallbackBaseUrl="https://ts-mapi-core";static $http(e){return this._generateAjax(e)}static async _generateAjax(e){if(e.cacheKey){let t=this._cacheRead(e.cacheKey);return t?Promise.resolve(t):this._generateAjaxBase(e).then(r=>(e.cacheKey&&this._cacheWrite(e.cacheKey,r),r))}return this._generateAjaxBase(e)}static async _generateAjaxBase(e){let t=await this._preprocessRequest(e),r={method:t.method,headers:new Headers({"content-type":"application/json",...t.headers}),body:t.body?JSON.stringify(t.body):null};return t.useCredentials&&(r.credentials="include"),t.url=this.mergeQueryParams(t.url,t.queryParams),fetch(t.url,r).then(a=>this._preprocessResponse(e,a)).then(a=>{if(a.ok){if(a.status===204||a.headers.get("content-length")==="0")return null;switch(t.responseType){case"blob":return a.blob();case"arraybuffer":return a.arrayBuffer();case"text":return a.text();case"json":default:return a.json()}}return a.json().then(s=>{let c=s;try{c=this._errorClass.fromPlain(s)}catch(i){console.debug("http: failed to parse error response into ErrorResponse",i)}return Promise.reject({status:a.status,message:a.statusText,body:c})})})}static cacheFlush(){this._cacheStrategy.flush()}static mergeQueryParams(e,t){let r=e.startsWith("http");if(t){let a=new URL(e,globalThis?.location?.origin||this._mergeParamsFallbackBaseUrl),s=Object.fromEntries(a.searchParams.entries());a.search=new URLSearchParams({...s,...Object.fromEntries(Object.entries(t).map(([c,i])=>[c,`${i}`]))}).toString(),e=r?a.href:a.pathname+a.search}return e}static _cacheKey(e){return`${this._config.cachePrefix}${e}`}static _cachePop(e){let t=this._cacheRead(e);return this._cacheRemove(e),t}static _cacheRead(e){return this._cacheStrategy.read(this._cacheKey(e))}static _cacheRemove(e){this._cacheStrategy.remove(this._cacheKey(e))}static _cacheWrite(e,t){this._cacheStrategy.write(this._cacheKey(e),t)}static async _preprocessRequest(e){return e}static async _preprocessResponse(e,t){return t}};export{_ as a};
1
+ import{a as o}from"./chunk-OXO327UX.js";import{a as u}from"./chunk-RZ4YI35O.js";import{a as h}from"./chunk-NIJJBDPY.js";import{a as n}from"./chunk-EI7MMDWY.js";var _=class{static{n(this,"SmpHttpService")}static _cachePrefix="kik_rest_cache_";static _cacheStrategy=typeof sessionStorage<"u"?new h:new o;static _config={cachePrefix:this._cachePrefix,shared:new Map};static _errorClass=u;static _mergeParamsFallbackBaseUrl="https://ts-mapi-core";static $http(e){return this._generateAjax(e)}static async _generateAjax(e){if(e.cacheKey){let t=this._cacheRead(e.cacheKey);return t?Promise.resolve(t):this._generateAjaxBase(e).then(r=>(e.cacheKey&&this._cacheWrite(e.cacheKey,r),r))}return this._generateAjaxBase(e)}static async _generateAjaxBase(e){let t=await this._preprocessRequest(e),r={method:t.method,headers:new Headers({"content-type":"application/json",...t.headers}),body:t.body?JSON.stringify(t.body):null};return t.useCredentials&&(r.credentials="include"),t.url=this.mergeQueryParams(t.url,t.queryParams),fetch(t.url,r).then(a=>this._preprocessResponse(e,a)).then(a=>{if(a.ok){if(a.status===204||a.headers.get("content-length")==="0")return null;switch(t.responseType){case"blob":return a.blob();case"arraybuffer":return a.arrayBuffer();case"text":return a.text();case"json":default:return a.json()}}return a.json().then(s=>{let c=s;try{c=this._errorClass.fromPlain(s)}catch(i){console.debug("http: failed to parse error response into ErrorResponse",i)}return Promise.reject({status:a.status,message:a.statusText,body:c})})})}static cacheFlush(){this._cacheStrategy.flush()}static mergeQueryParams(e,t){let r=e.startsWith("http");if(t){let a=new URL(e,globalThis?.location?.origin||this._mergeParamsFallbackBaseUrl),s=Object.fromEntries(a.searchParams.entries());a.search=new URLSearchParams({...s,...Object.fromEntries(Object.entries(t).map(([c,i])=>[c,`${i}`]))}).toString(),e=r?a.href:a.pathname+a.search}return e}static _cacheKey(e){return`${this._config.cachePrefix}${e}`}static _cachePop(e){let t=this._cacheRead(e);return this._cacheRemove(e),t}static _cacheRead(e){return this._cacheStrategy.read(this._cacheKey(e))}static _cacheRemove(e){this._cacheStrategy.remove(this._cacheKey(e))}static _cacheWrite(e,t){this._cacheStrategy.write(this._cacheKey(e),t)}static async _preprocessRequest(e){return e}static async _preprocessResponse(e,t){return t}};export{_ as a};
@@ -1 +1 @@
1
- import{a as n}from"./chunk-LB7RIIRT.js";import{a as s}from"./chunk-WLD2KYV4.js";import{a as o}from"./chunk-4A2VEL4I.js";import{a as d}from"./chunk-RCI7NEJO.js";import{a}from"./chunk-EI7MMDWY.js";import{getApps as l,initializeApp as g}from"firebase/app";import{browserLocalPersistence as u,browserSessionPersistence as p,EmailAuthProvider as _,FacebookAuthProvider as m,GoogleAuthProvider as f,OAuthProvider as P,checkActionCode as U,confirmPasswordReset as E,fetchSignInMethodsForEmail as b,getAuth as w,getRedirectResult as S,reauthenticateWithCredential as I,sendEmailVerification as F,sendPasswordResetEmail as v,setPersistence as A,signInWithCustomToken as C,signInWithEmailAndPassword as R,signInWithPopup as L,signInWithRedirect as O,signOut as T,updatePassword as k,updateProfile as y}from"firebase/auth";var c=class h{static{a(this,"SmpFirebaseService")}static get instance(){if(!(this._instance instanceof h))throw Error(`${this.constructor.name} instance doesn't exist! Call ${this.constructor.name}.init first!`);return this._instance}static _instance;get config(){return this._config}get enabledSocials(){return this._enabledSocials}get loggedUser(){return this._loggedUser||(this._loggedUser=this._readStoredUser()),this._auth.currentUser||this._loggedUser||void 0}get providersRelation(){return{"facebook.com":s.FACEBOOK,"google.com":s.GOOGLE,"apple.com":s.APPLE}}get socialLoginUXMode(){return this._socialLoginUxMode}get storedUserKey(){return"firebaseUser"}get _auth(){return w(this._app)}_app;_config;_enabledSocials=[];_loggedUser;_logger;_popupErrors=0;_popupFallsBackToRedirect;_providers;_socialLoginUxMode=o.POPUP;constructor(e,t){this._config=e,this._enabledSocials=t.enabledSocials||[],this._socialLoginUxMode=t.socialLoginUxMode||o.POPUP,this._popupFallsBackToRedirect=!!t.popupFallsBackToRedirect,this._buildProviders(),this._logger=t.logger||new d,this._app=l().length?l()[0]:g(e),this._watchAuthState()}static init(e,t){return this._instance||(this._instance=new h(e,t)),this._instance}addAuthStateChangedCallback(e){return this._auth.onAuthStateChanged(t=>{e(t||this.loggedUser||null)})}checkActionCode(e){return U(this._auth,e)}confirmPasswordReset(e,t){return E(this._auth,e,t)}fetchSignInMethodsForEmail(e){return b(this._auth,e).then(t=>t.map(r=>this.providersRelation[r]||r))}getRedirectResult(){return S(this._auth).catch(async e=>(await this._expandDifferentCredential(e),Promise.reject(e)))}initAppCheck(){}sendEmailVerification(e){if(!this.loggedUser)throw Error("Firebase: user is not logged!");return F(this.loggedUser,e?{url:e}:void 0)}sendPasswordResetEmail(e,t){return v(this._auth,e,{url:t})}setPersistence(e){return A(this._auth,e?u:p)}signInWithCustomToken(e){return C(this._auth,e)}signInWithEmailAndPassword(e,t){return R(this._auth,e,t).then(async r=>r.user)}signInWithSocialProvider(e){if(!this._providers[e])throw Error(`Firebase: invalid social key provided! Expected one of ${this.enabledSocials}, got ${e}`);return this._signInWithProvider(this._providers[e])}signOut(){return T(this._auth)}updatePassword(e,t){if(!this.loggedUser)throw Error("Firebase: user is not logged!");let r=_.credential(this.loggedUser.email,e);return I(this.loggedUser,r).then(()=>k(this.loggedUser,t))}updateUserProfile(e){if(!this.loggedUser)throw Error("Firebase: user is not logged!");return y(this.loggedUser,e)}async verifyIdToken(){return this._auth.currentUser?.getIdTokenResult()}_buildProviders(){this._providers=this._enabledSocials.reduce((e,t)=>(t in e&&(e[t]=e[t]),e),{[s.APPLE]:new P("apple.com"),[s.FACEBOOK]:new m().setCustomParameters({prompt:"select_account"}),[s.GOOGLE]:new f().setCustomParameters({prompt:"select_account"})})}async _expandDifferentCredential(e){if(e?.code===n.DIFFERENT_CREDENTIAL){let t=await this.fetchSignInMethodsForEmail(e.customData.email);throw e.code=n["DIFFERENT_CREDENTIAL_"+t[0]],e}}_readStoredUser(){try{let e=localStorage.getItem(this.storedUserKey);if(e){this._logger?.debug("Firebase: found local user",e);let t=JSON.parse(e);return{...t,getIdToken:a(()=>Promise.resolve(t.stsTokenManager.accessToken),"getIdToken")}}}catch(e){this._logger.debug("Firebase: error while getting stored user",e)}}async _signInWithProvider(e,t=this.socialLoginUXMode){return(t===o.POPUP?L:O)(this._auth,e).then(i=>(this._logger.info(`Firebase: signin with provider ${e.providerId} was successful`),i.user)).catch(async i=>i?.code===n.POPUP_BLOCKED&&(this._logger.warn(`Firebase: social signin popup blocked (${++this._popupErrors}`),this._popupFallsBackToRedirect&&this._popupErrors>1)?(this._popupErrors=0,this._signInWithProvider(e,o.REDIRECT)):(this._logger.error(`Firebase: sign in with ${e.providerId} errored`,i),await this._expandDifferentCredential(i),Promise.reject(i)))}_updateLocalUser(e){try{e?localStorage.setItem(this.storedUserKey,JSON.stringify(e)):localStorage.removeItem(this.storedUserKey),this._logger.debug("Firebase: updating local user",e),this._loggedUser=e}catch(t){this._logger.warn("Firebase: couldn't update local user",{user:e,error:t})}}_watchAuthState(){this._auth.onAuthStateChanged(e=>{this._logger.debug("Firebase: firebase detected auth state change",e),this._updateLocalUser(e||void 0)})}};export{c as a};
1
+ import{a as n}from"./chunk-LB7RIIRT.js";import{a as s}from"./chunk-WLD2KYV4.js";import{a as o}from"./chunk-4A2VEL4I.js";import{a as d}from"./chunk-RCI7NEJO.js";import{a}from"./chunk-EI7MMDWY.js";import{getApps as l,initializeApp as g}from"firebase/app";import{browserLocalPersistence as u,browserSessionPersistence as p,EmailAuthProvider as _,FacebookAuthProvider as m,GoogleAuthProvider as f,OAuthProvider as P,checkActionCode as U,confirmPasswordReset as E,fetchSignInMethodsForEmail as b,getAuth as w,getRedirectResult as S,reauthenticateWithCredential as I,sendEmailVerification as F,sendPasswordResetEmail as A,setPersistence as C,signInWithCustomToken as v,signInWithEmailAndPassword as R,signInWithPopup as L,signInWithRedirect as O,signOut as T,updatePassword as k,updateProfile as y}from"firebase/auth";var c=class h{static{a(this,"SmpFirebaseService")}static get INSTANCE(){if(!(this._instance instanceof h))throw Error(`${this.constructor.name} instance doesn't exist! Call ${this.constructor.name}.init first!`);return this._instance}static _instance;get config(){return this._config}get enabledSocials(){return this._enabledSocials}get loggedUser(){return this._loggedUser||(this._loggedUser=this._readStoredUser()),this._auth.currentUser||this._loggedUser||void 0}get providersRelation(){return{"facebook.com":s.FACEBOOK,"google.com":s.GOOGLE,"apple.com":s.APPLE}}get socialLoginUXMode(){return this._socialLoginUxMode}get storedUserKey(){return"firebaseUser"}get _auth(){return w(this._app)}_app;_config;_enabledSocials=[];_loggedUser;_logger;_popupErrors=0;_popupFallsBackToRedirect;_providers;_socialLoginUxMode=o.POPUP;constructor(e,t){this._config=e,this._enabledSocials=t.enabledSocials||[],this._socialLoginUxMode=t.socialLoginUxMode||o.POPUP,this._popupFallsBackToRedirect=!!t.popupFallsBackToRedirect,this._buildProviders(),this._logger=t.logger||new d,this._app=l().length?l()[0]:g(e),this._watchAuthState()}static init(e,t){return this._instance||(this._instance=new h(e,t)),this._instance}addAuthStateChangedCallback(e){return this._auth.onAuthStateChanged(t=>{e(t||this.loggedUser||null)})}checkActionCode(e){return U(this._auth,e)}confirmPasswordReset(e,t){return E(this._auth,e,t)}fetchSignInMethodsForEmail(e){return b(this._auth,e).then(t=>t.map(r=>this.providersRelation[r]||r))}getRedirectResult(){return S(this._auth).catch(async e=>(await this._expandDifferentCredential(e),Promise.reject(e)))}initAppCheck(){}sendEmailVerification(e){if(!this.loggedUser)throw Error("Firebase: user is not logged!");return F(this.loggedUser,e?{url:e}:void 0)}sendPasswordResetEmail(e,t){return A(this._auth,e,{url:t})}setPersistence(e){return C(this._auth,e?u:p)}signInWithCustomToken(e){return v(this._auth,e)}signInWithEmailAndPassword(e,t){return R(this._auth,e,t).then(async r=>r.user)}signInWithSocialProvider(e){if(!this._providers[e])throw Error(`Firebase: invalid social key provided! Expected one of ${this.enabledSocials}, got ${e}`);return this._signInWithProvider(this._providers[e])}signOut(){return T(this._auth)}updatePassword(e,t){if(!this.loggedUser)throw Error("Firebase: user is not logged!");let r=_.credential(this.loggedUser.email,e);return I(this.loggedUser,r).then(()=>k(this.loggedUser,t))}updateUserProfile(e){if(!this.loggedUser)throw Error("Firebase: user is not logged!");return y(this.loggedUser,e)}async verifyIdToken(){return this._auth.currentUser?.getIdTokenResult()}_buildProviders(){this._providers=this._enabledSocials.reduce((e,t)=>(t in e&&(e[t]=e[t]),e),{[s.APPLE]:new P("apple.com"),[s.FACEBOOK]:new m().setCustomParameters({prompt:"select_account"}),[s.GOOGLE]:new f().setCustomParameters({prompt:"select_account"})})}async _expandDifferentCredential(e){if(e?.code===n.DIFFERENT_CREDENTIAL){let t=await this.fetchSignInMethodsForEmail(e.customData.email);throw e.code=n["DIFFERENT_CREDENTIAL_"+t[0]],e}}_readStoredUser(){try{let e=localStorage.getItem(this.storedUserKey);if(e){this._logger?.debug("Firebase: found local user",e);let t=JSON.parse(e);return{...t,getIdToken:a(()=>Promise.resolve(t.stsTokenManager.accessToken),"getIdToken")}}}catch(e){this._logger.debug("Firebase: error while getting stored user",e)}}async _signInWithProvider(e,t=this.socialLoginUXMode){return(t===o.POPUP?L:O)(this._auth,e).then(i=>(this._logger.info(`Firebase: signin with provider ${e.providerId} was successful`),i.user)).catch(async i=>i?.code===n.POPUP_BLOCKED&&(this._logger.warn(`Firebase: social signin popup blocked (${++this._popupErrors}`),this._popupFallsBackToRedirect&&this._popupErrors>1)?(this._popupErrors=0,this._signInWithProvider(e,o.REDIRECT)):(this._logger.error(`Firebase: sign in with ${e.providerId} errored`,i),await this._expandDifferentCredential(i),Promise.reject(i)))}_updateLocalUser(e){try{e?localStorage.setItem(this.storedUserKey,JSON.stringify(e)):localStorage.removeItem(this.storedUserKey),this._logger.debug("Firebase: updating local user",e),this._loggedUser=e}catch(t){this._logger.warn("Firebase: couldn't update local user",{user:e,error:t})}}_watchAuthState(){this._auth.onAuthStateChanged(e=>{this._logger.debug("Firebase: firebase detected auth state change",e),this._updateLocalUser(e||void 0)})}};export{c as a};
@@ -1 +1 @@
1
- import{a as h,b as c,d as i}from"./chunk-XZEYUIQ6.js";import{a as o}from"./chunk-Z5KZUWJJ.js";import{a as r}from"./chunk-RZ4YI35O.js";import{a as s}from"./chunk-EI7MMDWY.js";var n=class{static{s(this,"SmpSecureCode")}_baseCode;get baseCode(){return this._baseCode}get secureCode(){return this._encode()}_crcLength;_seed;constructor(e){this._baseCode=e,this._crcLength=5,this._seed="changeme"}static check(e,t){if(new this(e).secureCode!==t)throw r.build("WRONG_SECURE_CODE","WRONG_SECURE_CODE",o.BadRequest)}_encode(){let e=new i;return e.update(c.parse(this._seed+this._baseCode)),e.finalize().toString(h).substring(0,this._crcLength).toUpperCase()}};export{n as a};
1
+ import{a as h,b as c,d as i}from"./chunk-XZEYUIQ6.js";import{a as r}from"./chunk-RZ4YI35O.js";import{a as o}from"./chunk-Z5KZUWJJ.js";import{a as s}from"./chunk-EI7MMDWY.js";var n=class{static{s(this,"SmpSecureCode")}_baseCode;get baseCode(){return this._baseCode}get secureCode(){return this._encode()}_crcLength;_seed;constructor(e){this._baseCode=e,this._crcLength=5,this._seed="changeme"}static check(e,t){if(new this(e).secureCode!==t)throw r.build("WRONG_SECURE_CODE","WRONG_SECURE_CODE",o.BadRequest)}_encode(){let e=new i;return e.update(c.parse(this._seed+this._baseCode)),e.finalize().toString(h).substring(0,this._crcLength).toUpperCase()}};export{n as a};
@@ -51,6 +51,6 @@ import 'firebase/auth';
51
51
  import '@aws-sdk/util-dynamodb';
52
52
  import '@aws-sdk/client-dynamodb';
53
53
 
54
- declare const VERSION: "1.4.0-next.0";
54
+ declare const VERSION: "1.4.0";
55
55
 
56
56
  export { VERSION };
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- import"./chunk-Q77KUWBZ.js";import"./chunk-553CS7VH.js";import{a as E}from"./chunk-JF4ZPHEK.js";import"./chunk-L6UZLRQU.js";import{a as N}from"./chunk-CZTKNLYX.js";import{a as U}from"./chunk-QWZP25QT.js";import{a as O}from"./chunk-FLTR4ZY6.js";import"./chunk-T3P4NVTG.js";import"./chunk-THUEL7AA.js";import"./chunk-FE4YONC4.js";import{a as b}from"./chunk-QMTVV3AM.js";import"./chunk-R6VG4656.js";import{a as d}from"./chunk-4UTF5FWK.js";import"./chunk-NIN4PUZX.js";import{a as h}from"./chunk-RGLXAD7B.js";import{a as g}from"./chunk-FUXO6KMS.js";import"./chunk-DOKJQH4K.js";import"./chunk-D66G2KIE.js";import"./chunk-HOM5S5W3.js";import"./chunk-ZYPNYJVE.js";import"./chunk-BHFFGFHY.js";import{a as B}from"./chunk-VPL2IMUA.js";import{a as y}from"./chunk-U4GEYICC.js";import{a as v}from"./chunk-5XYURNIE.js";import"./chunk-NQICKEAS.js";import{a}from"./chunk-S7DRNW2X.js";import{a as i}from"./chunk-RJBWCWAE.js";import{a as s}from"./chunk-VTMEEHHD.js";import"./chunk-XZEYUIQ6.js";import"./chunk-EHABREBA.js";import"./chunk-4LYXZUNL.js";import"./chunk-ELQKTQ6W.js";import"./chunk-U5DBFRKV.js";import"./chunk-AV6X4R7W.js";import{a as D}from"./chunk-2YYH6VGI.js";import"./chunk-SXISZIFJ.js";import{a as I}from"./chunk-4NS456EU.js";import{a as n}from"./chunk-MD2DPFLF.js";import"./chunk-NHNK7NE2.js";import{a as o}from"./chunk-W462XDMF.js";import"./chunk-FAYDNSZG.js";import"./chunk-YFGB7SCJ.js";import{a as j}from"./chunk-2NMLPNVZ.js";import{a as L}from"./chunk-LB7RIIRT.js";import{a as R}from"./chunk-WLD2KYV4.js";import{a as V}from"./chunk-4A2VEL4I.js";import"./chunk-RCI7NEJO.js";import{a as c}from"./chunk-ZNC4KYAS.js";import"./chunk-SDQLEPBS.js";import"./chunk-WTEJYEK2.js";import{a as S}from"./chunk-Z5KZUWJJ.js";import{a as _}from"./chunk-QZ2KRLHI.js";import{a as m}from"./chunk-OXO327UX.js";import{a as e}from"./chunk-NIJJBDPY.js";import{a as r}from"./chunk-LDLBKVKD.js";import{a as f}from"./chunk-RZ4YI35O.js";import{a as x}from"./chunk-YYOHQHR4.js";import{a as t}from"./chunk-S3E7FKAY.js";import{a as p}from"./chunk-QECKVXF4.js";import"./chunk-EI7MMDWY.js";var k="1.4.0-next.0";export{D as SMP_HEALTHZ,a as SmpAesCrypt,n as SmpApiCommonUtils,r as SmpBrowserCache,b as SmpCommonUtils,i as SmpCrypto,o as SmpDynamoService,f as SmpErrorResponse,d as SmpFilterException,L as SmpFirebaseErrors,j as SmpFirebaseService,x as SmpGenericResponse,B as SmpGiftcardTransaction,y as SmpGiftcardTransactionHashStrategies,v as SmpGiftcardTransactionOps,_ as SmpHttpService,e as SmpHttpSessionStorageCache,S as SmpHttpStatusCodes,m as SmpInMemoryCache,E as SmpMarketingCloudValidators,h as SmpRegularExpressions,t as SmpResponseMessage,p as SmpResponseMessageTypes,I as SmpRestVerbs,s as SmpSecureCode,g as SmpSid,R as SmpSocialSignInKeys,V as SmpSocialSignInUxModes,k as VERSION,c as smpNoop,N as smpRxjsCatchOnly,O as smpRxjsThrowIfEmpty,U as smpRxjsThrowOnCondition};
1
+ import"./chunk-Q77KUWBZ.js";import"./chunk-553CS7VH.js";import{a as E}from"./chunk-JF4ZPHEK.js";import"./chunk-L6UZLRQU.js";import{a as N}from"./chunk-CZTKNLYX.js";import{a as U}from"./chunk-QWZP25QT.js";import{a as O}from"./chunk-FLTR4ZY6.js";import"./chunk-T3P4NVTG.js";import"./chunk-THUEL7AA.js";import"./chunk-FE4YONC4.js";import{a as b}from"./chunk-QMTVV3AM.js";import"./chunk-R6VG4656.js";import{a as d}from"./chunk-4UTF5FWK.js";import"./chunk-NIN4PUZX.js";import{a as h}from"./chunk-RGLXAD7B.js";import{a as g}from"./chunk-FUXO6KMS.js";import"./chunk-DOKJQH4K.js";import"./chunk-D66G2KIE.js";import"./chunk-HOM5S5W3.js";import"./chunk-ZYPNYJVE.js";import"./chunk-BHFFGFHY.js";import{a as B}from"./chunk-VPL2IMUA.js";import{a as y}from"./chunk-U4GEYICC.js";import{a as v}from"./chunk-5XYURNIE.js";import"./chunk-NQICKEAS.js";import{a}from"./chunk-S7DRNW2X.js";import{a as i}from"./chunk-RJBWCWAE.js";import{a as s}from"./chunk-OM2B3B4I.js";import"./chunk-XZEYUIQ6.js";import"./chunk-EHABREBA.js";import"./chunk-4LYXZUNL.js";import"./chunk-ELQKTQ6W.js";import"./chunk-U5DBFRKV.js";import"./chunk-AV6X4R7W.js";import{a as D}from"./chunk-2YYH6VGI.js";import"./chunk-SXISZIFJ.js";import{a as I}from"./chunk-4NS456EU.js";import{a as n}from"./chunk-MD2DPFLF.js";import"./chunk-NHNK7NE2.js";import"./chunk-FAYDNSZG.js";import"./chunk-YFGB7SCJ.js";import{a as j}from"./chunk-7MD4IY4X.js";import{a as L}from"./chunk-LB7RIIRT.js";import{a as R}from"./chunk-WLD2KYV4.js";import{a as V}from"./chunk-4A2VEL4I.js";import{a as o}from"./chunk-W462XDMF.js";import"./chunk-RCI7NEJO.js";import{a as c}from"./chunk-ZNC4KYAS.js";import"./chunk-SDQLEPBS.js";import{a as _}from"./chunk-35U7P4SV.js";import{a as m}from"./chunk-OXO327UX.js";import{a as f}from"./chunk-RZ4YI35O.js";import{a as x}from"./chunk-YYOHQHR4.js";import{a as t}from"./chunk-S3E7FKAY.js";import{a as p}from"./chunk-QECKVXF4.js";import"./chunk-WTEJYEK2.js";import{a as e}from"./chunk-NIJJBDPY.js";import{a as r}from"./chunk-LDLBKVKD.js";import{a as S}from"./chunk-Z5KZUWJJ.js";import"./chunk-EI7MMDWY.js";var k="1.4.0";export{D as SMP_HEALTHZ,a as SmpAesCrypt,n as SmpApiCommonUtils,r as SmpBrowserCache,b as SmpCommonUtils,i as SmpCrypto,o as SmpDynamoService,f as SmpErrorResponse,d as SmpFilterException,L as SmpFirebaseErrors,j as SmpFirebaseService,x as SmpGenericResponse,B as SmpGiftcardTransaction,y as SmpGiftcardTransactionHashStrategies,v as SmpGiftcardTransactionOps,_ as SmpHttpService,e as SmpHttpSessionStorageCache,S as SmpHttpStatusCodes,m as SmpInMemoryCache,E as SmpMarketingCloudValidators,h as SmpRegularExpressions,t as SmpResponseMessage,p as SmpResponseMessageTypes,I as SmpRestVerbs,s as SmpSecureCode,g as SmpSid,R as SmpSocialSignInKeys,V as SmpSocialSignInUxModes,k as VERSION,c as smpNoop,N as smpRxjsCatchOnly,O as smpRxjsThrowIfEmpty,U as smpRxjsThrowOnCondition};
@@ -1 +1 @@
1
- import"../../chunk-FAYDNSZG.js";import"../../chunk-YFGB7SCJ.js";import{a}from"../../chunk-2NMLPNVZ.js";import"../../chunk-LB7RIIRT.js";import"../../chunk-WLD2KYV4.js";import"../../chunk-4A2VEL4I.js";import"../../chunk-RCI7NEJO.js";import"../../chunk-ZNC4KYAS.js";import"../../chunk-EI7MMDWY.js";export{a as SmpFirebaseService};
1
+ import"../../chunk-FAYDNSZG.js";import"../../chunk-YFGB7SCJ.js";import{a}from"../../chunk-7MD4IY4X.js";import"../../chunk-LB7RIIRT.js";import"../../chunk-WLD2KYV4.js";import"../../chunk-4A2VEL4I.js";import"../../chunk-RCI7NEJO.js";import"../../chunk-ZNC4KYAS.js";import"../../chunk-EI7MMDWY.js";export{a as SmpFirebaseService};
@@ -6,7 +6,7 @@ import { SmpSocialSignInUxModes } from '../../shared/common/smp-social-sign-in-u
6
6
  import { SmpFirebaseServiceConfig } from './smp-firebase-service-config.interface.js';
7
7
 
8
8
  declare class SmpFirebaseService {
9
- static get instance(): SmpFirebaseService;
9
+ static get INSTANCE(): SmpFirebaseService;
10
10
  protected static _instance?: SmpFirebaseService;
11
11
  get config(): FirebaseOptions;
12
12
  get enabledSocials(): SmpSocialSignInKeys[];
@@ -1 +1 @@
1
- import{a}from"../../chunk-2NMLPNVZ.js";import"../../chunk-LB7RIIRT.js";import"../../chunk-WLD2KYV4.js";import"../../chunk-4A2VEL4I.js";import"../../chunk-RCI7NEJO.js";import"../../chunk-ZNC4KYAS.js";import"../../chunk-EI7MMDWY.js";export{a as SmpFirebaseService};
1
+ import{a}from"../../chunk-7MD4IY4X.js";import"../../chunk-LB7RIIRT.js";import"../../chunk-WLD2KYV4.js";import"../../chunk-4A2VEL4I.js";import"../../chunk-RCI7NEJO.js";import"../../chunk-ZNC4KYAS.js";import"../../chunk-EI7MMDWY.js";export{a as SmpFirebaseService};
@@ -1 +1 @@
1
- import"../../chunk-SDQLEPBS.js";import"../../chunk-WTEJYEK2.js";import{a as c}from"../../chunk-Z5KZUWJJ.js";import{a as b}from"../../chunk-QZ2KRLHI.js";import"../../chunk-OXO327UX.js";import{a}from"../../chunk-NIJJBDPY.js";import"../../chunk-LDLBKVKD.js";import"../../chunk-RZ4YI35O.js";import"../../chunk-YYOHQHR4.js";import"../../chunk-S3E7FKAY.js";import"../../chunk-QECKVXF4.js";import"../../chunk-EI7MMDWY.js";export{b as SmpHttpService,a as SmpHttpSessionStorageCache,c as SmpHttpStatusCodes};
1
+ import"../../chunk-SDQLEPBS.js";import{a as b}from"../../chunk-35U7P4SV.js";import"../../chunk-OXO327UX.js";import"../../chunk-RZ4YI35O.js";import"../../chunk-YYOHQHR4.js";import"../../chunk-S3E7FKAY.js";import"../../chunk-QECKVXF4.js";import"../../chunk-WTEJYEK2.js";import{a}from"../../chunk-NIJJBDPY.js";import"../../chunk-LDLBKVKD.js";import{a as c}from"../../chunk-Z5KZUWJJ.js";import"../../chunk-EI7MMDWY.js";export{b as SmpHttpService,a as SmpHttpSessionStorageCache,c as SmpHttpStatusCodes};
@@ -1 +1 @@
1
- import{a}from"../../chunk-QZ2KRLHI.js";import"../../chunk-OXO327UX.js";import"../../chunk-NIJJBDPY.js";import"../../chunk-LDLBKVKD.js";import"../../chunk-RZ4YI35O.js";import"../../chunk-YYOHQHR4.js";import"../../chunk-S3E7FKAY.js";import"../../chunk-QECKVXF4.js";import"../../chunk-EI7MMDWY.js";export{a as SmpHttpService};
1
+ import{a}from"../../chunk-35U7P4SV.js";import"../../chunk-OXO327UX.js";import"../../chunk-RZ4YI35O.js";import"../../chunk-YYOHQHR4.js";import"../../chunk-S3E7FKAY.js";import"../../chunk-QECKVXF4.js";import"../../chunk-NIJJBDPY.js";import"../../chunk-LDLBKVKD.js";import"../../chunk-EI7MMDWY.js";export{a as SmpHttpService};
@@ -1 +1 @@
1
- import{a as m}from"../chunk-W462XDMF.js";import"../chunk-FAYDNSZG.js";import"../chunk-YFGB7SCJ.js";import{a as f}from"../chunk-2NMLPNVZ.js";import"../chunk-LB7RIIRT.js";import"../chunk-WLD2KYV4.js";import"../chunk-4A2VEL4I.js";import"../chunk-RCI7NEJO.js";import"../chunk-ZNC4KYAS.js";import"../chunk-SDQLEPBS.js";import"../chunk-WTEJYEK2.js";import{a as e}from"../chunk-Z5KZUWJJ.js";import{a as r}from"../chunk-QZ2KRLHI.js";import"../chunk-OXO327UX.js";import{a as o}from"../chunk-NIJJBDPY.js";import"../chunk-LDLBKVKD.js";import"../chunk-RZ4YI35O.js";import"../chunk-YYOHQHR4.js";import"../chunk-S3E7FKAY.js";import"../chunk-QECKVXF4.js";import"../chunk-EI7MMDWY.js";export{m as SmpDynamoService,f as SmpFirebaseService,r as SmpHttpService,o as SmpHttpSessionStorageCache,e as SmpHttpStatusCodes};
1
+ import"../chunk-FAYDNSZG.js";import"../chunk-YFGB7SCJ.js";import{a as f}from"../chunk-7MD4IY4X.js";import"../chunk-LB7RIIRT.js";import"../chunk-WLD2KYV4.js";import"../chunk-4A2VEL4I.js";import{a as m}from"../chunk-W462XDMF.js";import"../chunk-RCI7NEJO.js";import"../chunk-ZNC4KYAS.js";import"../chunk-SDQLEPBS.js";import{a as r}from"../chunk-35U7P4SV.js";import"../chunk-OXO327UX.js";import"../chunk-RZ4YI35O.js";import"../chunk-YYOHQHR4.js";import"../chunk-S3E7FKAY.js";import"../chunk-QECKVXF4.js";import"../chunk-WTEJYEK2.js";import{a as o}from"../chunk-NIJJBDPY.js";import"../chunk-LDLBKVKD.js";import{a as e}from"../chunk-Z5KZUWJJ.js";import"../chunk-EI7MMDWY.js";export{m as SmpDynamoService,f as SmpFirebaseService,r as SmpHttpService,o as SmpHttpSessionStorageCache,e as SmpHttpStatusCodes};
@@ -1 +1 @@
1
- import"../../chunk-NQICKEAS.js";import{a}from"../../chunk-S7DRNW2X.js";import{a as b}from"../../chunk-RJBWCWAE.js";import{a as c}from"../../chunk-VTMEEHHD.js";import"../../chunk-XZEYUIQ6.js";import"../../chunk-Z5KZUWJJ.js";import"../../chunk-RZ4YI35O.js";import"../../chunk-YYOHQHR4.js";import"../../chunk-S3E7FKAY.js";import"../../chunk-QECKVXF4.js";import"../../chunk-EI7MMDWY.js";export{a as SmpAesCrypt,b as SmpCrypto,c as SmpSecureCode};
1
+ import"../../chunk-NQICKEAS.js";import{a}from"../../chunk-S7DRNW2X.js";import{a as b}from"../../chunk-RJBWCWAE.js";import{a as c}from"../../chunk-OM2B3B4I.js";import"../../chunk-XZEYUIQ6.js";import"../../chunk-RZ4YI35O.js";import"../../chunk-YYOHQHR4.js";import"../../chunk-S3E7FKAY.js";import"../../chunk-QECKVXF4.js";import"../../chunk-Z5KZUWJJ.js";import"../../chunk-EI7MMDWY.js";export{a as SmpAesCrypt,b as SmpCrypto,c as SmpSecureCode};
@@ -1 +1 @@
1
- import{a}from"../../chunk-VTMEEHHD.js";import"../../chunk-XZEYUIQ6.js";import"../../chunk-Z5KZUWJJ.js";import"../../chunk-RZ4YI35O.js";import"../../chunk-YYOHQHR4.js";import"../../chunk-S3E7FKAY.js";import"../../chunk-QECKVXF4.js";import"../../chunk-EI7MMDWY.js";export{a as SmpSecureCode};
1
+ import{a}from"../../chunk-OM2B3B4I.js";import"../../chunk-XZEYUIQ6.js";import"../../chunk-RZ4YI35O.js";import"../../chunk-YYOHQHR4.js";import"../../chunk-S3E7FKAY.js";import"../../chunk-QECKVXF4.js";import"../../chunk-Z5KZUWJJ.js";import"../../chunk-EI7MMDWY.js";export{a as SmpSecureCode};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonysamperi/ts-mapi-core",
3
- "version": "1.4.0-next.0",
3
+ "version": "1.4.0",
4
4
  "description": "A set of shared utils to be used at BE or FE",
5
5
  "type": "module",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -61,10 +61,10 @@
61
61
  "@types/jest": "~29.5.14",
62
62
  "@types/node": "^22.13.8",
63
63
  "@types/setup-polly-jest": "^0",
64
- "@typescript-eslint/eslint-plugin": "^8.26.1",
65
- "@typescript-eslint/parser": "^8.26.1",
64
+ "@typescript-eslint/eslint-plugin": "^8.32.0",
65
+ "@typescript-eslint/parser": "^8.32.0",
66
66
  "class-transformer": "^0.5.1",
67
- "eslint": "^9.21.0",
67
+ "eslint": "^9.26.0",
68
68
  "firebase": "^11.4.0",
69
69
  "jest": "~29.7.0",
70
70
  "reflect-metadata": "^0.1.14",
@@ -76,7 +76,7 @@
76
76
  "tslib": "^2.8.1",
77
77
  "tsup": "^8.4.0",
78
78
  "typescript": "~5.8.2",
79
- "typescript-eslint": "^8.26.0"
79
+ "typescript-eslint": "^8.32.0"
80
80
  },
81
81
  "packageManager": "yarn@4.3.1"
82
82
  }