nextemos 5.10.10 → 6.0.0
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.
- package/dist/interfaces/member.d.ts +5 -0
- package/dist/interfaces/shoppingcart.d.ts +2 -0
- package/dist/services/member/index.js +3 -0
- package/dist/services/member/member.types.d.ts +2 -1
- package/dist/services/shoppingcart/index.js +3 -0
- package/dist/services/shoppingcart/shoppingcart.types.d.ts +8 -1
- package/dist/services/urls.d.ts +2 -0
- package/dist/services/urls.js +2 -0
- package/package.json +1 -1
|
@@ -25,6 +25,11 @@ export interface MessageSubjectLocalization {
|
|
|
25
25
|
export interface ISendMessageResponse extends IResponse {
|
|
26
26
|
data?: number;
|
|
27
27
|
}
|
|
28
|
+
export interface IUpdateProfilePhotoResponse extends IResponse {
|
|
29
|
+
data: {
|
|
30
|
+
profilePhotoUrl: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
28
33
|
export interface IMemberGeneralInformation {
|
|
29
34
|
educationStatusId?: number;
|
|
30
35
|
jobId?: number;
|
|
@@ -27,6 +27,8 @@ export interface IDoHepsipayTransactionResponse extends ITransactionResponse {
|
|
|
27
27
|
}
|
|
28
28
|
export interface IDoBkmExpressTransactionResponse extends ITransactionResponse {
|
|
29
29
|
}
|
|
30
|
+
export interface IDoPayAtDoorTransactionResponse extends ITransactionResponse {
|
|
31
|
+
}
|
|
30
32
|
export interface IDoCreditCardTransactionResponse extends ITransactionResponse {
|
|
31
33
|
}
|
|
32
34
|
export interface IDoIyzicoCreditCardTransactionResponse extends ITransactionResponse {
|
|
@@ -120,6 +120,9 @@ exports.MemberService = {
|
|
|
120
120
|
});
|
|
121
121
|
return (0, __1.fetchRequest)().post(exports.MemberService.Url(urls_1.default.Member.MemberMessages.Messages, options, data === null || data === void 0 ? void 0 : data.language), Object.assign({ body: formData }, options));
|
|
122
122
|
}),
|
|
123
|
+
UpdateProfilePhoto: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
124
|
+
return (0, __1.fetchRequest)().put(exports.MemberService.Url(urls_1.default.Member.UpdateProfilePhoto, options), Object.assign({ body: data }, options));
|
|
125
|
+
}),
|
|
123
126
|
MessagesByMemberId: (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (data = {}, options) {
|
|
124
127
|
return (0, __1.fetchRequest)().get(exports.MemberService.Url(urls_1.default.Member.MemberMessages.MessagesByMemberId, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
|
|
125
128
|
}),
|
|
@@ -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 } 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 } from "../..";
|
|
2
2
|
export interface IMessageSubjectRequest extends IRequestBase {
|
|
3
3
|
}
|
|
4
4
|
export interface ISendMessageRequest extends IRequestBase {
|
|
@@ -272,4 +272,5 @@ export interface IMemberService extends IService {
|
|
|
272
272
|
ConfirmSubscribe: (data?: IConfirmSubscribeRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
273
273
|
SocialLogin: (data: ISocialLoginRequest, options?: IRequestInit) => Promise<IApiResponse<ISocialLoginResponse>>;
|
|
274
274
|
ByIdList: (data?: IMemberByIdListRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberByIdListResponse>>;
|
|
275
|
+
UpdateProfilePhoto: (data: FormData, options?: IRequestInit) => Promise<IApiResponse<IUpdateProfilePhotoResponse>>;
|
|
275
276
|
}
|
|
@@ -99,6 +99,9 @@ exports.ShoppingCartService = {
|
|
|
99
99
|
DoBkmExpressTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
100
100
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoBkmExpressTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
101
101
|
}),
|
|
102
|
+
DoPayAtDoorTransaction: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
103
|
+
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.DoPayAtDoorTransaction, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
104
|
+
}),
|
|
102
105
|
GetPreInfoForm: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
103
106
|
return (0, __1.fetchRequest)().post(exports.ShoppingCartService.Url(urls_1.default.ShoppingCart.GetPreInfoForm, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
104
107
|
}),
|
|
@@ -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 } from "../..";
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, IGiftCardInfo, IRequestInfo, IGetCartItemCountResponse, IGetCartResponse, IGetInstallmentOptionsResponse, IDoTransferTransactionResponse, IDoCreditCardTransactionResponse, IDoIyzicoCreditCardTransactionResponse, IDoIyzicoTransactionResponse, ICreditCard, IGetSalesAggreementFormResponse, IGetPreInfoFormResponse, IDoFreeOfChargeTransactionResponse, IDoGarantipayTransactionResponse, IGetAvailableStoresForCartResponse, IDoHepsipayTransactionResponse, IDoBkmExpressTransactionResponse, IDoPayAtDoorTransactionResponse } from "../..";
|
|
2
2
|
export interface IAddToCartRequest {
|
|
3
3
|
flags?: string | number | string[];
|
|
4
4
|
productId: number;
|
|
@@ -130,6 +130,12 @@ export interface IAddGiftCardCouponRequest extends IGetCartRequest {
|
|
|
130
130
|
export interface IRemoveGiftCardCouponRequest extends IGetCartRequest {
|
|
131
131
|
couponCode: string;
|
|
132
132
|
}
|
|
133
|
+
export interface IDoPayAtDoorTransactionRequest extends IGetCartRequest {
|
|
134
|
+
cash: boolean;
|
|
135
|
+
creditCard: boolean;
|
|
136
|
+
isApprovedToSalesAggreementForm: boolean;
|
|
137
|
+
isApprovedToPreInformationForm: boolean;
|
|
138
|
+
}
|
|
133
139
|
export interface IGetAvailableStoresForCartRequest extends Omit<IGetCartRequest, "flags"> {
|
|
134
140
|
}
|
|
135
141
|
export interface IShoppingCartService extends IService {
|
|
@@ -148,6 +154,7 @@ export interface IShoppingCartService extends IService {
|
|
|
148
154
|
DoGarantipayTransaction: (data: IDoGarantipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoGarantipayTransactionResponse>>;
|
|
149
155
|
DoHepsipayTransaction: (data: IDoHepsipayTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoHepsipayTransactionResponse>>;
|
|
150
156
|
DoBkmExpressTransaction: (data: IDoBkmExpressTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoBkmExpressTransactionResponse>>;
|
|
157
|
+
DoPayAtDoorTransaction: (data: IDoPayAtDoorTransactionRequest, options?: IRequestInit) => Promise<IApiResponse<IDoPayAtDoorTransactionResponse>>;
|
|
151
158
|
GetPreInfoForm: (data: IGetPreInfoFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPreInfoFormResponse>>;
|
|
152
159
|
GetSalesAggreementForm: (data: IGetSalesAggreementFormRequest, options?: IRequestInit) => Promise<IApiResponse<IGetSalesAggreementFormResponse>>;
|
|
153
160
|
AddGiftBoxNote: (data: IAddGiftBoxNoteRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
package/dist/services/urls.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ declare const _default: {
|
|
|
68
68
|
GetMemberByIntegrationCode: string;
|
|
69
69
|
EducationStatusList: string;
|
|
70
70
|
JobList: string;
|
|
71
|
+
UpdateProfilePhoto: string;
|
|
71
72
|
NotificationPreferences: string;
|
|
72
73
|
NotificationPreferencesByMemberId: string;
|
|
73
74
|
ByIdList: string;
|
|
@@ -167,6 +168,7 @@ declare const _default: {
|
|
|
167
168
|
DoGarantipayTransaction: string;
|
|
168
169
|
DoHepsipayTransaction: string;
|
|
169
170
|
DoBkmExpressTransaction: string;
|
|
171
|
+
DoPayAtDoorTransaction: string;
|
|
170
172
|
GetPreInfoForm: string;
|
|
171
173
|
GetSalesAggreementForm: string;
|
|
172
174
|
AddGiftBoxNote: string;
|
package/dist/services/urls.js
CHANGED
|
@@ -79,6 +79,7 @@ exports.default = {
|
|
|
79
79
|
GetMemberByIntegrationCode: "/{language}/Members/v1/GetMemberByIntegrationCode",
|
|
80
80
|
EducationStatusList: "/{language}/Members/v1/EducationStatusList",
|
|
81
81
|
JobList: "/{language}/Members/v1/JobList",
|
|
82
|
+
UpdateProfilePhoto: "/{language}/Members/v1/UpdateProfilePhoto",
|
|
82
83
|
NotificationPreferences: "/{language}/Members/v1/NotificationPreferences",
|
|
83
84
|
NotificationPreferencesByMemberId: "/{language}/Members/v1/NotificationPreferencesByMemberId",
|
|
84
85
|
ByIdList: "/{language}/Members/v1/ByIdList",
|
|
@@ -178,6 +179,7 @@ exports.default = {
|
|
|
178
179
|
DoGarantipayTransaction: "/{language}/ShoppingCartGateway/v1/DoGarantipayTransaction",
|
|
179
180
|
DoHepsipayTransaction: "/{language}/ShoppingCartGateway/v1/DoHepsipayTransaction",
|
|
180
181
|
DoBkmExpressTransaction: "/{language}/ShoppingCartGateway/v1/DoBkmExpressTransaction",
|
|
182
|
+
DoPayAtDoorTransaction: "/{language}/ShoppingCartGateway/v1/DoPayAtDoorTransaction",
|
|
181
183
|
GetPreInfoForm: "/{language}/ShoppingCartGateway/v1/GetPreInfoForm",
|
|
182
184
|
GetSalesAggreementForm: "/{language}/ShoppingCartGateway/v1/GetSalesAggreementForm",
|
|
183
185
|
AddGiftBoxNote: "/{language}/ShoppingCartGateway/v1/AddGiftBoxNote",
|