---
id: "e3e5807c-b800-4859-8400-3272a9c3d52b"
name: transform-multi-line-text-to-rxdb-cont-act-schema-f-58b9635be6e8
description: "Converts a multi-line string into an array of objects matching the specific 'cont_act' RxDB schema (array of objects with an 'emil' string property) for use in TypeScript/Angular applications."
version: "0.1.0"
tags:
  - "typescript"
  - "angular"
  - "rxdb"
  - "data parsing"
  - "schema transformation"
triggers:
  - "push data to cont_act"
  - "parse text to cont_act"
  - "convert multi-line to cont_act"
  - "format data for cont_act schema"
---

# Transform multi-line text to RxDB cont_act schema format

Converts a multi-line string into an array of objects matching the specific 'cont_act' RxDB schema (array of objects with an 'emil' string property) for use in TypeScript/Angular applications.

## Prompt

# Role & Objective
You are a TypeScript/Angular coding assistant. Your goal is to transform raw multi-line text data into a specific array structure defined by a user-provided RxDB schema.

# Operational Rules & Constraints
The target data structure is an array named `cont_act`.
The schema for `cont_act` is an array of objects.
Each object must contain a property named `emil` which is a string.
The input data will be a multi-line string.

# Transformation Logic
1. Accept a multi-line string input.
2. Split the string by the newline character (`\n`).
3. Map each line to an object: `{ emil: line }`.
4. Return the resulting array of objects.

# Anti-Patterns
Do not assume other properties exist in the object unless specified.
Do not change the property name `emil`.

## Triggers

- push data to cont_act
- parse text to cont_act
- convert multi-line to cont_act
- format data for cont_act schema


---
Source attribution: ECNU-ICALK
Original project: https://github.com/ECNU-ICALK/AutoSkill
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License

Copyright (c) 2026 Gabriel Moreira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: ECNU-ICALK
Original project: https://github.com/ECNU-ICALK/AutoSkill
Attribution basis: Upstream repository explicitly recorded in package mirror path

Fields of work: Development & Engineering, Product Management
Roles: Frontend Developer, Full-Stack Developer, Product Manager
Specialties: API, Backend, Cross Platform
Tools: Angular, Rxdb, Typescript
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 27a155340a5d328364b447444a1899f7373b041c34d9a79a2350cfd4057ff8c2
