nextemos 5.5.12 → 5.5.14
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.
|
@@ -187,4 +187,8 @@ exports.MemberService = {
|
|
|
187
187
|
ConfirmSubscribe: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
188
188
|
return (0, __1.fetchRequest)().post(exports.MemberService.Url(urls_1.default.Member.Newsletter.ConfirmSubscribe, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
189
189
|
}),
|
|
190
|
+
// Social Login
|
|
191
|
+
SocialLogin: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
192
|
+
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) }));
|
|
193
|
+
}),
|
|
190
194
|
};
|
|
@@ -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 } 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 } from "../..";
|
|
2
2
|
export interface IMessageSubjectRequest extends IRequestBase {
|
|
3
3
|
}
|
|
4
4
|
export interface ISendMessageRequest extends IRequestBase {
|
|
@@ -217,6 +217,10 @@ export interface IConfirmSubscribeRequest extends IRequestBase {
|
|
|
217
217
|
key: string;
|
|
218
218
|
ipAddress?: string;
|
|
219
219
|
}
|
|
220
|
+
export interface ISocialLoginRequest extends IRequestBase {
|
|
221
|
+
provider: string;
|
|
222
|
+
token: string;
|
|
223
|
+
}
|
|
220
224
|
export interface IMemberService extends IService {
|
|
221
225
|
SubjectsAll: (data?: IMessageSubjectRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageSubjectResponse>>;
|
|
222
226
|
SendMessage: (data: ISendMessageRequest, options?: IRequestInit) => Promise<IApiResponse<ISendMessageResponse>>;
|
|
@@ -259,4 +263,5 @@ export interface IMemberService extends IService {
|
|
|
259
263
|
Subscribe: (data?: ISubscribeRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
260
264
|
Unsubscribe: (data?: IUnsubscribeRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
261
265
|
ConfirmSubscribe: (data?: IConfirmSubscribeRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
266
|
+
SocialLogin: (data: ISocialLoginRequest, options?: IRequestInit) => Promise<IApiResponse<ISocialLoginResponse>>;
|
|
262
267
|
}
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -124,6 +124,7 @@ exports.default = {
|
|
|
124
124
|
Unsubscribe: "/{language}/Newsletter/v1/Unsubscribe",
|
|
125
125
|
ConfirmSubscribe: "/{language}/Newsletter/v1/ConfirmSubscribe",
|
|
126
126
|
},
|
|
127
|
+
SocialLogin: "/{language}/SocialLogin/v1/{provider}",
|
|
127
128
|
},
|
|
128
129
|
Address: {
|
|
129
130
|
AddressSourceData: {
|