@griddo/ax 1.75.243 → 1.75.244
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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "1.75.
|
|
4
|
+
"version": "1.75.244",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -230,5 +230,5 @@
|
|
|
230
230
|
"publishConfig": {
|
|
231
231
|
"access": "public"
|
|
232
232
|
},
|
|
233
|
-
"gitHead": "
|
|
233
|
+
"gitHead": "deb9a53919ff087633595091d222468ee86c789b"
|
|
234
234
|
}
|
|
@@ -120,6 +120,7 @@ const getDataContents = (params: IGetStructuredDataParams, siteID?: number | nul
|
|
|
120
120
|
filterQuery,
|
|
121
121
|
relatedFields = false,
|
|
122
122
|
order,
|
|
123
|
+
lang
|
|
123
124
|
} = params;
|
|
124
125
|
|
|
125
126
|
const url = siteID ? `${host}/site/${siteID}${endpoint}` : `${host}${endpoint}`;
|
|
@@ -130,7 +131,11 @@ const getDataContents = (params: IGetStructuredDataParams, siteID?: number | nul
|
|
|
130
131
|
if (order) SERVICES.GET_DATA_CONTENTS.dynamicUrl += `&order=${order}`;
|
|
131
132
|
if (filterQuery) SERVICES.GET_DATA_CONTENTS.dynamicUrl += filterQuery;
|
|
132
133
|
|
|
133
|
-
|
|
134
|
+
const dataHeader = {
|
|
135
|
+
...(lang && { lang }),
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
return sendRequest(SERVICES.GET_DATA_CONTENTS, null, dataHeader);
|
|
134
139
|
};
|
|
135
140
|
|
|
136
141
|
const createDataContent = (data: any) => {
|