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.
- package/dist/config.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.js +1 -1
- package/dist/queries/addFriend.js +1 -1
- package/dist/queries/addPendingFeedBackForm.js +1 -1
- package/dist/queries/addRedeemAccessClientCompanyName.js +11 -0
- package/dist/queries/addUserExperience.js +1 -1
- package/dist/queries/addUserMails.js +1 -1
- package/dist/queries/generateDiscountTokenFromUserAmount.js +1 -1
- package/dist/queries/getAllQRCodeUrl.js +1 -1
- package/dist/queries/getBiStats.js +1 -1
- package/dist/queries/getUserAccessTokenFromActivationCode.js +1 -1
- package/dist/queries/getUserBulkData.js +1 -1
- package/dist/queries/getUserMails.js +1 -1
- package/dist/queries/getUserProfiles.js +1 -1
- package/dist/queries/logError.js +1 -1
- package/dist/queries/redeemDiscountCode.js +1 -1
- package/dist/queries/removeFriend.js +1 -1
- package/dist/queries/removePendingFeedbackLink.js +1 -1
- package/dist/queries/removeRedeemAccessClientCompanyName.js +11 -0
- package/dist/queries/removeUserMail.js +1 -1
- package/dist/queries/subscribeToCompany.js +1 -1
- package/dist/queries/unSubscribeToCompany.js +1 -1
- package/dist/queries/updateUserProfile.js +1 -1
- package/dist/queries/updateUserSettings.js +1 -1
- package/dist/queries/userApiLogout.js +1 -1
- package/dist/queries/viewRedeemAccessClientCompanies.js +11 -0
- package/dist/services/BI/companyNewsStats.js +1 -1
- package/dist/services/BI/discountStats.js +1 -1
- package/dist/services/BI/feedbackStats.js +1 -1
- package/dist/services/BI/getAllCompanyStats.js +1 -1
- package/dist/services/BI/getCompanyOverallStats.js +1 -1
- package/dist/services/BI/userExperienceStats.js +1 -1
- package/dist/services/OAuth/callback.js +1 -1
- package/dist/services/OAuth/index.js +1 -1
- package/dist/services/OAuth/logout.js +1 -1
- package/dist/services/Online/qrCode.js +1 -1
- package/dist/services/User/discountToken.js +1 -1
- package/dist/services/User/feedbackService.js +1 -1
- package/dist/services/User/friendService.js +1 -1
- package/dist/services/User/mailService.js +1 -1
- package/dist/services/User/subscribe.js +1 -1
- package/dist/services/User/userExperiences.js +1 -1
- package/dist/services/User/userProfile.js +1 -1
- package/dist/types/UserExperience.js +1 -1
- package/dist/types/commonTypes.js +1 -1
- package/dist/types/companyNewsTypes.js +1 -1
- package/dist/types/constants.d.ts +3 -0
- package/dist/types/discountTypes.js +1 -1
- package/dist/types/feedbackTypes.js +1 -1
- package/dist/types/friendTypes.js +1 -1
- package/dist/types/index.d.ts +12 -0
- package/dist/types/mailTypes.js +1 -1
- package/dist/types/oAuthTypes.js +1 -1
- package/dist/types/qrCodes.js +1 -1
- package/dist/types/queries/addRedeemAccessClientCompanyName.d.ts +2 -0
- package/dist/types/queries/removeRedeemAccessClientCompanyName.d.ts +2 -0
- package/dist/types/queries/viewRedeemAccessClientCompanies.d.ts +2 -0
- 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/services/Online/qrCode.d.ts +7 -1
- package/dist/types/subscribeTypes.js +1 -1
- package/dist/types/types/commonTypes.d.ts +3 -0
- package/dist/types/types/qrCodes.d.ts +23 -1
- package/dist/types/userTypes.js +1 -1
- package/dist/types/utilities/fetch.d.ts +1 -1
- package/dist/utilities/fetch.js +1 -1
- package/dist/utilities/mapper.js +1 -1
- package/package.json +1 -1
|
@@ -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,8 +1,14 @@
|
|
|
1
|
-
import { GetAllQRCodeUrlsArgs, GetAllQRCodeUrlsResponse, RedeemDiscountCodeArgs, RedeemDiscountCodeResponse } from
|
|
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";
|
|
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
|
|
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;
|
package/dist/types/userTypes.js
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -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
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(t,e,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
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Unauthorized copying of this file, via any medium, is strictly prohibited.
|
|
9
9
|
* Proprietary and confidential.
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
11
|
+
"use strict";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};
|