nextemos 5.1.13 → 5.1.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.
|
@@ -72,6 +72,13 @@ const fetchRequest = () => {
|
|
|
72
72
|
console.log(`Fetch Request: ${method}`, apiURL.toString(), FETCH_OPTIONS.LOG_LEVEL === "debug" ? requestOptions : "");
|
|
73
73
|
try {
|
|
74
74
|
const response = yield fetch(apiURL.toString(), requestOptions);
|
|
75
|
+
// Headers nesnesini Object'e dönüştürme
|
|
76
|
+
const headers = {};
|
|
77
|
+
if (response === null || response === void 0 ? void 0 : response.headers) {
|
|
78
|
+
response.headers.forEach((value, name) => {
|
|
79
|
+
headers[name] = value;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
75
82
|
if (!response.ok) {
|
|
76
83
|
const errorDetail = yield response.text();
|
|
77
84
|
if (["debug", "info", "trace"].includes(FETCH_OPTIONS.LOG_LEVEL))
|
|
@@ -84,15 +91,9 @@ const fetchRequest = () => {
|
|
|
84
91
|
return {
|
|
85
92
|
status: response.status,
|
|
86
93
|
errorMessage: errorDetail,
|
|
94
|
+
headers,
|
|
87
95
|
};
|
|
88
96
|
}
|
|
89
|
-
// Headers nesnesini Object'e dönüştürme
|
|
90
|
-
const headers = {};
|
|
91
|
-
if (response === null || response === void 0 ? void 0 : response.headers) {
|
|
92
|
-
response.headers.forEach((value, name) => {
|
|
93
|
-
headers[name] = value;
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
97
|
let responseModel;
|
|
97
98
|
if (Object.keys(headers).length > 0 &&
|
|
98
99
|
headers.hasOwnProperty("content-type") &&
|
|
@@ -107,6 +107,11 @@ export interface IMemberAddressesResponse extends IResponse {
|
|
|
107
107
|
export interface IMemberAddressResponse extends IResponse {
|
|
108
108
|
data?: IAddress;
|
|
109
109
|
}
|
|
110
|
+
export interface IUpdateAddressResponse extends IResponse {
|
|
111
|
+
data: {
|
|
112
|
+
addressId: number;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
110
115
|
export interface IPasswordRenewalMessageResponse extends IResponse {
|
|
111
116
|
data?: {
|
|
112
117
|
token: string;
|