nextemos 5.10.10 → 5.10.11
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.
|
@@ -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;
|
|
@@ -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
|
}
|
package/dist/services/urls.d.ts
CHANGED
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",
|