nextemos 5.3.6 → 5.3.7
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.
|
@@ -156,16 +156,7 @@ exports.MemberService = {
|
|
|
156
156
|
return (0, __1.fetchRequest)().get(exports.MemberService.Url(urls_1.default.Member.MemberDocument.Documents, options), Object.assign(Object.assign({}, options), { params: data }));
|
|
157
157
|
}),
|
|
158
158
|
AddDocument: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
159
|
-
|
|
160
|
-
if (data) {
|
|
161
|
-
Object.keys(data).forEach((key) => {
|
|
162
|
-
const value = data[key];
|
|
163
|
-
if (value !== undefined && value !== null) {
|
|
164
|
-
formData.append(key, value.toString());
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
return (0, __1.fetchRequest)().post(exports.MemberService.Url(urls_1.default.Member.MemberDocument.Add, options), Object.assign({ body: formData }, options));
|
|
159
|
+
return (0, __1.fetchRequest)().post(exports.MemberService.Url(urls_1.default.Member.MemberDocument.Add, options), Object.assign({ body: data }, options));
|
|
169
160
|
}),
|
|
170
161
|
// MemberReference
|
|
171
162
|
AddReference: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -219,7 +219,7 @@ export interface IMemberService extends IService {
|
|
|
219
219
|
PointsByMemberId: (data?: IPointsByMemberIdRequest, options?: IRequestInit) => Promise<IApiResponse<IPointsByMemberIdResponse>>;
|
|
220
220
|
CommunicationInfoUpdateVerificationCode: (data?: ICommunicationInfoUpdateVerificationCodeRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
221
221
|
Documents: (data?: IMemberDocumentsRequest, options?: IRequestInit) => Promise<IApiResponse<IMemberDocumentsResponse>>;
|
|
222
|
-
AddDocument: (data
|
|
222
|
+
AddDocument: (data: FormData, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
223
223
|
EducationStatusList: (options?: IRequestInit) => Promise<IApiResponse<IEducationStatusListResponse>>;
|
|
224
224
|
JobList: (options?: IRequestInit) => Promise<IApiResponse<IJobListResponse>>;
|
|
225
225
|
Segments: (options?: IRequestInit) => Promise<IApiResponse<ISegmentsResponse>>;
|