nextemos 6.0.2 → 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
+ }
@@ -39,6 +39,8 @@ export interface IDoIyzicoTransactionResponse extends ITransactionResponse {
39
39
  }
40
40
  export interface IDoFreeOfChargeTransactionResponse extends ITransactionResponse {
41
41
  }
42
+ export interface IDoOtherPaymentTransactionResponse extends ITransactionResponse {
43
+ }
42
44
  export interface IGetInstallmentOptionsResponse extends IResponse {
43
45
  installmentOptions: IInstallmentOption[];
44
46
  }
@@ -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
  }
@@ -93,6 +93,9 @@ exports.ShoppingCartService = {
93
93
  DoFreeOfChargeTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
94
94
  return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoFreeOfChargeTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
95
95
  }),
96
+ DoOtherPaymentTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
97
+ return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoOtherPaymentTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
98
+ }),
96
99
  DoGarantipayTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
97
100
  return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoGarantipayTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
98
101
  }),
@@ -1,4 +1,4 @@
1
- import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse, IGetAvailableStoresForCartResponse, IDoHepsipayTransactionResponse, IDoBkmExpressTransactionResponse, IDoPayAtDoorTransactionResponse, IDoParamTransactionResponse } from "../..";
1
+ import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse, IGetAvailableStoresForCartResponse, IDoHepsipayTransactionResponse, IDoBkmExpressTransactionResponse, IDoPayAtDoorTransactionResponse, IDoParamTransactionResponse, IDoOtherPaymentTransactionResponse } from "../..";
2
2
  export interface IAddToCartRequest {
3
3
  flags?: string | number | string[];
4
4
  productId: number;
@@ -98,6 +98,10 @@ export interface IDoFreeOfChargeTransactionRequest extends IGetCartRequest {
98
98
  isApprovedToSalesAggreementForm: boolean;
99
99
  isApprovedToPreInformationForm: boolean;
100
100
  }
101
+ export interface IDoOtherPaymentTransactionRequest extends IGetCartRequest {
102
+ isApprovedToSalesAggreementForm: boolean;
103
+ isApprovedToPreInformationForm: boolean;
104
+ }
101
105
  export interface IDoGarantipayTransactionRequest extends IGetCartRequest {
102
106
  isApprovedToSalesAggreementForm: boolean;
103
107
  isApprovedToPreInformationForm: boolean;
@@ -158,6 +162,7 @@ export interface IShoppingCartService extends IService {
158
162
  DoHepsipayTransaction: (data: IDoHepsipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoHepsipayTransactionResponse>>;
159
163
  DoBkmExpressTransaction: (data: IDoBkmExpressTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoBkmExpressTransactionResponse>>;
160
164
  DoPayAtDoorTransaction: (data: IDoPayAtDoorTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoPayAtDoorTransactionResponse>>;
165
+ DoOtherPaymentTransaction: (data: IDoOtherPaymentTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoOtherPaymentTransactionResponse>>;
161
166
  GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
162
167
  GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
163
168
  AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
@@ -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;
@@ -166,6 +167,7 @@ declare const _default: {
166
167
  DoIyzicoCreditCardTransaction: string;
167
168
  DoIyzicoTransaction: string;
168
169
  DoFreeOfChargeTransaction: string;
170
+ DoOtherPaymentTransaction: string;
169
171
  DoGarantipayTransaction: string;
170
172
  DoHepsipayTransaction: string;
171
173
  DoBkmExpressTransaction: 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",
@@ -177,6 +178,7 @@ exports.default = {
177
178
  DoIyzicoCreditCardTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoCreditCardTransaction",
178
179
  DoIyzicoTransaction: "/{language}/ShoppingCartGateway/v1/DoIyzicoTransaction",
179
180
  DoFreeOfChargeTransaction: "/{language}/ShoppingCartGateway/v1/DoFreeOfChargeTransaction",
181
+ DoOtherPaymentTransaction: "/{language}/ShoppingCartGateway/v1/DoOtherPaymentTransaction",
180
182
  DoGarantipayTransaction: "/{language}/ShoppingCartGateway/v1/DoGarantipayTransaction",
181
183
  DoHepsipayTransaction: "/{language}/ShoppingCartGateway/v1/DoHepsipayTransaction",
182
184
  DoBkmExpressTransaction: "/{language}/ShoppingCartGateway/v1/DoBkmExpressTransaction",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "6.0.2",
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",