Map the schema's events to the generator's event-entry shape.
(schema)
| 786 | |
| 787 | /** Map the schema's events to the generator's event-entry shape. */ |
| 788 | function schemaToEvents(schema) { |
| 789 | return schema.events.map((e) => ({ |
| 790 | domain: e.domain, |
| 791 | methodStr: e.method, |
| 792 | eventName: e.name, |
| 793 | paramsTypeName: e.params ? normalizeDottedName(e.params.ref) : null, |
| 794 | })) |
| 795 | } |
| 796 | |
| 797 | // ============================================================ |
| 798 | // Code generation |
no test coverage detected