ordrestyring-skill/SKILL.md

61 lines
1.7 KiB
Markdown

---
name: ordrestyring
description: Access Ordrestyring job management system for Parlobyg. Use for cases, customers, quotes, time registration, invoicing, materials. Triggers on anything Ordrestyring-related.
---
# Ordrestyring Skill
GraphQL API client for Ordrestyring — the core job management system for Parlobyg (Danish construction company).
## Quick Start
```bash
# Query cases
python3 scripts/graphql_query.py cases --limit 10
# Query customers
python3 scripts/graphql_query.py customers --limit 10
# Query specific case
python3 scripts/graphql_query.py case --id 12345
# Query hours/time entries
python3 scripts/graphql_query.py hours --limit 50
# Query offers/quotes
python3 scripts/graphql_query.py offers --limit 10
```
## Credentials
- **Agreement ID:** 21528
- **API Key:** `q3mjVDR6wAdPCvZT`
- **GraphQL Endpoint:** `https://graphql.ordrestyring.dk/graphql`
- **GraphiQL (interactive):** `https://graphql.ordrestyring.dk/graphiql`
## Capabilities
**Via GraphQL API:**
- 📋 **Cases (Sager)** — search, status, economy
- 👥 **Customers (Kunder)** — contact info, addresses, statements
- 🧾 **Quotes & Invoices** — quote lines, sales invoices
- ⏱️ **Hours (Timer)** — registered hours per case, worker, period
- 🔧 **Materials** — material usage per case
- 📊 **Finance** — financePosts, aggregations
**Pagination:** Max 200 per page
**Safety:** Mutations are coded but gated. Read-only by default.
## Web Login (fallback)
For features not in API (e.g., Gantt views):
- URL: https://ordrestyring.dk
- Aftalenummer: 21528
- Brugernavn: Mikkel
- (Password: ask Mikkel)
## References
- [GraphQL API Reference](references/graphql-api.md)
- [Web Access Notes](references/web-access.md)