nextemos 6.0.6 → 6.0.8

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.
@@ -293,3 +293,13 @@ export interface IApproveValidationTokenRequestResponse extends IResponse {
293
293
  data?: IMember;
294
294
  loginResult?: ILoginResult;
295
295
  }
296
+ export interface ISendIYSVerificationCodeResponse extends IResponse {
297
+ maskedContactInfo: {
298
+ phone: string;
299
+ email: string;
300
+ };
301
+ data: {
302
+ isVerificationRequired: boolean;
303
+ verificationToken: string;
304
+ };
305
+ }
@@ -200,4 +200,7 @@ exports.MemberService = {
200
200
  GetProfilePhoto: (options) => __awaiter(void 0, void 0, void 0, function* () {
201
201
  return (0, __1.fetchRequest)().get(exports.MemberService.Url(urls_1.default.Member.GetProfilePhoto, options), Object.assign({}, options));
202
202
  }),
203
+ SendIYSVerificationCode: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
204
+ return (0, __1.fetchRequest)().post(exports.MemberService.Url(urls_1.default.Member.SendIYSVerificationCode, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
205
+ }),
203
206
  };
@@ -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, IGetProfilePhotoResponse } 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, IApproveValidationTokenRequestResponse, ISendIYSVerificationCodeResponse } from "../..";
2
2
  export interface IMessageSubjectRequest extends IRequestBase {
3
3
  }
4
4
  export interface ISendMessageRequest extends IRequestBase {
@@ -232,6 +232,8 @@ export interface IMemberByIdListRequest extends IRequestBase {
232
232
  ids: number[];
233
233
  includes?: string[];
234
234
  }
235
+ export interface ISendIYSVerificationCodeRequest extends IMemberByIdListRequest {
236
+ }
235
237
  export interface IMemberService extends IService {
236
238
  SubjectsAll: (data?: IMessageSubjectRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageSubjectResponse>>;
237
239
  SendMessage: (data: ISendMessageRequest, options?: IRequestInit) => Promise<IApiResponse<ISendMessageResponse>>;
@@ -242,7 +244,7 @@ export interface IMemberService extends IService {
242
244
  LogoffRequest: (data: ILogoffRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
243
245
  ActiveMember: (data?: IActiveMemberRequest, options?: IRequestInit) => Promise<IApiResponse<IActiveMemberResponse>>;
244
246
  ContactApprovalMessage: (data: IContactApprovalMessageRequest, options?: IRequestInit) => Promise<IApiResponse<IContactApprovalMessageResponse>>;
245
- ApproveValidationTokenRequest: (data: IApproveValidationTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
247
+ ApproveValidationTokenRequest: (data: IApproveValidationTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IApproveValidationTokenRequestResponse>>;
246
248
  Addresses: (data?: IMemberAddressesRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberAddressesResponse>>;
247
249
  NewAddress: (data?: IMemberAddressRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberAddressResponse>>;
248
250
  RemoveAddress: (data?: IRemoveAddressRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
@@ -278,4 +280,5 @@ export interface IMemberService extends IService {
278
280
  ByIdList: (data?: IMemberByIdListRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberByIdListResponse>>;
279
281
  UpdateProfilePhoto: (data: FormData, options?: IRequestInit) => Promise<IApiResponse<IUpdateProfilePhotoResponse>>;
280
282
  GetProfilePhoto: (options?: IRequestInit) => Promise<IApiResponse<IGetProfilePhotoResponse>>;
283
+ SendIYSVerificationCode: (data: ISendIYSVerificationCodeRequest, options?: IRequestInit) => Promise<IApiResponse<ISendIYSVerificationCodeResponse>>;
281
284
  }
@@ -66,6 +66,7 @@ declare const _default: {
66
66
  };
67
67
  Member: {
68
68
  GetProfilePhoto: string;
69
+ SendIYSVerificationCode: string;
69
70
  GetMemberByIntegrationCode: string;
70
71
  EducationStatusList: string;
71
72
  JobList: string;
@@ -77,6 +77,7 @@ exports.default = {
77
77
  },
78
78
  Member: {
79
79
  GetProfilePhoto: "/{language}/Members/v1/GetProfilePhoto",
80
+ SendIYSVerificationCode: "/{language}/Members/v1/SendIYSVerificationCode",
80
81
  GetMemberByIntegrationCode: "/{language}/Members/v1/GetMemberByIntegrationCode",
81
82
  EducationStatusList: "/{language}/Members/v1/EducationStatusList",
82
83
  JobList: "/{language}/Members/v1/JobList",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "6.0.6",
3
+ "version": "6.0.8",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",