gofelix 1.2.1 → 1.2.3

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 (73) hide show
  1. package/dist/config.js +1 -1
  2. package/dist/constants.js +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/queries/addFriend.js +1 -1
  5. package/dist/queries/addPendingFeedBackForm.js +1 -1
  6. package/dist/queries/addRedeemAccessClientCompanyName.js +11 -0
  7. package/dist/queries/addUserExperience.js +1 -1
  8. package/dist/queries/addUserMails.js +1 -1
  9. package/dist/queries/generateDiscountTokenFromUserAmount.js +1 -1
  10. package/dist/queries/getAllQRCodeUrl.js +1 -1
  11. package/dist/queries/getBiStats.js +1 -1
  12. package/dist/queries/getUserAccessTokenFromActivationCode.js +1 -1
  13. package/dist/queries/getUserBulkData.js +1 -1
  14. package/dist/queries/getUserMails.js +1 -1
  15. package/dist/queries/getUserProfiles.js +1 -1
  16. package/dist/queries/logError.js +1 -1
  17. package/dist/queries/redeemDiscountCode.js +1 -1
  18. package/dist/queries/removeFriend.js +1 -1
  19. package/dist/queries/removePendingFeedbackLink.js +1 -1
  20. package/dist/queries/removeRedeemAccessClientCompanyName.js +11 -0
  21. package/dist/queries/removeUserMail.js +1 -1
  22. package/dist/queries/subscribeToCompany.js +1 -1
  23. package/dist/queries/unSubscribeToCompany.js +1 -1
  24. package/dist/queries/updateUserProfile.js +1 -1
  25. package/dist/queries/updateUserSettings.js +1 -1
  26. package/dist/queries/userApiLogout.js +1 -1
  27. package/dist/queries/viewRedeemAccessClientCompanies.js +11 -0
  28. package/dist/services/BI/companyNewsStats.js +1 -1
  29. package/dist/services/BI/discountStats.js +1 -1
  30. package/dist/services/BI/feedbackStats.js +1 -1
  31. package/dist/services/BI/getAllCompanyStats.js +1 -1
  32. package/dist/services/BI/getCompanyOverallStats.js +1 -1
  33. package/dist/services/BI/userExperienceStats.js +1 -1
  34. package/dist/services/OAuth/callback.js +1 -1
  35. package/dist/services/OAuth/index.js +1 -1
  36. package/dist/services/OAuth/logout.js +1 -1
  37. package/dist/services/Online/qrCode.js +1 -1
  38. package/dist/services/User/discountToken.js +1 -1
  39. package/dist/services/User/feedbackService.js +1 -1
  40. package/dist/services/User/friendService.js +1 -1
  41. package/dist/services/User/mailService.js +1 -1
  42. package/dist/services/User/subscribe.js +1 -1
  43. package/dist/services/User/userExperiences.js +1 -1
  44. package/dist/services/User/userProfile.js +1 -1
  45. package/dist/types/UserExperience.js +1 -1
  46. package/dist/types/commonTypes.js +1 -1
  47. package/dist/types/companyNewsTypes.js +1 -1
  48. package/dist/types/constants.d.ts +3 -0
  49. package/dist/types/discountTypes.js +1 -1
  50. package/dist/types/feedbackTypes.js +1 -1
  51. package/dist/types/friendTypes.js +1 -1
  52. package/dist/types/index.d.ts +12 -0
  53. package/dist/types/mailTypes.js +1 -1
  54. package/dist/types/oAuthTypes.js +1 -1
  55. package/dist/types/qrCodes.js +1 -1
  56. package/dist/types/queries/addRedeemAccessClientCompanyName.d.ts +2 -0
  57. package/dist/types/queries/removeRedeemAccessClientCompanyName.d.ts +2 -0
  58. package/dist/types/queries/viewRedeemAccessClientCompanies.d.ts +2 -0
  59. package/dist/types/services/BI/companyNewsStats.d.ts +2 -2
  60. package/dist/types/services/BI/discountStats.d.ts +2 -2
  61. package/dist/types/services/BI/feedbackStats.d.ts +2 -2
  62. package/dist/types/services/BI/getAllCompanyStats.d.ts +2 -2
  63. package/dist/types/services/BI/getCompanyOverallStats.d.ts +2 -2
  64. package/dist/types/services/BI/userExperienceStats.d.ts +2 -2
  65. package/dist/types/services/Online/qrCode.d.ts +7 -1
  66. package/dist/types/subscribeTypes.js +1 -1
  67. package/dist/types/types/commonTypes.d.ts +3 -0
  68. package/dist/types/types/qrCodes.d.ts +23 -1
  69. package/dist/types/userTypes.js +1 -1
  70. package/dist/types/utilities/fetch.d.ts +1 -1
  71. package/dist/utilities/fetch.js +1 -1
  72. package/dist/utilities/mapper.js +1 -1
  73. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { GetCompanyNewsStatsResponse } from '../../types/companyNewsTypes';
