nextemos 6.0.3 → 6.0.4

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.
@@ -269,3 +269,9 @@ export interface ISocialLoginResponse extends IResponse {
269
269
  data: IMember;
270
270
  isNewUser: boolean;
271
271
  }
272
+ export interface IGetProfilePhotoResponse extends IResponse {
273
+ data: {
274
+ fileName: string;
275
+ base64: string;
276
+ };
277
+ }
@@ -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 {
@@ -273,4 +273,5 @@ export interface IMemberService extends IService {
273
273
  SocialLogin: (data: ISocialLoginRequest, options?: IRequestInit) => Promise<IApiResponse<ISocialLoginResponse>>;
274
274
  ByIdList: (data?: IMemberByIdListRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberByIdListResponse>>;
275
275
  UpdateProfilePhoto: (data: FormData, options?: IRequestInit) => Promise<IApiResponse<IUpdateProfilePhotoResponse>>;
276
+ GetProfilePhoto: (options?: IRequestInit) => Promise<IApiResponse<IGetProfilePhotoResponse>>;
276
277
  }
@@ -65,6 +65,7 @@ declare const _default: {
65
65
  Warehouse: string;
66
66
  };
67
67
  Member: {
68
+ GetProfilePhoto: string;
68
69
  GetMemberByIntegrationCode: string;
69
70
  EducationStatusList: string;
70
71
  JobList: string;
@@ -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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",