nextemos 4.9.13 → 4.9.15
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.
|
@@ -102,3 +102,51 @@ export interface IPasswordRenewalMessageResponse extends IResponse {
|
|
|
102
102
|
token: string;
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
+
export interface IMessageByMemberIdResponse extends IResponse {
|
|
106
|
+
data?: IMessage[];
|
|
107
|
+
}
|
|
108
|
+
export interface IAnswersByMessageIdResponse extends IResponse {
|
|
109
|
+
data?: IAnswer[];
|
|
110
|
+
}
|
|
111
|
+
export interface IAnswer {
|
|
112
|
+
id: number;
|
|
113
|
+
answerContent: string;
|
|
114
|
+
star: number;
|
|
115
|
+
parentId: number;
|
|
116
|
+
messageId: number;
|
|
117
|
+
updatedAtUtc: string;
|
|
118
|
+
updatedBy: number;
|
|
119
|
+
createdAtUtc: string;
|
|
120
|
+
createdBy: number;
|
|
121
|
+
createdUserType: string;
|
|
122
|
+
updatedUserType: string;
|
|
123
|
+
}
|
|
124
|
+
export interface IMessage {
|
|
125
|
+
id: number;
|
|
126
|
+
memberId: number;
|
|
127
|
+
messageStateId: number;
|
|
128
|
+
orderDocNo: string;
|
|
129
|
+
productCode: string;
|
|
130
|
+
integrationCode: string;
|
|
131
|
+
invoiceDocNo: string;
|
|
132
|
+
messageSubjectId: number;
|
|
133
|
+
documentUrl: string;
|
|
134
|
+
messageContent: string;
|
|
135
|
+
messageTitle: string;
|
|
136
|
+
relationTypeId: number | string;
|
|
137
|
+
name: string;
|
|
138
|
+
surname: string;
|
|
139
|
+
phone: string;
|
|
140
|
+
email: string;
|
|
141
|
+
countrySourceDataId: number;
|
|
142
|
+
citySourceDataId: number;
|
|
143
|
+
districtSourceDataId: number;
|
|
144
|
+
neighbourhoodSourceDataId: number;
|
|
145
|
+
zipCode: string;
|
|
146
|
+
address: string;
|
|
147
|
+
communicationPreference: string;
|
|
148
|
+
createdUserType: string;
|
|
149
|
+
updatedUserType: string;
|
|
150
|
+
createdAtUtc: string;
|
|
151
|
+
updatedAtUtc: string;
|
|
152
|
+
}
|
|
@@ -170,6 +170,26 @@ exports.MemberService = {
|
|
|
170
170
|
}), Object.assign({ body: formData }, options));
|
|
171
171
|
});
|
|
172
172
|
},
|
|
173
|
+
MessagesByMemberId: function () {
|
|
174
|
+
return __awaiter(this, arguments, void 0, function* (data = {}, options) {
|
|
175
|
+
return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
|
|
176
|
+
serviceUrl: this.ServiceUrl(),
|
|
177
|
+
prefix: this.Prefix,
|
|
178
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
179
|
+
methodName: urls_1.default.Member.MemberMessages.MessagesByMemberId,
|
|
180
|
+
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
181
|
+
});
|
|
182
|
+
},
|
|
183
|
+
AnswersByMessageId: function (data, options) {
|
|
184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
|
|
186
|
+
serviceUrl: this.ServiceUrl(),
|
|
187
|
+
prefix: this.Prefix,
|
|
188
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
189
|
+
methodName: urls_1.default.Member.MemberMessages.AnswersByMessageId,
|
|
190
|
+
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
191
|
+
});
|
|
192
|
+
},
|
|
173
193
|
// address
|
|
174
194
|
Addresses: function () {
|
|
175
195
|
return __awaiter(this, arguments, void 0, function* (data = {}, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse, IMemberAddressesResponse, IMemberAddressResponse, AddressPart, IPasswordRenewalMessageResponse, IRequestBase } from "../..";
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse, IMemberAddressesResponse, IMemberAddressResponse, AddressPart, IPasswordRenewalMessageResponse, IRequestBase, IMessageByMemberIdResponse, IAnswersByMessageIdResponse } from "../..";
|
|
2
2
|
export interface IMessageSubjectRequest extends IRequestBase {
|
|
3
3
|
}
|
|
4
4
|
export interface ISendMessageRequest extends IRequestBase {
|
|
@@ -111,6 +111,12 @@ export interface IUpdateAddressRequest extends IMemberAddressRequest {
|
|
|
111
111
|
}
|
|
112
112
|
export interface ILogoffRequest extends IRequestBase {
|
|
113
113
|
}
|
|
114
|
+
export interface IMessageByMemberIdRequest extends IRequestBase {
|
|
115
|
+
id?: number;
|
|
116
|
+
}
|
|
117
|
+
export interface IAnswersByMessageIdRequest extends IRequestBase {
|
|
118
|
+
id: number;
|
|
119
|
+
}
|
|
114
120
|
export interface IMemberService extends IService {
|
|
115
121
|
SubjectsAll: (data?: IMessageSubjectRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageSubjectResponse>>;
|
|
116
122
|
SendMessage: (data: ISendMessageRequest, options?: IRequestInit) => Promise<IApiResponse<ISendMessageResponse>>;
|
|
@@ -128,4 +134,6 @@ export interface IMemberService extends IService {
|
|
|
128
134
|
PasswordRenewalMessage: (data?: IPasswordRenewalMessageRequest, options?: IRequestInit) => Promise<IApiResponse<IPasswordRenewalMessageResponse>>;
|
|
129
135
|
ChangePasswordRequest: (data?: IChangePasswordRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
130
136
|
ChangePasswordByTokenRequest: (data?: IChangePasswordByTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
137
|
+
MessagesByMemberId: (data?: IMessageByMemberIdRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageByMemberIdResponse>>;
|
|
138
|
+
AnswersByMessageId: (data?: IAnswersByMessageIdRequest, options?: IRequestInit) => Promise<IApiResponse<IAnswersByMessageIdResponse>>;
|
|
131
139
|
}
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -67,7 +67,9 @@ exports.default = {
|
|
|
67
67
|
},
|
|
68
68
|
MemberMessages: {
|
|
69
69
|
SubjectsAll: '/{language}/MemberMessages/v1/Subjects/All',
|
|
70
|
-
Messages: '/{language}/MemberMessages/v1/Messages'
|
|
70
|
+
Messages: '/{language}/MemberMessages/v1/Messages',
|
|
71
|
+
MessagesByMemberId: '/{language}/MemberMessages/v1/MessagesByMemberId',
|
|
72
|
+
AnswersByMessageId: '/{language}/MemberMessages/v1/AnswersByMessageId'
|
|
71
73
|
},
|
|
72
74
|
Address: {
|
|
73
75
|
AddressesByMemberId: '/{language}/Members/v1/AddressesByMemberId',
|