gofelix 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/LICENSE.md +38 -0
  2. package/README.md +17 -0
  3. package/dist/config.js +11 -0
  4. package/dist/constants.js +11 -0
  5. package/dist/index.js +11 -0
  6. package/dist/queries/addFriend.js +11 -0
  7. package/dist/queries/addPendingFeedBackForm.js +11 -0
  8. package/dist/queries/addUserExperience.js +11 -0
  9. package/dist/queries/addUserMails.js +11 -0
  10. package/dist/queries/generateDiscountTokenFromUserAmount.js +11 -0
  11. package/dist/queries/getAllQRCodeUrl.js +11 -0
  12. package/dist/queries/getBiStats.js +11 -0
  13. package/dist/queries/getUserBulkData.js +11 -0
  14. package/dist/queries/getUserMails.js +11 -0
  15. package/dist/queries/getUserProfiles.js +11 -0
  16. package/dist/queries/logError.js +11 -0
  17. package/dist/queries/redeemDiscountCode.js +11 -0
  18. package/dist/queries/removeFriend.js +11 -0
  19. package/dist/queries/removePendingFeedbackLink.js +11 -0
  20. package/dist/queries/removeUserMail.js +11 -0
  21. package/dist/queries/subscribeToCompany.js +11 -0
  22. package/dist/queries/unSubscribeToCompany.js +11 -0
  23. package/dist/queries/updateUserProfile.js +11 -0
  24. package/dist/queries/updateUserSettings.js +11 -0
  25. package/dist/services/BI/companyNewsStats.js +11 -0
  26. package/dist/services/BI/discountStats.js +11 -0
  27. package/dist/services/BI/feedbackStats.js +11 -0
  28. package/dist/services/BI/getAllCompanyStats.js +11 -0
  29. package/dist/services/BI/getCompanyOverallStats.js +11 -0
  30. package/dist/services/BI/userExperienceStats.js +11 -0
  31. package/dist/services/Online/qrCode.js +11 -0
  32. package/dist/services/User/discountToken.js +11 -0
  33. package/dist/services/User/feedbackService.js +11 -0
  34. package/dist/services/User/friendService.js +11 -0
  35. package/dist/services/User/mailService.js +11 -0
  36. package/dist/services/User/subscribe.js +11 -0
  37. package/dist/services/User/userExperiences.js +11 -0
  38. package/dist/services/User/userProfile.js +11 -0
  39. package/dist/types/UserExperience.js +11 -0
  40. package/dist/types/commonTypes.js +11 -0
  41. package/dist/types/companyNewsTypes.js +11 -0
  42. package/dist/types/config.d.ts +6 -0
  43. package/dist/types/constants.d.ts +36 -0
  44. package/dist/types/discountTypes.js +11 -0
  45. package/dist/types/feedbackTypes.js +11 -0
  46. package/dist/types/friendTypes.js +11 -0
  47. package/dist/types/index.d.ts +105 -0
  48. package/dist/types/mailTypes.js +11 -0
  49. package/dist/types/qrCodes.js +11 -0
  50. package/dist/types/queries/addFriend.d.ts +2 -0
  51. package/dist/types/queries/addPendingFeedBackForm.d.ts +2 -0
  52. package/dist/types/queries/addUserExperience.d.ts +2 -0
  53. package/dist/types/queries/addUserMails.d.ts +2 -0
  54. package/dist/types/queries/generateDiscountTokenFromUserAmount.d.ts +2 -0
  55. package/dist/types/queries/getAllQRCodeUrl.d.ts +2 -0
  56. package/dist/types/queries/getBiStats.d.ts +2 -0
  57. package/dist/types/queries/getUserBulkData.d.ts +2 -0
  58. package/dist/types/queries/getUserMails.d.ts +2 -0
  59. package/dist/types/queries/getUserProfiles.d.ts +2 -0
  60. package/dist/types/queries/logError.d.ts +2 -0
  61. package/dist/types/queries/redeemDiscountCode.d.ts +2 -0
  62. package/dist/types/queries/removeFriend.d.ts +2 -0
  63. package/dist/types/queries/removePendingFeedbackLink.d.ts +2 -0
  64. package/dist/types/queries/removeUserMail.d.ts +2 -0
  65. package/dist/types/queries/subscribeToCompany.d.ts +2 -0
  66. package/dist/types/queries/unSubscribeToCompany.d.ts +2 -0
  67. package/dist/types/queries/updateUserProfile.d.ts +2 -0
  68. package/dist/types/queries/updateUserSettings.d.ts +2 -0
  69. package/dist/types/services/BI/companyNewsStats.d.ts +7 -0
  70. package/dist/types/services/BI/discountStats.d.ts +7 -0
  71. package/dist/types/services/BI/feedbackStats.d.ts +7 -0
  72. package/dist/types/services/BI/getAllCompanyStats.d.ts +7 -0
  73. package/dist/types/services/BI/getCompanyOverallStats.d.ts +7 -0
  74. package/dist/types/services/BI/userExperienceStats.d.ts +7 -0
  75. package/dist/types/services/Online/qrCode.d.ts +8 -0
  76. package/dist/types/services/User/discountToken.d.ts +6 -0
  77. package/dist/types/services/User/feedbackService.d.ts +8 -0
  78. package/dist/types/services/User/friendService.d.ts +8 -0
  79. package/dist/types/services/User/mailService.d.ts +11 -0
  80. package/dist/types/services/User/subscribe.d.ts +8 -0
  81. package/dist/types/services/User/userExperiences.d.ts +6 -0
  82. package/dist/types/services/User/userProfile.d.ts +13 -0
  83. package/dist/types/subscribeTypes.js +11 -0
  84. package/dist/types/types/UserExperience.d.ts +16 -0
  85. package/dist/types/types/commonTypes.d.ts +68 -0
  86. package/dist/types/types/companyNewsTypes.d.ts +32 -0
  87. package/dist/types/types/discountTypes.d.ts +35 -0
  88. package/dist/types/types/feedbackTypes.d.ts +41 -0
  89. package/dist/types/types/friendTypes.d.ts +47 -0
  90. package/dist/types/types/mailTypes.d.ts +29 -0
  91. package/dist/types/types/qrCodes.d.ts +27 -0
  92. package/dist/types/types/subscribeTypes.d.ts +21 -0
  93. package/dist/types/types/userTypes.d.ts +259 -0
  94. package/dist/types/userTypes.js +11 -0
  95. package/dist/types/utilities/fetch.d.ts +2 -0
  96. package/dist/types/utilities/mapper.d.ts +5 -0
  97. package/dist/utilities/fetch.js +11 -0
  98. package/dist/utilities/mapper.js +11 -0
  99. package/package.json +47 -0
