contentful-management
Version:
Client for Contentful's Content Management API
26 lines (23 loc) • 914 B
JavaScript
import { get as get$1 } from './raw.js';
const FunctionLogAlphaHeaders = {
'x-contentful-enable-alpha-feature': 'function-logs',
};
const baseURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs`;
const getURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs/${params.logId}`;
const get = (http, params) => {
return get$1(http, getURL(params), {
headers: {
...FunctionLogAlphaHeaders,
},
});
};
const getMany = (http, params) => {
return get$1(http, baseURL(params), {
params: params.query,
headers: {
...FunctionLogAlphaHeaders,
},
});
};
export { get, getMany };
//# sourceMappingURL=function-log.js.map