nextemos 5.8.15 → 5.9.1
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TotalTypes } from "nextemos/enums";
|
|
2
|
-
import { IAddress } from "./address";
|
|
3
2
|
import { IResponse } from "./response";
|
|
4
3
|
import { IWarehouse } from "./stock";
|
|
5
4
|
export interface ITransactionResponse extends IResponse {
|
|
@@ -15,7 +14,6 @@ export interface IGetCartResponse extends IResponse {
|
|
|
15
14
|
paymentTypes: IPaymentType[];
|
|
16
15
|
coupons: ICoupon[];
|
|
17
16
|
shipmentOptions: IShipmentOption[];
|
|
18
|
-
addresses: IAddress[];
|
|
19
17
|
}
|
|
20
18
|
export interface IGetCartItemCountResponse extends IResponse {
|
|
21
19
|
count: number;
|
|
@@ -69,8 +69,8 @@ exports.MemberService = {
|
|
|
69
69
|
LogoffRequest: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
70
70
|
return (0, __1.fetchRequest)().post(exports.MemberService.Url(urls_1.default.Member.Members.LogoffRequest, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
71
71
|
}),
|
|
72
|
-
ActiveMember: (options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
73
|
-
return (0, __1.fetchRequest)().get(exports.MemberService.Url(urls_1.default.Member.Members.ActiveMember, options), Object.assign({}, options));
|
|
72
|
+
ActiveMember: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
73
|
+
return (0, __1.fetchRequest)().get(exports.MemberService.Url(urls_1.default.Member.Members.ActiveMember, options), Object.assign(Object.assign({}, options), { params: data }));
|
|
74
74
|
}),
|
|
75
75
|
ContactApprovalMessage: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
76
76
|
return (0, __1.fetchRequest)().post(exports.MemberService.Url(urls_1.default.Member.Members.ContactApprovalMessage, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
@@ -221,6 +221,9 @@ export interface ISocialLoginRequest extends IRequestBase {
|
|
|
221
221
|
provider: string;
|
|
222
222
|
token: string;
|
|
223
223
|
}
|
|
224
|
+
export interface IActiveMemberRequest extends IRequestBase {
|
|
225
|
+
includes?: string[];
|
|
226
|
+
}
|
|
224
227
|
export interface IMemberService extends IService {
|
|
225
228
|
SubjectsAll: (data?: IMessageSubjectRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageSubjectResponse>>;
|
|
226
229
|
SendMessage: (data: ISendMessageRequest, options?: IRequestInit) => Promise<IApiResponse<ISendMessageResponse>>;
|
|
@@ -229,7 +232,7 @@ export interface IMemberService extends IService {
|
|
|
229
232
|
Login: (data: ILoginRequest, options?: IRequestInit) => Promise<IApiResponse<ILoginRequestResponse>>;
|
|
230
233
|
LogonAsGuestRequest: (data: ILogonAsGuestRequest, options?: IRequestInit) => Promise<IApiResponse<ILogonAsGuestRequestResponse>>;
|
|
231
234
|
LogoffRequest: (data: ILogoffRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
232
|
-
ActiveMember: (options?: IRequestInit) => Promise<IApiResponse<IActiveMemberResponse>>;
|
|
235
|
+
ActiveMember: (data?: IActiveMemberRequest, options?: IRequestInit) => Promise<IApiResponse<IActiveMemberResponse>>;
|
|
233
236
|
ContactApprovalMessage: (data: IContactApprovalMessageRequest, options?: IRequestInit) => Promise<IApiResponse<IContactApprovalMessageResponse>>;
|
|
234
237
|
ApproveValidationTokenRequest: (data: IApproveValidationTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
235
238
|
Addresses: (data?: IMemberAddressesRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberAddressesResponse>>;
|