(t: Template, nook?: NookId)
| 49 | } |
| 50 | |
| 51 | function domainToCreateRemote(t: Template, nook?: NookId) { |
| 52 | const nooks = nook == null ? objKeys(t.remotes) : [nook] |
| 53 | const r: CreateRemoteTemplate = { |
| 54 | localId: t.id, |
| 55 | name: t.name, |
| 56 | css: t.css, |
| 57 | nooks, |
| 58 | templateType: t.templateType, |
| 59 | fields: t.fields.map((x) => x.name), |
| 60 | } |
| 61 | return r |
| 62 | } |
| 63 | |
| 64 | function domainToEditRemote(template: Template, nook?: NookId) { |
| 65 | const remoteIds = objEntries(template.remotes) |
no outgoing calls
no test coverage detected