(collection: string, slug = '', path = '', options: Options = {})
| 42 | } |
| 43 | |
| 44 | export function createEntry(collection: string, slug = '', path = '', options: Options = {}) { |
| 45 | const returnObj: EntryValue = { |
| 46 | collection, |
| 47 | slug, |
| 48 | path, |
| 49 | partial: options.partial || false, |
| 50 | raw: options.raw || '', |
| 51 | data: options.data || {}, |
| 52 | label: options.label || null, |
| 53 | isModification: isBoolean(options.isModification) ? options.isModification : null, |
| 54 | mediaFiles: options.mediaFiles || [], |
| 55 | author: options.author || '', |
| 56 | updatedOn: options.updatedOn || '', |
| 57 | status: options.status || '', |
| 58 | meta: options.meta || {}, |
| 59 | i18n: options.i18n || {}, |
| 60 | }; |
| 61 | |
| 62 | return returnObj; |
| 63 | } |
no outgoing calls
no test coverage detected