maintainx-sdk-patterns

Featured

Learn MaintainX REST API patterns, pagination, filtering, and client architecture. Use when building robust API integrations, implementing pagination, or creating reusable SDK patterns for MaintainX. Trigger with phrases like "maintainx sdk", "maintainx api patterns", "maintainx pagination", "maintainx filtering", "maintainx client design".

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 SDK Patterns ## Overview Production-grade patterns for building robust MaintainX API integrations with proper error handling, cursor-based pagination, retry logic, and type safety. ## Prerequisites - Completed `maintainx-install-auth` setup - TypeScript/Node.js familiarity - Understanding of REST API principles ## Instructions ### Step 1: Type-Safe Client with Generics ```typescript // src/maintainx/typed-client.ts import axios, { AxiosInstance, AxiosRequestConfig, AxiosError } from 'axios'; interface PaginatedResponse<T> { cursor: string | null; } interface WorkOrder { id: number; title: string; status: 'OPEN' | 'IN_PROGRESS' | 'ON_HOLD' | 'COMPLETED' | 'CLOSED'; priority: 'NONE' | 'LOW' | 'MEDIUM' | 'HIGH'; description?: string; assignees: Array<{ type: 'USER' | 'TEAM'; id: number }>; assetId?: number; locationId?: number; createdAt: string; updatedAt: string; completedAt?: string; dueDate?: string; categories: string[]; } interface Asset { id: number; name: string; serialNumber?: string; model?: string; manufacturer?: string; locationId?: number; createdAt: string; } interface WorkOrdersResponse extends PaginatedResponse<WorkOrder> { workOrders: WorkOrder[]; } interface AssetsResponse extends PaginatedResponse<Asset> { assets: Asset[]; } export class MaintainXClient { private http: AxiosInstance; constructor(apiKey?: string) { const key = apiKey || process.env.MAINTAINX_API_KEY; if (!key) thr...

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