2
- import { BiConfig } from '../../types/commonTypes';
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 '../../types/commonTypes';
2
- import { GetCompanyDiscountStatsResponse } from '../../types/discountTypes';
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 '../../types/commonTypes';
2
- import { GetCompanyFeedbackStatsResponse } from '../../types/feedbackTypes';
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 '../../types/commonTypes';
2
- import { GetAllCompanyStatsResponse } from '../../types/userTypes';
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 '../../types/commonTypes';
2
- import { GetCompanyOverallStatsResponse } from '../../types/companyNewsTypes';
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 '../../types/commonTypes';
2
- import { GetCompanyUserExperienceStatsResponse } from '../../types/userTypes';
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,8 +1,14 @@
1
- import { GetAllQRCodeUrlsArgs, GetAllQRCodeUrlsResponse, RedeemDiscountCodeArgs, RedeemDiscountCodeResponse } from '../../types/qrCodes';
1
+ import { AddRedeemAccessClientCompanyNameArgs, AddRedeemAccessClientCompanyNameResponse, GetAllQRCodeUrlsArgs, GetAllQRCodeUrlsResponse, RedeemDiscountCodeArgs, RedeemDiscountCodeResponse, RemoveRedeemAccessClientCompanyNameArgs, RemoveRedeemAccessClientCompanyNameResponse, ViewRedeemAccessClientCompaniesArgs, ViewRedeemAccessClientCompaniesResponse } from "../../types/qrCodes";
2
2
  export declare const getAllQRCodeUrlsAsync: (args: GetAllQRCodeUrlsArgs) => Promise<GetAllQRCodeUrlsResponse>;
3
+ export declare const addRedeemAccessClientCompanyNameAsync: (args: AddRedeemAccessClientCompanyNameArgs) => Promise<AddRedeemAccessClientCompanyNameResponse>;
4
+ export declare const viewRedeemAccessClientCompaniesAsync: (args: ViewRedeemAccessClientCompaniesArgs) => Promise<ViewRedeemAccessClientCompaniesResponse>;
5
+ export declare const removeRedeemAccessClientCompanyNameAsync: (args: RemoveRedeemAccessClientCompanyNameArgs) => Promise<RemoveRedeemAccessClientCompanyNameResponse>;
3
6
  export declare const redeemDiscountCodeAsync: (args: RedeemDiscountCodeArgs) => Promise<RedeemDiscountCodeResponse>;
4
7
  declare const _default: {
5
8
  getAllQRCodeUrlsAsync: (args: GetAllQRCodeUrlsArgs) => Promise<GetAllQRCodeUrlsResponse>;
6
9
  redeemDiscountCodeAsync: (args: RedeemDiscountCodeArgs) => Promise<RedeemDiscountCodeResponse>;
10
+ addRedeemAccessClientCompanyNameAsync: (args: AddRedeemAccessClientCompanyNameArgs) => Promise<AddRedeemAccessClientCompanyNameResponse>;
11
+ viewRedeemAccessClientCompaniesAsync: (args: ViewRedeemAccessClientCompaniesArgs) => Promise<ViewRedeemAccessClientCompaniesResponse>;
12
+ removeRedeemAccessClientCompanyNameAsync: (args: RemoveRedeemAccessClientCompanyNameArgs) => Promise<RemoveRedeemAccessClientCompanyNameResponse>;
7
13
  };
