nextemos 4.7.8 → 4.7.10

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.
@@ -191,4 +191,14 @@ exports.MemberService = {
191
191
  }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
192
192
  });
193
193
  },
194
+ UpdateAddress: function (data, options) {
195
+ return __awaiter(this, void 0, void 0, function* () {
196
+ return yield (0, __1.fetchRequest)().put((0, urls_1.getUrl)({
197
+ serviceUrl: this.ServiceUrl(),
198
+ prefix: this.Prefix,
199
+ isClient: options === null || options === void 0 ? void 0 : options.useClient,
200
+ methodName: urls_1.default.Member.Address.Addresses,
201
+ }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
202
+ });
203
+ },
194
204
  };
@@ -106,6 +106,9 @@ export interface IChangePasswordByTokenRequest extends IRequestBase {
106
106
  password: string;
107
107
  key: string;
108
108
  }
109
+ export interface IUpdateAddressRequest extends IMemberAddressRequest {
110
+ id: number;
111
+ }
109
112
  export interface IMemberService extends IService {
110
113
  SubjectsAll: (data?: IMessageSubjectRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageSubjectResponse>>;
111
114
  SendMessage: (data: ISendMessageRequest, options?: IRequestInit) => Promise<IApiResponse<ISendMessageResponse>>;
@@ -118,6 +121,7 @@ export interface IMemberService extends IService {
118
121
  Addresses: (data?: IMemberAddressesRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberAddressesResponse>>;
119
122
  NewAddress: (data?: IMemberAddressRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberAddressResponse>>;
120
123
  RemoveAddress: (data?: IRemoveAddressRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
124
+ UpdateAddress: (data?: IUpdateAddressRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
121
125
  PasswordRenewalMessage: (data?: IPasswordRenewalMessageRequest, options?: IRequestInit) => Promise<IApiResponse<IPasswordRenewalMessageResponse>>;
122
126
  ChangePasswordRequest: (data?: IChangePasswordRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
123
127
  ChangePasswordByTokenRequest: (data?: IChangePasswordByTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
@@ -69,6 +69,7 @@ export interface IGetInstallmentOptionsRequest extends IGetCartRequest {
69
69
  stockBarcodeId: number;
70
70
  quantity?: number;
71
71
  }[];
72
+ cardBin?: string;
72
73
  }
73
74
  export interface IShoppingCartService extends IService {
74
75
  AddToCart: (data: IAddToCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "4.7.8",
3
+ "version": "4.7.10",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",