()
| 645 | } |
| 646 | |
| 647 | function elementTargetSchemaVariants(): JsonSchema[] { |
| 648 | return [ |
| 649 | { |
| 650 | type: 'object', |
| 651 | properties: { |
| 652 | kind: { type: 'string', const: 'ref' }, |
| 653 | ref: { type: 'string', description: 'Snapshot element ref such as @e12.' }, |
| 654 | label: { type: 'string', description: 'Optional human label for the ref.' }, |
| 655 | }, |
| 656 | required: ['kind', 'ref'], |
| 657 | additionalProperties: false, |
| 658 | }, |
| 659 | { |
| 660 | type: 'object', |
| 661 | properties: { |
| 662 | kind: { type: 'string', const: 'selector' }, |
| 663 | selector: { type: 'string', description: 'Agent-device selector expression.' }, |
| 664 | }, |
| 665 | required: ['kind', 'selector'], |
| 666 | additionalProperties: false, |
| 667 | }, |
| 668 | ]; |
| 669 | } |
| 670 | |
| 671 | function readRecordField(record: Record<string, unknown>, key: string): Record<string, unknown> { |
| 672 | const value = record[key]; |
no outgoing calls
no test coverage detected
searching dependent graphs…