nextemos 4.6.2 → 4.6.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.
@@ -122,6 +122,16 @@ exports.MemberService = {
122
122
  }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
123
123
  });
124
124
  },
125
+ ChangePasswordByTokenRequest: function (data, options) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
128
+ serviceUrl: this.ServiceUrl(),
129
+ prefix: this.Prefix,
130
+ isClient: options === null || options === void 0 ? void 0 : options.useClient,
131
+ methodName: urls_1.default.Member.Members.ChangePasswordByTokenRequest,
132
+ }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
133
+ });
134
+ },
125
135
  // MemberMessage
126
136
  SubjectsAll: function () {
127
137
  return __awaiter(this, arguments, void 0, function* (data = {}, options) {
@@ -115,6 +115,15 @@ export interface IPasswordRenewalMessageRequest {
115
115
  tags?: string[];
116
116
  }
117
117
  export interface IChangePasswordRequest {
118
+ memberId?: number;
119
+ oldPassword: string;
120
+ newPassword: string;
121
+ informByMail?: boolean;
122
+ informBySMS?: boolean;
123
+ language?: string;
124
+ tags?: string[];
125
+ }
126
+ export interface IChangePasswordByTokenRequest {
118
127
  token: string;
119
128
  password: string;
120
129
  key: string;
@@ -152,6 +161,7 @@ export interface IMemberService extends IService {
152
161
  RemoveAddress: (data?: IRemoveAddressRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
153
162
  PasswordRenewalMessage: (data?: IPasswordRenewalMessageRequest, options?: IRequestInit) => Promise<IApiResponse<IPasswordRenewalMessageResponse>>;
154
163
  ChangePasswordRequest: (data?: IChangePasswordRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
164
+ ChangePasswordByTokenRequest: (data?: IChangePasswordByTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
155
165
  GetFavorites: (data?: IGetFavoritesRequest, options?: IRequestInit) => Promise<IApiResponse<IProductFavoritesByMemberIdResponse>>;
156
166
  AddFavorites: (data?: IAddFavoritesRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
157
167
  RemoveFavorites: (data?: IRemoveFavoritesRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
@@ -53,6 +53,7 @@ declare const _default: {
53
53
  ApproveValidationTokenRequest: string;
54
54
  PasswordRenewalMessage: string;
55
55
  ChangePasswordRequest: string;
56
+ ChangePasswordByTokenRequest: string;
56
57
  };
57
58
  MemberMessages: {
58
59
  SubjectsAll: string;
@@ -59,6 +59,7 @@ exports.default = {
59
59
  ApproveValidationTokenRequest: "/{language}/Members/v1/ApproveValidationTokenRequest",
60
60
  PasswordRenewalMessage: "/{language}/Members/v1/PasswordRenewalMessage",
61
61
  ChangePasswordRequest: "/{language}/Members/v1/ChangePasswordRequest",
62
+ ChangePasswordByTokenRequest: "/{language}/Members/v1/ChangePasswordByTokenRequest",
62
63
  },
63
64
  MemberMessages: {
64
65
  SubjectsAll: '/{language}/MemberMessages/v1/Subjects/All',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "4.6.2",
3
+ "version": "4.6.3",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",