nextemos 6.0.3 → 6.0.5
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.
|
@@ -106,6 +106,7 @@ export interface IActiveMemberResponse extends IResponse {
|
|
|
106
106
|
}
|
|
107
107
|
export interface ILoginRequestResponse extends IResponse {
|
|
108
108
|
data: IMember;
|
|
109
|
+
loginResult: ILoginResult;
|
|
109
110
|
}
|
|
110
111
|
export interface ILogonAsGuestRequestResponse extends IResponse {
|
|
111
112
|
data: IMember;
|
|
@@ -269,3 +270,21 @@ export interface ISocialLoginResponse extends IResponse {
|
|
|
269
270
|
data: IMember;
|
|
270
271
|
isNewUser: boolean;
|
|
271
272
|
}
|
|
273
|
+
export interface IGetProfilePhotoResponse extends IResponse {
|
|
274
|
+
data: {
|
|
275
|
+
fileName: string;
|
|
276
|
+
base64: string;
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
export interface ILoginResult {
|
|
280
|
+
status: boolean;
|
|
281
|
+
memberId: number;
|
|
282
|
+
verification: {
|
|
283
|
+
type: "DeviceBased" | "AccountActivation";
|
|
284
|
+
methods: {
|
|
285
|
+
sms: boolean;
|
|
286
|
+
email: boolean;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
deviceToken: string;
|
|
290
|
+
}
|
|
@@ -197,4 +197,7 @@ exports.MemberService = {
|
|
|
197
197
|
SocialLogin: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
198
198
|
return (0, __1.fetchRequest)().post(exports.MemberService.Url(urls_1.default.Member.SocialLogin.replace("{provider}", data.provider), options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
199
199
|
}),
|
|
200
|
+
GetProfilePhoto: (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
201
|
+
return (0, __1.fetchRequest)().get(exports.MemberService.Url(urls_1.default.Member.GetProfilePhoto, options), Object.assign({}, options));
|
|
202
|
+
}),
|
|
200
203
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse, IMemberAddressesResponse, IMemberAddressResponse, AddressPart, IPasswordRenewalMessageResponse, IRequestBase, IMessageByMemberIdResponse, IAnswersByMessageIdResponse, IAddAnswerResponse, ILogonAsGuestRequestResponse, INotificationPreferenceResponse, IUpdatePreferencesResponse, IContactApprovalMessageResponse, IPointsByMemberIdResponse, IUpdateMemberResponse, IMemberDocumentsResponse, IEducationStatusListResponse, IJobListResponse, ISegmentsResponse, IMemberByIntegrationCodeResponse, IMemberReferenceResponse, IMemberGeneralInformation, ISocialLoginResponse, IMemberByIdListResponse, IUpdateProfilePhotoResponse } from "../..";
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse, IMemberAddressesResponse, IMemberAddressResponse, AddressPart, IPasswordRenewalMessageResponse, IRequestBase, IMessageByMemberIdResponse, IAnswersByMessageIdResponse, IAddAnswerResponse, ILogonAsGuestRequestResponse, INotificationPreferenceResponse, IUpdatePreferencesResponse, IContactApprovalMessageResponse, IPointsByMemberIdResponse, IUpdateMemberResponse, IMemberDocumentsResponse, IEducationStatusListResponse, IJobListResponse, ISegmentsResponse, IMemberByIntegrationCodeResponse, IMemberReferenceResponse, IMemberGeneralInformation, ISocialLoginResponse, IMemberByIdListResponse, IUpdateProfilePhotoResponse, IGetProfilePhotoResponse } from "../..";
|
|
2
2
|
export interface IMessageSubjectRequest extends IRequestBase {
|
|
3
3
|
}
|
|
4
4
|
export interface ISendMessageRequest extends IRequestBase {
|
|
@@ -50,6 +50,8 @@ export interface ILoginRequest extends IRequestBase {
|
|
|
50
50
|
mobilePhone?: string;
|
|
51
51
|
email?: string;
|
|
52
52
|
password: string;
|
|
53
|
+
fingerprintToken?: string;
|
|
54
|
+
deviceLoginToken?: string;
|
|
53
55
|
}
|
|
54
56
|
export interface IContactApprovalMessageRequest extends IRequestBase {
|
|
55
57
|
memberValidationType: "Email" | "Mobile";
|
|
@@ -273,4 +275,5 @@ export interface IMemberService extends IService {
|
|
|
273
275
|
SocialLogin: (data: ISocialLoginRequest, options?: IRequestInit) => Promise<IApiResponse<ISocialLoginResponse>>;
|
|
274
276
|
ByIdList: (data?: IMemberByIdListRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberByIdListResponse>>;
|
|
275
277
|
UpdateProfilePhoto: (data: FormData, options?: IRequestInit) => Promise<IApiResponse<IUpdateProfilePhotoResponse>>;
|
|
278
|
+
GetProfilePhoto: (options?: IRequestInit) => Promise<IApiResponse<IGetProfilePhotoResponse>>;
|
|
276
279
|
}
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -76,6 +76,7 @@ exports.default = {
|
|
|
76
76
|
Warehouse: "/{language}/Warehouses/v1/GetById",
|
|
77
77
|
},
|
|
78
78
|
Member: {
|
|
79
|
+
GetProfilePhoto: "/{language}/Members/v1/GetProfilePhoto",
|
|
79
80
|
GetMemberByIntegrationCode: "/{language}/Members/v1/GetMemberByIntegrationCode",
|
|
80
81
|
EducationStatusList: "/{language}/Members/v1/EducationStatusList",
|
|
81
82
|
JobList: "/{language}/Members/v1/JobList",
|