|
|
@@ -514,23 +514,31 @@ export class ShopsEndpoint extends BaseEndpointComponent {
|
|
|
// Build response with content change markers and URLs only (no content)
|
|
|
const contentMetadata: any = {
|
|
|
shipping_informations: latestContent.shipping.map(c => ({
|
|
|
+ id: c.id,
|
|
|
url: c.url,
|
|
|
changed: Boolean(c.changed),
|
|
|
+ enabled: Boolean(c.enabled),
|
|
|
last_updated: c.updated_at
|
|
|
})),
|
|
|
contacts: latestContent.contacts.map(c => ({
|
|
|
+ id: c.id,
|
|
|
url: c.url,
|
|
|
changed: Boolean(c.changed),
|
|
|
+ enabled: Boolean(c.enabled),
|
|
|
last_updated: c.updated_at
|
|
|
})),
|
|
|
terms_of_conditions: latestContent.terms.map(c => ({
|
|
|
+ id: c.id,
|
|
|
url: c.url,
|
|
|
changed: Boolean(c.changed),
|
|
|
+ enabled: Boolean(c.enabled),
|
|
|
last_updated: c.updated_at
|
|
|
})),
|
|
|
faq: latestContent.faq.map(c => ({
|
|
|
+ id: c.id,
|
|
|
url: c.url,
|
|
|
changed: Boolean(c.changed),
|
|
|
+ enabled: Boolean(c.enabled),
|
|
|
last_updated: c.updated_at
|
|
|
}))
|
|
|
};
|
|
|
@@ -627,9 +635,11 @@ export class ShopsEndpoint extends BaseEndpointComponent {
|
|
|
'faq';
|
|
|
|
|
|
grouped[typeKey].push({
|
|
|
+ id: content.id,
|
|
|
url: content.url,
|
|
|
content: content.content,
|
|
|
changed: Boolean(content.changed),
|
|
|
+ enabled: Boolean(content.enabled),
|
|
|
last_updated: content.updated_at,
|
|
|
title: content.title
|
|
|
});
|