maintainx-data-handling

Featured

Data synchronization, ETL patterns, and data management for MaintainX. Use when syncing data between MaintainX and other systems, building ETL pipelines, or managing data consistency. Trigger with phrases like "maintainx data sync", "maintainx etl", "maintainx export", "maintainx data migration", "maintainx data pipeline".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# MaintainX Data Handling ## Overview Patterns for synchronizing, transforming, and exporting data between MaintainX and external systems (databases, data warehouses, ERPs). ## Prerequisites - MaintainX API access configured - Node.js 18+ with `axios` - Target database or data warehouse available ## Instructions ### Step 1: Incremental Sync with Cursor Pagination ```typescript import { MaintainXClient } from './client'; import { writeFileSync, existsSync, readFileSync } from 'fs'; const SYNC_STATE_FILE = '.maintainx-sync-state.json'; interface SyncState { lastSyncAt: string; workOrderCursor?: string; assetCursor?: string; } function loadSyncState(): SyncState { if (existsSync(SYNC_STATE_FILE)) { return JSON.parse(readFileSync(SYNC_STATE_FILE, 'utf-8')); } return { lastSyncAt: new Date(0).toISOString() }; } function saveSyncState(state: SyncState) { writeFileSync(SYNC_STATE_FILE, JSON.stringify(state, null, 2)); } async function incrementalSync(client: MaintainXClient) { const state = loadSyncState(); const syncStart = new Date().toISOString(); console.log(`Syncing changes since ${state.lastSyncAt}`); // Sync work orders updated since last run let cursor: string | undefined; let totalWOs = 0; do { const response = await client.getWorkOrders({ updatedAtGte: state.lastSyncAt, limit: 100, cursor, }); for (const wo of response.workOrders) { await upsertWorkOrder(wo); // Your DB write function to...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category