@@ -0,0 +1,105 @@
1
+ import { BiConfig, OnlineConfig, UserConfig } from "./types/commonTypes";
2
+ declare type Config = {
3
+ bi?: BiConfig;
4
+ user?: UserConfig;
5
+ online?: OnlineConfig;
6
+ };
7
+ export declare const settings: {
8
+ env: string;
9
+ activateMockCalls: boolean;
10
+ mock: {
11
+ bi: {
12
+ getCompanyDiscountStatsAsync: () => void;
13
+ getCompanyFeedbackStatsAsync: () => void;
14
+ getCompanyNewsStatsAsync: () => void;
15
+ getCompanyOverallStatsAsync: () => void;
16
+ companyUserExperienceStatsAsync: () => void;
17
+ };
18
+ user: {
19
+ getUserProfilesAsync: () => void;
20
+ removeUserMailAsync: () => void;
21
+ getUserBulkDataAsync: () => void;
22
+ getUserMailsAsync: () => void;
23
+ addUserExperienceAsync: () => void;
24
+ subscribeToCompanyAsync: () => void;
25
+ unSubscribeToCompanyAsync: () => void;
26
+ updateUserProfileAsync: () => void;
27
+ generateDiscountTokenFromUserAmountAsync: () => void;
28
+ removePendingFeedbackLinkAsync: () => void;
29
+ addPendingFeedBackFormAsync: () => void;
30
+ updateUserSettingsAsync: () => void;
31
+ addFriendAsync: () => void;
32
+ removeFriendAsync: () => void;
33
+ addUserMailsAsync: () => void;
34
+ };
35
+ online: {
36
+ redeemDiscountCodeAsync: () => void;
37
+ getAllQRCodeUrlsAsync: () => void;
38
+ };
39
+ };
40
+ };
41
+ export declare const config: Config;
42
+ export declare const bi: {
43
+ getCompanyDiscountStatsAsync: () => Promise<import("./types/discountTypes").GetCompanyDiscountStatsResponse>;
44
+ getCompanyFeedbackStatsAsync: () => Promise<import("./types/feedbackTypes").GetCompanyFeedbackStatsResponse>;
45
+ getCompanyNewsStatsAsync: () => Promise<import("./types/companyNewsTypes").GetCompanyNewsStatsResponse>;
46
+ getCompanyOverallStatsAsync: () => Promise<import("./types/companyNewsTypes").GetCompanyOverallStatsResponse>;
47
+ companyUserExperienceStatsAsync: () => Promise<import("./types/userTypes").GetCompanyUserExperienceStatsResponse>;
48
+ getAllCompanyStatsAsync: () => Promise<import("./types/userTypes").GetAllCompanyStatsResponse>;
49
+ };
50
+ export declare const user: any;
51
+ export declare const online: {
52
+ getAllQRCodeUrlsAsync: (hashVariables: string) => Promise<import("./types/qrCodes").GetAllQRCodeUrlsResponse>;
53
+ redeemDiscountCodeAsync: (hashVariables: string) => Promise<import("./types/qrCodes").RedeemDiscountCodeResponse>;
54
+ };
55
+ declare const _default: {
56
+ config: Config;
57
+ bi: {
58
+ getCompanyDiscountStatsAsync: () => Promise<import("./types/discountTypes").GetCompanyDiscountStatsResponse>;
59
+ getCompanyFeedbackStatsAsync: () => Promise<import("./types/feedbackTypes").GetCompanyFeedbackStatsResponse>;
60
+ getCompanyNewsStatsAsync: () => Promise<import("./types/companyNewsTypes").GetCompanyNewsStatsResponse>;
61
+ getCompanyOverallStatsAsync: () => Promise<import("./types/companyNewsTypes").GetCompanyOverallStatsResponse>;
62
+ companyUserExperienceStatsAsync: () => Promise<import("./types/userTypes").GetCompanyUserExperienceStatsResponse>;
63
+ getAllCompanyStatsAsync: () => Promise<import("./types/userTypes").GetAllCompanyStatsResponse>;
64
+ };
65
+ user: any;
66
+ online: {
67
+ getAllQRCodeUrlsAsync: (hashVariables: string) => Promise<import("./types/qrCodes").GetAllQRCodeUrlsResponse>;
68
+ redeemDiscountCodeAsync: (hashVariables: string) => Promise<import("./types/qrCodes").RedeemDiscountCodeResponse>;
69
+ };
70
+ settings: {
71
+ env: string;
72
+ activateMockCalls: boolean;
73
+ mock: {
74
+ bi: {
75
+ getCompanyDiscountStatsAsync: () => void;
76
+ getCompanyFeedbackStatsAsync: () => void;
77
+ getCompanyNewsStatsAsync: () => void;
78
+ getCompanyOverallStatsAsync: () => void;
79
+ companyUserExperienceStatsAsync: () => void;
80
+ };
81
+ user: {
82
+ getUserProfilesAsync: () => void;
83
+ removeUserMailAsync: () => void;
84
+ getUserBulkDataAsync: () => void;
85
+ getUserMailsAsync: () => void;
86
+ addUserExperienceAsync: () => void;
87
+ subscribeToCompanyAsync: () => void;
88
+ unSubscribeToCompanyAsync: () => void;
89
+ updateUserProfileAsync: () => void;
90
+ generateDiscountTokenFromUserAmountAsync: () => void;
91
+ removePendingFeedbackLinkAsync: () => void;
92
+ addPendingFeedBackFormAsync: () => void;
93
+ updateUserSettingsAsync: () => void;
94
+ addFriendAsync: () => void;
95
+ removeFriendAsync: () => void;
96
+ addUserMailsAsync: () => void;
97
+ };
98
+ online: {
99
+ redeemDiscountCodeAsync: () => void;
100
+ getAllQRCodeUrlsAsync: () => void;
101
+ };
102
+ };
103
+ };
104
+ };
105
+ export default _default;
@@ -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 a41_0x5558a1=a41_0x56a8;function a41_0x56a8(_0x96f31,_0x2f594a){_0x96f31=_0x96f31-0x128;var _0x5c4718=a41_0x5c47();var _0x56a8b1=_0x5c4718[_0x96f31];return _0x56a8b1;}(function(_0x139f6f,_0x54c499){var _0x540a15=a41_0x56a8,_0x2126c1=_0x139f6f();while(!![]){try{var _0x3818a4=parseInt(_0x540a15(0x12a))/0x1*(parseInt(_0x540a15(0x130))/0x2)+parseInt(_0x540a15(0x12d))/0x3+-parseInt(_0x540a15(0x133))/0x4*(-parseInt(_0x540a15(0x128))/0x5)+-parseInt(_0x540a15(0x12f))/0x6*(-parseInt(_0x540a15(0x131))/0x7)+-parseInt(_0x540a15(0x134))/0x8+-parseInt(_0x540a15(0x12c))/0x9*(parseInt(_0x540a15(0x129))/0xa)+-parseInt(_0x540a15(0x12e))/0xb;if(_0x3818a4===_0x54c499)break;else _0x2126c1['push'](_0x2126c1['shift']());}catch(_0x1aaf09){_0x2126c1['push'](_0x2126c1['shift']());}}}(a41_0x5c47,0x2b0a2));function a41_0x5c47(){var _0x1da9f5=['1951746qeJGQJ','9722lHZqDy','7dcdvjt','__esModule','216Begnkm','1686288MzmQxO','27870pCzYOf','2090ZrNcHI','4dqiRaH','defineProperty','13176mIzLEf','431253enrjPM','1060730JRIPbi'];a41_0x5c47=function(){return _0x1da9f5;};return a41_0x5c47();}Object[a41_0x5558a1(0x12b)](exports,a41_0x5558a1(0x132),{'value':!![]});
@@ -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 a42_0x26e574=a42_0x2d07;(function(_0x74119c,_0x4c3903){var _0x27c668=a42_0x2d07,_0x5d3483=_0x74119c();while(!![]){try{var _0x217a00=-parseInt(_0x27c668(0x177))/0x1+parseInt(_0x27c668(0x16e))/0x2*(-parseInt(_0x27c668(0x172))/0x3)+parseInt(_0x27c668(0x171))/0x4+-parseInt(_0x27c668(0x170))/0x5+parseInt(_0x27c668(0x175))/0x6+-parseInt(_0x27c668(0x173))/0x7*(-parseInt(_0x27c668(0x16d))/0x8)+-parseInt(_0x27c668(0x176))/0x9;if(_0x217a00===_0x4c3903)break;else _0x5d3483['push'](_0x5d3483['shift']());}catch(_0x1ddbb5){_0x5d3483['push'](_0x5d3483['shift']());}}}(a42_0x1f63,0xa455f));function a42_0x2d07(_0x565e08,_0x386d91){_0x565e08=_0x565e08-0x16d;var _0x1f6307=a42_0x1f63();var _0x2d0712=_0x1f6307[_0x565e08];return _0x2d0712;}function a42_0x1f63(){var _0x1acf7e=['32lEVYIt','24556bbYfhJ','defineProperty','4695585uTUbFG','12048ObbOZD','48gVQIhw','1386798WOPByV','__esModule','7475328NVebxz','1225224SbTiZv','96536REQvCl'];a42_0x1f63=function(){return _0x1acf7e;};return a42_0x1f63();}Object[a42_0x26e574(0x16f)](exports,a42_0x26e574(0x174),{'value':!![]});
@@ -0,0 +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";
2
+ export default addFriend;
@@ -0,0 +1,2 @@
1
+ declare 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";
2
+ export default addPendingFeedBackForm;
@@ -0,0 +1,2 @@
1
+ declare 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";
2
+ export default addUserExperience;
@@ -0,0 +1,2 @@
1
+ declare const addUserMails = "\n mutation addUserMails($mails: [mailInput]!) {\n addUserMails(mails: $mails) {\n hasUpdated\n isSuccess\n errorMessage\n errorCode\n }\n }\n";
2
+ export default addUserMails;
@@ -0,0 +1,2 @@
1
+ declare 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";
2
+ export default generateDiscountTokenFromUserAmount;
@@ -0,0 +1,2 @@
1
+ declare 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 ";
2
+ export default getAllQRCodeUrls;
@@ -0,0 +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 ";
2
+ export default goFelixBiLogin;
@@ -0,0 +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 }";
2
+ export default getUserBulkData;
@@ -0,0 +1,2 @@
1
+ declare 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";
2
+ export default getUserMails;
@@ -0,0 +1,2 @@
1
+ declare 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";
2
+ export default getUserProfiles;
@@ -0,0 +1,2 @@
1
+ declare const logError = "\n mutation logError($errorDetails: ErrorDetailsInput!){\n logError(errorDetails: $errorDetails){\n isLogged\n isSuccess\n errorCode\n errorMessage\n }\n }\n";
2
+ export default logError;
@@ -0,0 +1,2 @@
1
+ declare const redeemDiscountCode = "\n query redeemDiscountToken(\n $discountToken: String\n $discountCode: String\n $userName: String\n $discountInputType: DiscountInputType\n $hashVariables: String\n $discountedAmount: Float\n ) {\n redeemDiscountToken(\n discountToken: $discountToken\n discountCode: $discountCode\n userName: $userName\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
+ export default redeemDiscountCode;
@@ -0,0 +1,2 @@
1
+ declare const removeFriend = "\n mutation removeFriend($friendUserName: String!) {\n removeFriend(friendUserName: $friendUserName) {\n isRemoveFriendSuccess\n isSuccess\n errorMessage\n errorCode\n }\n }\n";
2
+ export default removeFriend;
@@ -0,0 +1,2 @@
1
+ declare const removePendingFeedbackLink = "\n mutation removePendingFeedbackLink($advertId: Int!) {\n removePendingFeedbackLink(advertId: $advertId) {\n pendingFeedbackRemoved\n isSuccess\n errorMessage\n errorCode\n }\n }\n";
2
+ export default removePendingFeedbackLink;
@@ -0,0 +1,2 @@
1
+ declare const removeUserMail = "\nquery removeUserMail($mailId: Int!) {\n removeUserMail(mailId: $mailId) {\n mailRemoved\n isSuccess\n errorCode\n errorMessage\n }\n }\n";
2
+ export default removeUserMail;
@@ -0,0 +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";
2
+ export default subscribeToCompany;
@@ -0,0 +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";
2
+ export default unSubscribeToCompany;
@@ -0,0 +1,2 @@
1
+ declare const updateUserProfile = "\n mutation updateUserProfile ($userProfileInput: userProfileInput!){\n updateUserProfile(userProfile: $userProfileInput){\n isUserProfileUpdated\n isSuccess\n errorCode\n errorMessage\n }\n }\n";
2
+ export default updateUserProfile;
@@ -0,0 +1,2 @@
1
+ declare const updateUserSettings = "\n mutation updateUserSettings($settings: userSettingsInput!) {\n updateUserSettings(settings: $settings) {\n hasUpdatedSuccess\n isSuccess\n errorCode\n errorMessage\n }\n }\n";
2
+ export default updateUserSettings;
@@ -0,0 +1,7 @@
1
+ import { GetCompanyNewsStatsResponse } from '../../types/companyNewsTypes';
2
+ import { BiConfig } from '../../types/commonTypes';
3
+ export declare const getCompanyNewsStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyNewsStatsResponse>;
4
+ declare const _default: {
5
+ getCompanyNewsStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyNewsStatsResponse>;
6
+ };
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { BiConfig } from '../../types/commonTypes';
2
+ import { GetCompanyDiscountStatsResponse } from '../../types/discountTypes';
3
+ export declare const getCompanyDiscountStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyDiscountStatsResponse>;
4
+ declare const _default: {
5
+ getCompanyDiscountStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyDiscountStatsResponse>;
6
+ };
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { BiConfig } from '../../types/commonTypes';
2
+ import { GetCompanyFeedbackStatsResponse } from '../../types/feedbackTypes';
3
+ export declare const getCompanyFeedbackStats: (biConfig: BiConfig) => Promise<GetCompanyFeedbackStatsResponse>;
4
+ declare const _default: {
5
+ getCompanyFeedbackStats: (biConfig: BiConfig) => Promise<GetCompanyFeedbackStatsResponse>;
6
+ };
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { BiConfig } from '../../types/commonTypes';
2
+ import { GetAllCompanyStatsResponse } from '../../types/userTypes';
3
+ export declare const getAllCompanyStatsAsync: (biConfig: BiConfig) => Promise<GetAllCompanyStatsResponse>;
4
+ declare const _default: {
5
+ getAllCompanyStatsAsync: (biConfig: BiConfig) => Promise<GetAllCompanyStatsResponse>;
6
+ };
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { BiConfig } from '../../types/commonTypes';
2
+ import { GetCompanyOverallStatsResponse } from '../../types/companyNewsTypes';
3
+ export declare const getCompanyOverallStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyOverallStatsResponse>;
4
+ declare const _default: {
5
+ getCompanyOverallStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyOverallStatsResponse>;
6
+ };
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { BiConfig } from '../../types/commonTypes';
2
+ import { GetCompanyUserExperienceStatsResponse } from '../../types/userTypes';
3
+ export declare const getCompanyUserExperienceStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyUserExperienceStatsResponse>;
4
+ declare const _default: {
5
+ getCompanyUserExperienceStatsAsync: (biConfig: BiConfig) => Promise<GetCompanyUserExperienceStatsResponse>;
6
+ };
7
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { GetAllQRCodeUrlsArgs, GetAllQRCodeUrlsResponse, RedeemDiscountCodeArgs, RedeemDiscountCodeResponse } from '../../types/qrCodes';
2
+ export declare const getAllQRCodeUrlsAsync: (args: GetAllQRCodeUrlsArgs) => Promise<GetAllQRCodeUrlsResponse>;
3
+ export declare const redeemDiscountCodeAsync: (args: RedeemDiscountCodeArgs) => Promise<RedeemDiscountCodeResponse>;
4
+ declare const _default: {
5
+ getAllQRCodeUrlsAsync: (args: GetAllQRCodeUrlsArgs) => Promise<GetAllQRCodeUrlsResponse>;
6
+ redeemDiscountCodeAsync: (args: RedeemDiscountCodeArgs) => Promise<RedeemDiscountCodeResponse>;
7
+ };
8
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { GenerateDiscountTokenFromUserAmountArgs, GenerateDiscountTokenFromUserAmountResponse } from "../../types/discountTypes";
2
+ export declare const generateDiscountTokenFromUserAmountAsync: (args: GenerateDiscountTokenFromUserAmountArgs) => Promise<GenerateDiscountTokenFromUserAmountResponse>;
3
+ declare const _default: {
4
+ generateDiscountTokenFromUserAmountAsync: (args: GenerateDiscountTokenFromUserAmountArgs) => Promise<GenerateDiscountTokenFromUserAmountResponse>;
5
+ };
6
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { AddPendingFeedBackFormArgs, AddPendingFeedBackFormResponse, RemovePendingFeedbackLinkArgs, RemovePendingFeedbackLinkResponse } from "../../types/feedbackTypes";
2
+ export declare const removePendingFeedbackLinkAsync: (args: RemovePendingFeedbackLinkArgs) => Promise<RemovePendingFeedbackLinkResponse>;
3
+ export declare const addPendingFeedBackFormAsync: (args: AddPendingFeedBackFormArgs) => Promise<AddPendingFeedBackFormResponse>;
4
+ declare const _default: {
5
+ removePendingFeedbackLinkAsync: (args: RemovePendingFeedbackLinkArgs) => Promise<RemovePendingFeedbackLinkResponse>;
6
+ addPendingFeedBackFormAsync: (args: AddPendingFeedBackFormArgs) => Promise<AddPendingFeedBackFormResponse>;
7
+ };
8
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { AddFriendArgs, AddFriendResponse, RemoveFriendArgs, RemoveFriendResponse } from "../../types/friendTypes";
2
+ export declare const addFriendAsync: (args: AddFriendArgs) => Promise<AddFriendResponse>;
3
+ export declare const removeFriendAsync: (args: RemoveFriendArgs) => Promise<RemoveFriendResponse>;
4
+ declare const _default: {
5
+ addFriendAsync: (args: AddFriendArgs) => Promise<AddFriendResponse>;
6
+ removeFriendAsync: (args: RemoveFriendArgs) => Promise<RemoveFriendResponse>;
7
+ };
8
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { AddUserMailsArgs, AddUserMailsResponse, GetUserMailsResponse, RemoveUserMailArgs, RemoveUserMailResponse } from "../../types/mailTypes";
2
+ import { UserConfig } from "../../types/commonTypes";
3
+ export declare const removeUserMailAsync: (args: RemoveUserMailArgs) => Promise<RemoveUserMailResponse>;
4
+ export declare const getUserMailsAsync: (userConfig: UserConfig, accessToken: string) => Promise<GetUserMailsResponse>;
5
+ export declare const addUserMailsAsync: (args: AddUserMailsArgs) => Promise<AddUserMailsResponse>;
6
+ declare const _default: {
7
+ removeUserMailAsync: (args: RemoveUserMailArgs) => Promise<RemoveUserMailResponse>;
8
+ getUserMailsAsync: (userConfig: UserConfig, accessToken: string) => Promise<GetUserMailsResponse>;
9
+ addUserMailsAsync: (args: AddUserMailsArgs) => Promise<AddUserMailsResponse>;
10
+ };
11
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { SubscribeToCompanyArgs, SubscribeToCompanyResponse, UnSubscribeToCompanyArgs, UnSubscribeToCompanyResponse } from "../../types/subscribeTypes";
2
+ export declare const subscribeToCompanyAsync: (args: SubscribeToCompanyArgs) => Promise<SubscribeToCompanyResponse>;
3
+ export declare const unSubscribeToCompanyAsync: (args: UnSubscribeToCompanyArgs) => Promise<UnSubscribeToCompanyResponse>;
4
+ declare const _default: {
5
+ subscribeToCompanyAsync: (args: SubscribeToCompanyArgs) => Promise<SubscribeToCompanyResponse>;
6
+ unSubscribeToCompanyAsync: (args: UnSubscribeToCompanyArgs) => Promise<UnSubscribeToCompanyResponse>;
7
+ };
8
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { AddUserExperienceArgs, AddUserExperienceResponse } from "../../types/UserExperience";
2
+ export declare const addUserExperienceAsync: (args: AddUserExperienceArgs) => Promise<AddUserExperienceResponse>;
3
+ declare const _default: {
4
+ addUserExperienceAsync: (args: AddUserExperienceArgs) => Promise<AddUserExperienceResponse>;
5
+ };
6
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { GetUserBulkDataResponse, GetUserProfilesArgs, GetUserProfilesResponse, UpdateUserProfileArgs, UpdateUserProfileResponse, UpdateUserSettingsArgs, UpdateUserSettingsResponse } from "../../types/userTypes";
2
+ import { UserConfig } from "../../types/commonTypes";
3
+ export declare const getUserProfilesAsync: (args: GetUserProfilesArgs) => Promise<GetUserProfilesResponse>;
4
+ export declare const getUserBulkDataAsync: (userConfig: UserConfig, accessToken: string) => Promise<GetUserBulkDataResponse>;
5
+ export declare const updateUserProfileAsync: (args: UpdateUserProfileArgs) => Promise<UpdateUserProfileResponse>;
6
+ export declare const updateUserSettingsAsync: (args: UpdateUserSettingsArgs) => Promise<UpdateUserSettingsResponse>;
7
+ declare const _default: {
8
+ getUserProfilesAsync: (args: GetUserProfilesArgs) => Promise<GetUserProfilesResponse>;
9
+ getUserBulkDataAsync: (userConfig: UserConfig, accessToken: string) => Promise<GetUserBulkDataResponse>;
10
+ updateUserProfileAsync: (args: UpdateUserProfileArgs) => Promise<UpdateUserProfileResponse>;
11
+ updateUserSettingsAsync: (args: UpdateUserSettingsArgs) => Promise<UpdateUserSettingsResponse>;
12
+ };
13
+ export default _default;
@@ -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 a43_0x319e32=a43_0x51ec;(function(_0x3f4948,_0x500638){var _0x227674=a43_0x51ec,_0x67abaf=_0x3f4948();while(!![]){try{var _0x63e160=parseInt(_0x227674(0x162))/0x1+-parseInt(_0x227674(0x169))/0x2*(parseInt(_0x227674(0x16a))/0x3)+parseInt(_0x227674(0x168))/0x4*(-parseInt(_0x227674(0x164))/0x5)+parseInt(_0x227674(0x163))/0x6*(-parseInt(_0x227674(0x165))/0x7)+parseInt(_0x227674(0x160))/0x8+-parseInt(_0x227674(0x15f))/0x9+parseInt(_0x227674(0x167))/0xa*(parseInt(_0x227674(0x161))/0xb);if(_0x63e160===_0x500638)break;else _0x67abaf['push'](_0x67abaf['shift']());}catch(_0x5401a9){_0x67abaf['push'](_0x67abaf['shift']());}}}(a43_0x42dd,0x4ed44));function a43_0x51ec(_0x286e62,_0x221f03){_0x286e62=_0x286e62-0x15f;var _0x42dd9b=a43_0x42dd();var _0x51ec40=_0x42dd9b[_0x286e62];return _0x51ec40;}function a43_0x42dd(){var _0x470b45=['2480625EGIaZp','1079304QiJbdV','3584867NplUFW','118125uisUsp','2730RTMbPs','1398685KRslvL','2373ddzOtn','__esModule','30HMAdQc','4ZSRBWM','396476zVyMbN','3aCZJju'];a43_0x42dd=function(){return _0x470b45;};return a43_0x42dd();}Object['defineProperty'](exports,a43_0x319e32(0x166),{'value':!![]});
@@ -0,0 +1,16 @@
1
+ import { BaseResponse, UserConfig } from './commonTypes';
2
+ export declare type AddUserExperienceArgs = {
3
+ experience: string;
4
+ experienceCategory: string;
5
+ rate: string;
6
+ updateIntervalHours: number;
7
+ userConfig: UserConfig;
8
+ accessToken: string;
9
+ companyName: string;
10
+ advertId: number;
11
+ branchName: string;
12
+ };
13
+ export declare type AddUserExperienceResponse = BaseResponse & {
14
+ isSuccess: boolean;
15
+ isUserExperienceAdded: boolean;
16
+ };
@@ -0,0 +1,68 @@
1
+ export declare type ErrorDetails = {
2
+ userName?: string;
3
+ email?: string;
4
+ app: string;
5
+ env: string;
6
+ argumentsPassedIn?: string;
7
+ codeLocation: string;
8
+ error: string;
9
+ appCode?: string;
10
+ };
11
+ export declare type BaseResponse = {
12
+ errorCode: string;
13
+ errorMessage: string;
14
+ isSuccess: boolean;
15
+ errorDetails?: ErrorDetails;
16
+ };
17
+ declare type BiMockCalls = {
18
+ getCompanyNewsStatsAsync: any;
19
+ getCompanyDiscountStatsAsync: any;
20
+ getCompanyFeedbackStatsAsync: any;
21
+ getCompanyOverallStatsAsync: any;
22
+ companyUserExperienceStatsAsync: any;
23
+ };
24
+ declare type UserMockCalls = {
25
+ generateDiscountTokenFromUserAmountAsync: any;
26
+ removePendingFeedbackLinkAsync: any;
27
+ addPendingFeedBackFormAsync: any;
28
+ addFriendAsync: any;
29
+ removeFriendAsync: any;
30
+ removeUserMailAsync: any;
31
+ getUserMailsAsync: any;
32
+ addUserMailsAsync: any;
33
+ subscribeToCompanyAsync: any;
34
+ unSubscribeToCompanyAsync: any;
35
+ addUserExperienceAsync: any;
36
+ getUserProfilesAsync: any;
37
+ getUserBulkDataAsync: any;
38
+ updateUserProfileAsync: any;
39
+ updateUserSettingsAsync: any;
40
+ };
41
+ declare type OnlineMockCalls = {
42
+ getAllQRCodeUrlsAsync: any;
43
+ redeemDiscountCodeAsync: any;
44
+ };
45
+ export declare type BiConfig = {
46
+ apiKey: any;
47
+ activateMockCalls?: boolean;
48
+ mockCalls?: BiMockCalls | null;
49
+ accountEmail: string;
50
+ origin: string;
51
+ };
52
+ export declare type OnlineConfig = {
53
+ apiKey: string;
54
+ activateMockCalls?: boolean;
55
+ accountEmail: string;
56
+ mockCalls?: OnlineMockCalls | null;
57
+ origin: string;
58
+ };
59
+ export declare type Token = {
60
+ accessToken: string;
61
+ };
62
+ export declare type UserConfig = {
63
+ activateMockCalls?: boolean;
64
+ accountEmail: string;
65
+ mockCalls?: UserMockCalls | null;
66
+ origin: string;
67
+ };
68
+ export {};
@@ -0,0 +1,32 @@
1
+ import { BaseResponse } from './commonTypes';
2
+ export declare type CompanyNewsStats = {
3
+ companyName: String;
4
+ visitAdvertTotal: String;
5
+ advertId: String;
6
+ visitVendorUrlTotal: String;
7
+ visitVendorUrl: String;
8
+ branchId: String;
9
+ };
10
+ export declare type CompanyStats = {
11
+ companyName: String;
12
+ discountCompanyNameSearchTotal: String;
13
+ feedbackCompanyNameSearchTotal: String;
14
+ companyNewsCompanyNameSearchTotal: String;
15
+ totalDiscountsRedeemed: String;
16
+ unsubscribeTotal: String;
17
+ subscribeTotal: String;
18
+ totalDiscountAmount: String;
19
+ };
20
+ export declare type GetCompanyNewsStatsResponse = BaseResponse & {
21
+ companyNewsStats: CompanyNewsStats;
22
+ isSuccess: boolean;
23
+ };
24
+ export declare type GetCompanyOverallStatsResponse = BaseResponse & {
25
+ companyStats: CompanyStats;
26
+ isSuccess: boolean;
27
+ };
28
+ export declare type GetAllCompanyStats = BaseResponse & {
29
+ companyStats: CompanyStats;
30
+ companyNewsStats: CompanyNewsStats;
31
+ isSuccess: boolean;
32
+ };
@@ -0,0 +1,35 @@
1
+ import { BaseResponse, UserConfig } from './commonTypes';
2
+ export declare type DiscountStats = {
3
+ companyName: String;
4
+ visitAdvertTotal: String;
5
+ advertId: String;
6
+ visitVendorUrlTotal: String;
7
+ branchId: String;
8
+ };
9
+ export declare type GenerateDiscountTokenFromUserAmountArgs = {
10
+ adjustedAmount: number;
11
+ companyName: string;
12
+ userConfig: UserConfig;
13
+ accessToken: string;
14
+ branchName: string;
15
+ };
16
+ export declare type GetCompanyDiscountStatsResponse = BaseResponse & {
17
+ discountStats: DiscountStats;
18
+ isSuccess: boolean;
19
+ };
20
+ export declare type Discount = {
21
+ title: String;
22
+ companyName: String;
23
+ discountType: String;
24
+ amount: number;
25
+ status: String;
26
+ tagNo: String;
27
+ discountToken: String;
28
+ onlineDiscountCode: String;
29
+ fullAmountConverted: Boolean;
30
+ rewardText: String;
31
+ };
32
+ export declare type GenerateDiscountTokenFromUserAmountResponse = BaseResponse & {
33
+ discountGenerated: boolean;
34
+ discount: Discount;
35
+ };
@@ -0,0 +1,41 @@
1
+ import { BaseResponse, UserConfig } from './commonTypes';
2
+ export declare type FeedbackStats = {
3
+ companyName: String;
4
+ visitAdvertTotal: String;
5
+ visitVendorUrl: String;
6
+ advertId: String;
7
+ viewedFeedbackFormTotal: String;
8
+ completedFeedbackFormTotal: String;
9
+ branchId: String;
10
+ };
11
+ export declare type RemovePendingFeedbackLinkArgs = {
12
+ advertId: number;
13
+ userConfig: UserConfig;
14
+ accessToken: string;
15
+ };
16
+ export declare type AddPendingFeedBackFormArgs = {
17
+ advertId: number;
18
+ companyName: string;
19
+ userConfig: UserConfig;
20
+ accessToken: string;
21
+ };
22
+ export declare type PendingFeedbackLink = {
23
+ title: String;
24
+ expiry: String;
25
+ feedbackFormOnlineUrl: String;
26
+ advertId: number;
27
+ companyName: String;
28
+ id: number;
29
+ };
30
+ export declare type GetCompanyFeedbackStatsResponse = BaseResponse & {
31
+ feedbackStats: FeedbackStats;
32
+ isSuccess: boolean;
33
+ };
34
+ export declare type RemovePendingFeedbackLinkResponse = BaseResponse & {
35
+ isSuccess: boolean;
36
+ pendingFeedbackRemoved: boolean;
37
+ };
38
+ export declare type AddPendingFeedBackFormResponse = BaseResponse & {
39
+ pendingFeedbackAdded: boolean;
40
+ pendingFeedbackLink: PendingFeedbackLink;
41
+ };