gofelix 1.2.0 → 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/README.md +5 -0
- package/dist/config.js +11 -1
- package/dist/constants.js +11 -1
- package/dist/index.js +11 -1
- package/dist/queries/addFriend.js +11 -1
- package/dist/queries/addPendingFeedBackForm.js +11 -1
- package/dist/queries/addUserExperience.js +11 -1
- package/dist/queries/addUserMails.js +11 -1
- package/dist/queries/generateDiscountTokenFromUserAmount.js +11 -1
- package/dist/queries/getAllQRCodeUrl.js +11 -1
- package/dist/queries/getBiStats.js +11 -1
- package/dist/queries/getUserAccessTokenFromActivationCode.js +11 -1
- package/dist/queries/getUserBulkData.js +11 -1
- package/dist/queries/getUserMails.js +11 -1
- package/dist/queries/getUserProfiles.js +11 -1
- package/dist/queries/logError.js +11 -1
- package/dist/queries/redeemDiscountCode.js +11 -1
- package/dist/queries/removeFriend.js +11 -1
- package/dist/queries/removePendingFeedbackLink.js +11 -1
- package/dist/queries/removeUserMail.js +11 -1
- package/dist/queries/subscribeToCompany.js +11 -1
- package/dist/queries/unSubscribeToCompany.js +11 -1
- package/dist/queries/updateUserProfile.js +11 -1
- package/dist/queries/updateUserSettings.js +11 -1
- package/dist/queries/userApiLogout.js +11 -1
- package/dist/services/BI/companyNewsStats.js +11 -1
- package/dist/services/BI/discountStats.js +11 -1
- package/dist/services/BI/feedbackStats.js +11 -1
- package/dist/services/BI/getAllCompanyStats.js +11 -1
- package/dist/services/BI/getCompanyOverallStats.js +11 -1
- package/dist/services/BI/userExperienceStats.js +11 -1
- package/dist/services/OAuth/callback.js +11 -1
- package/dist/services/OAuth/index.js +11 -1
- package/dist/services/OAuth/logout.js +11 -1
- package/dist/services/Online/qrCode.js +11 -1
- package/dist/services/User/discountToken.js +11 -1
- package/dist/services/User/feedbackService.js +11 -1
- package/dist/services/User/friendService.js +11 -1
- package/dist/services/User/mailService.js +11 -1
- package/dist/services/User/subscribe.js +11 -1
- package/dist/services/User/userExperiences.js +11 -1
- package/dist/services/User/userProfile.js +11 -1
- package/dist/types/UserExperience.js +11 -1
- package/dist/types/commonTypes.js +11 -1
- package/dist/types/companyNewsTypes.js +11 -1
- package/dist/types/discountTypes.js +11 -1
- package/dist/types/feedbackTypes.js +11 -1
- package/dist/types/friendTypes.js +11 -1
- package/dist/types/mailTypes.js +11 -1
- package/dist/types/oAuthTypes.js +11 -1
- package/dist/types/qrCodes.js +11 -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 +11 -1
- package/dist/types/userTypes.js +11 -1
- package/dist/types/utilities/fetch.d.ts +1 -1
- package/dist/utilities/fetch.js +11 -1
- package/dist/utilities/mapper.js +11 -1
- package/package.json +1 -1
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,o,a,s){return new(a||(a=Promise))(function(r,n){function t(e){try{c(s.next(e))}catch(e){n(e)}}function i(e){try{c(s.throw(e))}catch(e){n(e)}}function c(e){var o;e.done?r(e.value):(o=e.value,o instanceof a?o:new a(function(e){e(o)})).then(t,i)}c((s=s.apply(e,o||[])).next())})},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.unSubscribeToCompanyAsync=exports.subscribeToCompanyAsync=void 0;const mapper_1=require("../../utilities/mapper"),logError_1=__importDefault(require("../../queries/logError")),fetch_1=__importDefault(require("../../utilities/fetch")),subscribeToCompany_1=__importDefault(require("../../queries/subscribeToCompany")),unSubscribeToCompany_1=__importDefault(require("../../queries/unSubscribeToCompany")),constants_1=__importDefault(require("../../constants")),config_1=__importDefault(require("../../config")),subscribeToCompanyAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const o={isSuccess:!1,errorMessage:"",errorCode:"",isSubscribe:!1};let a={};const{companyName:s,userConfig:r,accessToken:n,branchName:t}=e;try{return e&&s?(r.activateMockCalls?r.mockCalls.subscribeToCompanyAsync?a=r.mockCalls.subscribeToCompanyAsync():o.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for subscribeToCompany":a=yield(0,fetch_1.default)(subscribeToCompany_1.default,{companyName:s,branchName:t,expoToken:""},constants_1.default.graphQlCommandNames.subscribeToCompany,{accountEmail:r.accountEmail,origin:r.origin,token:e.accessToken},"go_felix_user_api"),Object.keys(a).forEach(e=>{(0,mapper_1.MapToResponseObj)(o,a,e)}),Promise.resolve(o)):(o.errorMessage="Request Failed, Please make sure you have entered all the method arguments and accessToken",Promise.resolve(o))}catch(a){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:r.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(a),argumentsPassedIn:JSON.stringify(e),codeLocation:"gofelix, service: subscribeToCompanyAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:r.accountEmail,origin:r.origin,token:n},"go_felix_user_api"),o.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(o)}});exports.subscribeToCompanyAsync=subscribeToCompanyAsync;const unSubscribeToCompanyAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const o={isSuccess:!1,errorMessage:"",errorCode:"",isUnSubscribe:!1};let a={};const{companyName:s,userConfig:r,accessToken:n,branchName:t}=e;try{return e&&s?(r.activateMockCalls?r.mockCalls.unSubscribeToCompanyAsync?a=r.mockCalls.unSubscribeToCompanyAsync():o.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for unSubscribeToCompany":a=yield(0,fetch_1.default)(unSubscribeToCompany_1.default,{companyName:s,branchName:t,expoToken:""},constants_1.default.graphQlCommandNames.unSubscribeToCompany,{accountEmail:r.accountEmail,origin:r.origin,token:e.accessToken},"go_felix_user_api"),Object.keys(a).forEach(e=>{(0,mapper_1.MapToResponseObj)(o,a,e)}),Promise.resolve(o)):(o.errorMessage="Request Failed, Please make sure you have entered all the method arguments and accessToken",Promise.resolve(o))}catch(a){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:r.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(a),argumentsPassedIn:JSON.stringify(e),codeLocation:"gofelix, service: unSubscribeToCompanyAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:r.accountEmail,origin:r.origin,token:n},"go_felix_user_api"),o.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(o)}});exports.unSubscribeToCompanyAsync=unSubscribeToCompanyAsync,exports.default={subscribeToCompanyAsync:exports.subscribeToCompanyAsync,unSubscribeToCompanyAsync:exports.unSubscribeToCompanyAsync};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,r,a,t){return new(a||(a=Promise))(function(s,n){function o(e){try{c(t.next(e))}catch(e){n(e)}}function i(e){try{c(t.throw(e))}catch(e){n(e)}}function c(e){var r;e.done?s(e.value):(r=e.value,r instanceof a?r:new a(function(e){e(r)})).then(o,i)}c((t=t.apply(e,r||[])).next())})},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.addUserExperienceAsync=void 0;const mapper_1=require("../../utilities/mapper"),logError_1=__importDefault(require("../../queries/logError")),fetch_1=__importDefault(require("../../utilities/fetch")),addUserExperience_1=__importDefault(require("../../queries/addUserExperience")),constants_1=__importDefault(require("../../constants")),config_1=__importDefault(require("../../config")),addUserExperienceAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const r={isSuccess:!1,errorMessage:"",errorCode:"",isUserExperienceAdded:!1};let a={};const{experience:t,experienceCategory:s,rate:n,updateIntervalHours:o,userConfig:i,accessToken:c,companyName:d,advertId:u,branchName:l}=e;try{return e&&i?(i.activateMockCalls?i.mockCalls.addUserExperienceAsync?a=i.mockCalls.addUserExperienceAsync():r.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for addUserExperience":a=yield(0,fetch_1.default)(addUserExperience_1.default,{experience:t,experienceCate:s,rate:n,updateIntervalHours:o,companyName:d,advertId:u,branchName:l},constants_1.default.graphQlCommandNames.addUserExperience,{accountEmail:i.accountEmail,origin:i.origin,token:e.accessToken},"go_felix_user_api"),Object.keys(a).forEach(e=>{(0,mapper_1.MapToResponseObj)(r,a,e)}),Promise.resolve(r)):(r.errorMessage="Request Failed, Please make sure you have entered all the method arguments and accessToken",Promise.resolve(r))}catch(a){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:i.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(a),argumentsPassedIn:JSON.stringify(e),codeLocation:"gofelix, service: addUserExperienceAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:i.accountEmail,origin:i.origin,token:c},"go_felix_user_api"),r.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(r)}});exports.addUserExperienceAsync=addUserExperienceAsync,exports.default={addUserExperienceAsync:exports.addUserExperienceAsync};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
'use strict';const a40_0x4fd776=a40_0x4654;(function(_0x2293f4,_0x4cfa99){const _0x27d03b=a40_0x4654,_0x342d81=_0x2293f4();while(!![]){try{const _0x105624=-parseInt(_0x27d03b(0x139))/0x1*(-parseInt(_0x27d03b(0x13b))/0x2)+-parseInt(_0x27d03b(0x122))/0x3+parseInt(_0x27d03b(0x10d))/0x4+-parseInt(_0x27d03b(0x131))/0x5*(parseInt(_0x27d03b(0x130))/0x6)+parseInt(_0x27d03b(0x115))/0x7*(-parseInt(_0x27d03b(0x10f))/0x8)+parseInt(_0x27d03b(0x123))/0x9*(-parseInt(_0x27d03b(0x120))/0xa)+parseInt(_0x27d03b(0xea))/0xb*(parseInt(_0x27d03b(0xf8))/0xc);if(_0x105624===_0x4cfa99)break;else _0x342d81['push'](_0x342d81['shift']());}catch(_0x33c792){_0x342d81['push'](_0x342d81['shift']());}}}(a40_0x1f7b,0xeaa87));var __awaiter=this&&this[a40_0x4fd776(0x10e)]||function(_0x42283b,_0x56789b,_0x173d81,_0x22dbc1){const _0x2884a9={'XqSTd':function(_0x53b01b,_0x3c2f9a){return _0x53b01b(_0x3c2f9a);},'ROPPI':function(_0x3c7c33,_0x508b1c){return _0x3c7c33(_0x508b1c);},'WQOop':function(_0x16eb0a,_0x14df7d){return _0x16eb0a(_0x14df7d);},'IsaDI':function(_0x265126,_0x2a9cae){return _0x265126 instanceof _0x2a9cae;}};return new(_0x173d81||(_0x173d81=Promise))(function(_0x2418ae,_0x21df8c){const _0x55e020=a40_0x4654,_0x9e8b37={'Ditfp':function(_0x3aca85,_0x3d0889){return _0x2884a9['ROPPI'](_0x3aca85,_0x3d0889);},'GxEQP':function(_0x4f943a,_0x33d765){return _0x2884a9['WQOop'](_0x4f943a,_0x33d765);},'DXcfr':function(_0x32fa19,_0x581acc){const _0x27ce0c=a40_0x4654;return _0x2884a9[_0x27ce0c(0x12b)](_0x32fa19,_0x581acc);}};function _0x26efc3(_0x33370d){const _0x2f2253=a40_0x4654;try{_0x9e8b37[_0x2f2253(0x113)](_0x3fbec2,_0x22dbc1[_0x2f2253(0x129)](_0x33370d));}catch(_0x4868d0){_0x9e8b37[_0x2f2253(0x113)](_0x21df8c,_0x4868d0);}}function _0x5457ed(_0x926efe){const _0x2d4022=a40_0x4654;try{_0x3fbec2(_0x22dbc1[_0x2d4022(0x106)](_0x926efe));}catch(_0xd5192e){_0x2884a9[_0x2d4022(0x116)](_0x21df8c,_0xd5192e);}}function _0x3fbec2(_0x4cfc64){const _0x2f6fda=a40_0x4654,_0x834bba={'yOeci':function(_0x319284,_0xc43d5b){const _0x26ba6c=a40_0x4654;return _0x9e8b37[_0x26ba6c(0xf3)](_0x319284,_0xc43d5b);}};var _0x1d1bd2;_0x4cfc64[_0x2f6fda(0x117)]?_0x9e8b37[_0x2f6fda(0xf3)](_0x2418ae,_0x4cfc64[_0x2f6fda(0xfb)]):(_0x1d1bd2=_0x4cfc64[_0x2f6fda(0xfb)],_0x9e8b37[_0x2f6fda(0x136)](_0x1d1bd2,_0x173d81)?_0x1d1bd2:new _0x173d81(function(_0x5a5570){_0x834bba['yOeci'](_0x5a5570,_0x1d1bd2);}))[_0x2f6fda(0xe9)](_0x26efc3,_0x5457ed);}_0x2884a9[_0x55e020(0x116)](_0x3fbec2,(_0x22dbc1=_0x22dbc1[_0x55e020(0x11e)](_0x42283b,_0x56789b||[]))[_0x55e020(0x129)]());});},__importDefault=this&&this[a40_0x4fd776(0x102)]||function(_0x463c0e){const _0x5434ad=a40_0x4fd776;return _0x463c0e&&_0x463c0e[_0x5434ad(0x11a)]?_0x463c0e:{'default':_0x463c0e};};Object[a40_0x4fd776(0xfa)](exports,a40_0x4fd776(0x11a),{'value':!0x0}),exports[a40_0x4fd776(0x128)]=exports[a40_0x4fd776(0xf0)]=exports[a40_0x4fd776(0x109)]=exports[a40_0x4fd776(0x125)]=void 0x0;const mapper_1=require(a40_0x4fd776(0xf4)),logError_1=__importDefault(require(a40_0x4fd776(0x107))),fetch_1=__importDefault(require('../../utilities/fetch')),getUserProfiles_1=__importDefault(require(a40_0x4fd776(0x101))),updateUserProfile_1=__importDefault(require(a40_0x4fd776(0x10b))),getUserBulkData_1=__importDefault(require(a40_0x4fd776(0xec))),updateUserSettings_1=__importDefault(require(a40_0x4fd776(0x138))),constants_1=__importDefault(require(a40_0x4fd776(0xf5))),config_1=__importDefault(require('../../config')),getUserProfilesAsync=_0x175cce=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const _0x50c3dc=a40_0x4fd776,_0x9f7e60={'FzMbu':function(_0xb1bda8,_0x1569eb){return _0xb1bda8&&_0x1569eb;},'xWQox':_0x50c3dc(0x110),'EuydL':_0x50c3dc(0x12f),'MFudq':'gofelix,\x20service:\x20getUserProfilesAsync','cBYNX':_0x50c3dc(0xfc),'pIlIA':_0x50c3dc(0x133)},_0x2f6a8d={'isSuccess':!0x1,'errorMessage':'','errorCode':'','hasUserProfiles':!0x1,'userProfiles':[]};let _0x1e250b={};const {index:_0x4c6691=0x0,value:_0x2fb8db,accessToken:_0x40d8cf,userConfig:_0x15df41}=_0x175cce;try{return _0x9f7e60[_0x50c3dc(0xff)](_0x2fb8db,_0x40d8cf)?(_0x15df41['activateMockCalls']?_0x15df41[_0x50c3dc(0xfe)]['getUserProfilesAsync']?_0x1e250b=_0x15df41[_0x50c3dc(0xfe)][_0x50c3dc(0x125)]():_0x2f6a8d[_0x50c3dc(0x100)]=_0x9f7e60['xWQox']:_0x1e250b=yield(0x0,fetch_1['default'])(getUserProfiles_1['default'],{'index':_0x4c6691,'value':_0x2fb8db},constants_1[_0x50c3dc(0x111)][_0x50c3dc(0xf7)][_0x50c3dc(0x11d)],{'accountEmail':_0x15df41['accountEmail'],'origin':_0x15df41[_0x50c3dc(0x134)],'token':_0x175cce[_0x50c3dc(0x104)]},_0x50c3dc(0xfc)),Object[_0x50c3dc(0x10a)](_0x1e250b)[_0x50c3dc(0xf1)](_0x2598d4=>{const _0x52d7c1=_0x50c3dc;(0x0,mapper_1[_0x52d7c1(0x132)])(_0x2f6a8d,_0x1e250b,_0x2598d4);}),Promise[_0x50c3dc(0xf2)](_0x2f6a8d)):(_0x2f6a8d[_0x50c3dc(0x100)]=_0x9f7e60[_0x50c3dc(0xfd)],Promise[_0x50c3dc(0xf2)](_0x2f6a8d));}catch(_0x7db532){return(0x0,fetch_1[_0x50c3dc(0x111)])(logError_1[_0x50c3dc(0x111)],{'errorDetails':{'userName':'','email':_0x15df41[_0x50c3dc(0x119)],'app':constants_1['default'][_0x50c3dc(0x118)],'env':JSON[_0x50c3dc(0xf6)](config_1[_0x50c3dc(0x111)]),'error':JSON[_0x50c3dc(0xf6)](_0x7db532),'argumentsPassedIn':JSON['stringify'](_0x175cce),'codeLocation':_0x9f7e60[_0x50c3dc(0x112)],'appCode':constants_1[_0x50c3dc(0x111)][_0x50c3dc(0x105)]}},constants_1[_0x50c3dc(0x111)]['graphQlCommandNames']['logError'],{'accountEmail':_0x15df41[_0x50c3dc(0x119)],'origin':_0x15df41[_0x50c3dc(0x134)],'token':_0x40d8cf},_0x9f7e60['cBYNX']),_0x2f6a8d['errorMessage']=_0x9f7e60[_0x50c3dc(0x13e)],Promise[_0x50c3dc(0xf2)](_0x2f6a8d);}});exports['getUserProfilesAsync']=getUserProfilesAsync;const getUserBulkDataAsync=(_0x769f15,_0x19ff10)=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const _0x428101=a40_0x4fd776,_0x5d1ab7={'TAiwq':_0x428101(0x12c),'SMgpH':'go_felix_user_api','qQyEj':'Request\x20Failed,\x20Please\x20make\x20sure\x20you\x20have\x20enter\x20all\x20the\x20method\x20arguments\x20and\x20accessToken','xLkOb':_0x428101(0x11f),'FLjzI':_0x428101(0x133)},_0x4d89e9={'isSuccess':!0x1,'errorMessage':'','errorCode':'','hasUserData':!0x1,'userMailDiscountAdverts':[],'userMailFeedbacksAdverts':[],'userMailCompanyNewsAdverts':[],'userExperiences':[],'userDiscountTokens':null,'userDiscountAmountList':[],'pendingFeedbackLinks':[],'mails':[],'companySubscribeList':[],'userProfile':null,'friends':[],'userSettings':null};let _0x52adf5={};try{return _0x769f15?(_0x769f15[_0x428101(0x114)]?_0x769f15[_0x428101(0xfe)][_0x428101(0x109)]?_0x52adf5=_0x769f15[_0x428101(0xfe)][_0x428101(0x109)]():_0x4d89e9[_0x428101(0x100)]=_0x5d1ab7[_0x428101(0x108)]:_0x52adf5=yield(0x0,fetch_1[_0x428101(0x111)])(getUserBulkData_1[_0x428101(0x111)],{},constants_1[_0x428101(0x111)][_0x428101(0xf7)]['getUserBulkData'],{'accountEmail':_0x769f15['accountEmail'],'origin':_0x769f15[_0x428101(0x134)],'token':_0x19ff10},_0x5d1ab7[_0x428101(0x124)]),Object[_0x428101(0x10a)](_0x52adf5)['forEach'](_0x5044f8=>{const _0x53c6fa=_0x428101;(0x0,mapper_1[_0x53c6fa(0x132)])(_0x4d89e9,_0x52adf5,_0x5044f8);}),Promise['resolve'](_0x4d89e9)):(_0x4d89e9[_0x428101(0x100)]=_0x5d1ab7[_0x428101(0xeb)],Promise[_0x428101(0xf2)](_0x4d89e9));}catch(_0x4bce8c){return(0x0,fetch_1['default'])(logError_1['default'],{'errorDetails':{'userName':'','email':_0x769f15['accountEmail'],'app':constants_1['default'][_0x428101(0x118)],'env':JSON[_0x428101(0xf6)](config_1['default']),'error':JSON[_0x428101(0xf6)](_0x4bce8c),'argumentsPassedIn':JSON['stringify'](_0x769f15),'codeLocation':_0x5d1ab7[_0x428101(0xf9)],'appCode':constants_1[_0x428101(0x111)][_0x428101(0x105)]}},constants_1[_0x428101(0x111)][_0x428101(0xf7)][_0x428101(0x13c)],{'accountEmail':_0x769f15[_0x428101(0x119)],'origin':_0x769f15[_0x428101(0x134)],'token':_0x19ff10},_0x5d1ab7[_0x428101(0x124)]),_0x4d89e9[_0x428101(0x100)]=_0x5d1ab7[_0x428101(0xee)],Promise[_0x428101(0xf2)](_0x4d89e9);}});exports[a40_0x4fd776(0x109)]=getUserBulkDataAsync;function a40_0x4654(_0x4b16bc,_0x4a0312){_0x4b16bc=_0x4b16bc-0xe9;const _0x1f7b8d=a40_0x1f7b();let _0x46540b=_0x1f7b8d[_0x4b16bc];return _0x46540b;}const updateUserProfileAsync=_0x21a325=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const _0x5a24b4=a40_0x4fd776,_0x1307d3={'ujkSn':function(_0x321e84,_0x228780){return _0x321e84&&_0x228780;},'sLTrP':_0x5a24b4(0x13d),'GeqYG':'go_felix_user_api','kGXGV':_0x5a24b4(0x12f),'lYOpu':_0x5a24b4(0xef),'moPVd':_0x5a24b4(0x133)},_0x1e3c12={'isSuccess':!0x1,'errorMessage':'','errorCode':'','isUserProfileUpdated':!0x1};let _0x4e2969={};const {userProfile:_0x8f7492,userConfig:_0x1a21b6,accessToken:_0x2de04f}=_0x21a325;try{return _0x1307d3[_0x5a24b4(0x10c)](_0x8f7492,_0x1a21b6)?(_0x1a21b6['activateMockCalls']?_0x1a21b6['mockCalls'][_0x5a24b4(0xf0)]?_0x4e2969=_0x1a21b6[_0x5a24b4(0xfe)][_0x5a24b4(0xf0)]():_0x1e3c12[_0x5a24b4(0x100)]=_0x1307d3[_0x5a24b4(0x12a)]:_0x4e2969=yield(0x0,fetch_1['default'])(updateUserProfile_1[_0x5a24b4(0x111)],{'userProfileInput':_0x8f7492},constants_1[_0x5a24b4(0x111)][_0x5a24b4(0xf7)]['updateUserProfile'],{'accountEmail':_0x1a21b6[_0x5a24b4(0x119)],'origin':_0x1a21b6['origin'],'token':_0x21a325[_0x5a24b4(0x104)]},_0x1307d3[_0x5a24b4(0x12d)]),Object[_0x5a24b4(0x10a)](_0x4e2969)[_0x5a24b4(0xf1)](_0x4a3b5c=>{const _0x351623=_0x5a24b4;(0x0,mapper_1[_0x351623(0x132)])(_0x1e3c12,_0x4e2969,_0x4a3b5c);}),Promise[_0x5a24b4(0xf2)](_0x1e3c12)):(_0x1e3c12[_0x5a24b4(0x100)]=_0x1307d3[_0x5a24b4(0x11c)],Promise[_0x5a24b4(0xf2)](_0x1e3c12));}catch(_0x48d091){return(0x0,fetch_1[_0x5a24b4(0x111)])(logError_1['default'],{'errorDetails':{'userName':'','email':_0x1a21b6['accountEmail'],'app':constants_1['default'][_0x5a24b4(0x118)],'env':JSON[_0x5a24b4(0xf6)](config_1['default']),'error':JSON[_0x5a24b4(0xf6)](_0x48d091),'argumentsPassedIn':JSON['stringify'](_0x21a325),'codeLocation':_0x1307d3[_0x5a24b4(0x103)],'appCode':constants_1[_0x5a24b4(0x111)][_0x5a24b4(0x105)]}},constants_1[_0x5a24b4(0x111)][_0x5a24b4(0xf7)]['logError'],{'accountEmail':_0x1a21b6['accountEmail'],'origin':_0x1a21b6['origin'],'token':_0x2de04f},_0x5a24b4(0xfc)),_0x1e3c12[_0x5a24b4(0x100)]=_0x1307d3[_0x5a24b4(0xed)],Promise[_0x5a24b4(0xf2)](_0x1e3c12);}});exports[a40_0x4fd776(0xf0)]=updateUserProfileAsync;const updateUserSettingsAsync=_0x24dd88=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const _0xbde811=a40_0x4fd776,_0x3349fb={'ATUOK':function(_0x504736,_0x53bc06){return _0x504736&&_0x53bc06;},'ozgjB':_0xbde811(0x13a),'XmnDl':_0xbde811(0xfc),'WdJZE':'Request\x20Failed,\x20Please\x20make\x20sure\x20you\x20have\x20enter\x20all\x20the\x20method\x20arguments\x20and\x20accessToken','bWwbL':_0xbde811(0x133)},_0x2ba3d7={'isSuccess':!0x1,'errorMessage':'','errorCode':'','hasUpdatedSuccess':!0x1};let _0x2430d4={};const {settings:_0x451662,userConfig:_0x460073,accessToken:_0x347a7a}=_0x24dd88;try{return _0x3349fb[_0xbde811(0x11b)](_0x451662,_0x460073)?(_0x460073[_0xbde811(0x114)]?_0x460073[_0xbde811(0xfe)]['updateUserSettingsAsync']?_0x2430d4=_0x460073[_0xbde811(0xfe)]['updateUserSettingsAsync']():_0x2ba3d7['errorMessage']=_0x3349fb[_0xbde811(0x135)]:_0x2430d4=yield(0x0,fetch_1[_0xbde811(0x111)])(updateUserSettings_1[_0xbde811(0x111)],{'settings':_0x451662},constants_1[_0xbde811(0x111)][_0xbde811(0xf7)][_0xbde811(0x127)],{'accountEmail':_0x460073[_0xbde811(0x119)],'origin':_0x460073['origin'],'token':_0x24dd88[_0xbde811(0x104)]},_0x3349fb[_0xbde811(0x137)]),Object[_0xbde811(0x10a)](_0x2430d4)[_0xbde811(0xf1)](_0x226779=>{const _0x11b4b1=_0xbde811;(0x0,mapper_1[_0x11b4b1(0x132)])(_0x2ba3d7,_0x2430d4,_0x226779);}),Promise['resolve'](_0x2ba3d7)):(_0x2ba3d7[_0xbde811(0x100)]=_0x3349fb[_0xbde811(0x126)],Promise[_0xbde811(0xf2)](_0x2ba3d7));}catch(_0x393508){return(0x0,fetch_1[_0xbde811(0x111)])(logError_1['default'],{'errorDetails':{'userName':'','email':_0x460073[_0xbde811(0x119)],'app':constants_1['default'][_0xbde811(0x118)],'env':JSON[_0xbde811(0xf6)](config_1[_0xbde811(0x111)]),'error':JSON[_0xbde811(0xf6)](_0x393508),'args':JSON[_0xbde811(0xf6)](_0x24dd88),'codeLocation':_0xbde811(0x121),'appCode':constants_1['default']['appCode']}},constants_1[_0xbde811(0x111)][_0xbde811(0xf7)][_0xbde811(0x13c)],{'accountEmail':_0x460073[_0xbde811(0x119)],'origin':_0x460073['origin'],'token':_0x347a7a},_0x3349fb[_0xbde811(0x137)]),_0x2ba3d7[_0xbde811(0x100)]=_0x3349fb[_0xbde811(0x12e)],Promise[_0xbde811(0xf2)](_0x2ba3d7);}});exports[a40_0x4fd776(0x128)]=updateUserSettingsAsync,exports[a40_0x4fd776(0x111)]={'getUserProfilesAsync':exports[a40_0x4fd776(0x125)],'getUserBulkDataAsync':exports[a40_0x4fd776(0x109)],'updateUserProfileAsync':exports[a40_0x4fd776(0xf0)],'updateUserSettingsAsync':exports[a40_0x4fd776(0x128)]};function a40_0x1f7b(){const _0x25db71=['1099CXHNnS','XqSTd','done','app','accountEmail','__esModule','ATUOK','kGXGV','getUserProfiles','apply','gofelix,\x20service:\x20getUserBulkDataAsync','2440EVgLno','gofelix,\x20service:\x20updateUserSettingsAsync','4339443WXeWmf','64143iwbEoG','SMgpH','getUserProfilesAsync','WdJZE','updateUserSettings','updateUserSettingsAsync','next','sLTrP','IsaDI','Request\x20Failed,\x20you\x20set\x20activateMockCalls\x20to\x20true,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20but\x20you\x20have\x20not\x20added\x20a\x20mock\x20function\x20for\x20getUserBulkData','GeqYG','bWwbL','Request\x20Failed,\x20Please\x20make\x20sure\x20you\x20have\x20enter\x20all\x20the\x20method\x20arguments\x20and\x20accessToken','498aSvdAS','78750xoynMR','MapToResponseObj','Unable\x20to\x20process\x20this\x20request\x20at\x20this\x20time,\x20please\x20try\x20again\x20later','origin','ozgjB','DXcfr','XmnDl','../../queries/updateUserSettings','326630YFiTZv','Request\x20Failed,\x20you\x20set\x20activateMockCalls\x20to\x20true,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20but\x20you\x20have\x20not\x20added\x20a\x20mock\x20function\x20for\x20updateUserSettings','6ExpqVm','logError','Request\x20Failed,\x20you\x20set\x20activateMockCalls\x20to\x20true,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20but\x20you\x20have\x20not\x20added\x20a\x20mock\x20function\x20for\x20updateUserProfile','pIlIA','then','5115AJZTwI','qQyEj','../../queries/getUserBulkData','moPVd','FLjzI','gofelix,\x20service:\x20updateUserProfileAsync','updateUserProfileAsync','forEach','resolve','GxEQP','../../utilities/mapper','../../constants','stringify','graphQlCommandNames','142728iKqfka','xLkOb','defineProperty','value','go_felix_user_api','EuydL','mockCalls','FzMbu','errorMessage','../../queries/getUserProfiles','__importDefault','lYOpu','accessToken','appCode','throw','../../queries/logError','TAiwq','getUserBulkDataAsync','keys','../../queries/updateUserProfile','ujkSn','295968zyEfKW','__awaiter','57616DrUqEc','Request\x20Failed,\x20you\x20set\x20activateMockCalls\x20to\x20true,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20but\x20you\x20have\x20not\x20added\x20a\x20mock\x20function\x20for\x20getUserProfiles','default','MFudq','Ditfp','activateMockCalls'];a40_0x1f7b=function(){return _0x25db71;};return a40_0x1f7b();}
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,s,t,r){return new(t||(t=Promise))(function(a,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function n(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var s;e.done?a(e.value):(s=e.value,s instanceof t?s:new t(function(e){e(s)})).then(i,n)}l((r=r.apply(e,s||[])).next())})},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.updateUserSettingsAsync=exports.updateUserProfileAsync=exports.getUserBulkDataAsync=exports.getUserProfilesAsync=void 0;const mapper_1=require("../../utilities/mapper"),logError_1=__importDefault(require("../../queries/logError")),fetch_1=__importDefault(require("../../utilities/fetch")),getUserProfiles_1=__importDefault(require("../../queries/getUserProfiles")),updateUserProfile_1=__importDefault(require("../../queries/updateUserProfile")),getUserBulkData_1=__importDefault(require("../../queries/getUserBulkData")),updateUserSettings_1=__importDefault(require("../../queries/updateUserSettings")),constants_1=__importDefault(require("../../constants")),config_1=__importDefault(require("../../config")),getUserProfilesAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const s={isSuccess:!1,errorMessage:"",errorCode:"",hasUserProfiles:!1,userProfiles:[]};let t={};const{index:r=0,value:a,accessToken:o,userConfig:i}=e;try{return a&&o?(i.activateMockCalls?i.mockCalls.getUserProfilesAsync?t=i.mockCalls.getUserProfilesAsync():s.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getUserProfiles":t=yield(0,fetch_1.default)(getUserProfiles_1.default,{index:r,value:a},constants_1.default.graphQlCommandNames.getUserProfiles,{accountEmail:i.accountEmail,origin:i.origin,token:e.accessToken},"go_felix_user_api"),Object.keys(t).forEach(e=>{(0,mapper_1.MapToResponseObj)(s,t,e)}),Promise.resolve(s)):(s.errorMessage="Request Failed, Please make sure you have enter all the method arguments and accessToken",Promise.resolve(s))}catch(t){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:i.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(t),argumentsPassedIn:JSON.stringify(e),codeLocation:"gofelix, service: getUserProfilesAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:i.accountEmail,origin:i.origin,token:o},"go_felix_user_api"),s.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(s)}});exports.getUserProfilesAsync=getUserProfilesAsync;const getUserBulkDataAsync=(e,s)=>__awaiter(void 0,void 0,void 0,function*(){const t={isSuccess:!1,errorMessage:"",errorCode:"",hasUserData:!1,userMailDiscountAdverts:[],userMailFeedbacksAdverts:[],userMailCompanyNewsAdverts:[],userExperiences:[],userDiscountTokens:null,userDiscountAmountList:[],pendingFeedbackLinks:[],mails:[],companySubscribeList:[],userProfile:null,friends:[],userSettings:null};let r={};try{return e?(e.activateMockCalls?e.mockCalls.getUserBulkDataAsync?r=e.mockCalls.getUserBulkDataAsync():t.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for getUserBulkData":r=yield(0,fetch_1.default)(getUserBulkData_1.default,{},constants_1.default.graphQlCommandNames.getUserBulkData,{accountEmail:e.accountEmail,origin:e.origin,token:s},"go_felix_user_api"),Object.keys(r).forEach(e=>{(0,mapper_1.MapToResponseObj)(t,r,e)}),Promise.resolve(t)):(t.errorMessage="Request Failed, Please make sure you have enter all the method arguments and accessToken",Promise.resolve(t))}catch(r){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(r),argumentsPassedIn:JSON.stringify(e),codeLocation:"gofelix, service: getUserBulkDataAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:e.accountEmail,origin:e.origin,token:s},"go_felix_user_api"),t.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(t)}});exports.getUserBulkDataAsync=getUserBulkDataAsync;const updateUserProfileAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const s={isSuccess:!1,errorMessage:"",errorCode:"",isUserProfileUpdated:!1};let t={};const{userProfile:r,userConfig:a,accessToken:o}=e;try{return r&&a?(a.activateMockCalls?a.mockCalls.updateUserProfileAsync?t=a.mockCalls.updateUserProfileAsync():s.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for updateUserProfile":t=yield(0,fetch_1.default)(updateUserProfile_1.default,{userProfileInput:r},constants_1.default.graphQlCommandNames.updateUserProfile,{accountEmail:a.accountEmail,origin:a.origin,token:e.accessToken},"go_felix_user_api"),Object.keys(t).forEach(e=>{(0,mapper_1.MapToResponseObj)(s,t,e)}),Promise.resolve(s)):(s.errorMessage="Request Failed, Please make sure you have enter all the method arguments and accessToken",Promise.resolve(s))}catch(t){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:a.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(t),argumentsPassedIn:JSON.stringify(e),codeLocation:"gofelix, service: updateUserProfileAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:a.accountEmail,origin:a.origin,token:o},"go_felix_user_api"),s.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(s)}});exports.updateUserProfileAsync=updateUserProfileAsync;const updateUserSettingsAsync=e=>__awaiter(void 0,void 0,void 0,function*(){const s={isSuccess:!1,errorMessage:"",errorCode:"",hasUpdatedSuccess:!1};let t={};const{settings:r,userConfig:a,accessToken:o}=e;try{return r&&a?(a.activateMockCalls?a.mockCalls.updateUserSettingsAsync?t=a.mockCalls.updateUserSettingsAsync():s.errorMessage="Request Failed, you set activateMockCalls to true,\n but you have not added a mock function for updateUserSettings":t=yield(0,fetch_1.default)(updateUserSettings_1.default,{settings:r},constants_1.default.graphQlCommandNames.updateUserSettings,{accountEmail:a.accountEmail,origin:a.origin,token:e.accessToken},"go_felix_user_api"),Object.keys(t).forEach(e=>{(0,mapper_1.MapToResponseObj)(s,t,e)}),Promise.resolve(s)):(s.errorMessage="Request Failed, Please make sure you have enter all the method arguments and accessToken",Promise.resolve(s))}catch(t){return(0,fetch_1.default)(logError_1.default,{errorDetails:{userName:"",email:a.accountEmail,app:constants_1.default.app,env:JSON.stringify(config_1.default),error:JSON.stringify(t),args:JSON.stringify(e),codeLocation:"gofelix, service: updateUserSettingsAsync",appCode:constants_1.default.appCode}},constants_1.default.graphQlCommandNames.logError,{accountEmail:a.accountEmail,origin:a.origin,token:o},"go_felix_user_api"),s.errorMessage="Unable to process this request at this time, please try again later",Promise.resolve(s)}});exports.updateUserSettingsAsync=updateUserSettingsAsync,exports.default={getUserProfilesAsync:exports.getUserProfilesAsync,getUserBulkDataAsync:exports.getUserBulkDataAsync,updateUserProfileAsync:exports.updateUserProfileAsync,updateUserSettingsAsync:exports.updateUserSettingsAsync};
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
package/dist/types/mailTypes.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
package/dist/types/oAuthTypes.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
package/dist/types/qrCodes.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GetCompanyNewsStatsResponse } from
|
|
2
|
-
import { BiConfig } from
|
|
1
|
+
import { GetCompanyNewsStatsResponse } from "../../types/companyNewsTypes";
|
|
2
|
+
import { BiConfig } from "../../types/commonTypes";
|
|
3
3
|
export declare const getCompanyNewsStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyNewsStatsResponse>;
|
|
4
4
|
declare const _default: {
|
|
5
5
|
getCompanyNewsStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyNewsStatsResponse>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BiConfig } from
|
|
2
|
-
import { GetCompanyDiscountStatsResponse } from
|
|
1
|
+
import { BiConfig } from "../../types/commonTypes";
|
|
2
|
+
import { GetCompanyDiscountStatsResponse } from "../../types/discountTypes";
|
|
3
3
|
export declare const getCompanyDiscountStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyDiscountStatsResponse>;
|
|
4
4
|
declare const _default: {
|
|
5
5
|
getCompanyDiscountStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyDiscountStatsResponse>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BiConfig } from
|
|
2
|
-
import { GetCompanyFeedbackStatsResponse } from
|
|
1
|
+
import { BiConfig } from "../../types/commonTypes";
|
|
2
|
+
import { GetCompanyFeedbackStatsResponse } from "../../types/feedbackTypes";
|
|
3
3
|
export declare const getCompanyFeedbackStats: (biConfig: BiConfig) => Promise<GetCompanyFeedbackStatsResponse>;
|
|
4
4
|
declare const _default: {
|
|
5
5
|
getCompanyFeedbackStats: (biConfig: BiConfig) => Promise<GetCompanyFeedbackStatsResponse>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BiConfig } from
|
|
2
|
-
import { GetAllCompanyStatsResponse } from
|
|
1
|
+
import { BiConfig } from "../../types/commonTypes";
|
|
2
|
+
import { GetAllCompanyStatsResponse } from "../../types/userTypes";
|
|
3
3
|
export declare const getAllCompanyStatsAsync: (biConfig: BiConfig) => Promise<GetAllCompanyStatsResponse>;
|
|
4
4
|
declare const _default: {
|
|
5
5
|
getAllCompanyStatsAsync: (biConfig: BiConfig) => Promise<GetAllCompanyStatsResponse>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BiConfig } from
|
|
2
|
-
import { GetCompanyOverallStatsResponse } from
|
|
1
|
+
import { BiConfig } from "../../types/commonTypes";
|
|
2
|
+
import { GetCompanyOverallStatsResponse } from "../../types/companyNewsTypes";
|
|
3
3
|
export declare const getCompanyOverallStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyOverallStatsResponse>;
|
|
4
4
|
declare const _default: {
|
|
5
5
|
getCompanyOverallStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyOverallStatsResponse>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BiConfig } from
|
|
2
|
-
import { GetCompanyUserExperienceStatsResponse } from
|
|
1
|
+
import { BiConfig } from "../../types/commonTypes";
|
|
2
|
+
import { GetCompanyUserExperienceStatsResponse } from "../../types/userTypes";
|
|
3
3
|
export declare const getCompanyUserExperienceStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyUserExperienceStatsResponse>;
|
|
4
4
|
declare const _default: {
|
|
5
5
|
getCompanyUserExperienceStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyUserExperienceStatsResponse>;
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
package/dist/types/userTypes.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const fetchAsync: (query: string, variables: any, commandName: string, additionalHeaders: any, appName?: string) => Promise<any>;
|
|
1
|
+
declare const fetchAsync: (query: string, variables: any, commandName: string, additionalHeaders: any, appName?: string, biApiName?: string) => Promise<any>;
|
|
2
2
|
export default fetchAsync;
|
package/dist/utilities/fetch.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,a){function r(t){try{u(n.next(t))}catch(t){a(t)}}function s(t){try{u(n.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(r,s)}u((n=n.apply(t,e||[])).next())})},__importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});const axios_1=__importDefault(require("axios")),config_1=__importDefault(require("../config")),constants_1=__importDefault(require("../constants")),https_1=__importDefault(require("https")),fetchAsync=(t,e,o,n,i="",a="")=>__awaiter(void 0,void 0,void 0,function*(){if(!n.accountEmail)throw new Error("No account email found");const o={"Content-Type":"application/json",appCode:constants_1.default.appCode,appName:i,apiName:i,biApiName:a};for(const[t,e]of Object.entries(n))o[t]=e;const r=yield axios_1.default.post(config_1.default.GATEWAY_URL,{query:t,variables:e},{headers:o,httpsAgent:void 0});return Promise.resolve(r.data)});exports.default=fetchAsync;
|
package/dist/utilities/mapper.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
/**
|
|
3
|
+
* GoFelix Project — GoFelix Limited (UK)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) GoFelix Limited (UK). All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the GoFelix License.
|
|
8
|
+
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
|
+
* Proprietary and confidential.
|
|
10
|
+
*/
|
|
11
|
+
"use strict";function MapToResponseObj(e,o,s){e[s]=o[s]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.MapToResponseObj=void 0,exports.MapToResponseObj=MapToResponseObj,exports.default={MapToResponseObj:MapToResponseObj};
|