@pushwoosh/session-store 2.6.5 → 2.6.7

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.
@@ -20,7 +20,8 @@ export declare enum Platform {
20
20
  WHATSAPP = 21,
21
21
  LINE = 22,
22
22
  KAKAO = 23,
23
- TELEGRAM = 24
23
+ TELEGRAM = 24,
24
+ APPLE_WALLET = 25
24
25
  }
25
26
  /**
26
27
  * Platform name.
@@ -43,7 +44,8 @@ export declare enum PlatformName {
43
44
  WHATSAPP = "WhatsApp",
44
45
  LINE = "Line",
45
46
  KAKAO = "Kakao",
46
- TELEGRAM = "Telegram"
47
+ TELEGRAM = "Telegram",
48
+ APPLE_WALLET = "Apple Wallet"
47
49
  }
48
50
  /**
49
51
  * Helper class for working with platforms.
@@ -1 +1 @@
1
- {"version":3,"file":"platforms.d.ts","sourceRoot":"","sources":["../../src/entities/platforms.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,IAAI,eAAe,EAChC,MAAM,wDAAwD,CAAC;AAEhE;;GAEG;AACH,oBAAY,QAAQ;IAClB,GAAG,IAAI;IAEP,OAAO,IAAI;IAIX,MAAM,IAAI;IACV,OAAO,IAAI;IACX,MAAM,IAAI;IACV,MAAM,KAAK;IACX,MAAM,KAAK;IACX,OAAO,KAAK;IACZ,EAAE,KAAK;IACP,KAAK,KAAK;IAEV,KAAK,KAAK;IACV,MAAM,KAAK;IACX,GAAG,KAAK;IACR,MAAM,KAAK;IAEX,QAAQ,KAAK;IACb,IAAI,KAAK;IACT,KAAK,KAAK;IACV,QAAQ,KAAK;CACd;AAED;;GAEG;AACH,oBAAY,YAAY;IACtB,GAAG,QAAQ;IAEX,OAAO,YAAY;IAInB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,EAAE,sBAAsB;IACxB,KAAK,UAAU;IAEf,KAAK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AAG,QAAQ;IACX,MAAM,WAAW;IAEjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAC9B;AAED;;GAEG;AACH,qBAAa,SAAS;IACpB;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAKjC;IAEF;;;;;OAKG;IACH,OAAc,eAAe,aAAc,QAAQ,KAAG,MAAM,CAQ1D;IAEF;;OAEG;IACH,SAAgB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;gBAE/B,WAAW,EAAE,eAAe;IAKxC;;;;;OAKG;IACI,wBAAwB,aAAc,QAAQ,KAAG,OAAO,CAE7D;CACH"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- System.register("@pushwoosh/session-store",[],function(i,s){return{execute:function(){i((()=>{"use strict";var i={d:(s,t)=>{for(var e in t)i.o(t,e)&&!i.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:t[e]})},o:(i,s)=>Object.prototype.hasOwnProperty.call(i,s),r:i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})}},s={};function t(i){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t(i)}function e(i){var s=function(i,s){if("object"!=t(i)||!i)return i;var e=i[Symbol.toPrimitive];if(void 0!==e){var o=e.call(i,s||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(i)}(i,"string");return"symbol"==t(s)?s:s+""}function o(i,s,t){return(s=e(s))in i?Object.defineProperty(i,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[s]=t,i}i.r(s),i.d(s,{Account:()=>d,Counters:()=>u,Permissions:()=>r,Platform:()=>l,PlatformName:()=>n,Platforms:()=>h,ProductType:()=>a,ReplaySubject:()=>v,Restrictions:()=>c,SessionStore:()=>p,User:()=>m});var a,l,n;!function(i){i.FREE="Free",i.DEVELOPER="Developer",i.MARKETING="Marketing",i.ENTERPRISE="Enterprise"}(a||(a={}));class d{constructor(i){var s,t,e,a,l,n,d,r,h,c,u,m,v,p,A,w,S,g,C,b,U;o(this,"id",void 0),o(this,"name",void 0),o(this,"domain",void 0),o(this,"registrationDate",void 0),o(this,"hasActiveOrder",void 0),o(this,"billing",void 0),o(this,"productType",void 0),o(this,"productName",void 0),o(this,"isEnterprise",void 0),o(this,"expiryDate",void 0),o(this,"isFrozen",void 0),o(this,"isDeviceLimitReached",void 0),o(this,"isSuspended",void 0),o(this,"statistics",void 0),o(this,"userCentricStorageUsed",void 0),o(this,"allowProductCommunication",void 0),this.id=i.id,this.name=i.name,this.domain=i.domain,this.registrationDate=i.registrationDate,this.hasActiveOrder=i.hasActiveOrder,this.billing={companyName:null===(s=i.billingAddress)||void 0===s?void 0:s.companyName,accountCompanyName:null===(t=i.billingAddress)||void 0===t?void 0:t.accountCompanyName,companyCountry:null===(e=i.billingAddress)||void 0===e?void 0:e.country,companyCountryCode:null===(a=i.billingAddress)||void 0===a?void 0:a.countryCode,companyState:null===(l=i.billingAddress)||void 0===l?void 0:l.state,companyStateCode:null===(n=i.billingAddress)||void 0===n?void 0:n.stateCode,companyCity:null===(d=i.billingAddress)||void 0===d?void 0:d.city,companyStreet:null===(r=i.billingAddress)||void 0===r?void 0:r.street,companyZip:null===(h=i.billingAddress)||void 0===h?void 0:h.zipCode,companyPhone:null===(c=i.billingAddress)||void 0===c?void 0:c.phone,companyVAT:null===(u=i.billingAddress)||void 0===u?void 0:u.vatNumber,companyNumber:null===(m=i.billingAddress)||void 0===m?void 0:m.companyNumber,primaryPersonFirstName:null===(v=i.billingAddress)||void 0===v?void 0:v.firstName,primaryPersonLastName:null===(p=i.billingAddress)||void 0===p?void 0:p.lastName,primaryPersonEmail:null===(A=i.billingAddress)||void 0===A?void 0:A.paymentEmail,secondaryPersonFirstName:null===(w=i.billingAddress)||void 0===w?void 0:w.secondaryPersonFirstName,secondaryPersonLastName:null===(S=i.billingAddress)||void 0===S?void 0:S.secondaryPersonLastName,secondaryPersonEmail:null===(g=i.billingAddress)||void 0===g?void 0:g.secondaryPersonEmail,industry:null===(C=i.billingAddress)||void 0===C?void 0:C.industry,department:null===(b=i.billingAddress)||void 0===b?void 0:b.department,additionalEmails:(U=i.billingAddress.additionalEmails,U?U.join(", "):"")},this.productType=i.productType,this.productName=i.restriction,this.isEnterprise=i.isEnterprise,this.expiryDate=i.expireDate,this.isFrozen=i.frozen,this.isDeviceLimitReached=i.isDeviceLimitReached,this.statistics={totalSubscribers:i.pushNotAvailableSubscribers+i.pushAvailableSubscribers,pushAvailableSubscribers:i.pushAvailableSubscribers,pushNotAvailableSubscribers:i.pushNotAvailableSubscribers,freeEmailsQuotaUpdateDate:i.freeEmailLimitUpdateDate,paidEmailsQuotaExpiryDate:i.paidEmailExpireDate},this.userCentricStorageUsed=i.userCentricStorageUsed,this.allowProductCommunication=i.allowProductCommunication,this.isSuspended=i.suspended,Object.freeze(this.billing),Object.freeze(this.statistics),Object.freeze(this)}}class r{constructor(i){o(this,"hasSuperRights",void 0),o(this,"canManageSubscription",void 0),o(this,"canManageAccessTokens",void 0),o(this,"canManageDomainsAndEmails",void 0),o(this,"canManageSubUsers",void 0),o(this,"canSeeApplications",void 0),o(this,"canModifyApplications",void 0),o(this,"canSeeApplicationGroups",void 0),o(this,"canModifyApplicationGroups",void 0),o(this,"canSeeMessages",void 0),o(this,"canModifyMessages",void 0),o(this,"canSendMessages",void 0),o(this,"canSeeTags",void 0),o(this,"canModifyTags",void 0),o(this,"canSeeSegments",void 0),o(this,"canModifySegments",void 0),o(this,"canSeeRichMedia",void 0),o(this,"canModifyRichMedia",void 0),o(this,"canSeeInApps",void 0),o(this,"canSeeEmailTemplates",void 0),o(this,"canModifyEmailTemplates",void 0),this.hasSuperRights=i.aceSuperRight,this.canManageSubscription=i.aceManageSubscription,this.canManageAccessTokens=i.aceSeeApiAccess,this.canManageDomainsAndEmails=i.aceDomainAndEmailVerification,this.canManageSubUsers=i.aceManageUsers,this.canSeeApplications=i.aceSeeApplications,this.canModifyApplications=i.aceModifyApplications,this.canSeeApplicationGroups=i.aceSeeAppGroups,this.canModifyApplicationGroups=i.aceModifyAppGroups,this.canSeeMessages=i.aceSeeMessages,this.canModifyMessages=i.aceModifyMessages&&this.canSeeMessages,this.canSendMessages=i.aceSendMessages&&this.canSeeMessages,this.canSeeTags=i.aceSeeTags,this.canModifyTags=i.aceModifyTags,this.canSeeSegments=i.aceSeeFilters&&this.canSeeTags,this.canModifySegments=i.aceModifyFilters&&this.canSeeTags,this.canSeeRichMedia=i.aceSeeRichMedia&&this.canSeeTags&&this.canSeeSegments,this.canModifyRichMedia=i.aceModifyRichMedia&&this.canSeeTags&&this.canSeeSegments,this.canSeeInApps=this.canSeeTags&&this.canSeeSegments&&this.canSeeRichMedia,this.canSeeEmailTemplates=i.aceSeeEmailTemplates&&this.canSeeTags,this.canModifyEmailTemplates=i.aceModifyEmailTemplates&&this.canSeeTags,Object.freeze(this)}}!function(i){i[i.IOS=1]="IOS",i[i.ANDROID=3]="ANDROID",i[i.MAC_OS=7]="MAC_OS",i[i.WINDOWS=8]="WINDOWS",i[i.AMAZON=9]="AMAZON",i[i.SAFARI=10]="SAFARI",i[i.CHROME=11]="CHROME",i[i.FIREFOX=12]="FIREFOX",i[i.IE=13]="IE",i[i.EMAIL=14]="EMAIL",i[i.BAIDU=16]="BAIDU",i[i.HUAWEI=17]="HUAWEI",i[i.SMS=18]="SMS",i[i.XIAOMI=19]="XIAOMI",i[i.WHATSAPP=21]="WHATSAPP",i[i.LINE=22]="LINE",i[i.KAKAO=23]="KAKAO",i[i.TELEGRAM=24]="TELEGRAM"}(l||(l={})),function(i){i.IOS="iOS",i.ANDROID="Android",i.MAC_OS="Mac OS",i.WINDOWS="Windows",i.AMAZON="Amazon",i.SAFARI="Safari",i.CHROME="Chrome",i.FIREFOX="Firefox",i.IE="Internet Explorer",i.EMAIL="Email",i.BAIDU="Baidu",i.HUAWEI="Huawei",i.SMS="SMS",i.XIAOMI="Xiaomi",i.WHATSAPP="WhatsApp",i.LINE="Line",i.KAKAO="Kakao",i.TELEGRAM="Telegram"}(n||(n={}));class h{constructor(i){o(this,"available",void 0),o(this,"checkIsAvailablePlatform",i=>this.available.includes(i)),this.available=h.filterAllowPlatforms(i.allowedPlatforms),Object.freeze(this)}}o(h,"filterAllowPlatforms",i=>{const s=Object.values(l);return i.filter(i=>s.includes(i))}),o(h,"getPlatformName",i=>{const s=Object.keys(n).find(s=>l[s]===i);return s?n[s]:"Unknown platform!"});class c{constructor(i){let{restrictions:s}=i;o(this,"allowUseSubUsers",void 0),o(this,"maxUsersCount",void 0),o(this,"allowUseBaiduAndroid",void 0),o(this,"maxDevicesCount",void 0),o(this,"maxApplicationsCount",void 0),o(this,"maxApplicationGroupsCount",void 0),o(this,"allowUseApplicationGroups",void 0),o(this,"maxCampaignsCount",void 0),o(this,"allowUseCampaigns",void 0),o(this,"maxTagsCount",void 0),o(this,"allowUseTags",void 0),o(this,"allowUseUserSpecificTags",void 0),o(this,"maxFiltersCount",void 0),o(this,"maxFastFiltersCount",void 0),o(this,"allowUseFilters",void 0),o(this,"allowUseFiltersCompiling",void 0),o(this,"allowUseFiltersWithTagNotSet",void 0),o(this,"maxEventsCount",void 0),o(this,"allowUseEvents",void 0),o(this,"maxRichMediaCount",void 0),o(this,"allowUseRichMedia",void 0),o(this,"maxInAppsCount",void 0),o(this,"allowUseInApps",void 0),o(this,"maxMailsCount",void 0),o(this,"maxDomainsCount",void 0),o(this,"maxEmailTemplatesCount",void 0),o(this,"allowUseEmailPlatform",void 0),o(this,"maxPresetsCount",void 0),o(this,"allowUsePresets",void 0),o(this,"allowUseGeozones",void 0),o(this,"allowUseSendToGeozones",void 0),o(this,"maxGeozonesCount",void 0),o(this,"maxGeozoneRange",void 0),o(this,"minGeozoneRange",void 0),o(this,"maxDeepLinksCount",void 0),o(this,"allowUseDeepLinks",void 0),o(this,"maxTwitterFeedsCount",void 0),o(this,"allowUseTwitterFeeds",void 0),o(this,"maxRssFeedsCount",void 0),o(this,"allowUseRssFeeds",void 0),o(this,"allowUseRssFeedsCustomPollingInterval",void 0),o(this,"maxTestDevicesCount",void 0),o(this,"allowUseTestDevices",void 0),o(this,"allowUseAccessTokens",void 0),o(this,"allowUseDataKeys",void 0),o(this,"allowUseStatistics",void 0),o(this,"allowUseScheduling",void 0),o(this,"allowUseIOSAutoConfig",void 0),o(this,"allowUseTwoFactorAuth",void 0),o(this,"allowUseSendMessageByCsv",void 0),o(this,"allowUseAbTests",void 0),o(this,"allowUseHtmlPages",void 0),o(this,"allowUseRemotePage",void 0),o(this,"allowUseIOSCategories",void 0),o(this,"allowUseGoalTracking",void 0),o(this,"allowUseGetMessageLog",void 0),o(this,"allowUseIEPlatform",void 0),o(this,"allowUseDebugMode",void 0),o(this,"allowUseUninstallTracking",void 0),o(this,"allowUseFrequencyCapping",void 0),o(this,"allowUseInbox",void 0),o(this,"maxInboxTtlDays",void 0),o(this,"allowUseSendExternalAndroidStatistics",void 0),o(this,"allowUseGDPR",void 0),o(this,"sendRateMin",void 0),o(this,"sendRateMax",void 0),o(this,"messageHistoryStoriedPeriodInDays",void 0),o(this,"detailActionHistoryStorePeriodInDays",void 0),o(this,"allowShowDeliveryStatistics",void 0),o(this,"allowBestTimeToSend",void 0),o(this,"allowSegmentsGroups",void 0),o(this,"allowEventSegmentation",void 0),o(this,"allowEventsFunnel",void 0),o(this,"isEnabledBackup",void 0),o(this,"allowChannelsSection",void 0),o(this,"allowUseSMSPlatform",void 0),o(this,"allowUseWhatsAppPlatform",void 0),o(this,"allowUseLinePlatform",void 0),o(this,"allowAIAssistant",!1),o(this,"allowAIWalletBilling",void 0),o(this,"allowUseCloudPages",void 0),this.allowUseSubUsers=s.MaxUsers>1,this.maxUsersCount=s.MaxUsers,this.allowUseBaiduAndroid=s.AllowBaiduAndroidPlatformUsage,this.maxDevicesCount=s.MaxDevices,this.maxApplicationsCount=1/0,this.maxApplicationGroupsCount=1/0,this.allowUseApplicationGroups=!0,this.maxCampaignsCount=1/0,this.allowUseCampaigns=!0,this.maxTagsCount=1/0,this.allowUseTags=!0,this.allowUseUserSpecificTags=s.MaxUserSpecificTags>0,this.maxFiltersCount=1/0,this.maxFastFiltersCount=s.MaxPreparedFilters,this.allowUseFilters=!0,this.allowUseFiltersCompiling=s.AllowCompileFilter,this.allowUseFiltersWithTagNotSet=s.AllowTagNotSetFilter,this.maxEventsCount=1/0,this.allowUseEvents=!0,this.maxRichMediaCount=1/0,this.allowUseRichMedia=!0,this.maxInAppsCount=1/0,this.allowUseInApps=!0,this.maxMailsCount=s.MaxVerifyingEmails,this.maxDomainsCount=s.MaxVerifyingDomains,this.maxEmailTemplatesCount=s.MaxEmailTemplates,this.allowUseEmailPlatform=this.maxEmailTemplatesCount>0,this.maxPresetsCount=1/0,this.allowUsePresets=!0,this.allowUseGeozones=!0,this.allowUseSendToGeozones=s.AllowSendToGeozone,this.maxGeozonesCount=1/0,this.maxGeozoneRange=1/0,this.minGeozoneRange=50,this.maxDeepLinksCount=1/0,this.allowUseDeepLinks=!0,this.maxTwitterFeedsCount=1/0,this.allowUseTwitterFeeds=!0,this.maxRssFeedsCount=1/0,this.allowUseRssFeeds=!0,this.allowUseRssFeedsCustomPollingInterval=s.AllowCustomRssPollingInterval,this.maxTestDevicesCount=1/0,this.allowUseTestDevices=!0,this.allowUseAccessTokens=s.AllowApi,this.allowUseDataKeys=s.AllowCustomData,this.allowUseStatistics=!0,this.allowUseScheduling=s.AllowScheduling,this.allowUseIOSAutoConfig=s.AllowAutoConfig,this.allowUseTwoFactorAuth=s.AllowTwoFactorAuth,this.allowUseSendMessageByCsv=s.AllowCsvMessage,this.allowUseAbTests=!0,this.allowUseHtmlPages=!1,this.allowUseRemotePage=!0,this.allowUseIOSCategories=!0,this.allowUseGoalTracking=s.AllowGoalTracking,this.allowUseGetMessageLog=s.AllowApiGetMessageLog,this.allowUseIEPlatform=s.AllowIePlatformUsage,this.allowUseDebugMode=s.AllowDebugMode,this.allowUseUninstallTracking=s.AllowTrackUninstalls,this.allowUseFrequencyCapping=s.AllowFrequencyCapping,this.allowUseInbox=s.AllowInbox,this.maxInboxTtlDays=s.MaxInboxTtlDays,this.allowUseSendExternalAndroidStatistics=s.AllowSendExternalStats,this.allowUseGDPR=s.AllowGdpr,this.sendRateMin=s.MinSendRate,this.sendRateMax=s.MaxSendRate,this.messageHistoryStoriedPeriodInDays=s.MessageHistoryStorePeriod,this.detailActionHistoryStorePeriodInDays=s.DetailActionHistoryStorePeriod,this.allowShowDeliveryStatistics=s.AllowShowDeliveryStatistics,this.allowBestTimeToSend=s.AllowBestTimeToSend,this.allowSegmentsGroups=s.AllowSegmentsGroups,this.allowEventSegmentation=s.AllowEventSegmentation,this.allowEventsFunnel=s.AllowEventsFunnel,this.isEnabledBackup=!0,this.allowChannelsSection=s.AllowChannelsSection,this.allowUseSMSPlatform=s.AllowCjSMS,this.allowUseWhatsAppPlatform=s.AllowWhatsApp,this.allowUseLinePlatform=s.AllowLine,this.allowAIAssistant=s.AllowAIAssistant,this.allowAIWalletBilling=s.AllowAIWalletBilling,this.allowUseCloudPages=s.AllowCloudPages,Object.freeze(this)}}class u{constructor(i){o(this,"totalApplicationsCount",void 0),o(this,"totalApplicationGroupsCount",void 0),o(this,"totalCampaignsCount",void 0),o(this,"totalTagsCount",void 0),o(this,"totalFiltersCount",void 0),o(this,"totalEventsCount",void 0),o(this,"totalRichMediaCount",void 0),o(this,"totalInAppsCount",void 0),o(this,"totalDomainsCount",void 0),o(this,"totalMailsCount",void 0),o(this,"totalEmailTemplatesCount",void 0),o(this,"totalPresetsCount",void 0),o(this,"totalGeozonesCount",void 0),o(this,"totalDeepLinksCount",void 0),o(this,"totalRssFeedsCount",void 0),o(this,"totalTestDevicesCount",void 0),this.totalApplicationsCount=i.applicationsCount,this.totalApplicationGroupsCount=i.appGroupsCount,this.totalCampaignsCount=i.campaignsCount,this.totalTagsCount=i.tagsCount,this.totalFiltersCount=i.filtersCount,this.totalEventsCount=i.eventsCount,this.totalRichMediaCount=i.richMediaCount,this.totalInAppsCount=i.inAppsCount,this.totalDomainsCount=i.accountDomainsCount,this.totalMailsCount=i.accountMailsCount,this.totalEmailTemplatesCount=i.emailTemplatesCount,this.totalPresetsCount=i.presetsCount,this.totalGeozonesCount=i.geoZonesCount,this.totalDeepLinksCount=i.deeplinksCount,this.totalRssFeedsCount=i.rssFeedsCount,this.totalTestDevicesCount=i.testDevicesCount}}class m{constructor(i,s){o(this,"name",void 0),o(this,"email",void 0),o(this,"isActive",void 0),o(this,"isOwner",void 0),o(this,"timezone",void 0),o(this,"timezoneOffset",void 0),o(this,"accountCount",void 0),o(this,"intercomUserHash",void 0),o(this,"isSubscribedForNewsletters",void 0),this.name=s.username,this.email=s.email,this.isActive=s.isActive,this.isOwner=i.admin,this.timezone=s.timezone,this.timezoneOffset=60*parseFloat(s.timezoneOffset),this.accountCount=s.accountsCount,this.intercomUserHash=s.intercomUserHash,this.isSubscribedForNewsletters=s.allowNewsletters,Object.freeze(this)}}class v{constructor(){o(this,"listeners",new Set),o(this,"lastValue",void 0),o(this,"hasValue",!1)}next(i){this.lastValue=i,this.hasValue=!0,this.listeners.forEach(s=>s(i))}subscribe(i){return this.listeners.add(i),this.hasValue&&i(this.lastValue),{unsubscribe:()=>this.listeners.delete(i)}}}class p{constructor(i){o(this,"rpcGateway",void 0),o(this,"subject",void 0),o(this,"lastSession",void 0),o(this,"updateSubject",(i,s,t)=>{const e={account:new d(i),counters:new u(i),platforms:new h(i),permissions:new r(i),restrictions:new c(i),user:new m(i,s),onboardingInfo:t};this.lastSession=e,this.subject.next(e)}),o(this,"load",async()=>{const[i,s]=await Promise.all([this.rpcGateway.getAuthInfo.GetAuthInfo({}),this.rpcGateway.accounts.GetOnboardingInfo({})]),{account:t,user:e}=i;return[t,e,s]}),o(this,"update",async()=>{const[i,s,t]=await this.load();this.updateSubject(i,s,t)}),o(this,"subscribe",i=>this.subject.subscribe(i)),o(this,"getLastSession",()=>this.lastSession),this.rpcGateway=i,this.subject=new v}}return s})())}}});
1
+ System.register("@pushwoosh/session-store",[],function(i,s){return{execute:function(){i((()=>{"use strict";var i={d:(s,t)=>{for(var e in t)i.o(t,e)&&!i.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:t[e]})},o:(i,s)=>Object.prototype.hasOwnProperty.call(i,s),r:i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})}},s={};function t(i){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t(i)}function e(i){var s=function(i,s){if("object"!=t(i)||!i)return i;var e=i[Symbol.toPrimitive];if(void 0!==e){var o=e.call(i,s||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(i)}(i,"string");return"symbol"==t(s)?s:s+""}function o(i,s,t){return(s=e(s))in i?Object.defineProperty(i,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[s]=t,i}i.r(s),i.d(s,{Account:()=>d,Counters:()=>u,Permissions:()=>r,Platform:()=>l,PlatformName:()=>n,Platforms:()=>h,ProductType:()=>a,ReplaySubject:()=>m,Restrictions:()=>c,SessionStore:()=>p,User:()=>v});var a,l,n;!function(i){i.FREE="Free",i.DEVELOPER="Developer",i.MARKETING="Marketing",i.ENTERPRISE="Enterprise"}(a||(a={}));class d{constructor(i){var s,t,e,a,l,n,d,r,h,c,u,v,m,p,A,S,w,g,C,b,U;o(this,"id",void 0),o(this,"name",void 0),o(this,"domain",void 0),o(this,"registrationDate",void 0),o(this,"hasActiveOrder",void 0),o(this,"billing",void 0),o(this,"productType",void 0),o(this,"productName",void 0),o(this,"isEnterprise",void 0),o(this,"expiryDate",void 0),o(this,"isFrozen",void 0),o(this,"isDeviceLimitReached",void 0),o(this,"isSuspended",void 0),o(this,"statistics",void 0),o(this,"userCentricStorageUsed",void 0),o(this,"allowProductCommunication",void 0),this.id=i.id,this.name=i.name,this.domain=i.domain,this.registrationDate=i.registrationDate,this.hasActiveOrder=i.hasActiveOrder,this.billing={companyName:null===(s=i.billingAddress)||void 0===s?void 0:s.companyName,accountCompanyName:null===(t=i.billingAddress)||void 0===t?void 0:t.accountCompanyName,companyCountry:null===(e=i.billingAddress)||void 0===e?void 0:e.country,companyCountryCode:null===(a=i.billingAddress)||void 0===a?void 0:a.countryCode,companyState:null===(l=i.billingAddress)||void 0===l?void 0:l.state,companyStateCode:null===(n=i.billingAddress)||void 0===n?void 0:n.stateCode,companyCity:null===(d=i.billingAddress)||void 0===d?void 0:d.city,companyStreet:null===(r=i.billingAddress)||void 0===r?void 0:r.street,companyZip:null===(h=i.billingAddress)||void 0===h?void 0:h.zipCode,companyPhone:null===(c=i.billingAddress)||void 0===c?void 0:c.phone,companyVAT:null===(u=i.billingAddress)||void 0===u?void 0:u.vatNumber,companyNumber:null===(v=i.billingAddress)||void 0===v?void 0:v.companyNumber,primaryPersonFirstName:null===(m=i.billingAddress)||void 0===m?void 0:m.firstName,primaryPersonLastName:null===(p=i.billingAddress)||void 0===p?void 0:p.lastName,primaryPersonEmail:null===(A=i.billingAddress)||void 0===A?void 0:A.paymentEmail,secondaryPersonFirstName:null===(S=i.billingAddress)||void 0===S?void 0:S.secondaryPersonFirstName,secondaryPersonLastName:null===(w=i.billingAddress)||void 0===w?void 0:w.secondaryPersonLastName,secondaryPersonEmail:null===(g=i.billingAddress)||void 0===g?void 0:g.secondaryPersonEmail,industry:null===(C=i.billingAddress)||void 0===C?void 0:C.industry,department:null===(b=i.billingAddress)||void 0===b?void 0:b.department,additionalEmails:(U=i.billingAddress.additionalEmails,U?U.join(", "):"")},this.productType=i.productType,this.productName=i.restriction,this.isEnterprise=i.isEnterprise,this.expiryDate=i.expireDate,this.isFrozen=i.frozen,this.isDeviceLimitReached=i.isDeviceLimitReached,this.statistics={totalSubscribers:i.pushNotAvailableSubscribers+i.pushAvailableSubscribers,pushAvailableSubscribers:i.pushAvailableSubscribers,pushNotAvailableSubscribers:i.pushNotAvailableSubscribers,freeEmailsQuotaUpdateDate:i.freeEmailLimitUpdateDate,paidEmailsQuotaExpiryDate:i.paidEmailExpireDate},this.userCentricStorageUsed=i.userCentricStorageUsed,this.allowProductCommunication=i.allowProductCommunication,this.isSuspended=i.suspended,Object.freeze(this.billing),Object.freeze(this.statistics),Object.freeze(this)}}class r{constructor(i){o(this,"hasSuperRights",void 0),o(this,"canManageSubscription",void 0),o(this,"canManageAccessTokens",void 0),o(this,"canManageDomainsAndEmails",void 0),o(this,"canManageSubUsers",void 0),o(this,"canSeeApplications",void 0),o(this,"canModifyApplications",void 0),o(this,"canSeeApplicationGroups",void 0),o(this,"canModifyApplicationGroups",void 0),o(this,"canSeeMessages",void 0),o(this,"canModifyMessages",void 0),o(this,"canSendMessages",void 0),o(this,"canSeeTags",void 0),o(this,"canModifyTags",void 0),o(this,"canSeeSegments",void 0),o(this,"canModifySegments",void 0),o(this,"canSeeRichMedia",void 0),o(this,"canModifyRichMedia",void 0),o(this,"canSeeInApps",void 0),o(this,"canSeeEmailTemplates",void 0),o(this,"canModifyEmailTemplates",void 0),this.hasSuperRights=i.aceSuperRight,this.canManageSubscription=i.aceManageSubscription,this.canManageAccessTokens=i.aceSeeApiAccess,this.canManageDomainsAndEmails=i.aceDomainAndEmailVerification,this.canManageSubUsers=i.aceManageUsers,this.canSeeApplications=i.aceSeeApplications,this.canModifyApplications=i.aceModifyApplications,this.canSeeApplicationGroups=i.aceSeeAppGroups,this.canModifyApplicationGroups=i.aceModifyAppGroups,this.canSeeMessages=i.aceSeeMessages,this.canModifyMessages=i.aceModifyMessages&&this.canSeeMessages,this.canSendMessages=i.aceSendMessages&&this.canSeeMessages,this.canSeeTags=i.aceSeeTags,this.canModifyTags=i.aceModifyTags,this.canSeeSegments=i.aceSeeFilters&&this.canSeeTags,this.canModifySegments=i.aceModifyFilters&&this.canSeeTags,this.canSeeRichMedia=i.aceSeeRichMedia&&this.canSeeTags&&this.canSeeSegments,this.canModifyRichMedia=i.aceModifyRichMedia&&this.canSeeTags&&this.canSeeSegments,this.canSeeInApps=this.canSeeTags&&this.canSeeSegments&&this.canSeeRichMedia,this.canSeeEmailTemplates=i.aceSeeEmailTemplates&&this.canSeeTags,this.canModifyEmailTemplates=i.aceModifyEmailTemplates&&this.canSeeTags,Object.freeze(this)}}!function(i){i[i.IOS=1]="IOS",i[i.ANDROID=3]="ANDROID",i[i.MAC_OS=7]="MAC_OS",i[i.WINDOWS=8]="WINDOWS",i[i.AMAZON=9]="AMAZON",i[i.SAFARI=10]="SAFARI",i[i.CHROME=11]="CHROME",i[i.FIREFOX=12]="FIREFOX",i[i.IE=13]="IE",i[i.EMAIL=14]="EMAIL",i[i.BAIDU=16]="BAIDU",i[i.HUAWEI=17]="HUAWEI",i[i.SMS=18]="SMS",i[i.XIAOMI=19]="XIAOMI",i[i.WHATSAPP=21]="WHATSAPP",i[i.LINE=22]="LINE",i[i.KAKAO=23]="KAKAO",i[i.TELEGRAM=24]="TELEGRAM",i[i.APPLE_WALLET=25]="APPLE_WALLET"}(l||(l={})),function(i){i.IOS="iOS",i.ANDROID="Android",i.MAC_OS="Mac OS",i.WINDOWS="Windows",i.AMAZON="Amazon",i.SAFARI="Safari",i.CHROME="Chrome",i.FIREFOX="Firefox",i.IE="Internet Explorer",i.EMAIL="Email",i.BAIDU="Baidu",i.HUAWEI="Huawei",i.SMS="SMS",i.XIAOMI="Xiaomi",i.WHATSAPP="WhatsApp",i.LINE="Line",i.KAKAO="Kakao",i.TELEGRAM="Telegram",i.APPLE_WALLET="Apple Wallet"}(n||(n={}));class h{constructor(i){o(this,"available",void 0),o(this,"checkIsAvailablePlatform",i=>this.available.includes(i)),this.available=h.filterAllowPlatforms(i.allowedPlatforms),Object.freeze(this)}}o(h,"filterAllowPlatforms",i=>{const s=Object.values(l);return i.filter(i=>s.includes(i))}),o(h,"getPlatformName",i=>{const s=Object.keys(n).find(s=>l[s]===i);return s?n[s]:"Unknown platform!"});class c{constructor(i){let{restrictions:s}=i;o(this,"allowUseSubUsers",void 0),o(this,"maxUsersCount",void 0),o(this,"allowUseBaiduAndroid",void 0),o(this,"maxDevicesCount",void 0),o(this,"maxApplicationsCount",void 0),o(this,"maxApplicationGroupsCount",void 0),o(this,"allowUseApplicationGroups",void 0),o(this,"maxCampaignsCount",void 0),o(this,"allowUseCampaigns",void 0),o(this,"maxTagsCount",void 0),o(this,"allowUseTags",void 0),o(this,"allowUseUserSpecificTags",void 0),o(this,"maxFiltersCount",void 0),o(this,"maxFastFiltersCount",void 0),o(this,"allowUseFilters",void 0),o(this,"allowUseFiltersCompiling",void 0),o(this,"allowUseFiltersWithTagNotSet",void 0),o(this,"maxEventsCount",void 0),o(this,"allowUseEvents",void 0),o(this,"maxRichMediaCount",void 0),o(this,"allowUseRichMedia",void 0),o(this,"maxInAppsCount",void 0),o(this,"allowUseInApps",void 0),o(this,"maxMailsCount",void 0),o(this,"maxDomainsCount",void 0),o(this,"maxEmailTemplatesCount",void 0),o(this,"allowUseEmailPlatform",void 0),o(this,"maxPresetsCount",void 0),o(this,"allowUsePresets",void 0),o(this,"allowUseGeozones",void 0),o(this,"allowUseSendToGeozones",void 0),o(this,"maxGeozonesCount",void 0),o(this,"maxGeozoneRange",void 0),o(this,"minGeozoneRange",void 0),o(this,"maxDeepLinksCount",void 0),o(this,"allowUseDeepLinks",void 0),o(this,"maxTwitterFeedsCount",void 0),o(this,"allowUseTwitterFeeds",void 0),o(this,"maxRssFeedsCount",void 0),o(this,"allowUseRssFeeds",void 0),o(this,"allowUseRssFeedsCustomPollingInterval",void 0),o(this,"maxTestDevicesCount",void 0),o(this,"allowUseTestDevices",void 0),o(this,"allowUseAccessTokens",void 0),o(this,"allowUseDataKeys",void 0),o(this,"allowUseStatistics",void 0),o(this,"allowUseScheduling",void 0),o(this,"allowUseIOSAutoConfig",void 0),o(this,"allowUseTwoFactorAuth",void 0),o(this,"allowUseSendMessageByCsv",void 0),o(this,"allowUseAbTests",void 0),o(this,"allowUseHtmlPages",void 0),o(this,"allowUseRemotePage",void 0),o(this,"allowUseIOSCategories",void 0),o(this,"allowUseGoalTracking",void 0),o(this,"allowUseGetMessageLog",void 0),o(this,"allowUseIEPlatform",void 0),o(this,"allowUseDebugMode",void 0),o(this,"allowUseUninstallTracking",void 0),o(this,"allowUseFrequencyCapping",void 0),o(this,"allowUseInbox",void 0),o(this,"maxInboxTtlDays",void 0),o(this,"allowUseSendExternalAndroidStatistics",void 0),o(this,"allowUseGDPR",void 0),o(this,"sendRateMin",void 0),o(this,"sendRateMax",void 0),o(this,"messageHistoryStoriedPeriodInDays",void 0),o(this,"detailActionHistoryStorePeriodInDays",void 0),o(this,"allowShowDeliveryStatistics",void 0),o(this,"allowBestTimeToSend",void 0),o(this,"allowSegmentsGroups",void 0),o(this,"allowEventSegmentation",void 0),o(this,"allowEventsFunnel",void 0),o(this,"isEnabledBackup",void 0),o(this,"allowChannelsSection",void 0),o(this,"allowUseSMSPlatform",void 0),o(this,"allowUseWhatsAppPlatform",void 0),o(this,"allowUseLinePlatform",void 0),o(this,"allowAIAssistant",!1),o(this,"allowAIWalletBilling",void 0),o(this,"allowUseCloudPages",void 0),this.allowUseSubUsers=s.MaxUsers>1,this.maxUsersCount=s.MaxUsers,this.allowUseBaiduAndroid=s.AllowBaiduAndroidPlatformUsage,this.maxDevicesCount=s.MaxDevices,this.maxApplicationsCount=1/0,this.maxApplicationGroupsCount=1/0,this.allowUseApplicationGroups=!0,this.maxCampaignsCount=1/0,this.allowUseCampaigns=!0,this.maxTagsCount=1/0,this.allowUseTags=!0,this.allowUseUserSpecificTags=!0,this.maxFiltersCount=1/0,this.maxFastFiltersCount=s.MaxPreparedFilters,this.allowUseFilters=!0,this.allowUseFiltersCompiling=!0,this.allowUseFiltersWithTagNotSet=s.AllowTagNotSetFilter,this.maxEventsCount=1/0,this.allowUseEvents=!0,this.maxRichMediaCount=1/0,this.allowUseRichMedia=!0,this.maxInAppsCount=1/0,this.allowUseInApps=!0,this.maxMailsCount=s.MaxVerifyingEmails,this.maxDomainsCount=s.MaxVerifyingDomains,this.maxEmailTemplatesCount=1/0,this.allowUseEmailPlatform=!0,this.maxPresetsCount=1/0,this.allowUsePresets=!0,this.allowUseGeozones=!0,this.allowUseSendToGeozones=!0,this.maxGeozonesCount=1/0,this.maxGeozoneRange=1/0,this.minGeozoneRange=50,this.maxDeepLinksCount=1/0,this.allowUseDeepLinks=!0,this.maxTwitterFeedsCount=1/0,this.allowUseTwitterFeeds=!0,this.maxRssFeedsCount=1/0,this.allowUseRssFeeds=!0,this.allowUseRssFeedsCustomPollingInterval=!0,this.maxTestDevicesCount=1/0,this.allowUseTestDevices=!0,this.allowUseAccessTokens=s.AllowApi,this.allowUseDataKeys=!0,this.allowUseStatistics=!0,this.allowUseScheduling=!0,this.allowUseIOSAutoConfig=!0,this.allowUseTwoFactorAuth=!0,this.allowUseSendMessageByCsv=!0,this.allowUseAbTests=!0,this.allowUseHtmlPages=!1,this.allowUseRemotePage=!0,this.allowUseIOSCategories=!0,this.allowUseGoalTracking=!0,this.allowUseGetMessageLog=s.AllowApiGetMessageLog,this.allowUseIEPlatform=s.AllowIePlatformUsage,this.allowUseDebugMode=s.AllowDebugMode,this.allowUseUninstallTracking=s.AllowTrackUninstalls,this.allowUseFrequencyCapping=s.AllowFrequencyCapping,this.allowUseInbox=!0,this.maxInboxTtlDays=s.MaxInboxTtlDays,this.allowUseSendExternalAndroidStatistics=!0,this.allowUseGDPR=!0,this.sendRateMin=s.MinSendRate,this.sendRateMax=s.MaxSendRate,this.messageHistoryStoriedPeriodInDays=s.MessageHistoryStorePeriod,this.detailActionHistoryStorePeriodInDays=s.DetailActionHistoryStorePeriod,this.allowShowDeliveryStatistics=s.AllowShowDeliveryStatistics,this.allowBestTimeToSend=s.AllowBestTimeToSend,this.allowSegmentsGroups=s.AllowSegmentsGroups,this.allowEventSegmentation=s.AllowEventSegmentation,this.allowEventsFunnel=s.AllowEventsFunnel,this.isEnabledBackup=!0,this.allowChannelsSection=s.AllowChannelsSection,this.allowUseSMSPlatform=s.AllowCjSMS,this.allowUseWhatsAppPlatform=s.AllowWhatsApp,this.allowUseLinePlatform=s.AllowLine,this.allowAIAssistant=s.AllowAIAssistant,this.allowAIWalletBilling=s.AllowAIWalletBilling,this.allowUseCloudPages=s.AllowCloudPages,Object.freeze(this)}}class u{constructor(i){o(this,"totalApplicationsCount",void 0),o(this,"totalApplicationGroupsCount",void 0),o(this,"totalCampaignsCount",void 0),o(this,"totalTagsCount",void 0),o(this,"totalFiltersCount",void 0),o(this,"totalEventsCount",void 0),o(this,"totalRichMediaCount",void 0),o(this,"totalInAppsCount",void 0),o(this,"totalDomainsCount",void 0),o(this,"totalMailsCount",void 0),o(this,"totalEmailTemplatesCount",void 0),o(this,"totalPresetsCount",void 0),o(this,"totalGeozonesCount",void 0),o(this,"totalDeepLinksCount",void 0),o(this,"totalRssFeedsCount",void 0),o(this,"totalTestDevicesCount",void 0),this.totalApplicationsCount=i.applicationsCount,this.totalApplicationGroupsCount=i.appGroupsCount,this.totalCampaignsCount=i.campaignsCount,this.totalTagsCount=i.tagsCount,this.totalFiltersCount=i.filtersCount,this.totalEventsCount=i.eventsCount,this.totalRichMediaCount=i.richMediaCount,this.totalInAppsCount=i.inAppsCount,this.totalDomainsCount=i.accountDomainsCount,this.totalMailsCount=i.accountMailsCount,this.totalEmailTemplatesCount=i.emailTemplatesCount,this.totalPresetsCount=i.presetsCount,this.totalGeozonesCount=i.geoZonesCount,this.totalDeepLinksCount=i.deeplinksCount,this.totalRssFeedsCount=i.rssFeedsCount,this.totalTestDevicesCount=i.testDevicesCount}}class v{constructor(i,s){o(this,"name",void 0),o(this,"email",void 0),o(this,"isActive",void 0),o(this,"isOwner",void 0),o(this,"timezone",void 0),o(this,"timezoneOffset",void 0),o(this,"accountCount",void 0),o(this,"intercomUserHash",void 0),o(this,"isSubscribedForNewsletters",void 0),this.name=s.username,this.email=s.email,this.isActive=s.isActive,this.isOwner=i.admin,this.timezone=s.timezone,this.timezoneOffset=60*parseFloat(s.timezoneOffset),this.accountCount=s.accountsCount,this.intercomUserHash=s.intercomUserHash,this.isSubscribedForNewsletters=s.allowNewsletters,Object.freeze(this)}}class m{constructor(){o(this,"listeners",new Set),o(this,"lastValue",void 0),o(this,"hasValue",!1)}next(i){this.lastValue=i,this.hasValue=!0,this.listeners.forEach(s=>s(i))}subscribe(i){return this.listeners.add(i),this.hasValue&&i(this.lastValue),{unsubscribe:()=>this.listeners.delete(i)}}}class p{constructor(i){o(this,"rpcGateway",void 0),o(this,"subject",void 0),o(this,"lastSession",void 0),o(this,"updateSubject",(i,s,t)=>{const e={account:new d(i),counters:new u(i),platforms:new h(i),permissions:new r(i),restrictions:new c(i),user:new v(i,s),onboardingInfo:t};this.lastSession=e,this.subject.next(e)}),o(this,"load",async()=>{const[i,s]=await Promise.all([this.rpcGateway.getAuthInfo.GetAuthInfo({}),this.rpcGateway.accounts.GetOnboardingInfo({})]),{account:t,user:e}=i;return[t,e,s]}),o(this,"update",async()=>{const[i,s,t]=await this.load();this.updateSubject(i,s,t)}),o(this,"subscribe",i=>this.subject.subscribe(i)),o(this,"getLastSession",()=>this.lastSession),this.rpcGateway=i,this.subject=new m}}return s})())}}});
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","mappings":"2GACA,IAAIA,EAAsB,CCA1BA,EAAwB,CAACC,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EA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,UAAUK,EAASlT,KAAK4S,WAC1B,CAAEQ,YAAaA,IAAMpT,KAAK8S,UAAUO,OAAOH,GACpD,ECDI,MAAOI,EAsBX7V,WAAAA,CAAY8V,GArBZpV,EAAA,0BAMAA,EAAA,uBAKAA,EAAA,2BAgBAA,EAAA,qBAGwB,CACtBO,EACAiT,EACA6B,KAEA,MAAMC,EAAmB,CACvBxP,QAAS,IAAIxF,EAAQC,GACrBgV,SAAU,IAAIjE,EAAS/Q,GACvBuI,UAAW,IAAIN,EAAUjI,GACzBiV,YAAa,IAAI3P,EAAYtF,GAC7BgJ,aAAc,IAAIF,EAAa9I,GAC/BkV,KAAM,IAAIlC,EAAKhT,EAAaiT,GAC5B6B,kBAEFxT,KAAK6T,YAAcJ,EACnBzT,KAAK8T,QAAQnB,KAAKc,KAGpBtV,EAAA,YAGc4V,UACZ,MAAOC,EAAUR,SAAwBS,QAAQC,IAAI,CACnDlU,KAAKuT,WAAWY,YAAYC,YAAY,CAAC,GACzCpU,KAAKuT,WAAWc,SAASC,kBAAkB,CAAC,MAExC,QAAErQ,EAAO,KAAE2P,GAASI,EAE1B,MAAO,CAAC/P,EAAS2P,EAAMJ,KAGzBrV,EAAA,cAGgB4V,UACd,MAAOrV,EAAaiT,EAAU6B,SAAwBxT,KAAKuU,OAC3DvU,KAAKwU,cAAc9V,EAAaiT,EAAU6B,KAG5CrV,EAAA,iBAKoB+U,GAClBlT,KAAK8T,QAAQb,UAAUC,IAGzB/U,EAAA,sBAGwB,IAA2B6B,KAAK6T,aA3DtD7T,KAAKuT,WAAaA,EAElBvT,KAAK8T,QAAU,IAAIrB,CACrB,E","sources":["webpack://@pushwoosh/session-store/webpack/bootstrap","webpack://@pushwoosh/session-store/webpack/runtime/define property getters","webpack://@pushwoosh/session-store/webpack/runtime/hasOwnProperty shorthand","webpack://@pushwoosh/session-store/webpack/runtime/make namespace object","webpack://@pushwoosh/session-store/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://@pushwoosh/session-store/./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack://@pushwoosh/session-store/./node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack://@pushwoosh/session-store/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://@pushwoosh/session-store/./src/entities/account.ts","webpack://@pushwoosh/session-store/./src/entities/platforms.ts","webpack://@pushwoosh/session-store/./src/session-store.helpers.ts","webpack://@pushwoosh/session-store/./src/entities/permissions.ts","webpack://@pushwoosh/session-store/./src/entities/restrictions.ts","webpack://@pushwoosh/session-store/./src/entities/counters.ts","webpack://@pushwoosh/session-store/./src/entities/user.ts","webpack://@pushwoosh/session-store/./src/replay-subject.ts","webpack://@pushwoosh/session-store/./src/session-store.ts"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","import {\n type Account as AuthInfoAccount,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\n\nimport { formatEmailsList } from '../session-store.helpers';\n\nexport enum ProductType {\n FREE = 'Free',\n DEVELOPER = 'Developer',\n MARKETING = 'Marketing',\n ENTERPRISE = 'Enterprise',\n}\n\n/**\n * Account information\n */\nexport class Account {\n /** Account ID */\n public readonly id: number;\n\n /** Account name */\n public readonly name: string;\n\n /** Account domain */\n public readonly domain: string;\n\n /** Account registration date */\n public readonly registrationDate: Date;\n\n /** Presence of an active subscription */\n public readonly hasActiveOrder: boolean;\n\n /** Billing information */\n public readonly billing: {\n /** Company name */\n readonly companyName: string | undefined;\n\n /** Company name */\n readonly accountCompanyName: string | undefined;\n\n /** Country */\n readonly companyCountry: string | undefined;\n\n /** Country code */\n readonly companyCountryCode: string | undefined;\n\n /** State (only for USA) */\n readonly companyState: string | undefined;\n\n /** State code (only for USA) */\n readonly companyStateCode: string | undefined;\n\n /** City */\n readonly companyCity: string | undefined;\n\n /** Street */\n readonly companyStreet: string | undefined;\n\n /** Postal code */\n readonly companyZip: string | undefined;\n\n /** Phone number */\n readonly companyPhone: string | undefined;\n\n /** Company VAT number */\n readonly companyVAT: string | undefined;\n\n /** Used as purchase number */\n readonly companyNumber: string | undefined;\n\n /** Primary contact first name */\n readonly primaryPersonFirstName: string | undefined;\n\n /** Primary contact last name */\n readonly primaryPersonLastName: string | undefined;\n\n /** Primary contact email */\n readonly primaryPersonEmail: string | undefined;\n\n /** Secondary contact first name */\n readonly secondaryPersonFirstName: string | undefined;\n\n /** Secondary contact last name */\n readonly secondaryPersonLastName: string | undefined;\n\n /** Secondary contact email */\n readonly secondaryPersonEmail: string | undefined;\n\n /** Industry */\n readonly industry: string | undefined;\n\n /** Department */\n readonly department: string | undefined;\n\n /** Additional contact emails */\n readonly additionalEmails: string | undefined;\n };\n\n /** Purchased subscription type */\n public readonly productType: ProductType;\n\n /** Subscription plan name. Just a string to display in settings */\n public readonly productName: string;\n\n /** Is the account enterprise */\n public readonly isEnterprise: boolean;\n\n /** Subscription expiry date */\n public readonly expiryDate: string;\n\n /** Is the account frozen */\n public readonly isFrozen: boolean;\n\n /** Has the device limit been reached */\n public readonly isDeviceLimitReached: boolean;\n\n /** Is the account suspended */\n public readonly isSuspended: boolean;\n\n /** Account statistics */\n public readonly statistics: {\n /** Number of subscribers */\n readonly totalSubscribers: number;\n\n /** Number of devices that can receive push notifications */\n readonly pushAvailableSubscribers: number;\n\n /** Number of devices that cannot receive push notifications */\n readonly pushNotAvailableSubscribers: number;\n\n /** Free email quota update date */\n readonly freeEmailsQuotaUpdateDate: string | undefined;\n\n /** Paid email quota expiry date */\n readonly paidEmailsQuotaExpiryDate: string | undefined;\n };\n\n public readonly userCentricStorageUsed: boolean;\n\n public readonly allowProductCommunication: boolean;\n\n constructor(accountData: AuthInfoAccount) {\n this.id = accountData.id;\n this.name = accountData.name;\n this.domain = accountData.domain;\n this.registrationDate = accountData.registrationDate;\n this.hasActiveOrder = accountData.hasActiveOrder;\n\n this.billing = {\n companyName: accountData.billingAddress?.companyName,\n accountCompanyName: accountData.billingAddress?.accountCompanyName,\n companyCountry: accountData.billingAddress?.country,\n companyCountryCode: accountData.billingAddress?.countryCode,\n companyState: accountData.billingAddress?.state,\n companyStateCode: accountData.billingAddress?.stateCode,\n companyCity: accountData.billingAddress?.city,\n companyStreet: accountData.billingAddress?.street,\n companyZip: accountData.billingAddress?.zipCode,\n companyPhone: accountData.billingAddress?.phone,\n companyVAT: accountData.billingAddress?.vatNumber,\n companyNumber: accountData.billingAddress?.companyNumber,\n primaryPersonFirstName: accountData.billingAddress?.firstName,\n primaryPersonLastName: accountData.billingAddress?.lastName,\n primaryPersonEmail: accountData.billingAddress?.paymentEmail,\n secondaryPersonFirstName: accountData.billingAddress?.secondaryPersonFirstName,\n secondaryPersonLastName: accountData.billingAddress?.secondaryPersonLastName,\n secondaryPersonEmail: accountData.billingAddress?.secondaryPersonEmail,\n industry: accountData.billingAddress?.industry,\n department: accountData.billingAddress?.department,\n additionalEmails: formatEmailsList(accountData.billingAddress.additionalEmails),\n };\n\n this.productType = accountData.productType as ProductType;\n this.productName = accountData.restriction;\n this.isEnterprise = accountData.isEnterprise;\n this.expiryDate = accountData.expireDate;\n\n this.isFrozen = accountData.frozen;\n this.isDeviceLimitReached = accountData.isDeviceLimitReached;\n\n this.statistics = {\n totalSubscribers: accountData.pushNotAvailableSubscribers + accountData.pushAvailableSubscribers,\n pushAvailableSubscribers: accountData.pushAvailableSubscribers,\n pushNotAvailableSubscribers: accountData.pushNotAvailableSubscribers,\n freeEmailsQuotaUpdateDate: accountData.freeEmailLimitUpdateDate,\n paidEmailsQuotaExpiryDate: accountData.paidEmailExpireDate,\n };\n\n this.userCentricStorageUsed = accountData.userCentricStorageUsed;\n this.allowProductCommunication = accountData.allowProductCommunication;\n this.isSuspended = accountData.suspended;\n\n Object.freeze(this.billing);\n Object.freeze(this.statistics);\n Object.freeze(this);\n }\n}\n","import {\n type Account as AuthInfoAccount,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\n\n/**\n * Platform identifier.\n */\nexport enum Platform {\n IOS = 1,\n // BLACKBERRY = 2, // RIP\n ANDROID = 3,\n // ASHA = 4, // RIP\n // WINDOWS_PHONE = 5, // RIP\n // BADA = 6, // RIP\n MAC_OS = 7,\n WINDOWS = 8,\n AMAZON = 9,\n SAFARI = 10,\n CHROME = 11,\n FIREFOX = 12,\n IE = 13,\n EMAIL = 14,\n // FACEBOOK_MESSENGER = 15, // RIP\n BAIDU = 16,\n HUAWEI = 17,\n SMS = 18,\n XIAOMI = 19,\n // WEB = 20, // INACTIVE\n WHATSAPP = 21,\n LINE = 22,\n KAKAO = 23,\n TELEGRAM = 24,\n}\n\n/**\n * Platform name.\n */\nexport enum PlatformName {\n IOS = 'iOS',\n // BLACKBERRY = 'Blackberry', // RIP\n ANDROID = 'Android',\n // ASHA = 'Asha', // RIP\n // WINDOWS_PHONE = 'Windows Phone', // RIP\n // BADA = 'Bada', // RIP\n MAC_OS = 'Mac OS',\n WINDOWS = 'Windows',\n AMAZON = 'Amazon',\n SAFARI = 'Safari',\n CHROME = 'Chrome',\n FIREFOX = 'Firefox',\n IE = 'Internet Explorer',\n EMAIL = 'Email',\n // FACEBOOK_MESSENGER = 'Facebook Messenger', // RIP\n BAIDU = 'Baidu',\n HUAWEI = 'Huawei',\n SMS = 'SMS',\n XIAOMI = 'Xiaomi',\n // WEB = 'Web', // INACTIVE\n WHATSAPP = 'WhatsApp',\n LINE = 'Line',\n KAKAO = 'Kakao',\n TELEGRAM = 'Telegram',\n}\n\n/**\n * Helper class for working with platforms.\n */\nexport class Platforms {\n /**\n * Filter out unknown values.\n *\n * @param { Array<number> } platforms - array of available platforms.\n * @return { Array<Platform> } platforms - safe array of available platforms.\n */\n private static filterAllowPlatforms = (platforms: Array<number>): Array<Platform> => {\n const platformTypes = Object.values(Platform) as Array<Platform>;\n return platforms.filter((platform) => (\n platformTypes.includes(platform)\n ));\n };\n\n /**\n * Get the platform name by its identifier.\n *\n * @param { Platform } platform - platform identifier.\n * @return { string } platform identifier.\n */\n public static getPlatformName = (platform: Platform): string => {\n const platformKeys = Object.keys(PlatformName) as Array<keyof typeof PlatformName>;\n const foundedPlatform = platformKeys.find((key) => Platform[key] === platform);\n if (!foundedPlatform) {\n return 'Unknown platform!';\n }\n\n return PlatformName[foundedPlatform];\n };\n\n /**\n * Array of available platforms.\n */\n public readonly available: Array<Platform>;\n\n constructor(accountData: AuthInfoAccount) {\n this.available = Platforms.filterAllowPlatforms(accountData.allowedPlatforms);\n Object.freeze(this);\n }\n\n /**\n * Check if the platform is available for use.\n *\n * @param { Platform } platform - platform identifier.\n * @return { boolean } - is the platform available for use.\n */\n public checkIsAvailablePlatform = (platform: Platform): boolean => (\n this.available.includes(platform)\n );\n}\n","export const formatEmailsList = (emails?: string[]): string => (\n emails ? emails.join(', ') : ''\n);\n","import {\n type Account as AuthInfoAccount,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\n\n/**\n * Permissions for using the functionality from the account owner's side\n */\nexport class Permissions {\n /** Does the user have super rights */\n public readonly hasSuperRights: boolean;\n\n /** Can the user manage the subscription */\n public readonly canManageSubscription: boolean;\n\n /** Can the user manage access tokens */\n public readonly canManageAccessTokens: boolean;\n\n /** Can the user manage domains and email addresses */\n public readonly canManageDomainsAndEmails: boolean;\n\n /** Can the user manage other users' rights */\n public readonly canManageSubUsers: boolean;\n\n /** Can the user view applications */\n public readonly canSeeApplications: boolean;\n\n /** Can the user edit applications */\n public readonly canModifyApplications: boolean;\n\n /** Can the user view application groups */\n public readonly canSeeApplicationGroups: boolean;\n\n /** Can the user edit application groups */\n public readonly canModifyApplicationGroups: boolean;\n\n /** Can the user view sent messages */\n public readonly canSeeMessages: boolean;\n\n /** Can the user edit (cancel) sent messages */\n public readonly canModifyMessages: boolean;\n\n /** Can the user send messages */\n public readonly canSendMessages: boolean;\n\n /** Can the user view tags */\n public readonly canSeeTags: boolean;\n\n /** Can the user edit tags */\n public readonly canModifyTags: boolean;\n\n /** Can the user view segments */\n public readonly canSeeSegments: boolean;\n\n /** Can the user edit segments */\n public readonly canModifySegments: boolean;\n\n /** Can the user view rich media */\n public readonly canSeeRichMedia: boolean;\n\n /** Can the user edit rich media */\n public readonly canModifyRichMedia: boolean;\n\n /** Can the user view in-apps */\n public readonly canSeeInApps: boolean;\n\n /** Can the user view email templates */\n public readonly canSeeEmailTemplates: boolean;\n\n /** Can the user edit email templates */\n public readonly canModifyEmailTemplates: boolean;\n\n constructor(account: AuthInfoAccount) {\n this.hasSuperRights = account.aceSuperRight;\n\n this.canManageSubscription = account.aceManageSubscription;\n\n this.canManageAccessTokens = account.aceSeeApiAccess;\n\n this.canManageDomainsAndEmails = account.aceDomainAndEmailVerification;\n\n this.canManageSubUsers = account.aceManageUsers;\n\n this.canSeeApplications = account.aceSeeApplications;\n this.canModifyApplications = account.aceModifyApplications;\n\n this.canSeeApplicationGroups = account.aceSeeAppGroups;\n this.canModifyApplicationGroups = account.aceModifyAppGroups;\n\n this.canSeeMessages = account.aceSeeMessages;\n this.canModifyMessages = account.aceModifyMessages && this.canSeeMessages;\n this.canSendMessages = account.aceSendMessages && this.canSeeMessages;\n\n this.canSeeTags = account.aceSeeTags;\n this.canModifyTags = account.aceModifyTags;\n\n this.canSeeSegments = account.aceSeeFilters && this.canSeeTags;\n this.canModifySegments = account.aceModifyFilters && this.canSeeTags;\n\n this.canSeeRichMedia = account.aceSeeRichMedia && this.canSeeTags && this.canSeeSegments;\n this.canModifyRichMedia = account.aceModifyRichMedia && this.canSeeTags && this.canSeeSegments;\n\n this.canSeeInApps = this.canSeeTags && this.canSeeSegments && this.canSeeRichMedia;\n\n this.canSeeEmailTemplates = account.aceSeeEmailTemplates && this.canSeeTags;\n this.canModifyEmailTemplates = account.aceModifyEmailTemplates && this.canSeeTags;\n\n Object.freeze(this);\n }\n}\n","import type { RestrictionsData } from '../session-store.types';\n\n/**\n * Restrictions on the use of functionality from the PW side\n */\nexport class Restrictions {\n /** Is the use of sub-users allowed */\n public readonly allowUseSubUsers: boolean;\n\n /** The number of users available (including the account owner) */\n public readonly maxUsersCount: number;\n\n /** Is the use of Baidu Android allowed */\n public readonly allowUseBaiduAndroid: boolean;\n\n /** The number of devices available */\n public readonly maxDevicesCount: number;\n\n /** The number of \"Applications\" available */\n public readonly maxApplicationsCount: number;\n\n /** The number of \"Application Groups\" available */\n public readonly maxApplicationGroupsCount: number;\n\n /** Is the use of \"Application Groups\" allowed */\n public readonly allowUseApplicationGroups: boolean;\n\n /** The number of \"Campaigns\" available */\n public readonly maxCampaignsCount: number;\n\n /** Is the use of \"Campaigns\" allowed */\n public readonly allowUseCampaigns: boolean;\n\n /** The number of \"Tags\" available */\n public readonly maxTagsCount: number;\n\n /** Is the use of \"Tags\" allowed */\n public readonly allowUseTags: boolean;\n\n /** Is the use of \"User Specific Tags\" allowed */\n public readonly allowUseUserSpecificTags: boolean;\n\n /** The number of \"Filters\" available */\n public readonly maxFiltersCount: number;\n\n /** The number of \"Fast Filters\" available */\n public readonly maxFastFiltersCount: number;\n\n /** Is the use of \"Filters\" allowed */\n public readonly allowUseFilters: boolean;\n\n /** Is the use of \"Filters Compiling\" allowed */\n public readonly allowUseFiltersCompiling: boolean;\n\n /** Is the use of \"Filter With Tag Not Set\" allowed */\n public readonly allowUseFiltersWithTagNotSet: boolean;\n\n /** The number of \"Events\" available */\n public readonly maxEventsCount: number;\n\n /** Is the use of \"Events\" allowed */\n public readonly allowUseEvents: boolean;\n\n /** The number of \"Rich Media\" available */\n public readonly maxRichMediaCount: number;\n\n /** Is the use of \"Rich Media\" allowed */\n public readonly allowUseRichMedia: boolean;\n\n /** The number of \"In Apps\" available */\n public readonly maxInAppsCount: number;\n\n /** Is the use of \"InApps\" allowed */\n public readonly allowUseInApps: boolean;\n\n /** The number of configured email addresses available */\n public readonly maxMailsCount: number;\n\n /** The number of configured domains available */\n public readonly maxDomainsCount: number;\n\n /** The number of email templates available */\n public readonly maxEmailTemplatesCount: number;\n\n /** Is the use of Email allowed */\n public readonly allowUseEmailPlatform: boolean;\n\n /** The number of \"Presets\" available */\n public readonly maxPresetsCount: number;\n\n /** Is the use of \"Presets\" allowed */\n public readonly allowUsePresets: boolean;\n\n /** Is the use of \"Geozones\" allowed */\n public readonly allowUseGeozones: boolean;\n\n /** Is sending messages using \"Geozones\" allowed */\n public readonly allowUseSendToGeozones: boolean;\n\n /** The number of \"Geozones\" available */\n public readonly maxGeozonesCount: number;\n\n /** The maximum range of \"Geozone\" */\n public readonly maxGeozoneRange: number;\n\n /** The minimum range of \"Geozone\" */\n public readonly minGeozoneRange: number;\n\n /** The number of \"Deep Links\" available */\n public readonly maxDeepLinksCount: number;\n\n /** Is the use of \"Deep Links\" allowed */\n public readonly allowUseDeepLinks: boolean;\n\n /** The number of \"Twitter Feeds\" available */\n public readonly maxTwitterFeedsCount: number;\n\n /** Is the use of \"Twitter Feeds\" allowed */\n public readonly allowUseTwitterFeeds: boolean;\n\n /** The number of \"Rss Feeds\" available */\n public readonly maxRssFeedsCount: number;\n\n /** Is the use of \"Rss Feeds\" allowed */\n public readonly allowUseRssFeeds: boolean;\n\n /** Is the use of \"Rss Feeds Custom Polling Interval\" allowed */\n public readonly allowUseRssFeedsCustomPollingInterval: boolean;\n\n /** The number of \"Test Devices\" available */\n public readonly maxTestDevicesCount: number;\n\n /** Is the use of \"Test Devices\" allowed */\n public readonly allowUseTestDevices: boolean;\n\n /** Is the use of \"Access Tokens\" allowed */\n public readonly allowUseAccessTokens: boolean;\n\n /** Is the use of \"Data Keys\" allowed */\n public readonly allowUseDataKeys: boolean;\n\n /** Is the use of various statistics allowed */\n public readonly allowUseStatistics: boolean;\n\n /** Is sending messages on schedule allowed */\n public readonly allowUseScheduling: boolean;\n\n /** Is the use of iOS platform auto-configuration allowed */\n public readonly allowUseIOSAutoConfig: boolean;\n\n /** Is the use of two-factor authentication allowed */\n public readonly allowUseTwoFactorAuth: boolean;\n\n /** Is sending messages via CSV allowed */\n public readonly allowUseSendMessageByCsv: boolean;\n\n /** Is the use of \"AB Tests\" allowed */\n public readonly allowUseAbTests: boolean;\n\n /** Is the use of \"Html Pages\" allowed */\n public readonly allowUseHtmlPages: boolean;\n\n /** Is the use of \"Remote Pages\" allowed */\n public readonly allowUseRemotePage: boolean;\n\n /** Is the use of \"iOS Categories\" allowed */\n public readonly allowUseIOSCategories: boolean;\n\n /** Is the use of \"Goal Tracking\" allowed */\n public readonly allowUseGoalTracking: boolean;\n\n /** Is the use of \"API GetMessageLog\" allowed */\n public readonly allowUseGetMessageLog: boolean;\n\n /** Is the use of \"IE\" allowed */\n public readonly allowUseIEPlatform: boolean;\n\n /** Is the use of \"Debug Mode\" allowed */\n public readonly allowUseDebugMode: boolean;\n\n /** Is the use of \"Tracking Uninstall\" allowed */\n public readonly allowUseUninstallTracking: boolean;\n\n /** Is the use of \"Frequency Capping\" allowed */\n public readonly allowUseFrequencyCapping: boolean;\n\n /** Is the use of \"Inbox\" allowed */\n public readonly allowUseInbox: boolean;\n\n /** The message storage time in \"Inbox\" */\n public readonly maxInboxTtlDays: number;\n\n /** Is sending additional statistics for Android applications allowed */\n public readonly allowUseSendExternalAndroidStatistics: boolean;\n\n /** Is the use of \"GDPR\" allowed */\n public readonly allowUseGDPR: boolean;\n\n /** The minimum message sending rate */\n public readonly sendRateMin: number;\n\n /** The maximum message sending rate */\n public readonly sendRateMax: number;\n\n /** The period of message history storage in days */\n public readonly messageHistoryStoriedPeriodInDays: number;\n\n /** The period of action history storage in days */\n public readonly detailActionHistoryStorePeriodInDays: number;\n\n /** Show delivered rate on statistics pages */\n public readonly allowShowDeliveryStatistics: boolean;\n\n /** Show optimal send time */\n public readonly allowBestTimeToSend: boolean;\n\n /** Allow the creation of segment groups */\n public readonly allowSegmentsGroups: boolean;\n\n /** Allow segmentation by events */\n public readonly allowEventSegmentation: boolean;\n\n /** Allow Events Funnel */\n public readonly allowEventsFunnel: boolean;\n\n /** Is backup creation enabled */\n public readonly isEnabledBackup: boolean;\n\n /** Does the user have the Channels tab and access to one-time forms */\n public readonly allowChannelsSection: boolean;\n\n /** Can use SMS platform */\n public readonly allowUseSMSPlatform: boolean;\n\n /** Can use WhatsApp platform */\n public readonly allowUseWhatsAppPlatform: boolean;\n\n /** Can use Line platform */\n public readonly allowUseLinePlatform: boolean;\n\n /** Is the use of AI Assistant allowed */\n public readonly allowAIAssistant: boolean = false;\n\n /** Is the use of AI Wallet allowed */\n public readonly allowAIWalletBilling: boolean;\n\n /** Is the use of Cloud Pages allowed */\n public readonly allowUseCloudPages: boolean;\n\n constructor({ restrictions }: RestrictionsData) {\n this.allowUseSubUsers = restrictions.MaxUsers > 1;\n\n this.maxUsersCount = restrictions.MaxUsers;\n\n this.allowUseBaiduAndroid = restrictions.AllowBaiduAndroidPlatformUsage;\n\n this.maxDevicesCount = restrictions.MaxDevices;\n\n this.maxApplicationsCount = Infinity;\n\n this.maxApplicationGroupsCount = Infinity;\n this.allowUseApplicationGroups = true;\n\n this.maxCampaignsCount = Infinity;\n this.allowUseCampaigns = true;\n\n this.maxTagsCount = Infinity;\n this.allowUseTags = true;\n this.allowUseUserSpecificTags = restrictions.MaxUserSpecificTags > 0;\n\n this.maxFiltersCount = Infinity;\n this.maxFastFiltersCount = restrictions.MaxPreparedFilters;\n this.allowUseFilters = true;\n this.allowUseFiltersCompiling = restrictions.AllowCompileFilter;\n this.allowUseFiltersWithTagNotSet = restrictions.AllowTagNotSetFilter;\n\n this.maxEventsCount = Infinity;\n this.allowUseEvents = true;\n\n this.maxRichMediaCount = Infinity;\n this.allowUseRichMedia = true;\n\n this.maxInAppsCount = Infinity;\n this.allowUseInApps = true;\n\n this.maxMailsCount = restrictions.MaxVerifyingEmails;\n this.maxDomainsCount = restrictions.MaxVerifyingDomains;\n this.maxEmailTemplatesCount = restrictions.MaxEmailTemplates;\n this.allowUseEmailPlatform = this.maxEmailTemplatesCount > 0;\n\n this.maxPresetsCount = Infinity;\n this.allowUsePresets = true;\n\n this.allowUseGeozones = true;\n this.allowUseSendToGeozones = restrictions.AllowSendToGeozone;\n this.maxGeozonesCount = Infinity;\n this.maxGeozoneRange = Infinity;\n this.minGeozoneRange = 50;\n\n this.maxDeepLinksCount = Infinity;\n this.allowUseDeepLinks = true;\n\n this.maxTwitterFeedsCount = Infinity;\n this.allowUseTwitterFeeds = true;\n\n this.maxRssFeedsCount = Infinity;\n this.allowUseRssFeeds = true;\n this.allowUseRssFeedsCustomPollingInterval = restrictions.AllowCustomRssPollingInterval;\n\n this.maxTestDevicesCount = Infinity;\n this.allowUseTestDevices = true;\n\n this.allowUseAccessTokens = restrictions.AllowApi;\n\n this.allowUseDataKeys = restrictions.AllowCustomData;\n\n this.allowUseStatistics = true;\n\n this.allowUseScheduling = restrictions.AllowScheduling;\n\n this.allowUseIOSAutoConfig = restrictions.AllowAutoConfig;\n\n this.allowUseTwoFactorAuth = restrictions.AllowTwoFactorAuth;\n\n this.allowUseSendMessageByCsv = restrictions.AllowCsvMessage;\n\n this.allowUseAbTests = true;\n\n this.allowUseHtmlPages = false;\n\n this.allowUseRemotePage = true;\n\n this.allowUseIOSCategories = true;\n\n this.allowUseGoalTracking = restrictions.AllowGoalTracking;\n\n this.allowUseGetMessageLog = restrictions.AllowApiGetMessageLog;\n\n this.allowUseIEPlatform = restrictions.AllowIePlatformUsage;\n\n this.allowUseDebugMode = restrictions.AllowDebugMode;\n\n this.allowUseUninstallTracking = restrictions.AllowTrackUninstalls;\n\n this.allowUseFrequencyCapping = restrictions.AllowFrequencyCapping;\n\n this.allowUseInbox = restrictions.AllowInbox;\n this.maxInboxTtlDays = restrictions.MaxInboxTtlDays;\n\n this.allowUseSendExternalAndroidStatistics = restrictions.AllowSendExternalStats;\n this.allowUseGDPR = restrictions.AllowGdpr;\n\n this.sendRateMin = restrictions.MinSendRate;\n this.sendRateMax = restrictions.MaxSendRate;\n\n this.messageHistoryStoriedPeriodInDays = restrictions.MessageHistoryStorePeriod;\n this.detailActionHistoryStorePeriodInDays = restrictions.DetailActionHistoryStorePeriod;\n\n this.allowShowDeliveryStatistics = restrictions.AllowShowDeliveryStatistics;\n\n this.allowBestTimeToSend = restrictions.AllowBestTimeToSend;\n\n this.allowSegmentsGroups = restrictions.AllowSegmentsGroups;\n this.allowEventSegmentation = restrictions.AllowEventSegmentation;\n\n this.allowEventsFunnel = restrictions.AllowEventsFunnel;\n\n this.isEnabledBackup = true;\n\n this.allowChannelsSection = restrictions.AllowChannelsSection;\n\n this.allowUseSMSPlatform = restrictions.AllowCjSMS;\n\n this.allowUseWhatsAppPlatform = restrictions.AllowWhatsApp;\n\n this.allowUseLinePlatform = restrictions.AllowLine;\n\n this.allowAIAssistant = restrictions.AllowAIAssistant;\n\n this.allowAIWalletBilling = restrictions.AllowAIWalletBilling;\n\n this.allowUseCloudPages = restrictions.AllowCloudPages;\n\n Object.freeze(this);\n }\n}\n","import {\n type Account as AuthInfoAccount,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\n\n/**\n * Account owner's counters\n */\nexport class Counters {\n /** Number of existing \"Applications\" */\n public readonly totalApplicationsCount: number;\n\n /** Number of existing \"Application Groups\" */\n public readonly totalApplicationGroupsCount: number;\n\n /** Number of existing \"Campaigns\" */\n public readonly totalCampaignsCount: number;\n\n /** Number of existing \"Tags\" */\n public readonly totalTagsCount: number;\n\n /** Number of existing \"Filters\" */\n public readonly totalFiltersCount: number;\n\n /** Number of existing \"Events\" */\n public readonly totalEventsCount: number;\n\n /** Number of existing \"Rich Media\" */\n public readonly totalRichMediaCount: number;\n\n /** Number of existing \"In Apps\" */\n public readonly totalInAppsCount: number;\n\n /** Number of existing configured domains */\n public readonly totalDomainsCount: number;\n\n /** Number of existing configured email addresses */\n public readonly totalMailsCount: number;\n\n /** Number of existing email templates */\n public readonly totalEmailTemplatesCount: number;\n\n /** Number of existing \"Presets\" */\n public readonly totalPresetsCount: number;\n\n /** Number of existing \"Geozones\" */\n public readonly totalGeozonesCount: number;\n\n /** Number of existing \"Deep Links\" */\n public readonly totalDeepLinksCount: number;\n\n /** Number of existing \"Rss Feeds\" */\n public readonly totalRssFeedsCount: number;\n\n /** Number of existing \"Test Devices\" */\n public readonly totalTestDevicesCount: number;\n\n constructor(accountData: AuthInfoAccount) {\n this.totalApplicationsCount = accountData.applicationsCount;\n this.totalApplicationGroupsCount = accountData.appGroupsCount;\n this.totalCampaignsCount = accountData.campaignsCount;\n this.totalTagsCount = accountData.tagsCount;\n this.totalFiltersCount = accountData.filtersCount;\n this.totalEventsCount = accountData.eventsCount;\n this.totalRichMediaCount = accountData.richMediaCount;\n this.totalInAppsCount = accountData.inAppsCount;\n this.totalDomainsCount = accountData.accountDomainsCount;\n this.totalMailsCount = accountData.accountMailsCount;\n this.totalEmailTemplatesCount = accountData.emailTemplatesCount;\n this.totalPresetsCount = accountData.presetsCount;\n this.totalGeozonesCount = accountData.geoZonesCount;\n this.totalDeepLinksCount = accountData.deeplinksCount;\n this.totalRssFeedsCount = accountData.rssFeedsCount;\n this.totalTestDevicesCount = accountData.testDevicesCount;\n }\n}\n","import {\n type Account as AuthInfoAccount,\n type User as AuthInfoUser,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\n\n/**\n * User information\n */\nexport class User {\n /** User name */\n public readonly name: string;\n\n /** User email */\n public readonly email: string;\n\n /** Is the user active */\n public readonly isActive: boolean;\n\n /** Is the user the workspace owner */\n public readonly isOwner: boolean;\n\n /** User timezone */\n public readonly timezone: string;\n\n /** User timezone offset */\n public readonly timezoneOffset: number;\n\n /** Available number of accounts for login */\n public readonly accountCount: number;\n\n /** Hash for user authentication in Intercom */\n public readonly intercomUserHash: string;\n\n /** Is the user subscribed to newsletters */\n public readonly isSubscribedForNewsletters: boolean;\n\n constructor(accountData: AuthInfoAccount, userData: AuthInfoUser) {\n this.name = userData.username;\n this.email = userData.email;\n\n this.isActive = userData.isActive;\n this.isOwner = accountData.admin;\n\n this.timezone = userData.timezone;\n this.timezoneOffset = parseFloat(userData.timezoneOffset) * 60;\n\n this.accountCount = userData.accountsCount;\n\n this.intercomUserHash = userData.intercomUserHash;\n\n this.isSubscribedForNewsletters = userData.allowNewsletters;\n\n Object.freeze(this);\n }\n}\n","import type { Unsubscribable } from './replay-subject.types';\n\nexport class ReplaySubject<T> {\n private listeners = new Set<(value: T) => void>();\n\n private lastValue?: T;\n\n private hasValue = false;\n\n next(value: T): void {\n this.lastValue = value;\n this.hasValue = true;\n this.listeners.forEach((fn) => fn(value));\n }\n\n subscribe(callback: (value: T) => void): Unsubscribable {\n this.listeners.add(callback);\n if (this.hasValue) callback(this.lastValue as T);\n return { unsubscribe: () => this.listeners.delete(callback) };\n }\n}\n","import type { API } from '@pushwoosh/rpc-v2-http-api-data';\nimport type {\n Account as AuthInfoAccount,\n User as AuthInfoUser,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\nimport type { GetOnboardingInfoResponse as OnboardingInfo } from '@pushwoosh/rpc-v2-http-api-data/accounts';\n\nimport { Account } from './entities/account';\nimport { Permissions } from './entities/permissions';\nimport { Platforms } from './entities/platforms';\nimport { Restrictions } from './entities/restrictions';\nimport { Counters } from './entities/counters';\nimport { User } from './entities/user';\nimport { ReplaySubject } from './replay-subject';\n\nimport type { Session, RestrictionsData } from './session-store.types';\nimport type { Unsubscribable } from './replay-subject.types';\n\nexport class SessionStore {\n /**\n * rpc gateway\n * @private\n */\n private readonly rpcGateway: API;\n\n /**\n * \"Observable object\" of the session\n */\n private readonly subject: ReplaySubject<Session>;\n\n /**\n * The last session\n */\n private lastSession?: Session;\n\n /**\n * Create an instance of the SessionStore class\n *\n * @param rpcGateway - rpc gateway\n */\n constructor(rpcGateway: API) {\n this.rpcGateway = rpcGateway;\n\n this.subject = new ReplaySubject<Session>();\n }\n\n /**\n * Update the \"Observable object\" of the current session\n */\n private updateSubject = (\n accountData: AuthInfoAccount,\n userData: AuthInfoUser,\n onboardingInfo: OnboardingInfo,\n ): void => {\n const session: Session = {\n account: new Account(accountData),\n counters: new Counters(accountData),\n platforms: new Platforms(accountData),\n permissions: new Permissions(accountData),\n restrictions: new Restrictions(accountData as RestrictionsData),\n user: new User(accountData, userData),\n onboardingInfo,\n };\n this.lastSession = session;\n this.subject.next(session);\n };\n\n /**\n * Load account and user data\n */\n public load = async (): Promise<[AuthInfoAccount, AuthInfoUser, OnboardingInfo]> => {\n const [authInfo, onboardingInfo] = await Promise.all([\n this.rpcGateway.getAuthInfo.GetAuthInfo({}),\n this.rpcGateway.accounts.GetOnboardingInfo({}),\n ]);\n const { account, user } = authInfo;\n\n return [account, user, onboardingInfo];\n };\n\n /**\n * Update the session\n */\n public update = async (): Promise<void> => {\n const [accountData, userData, onboardingInfo] = await this.load();\n this.updateSubject(accountData, userData, onboardingInfo);\n };\n\n /**\n * Subscribe to session changes\n *\n * @param callback - callback that will be called when the session changes\n */\n public subscribe = (callback: (session: Session) => void): Unsubscribable => (\n this.subject.subscribe(callback)\n );\n\n /**\n * Get the last session\n */\n public getLastSession = (): Session | undefined => this.lastSession;\n}\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","_typeof","iterator","constructor","toPropertyKey","t","i","r","e","toPrimitive","TypeError","String","Number","_defineProperty","configurable","writable","ProductType","Platform","PlatformName","Account","accountData","_accountData$billingA","_accountData$billingA2","_accountData$billingA3","_accountData$billingA4","_accountData$billingA5","_accountData$billingA6","_accountData$billingA7","_accountData$billingA8","_accountData$billingA9","_accountData$billingA0","_accountData$billingA1","_accountData$billingA10","_accountData$billingA11","_accountData$billingA12","_accountData$billingA13","_accountData$billingA14","_accountData$billingA15","_accountData$billingA16","_accountData$billingA17","_accountData$billingA18","emails","this","id","name","domain","registrationDate","hasActiveOrder","billing","companyName","billingAddress","accountCompanyName","companyCountry","country","companyCountryCode","countryCode","companyState","state","companyStateCode","stateCode","companyCity","city","companyStreet","street","companyZip","zipCode","companyPhone","phone","companyVAT","vatNumber","companyNumber","primaryPersonFirstName","firstName","primaryPersonLastName","lastName","primaryPersonEmail","paymentEmail","secondaryPersonFirstName","secondaryPersonLastName","secondaryPersonEmail","industry","department","additionalEmails","join","productType","productName","restriction","isEnterprise","expiryDate","expireDate","isFrozen","frozen","isDeviceLimitReached","statistics","totalSubscribers","pushNotAvailableSubscribers","pushAvailableSubscribers","freeEmailsQuotaUpdateDate","freeEmailLimitUpdateDate","paidEmailsQuotaExpiryDate","paidEmailExpireDate","userCentricStorageUsed","allowProductCommunication","isSuspended","suspended","freeze","Permissions","account","hasSuperRights","aceSuperRight","canManageSubscription","aceManageSubscription","canManageAccessTokens","aceSeeApiAccess","canManageDomainsAndEmails","aceDomainAndEmailVerification","canManageSubUsers","aceManageUsers","canSeeApplications","aceSeeApplications","canModifyApplications","aceModifyApplications","canSeeApplicationGroups","aceSeeAppGroups","canModifyApplicationGroups","aceModifyAppGroups","canSeeMessages","aceSeeMessages","canModifyMessages","aceModifyMessages","canSendMessages","aceSendMessages","canSeeTags","aceSeeTags","canModifyTags","aceModifyTags","canSeeSegments","aceSeeFilters","canModifySegments","aceModifyFilters","canSeeRichMedia","aceSeeRichMedia","canModifyRichMedia","aceModifyRichMedia","canSeeInApps","canSeeEmailTemplates","aceSeeEmailTemplates","canModifyEmailTemplates","aceModifyEmailTemplates","Platforms","platform","available","includes","filterAllowPlatforms","allowedPlatforms","platforms","platformTypes","values","filter","foundedPlatform","keys","find","Restrictions","_ref","restrictions","allowUseSubUsers","MaxUsers","maxUsersCount","allowUseBaiduAndroid","AllowBaiduAndroidPlatformUsage","maxDevicesCount","MaxDevices","maxApplicationsCount","Infinity","maxApplicationGroupsCount","allowUseApplicationGroups","maxCampaignsCount","allowUseCampaigns","maxTagsCount","allowUseTags","allowUseUserSpecificTags","MaxUserSpecificTags","maxFiltersCount","maxFastFiltersCount","MaxPreparedFilters","allowUseFilters","allowUseFiltersCompiling","AllowCompileFilter","allowUseFiltersWithTagNotSet","AllowTagNotSetFilter","maxEventsCount","allowUseEvents","maxRichMediaCount","allowUseRichMedia","maxInAppsCount","allowUseInApps","maxMailsCount","MaxVerifyingEmails","maxDomainsCount","MaxVerifyingDomains","maxEmailTemplatesCount","MaxEmailTemplates","allowUseEmailPlatform","maxPresetsCount","allowUsePresets","allowUseGeozones","allowUseSendToGeozones","AllowSendToGeozone","maxGeozonesCount","maxGeozoneRange","minGeozoneRange","maxDeepLinksCount","allowUseDeepLinks","maxTwitterFeedsCount","allowUseTwitterFeeds","maxRssFeedsCount","allowUseRssFeeds","allowUseRssFeedsCustomPollingInterval","AllowCustomRssPollingInterval","maxTestDevicesCount","allowUseTestDevices","allowUseAccessTokens","AllowApi","allowUseDataKeys","AllowCustomData","allowUseStatistics","allowUseScheduling","AllowScheduling","allowUseIOSAutoConfig","AllowAutoConfig","allowUseTwoFactorAuth","AllowTwoFactorAuth","allowUseSendMessageByCsv","AllowCsvMessage","allowUseAbTests","allowUseHtmlPages","allowUseRemotePage","allowUseIOSCategories","allowUseGoalTracking","AllowGoalTracking","allowUseGetMessageLog","AllowApiGetMessageLog","allowUseIEPlatform","AllowIePlatformUsage","allowUseDebugMode","AllowDebugMode","allowUseUninstallTracking","AllowTrackUninstalls","allowUseFrequencyCapping","AllowFrequencyCapping","allowUseInbox","AllowInbox","maxInboxTtlDays","MaxInboxTtlDays","allowUseSendExternalAndroidStatistics","AllowSendExternalStats","allowUseGDPR","AllowGdpr","sendRateMin","MinSendRate","sendRateMax","MaxSendRate","messageHistoryStoriedPeriodInDays","MessageHistoryStorePeriod","detailActionHistoryStorePeriodInDays","DetailActionHistoryStorePeriod","allowShowDeliveryStatistics","AllowShowDeliveryStatistics","allowBestTimeToSend","AllowBestTimeToSend","allowSegmentsGroups","AllowSegmentsGroups","allowEventSegmentation","AllowEventSegmentation","allowEventsFunnel","AllowEventsFunnel","isEnabledBackup","allowChannelsSection","AllowChannelsSection","allowUseSMSPlatform","AllowCjSMS","allowUseWhatsAppPlatform","AllowWhatsApp","allowUseLinePlatform","AllowLine","allowAIAssistant","AllowAIAssistant","allowAIWalletBilling","AllowAIWalletBilling","allowUseCloudPages","AllowCloudPages","Counters","totalApplicationsCount","applicationsCount","totalApplicationGroupsCount","appGroupsCount","totalCampaignsCount","campaignsCount","totalTagsCount","tagsCount","totalFiltersCount","filtersCount","totalEventsCount","eventsCount","totalRichMediaCount","richMediaCount","totalInAppsCount","inAppsCount","totalDomainsCount","accountDomainsCount","totalMailsCount","accountMailsCount","totalEmailTemplatesCount","emailTemplatesCount","totalPresetsCount","presetsCount","totalGeozonesCount","geoZonesCount","totalDeepLinksCount","deeplinksCount","totalRssFeedsCount","rssFeedsCount","totalTestDevicesCount","testDevicesCount","User","userData","username","email","isActive","isOwner","admin","timezone","timezoneOffset","parseFloat","accountCount","accountsCount","intercomUserHash","isSubscribedForNewsletters","allowNewsletters","ReplaySubject","Set","next","lastValue","hasValue","listeners","forEach","fn","subscribe","callback","add","unsubscribe","delete","SessionStore","rpcGateway","onboardingInfo","session","counters","permissions","user","lastSession","subject","async","authInfo","Promise","all","getAuthInfo","GetAuthInfo","accounts","GetOnboardingInfo","load","updateSubject"],"ignoreList":[],"sourceRoot":""}
1
+ {"version":3,"file":"index.js","mappings":"2GACA,IAAIA,EAAsB,CCA1BA,EAAwB,CAACC,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,MCJ3EH,EAAwB,CAACS,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFV,EAAyBC,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,M,KCLvD,SAASC,EAAQb,GAGf,OAAOa,EAAU,mBAAqBH,QAAU,iBAAmBA,OAAOI,SAAW,SAAUd,GAC7F,cAAcA,CAChB,EAAI,SAAUA,GACZ,OAAOA,GAAK,mBAAqBU,QAAUV,EAAEe,cAAgBL,QAAUV,IAAMU,OAAOH,UAAY,gBAAkBP,CACpH,EAAGa,EAAQb,EACb,CCNA,SAASgB,EAAcC,GACrB,IAAI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,KAAE6O,GAASI,EAE1B,MAAO,CAACjP,EAAS6O,EAAMJ,KAGzBvU,EAAA,cAGgB8U,UACd,MAAOvU,EAAamS,EAAU6B,SAAwB1S,KAAKyT,OAC3DzT,KAAK0T,cAAchV,EAAamS,EAAU6B,KAG5CvU,EAAA,iBAKoBiU,GAClBpS,KAAKgT,QAAQb,UAAUC,IAGzBjU,EAAA,sBAGwB,IAA2B6B,KAAK+S,aA3DtD/S,KAAKyS,WAAaA,EAElBzS,KAAKgT,QAAU,IAAIrB,CACrB,E","sources":["webpack://@pushwoosh/session-store/webpack/bootstrap","webpack://@pushwoosh/session-store/webpack/runtime/define property getters","webpack://@pushwoosh/session-store/webpack/runtime/hasOwnProperty shorthand","webpack://@pushwoosh/session-store/webpack/runtime/make namespace object","webpack://@pushwoosh/session-store/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://@pushwoosh/session-store/./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack://@pushwoosh/session-store/./node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack://@pushwoosh/session-store/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://@pushwoosh/session-store/./src/entities/account.ts","webpack://@pushwoosh/session-store/./src/entities/platforms.ts","webpack://@pushwoosh/session-store/./src/session-store.helpers.ts","webpack://@pushwoosh/session-store/./src/entities/permissions.ts","webpack://@pushwoosh/session-store/./src/entities/restrictions.ts","webpack://@pushwoosh/session-store/./src/entities/counters.ts","webpack://@pushwoosh/session-store/./src/entities/user.ts","webpack://@pushwoosh/session-store/./src/replay-subject.ts","webpack://@pushwoosh/session-store/./src/session-store.ts"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","import {\n type Account as AuthInfoAccount,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\n\nimport { formatEmailsList } from '../session-store.helpers';\n\nexport enum ProductType {\n FREE = 'Free',\n DEVELOPER = 'Developer',\n MARKETING = 'Marketing',\n ENTERPRISE = 'Enterprise',\n}\n\n/**\n * Account information\n */\nexport class Account {\n /** Account ID */\n public readonly id: number;\n\n /** Account name */\n public readonly name: string;\n\n /** Account domain */\n public readonly domain: string;\n\n /** Account registration date */\n public readonly registrationDate: Date;\n\n /** Presence of an active subscription */\n public readonly hasActiveOrder: boolean;\n\n /** Billing information */\n public readonly billing: {\n /** Company name */\n readonly companyName: string | undefined;\n\n /** Company name */\n readonly accountCompanyName: string | undefined;\n\n /** Country */\n readonly companyCountry: string | undefined;\n\n /** Country code */\n readonly companyCountryCode: string | undefined;\n\n /** State (only for USA) */\n readonly companyState: string | undefined;\n\n /** State code (only for USA) */\n readonly companyStateCode: string | undefined;\n\n /** City */\n readonly companyCity: string | undefined;\n\n /** Street */\n readonly companyStreet: string | undefined;\n\n /** Postal code */\n readonly companyZip: string | undefined;\n\n /** Phone number */\n readonly companyPhone: string | undefined;\n\n /** Company VAT number */\n readonly companyVAT: string | undefined;\n\n /** Used as purchase number */\n readonly companyNumber: string | undefined;\n\n /** Primary contact first name */\n readonly primaryPersonFirstName: string | undefined;\n\n /** Primary contact last name */\n readonly primaryPersonLastName: string | undefined;\n\n /** Primary contact email */\n readonly primaryPersonEmail: string | undefined;\n\n /** Secondary contact first name */\n readonly secondaryPersonFirstName: string | undefined;\n\n /** Secondary contact last name */\n readonly secondaryPersonLastName: string | undefined;\n\n /** Secondary contact email */\n readonly secondaryPersonEmail: string | undefined;\n\n /** Industry */\n readonly industry: string | undefined;\n\n /** Department */\n readonly department: string | undefined;\n\n /** Additional contact emails */\n readonly additionalEmails: string | undefined;\n };\n\n /** Purchased subscription type */\n public readonly productType: ProductType;\n\n /** Subscription plan name. Just a string to display in settings */\n public readonly productName: string;\n\n /** Is the account enterprise */\n public readonly isEnterprise: boolean;\n\n /** Subscription expiry date */\n public readonly expiryDate: string;\n\n /** Is the account frozen */\n public readonly isFrozen: boolean;\n\n /** Has the device limit been reached */\n public readonly isDeviceLimitReached: boolean;\n\n /** Is the account suspended */\n public readonly isSuspended: boolean;\n\n /** Account statistics */\n public readonly statistics: {\n /** Number of subscribers */\n readonly totalSubscribers: number;\n\n /** Number of devices that can receive push notifications */\n readonly pushAvailableSubscribers: number;\n\n /** Number of devices that cannot receive push notifications */\n readonly pushNotAvailableSubscribers: number;\n\n /** Free email quota update date */\n readonly freeEmailsQuotaUpdateDate: string | undefined;\n\n /** Paid email quota expiry date */\n readonly paidEmailsQuotaExpiryDate: string | undefined;\n };\n\n public readonly userCentricStorageUsed: boolean;\n\n public readonly allowProductCommunication: boolean;\n\n constructor(accountData: AuthInfoAccount) {\n this.id = accountData.id;\n this.name = accountData.name;\n this.domain = accountData.domain;\n this.registrationDate = accountData.registrationDate;\n this.hasActiveOrder = accountData.hasActiveOrder;\n\n this.billing = {\n companyName: accountData.billingAddress?.companyName,\n accountCompanyName: accountData.billingAddress?.accountCompanyName,\n companyCountry: accountData.billingAddress?.country,\n companyCountryCode: accountData.billingAddress?.countryCode,\n companyState: accountData.billingAddress?.state,\n companyStateCode: accountData.billingAddress?.stateCode,\n companyCity: accountData.billingAddress?.city,\n companyStreet: accountData.billingAddress?.street,\n companyZip: accountData.billingAddress?.zipCode,\n companyPhone: accountData.billingAddress?.phone,\n companyVAT: accountData.billingAddress?.vatNumber,\n companyNumber: accountData.billingAddress?.companyNumber,\n primaryPersonFirstName: accountData.billingAddress?.firstName,\n primaryPersonLastName: accountData.billingAddress?.lastName,\n primaryPersonEmail: accountData.billingAddress?.paymentEmail,\n secondaryPersonFirstName: accountData.billingAddress?.secondaryPersonFirstName,\n secondaryPersonLastName: accountData.billingAddress?.secondaryPersonLastName,\n secondaryPersonEmail: accountData.billingAddress?.secondaryPersonEmail,\n industry: accountData.billingAddress?.industry,\n department: accountData.billingAddress?.department,\n additionalEmails: formatEmailsList(accountData.billingAddress.additionalEmails),\n };\n\n this.productType = accountData.productType as ProductType;\n this.productName = accountData.restriction;\n this.isEnterprise = accountData.isEnterprise;\n this.expiryDate = accountData.expireDate;\n\n this.isFrozen = accountData.frozen;\n this.isDeviceLimitReached = accountData.isDeviceLimitReached;\n\n this.statistics = {\n totalSubscribers: accountData.pushNotAvailableSubscribers + accountData.pushAvailableSubscribers,\n pushAvailableSubscribers: accountData.pushAvailableSubscribers,\n pushNotAvailableSubscribers: accountData.pushNotAvailableSubscribers,\n freeEmailsQuotaUpdateDate: accountData.freeEmailLimitUpdateDate,\n paidEmailsQuotaExpiryDate: accountData.paidEmailExpireDate,\n };\n\n this.userCentricStorageUsed = accountData.userCentricStorageUsed;\n this.allowProductCommunication = accountData.allowProductCommunication;\n this.isSuspended = accountData.suspended;\n\n Object.freeze(this.billing);\n Object.freeze(this.statistics);\n Object.freeze(this);\n }\n}\n","import {\n type Account as AuthInfoAccount,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\n\n/**\n * Platform identifier.\n */\nexport enum Platform {\n IOS = 1,\n // BLACKBERRY = 2, // RIP\n ANDROID = 3,\n // ASHA = 4, // RIP\n // WINDOWS_PHONE = 5, // RIP\n // BADA = 6, // RIP\n MAC_OS = 7,\n WINDOWS = 8,\n AMAZON = 9,\n SAFARI = 10,\n CHROME = 11,\n FIREFOX = 12,\n IE = 13,\n EMAIL = 14,\n // FACEBOOK_MESSENGER = 15, // RIP\n BAIDU = 16,\n HUAWEI = 17,\n SMS = 18,\n XIAOMI = 19,\n // WEB = 20, // INACTIVE\n WHATSAPP = 21,\n LINE = 22,\n KAKAO = 23,\n TELEGRAM = 24,\n APPLE_WALLET = 25,\n}\n\n/**\n * Platform name.\n */\nexport enum PlatformName {\n IOS = 'iOS',\n // BLACKBERRY = 'Blackberry', // RIP\n ANDROID = 'Android',\n // ASHA = 'Asha', // RIP\n // WINDOWS_PHONE = 'Windows Phone', // RIP\n // BADA = 'Bada', // RIP\n MAC_OS = 'Mac OS',\n WINDOWS = 'Windows',\n AMAZON = 'Amazon',\n SAFARI = 'Safari',\n CHROME = 'Chrome',\n FIREFOX = 'Firefox',\n IE = 'Internet Explorer',\n EMAIL = 'Email',\n // FACEBOOK_MESSENGER = 'Facebook Messenger', // RIP\n BAIDU = 'Baidu',\n HUAWEI = 'Huawei',\n SMS = 'SMS',\n XIAOMI = 'Xiaomi',\n // WEB = 'Web', // INACTIVE\n WHATSAPP = 'WhatsApp',\n LINE = 'Line',\n KAKAO = 'Kakao',\n TELEGRAM = 'Telegram',\n APPLE_WALLET = 'Apple Wallet',\n}\n\n/**\n * Helper class for working with platforms.\n */\nexport class Platforms {\n /**\n * Filter out unknown values.\n *\n * @param { Array<number> } platforms - array of available platforms.\n * @return { Array<Platform> } platforms - safe array of available platforms.\n */\n private static filterAllowPlatforms = (platforms: Array<number>): Array<Platform> => {\n const platformTypes = Object.values(Platform) as Array<Platform>;\n return platforms.filter((platform) => (\n platformTypes.includes(platform)\n ));\n };\n\n /**\n * Get the platform name by its identifier.\n *\n * @param { Platform } platform - platform identifier.\n * @return { string } platform identifier.\n */\n public static getPlatformName = (platform: Platform): string => {\n const platformKeys = Object.keys(PlatformName) as Array<keyof typeof PlatformName>;\n const foundedPlatform = platformKeys.find((key) => Platform[key] === platform);\n if (!foundedPlatform) {\n return 'Unknown platform!';\n }\n\n return PlatformName[foundedPlatform];\n };\n\n /**\n * Array of available platforms.\n */\n public readonly available: Array<Platform>;\n\n constructor(accountData: AuthInfoAccount) {\n this.available = Platforms.filterAllowPlatforms(accountData.allowedPlatforms);\n Object.freeze(this);\n }\n\n /**\n * Check if the platform is available for use.\n *\n * @param { Platform } platform - platform identifier.\n * @return { boolean } - is the platform available for use.\n */\n public checkIsAvailablePlatform = (platform: Platform): boolean => (\n this.available.includes(platform)\n );\n}\n","export const formatEmailsList = (emails?: string[]): string => (\n emails ? emails.join(', ') : ''\n);\n","import {\n type Account as AuthInfoAccount,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\n\n/**\n * Permissions for using the functionality from the account owner's side\n */\nexport class Permissions {\n /** Does the user have super rights */\n public readonly hasSuperRights: boolean;\n\n /** Can the user manage the subscription */\n public readonly canManageSubscription: boolean;\n\n /** Can the user manage access tokens */\n public readonly canManageAccessTokens: boolean;\n\n /** Can the user manage domains and email addresses */\n public readonly canManageDomainsAndEmails: boolean;\n\n /** Can the user manage other users' rights */\n public readonly canManageSubUsers: boolean;\n\n /** Can the user view applications */\n public readonly canSeeApplications: boolean;\n\n /** Can the user edit applications */\n public readonly canModifyApplications: boolean;\n\n /** Can the user view application groups */\n public readonly canSeeApplicationGroups: boolean;\n\n /** Can the user edit application groups */\n public readonly canModifyApplicationGroups: boolean;\n\n /** Can the user view sent messages */\n public readonly canSeeMessages: boolean;\n\n /** Can the user edit (cancel) sent messages */\n public readonly canModifyMessages: boolean;\n\n /** Can the user send messages */\n public readonly canSendMessages: boolean;\n\n /** Can the user view tags */\n public readonly canSeeTags: boolean;\n\n /** Can the user edit tags */\n public readonly canModifyTags: boolean;\n\n /** Can the user view segments */\n public readonly canSeeSegments: boolean;\n\n /** Can the user edit segments */\n public readonly canModifySegments: boolean;\n\n /** Can the user view rich media */\n public readonly canSeeRichMedia: boolean;\n\n /** Can the user edit rich media */\n public readonly canModifyRichMedia: boolean;\n\n /** Can the user view in-apps */\n public readonly canSeeInApps: boolean;\n\n /** Can the user view email templates */\n public readonly canSeeEmailTemplates: boolean;\n\n /** Can the user edit email templates */\n public readonly canModifyEmailTemplates: boolean;\n\n constructor(account: AuthInfoAccount) {\n this.hasSuperRights = account.aceSuperRight;\n\n this.canManageSubscription = account.aceManageSubscription;\n\n this.canManageAccessTokens = account.aceSeeApiAccess;\n\n this.canManageDomainsAndEmails = account.aceDomainAndEmailVerification;\n\n this.canManageSubUsers = account.aceManageUsers;\n\n this.canSeeApplications = account.aceSeeApplications;\n this.canModifyApplications = account.aceModifyApplications;\n\n this.canSeeApplicationGroups = account.aceSeeAppGroups;\n this.canModifyApplicationGroups = account.aceModifyAppGroups;\n\n this.canSeeMessages = account.aceSeeMessages;\n this.canModifyMessages = account.aceModifyMessages && this.canSeeMessages;\n this.canSendMessages = account.aceSendMessages && this.canSeeMessages;\n\n this.canSeeTags = account.aceSeeTags;\n this.canModifyTags = account.aceModifyTags;\n\n this.canSeeSegments = account.aceSeeFilters && this.canSeeTags;\n this.canModifySegments = account.aceModifyFilters && this.canSeeTags;\n\n this.canSeeRichMedia = account.aceSeeRichMedia && this.canSeeTags && this.canSeeSegments;\n this.canModifyRichMedia = account.aceModifyRichMedia && this.canSeeTags && this.canSeeSegments;\n\n this.canSeeInApps = this.canSeeTags && this.canSeeSegments && this.canSeeRichMedia;\n\n this.canSeeEmailTemplates = account.aceSeeEmailTemplates && this.canSeeTags;\n this.canModifyEmailTemplates = account.aceModifyEmailTemplates && this.canSeeTags;\n\n Object.freeze(this);\n }\n}\n","import type { RestrictionsData } from '../session-store.types';\n\n/**\n * Restrictions on the use of functionality from the PW side\n */\nexport class Restrictions {\n /** Is the use of sub-users allowed */\n public readonly allowUseSubUsers: boolean;\n\n /** The number of users available (including the account owner) */\n public readonly maxUsersCount: number;\n\n /** Is the use of Baidu Android allowed */\n public readonly allowUseBaiduAndroid: boolean;\n\n /** The number of devices available */\n public readonly maxDevicesCount: number;\n\n /** The number of \"Applications\" available */\n public readonly maxApplicationsCount: number;\n\n /** The number of \"Application Groups\" available */\n public readonly maxApplicationGroupsCount: number;\n\n /** Is the use of \"Application Groups\" allowed */\n public readonly allowUseApplicationGroups: boolean;\n\n /** The number of \"Campaigns\" available */\n public readonly maxCampaignsCount: number;\n\n /** Is the use of \"Campaigns\" allowed */\n public readonly allowUseCampaigns: boolean;\n\n /** The number of \"Tags\" available */\n public readonly maxTagsCount: number;\n\n /** Is the use of \"Tags\" allowed */\n public readonly allowUseTags: boolean;\n\n /** Is the use of \"User Specific Tags\" allowed */\n public readonly allowUseUserSpecificTags: boolean;\n\n /** The number of \"Filters\" available */\n public readonly maxFiltersCount: number;\n\n /** The number of \"Fast Filters\" available */\n public readonly maxFastFiltersCount: number;\n\n /** Is the use of \"Filters\" allowed */\n public readonly allowUseFilters: boolean;\n\n /** Is the use of \"Filters Compiling\" allowed */\n public readonly allowUseFiltersCompiling: boolean;\n\n /** Is the use of \"Filter With Tag Not Set\" allowed */\n public readonly allowUseFiltersWithTagNotSet: boolean;\n\n /** The number of \"Events\" available */\n public readonly maxEventsCount: number;\n\n /** Is the use of \"Events\" allowed */\n public readonly allowUseEvents: boolean;\n\n /** The number of \"Rich Media\" available */\n public readonly maxRichMediaCount: number;\n\n /** Is the use of \"Rich Media\" allowed */\n public readonly allowUseRichMedia: boolean;\n\n /** The number of \"In Apps\" available */\n public readonly maxInAppsCount: number;\n\n /** Is the use of \"InApps\" allowed */\n public readonly allowUseInApps: boolean;\n\n /** The number of configured email addresses available */\n public readonly maxMailsCount: number;\n\n /** The number of configured domains available */\n public readonly maxDomainsCount: number;\n\n /** The number of email templates available */\n public readonly maxEmailTemplatesCount: number;\n\n /** Is the use of Email allowed */\n public readonly allowUseEmailPlatform: boolean;\n\n /** The number of \"Presets\" available */\n public readonly maxPresetsCount: number;\n\n /** Is the use of \"Presets\" allowed */\n public readonly allowUsePresets: boolean;\n\n /** Is the use of \"Geozones\" allowed */\n public readonly allowUseGeozones: boolean;\n\n /** Is sending messages using \"Geozones\" allowed */\n public readonly allowUseSendToGeozones: boolean;\n\n /** The number of \"Geozones\" available */\n public readonly maxGeozonesCount: number;\n\n /** The maximum range of \"Geozone\" */\n public readonly maxGeozoneRange: number;\n\n /** The minimum range of \"Geozone\" */\n public readonly minGeozoneRange: number;\n\n /** The number of \"Deep Links\" available */\n public readonly maxDeepLinksCount: number;\n\n /** Is the use of \"Deep Links\" allowed */\n public readonly allowUseDeepLinks: boolean;\n\n /** The number of \"Twitter Feeds\" available */\n public readonly maxTwitterFeedsCount: number;\n\n /** Is the use of \"Twitter Feeds\" allowed */\n public readonly allowUseTwitterFeeds: boolean;\n\n /** The number of \"Rss Feeds\" available */\n public readonly maxRssFeedsCount: number;\n\n /** Is the use of \"Rss Feeds\" allowed */\n public readonly allowUseRssFeeds: boolean;\n\n /** Is the use of \"Rss Feeds Custom Polling Interval\" allowed */\n public readonly allowUseRssFeedsCustomPollingInterval: boolean;\n\n /** The number of \"Test Devices\" available */\n public readonly maxTestDevicesCount: number;\n\n /** Is the use of \"Test Devices\" allowed */\n public readonly allowUseTestDevices: boolean;\n\n /** Is the use of \"Access Tokens\" allowed */\n public readonly allowUseAccessTokens: boolean;\n\n /** Is the use of \"Data Keys\" allowed */\n public readonly allowUseDataKeys: boolean;\n\n /** Is the use of various statistics allowed */\n public readonly allowUseStatistics: boolean;\n\n /** Is sending messages on schedule allowed */\n public readonly allowUseScheduling: boolean;\n\n /** Is the use of iOS platform auto-configuration allowed */\n public readonly allowUseIOSAutoConfig: boolean;\n\n /** Is the use of two-factor authentication allowed */\n public readonly allowUseTwoFactorAuth: boolean;\n\n /** Is sending messages via CSV allowed */\n public readonly allowUseSendMessageByCsv: boolean;\n\n /** Is the use of \"AB Tests\" allowed */\n public readonly allowUseAbTests: boolean;\n\n /** Is the use of \"Html Pages\" allowed */\n public readonly allowUseHtmlPages: boolean;\n\n /** Is the use of \"Remote Pages\" allowed */\n public readonly allowUseRemotePage: boolean;\n\n /** Is the use of \"iOS Categories\" allowed */\n public readonly allowUseIOSCategories: boolean;\n\n /** Is the use of \"Goal Tracking\" allowed */\n public readonly allowUseGoalTracking: boolean;\n\n /** Is the use of \"API GetMessageLog\" allowed */\n public readonly allowUseGetMessageLog: boolean;\n\n /** Is the use of \"IE\" allowed */\n public readonly allowUseIEPlatform: boolean;\n\n /** Is the use of \"Debug Mode\" allowed */\n public readonly allowUseDebugMode: boolean;\n\n /** Is the use of \"Tracking Uninstall\" allowed */\n public readonly allowUseUninstallTracking: boolean;\n\n /** Is the use of \"Frequency Capping\" allowed */\n public readonly allowUseFrequencyCapping: boolean;\n\n /** Is the use of \"Inbox\" allowed */\n public readonly allowUseInbox: boolean;\n\n /** The message storage time in \"Inbox\" */\n public readonly maxInboxTtlDays: number;\n\n /** Is sending additional statistics for Android applications allowed */\n public readonly allowUseSendExternalAndroidStatistics: boolean;\n\n /** Is the use of \"GDPR\" allowed */\n public readonly allowUseGDPR: boolean;\n\n /** The minimum message sending rate */\n public readonly sendRateMin: number;\n\n /** The maximum message sending rate */\n public readonly sendRateMax: number;\n\n /** The period of message history storage in days */\n public readonly messageHistoryStoriedPeriodInDays: number;\n\n /** The period of action history storage in days */\n public readonly detailActionHistoryStorePeriodInDays: number;\n\n /** Show delivered rate on statistics pages */\n public readonly allowShowDeliveryStatistics: boolean;\n\n /** Show optimal send time */\n public readonly allowBestTimeToSend: boolean;\n\n /** Allow the creation of segment groups */\n public readonly allowSegmentsGroups: boolean;\n\n /** Allow segmentation by events */\n public readonly allowEventSegmentation: boolean;\n\n /** Allow Events Funnel */\n public readonly allowEventsFunnel: boolean;\n\n /** Is backup creation enabled */\n public readonly isEnabledBackup: boolean;\n\n /** Does the user have the Channels tab and access to one-time forms */\n public readonly allowChannelsSection: boolean;\n\n /** Can use SMS platform */\n public readonly allowUseSMSPlatform: boolean;\n\n /** Can use WhatsApp platform */\n public readonly allowUseWhatsAppPlatform: boolean;\n\n /** Can use Line platform */\n public readonly allowUseLinePlatform: boolean;\n\n /** Is the use of AI Assistant allowed */\n public readonly allowAIAssistant: boolean = false;\n\n /** Is the use of AI Wallet allowed */\n public readonly allowAIWalletBilling: boolean;\n\n /** Is the use of Cloud Pages allowed */\n public readonly allowUseCloudPages: boolean;\n\n constructor({ restrictions }: RestrictionsData) {\n this.allowUseSubUsers = restrictions.MaxUsers > 1;\n\n this.maxUsersCount = restrictions.MaxUsers;\n\n this.allowUseBaiduAndroid = restrictions.AllowBaiduAndroidPlatformUsage;\n\n this.maxDevicesCount = restrictions.MaxDevices;\n\n this.maxApplicationsCount = Infinity;\n\n this.maxApplicationGroupsCount = Infinity;\n this.allowUseApplicationGroups = true;\n\n this.maxCampaignsCount = Infinity;\n this.allowUseCampaigns = true;\n\n this.maxTagsCount = Infinity;\n this.allowUseTags = true;\n this.allowUseUserSpecificTags = true;\n\n this.maxFiltersCount = Infinity;\n this.maxFastFiltersCount = restrictions.MaxPreparedFilters;\n this.allowUseFilters = true;\n this.allowUseFiltersCompiling = true;\n this.allowUseFiltersWithTagNotSet = restrictions.AllowTagNotSetFilter;\n\n this.maxEventsCount = Infinity;\n this.allowUseEvents = true;\n\n this.maxRichMediaCount = Infinity;\n this.allowUseRichMedia = true;\n\n this.maxInAppsCount = Infinity;\n this.allowUseInApps = true;\n\n this.maxMailsCount = restrictions.MaxVerifyingEmails;\n this.maxDomainsCount = restrictions.MaxVerifyingDomains;\n this.maxEmailTemplatesCount = Infinity;\n this.allowUseEmailPlatform = true;\n\n this.maxPresetsCount = Infinity;\n this.allowUsePresets = true;\n\n this.allowUseGeozones = true;\n this.allowUseSendToGeozones = true;\n this.maxGeozonesCount = Infinity;\n this.maxGeozoneRange = Infinity;\n this.minGeozoneRange = 50;\n\n this.maxDeepLinksCount = Infinity;\n this.allowUseDeepLinks = true;\n\n this.maxTwitterFeedsCount = Infinity;\n this.allowUseTwitterFeeds = true;\n\n this.maxRssFeedsCount = Infinity;\n this.allowUseRssFeeds = true;\n this.allowUseRssFeedsCustomPollingInterval = true;\n\n this.maxTestDevicesCount = Infinity;\n this.allowUseTestDevices = true;\n\n this.allowUseAccessTokens = restrictions.AllowApi;\n\n this.allowUseDataKeys = true;\n\n this.allowUseStatistics = true;\n\n this.allowUseScheduling = true;\n\n this.allowUseIOSAutoConfig = true;\n\n this.allowUseTwoFactorAuth = true;\n\n this.allowUseSendMessageByCsv = true;\n\n this.allowUseAbTests = true;\n\n this.allowUseHtmlPages = false;\n\n this.allowUseRemotePage = true;\n\n this.allowUseIOSCategories = true;\n\n this.allowUseGoalTracking = true;\n\n this.allowUseGetMessageLog = restrictions.AllowApiGetMessageLog;\n\n this.allowUseIEPlatform = restrictions.AllowIePlatformUsage;\n\n this.allowUseDebugMode = restrictions.AllowDebugMode;\n\n this.allowUseUninstallTracking = restrictions.AllowTrackUninstalls;\n\n this.allowUseFrequencyCapping = restrictions.AllowFrequencyCapping;\n\n this.allowUseInbox = true;\n this.maxInboxTtlDays = restrictions.MaxInboxTtlDays;\n\n this.allowUseSendExternalAndroidStatistics = true;\n this.allowUseGDPR = true;\n\n this.sendRateMin = restrictions.MinSendRate;\n this.sendRateMax = restrictions.MaxSendRate;\n\n this.messageHistoryStoriedPeriodInDays = restrictions.MessageHistoryStorePeriod;\n this.detailActionHistoryStorePeriodInDays = restrictions.DetailActionHistoryStorePeriod;\n\n this.allowShowDeliveryStatistics = restrictions.AllowShowDeliveryStatistics;\n\n this.allowBestTimeToSend = restrictions.AllowBestTimeToSend;\n\n this.allowSegmentsGroups = restrictions.AllowSegmentsGroups;\n this.allowEventSegmentation = restrictions.AllowEventSegmentation;\n\n this.allowEventsFunnel = restrictions.AllowEventsFunnel;\n\n this.isEnabledBackup = true;\n\n this.allowChannelsSection = restrictions.AllowChannelsSection;\n\n this.allowUseSMSPlatform = restrictions.AllowCjSMS;\n\n this.allowUseWhatsAppPlatform = restrictions.AllowWhatsApp;\n\n this.allowUseLinePlatform = restrictions.AllowLine;\n\n this.allowAIAssistant = restrictions.AllowAIAssistant;\n\n this.allowAIWalletBilling = restrictions.AllowAIWalletBilling;\n\n this.allowUseCloudPages = restrictions.AllowCloudPages;\n\n Object.freeze(this);\n }\n}\n","import {\n type Account as AuthInfoAccount,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\n\n/**\n * Account owner's counters\n */\nexport class Counters {\n /** Number of existing \"Applications\" */\n public readonly totalApplicationsCount: number;\n\n /** Number of existing \"Application Groups\" */\n public readonly totalApplicationGroupsCount: number;\n\n /** Number of existing \"Campaigns\" */\n public readonly totalCampaignsCount: number;\n\n /** Number of existing \"Tags\" */\n public readonly totalTagsCount: number;\n\n /** Number of existing \"Filters\" */\n public readonly totalFiltersCount: number;\n\n /** Number of existing \"Events\" */\n public readonly totalEventsCount: number;\n\n /** Number of existing \"Rich Media\" */\n public readonly totalRichMediaCount: number;\n\n /** Number of existing \"In Apps\" */\n public readonly totalInAppsCount: number;\n\n /** Number of existing configured domains */\n public readonly totalDomainsCount: number;\n\n /** Number of existing configured email addresses */\n public readonly totalMailsCount: number;\n\n /** Number of existing email templates */\n public readonly totalEmailTemplatesCount: number;\n\n /** Number of existing \"Presets\" */\n public readonly totalPresetsCount: number;\n\n /** Number of existing \"Geozones\" */\n public readonly totalGeozonesCount: number;\n\n /** Number of existing \"Deep Links\" */\n public readonly totalDeepLinksCount: number;\n\n /** Number of existing \"Rss Feeds\" */\n public readonly totalRssFeedsCount: number;\n\n /** Number of existing \"Test Devices\" */\n public readonly totalTestDevicesCount: number;\n\n constructor(accountData: AuthInfoAccount) {\n this.totalApplicationsCount = accountData.applicationsCount;\n this.totalApplicationGroupsCount = accountData.appGroupsCount;\n this.totalCampaignsCount = accountData.campaignsCount;\n this.totalTagsCount = accountData.tagsCount;\n this.totalFiltersCount = accountData.filtersCount;\n this.totalEventsCount = accountData.eventsCount;\n this.totalRichMediaCount = accountData.richMediaCount;\n this.totalInAppsCount = accountData.inAppsCount;\n this.totalDomainsCount = accountData.accountDomainsCount;\n this.totalMailsCount = accountData.accountMailsCount;\n this.totalEmailTemplatesCount = accountData.emailTemplatesCount;\n this.totalPresetsCount = accountData.presetsCount;\n this.totalGeozonesCount = accountData.geoZonesCount;\n this.totalDeepLinksCount = accountData.deeplinksCount;\n this.totalRssFeedsCount = accountData.rssFeedsCount;\n this.totalTestDevicesCount = accountData.testDevicesCount;\n }\n}\n","import {\n type Account as AuthInfoAccount,\n type User as AuthInfoUser,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\n\n/**\n * User information\n */\nexport class User {\n /** User name */\n public readonly name: string;\n\n /** User email */\n public readonly email: string;\n\n /** Is the user active */\n public readonly isActive: boolean;\n\n /** Is the user the workspace owner */\n public readonly isOwner: boolean;\n\n /** User timezone */\n public readonly timezone: string;\n\n /** User timezone offset */\n public readonly timezoneOffset: number;\n\n /** Available number of accounts for login */\n public readonly accountCount: number;\n\n /** Hash for user authentication in Intercom */\n public readonly intercomUserHash: string;\n\n /** Is the user subscribed to newsletters */\n public readonly isSubscribedForNewsletters: boolean;\n\n constructor(accountData: AuthInfoAccount, userData: AuthInfoUser) {\n this.name = userData.username;\n this.email = userData.email;\n\n this.isActive = userData.isActive;\n this.isOwner = accountData.admin;\n\n this.timezone = userData.timezone;\n this.timezoneOffset = parseFloat(userData.timezoneOffset) * 60;\n\n this.accountCount = userData.accountsCount;\n\n this.intercomUserHash = userData.intercomUserHash;\n\n this.isSubscribedForNewsletters = userData.allowNewsletters;\n\n Object.freeze(this);\n }\n}\n","import type { Unsubscribable } from './replay-subject.types';\n\nexport class ReplaySubject<T> {\n private listeners = new Set<(value: T) => void>();\n\n private lastValue?: T;\n\n private hasValue = false;\n\n next(value: T): void {\n this.lastValue = value;\n this.hasValue = true;\n this.listeners.forEach((fn) => fn(value));\n }\n\n subscribe(callback: (value: T) => void): Unsubscribable {\n this.listeners.add(callback);\n if (this.hasValue) callback(this.lastValue as T);\n return { unsubscribe: () => this.listeners.delete(callback) };\n }\n}\n","import type { API } from '@pushwoosh/rpc-v2-http-api-data';\nimport type {\n Account as AuthInfoAccount,\n User as AuthInfoUser,\n} from '@pushwoosh/rpc-v2-http-api-data/accounts_get_auth_info';\nimport type { GetOnboardingInfoResponse as OnboardingInfo } from '@pushwoosh/rpc-v2-http-api-data/accounts';\n\nimport { Account } from './entities/account';\nimport { Permissions } from './entities/permissions';\nimport { Platforms } from './entities/platforms';\nimport { Restrictions } from './entities/restrictions';\nimport { Counters } from './entities/counters';\nimport { User } from './entities/user';\nimport { ReplaySubject } from './replay-subject';\n\nimport type { Session, RestrictionsData } from './session-store.types';\nimport type { Unsubscribable } from './replay-subject.types';\n\nexport class SessionStore {\n /**\n * rpc gateway\n * @private\n */\n private readonly rpcGateway: API;\n\n /**\n * \"Observable object\" of the session\n */\n private readonly subject: ReplaySubject<Session>;\n\n /**\n * The last session\n */\n private lastSession?: Session;\n\n /**\n * Create an instance of the SessionStore class\n *\n * @param rpcGateway - rpc gateway\n */\n constructor(rpcGateway: API) {\n this.rpcGateway = rpcGateway;\n\n this.subject = new ReplaySubject<Session>();\n }\n\n /**\n * Update the \"Observable object\" of the current session\n */\n private updateSubject = (\n accountData: AuthInfoAccount,\n userData: AuthInfoUser,\n onboardingInfo: OnboardingInfo,\n ): void => {\n const session: Session = {\n account: new Account(accountData),\n counters: new Counters(accountData),\n platforms: new Platforms(accountData),\n permissions: new Permissions(accountData),\n restrictions: new Restrictions(accountData as RestrictionsData),\n user: new User(accountData, userData),\n onboardingInfo,\n };\n this.lastSession = session;\n this.subject.next(session);\n };\n\n /**\n * Load account and user data\n */\n public load = async (): Promise<[AuthInfoAccount, AuthInfoUser, OnboardingInfo]> => {\n const [authInfo, onboardingInfo] = await Promise.all([\n this.rpcGateway.getAuthInfo.GetAuthInfo({}),\n this.rpcGateway.accounts.GetOnboardingInfo({}),\n ]);\n const { account, user } = authInfo;\n\n return [account, user, onboardingInfo];\n };\n\n /**\n * Update the session\n */\n public update = async (): Promise<void> => {\n const [accountData, userData, onboardingInfo] = await this.load();\n this.updateSubject(accountData, userData, onboardingInfo);\n };\n\n /**\n * Subscribe to session changes\n *\n * @param callback - callback that will be called when the session changes\n */\n public subscribe = (callback: (session: Session) => void): Unsubscribable => (\n this.subject.subscribe(callback)\n );\n\n /**\n * Get the last session\n */\n public getLastSession = (): Session | undefined => this.lastSession;\n}\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","_typeof","iterator","constructor","toPropertyKey","t","i","r","e","toPrimitive","TypeError","String","Number","_defineProperty","configurable","writable","ProductType","Platform","PlatformName","Account","accountData","_accountData$billingA","_accountData$billingA2","_accountData$billingA3","_accountData$billingA4","_accountData$billingA5","_accountData$billingA6","_accountData$billingA7","_accountData$billingA8","_accountData$billingA9","_accountData$billingA0","_accountData$billingA1","_accountData$billingA10","_accountData$billingA11","_accountData$billingA12","_accountData$billingA13","_accountData$billingA14","_accountData$billingA15","_accountData$billingA16","_accountData$billingA17","_accountData$billingA18","emails","this","id","name","domain","registrationDate","hasActiveOrder","billing","companyName","billingAddress","accountCompanyName","companyCountry","country","companyCountryCode","countryCode","companyState","state","companyStateCode","stateCode","companyCity","city","companyStreet","street","companyZip","zipCode","companyPhone","phone","companyVAT","vatNumber","companyNumber","primaryPersonFirstName","firstName","primaryPersonLastName","lastName","primaryPersonEmail","paymentEmail","secondaryPersonFirstName","secondaryPersonLastName","secondaryPersonEmail","industry","department","additionalEmails","join","productType","productName","restriction","isEnterprise","expiryDate","expireDate","isFrozen","frozen","isDeviceLimitReached","statistics","totalSubscribers","pushNotAvailableSubscribers","pushAvailableSubscribers","freeEmailsQuotaUpdateDate","freeEmailLimitUpdateDate","paidEmailsQuotaExpiryDate","paidEmailExpireDate","userCentricStorageUsed","allowProductCommunication","isSuspended","suspended","freeze","Permissions","account","hasSuperRights","aceSuperRight","canManageSubscription","aceManageSubscription","canManageAccessTokens","aceSeeApiAccess","canManageDomainsAndEmails","aceDomainAndEmailVerification","canManageSubUsers","aceManageUsers","canSeeApplications","aceSeeApplications","canModifyApplications","aceModifyApplications","canSeeApplicationGroups","aceSeeAppGroups","canModifyApplicationGroups","aceModifyAppGroups","canSeeMessages","aceSeeMessages","canModifyMessages","aceModifyMessages","canSendMessages","aceSendMessages","canSeeTags","aceSeeTags","canModifyTags","aceModifyTags","canSeeSegments","aceSeeFilters","canModifySegments","aceModifyFilters","canSeeRichMedia","aceSeeRichMedia","canModifyRichMedia","aceModifyRichMedia","canSeeInApps","canSeeEmailTemplates","aceSeeEmailTemplates","canModifyEmailTemplates","aceModifyEmailTemplates","Platforms","platform","available","includes","filterAllowPlatforms","allowedPlatforms","platforms","platformTypes","values","filter","foundedPlatform","keys","find","Restrictions","_ref","restrictions","allowUseSubUsers","MaxUsers","maxUsersCount","allowUseBaiduAndroid","AllowBaiduAndroidPlatformUsage","maxDevicesCount","MaxDevices","maxApplicationsCount","Infinity","maxApplicationGroupsCount","allowUseApplicationGroups","maxCampaignsCount","allowUseCampaigns","maxTagsCount","allowUseTags","allowUseUserSpecificTags","maxFiltersCount","maxFastFiltersCount","MaxPreparedFilters","allowUseFilters","allowUseFiltersCompiling","allowUseFiltersWithTagNotSet","AllowTagNotSetFilter","maxEventsCount","allowUseEvents","maxRichMediaCount","allowUseRichMedia","maxInAppsCount","allowUseInApps","maxMailsCount","MaxVerifyingEmails","maxDomainsCount","MaxVerifyingDomains","maxEmailTemplatesCount","allowUseEmailPlatform","maxPresetsCount","allowUsePresets","allowUseGeozones","allowUseSendToGeozones","maxGeozonesCount","maxGeozoneRange","minGeozoneRange","maxDeepLinksCount","allowUseDeepLinks","maxTwitterFeedsCount","allowUseTwitterFeeds","maxRssFeedsCount","allowUseRssFeeds","allowUseRssFeedsCustomPollingInterval","maxTestDevicesCount","allowUseTestDevices","allowUseAccessTokens","AllowApi","allowUseDataKeys","allowUseStatistics","allowUseScheduling","allowUseIOSAutoConfig","allowUseTwoFactorAuth","allowUseSendMessageByCsv","allowUseAbTests","allowUseHtmlPages","allowUseRemotePage","allowUseIOSCategories","allowUseGoalTracking","allowUseGetMessageLog","AllowApiGetMessageLog","allowUseIEPlatform","AllowIePlatformUsage","allowUseDebugMode","AllowDebugMode","allowUseUninstallTracking","AllowTrackUninstalls","allowUseFrequencyCapping","AllowFrequencyCapping","allowUseInbox","maxInboxTtlDays","MaxInboxTtlDays","allowUseSendExternalAndroidStatistics","allowUseGDPR","sendRateMin","MinSendRate","sendRateMax","MaxSendRate","messageHistoryStoriedPeriodInDays","MessageHistoryStorePeriod","detailActionHistoryStorePeriodInDays","DetailActionHistoryStorePeriod","allowShowDeliveryStatistics","AllowShowDeliveryStatistics","allowBestTimeToSend","AllowBestTimeToSend","allowSegmentsGroups","AllowSegmentsGroups","allowEventSegmentation","AllowEventSegmentation","allowEventsFunnel","AllowEventsFunnel","isEnabledBackup","allowChannelsSection","AllowChannelsSection","allowUseSMSPlatform","AllowCjSMS","allowUseWhatsAppPlatform","AllowWhatsApp","allowUseLinePlatform","AllowLine","allowAIAssistant","AllowAIAssistant","allowAIWalletBilling","AllowAIWalletBilling","allowUseCloudPages","AllowCloudPages","Counters","totalApplicationsCount","applicationsCount","totalApplicationGroupsCount","appGroupsCount","totalCampaignsCount","campaignsCount","totalTagsCount","tagsCount","totalFiltersCount","filtersCount","totalEventsCount","eventsCount","totalRichMediaCount","richMediaCount","totalInAppsCount","inAppsCount","totalDomainsCount","accountDomainsCount","totalMailsCount","accountMailsCount","totalEmailTemplatesCount","emailTemplatesCount","totalPresetsCount","presetsCount","totalGeozonesCount","geoZonesCount","totalDeepLinksCount","deeplinksCount","totalRssFeedsCount","rssFeedsCount","totalTestDevicesCount","testDevicesCount","User","userData","username","email","isActive","isOwner","admin","timezone","timezoneOffset","parseFloat","accountCount","accountsCount","intercomUserHash","isSubscribedForNewsletters","allowNewsletters","ReplaySubject","Set","next","lastValue","hasValue","listeners","forEach","fn","subscribe","callback","add","unsubscribe","delete","SessionStore","rpcGateway","onboardingInfo","session","counters","permissions","user","lastSession","subject","async","authInfo","Promise","all","getAuthInfo","GetAuthInfo","accounts","GetOnboardingInfo","load","updateSubject"],"ignoreList":[],"sourceRoot":""}
package/package.json CHANGED
@@ -56,5 +56,5 @@
56
56
  "node": ">=16.0.0",
57
57
  "npm": ">=7.0.0"
58
58
  },
59
- "version": "2.6.5"
59
+ "version": "2.6.7"
60
60
  }