gofelix 1.0.6 → 1.2.1
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 -0
- 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 -0
- 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 -0
- package/dist/services/OAuth/index.js +11 -0
- package/dist/services/OAuth/logout.js +11 -0
- 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/constants.d.ts +2 -0
- package/dist/types/discountTypes.js +11 -1
- package/dist/types/feedbackTypes.js +11 -1
- package/dist/types/friendTypes.js +11 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/mailTypes.js +11 -1
- package/dist/types/oAuthTypes.js +11 -0
- package/dist/types/qrCodes.js +11 -1
- package/dist/types/queries/addFriend.d.ts +1 -1
- package/dist/types/queries/getBiStats.d.ts +1 -1
- package/dist/types/queries/getUserAccessTokenFromActivationCode.d.ts +2 -0
- package/dist/types/queries/getUserBulkData.d.ts +1 -1
- package/dist/types/queries/redeemDiscountCode.d.ts +1 -1
- package/dist/types/queries/subscribeToCompany.d.ts +1 -1
- package/dist/types/queries/unSubscribeToCompany.d.ts +1 -1
- package/dist/types/queries/userApiLogout.d.ts +2 -0
- package/dist/types/services/OAuth/callback.d.ts +6 -0
- package/dist/types/services/OAuth/index.d.ts +10 -0
- package/dist/types/services/OAuth/logout.d.ts +6 -0
- package/dist/types/subscribeTypes.js +11 -1
- package/dist/types/types/commonTypes.d.ts +2 -0
- package/dist/types/types/oAuthTypes.d.ts +22 -0
- package/dist/types/types/userTypes.d.ts +4 -4
- package/dist/types/userTypes.js +11 -1
- package/dist/utilities/fetch.js +11 -1
- package/dist/utilities/mapper.js +11 -1
- package/package.json +4 -1
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";var a46_0x18fbee=a46_0x2fbb;function a46_0x2fbb(e,r){return e-=165,a46_0x69cb()[e]}function a46_0x69cb(){var e=["1329141FBGFXG","68voZPqD","94638NDUSzh","defineProperty","132468HlXCso","553RPgnMj","2963952BGrPQe","239900rqJTla","1069346CSXxvW","__esModule","6912648ycmiOb"];return(a46_0x69cb=function(){return e})()}!function(){for(var e=a46_0x2fbb,r=a46_0x69cb();;)try{if(715638===-parseInt(e(167))/1+-parseInt(e(175))/2+parseInt(e(171))/3*(parseInt(e(168))/4)+parseInt(e(174))/5+-parseInt(e(169))/6*(-parseInt(e(172))/7)+parseInt(e(166))/8+-parseInt(e(173))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(),Object[a46_0x18fbee(170)](exports,a46_0x18fbee(165),{value:!0});
|
|
@@ -0,0 +1,11 @@
|
|
|
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 a47_0x3d019c=a47_0x1ad0;function a47_0x1ad0(a,t){return a-=103,a47_0x3a09()[a]}function a47_0x3a09(){var a=["269885nLXRFt","3831228EUCqgR","1018150LnzDKl","471PplKcQ","2NnVZXx","21732ewLMXY","491608wEJvZy","95isLcax","964LUiczH","__esModule","25770prtpYY","defineProperty"];return(a47_0x3a09=function(){return a})()}!function(){for(var a=a47_0x1ad0,t=a47_0x3a09();;)try{if(218660===-parseInt(a(112))/1*(-parseInt(a(106))/2)+-parseInt(a(105))/3*(-parseInt(a(110))/4)+parseInt(a(109))/5*(-parseInt(a(107))/6)+-parseInt(a(114))/7+-parseInt(a(108))/8+parseInt(a(103))/9+-parseInt(a(104))/10)break;t.push(t.shift())}catch(a){t.push(t.shift())}}(),Object[a47_0x3d019c(113)](exports,a47_0x3d019c(111),{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";var a48_0x5c85df=a48_0xe201;function a48_0xe201(a,t){return a-=250,a48_0x211a()[a]}function a48_0x211a(){var a=["167592tMdaVP","2plFUsD","6927HPOOvi","19230VVzaJN","defineProperty","__esModule","1860810iaQqTd","686727UnQmkS","279232YoCpOW","3636JDjdHH","21gRLGhU","2353515kDMdXB"];return(a48_0x211a=function(){return a})()}!function(){for(var a=a48_0xe201,t=a48_0x211a();;)try{if(247833===-parseInt(a(256))/1+parseInt(a(255))/2*(-parseInt(a(261))/3)+-parseInt(a(250))/4+-parseInt(a(253))/5+parseInt(a(260))/6+-parseInt(a(252))/7*(parseInt(a(254))/8)+parseInt(a(251))/9*(parseInt(a(257))/10))break;t.push(t.shift())}catch(a){t.push(t.shift())}}(),Object[a48_0x5c85df(258)](exports,a48_0x5c85df(259),{value:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare 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 isSuccess\n errorCode\n errorMessage\n }\n }\n";
|
|
1
|
+
declare 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";
|
|
2
2
|
export default addFriend;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare 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 companyNewsStats{\n visitAdvertTotal\n advertId\n title\n companyName\n visitVendorUrlTotal\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 ";
|
|
1
|
+
declare 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 ";
|
|
2
2
|
export default goFelixBiLogin;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare 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";
|
|
2
|
+
export default getUserAccessTokenFromActivationCode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare 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 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 }\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 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 }\n isSuccess\n errorCode\n errorMessage\n }\n }";
|
|
1
|
+
declare 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";
|
|
2
2
|
export default getUserBulkData;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const redeemDiscountCode = "\n query redeemDiscountToken(\n $discountToken: String\n $discountCode: String\n $
|
|
1
|
+
declare 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 ";
|
|
2
2
|
export default redeemDiscountCode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const subscribeToCompany = "\n mutation subscribeToCompany(\n $companyName: String!\n $branchName: String\n ) {\n subscribeToCompany(\n companyName: $companyName\n branchName: $branchName\n ) {\n isSubscribe\n isSuccess\n errorCode\n errorMessage\n }\n }\n";
|
|
1
|
+
declare 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";
|
|
2
2
|
export default subscribeToCompany;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const unSubscribeToCompany = "\n mutation unSubscribeToCompany(\n $companyName: String!\n $branchName: String\n ) {\n unSubscribeToCompany(\n companyName: $companyName\n branchName: $branchName\n ) {\n isUnSubscribe\n isSuccess\n errorCode\n errorMessage\n }\n }\n";
|
|
1
|
+
declare 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";
|
|
2
2
|
export default unSubscribeToCompany;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OAuthCallbackArgs, OAuthCallbackResponse } from "../../types/oAuthTypes";
|
|
2
|
+
export declare const oauthCallbackAsync: (args: OAuthCallbackArgs) => Promise<OAuthCallbackResponse>;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
oauthCallbackAsync: (args: OAuthCallbackArgs) => Promise<OAuthCallbackResponse>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import express from "express";
|
|
2
|
+
import { OAuthCallbackArgs, UserApiLogoutArgs } from "../../types/oAuthTypes";
|
|
3
|
+
import { UserConfig } from "@gofelix/types/commonTypes";
|
|
4
|
+
export declare const oAuth: {
|
|
5
|
+
callbackAsync: (args: OAuthCallbackArgs) => Promise<import("../../types/oAuthTypes").OAuthCallbackResponse>;
|
|
6
|
+
userApiLogoutAsync: (args: UserApiLogoutArgs) => Promise<import("../../types/oAuthTypes").UserApiLogoutResponse>;
|
|
7
|
+
logoutExpressCallback: (userConfig: UserConfig) => (req: express.Request, res: express.Response) => Promise<express.Response<any, Record<string, any>>>;
|
|
8
|
+
expressCallback: (userConfig: UserConfig) => (req: express.Request, res: express.Response) => Promise<express.Response<any, Record<string, any>>>;
|
|
9
|
+
};
|
|
10
|
+
export default oAuth;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UserApiLogoutArgs, UserApiLogoutResponse } from "../../types/oAuthTypes";
|
|
2
|
+
export declare const userApiLogoutAsync: (args: UserApiLogoutArgs) => Promise<UserApiLogoutResponse>;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
userApiLogoutAsync: (args: UserApiLogoutArgs) => Promise<UserApiLogoutResponse>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -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 a49_0x27db(a,e){return a-=187,a49_0xb7be()[a]}function a49_0xb7be(){var a=["3041TVVupH","715400SNlSce","598420jOSSkF","54KEsEOF","265077EUnIxi","42kjGLcB","12ZHhbhY","__esModule","5090261NomYgd","140040XbQioN","4CJOjxn","24306rPoWVv","27SLiFfM"];return(a49_0xb7be=function(){return a})()}var a49_0x50eaaa=a49_0x27db;!function(){for(var a=a49_0x27db,e=a49_0xb7be();;)try{if(279132===parseInt(a(199))/1*(parseInt(a(189))/2)+parseInt(a(190))/3*(-parseInt(a(196))/4)+parseInt(a(195))/5+parseInt(a(197))/6+parseInt(a(191))/7*(parseInt(a(187))/8)+parseInt(a(198))/9*(parseInt(a(188))/10)+parseInt(a(194))/11*(-parseInt(a(192))/12))break;e.push(e.shift())}catch(a){e.push(e.shift())}}(),Object.defineProperty(exports,a49_0x50eaaa(193),{value:!0});
|
|
@@ -28,8 +28,10 @@ declare type UserMockCalls = {
|
|
|
28
28
|
addFriendAsync: any;
|
|
29
29
|
removeFriendAsync: any;
|
|
30
30
|
removeUserMailAsync: any;
|
|
31
|
+
userApiLogoutAsync?: any;
|
|
31
32
|
getUserMailsAsync: any;
|
|
32
33
|
addUserMailsAsync: any;
|
|
34
|
+
oauthCallbackAsync?: any;
|
|
33
35
|
subscribeToCompanyAsync: any;
|
|
34
36
|
unSubscribeToCompanyAsync: any;
|
|
35
37
|
addUserExperienceAsync: any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UserConfig } from "./commonTypes";
|
|
2
|
+
export interface OAuthCallbackArgs {
|
|
3
|
+
activationCode: string;
|
|
4
|
+
codeVerifier: string;
|
|
5
|
+
userConfig?: UserConfig;
|
|
6
|
+
}
|
|
7
|
+
export interface OAuthCallbackResponse {
|
|
8
|
+
isSuccess: boolean;
|
|
9
|
+
errorMessage: string;
|
|
10
|
+
errorCode: string;
|
|
11
|
+
sessionGuid: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UserApiLogoutArgs {
|
|
14
|
+
accessToken: string;
|
|
15
|
+
userConfig?: UserConfig;
|
|
16
|
+
}
|
|
17
|
+
export interface UserApiLogoutResponse {
|
|
18
|
+
isSuccess: boolean;
|
|
19
|
+
errorMessage: string;
|
|
20
|
+
errorCode: string;
|
|
21
|
+
hasLoggedOut: boolean;
|
|
22
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseResponse, UserConfig } from
|
|
2
|
-
import { CompanyNewsStats, CompanyStats } from
|
|
3
|
-
import { DiscountStats } from
|
|
4
|
-
import { FeedbackStats } from
|
|
1
|
+
import { BaseResponse, UserConfig } from "./commonTypes";
|
|
2
|
+
import { CompanyNewsStats, CompanyStats } from "./companyNewsTypes";
|
|
3
|
+
import { DiscountStats } from "./discountTypes";
|
|
4
|
+
import { FeedbackStats } from "./feedbackTypes";
|
|
5
5
|
export declare type CompanyUserExperienceStats = {
|
|
6
6
|
companyName: string;
|
|
7
7
|
experienceCategory: string;
|
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";var a51_0x24e910=a51_0x1938;function a51_0x1938(a,t){return a-=326,a51_0x2485()[a]}function a51_0x2485(){var a=["198qcFZXl","528045dOfIYl","137206gVTMcG","5cAJcuT","2jRaziR","__esModule","6OiylSk","542760VAimgY","defineProperty","369212NsRliB","1569852WVivSY","43990lmdxQY","8tnCPjC","447097mOEdzv"];return(a51_0x2485=function(){return a})()}!function(){for(var a=a51_0x1938,t=a51_0x2485();;)try{if(198003===parseInt(a(337))/1*(parseInt(a(335))/2)+-parseInt(a(334))/3+parseInt(a(328))/4*(parseInt(a(336))/5)+parseInt(a(339))/6*(-parseInt(a(332))/7)+parseInt(a(331))/8*(parseInt(a(329))/9)+parseInt(a(330))/10*(parseInt(a(333))/11)+-parseInt(a(326))/12)break;t.push(t.shift())}catch(a){t.push(t.shift())}}(),Object[a51_0x24e910(327)](exports,a51_0x24e910(338),{value:!0});
|
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";const a52_0xc7c8e1=a52_0x3108;function a52_0x3108(t,n){t-=156;return a52_0x78fa()[t]}!function(){const t=a52_0x3108,n=a52_0x78fa();for(;;)try{if(229817===-parseInt(t(174))/1+-parseInt(t(160))/2+-parseInt(t(158))/3*(-parseInt(t(163))/4)+parseInt(t(180))/5*(parseInt(t(179))/6)+-parseInt(t(172))/7+-parseInt(t(167))/8+parseInt(t(156))/9*(-parseInt(t(182))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var __awaiter=this&&this.__awaiter||function(t,n,e,a){return new(e||(e=Promise))(function(o,r){const c=a52_0x3108,s={bIWFJ:function(t,n){return t(n)},pXZpI:function(t,n){return t(n)},ZtCwR:function(t,n){return t instanceof n}};function i(t){const n=a52_0x3108;try{s[n(162)](_,a[n(185)](t))}catch(t){r(t)}}function u(t){const n=a52_0x3108;try{_(a[n(157)](t))}catch(t){s[n(162)](r,t)}}function _(t){const n=a52_0x3108;var a;t.done?s[n(162)](o,t[n(169)]):(a=t[n(169)],s[n(165)](a,e)?a:new e(function(t){s.pXZpI(t,a)}))[n(175)](i,u)}_((a=a[c(171)](t,n||[]))[c(185)]())})},__importDefault=this&&this[a52_0xc7c8e1(168)]||function(t){return t&&t.__esModule?t:{default:t}};function a52_0x78fa(){const t=["93820VTepcN","application/json","ZtCwR","data","214448uUBMEd","__importDefault","value","defineProperty","apply","17668fAqePZ","__esModule","283851bWwsVI","then","axios","accountEmail","default","18876ZgUjLC","695DxntdK","resolve","10nVaWrY","appCode","GATEWAY_URL","next","post","101727SSYCYS","throw","39UWxCRB","https","375816zYToWD","entries","bIWFJ"];return(a52_0x78fa=function(){return t})()}Object[a52_0xc7c8e1(170)](exports,a52_0xc7c8e1(173),{value:!0});const axios_1=__importDefault(require(a52_0xc7c8e1(176))),config_1=__importDefault(require("../config")),constants_1=__importDefault(require("../constants")),https_1=__importDefault(require(a52_0xc7c8e1(159))),fetchAsync=(t,n,e,a,o="")=>__awaiter(void 0,void 0,void 0,function*(){const e=a52_0xc7c8e1,r={oyruZ:e(164)};if(!a[e(177)])throw new Error("No account email found");const c={"Content-Type":r.oyruZ,appCode:constants_1[e(178)][e(183)],appName:o,apiName:o};for(const[t,n]of Object[e(161)](a))c[t]=n;const s=yield axios_1[e(178)][e(186)](config_1[e(178)][e(184)],{query:t,variables:n},{headers:c,httpsAgent:void 0});return Promise[e(181)](s[e(166)])});exports[a52_0xc7c8e1(178)]=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";var a53_0x5117b3=a53_0x24c2;function MapToResponseObj(e,a,r){e[r]=a[r]}function a53_0x24c2(e,a){return e-=422,a53_0x54e3()[e]}function a53_0x54e3(){var e=["43593MIXraP","6835LMyEvc","362655HmNKEl","36djjWKp","326398NOOEYZ","552418gKoghh","6652368rIjqvL","default","15fdrcat","1828VDkwiU","defineProperty","MapToResponseObj","614782XbybMp","20hBnGLX"];return(a53_0x54e3=function(){return e})()}!function(){for(var e=a53_0x24c2,a=a53_0x54e3();;)try{if(421985===parseInt(e(423))/1+parseInt(e(422))/2*(-parseInt(e(426))/3)+-parseInt(e(427))/4*(parseInt(e(433))/5)+-parseInt(e(435))/6*(-parseInt(e(430))/7)+parseInt(e(424))/8+-parseInt(e(434))/9+parseInt(e(431))/10*(-parseInt(e(432))/11))break;a.push(a.shift())}catch(e){a.push(a.shift())}}(),Object[a53_0x5117b3(428)](exports,"__esModule",{value:!0}),exports[a53_0x5117b3(429)]=void 0,exports[a53_0x5117b3(429)]=MapToResponseObj,exports[a53_0x5117b3(425)]={MapToResponseObj:MapToResponseObj};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gofelix",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "GoFelix Library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build:prod": "cross-env NODE_ENV=production tsc --build ./tsconfig_prod.json && node scripts/replace-envs.js && node scripts/minify.js",
|
|
13
|
+
"build:prod:no_minify": "cross-env NODE_ENV=production tsc --build ./tsconfig_prod.json && node scripts/replace-envs.js",
|
|
13
14
|
"obfuscate": "javascript-obfuscator dist --output dist --compact true --control-flow-flattening true",
|
|
14
15
|
"add:copyright": "node add-license.js",
|
|
15
16
|
"lint": "eslint . --ext .ts",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"license": "Proprietary",
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@types/crypto-js": "^4.1.1",
|
|
25
|
+
"@types/express": "^5.0.6",
|
|
24
26
|
"@types/lodash": "^4.14.186",
|
|
25
27
|
"@types/node": "^18.8.5",
|
|
26
28
|
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
|
@@ -43,6 +45,7 @@
|
|
|
43
45
|
"dependencies": {
|
|
44
46
|
"axios": "^0.21.1",
|
|
45
47
|
"crypto-js": "^4.0.0",
|
|
48
|
+
"express": "^5.2.1",
|
|
46
49
|
"gofelix": "file:.yalc/gofelix",
|
|
47
50
|
"lodash": "^4.17.21",
|
|
48
51
|
"turndown": "^7.2.4"
|