gofelix 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.js +1 -1
- package/dist/queries/addFriend.js +1 -1
- package/dist/queries/addPendingFeedBackForm.js +1 -1
- package/dist/queries/addUserExperience.js +1 -1
- package/dist/queries/addUserMails.js +1 -1
- package/dist/queries/generateDiscountTokenFromUserAmount.js +1 -1
- package/dist/queries/getAllQRCodeUrl.js +1 -1
- package/dist/queries/getBiStats.js +1 -1
- package/dist/queries/getUserAccessTokenFromActivationCode.js +1 -1
- package/dist/queries/getUserBulkData.js +1 -1
- package/dist/queries/getUserMails.js +1 -1
- package/dist/queries/getUserProfiles.js +1 -1
- package/dist/queries/logError.js +1 -1
- package/dist/queries/redeemDiscountCode.js +1 -1
- package/dist/queries/removeFriend.js +1 -1
- package/dist/queries/removePendingFeedbackLink.js +1 -1
- package/dist/queries/removeUserMail.js +1 -1
- package/dist/queries/subscribeToCompany.js +1 -1
- package/dist/queries/unSubscribeToCompany.js +1 -1
- package/dist/queries/updateUserProfile.js +1 -1
- package/dist/queries/updateUserSettings.js +1 -1
- package/dist/queries/userApiLogout.js +1 -1
- package/dist/services/BI/companyNewsStats.js +1 -1
- package/dist/services/BI/discountStats.js +1 -1
- package/dist/services/BI/feedbackStats.js +1 -1
- package/dist/services/BI/getAllCompanyStats.js +1 -1
- package/dist/services/BI/getCompanyOverallStats.js +1 -1
- package/dist/services/BI/userExperienceStats.js +1 -1
- package/dist/services/OAuth/callback.js +1 -1
- package/dist/services/OAuth/index.js +1 -1
- package/dist/services/OAuth/logout.js +1 -1
- package/dist/services/Online/qrCode.js +1 -1
- package/dist/services/User/discountToken.js +1 -1
- package/dist/services/User/feedbackService.js +1 -1
- package/dist/services/User/friendService.js +1 -1
- package/dist/services/User/mailService.js +1 -1
- package/dist/services/User/subscribe.js +1 -1
- package/dist/services/User/userExperiences.js +1 -1
- package/dist/services/User/userProfile.js +1 -1
- package/dist/types/UserExperience.js +1 -1
- package/dist/types/commonTypes.js +1 -1
- package/dist/types/companyNewsTypes.js +1 -1
- package/dist/types/discountTypes.js +1 -1
- package/dist/types/feedbackTypes.js +1 -1
- package/dist/types/friendTypes.js +1 -1
- package/dist/types/mailTypes.js +1 -1
- package/dist/types/oAuthTypes.js +1 -1
- package/dist/types/qrCodes.js +1 -1
- package/dist/types/services/BI/companyNewsStats.d.ts +2 -2
- package/dist/types/services/BI/discountStats.d.ts +2 -2
- package/dist/types/services/BI/feedbackStats.d.ts +2 -2
- package/dist/types/services/BI/getAllCompanyStats.d.ts +2 -2
- package/dist/types/services/BI/getCompanyOverallStats.d.ts +2 -2
- package/dist/types/services/BI/userExperienceStats.d.ts +2 -2
- package/dist/types/subscribeTypes.js +1 -1
- package/dist/types/userTypes.js +1 -1
- package/dist/types/utilities/fetch.d.ts +1 -1
- package/dist/utilities/fetch.js +1 -1
- package/dist/utilities/mapper.js +1 -1
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const currentEnvironment="production",getEnvironmentSettings=()=>environment.production,environment={dev:{env:"dev",GATEWAY_URL:"http://localhost:12000/graphql"},test:{env:"test",GATEWAY_URL:"http://localhost:12000/graphql"},uat:{env:"uat",GATEWAY_URL:"http://localhost:12000/graphql"},production:{env:"production",GATEWAY_URL:"https://api.gofelix.org/prod/graphql"}};exports.default=getEnvironmentSettings();
|
package/dist/constants.js
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={appCode:'iuehfu832832a***/--++0+065dui$%^$%$%^"$^%"%eb8779r))((")(+++!!"""uiwhkwuehw)"))',hashKey:'online_hdaisudh3648766&^&*^"^723783--=-idbf2324z//zz1',graphQlCommandNames:{getBiStats:"getBiStats",removeUserMail:"removeUserMail",getAllQRCodeUrls:"getAllQRCodeUrls",redeemDiscountCode:"redeemDiscountCode",getUserAccessTokenFromActivationCode:"getUserAccessTokenFromActivationCode",getUserProfiles:"getUserProfiles",getUserBulkData:"getUserBulkData",getUserMails:"getUserMails",addUserExperience:"addUserExperience",subscribeToCompany:"subscribeToCompany",userApiLogout:"",unSubscribeToCompany:"unSubscribeToCompany",updateUserProfile:"updateUserProfile",generateDiscountTokenFromUserAmount:"generateDiscountTokenFromUserAmount",removePendingFeedbackLink:"removePendingFeedbackLink",addPendingFeedBackForm:"addPendingFeedBackForm",updateUserSettings:"updateUserSettings",addFriend:"addFriend",removeFriend:"removeFriend",addUserMails:"addUserMails",getUserApiActivationCode:"getUserApiActivationCode",logError:"logError"},getBiStatsCommands:{companyDiscountStats:"COMPANY_DISCOUNT_STATS",companyFeedbackStats:"COMPANY_FEEDBACK_STATS",companyNewsStats:"COMPANY_NEWS_STATS",companyUserExperienceStats:"USER_EXPERIENCE_STATS",companyStats:"COMPANY_STATS_OVERALL",getAllCompanyStats:"COMPANY_ALL"},app:"GoFelixApiLibrary"};
|
package/dist/index.js
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";var
|
|
11
|
+
"use strict";var _a,_b,_c,__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.online=exports.user=exports.oAuth=exports.bi=exports.config=exports.settings=void 0;const discountStats_1=require("./services/BI/discountStats"),feedbackStats_1=require("./services/BI/feedbackStats"),companyNewsStats_1=require("./services/BI/companyNewsStats"),userExperienceStats_1=require("./services/BI/userExperienceStats"),getAllCompanyStats_1=require("./services/BI/getAllCompanyStats"),getCompanyOverallStats_1=require("./services/BI/getCompanyOverallStats"),qrCode_1=require("./services/Online/qrCode"),userProfile_1=require("./services/User/userProfile"),mailService_1=require("./services/User/mailService"),userExperiences_1=require("./services/User/userExperiences"),subscribe_1=require("./services/User/subscribe"),discountToken_1=require("./services/User/discountToken"),OAuth_1=__importDefault(require("./services/OAuth")),feedbackService_1=require("./services/User/feedbackService"),friendService_1=require("./services/User/friendService");exports.settings={env:"",activateMockCalls:!1,mock:{bi:{getCompanyDiscountStatsAsync:()=>{},getCompanyFeedbackStatsAsync:()=>{},getCompanyNewsStatsAsync:()=>{},getCompanyOverallStatsAsync:()=>{},companyUserExperienceStatsAsync:()=>{}},user:{getUserProfilesAsync:()=>{},removeUserMailAsync:()=>{},getUserBulkDataAsync:()=>{},getUserMailsAsync:()=>{},addUserExperienceAsync:()=>{},subscribeToCompanyAsync:()=>{},unSubscribeToCompanyAsync:()=>{},updateUserProfileAsync:()=>{},generateDiscountTokenFromUserAmountAsync:()=>{},removePendingFeedbackLinkAsync:()=>{},addPendingFeedBackFormAsync:()=>{},updateUserSettingsAsync:()=>{},addFriendAsync:()=>{},removeFriendAsync:()=>{},addUserMailsAsync:()=>{}},online:{redeemDiscountCodeAsync:()=>{},getAllQRCodeUrlsAsync:()=>{}}}},exports.config={bi:{accountEmail:"",origin:"",apiKey:"",mockCalls:null!==(_a=exports.settings.mock.bi)&&void 0!==_a?_a:null,activateMockCalls:exports.settings.activateMockCalls},user:{accountEmail:"",origin:"",mockCalls:null!==(_b=exports.settings.mock.user)&&void 0!==_b?_b:null,activateMockCalls:exports.settings.activateMockCalls},online:{apiKey:"",origin:"",accountEmail:"",mockCalls:null!==(_c=exports.settings.mock.online)&&void 0!==_c?_c:null,activateMockCalls:exports.settings.activateMockCalls}},exports.bi={getCompanyDiscountStatsAsync:()=>(0,discountStats_1.getCompanyDiscountStatsAsync)(exports.config.bi),getCompanyFeedbackStatsAsync:()=>(0,feedbackStats_1.getCompanyFeedbackStats)(exports.config.bi),getCompanyNewsStatsAsync:()=>(0,companyNewsStats_1.getCompanyNewsStatsAsync)(exports.config.bi),getCompanyOverallStatsAsync:()=>(0,getCompanyOverallStats_1.getCompanyOverallStatsAsync)(exports.config.bi),companyUserExperienceStatsAsync:()=>(0,userExperienceStats_1.getCompanyUserExperienceStatsAsync)(exports.config.bi),getAllCompanyStatsAsync:()=>(0,getAllCompanyStats_1.getAllCompanyStatsAsync)(exports.config.bi)},exports.oAuth={expressCallback:()=>OAuth_1.default.expressCallback(exports.config.user),logoutExpressCallback:()=>OAuth_1.default.logoutExpressCallback(exports.config.user),genericCallBack:e=>OAuth_1.default.callbackAsync(Object.assign(Object.assign({},e),{userConfig:exports.config.user})),genericLogOut:e=>OAuth_1.default.userApiLogoutAsync(Object.assign(Object.assign({},e),{userConfig:exports.config.user}))},exports.user={getUserProfilesAsync:(e,s,n)=>(0,userProfile_1.getUserProfilesAsync)({index:e,value:s,accessToken:n,userConfig:exports.config.user}),removeUserMailAsync:(e,s)=>(0,mailService_1.removeUserMailAsync)({mailId:e,userConfig:exports.config.user,accessToken:s}),getUserBulkDataAsync:e=>(0,userProfile_1.getUserBulkDataAsync)(exports.config.user,e),getUserMailsAsync:e=>(0,mailService_1.getUserMailsAsync)(exports.config.user,e),addUserExperienceAsync:(e,s,n,r,o,t,c,i)=>(0,userExperiences_1.addUserExperienceAsync)({experience:e,experienceCategory:s,rate:n,updateIntervalHours:r,userConfig:exports.config.user,accessToken:o,advertId:t,branchName:c,companyName:i}),subscribeToCompanyAsync:(e,s,n)=>(0,subscribe_1.subscribeToCompanyAsync)({companyName:e,userConfig:exports.config.user,accessToken:s,branchName:n}),unSubscribeToCompanyAsync:(e,s,n)=>(0,subscribe_1.unSubscribeToCompanyAsync)({companyName:e,userConfig:exports.config.user,accessToken:s,branchName:n}),updateUserProfileAsync:(e,s)=>(0,userProfile_1.updateUserProfileAsync)({userProfile:e,userConfig:exports.config.user,accessToken:s}),generateDiscountTokenFromUserAmountAsync:(e,s,n,r)=>(0,discountToken_1.generateDiscountTokenFromUserAmountAsync)({adjustedAmount:e,companyName:s,userConfig:exports.config.user,branchName:n,accessToken:r}),removePendingFeedbackLinkAsync:(e,s)=>(0,feedbackService_1.removePendingFeedbackLinkAsync)({advertId:e,userConfig:exports.config.user,accessToken:s}),addPendingFeedBackFormAsync:(e,s,n)=>(0,feedbackService_1.addPendingFeedBackFormAsync)({advertId:e,companyName:s,userConfig:exports.config.user,accessToken:n}),updateUserSettingsAsync:(e,s)=>(0,userProfile_1.updateUserSettingsAsync)({settings:e,userConfig:exports.config.user,accessToken:s}),addFriendAsync:(e,s)=>(0,friendService_1.addFriendAsync)({friendUserName:e,userConfig:exports.config.user,accessToken:s}),removeFriendAsync:(e,s)=>(0,friendService_1.removeFriendAsync)({friendUserName:e,userConfig:exports.config.user,accessToken:s}),addUserMailsAsync:(e,s)=>(0,mailService_1.addUserMailsAsync)({mails:e,userConfig:exports.config.user,accessToken:s})},exports.online={getAllQRCodeUrlsAsync:e=>(0,qrCode_1.getAllQRCodeUrlsAsync)({onlineConfig:exports.config.online,hashVariables:e,apiKey:exports.config.online.apiKey,accountEmail:exports.config.online.accountEmail}),redeemDiscountCodeAsync:e=>(0,qrCode_1.redeemDiscountCodeAsync)({onlineConfig:exports.config.online,hashVariables:e,apiKey:exports.config.online.apiKey,accountEmail:exports.config.online.accountEmail})},exports.default={config:exports.config,bi:exports.bi,user:exports.user,online:exports.online,settings:exports.settings,oAuth:exports.oAuth};
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const addFriend="\n mutation addFriend($friendUserName: String!) {\n addFriend(friendUserName: $friendUserName) {\n isAddFriendSuccess\n friendProfile {\n profileImage\n userName\n name\n age\n location\n country\n countryCode\n gender\n aboutMe\n userExperiences {\n experience\n rateText\n categoryExperience\n id\n times\n lastUpdate\n }\n }\n hasApproved\n privateProfile\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=addFriend;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const addPendingFeedBackForm="\n mutation addPendingFeedBackForm(\n $advertId: Int!\n $companyName: String!\n ) {\n addPendingFeedBackForm(\n advertId: $advertId\n companyName: $companyName\n ) {\n pendingFeedbackAdded\n pendingFeedbackLink {\n title\n expiry\n feedbackFormOnlineUrl\n advertId\n companyName\n branchName\n id\n }\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=addPendingFeedBackForm;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const addUserExperience="\n mutation addUserExperience(\n $experience: String!\n $experienceCate: String!\n $rate: String\n $updateIntervalHours: Int\n $companyName: String\n $advertId: Int\n $branchName: String\n ) {\n addUserExperience(\n experience: $experience\n experienceCate: $experienceCate\n rate: $rate\n updateIntervalHours: $updateIntervalHours\n companyName: $companyName\n advertId: $advertId\n branchName: $branchName\n ) {\n isUserExperienceAdded\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=addUserExperience;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const addUserMails="\n mutation addUserMails($mails: [mailInput]!) {\n addUserMails(mails: $mails) {\n hasUpdated\n isSuccess\n errorMessage\n errorCode\n }\n }\n";exports.default=addUserMails;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const generateDiscountTokenFromUserAmount="\n mutation generateDiscountTokenFromUserAmount(\n $companyName: String!\n $adjustedAmount: Float\n $branchName: String\n ) {\n generateDiscountTokenFromUserAmount(\n companyName: $companyName\n adjustedAmount: $adjustedAmount\n branchName: $branchName\n ) {\n discount {\n title\n companyName\n branchName\n discountType\n amount\n status\n tagNo\n discountToken\n onlineDiscountCode\n rewardText\n fullAmountConverted\n }\n discountGenerated\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=generateDiscountTokenFromUserAmount;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const getAllQRCodeUrls="\n query getAllQrCodeUrls($hashVariables: String) {\n getAllQrCodeUrls(hashVariables: $hashVariables) {\n isSuccess\n qrUrls{\n url\n advertId\n expiry\n advertType\n branchId\n branchName\n title\n }\n errorMessage\n errorCode\n }\n}\n ";exports.default=getAllQRCodeUrls;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const goFelixBiLogin="\nquery getBiStats($email: String, $commandName: CommandNameEnum!)\n {\n getBiStats(email: $email, commandName: $commandName){\n isSuccess\n discountStats{\n companyName\n visitAdvertTotal\n advertId\n title\n visitVendorUrlTotal\n branchId\n }\n feedbackStats{\n companyName\n visitVendorTotal\n branchId\n viewedFeedbackFormTotal\n completedFeedbackFormTotal\n visitAdvertTotal\n advertId\n title\n }\n \n companyNewsStats{\n visitAdvertTotal\n advertId\n title\n companyName\n visitVendorUrlTotal\n visitVendorUrl\n branchId\n }\n companyStats{\n companyName\n discountCompanyNameSearchTotal\n feedbackCompanyNameSearchTotal\n companyNewsCompanyNameSearchTotal\n totalDiscountsRedeemed\n subscribeTotal\n unsubscribeTotal\n totalDiscountAmount\n }\n rateStats {\n companyName\n experienceCategory\n experience\n id\n userExperienceTotal\n advertId\n title\n branchId\n rateCount\n rateName\n }\n companyUserExperienceStats{\n companyName\n experienceCategory\n experience\n id\n userExperienceTotal\n advertId\n title\n branchId\n }\n errorCode\n errorMessage\n }\n }\n ";exports.default=goFelixBiLogin;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const getUserAccessTokenFromActivationCode="\n\nmutation getUserAccessTokenFromActivationCode($activationCode: String!, $codeVerifier: String!){\n getUserAccessTokenFromActivationCode(activationCode: $activationCode, codeVerifier: $codeVerifier){\n sessionGuid\n loggedIn\n isSuccess\n errorMessage\n errorCode\n }\n }\n";exports.default=getUserAccessTokenFromActivationCode;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const getUserBulkData="\n query getUserBulkData {\n getUserBulkData {\n hasUserData\n userMailDiscountAdverts {\n title\n advertImageUrl\n companyLogoUrl\n price\n onlineUrl\n discount\n branchName\n rewardText\n currency\n description\n companyName\n keyword1\n keyword2\n keyword3\n updateTimestamp\n id\n expiry\n }\n userMailFeedbacksAdverts {\n title\n advertImageUrl\n branchName\n feedbackFormOnlineUrl\n completionType\n rewardType\n onlineUrl\n id\n companyName\n updateTimestamp\n companyLogoUrl\n adminApproveApplicableToAllBranches\n makeApplicableToAllBranches\n description\n reward\n rewardText\n expiry\n }\n userMailCompanyNewsAdverts {\n title\n advertImageUrl\n companyLogoUrl\n updateTimestamp\n branchName\n onlineUrl\n description\n companyName\n id\n expiry\n refFeedbackFormTitle\n }\n userExperiences {\n experience\n rateText\n categoryExperience\n id\n lastUpdate\n times\n }\n userDiscountTokens {\n title\n companyName\n branchName\n discountToken\n discountType\n amount\n rewardText\n title\n onlineDiscountCode\n }\n userDiscountAmountList {\n companyName\n branchName\n totalAmount\n rewardText\n }\n userGiftCardAmountList {\n companyName\n giftCardVendor\n totalAmount\n rewardText\n giftCardVendorLimit\n }\n pendingFeedbackLinks {\n title\n expiry\n feedbackFormOnlineUrl\n advertId\n branchName\n companyName\n id\n }\n surveyCompletion {\n id\n completeDate\n title\n companyName\n branchName\n rewardText\n surveyType\n advertId\n }\n mails {\n title\n type\n id\n advertId\n company\n branchName\n sentDate\n read\n }\n companySubscribeList {\n companyName\n branchName\n companyLogoUrl\n }\n userProfile {\n userName\n profileImage\n name\n age\n location\n gender\n country\n countryCode\n aboutMe\n fontColor\n backgroundColor\n userExperiences {\n experience\n rateText\n categoryExperience\n id\n lastUpdate\n times\n }\n }\n friends {\n profileImage\n userName\n name\n age\n gender\n country\n countryCode\n hasApproved\n privateProfile\n location\n aboutMe\n userExperiences {\n experience\n rateText\n categoryExperience\n id\n lastUpdate\n times\n }\n }\n friendRequests {\n profileImage\n userName\n name\n age\n gender\n country\n countryCode\n hasApproved\n privateProfile\n location\n aboutMe\n userExperiences {\n experience\n rateText\n categoryExperience\n id\n lastUpdate\n times\n }\n }\n awaitingMyApproval {\n profileImage\n userName\n name\n age\n gender\n country\n countryCode\n hasApproved\n privateProfile\n location\n aboutMe\n userExperiences {\n experience\n rateText\n categoryExperience\n id\n lastUpdate\n times\n }\n }\n userSettings {\n showBreakingAlerts\n companyNewsNotifications\n feedbackNotifications\n discountsNotifications\n allowFriendsNotification\n privateProfile\n }\n goFelixDiscountVoucherVendors\n isSuccess\n errorCode\n errorMessage\n }\n }\n\n";exports.default=getUserBulkData;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const getUserMails="\n\nquery getUserMails{\n getUserMails{\n mails{\n id\n title\n company\n type\n advertId\n read\n sentDate\n branchName\n }\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=getUserMails;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const getUserProfiles="\n query getUserProfiles($index: Int!, $value: String!) {\n getUserProfiles(index: $index, value: $value) {\n hasUserProfiles\n userProfiles {\n userName\n profileImage\n name\n age\n location\n gender\n country\n countryCode\n backgroundColor\n fontColor\n aboutMe\n userExperiences {\n experience\n rateText\n categoryExperience\n id\n lastUpdate\n times\n }\n }\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=getUserProfiles;
|
package/dist/queries/logError.js
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const logError="\n mutation logError($errorDetails: ErrorDetailsInput!){\n logError(errorDetails: $errorDetails){\n isLogged\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=logError;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const redeemDiscountCode="\n query redeemDiscountToken(\n $discountToken: String\n $discountCode: String\n $customerUserName: String\n $discountInputType: DiscountInputType\n $hashVariables: String\n $discountedAmount: Float\n ) {\n redeemDiscountToken(\n discountToken: $discountToken\n discountCode: $discountCode\n customerUserName: $customerUserName\n discountInputType: $discountInputType\n hashVariables: $hashVariables\n discountedAmount: $discountedAmount\n ) {\n isSuccess\n discountTokenHasBeenRedeemed\n amount\n rewardText\n errorCode\n errorMessage\n }\n }\n ";exports.default=redeemDiscountCode;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const removeFriend="\n mutation removeFriend($friendUserName: String!) {\n removeFriend(friendUserName: $friendUserName) {\n isRemoveFriendSuccess\n isSuccess\n errorMessage\n errorCode\n }\n }\n";exports.default=removeFriend;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const removePendingFeedbackLink="\n mutation removePendingFeedbackLink($advertId: Int!) {\n removePendingFeedbackLink(advertId: $advertId) {\n pendingFeedbackRemoved\n isSuccess\n errorMessage\n errorCode\n }\n }\n";exports.default=removePendingFeedbackLink;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const removeUserMail="\nquery removeUserMail($mailId: Int!) {\n removeUserMail(mailId: $mailId) {\n mailRemoved\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=removeUserMail;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const subscribeToCompany="\n mutation subscribeToCompany(\n $companyName: String!\n $branchName: String\n $expoToken: String\n ) {\n subscribeToCompany(\n companyName: $companyName\n branchName: $branchName\n expoToken: $expoToken\n ) {\n isSubscribe\n subscribedCompany{\n companyName: String\n branchName: String\n companyLogoUrl: String\n }\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=subscribeToCompany;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const unSubscribeToCompany="\n mutation unSubscribeToCompany(\n $companyName: String!\n $branchName: String\n $expoToken: String\n ) {\n unSubscribeToCompany(\n companyName: $companyName\n branchName: $branchName\n expoToken: $expoToken\n ) {\n isUnSubscribe\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=unSubscribeToCompany;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const updateUserProfile="\n mutation updateUserProfile ($userProfileInput: userProfileInput!){\n updateUserProfile(userProfile: $userProfileInput){\n isUserProfileUpdated\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=updateUserProfile;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const updateUserSettings="\n mutation updateUserSettings($settings: userSettingsInput!) {\n updateUserSettings(settings: $settings) {\n hasUpdatedSuccess\n isSuccess\n errorCode\n errorMessage\n }\n }\n";exports.default=updateUserSettings;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const userApiLogout="\n mutation userApiLogout {\n userApiLogout {\n hasLoggedOut\n isSuccess\n errorMessage\n errorCode\n }\n }\n";exports.default=userApiLogout;
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";var
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,a,s){return new(a||(a=Promise))(function(o,r){function i(e){try{c(s.next(e))}catch(e){r(e)}}function n(e){try{c(s.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof a?t:new a(function(e){e(t)})).then(i,n)}c((s=s.apply(e,t||[])).next())})},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getCompanyNewsStatsAsync=void 0;const mapper_1=require("../../utilities/mapper"),logError_1=__importDefault(require("../../queries/logError")),getBiStats_1=__importDefault(require("../../queries/getBiStats")),fetch_1=__importDefault(require("../../utilities/fetch")),constants_1=__importDefault(require("../../constants")),config_1=__importDefault(require("../../config")),getCompanyNewsStatsAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const t={isSuccess:!1,errorMessage:"",errorCode:"",companyNewsStats:null};let a=null;try{return e.apiKey?(e.activateMockCalls?e.mockCalls.getCompanyNewsStatsAsync?a=e.mockCalls.getCompanyNewsStatsAsync():t.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyNewsStats":a=yield(0,fetch_1.default)(getBiStats_1.default,{email:e.accountEmail,commandName:constants_1.default.getBiStatsCommands.companyNewsStats},constants_1.default.graphQlCommandNames.getBiStats,{accountEmail:e.accountEmail,origin:e.origin,apiKey:e.apiKey},"go_felix_bi_api","getCompanyNewsStatsAsync"),Object.keys(a.data.getBiStats).forEach(e=>{(0,mapper_1.MapToResponseObj)(t,a.data.getBiStats,e)}),Promise.resolve(t)):(t.errorMessage="Request Failed, Please make sure you have enter the licenseKey",Promise.resolve(t))}catch(a){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:e.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(a),argumentsPassedIn:JSON.stringify(e),codeLocation:"getCompanyNewsStatsAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:e.accountEmail,origin:e.origin,apiKey:e.apiKey},"go_felix_bi_api"),t.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(t)}});exports.getCompanyNewsStatsAsync=getCompanyNewsStatsAsync,exports.default={getCompanyNewsStatsAsync:exports.getCompanyNewsStatsAsync};
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(t,e,a,o){return new(a||(a=Promise))(function(s,i){function n(t){try{c(o.next(t))}catch(t){i(t)}}function r(t){try{c(o.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof a?e:new a(function(t){t(e)})).then(n,r)}c((o=o.apply(t,e||[])).next())})},__importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getCompanyDiscountStatsAsync=void 0;const mapper_1=require("../../utilities/mapper"),logError_1=__importDefault(require("../../queries/logError")),getBiStats_1=__importDefault(require("../../queries/getBiStats")),fetch_1=__importDefault(require("../../utilities/fetch")),constants_1=__importDefault(require("../../constants")),config_1=__importDefault(require("../../config")),getCompanyDiscountStatsAsync=t=>__awaiter(void 0,void 0,void 0,function*(){const e={isSuccess:!1,errorMessage:"",errorCode:"",discountStats:null};let a=null;try{return t.apiKey?(t.activateMockCalls?t.mockCalls.getCompanyDiscountStatsAsync?a=t.mockCalls.getCompanyDiscountStatsAsync():e.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyDiscountStats":a=yield(0,fetch_1.default)(getBiStats_1.default,{email:t.accountEmail,commandName:constants_1.default.getBiStatsCommands.companyDiscountStats},constants_1.default.graphQlCommandNames.getBiStats,{accountEmail:t.accountEmail,origin:t.origin,apiKey:t.apiKey},"go_felix_bi_api","getCompanyDiscountStatsAsync"),Object.keys(a.data.getBiStats).forEach(t=>{(0,mapper_1.MapToResponseObj)(e,a.data.getBiStats,t)}),Promise.resolve(e)):(e.errorMessage="Request Failed, Please make sure you have enter the licenseKey",Promise.resolve(e))}catch(a){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:t.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(a),argumentsPassedIn:JSON.stringify(t),codeLocation:"getCompanyDiscountStatsAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:t.accountEmail,origin:t.origin,apiKey:t.apiKey},"go_felix_bi_api"),e.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(e)}});exports.getCompanyDiscountStatsAsync=getCompanyDiscountStatsAsync,exports.default={getCompanyDiscountStatsAsync:exports.getCompanyDiscountStatsAsync};
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";var
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,a,o){return new(a||(a=Promise))(function(r,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function n(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof a?t:new a(function(e){e(t)})).then(s,n)}c((o=o.apply(e,t||[])).next())})},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getCompanyFeedbackStats=void 0;const mapper_1=require("../../utilities/mapper"),logError_1=__importDefault(require("../../queries/logError")),getBiStats_1=__importDefault(require("../../queries/getBiStats")),fetch_1=__importDefault(require("../../utilities/fetch")),constants_1=__importDefault(require("../../constants")),config_1=__importDefault(require("../../config")),getCompanyFeedbackStats=e=>__awaiter(void 0,void 0,void 0,function*(){const t={isSuccess:!1,errorMessage:"",errorCode:"",feedbackStats:null};try{if(!e.apiKey)return t.errorMessage="Request Failed, Please make sure you have enter the licenseKey",Promise.resolve(t);let a=null;return e.activateMockCalls?e.mockCalls.getCompanyFeedbackStatsAsync?a=e.mockCalls.getCompanyFeedbackStatsAsync():t.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyFeedbackStats":a=yield(0,fetch_1.default)(getBiStats_1.default,{email:e.accountEmail,commandName:constants_1.default.getBiStatsCommands.companyFeedbackStats},constants_1.default.graphQlCommandNames.getBiStats,{accountEmail:e.accountEmail,origin:e.origin,apiKey:e.apiKey},"go_felix_bi_api","getCompanyFeedbackStats"),Object.keys(a.data.getBiStats).forEach(e=>{(0,mapper_1.MapToResponseObj)(t,a.data.getBiStats,e)}),Promise.resolve(t)}catch(a){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:e.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(a),argumentsPassedIn:JSON.stringify(e),codeLocation:"getCompanyFeedbackStatsAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:e.accountEmail,origin:e.origin,apiKey:e.apiKey},"go_felix_bi_api"),t.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(t)}});exports.getCompanyFeedbackStats=getCompanyFeedbackStats,exports.default={getCompanyFeedbackStats:exports.getCompanyFeedbackStats};
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";var
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(t,e,a,o){return new(a||(a=Promise))(function(s,n){function r(t){try{l(o.next(t))}catch(t){n(t)}}function i(t){try{l(o.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof a?e:new a(function(t){t(e)})).then(r,i)}l((o=o.apply(t,e||[])).next())})},__importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getAllCompanyStatsAsync=void 0;const mapper_1=require("../../utilities/mapper"),logError_1=__importDefault(require("../../queries/logError")),getBiStats_1=__importDefault(require("../../queries/getBiStats")),fetch_1=__importDefault(require("../../utilities/fetch")),constants_1=__importDefault(require("../../constants")),config_1=__importDefault(require("../../config")),getAllCompanyStatsAsync=t=>__awaiter(void 0,void 0,void 0,function*(){var e,a;const o={isSuccess:!1,errorMessage:"",errorCode:"",companyUserExperienceStats:null,feedbackStats:null,companyStats:null,companyNewsStats:null,discountStats:null};let s={};try{return t.apiKey?(t.activateMockCalls?(null===(e=null==t?void 0:t.mockCalls)||void 0===e?void 0:e.getCompanyNewsStatsAsync)?s=null===(a=t.mockCalls)||void 0===a?void 0:a.getCompanyNewsStatsAsync():o.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyUserExperienceStats":s=yield(0,fetch_1.default)(getBiStats_1.default,{email:t.accountEmail,commandName:constants_1.default.getBiStatsCommands.getAllCompanyStats},constants_1.default.graphQlCommandNames.getBiStats,{accountEmail:t.accountEmail,origin:t.origin,apiKey:t.apiKey},"go_felix_bi_api","getAllCompanyStatsAsync"),Object.keys(s.data.getBiStats).forEach(t=>{(0,mapper_1.MapToResponseObj)(o,s.data.getBiStats,t)}),Promise.resolve(o)):(o.errorMessage="Request Failed, Please make sure you have enter the licenseKey",Promise.resolve(o))}catch(e){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:t.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(e),argumentsPassedIn:JSON.stringify(t),codeLocation:"getAllCompanyStatsAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:t.accountEmail,origin:t.origin,apiKey:t.apiKey},"go_felix_bi_api"),o.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(o)}});exports.getAllCompanyStatsAsync=getAllCompanyStatsAsync,exports.default={getAllCompanyStatsAsync:exports.getAllCompanyStatsAsync};
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";var
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,a,r){return new(a||(a=Promise))(function(o,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function n(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof a?t:new a(function(e){e(t)})).then(i,n)}l((r=r.apply(e,t||[])).next())})},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getCompanyOverallStatsAsync=void 0;const mapper_1=require("../../utilities/mapper"),logError_1=__importDefault(require("../../queries/logError")),getBiStats_1=__importDefault(require("../../queries/getBiStats")),fetch_1=__importDefault(require("../../utilities/fetch")),constants_1=__importDefault(require("../../constants")),config_1=__importDefault(require("../../config")),getCompanyOverallStatsAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const t={isSuccess:!1,errorMessage:"",errorCode:"",companyStats:null};let a=null;try{return e.apiKey?(e.activateMockCalls?e.mockCalls.getCompanyOverallStatsAsync?a=e.mockCalls.getCompanyOverallStatsAsync():t.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyOverallStats":a=yield(0,fetch_1.default)(getBiStats_1.default,{email:e.accountEmail,commandName:constants_1.default.getBiStatsCommands.companyStats},constants_1.default.graphQlCommandNames.getBiStats,{accountEmail:e.accountEmail,origin:e.origin,apiKey:e.apiKey},"go_felix_bi_api","getCompanyOverallStatsAsync"),Object.keys(a.data.getBiStats).forEach(e=>{(0,mapper_1.MapToResponseObj)(t,a.data.getBiStats,e)}),Promise.resolve(t)):(t.errorMessage="Request Failed, Please make sure you have enter the licenseKey",Promise.resolve(t))}catch(a){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:e.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(a),argumentsPassedIn:JSON.stringify(e),codeLocation:"getCompanyOverallStatsAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:e.accountEmail,origin:e.origin,apiKey:e.apiKey},"go_felix_bi_api"),t.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(t)}});exports.getCompanyOverallStatsAsync=getCompanyOverallStatsAsync,exports.default={getCompanyOverallStatsAsync:exports.getCompanyOverallStatsAsync};
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";var
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,a,r){return new(a||(a=Promise))(function(s,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function n(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a(function(e){e(t)})).then(o,n)}c((r=r.apply(e,t||[])).next())})},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getCompanyUserExperienceStatsAsync=void 0;const mapper_1=require("../../utilities/mapper"),logError_1=__importDefault(require("../../queries/logError")),getBiStats_1=__importDefault(require("../../queries/getBiStats")),fetch_1=__importDefault(require("../../utilities/fetch")),constants_1=__importDefault(require("../../constants")),config_1=__importDefault(require("../../config")),getCompanyUserExperienceStatsAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const t={isSuccess:!1,errorMessage:"",errorCode:"",companyUserExperienceStats:null};let a=null;try{return e.apiKey?(e.activateMockCalls?e.mockCalls.companyUserExperienceStatsAsync?a=e.mockCalls.companyUserExperienceStatsAsync():t.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getCompanyUserExperienceStats":a=yield(0,fetch_1.default)(getBiStats_1.default,{email:e.accountEmail,commandName:constants_1.default.getBiStatsCommands.companyUserExperienceStats},constants_1.default.graphQlCommandNames.getBiStats,{accountEmail:e.accountEmail,origin:e.origin,apiKey:e.apiKey},"go_felix_bi_api","getCompanyUserExperienceStatsAsync"),Object.keys(a.data.getBiStats).forEach(e=>{(0,mapper_1.MapToResponseObj)(t,a.data.getBiStats,e)}),Promise.resolve(t)):(t.errorMessage="Request Failed, Please make sure you have enter the licenseKey",Promise.resolve(t))}catch(a){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:e.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(a),argumentsPassedIn:JSON.stringify(e),codeLocation:"getCompanyUserExperienceStats",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:e.accountEmail,origin:e.origin,apiKey:e.apiKey},"go_felix_bi_api"),t.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(t)}});exports.getCompanyUserExperienceStatsAsync=getCompanyUserExperienceStatsAsync,exports.default={getCompanyUserExperienceStatsAsync:exports.getCompanyUserExperienceStatsAsync};
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";var
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,o,a){return new(o||(o=Promise))(function(r,i){function s(e){try{n(a.next(e))}catch(e){i(e)}}function c(e){try{n(a.throw(e))}catch(e){i(e)}}function n(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o(function(e){e(t)})).then(s,c)}n((a=a.apply(e,t||[])).next())})},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.oauthCallbackAsync=void 0;const logError_1=__importDefault(require("../../queries/logError")),fetch_1=__importDefault(require("../../utilities/fetch")),getUserAccessTokenFromActivationCode_1=__importDefault(require("../../queries/getUserAccessTokenFromActivationCode")),constants_1=__importDefault(require("../../constants")),config_1=__importDefault(require("../../config")),oauthCallbackAsync=e=>__awaiter(void 0,void 0,void 0,function*(){var t;const o={isSuccess:!1,errorMessage:"",errorCode:"",sessionGuid:""};let a={data:{getUserAccessTokenFromActivationCode:null}};const{activationCode:r,codeVerifier:i,userConfig:s}=e;try{return r&&i&&s?(s.activateMockCalls?(null===(t=s.mockCalls)||void 0===t?void 0:t.oauthCallbackAsync)?a=yield s.mockCalls.oauthCallbackAsync():o.errorMessage="Request Failed, you set activateMockCalls to true, but you have not added a mock function for oauthCallbackAsync":a=yield(0,fetch_1.default)(getUserAccessTokenFromActivationCode_1.default,{activationCode:r,codeVerifier:i},constants_1.default.graphQlCommandNames.getUserAccessTokenFromActivationCode,{origin:s.origin,accountEmail:s.accountEmail},"go_felix_user_api"),Object.keys(a.data.getUserAccessTokenFromActivationCode).forEach(e=>{o[e]=a.data.getUserAccessTokenFromActivationCode[e]}),o.isSuccess||(o.errorMessage=o.errorMessage||"Unable to retrieve access token"),o):(o.errorMessage="Request Failed, please make sure activationCode, codeVerifier and userConfig are supplied",o)}catch(t){return yield(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:(null==s?void 0:s.accountEmail)||"",app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(t),argumentsPassedIn:JSON.stringify(e),codeLocation:"gofelix, service: oauthCallbackAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:(null==s?void 0:s.accountEmail)||"",origin:(null==s?void 0:s.origin)||"",token:""},"go_felix_user_api"),o.errorMessage="Unable to process this request at this time, please try again later",o}});exports.oauthCallbackAsync=oauthCallbackAsync,exports.default={oauthCallbackAsync:exports.oauthCallbackAsync};
|