8
14
  export default _default;
@@ -8,4 +8,4 @@
8
8
  * Unauthorized copying of this file, via any medium, is strictly prohibited.
9
9
  * Proprietary and confidential.
10
10
  */
11
- "use strict";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});
11
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
@@ -43,6 +43,9 @@ declare type UserMockCalls = {
43
43
  declare type OnlineMockCalls = {
44
44
  getAllQRCodeUrlsAsync: any;
45
45
  redeemDiscountCodeAsync: any;
46
+ addRedeemAccessClientCompanyNameAsync: any;
47
+ viewRedeemAccessClientCompaniesAsync: any;
48
+ removeRedeemAccessClientCompanyNameAsync: any;
46
49
  };
47
50
  export declare type BiConfig = {
48
51
  apiKey: any;
@@ -1,10 +1,14 @@
1
- import { BaseResponse, OnlineConfig } from './commonTypes';
1
+ import { BaseResponse, OnlineConfig } from "./commonTypes";
2
2
  export declare type GetAllQRCodeUrlsArgs = {
3
3
  hashVariables: string;
4
4
  onlineConfig: OnlineConfig;
5
5
  accountEmail: string;
6
6
  apiKey: string;
7
7
  };
8
+ export declare type AddRedeemAccessClientCompanyNameArgs = {
9
+ onlineConfig: OnlineConfig;
10
+ clientCompanyName: string;
11
+ };
8
12
  export declare type QrUrls = {
9
13
  url: String;
10
14
  advertId: number;
@@ -17,6 +21,24 @@ export declare type RedeemDiscountCodeArgs = {
17
21
  accountEmail: string;
18
22
  apiKey: string;
19
23
  };
24
+ export declare type RemoveRedeemAccessClientCompanyNameArgs = {
25
+ onlineConfig: OnlineConfig;
26
+ clientCompanyName: string;
27
+ };
28
+ export declare type ViewRedeemAccessClientCompaniesArgs = {
29
+ onlineConfig: OnlineConfig;
30
+ accountEmail: string;
31
+ apiKey: string;
32
+ };
33
+ export declare type ViewRedeemAccessClientCompaniesResponse = BaseResponse & {
34
+ clientCompanies: string[];
35
+ };
36
+ export declare type RemoveRedeemAccessClientCompanyNameResponse = BaseResponse & {
37
+ IsRemoved: boolean;
38
+ };
39
+ export declare type AddRedeemAccessClientCompanyNameResponse = BaseResponse & {
40
+ IsAdded: boolean;
41
+ };
20
42
  export declare type GetAllQRCodeUrlsResponse = BaseResponse & {
21
43
  qrUrls: QrUrls[];
22
44
  isSuccess: boolean;
@@ -8,4 +8,4 @@
8
8
  * Unauthorized copying of this file, via any medium, is strictly prohibited.
9
9
  * Proprietary and confidential.
10
10
  */
11
- "use strict";var 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});
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;
@@ -8,4 +8,4 @@
8
8
  * Unauthorized copying of this file, via any medium, is strictly prohibited.
9
9
  * Proprietary and confidential.
10
10
  */
11
- "use strict";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;
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;
@@ -8,4 +8,4 @@
8
8
  * Unauthorized copying of this file, via any medium, is strictly prohibited.
9
9
  * Proprietary and confidential.
10
10
  */
11
- "use strict";var 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};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gofelix",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "GoFelix Library",
5
5
  "main": "./dist/index.js",
6
6
  "files": [