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.
- package/LICENSE.md +38 -0
- package/README.md +17 -0
- package/dist/config.js +11 -0
- package/dist/constants.js +11 -0
- package/dist/index.js +11 -0
- package/dist/queries/addFriend.js +11 -0
- package/dist/queries/addPendingFeedBackForm.js +11 -0
- package/dist/queries/addUserExperience.js +11 -0
- package/dist/queries/addUserMails.js +11 -0
- package/dist/queries/generateDiscountTokenFromUserAmount.js +11 -0
- package/dist/queries/getAllQRCodeUrl.js +11 -0
- package/dist/queries/getBiStats.js +11 -0
- package/dist/queries/getUserBulkData.js +11 -0
- package/dist/queries/getUserMails.js +11 -0
- package/dist/queries/getUserProfiles.js +11 -0
- package/dist/queries/logError.js +11 -0
- package/dist/queries/redeemDiscountCode.js +11 -0
- package/dist/queries/removeFriend.js +11 -0
- package/dist/queries/removePendingFeedbackLink.js +11 -0
- package/dist/queries/removeUserMail.js +11 -0
- package/dist/queries/subscribeToCompany.js +11 -0
- package/dist/queries/unSubscribeToCompany.js +11 -0
- package/dist/queries/updateUserProfile.js +11 -0
- package/dist/queries/updateUserSettings.js +11 -0
- package/dist/services/BI/companyNewsStats.js +11 -0
- package/dist/services/BI/discountStats.js +11 -0
- package/dist/services/BI/feedbackStats.js +11 -0
- package/dist/services/BI/getAllCompanyStats.js +11 -0
- package/dist/services/BI/getCompanyOverallStats.js +11 -0
- package/dist/services/BI/userExperienceStats.js +11 -0
- package/dist/services/Online/qrCode.js +11 -0
- package/dist/services/User/discountToken.js +11 -0
- package/dist/services/User/feedbackService.js +11 -0
- package/dist/services/User/friendService.js +11 -0
- package/dist/services/User/mailService.js +11 -0
- package/dist/services/User/subscribe.js +11 -0
- package/dist/services/User/userExperiences.js +11 -0
- package/dist/services/User/userProfile.js +11 -0
- package/dist/types/UserExperience.js +11 -0
- package/dist/types/commonTypes.js +11 -0
- package/dist/types/companyNewsTypes.js +11 -0
- package/dist/types/config.d.ts +6 -0
- package/dist/types/constants.d.ts +36 -0
- package/dist/types/discountTypes.js +11 -0
- package/dist/types/feedbackTypes.js +11 -0
- package/dist/types/friendTypes.js +11 -0
- package/dist/types/index.d.ts +105 -0
- package/dist/types/mailTypes.js +11 -0
- package/dist/types/qrCodes.js +11 -0
- package/dist/types/queries/addFriend.d.ts +2 -0
- package/dist/types/queries/addPendingFeedBackForm.d.ts +2 -0
- package/dist/types/queries/addUserExperience.d.ts +2 -0
- package/dist/types/queries/addUserMails.d.ts +2 -0
- package/dist/types/queries/generateDiscountTokenFromUserAmount.d.ts +2 -0
- package/dist/types/queries/getAllQRCodeUrl.d.ts +2 -0
- package/dist/types/queries/getBiStats.d.ts +2 -0
- package/dist/types/queries/getUserBulkData.d.ts +2 -0
- package/dist/types/queries/getUserMails.d.ts +2 -0
- package/dist/types/queries/getUserProfiles.d.ts +2 -0
- package/dist/types/queries/logError.d.ts +2 -0
- package/dist/types/queries/redeemDiscountCode.d.ts +2 -0
- package/dist/types/queries/removeFriend.d.ts +2 -0
- package/dist/types/queries/removePendingFeedbackLink.d.ts +2 -0
- package/dist/types/queries/removeUserMail.d.ts +2 -0
- package/dist/types/queries/subscribeToCompany.d.ts +2 -0
- package/dist/types/queries/unSubscribeToCompany.d.ts +2 -0
- package/dist/types/queries/updateUserProfile.d.ts +2 -0
- package/dist/types/queries/updateUserSettings.d.ts +2 -0
- package/dist/types/services/BI/companyNewsStats.d.ts +7 -0
- package/dist/types/services/BI/discountStats.d.ts +7 -0
- package/dist/types/services/BI/feedbackStats.d.ts +7 -0
- package/dist/types/services/BI/getAllCompanyStats.d.ts +7 -0
- package/dist/types/services/BI/getCompanyOverallStats.d.ts +7 -0
- package/dist/types/services/BI/userExperienceStats.d.ts +7 -0
- package/dist/types/services/Online/qrCode.d.ts +8 -0
- package/dist/types/services/User/discountToken.d.ts +6 -0
- package/dist/types/services/User/feedbackService.d.ts +8 -0
- package/dist/types/services/User/friendService.d.ts +8 -0
- package/dist/types/services/User/mailService.d.ts +11 -0
- package/dist/types/services/User/subscribe.d.ts +8 -0
- package/dist/types/services/User/userExperiences.d.ts +6 -0
- package/dist/types/services/User/userProfile.d.ts +13 -0
- package/dist/types/subscribeTypes.js +11 -0
- package/dist/types/types/UserExperience.d.ts +16 -0
- package/dist/types/types/commonTypes.d.ts +68 -0
- package/dist/types/types/companyNewsTypes.d.ts +32 -0
- package/dist/types/types/discountTypes.d.ts +35 -0
- package/dist/types/types/feedbackTypes.d.ts +41 -0
- package/dist/types/types/friendTypes.d.ts +47 -0
- package/dist/types/types/mailTypes.d.ts +29 -0
- package/dist/types/types/qrCodes.d.ts +27 -0
- package/dist/types/types/subscribeTypes.d.ts +21 -0
- package/dist/types/types/userTypes.d.ts +259 -0
- package/dist/types/userTypes.js +11 -0
- package/dist/types/utilities/fetch.d.ts +2 -0
- package/dist/types/utilities/mapper.d.ts +5 -0
- package/dist/utilities/fetch.js +11 -0
- package/dist/utilities/mapper.js +11 -0
- package/package.json +47 -0
|
@@ -0,0 +1,47 @@
|
|
|
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 AddFriendResponse = BaseResponse & {
|
|
12
|
+
isAddFriendSuccess: boolean;
|
|
13
|
+
friendProfile: FriendProfile;
|
|
14
|
+
};
|
|
15
|
+
export declare type RemoveFriendResponse = BaseResponse & {
|
|
16
|
+
isRemoveFriendSuccess: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare type Experience = {
|
|
19
|
+
experience: String;
|
|
20
|
+
rateText: String;
|
|
21
|
+
categoryExperience: String;
|
|
22
|
+
id: number;
|
|
23
|
+
lastUpdate: String;
|
|
24
|
+
times: number;
|
|
25
|
+
};
|
|
26
|
+
export declare type FriendProfile = {
|
|
27
|
+
profileImage: String;
|
|
28
|
+
userName: String;
|
|
29
|
+
name: String;
|
|
30
|
+
age: number;
|
|
31
|
+
location: String;
|
|
32
|
+
aboutMe: String;
|
|
33
|
+
gender: String;
|
|
34
|
+
country: String;
|
|
35
|
+
countryCode: String;
|
|
36
|
+
userExperiences: [Experience];
|
|
37
|
+
};
|
|
38
|
+
export declare type AddFriendArgs = {
|
|
39
|
+
friendUserName: string;
|
|
40
|
+
userConfig: UserConfig;
|
|
41
|
+
accessToken: string;
|
|
42
|
+
};
|
|
43
|
+
export declare type RemoveFriendArgs = {
|
|
44
|
+
friendUserName: string;
|
|
45
|
+
userConfig: UserConfig;
|
|
46
|
+
accessToken: string;
|
|
47
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseResponse, UserConfig } from './commonTypes';
|
|
2
|
+
export declare type RemoveUserMailArgs = {
|
|
3
|
+
mailId: String;
|
|
4
|
+
userConfig: UserConfig;
|
|
5
|
+
accessToken: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type RemoveUserMailResponse = BaseResponse & {
|
|
8
|
+
mailRemoved: boolean;
|
|
9
|
+
isSuccess: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare type Mail = {
|
|
12
|
+
title: String;
|
|
13
|
+
company: String;
|
|
14
|
+
type: String;
|
|
15
|
+
advertId: number;
|
|
16
|
+
read: Boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare type AddUserMailsArgs = {
|
|
19
|
+
mails: Mail[];
|
|
20
|
+
userConfig: UserConfig;
|
|
21
|
+
accessToken: string;
|
|
22
|
+
};
|
|
23
|
+
export declare type AddUserMailsResponse = BaseResponse & {
|
|
24
|
+
hasUpdated: boolean;
|
|
25
|
+
};
|
|
26
|
+
export declare type GetUserMailsResponse = BaseResponse & {
|
|
27
|
+
mails: Mail[];
|
|
28
|
+
isSuccess: boolean;
|
|
29
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseResponse, OnlineConfig } from './commonTypes';
|
|
2
|
+
export declare type GetAllQRCodeUrlsArgs = {
|
|
3
|
+
hashVariables: string;
|
|
4
|
+
onlineConfig: OnlineConfig;
|
|
5
|
+
accountEmail: string;
|
|
6
|
+
apiKey: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type QrUrls = {
|
|
9
|
+
url: String;
|
|
10
|
+
advertId: number;
|
|
11
|
+
expiry: String;
|
|
12
|
+
advertType: String;
|
|
13
|
+
};
|
|
14
|
+
export declare type RedeemDiscountCodeArgs = {
|
|
15
|
+
hashVariables: string;
|
|
16
|
+
onlineConfig: OnlineConfig;
|
|
17
|
+
accountEmail: string;
|
|
18
|
+
apiKey: string;
|
|
19
|
+
};
|
|
20
|
+
export declare type GetAllQRCodeUrlsResponse = BaseResponse & {
|
|
21
|
+
qrUrls: QrUrls[];
|
|
22
|
+
isSuccess: boolean;
|
|
23
|
+
};
|
|
24
|
+
export declare type RedeemDiscountCodeResponse = BaseResponse & {
|
|
25
|
+
isSuccess: boolean;
|
|
26
|
+
discountTokenHasBeenRedeemed: boolean;
|
|
27
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseResponse, UserConfig } from './commonTypes';
|
|
2
|
+
export declare type SubscribeToCompanyArgs = {
|
|
3
|
+
companyName: String;
|
|
4
|
+
userConfig: UserConfig;
|
|
5
|
+
accessToken: string;
|
|
6
|
+
branchName: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type SubscribeToCompanyResponse = BaseResponse & {
|
|
9
|
+
isSubscribe: boolean;
|
|
10
|
+
isSuccess: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare type UnSubscribeToCompanyResponse = BaseResponse & {
|
|
13
|
+
isUnSubscribe: boolean;
|
|
14
|
+
isSuccess: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare type UnSubscribeToCompanyArgs = {
|
|
17
|
+
userConfig: UserConfig;
|
|
18
|
+
companyName: string;
|
|
19
|
+
accessToken: string;
|
|
20
|
+
branchName: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { BaseResponse, UserConfig } from './commonTypes';
|
|
2
|
+
import { CompanyNewsStats, CompanyStats } from './companyNewsTypes';
|
|
3
|
+
import { DiscountStats } from './discountTypes';
|
|
4
|
+
import { FeedbackStats } from './feedbackTypes';
|
|
5
|
+
export declare type CompanyUserExperienceStats = {
|
|
6
|
+
companyName: string;
|
|
7
|
+
experienceCategory: string;
|
|
8
|
+
experience: string;
|
|
9
|
+
id: string;
|
|
10
|
+
userExperienceTotal: string;
|
|
11
|
+
excellentTotal: string;
|
|
12
|
+
goodTotal: string;
|
|
13
|
+
averageTotal: string;
|
|
14
|
+
poorTotal: string;
|
|
15
|
+
hateTotal: string;
|
|
16
|
+
branchId: string;
|
|
17
|
+
};
|
|
18
|
+
export declare type GetUserBulkDataArgs = {
|
|
19
|
+
userName: string;
|
|
20
|
+
};
|
|
21
|
+
export declare type AdvertUserMail = {
|
|
22
|
+
type: string;
|
|
23
|
+
advertId: number;
|
|
24
|
+
};
|
|
25
|
+
export declare type SaveUserUpdatesInputs = {
|
|
26
|
+
email: string;
|
|
27
|
+
goFelixPortalAccess: string;
|
|
28
|
+
position: string;
|
|
29
|
+
};
|
|
30
|
+
export declare type Credentials = {
|
|
31
|
+
userName: string;
|
|
32
|
+
passWord: string;
|
|
33
|
+
};
|
|
34
|
+
export declare type SaveUserUpdatesArgs = {
|
|
35
|
+
inputs: SaveUserUpdatesInputs[];
|
|
36
|
+
email: string;
|
|
37
|
+
appName: string;
|
|
38
|
+
companyName: string;
|
|
39
|
+
};
|
|
40
|
+
export declare type User = {
|
|
41
|
+
email: string;
|
|
42
|
+
biAccess: string;
|
|
43
|
+
goFelixPortalAccess: string;
|
|
44
|
+
lastActive?: string;
|
|
45
|
+
position?: string;
|
|
46
|
+
};
|
|
47
|
+
export declare type GetUserMailAdvertsArgs = {
|
|
48
|
+
userName: string;
|
|
49
|
+
advertUserMails: AdvertUserMail[];
|
|
50
|
+
};
|
|
51
|
+
export declare type GetAllCompanyUsersResolverArgs = {
|
|
52
|
+
companyName: string;
|
|
53
|
+
email: string;
|
|
54
|
+
};
|
|
55
|
+
export declare type GetUserMailAdvertsVariables = {
|
|
56
|
+
userName: string;
|
|
57
|
+
passWord: string;
|
|
58
|
+
scope: string[];
|
|
59
|
+
};
|
|
60
|
+
export declare type SaveUserUpdatesVariables = {
|
|
61
|
+
inputs: SaveUserUpdatesInputs[];
|
|
62
|
+
email: string;
|
|
63
|
+
appName: string;
|
|
64
|
+
companyName: string;
|
|
65
|
+
};
|
|
66
|
+
export declare type GetUserApiActivationCodeArgs = {
|
|
67
|
+
credentials: Credentials;
|
|
68
|
+
scope: string[];
|
|
69
|
+
accountEmail: string;
|
|
70
|
+
};
|
|
71
|
+
export declare type ValidateGoFelixUserArgs = {
|
|
72
|
+
scope: string[];
|
|
73
|
+
credentials: Credentials;
|
|
74
|
+
};
|
|
75
|
+
export declare type UserDiscountToken = {
|
|
76
|
+
title: string;
|
|
77
|
+
companyName: string;
|
|
78
|
+
discountToken: string;
|
|
79
|
+
discountType: string;
|
|
80
|
+
amount: string;
|
|
81
|
+
rewardText: string;
|
|
82
|
+
onlineDiscountCode: string;
|
|
83
|
+
};
|
|
84
|
+
export declare type UserDiscountAmount = {
|
|
85
|
+
companyName: string;
|
|
86
|
+
totalAmount: string;
|
|
87
|
+
rewardText: string;
|
|
88
|
+
};
|
|
89
|
+
export declare type PendingFeedbackLink = {
|
|
90
|
+
title: string;
|
|
91
|
+
expiry: string;
|
|
92
|
+
feedbackFormOnlineUrl: string;
|
|
93
|
+
advertId: number;
|
|
94
|
+
companyName: string;
|
|
95
|
+
id: number;
|
|
96
|
+
};
|
|
97
|
+
export declare type Mail = {
|
|
98
|
+
title: string;
|
|
99
|
+
company: string;
|
|
100
|
+
type: string;
|
|
101
|
+
id: number;
|
|
102
|
+
advertId: number;
|
|
103
|
+
sentDate: string;
|
|
104
|
+
read: Boolean;
|
|
105
|
+
};
|
|
106
|
+
export declare type CompanySubscribe = {
|
|
107
|
+
companyName: string;
|
|
108
|
+
};
|
|
109
|
+
export declare type UserMailAdverts = {
|
|
110
|
+
discountAdverts: DiscountAdvert[];
|
|
111
|
+
feedbacksAdverts: FeedbacksAdvert[];
|
|
112
|
+
companyNewsAdverts: CompanyNewsAdvert[];
|
|
113
|
+
};
|
|
114
|
+
export declare type Friend = {
|
|
115
|
+
profileImage: string;
|
|
116
|
+
userName: string;
|
|
117
|
+
name: string;
|
|
118
|
+
age: number;
|
|
119
|
+
location: string;
|
|
120
|
+
aboutMe: string;
|
|
121
|
+
gender: string;
|
|
122
|
+
country: string;
|
|
123
|
+
countryCode: string;
|
|
124
|
+
userExperiences: Experience[];
|
|
125
|
+
};
|
|
126
|
+
export declare type UserSettings = {
|
|
127
|
+
showBreakingAlerts: Boolean;
|
|
128
|
+
companyNewsNotifications: Boolean;
|
|
129
|
+
feedbackNotifications: Boolean;
|
|
130
|
+
discountsNotifications: Boolean;
|
|
131
|
+
};
|
|
132
|
+
export declare type DiscountAdvert = {
|
|
133
|
+
title: string;
|
|
134
|
+
advertImageUrl: string;
|
|
135
|
+
companyLogoUrl: string;
|
|
136
|
+
price: string;
|
|
137
|
+
onlineUrl: string;
|
|
138
|
+
discount: string;
|
|
139
|
+
description: string;
|
|
140
|
+
companyName: string;
|
|
141
|
+
keyword1: string;
|
|
142
|
+
keyword2: string;
|
|
143
|
+
keyword3: string;
|
|
144
|
+
updateTimestamp: string;
|
|
145
|
+
id: string;
|
|
146
|
+
expiry: string;
|
|
147
|
+
};
|
|
148
|
+
export declare type FeedbacksAdvert = {
|
|
149
|
+
title: string;
|
|
150
|
+
advertImageUrl: string;
|
|
151
|
+
completionType: string;
|
|
152
|
+
feedbackFormOnlineUrl: string;
|
|
153
|
+
rewardType: string;
|
|
154
|
+
onlineUrl: string;
|
|
155
|
+
id: string;
|
|
156
|
+
reward: string;
|
|
157
|
+
companyName: string;
|
|
158
|
+
updateTimestamp: string;
|
|
159
|
+
companyLogoUrl: string;
|
|
160
|
+
description: string;
|
|
161
|
+
expiry: string;
|
|
162
|
+
};
|
|
163
|
+
export declare type CompanyNewsAdvert = {
|
|
164
|
+
title: string;
|
|
165
|
+
advertImageUrl: string;
|
|
166
|
+
companyLogoUrl: string;
|
|
167
|
+
updateTimestamp: string;
|
|
168
|
+
onlineUrl: string;
|
|
169
|
+
description: string;
|
|
170
|
+
companyName: string;
|
|
171
|
+
id: string;
|
|
172
|
+
expiry: string;
|
|
173
|
+
refFeedbackFormTitle: string;
|
|
174
|
+
};
|
|
175
|
+
export declare type GetCompanyUserExperienceStatsResponse = BaseResponse & {
|
|
176
|
+
companyUserExperienceStats: CompanyUserExperienceStats;
|
|
177
|
+
isSuccess: boolean;
|
|
178
|
+
};
|
|
179
|
+
export declare type GetUserBulkDataResponse = BaseResponse & {
|
|
180
|
+
hasUserData: boolean;
|
|
181
|
+
userMailDiscountAdverts: DiscountAdvert[];
|
|
182
|
+
userMailFeedbacksAdverts: FeedbacksAdvert[];
|
|
183
|
+
userMailCompanyNewsAdverts: CompanyNewsAdvert[];
|
|
184
|
+
userExperiences: Experience[];
|
|
185
|
+
userDiscountTokens: UserDiscountToken[];
|
|
186
|
+
userDiscountAmountList: UserDiscountAmount[];
|
|
187
|
+
pendingFeedbackLinks: PendingFeedbackLink[];
|
|
188
|
+
mails: Mail[];
|
|
189
|
+
companySubscribeList: CompanySubscribe[];
|
|
190
|
+
userProfile: UserProfile;
|
|
191
|
+
friends: Friend[];
|
|
192
|
+
userSettings: UserSettings;
|
|
193
|
+
};
|
|
194
|
+
export declare type GetUserProfilesArgs = {
|
|
195
|
+
index: number;
|
|
196
|
+
value: string;
|
|
197
|
+
userConfig: UserConfig;
|
|
198
|
+
accessToken: string;
|
|
199
|
+
};
|
|
200
|
+
export declare type UpdateUserProfileArgs = {
|
|
201
|
+
userProfile: UserProfile;
|
|
202
|
+
userConfig: UserConfig;
|
|
203
|
+
accessToken: string;
|
|
204
|
+
};
|
|
205
|
+
export declare type Experience = {
|
|
206
|
+
experience: string;
|
|
207
|
+
rateText: string;
|
|
208
|
+
categoryExperience: string;
|
|
209
|
+
id: number;
|
|
210
|
+
lastUpdate: string;
|
|
211
|
+
times: number;
|
|
212
|
+
};
|
|
213
|
+
export declare type Settings = {
|
|
214
|
+
showBreakingAlerts: Boolean;
|
|
215
|
+
companyNewsNotifications: Boolean;
|
|
216
|
+
feedbackNotifications: Boolean;
|
|
217
|
+
discountsNotifications: Boolean;
|
|
218
|
+
unSubscribeList: [string];
|
|
219
|
+
addedSubscibeList: [string];
|
|
220
|
+
};
|
|
221
|
+
export declare type UpdateUserSettingsArgs = {
|
|
222
|
+
settings: Settings;
|
|
223
|
+
userConfig: UserConfig;
|
|
224
|
+
accessToken: string;
|
|
225
|
+
};
|
|
226
|
+
export declare type UserProfile = {
|
|
227
|
+
profileImage: string;
|
|
228
|
+
name: string;
|
|
229
|
+
age: number;
|
|
230
|
+
location: string;
|
|
231
|
+
gender: string;
|
|
232
|
+
country: string;
|
|
233
|
+
countryCode: string;
|
|
234
|
+
aboutMe: string;
|
|
235
|
+
fontColor: string;
|
|
236
|
+
backgroundColor: string;
|
|
237
|
+
isProfileImageUpdated: Boolean;
|
|
238
|
+
};
|
|
239
|
+
export declare type GetAllCompanyStatsResponse = BaseResponse & {
|
|
240
|
+
isSuccess: boolean;
|
|
241
|
+
companyUserExperienceStats: CompanyUserExperienceStats | null;
|
|
242
|
+
feedbackStats: FeedbackStats | null;
|
|
243
|
+
companyStats: CompanyStats | null;
|
|
244
|
+
companyNewsStats: CompanyNewsStats | null;
|
|
245
|
+
discountStats: DiscountStats | null;
|
|
246
|
+
};
|
|
247
|
+
export declare type UpdateUserSettingsResponse = BaseResponse & {
|
|
248
|
+
isSuccess: boolean;
|
|
249
|
+
hasUpdatedSuccess: boolean;
|
|
250
|
+
};
|
|
251
|
+
export declare type GetUserProfilesResponse = BaseResponse & {
|
|
252
|
+
isSuccess: boolean;
|
|
253
|
+
hasUserProfiles: boolean;
|
|
254
|
+
userProfiles: UserProfile[];
|
|
255
|
+
};
|
|
256
|
+
export declare type UpdateUserProfileResponse = BaseResponse & {
|
|
257
|
+
isSuccess: boolean;
|
|
258
|
+
isUserProfileUpdated: boolean;
|
|
259
|
+
};
|
|
@@ -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 a45_0x52e77d=a45_0x2aa1;function a45_0x23d5(){var _0x4ad395=['8500SCsabF','1164dudRcV','defineProperty','1331hXFSFD','29112TvVfJB','14015HvOJmx','4xkjvFa','1481985RyKYAK','9258214Xyscak','__esModule','9805080UbDUir','82hopvuR','428859mphNMY'];a45_0x23d5=function(){return _0x4ad395;};return a45_0x23d5();}(function(_0x2340a3,_0x3f7461){var _0x59dd38=a45_0x2aa1,_0x19ae8b=_0x2340a3();while(!![]){try{var _0x26c837=parseInt(_0x59dd38(0x9e))/0x1*(parseInt(_0x59dd38(0xa5))/0x2)+parseInt(_0x59dd38(0xa6))/0x3*(parseInt(_0x59dd38(0xa0))/0x4)+parseInt(_0x59dd38(0x9f))/0x5*(-parseInt(_0x59dd38(0xa8))/0x6)+parseInt(_0x59dd38(0xa2))/0x7+-parseInt(_0x59dd38(0xa4))/0x8+-parseInt(_0x59dd38(0xa1))/0x9+-parseInt(_0x59dd38(0xa7))/0xa*(-parseInt(_0x59dd38(0xaa))/0xb);if(_0x26c837===_0x3f7461)break;else _0x19ae8b['push'](_0x19ae8b['shift']());}catch(_0x50f7ea){_0x19ae8b['push'](_0x19ae8b['shift']());}}}(a45_0x23d5,0xca20b));function a45_0x2aa1(_0x42327b,_0x389114){_0x42327b=_0x42327b-0x9e;var _0x23d5ea=a45_0x23d5();var _0x2aa115=_0x23d5ea[_0x42327b];return _0x2aa115;}Object[a45_0x52e77d(0xa9)](exports,a45_0x52e77d(0xa3),{'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';const a46_0x58f7d0=a46_0x2263;function a46_0x1f55(){const _0x3f6e5f=['PNdau','1202559JcMegZ','No\x20account\x20email\x20found','aQEDQ','3301551XTZLht','then','default','__importDefault','248280GaCBpk','resolve','1438286WXoSVY','post','369060niTQfr','https','entries','done','../constants','throw','../config','sDMlC','production','__esModule','4yljAoZ','15137973NWmgnF','data','MoiDt','next','CGEWJ','YsloT','7333555mbfzOu','appCode','FtGgm','CKkth','accountEmail','apply','154yzWIpK','value'];a46_0x1f55=function(){return _0x3f6e5f;};return a46_0x1f55();}(function(_0x5d3586,_0x502676){const _0x47a58b=a46_0x2263,_0x553b4c=_0x5d3586();while(!![]){try{const _0x2505e9=-parseInt(_0x47a58b(0x1e7))/0x1+parseInt(_0x47a58b(0x1cb))/0x2+-parseInt(_0x47a58b(0x1c5))/0x3+parseInt(_0x47a58b(0x1d7))/0x4*(parseInt(_0x47a58b(0x1de))/0x5)+-parseInt(_0x47a58b(0x1cd))/0x6+-parseInt(_0x47a58b(0x1e4))/0x7*(parseInt(_0x47a58b(0x1c9))/0x8)+parseInt(_0x47a58b(0x1d8))/0x9;if(_0x2505e9===_0x502676)break;else _0x553b4c['push'](_0x553b4c['shift']());}catch(_0x44d908){_0x553b4c['push'](_0x553b4c['shift']());}}}(a46_0x1f55,0xc850f));var __awaiter=this&&this['__awaiter']||function(_0x176297,_0x350819,_0x5552da,_0x5a8010){const _0x5b31f8=a46_0x2263,_0x26e001={'PNdau':function(_0x9a7796,_0x1e4952){return _0x9a7796(_0x1e4952);},'FtGgm':function(_0x38d19b,_0x10802c){return _0x38d19b instanceof _0x10802c;},'sDMlC':function(_0x776860,_0x217918){return _0x776860(_0x217918);},'obScg':_0x5b31f8(0x1d2),'YsloT':function(_0x36fe81,_0x51a508){return _0x36fe81(_0x51a508);},'MoiDt':function(_0x5e1e89,_0x4d8b08){return _0x5e1e89(_0x4d8b08);},'GVUHr':function(_0x373b47,_0x324ace){return _0x373b47(_0x324ace);}};function _0x28218c(_0x25ad0c){const _0x836b1d=_0x5b31f8;return _0x26e001[_0x836b1d(0x1e0)](_0x25ad0c,_0x5552da)?_0x25ad0c:new _0x5552da(function(_0x525407){const _0xf83676=_0x836b1d;_0x26e001[_0xf83676(0x1e6)](_0x525407,_0x25ad0c);});}return new(_0x5552da||(_0x5552da=Promise))(function(_0x4f7ed1,_0x193da5){const _0x475f82=_0x5b31f8,_0x34ca05={'aQEDQ':function(_0x593018,_0x340e4b){const _0x5d2753=a46_0x2263;return _0x26e001[_0x5d2753(0x1da)](_0x593018,_0x340e4b);},'CGEWJ':function(_0x4dccbb,_0x4ed18c){return _0x26e001['GVUHr'](_0x4dccbb,_0x4ed18c);}};function _0x596733(_0x4a6034){const _0x414b3a=a46_0x2263;try{_0x34ca05[_0x414b3a(0x1c4)](_0x566951,_0x5a8010[_0x414b3a(0x1db)](_0x4a6034));}catch(_0x562259){_0x193da5(_0x562259);}}function _0x218b08(_0x4df2b7){const _0x1faebd=a46_0x2263;try{_0x26e001[_0x1faebd(0x1d4)](_0x566951,_0x5a8010[_0x26e001['obScg']](_0x4df2b7));}catch(_0x196be0){_0x26e001[_0x1faebd(0x1dd)](_0x193da5,_0x196be0);}}function _0x566951(_0x48af24){const _0x2098f0=a46_0x2263;_0x48af24[_0x2098f0(0x1d0)]?_0x34ca05[_0x2098f0(0x1dc)](_0x4f7ed1,_0x48af24[_0x2098f0(0x1e5)]):_0x28218c(_0x48af24[_0x2098f0(0x1e5)])[_0x2098f0(0x1c6)](_0x596733,_0x218b08);}_0x26e001[_0x475f82(0x1da)](_0x566951,(_0x5a8010=_0x5a8010[_0x475f82(0x1e3)](_0x176297,_0x350819||[]))[_0x475f82(0x1db)]());});},__importDefault=this&&this[a46_0x58f7d0(0x1c8)]||function(_0x5b46c6){const _0x41db31=a46_0x58f7d0;return _0x5b46c6&&_0x5b46c6[_0x41db31(0x1d6)]?_0x5b46c6:{'default':_0x5b46c6};};function a46_0x2263(_0x1c1476,_0x3a7911){_0x1c1476=_0x1c1476-0x1c4;const _0x1f557f=a46_0x1f55();let _0x226378=_0x1f557f[_0x1c1476];return _0x226378;}Object['defineProperty'](exports,'__esModule',{'value':!![]});const axios_1=__importDefault(require('axios')),config_1=__importDefault(require(a46_0x58f7d0(0x1d3))),constants_1=__importDefault(require(a46_0x58f7d0(0x1d1))),https_1=__importDefault(require(a46_0x58f7d0(0x1ce))),fetchAsync=(_0x46b7c7,_0x22211e,_0xd9d6ab,_0x102fec,_0x560112='')=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){const _0x22ba7d=a46_0x58f7d0,_0x584f6b={'MfQYM':'application/json','CKkth':function(_0x1a51bf,_0x4495e0){return _0x1a51bf===_0x4495e0;}};if(!_0x102fec[_0x22ba7d(0x1e2)])throw new Error(_0x22ba7d(0x1e8));const _0x146acf={'Content-Type':_0x584f6b['MfQYM'],'appCode':constants_1['default'][_0x22ba7d(0x1df)],'appName':_0x560112,'apiName':_0x560112};for(const [_0x5d664b,_0x210bd6]of Object[_0x22ba7d(0x1cf)](_0x102fec)){_0x146acf[_0x5d664b]=_0x210bd6;}const _0x232ee4=_0x584f6b[_0x22ba7d(0x1e1)](_0x22ba7d(0x1d5),_0x22ba7d(0x1d5))?undefined:new https_1['default']['Agent']({'rejectUnauthorized':![]}),_0x23ec4c=yield axios_1['default'][_0x22ba7d(0x1cc)](config_1[_0x22ba7d(0x1c7)]['graphQLGoFelixGatewayServerUrl'],{'query':_0x46b7c7,'variables':_0x22211e},{'headers':_0x146acf,'httpsAgent':_0x232ee4});return Promise[_0x22ba7d(0x1ca)](_0x23ec4c[_0x22ba7d(0x1d9)]);});exports[a46_0x58f7d0(0x1c7)]=fetchAsync;
|
|
@@ -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_0x2cd524=a47_0x2927;(function(_0x23b8dd,_0x1fa3eb){var _0x330421=a47_0x2927,_0x7e3502=_0x23b8dd();while(!![]){try{var _0x1ec850=-parseInt(_0x330421(0xcc))/0x1+-parseInt(_0x330421(0xcb))/0x2*(-parseInt(_0x330421(0xd1))/0x3)+parseInt(_0x330421(0xcf))/0x4+-parseInt(_0x330421(0xcd))/0x5*(-parseInt(_0x330421(0xd5))/0x6)+parseInt(_0x330421(0xca))/0x7*(parseInt(_0x330421(0xd4))/0x8)+parseInt(_0x330421(0xc8))/0x9+parseInt(_0x330421(0xd2))/0xa*(-parseInt(_0x330421(0xce))/0xb);if(_0x1ec850===_0x1fa3eb)break;else _0x7e3502['push'](_0x7e3502['shift']());}catch(_0x150af8){_0x7e3502['push'](_0x7e3502['shift']());}}}(a47_0x2a5f,0x9db06));function a47_0x2927(_0x171d89,_0x6a46c4){_0x171d89=_0x171d89-0xc7;var _0x2a5f91=a47_0x2a5f();var _0x2927a0=_0x2a5f91[_0x171d89];return _0x2927a0;}Object[a47_0x2cd524(0xc7)](exports,a47_0x2cd524(0xc9),{'value':!![]}),exports['MapToResponseObj']=void 0x0;function MapToResponseObj(_0x14b843,_0x4433df,_0x5b21be){_0x14b843[_0x5b21be]=_0x4433df[_0x5b21be];}exports[a47_0x2cd524(0xd3)]=MapToResponseObj,exports[a47_0x2cd524(0xd0)]={'MapToResponseObj':MapToResponseObj};function a47_0x2a5f(){var _0x87296d=['231sDSgNx','48890LBOvbQ','886729HiIAvz','5OaQkOk','39281kYXYfr','1433796ByAWkN','default','99yCrbGU','4530AsfFof','MapToResponseObj','91432OGZMuG','2595348VbsLtx','defineProperty','10578933vszPPv','__esModule'];a47_0x2a5f=function(){return _0x87296d;};return a47_0x2a5f();}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gofelix",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "GoFelix Library",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"LICENSE.md",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build:prod": "cross-env NODE_ENV=production tsc --build ./tsconfig_prod.json && node scripts/replace-envs.js && npm run obfuscate",
|
|
13
|
+
"obfuscate": "javascript-obfuscator dist --output dist --compact true --control-flow-flattening true",
|
|
14
|
+
"add:copyright": "node add-license.js",
|
|
15
|
+
"lint": "eslint . --ext .ts",
|
|
16
|
+
"build:dev": "cross-env NODE_ENV=dev tsc --build ./tsconfig_dev.json",
|
|
17
|
+
"yalc:update": "rmdir /s /q dist && npm run build:dev && yalc push --replace --private"
|
|
18
|
+
},
|
|
19
|
+
"author": "GoFelix",
|
|
20
|
+
"private": false,
|
|
21
|
+
"license": "Proprietary",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/crypto-js": "^4.1.1",
|
|
24
|
+
"@types/lodash": "^4.14.186",
|
|
25
|
+
"@types/node": "^18.8.5",
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
|
27
|
+
"@typescript-eslint/parser": "^5.40.0",
|
|
28
|
+
"babel-eslint": "^10.1.0",
|
|
29
|
+
"cross-env": "^10.1.0",
|
|
30
|
+
"eslint": "^7.32.0",
|
|
31
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
32
|
+
"eslint-plugin-import": "^2.22.1",
|
|
33
|
+
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
34
|
+
"eslint-plugin-react": "^7.23.1",
|
|
35
|
+
"javascript-obfuscator": "^5.4.3",
|
|
36
|
+
"nodemon": "^2.0.20",
|
|
37
|
+
"replace-in-file": "^8.4.0",
|
|
38
|
+
"rimraf": "^3.0.2",
|
|
39
|
+
"ts-node": "^10.9.1",
|
|
40
|
+
"typescript": "^4.8.4"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"axios": "^0.21.1",
|
|
44
|
+
"crypto-js": "^4.0.0",
|
|
45
|
+
"lodash": "^4.17.21"
|
|
46
|
+
}
|
|
47
|
+
}
|