Socket
Book a DemoInstallSign in
Socket

repzo

Package Overview
Dependencies
Maintainers
2
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

repzo

Repzo TypeScript SDK

1.0.180
latest
Source
npmnpm
Version published
Weekly downloads
680
107.32%
Maintainers
2
Weekly downloads
Β 
Created
Source

πŸ“š Repzo TypeScript SDK

npm version Documentation TypeScript OpenAPI

A comprehensive TypeScript SDK for the Repzo API platform with automatically generated documentation from OpenAPI specifications.

πŸš€ Features

  • Full TypeScript Support: Complete type definitions for all APIs
  • Comprehensive Documentation: Auto-generated from 86+ OpenAPI specifications
  • Interactive Docs: Beautiful HTML documentation with ReDoc
  • Multiple Formats: Markdown and HTML documentation
  • Type Safety: IntelliSense support and compile-time checking
  • Always Up-to-Date: Documentation automatically syncs with API changes

πŸ“¦ Installation

npm install repzo

πŸ”§ Quick Start

import Repzo from "repzo";
const repzo = new Repzo("my-repzo-api-key");
let clients = repzo.client.find({ search: "Mecca" });

// Example usage with type safety
const params: Service.Client.Find.Params = {
  page: 1,
  per_page: 25,
  active: true,
};

// Your API implementation here

πŸ“– Documentation

This SDK provides three levels of documentation:

1. 🏠 Documentation Hub

Open Interactive Documentation

A beautiful web interface showcasing all 86+ APIs with:

  • Interactive API explorer
  • Search functionality
  • Try-it-out capabilities
  • Mobile-responsive design

2. πŸ“š Complete API Reference

View Complete API Documentation

Single comprehensive document containing:

  • All endpoints in one place
  • Complete request/response schemas
  • Authentication details
  • Error handling information

3. πŸ“ Individual API Docs

Each API has dedicated documentation:

Available APIs (86+ endpoints)

CategoryAPIsDescription
Core BusinessClient, Product, Brand, CategoryCore business entities
InventoryInventory, Warehouse, TransferInventory management
SalesInvoice, Sales Order, PaymentsSales operations
AssetsAsset, Asset Parts, WorkordersAsset management
FeedbackActivity Feedback V1/V2, FormsCustomer feedback
MediaMedia, Media StorageFile management
AdminTeams, Reps, SettingsAdministration
IntegrationWebhooks, Logs, CommandsSystem integration

πŸ‘€ View All APIs

πŸ› οΈ Development

Generate Documentation

# Generate all documentation (Markdown + HTML)
npm run docs:build

# Generate only Markdown docs
npm run docs:python

# Generate only HTML docs
npm run docs:generate

# Serve documentation locally
npm run docs:serve
# Then open http://localhost:8080

Documentation Scripts

ScriptDescription
docs:buildGenerate complete documentation
docs:cleanRemove generated documentation
docs:rebuildClean and rebuild all docs
docs:serveServe docs locally on port 8080
docs:validateValidate documentation files

πŸ“‚ Documentation Structure

docs/
β”œβ”€β”€ README.md                          # Main documentation
β”œβ”€β”€ api/                              # Markdown documentation
β”‚   β”œβ”€β”€ index.md                      # API index
β”‚   β”œβ”€β”€ {api-name}.md                # API reference
β”‚   └── {api-name}-examples.md       # TypeScript examples
└── generated/                        # Interactive HTML docs
    β”œβ”€β”€ index.html                    # Documentation hub
    β”œβ”€β”€ {api-name}.html              # Individual API docs
    └── repzo-api-complete.html      # Complete API reference

πŸ’‘ Key Benefits for NPM Users

🎯 For Developers

  • IntelliSense Support: Full autocomplete in your IDE
  • Type Safety: Catch errors at compile time
  • Practical Examples: Ready-to-use TypeScript code
  • Interactive Testing: Try APIs directly in documentation

πŸ“š For Teams

  • Always Current: Docs auto-update with API changes
  • Multiple Formats: Choose Markdown or interactive HTML
  • Comprehensive Coverage: 86+ APIs fully documented
  • Search & Navigation: Find what you need quickly

πŸš€ For Projects

  • Faster Integration: Clear examples and schemas
  • Better Reliability: Type checking prevents runtime errors
  • Professional Docs: Beautiful, searchable documentation
  • Offline Access: Documentation included in NPM package

πŸ” Example Usage

Type-Safe API Calls

import { Service } from "repzo";

// Full type safety for parameters
const clientParams: Service.Client.Find.Params = {
  page: 1,
  per_page: 25,
  search: "coffee shop",
  active: true,
  tags: ["retail", "food-service"],
};

// Type-safe response handling
const handleResponse = (result: Service.Client.Find.Result) => {
  console.log(`Found ${result.paging.total} clients`);
  result.data.forEach((client) => {
    console.log(`${client.name} - ${client.formatted_address}`);
  });
};

Error Handling with Types

try {
  const result = await apiCall();
  if (result.success) {
    // TypeScript knows the exact shape of result.data
    console.log("Data:", result.data);
  }
} catch (error) {
  // Handle API errors appropriately
  console.error("API Error:", error);
}

🀝 Contributing

  • Fork the repository
  • Create your feature branch (git checkout -b feature/amazing-feature)
  • Update OpenAPI specs in src/oas/ if needed
  • Generate documentation: npm run docs:build
  • Commit your changes (git commit -m 'Add amazing feature')
  • Push to the branch (git push origin feature/amazing-feature)
  • Open a Pull Request

πŸ“œ License

This project is licensed under the ISC License - see the LICENSE file for details.

πŸ†˜ Support

πŸ“Š Stats

  • 86+ API Endpoints: Comprehensive coverage
  • 100% TypeScript: Full type safety
  • Auto-Generated: Always up-to-date documentation
  • Multiple Formats: Markdown + Interactive HTML
  • Zero Config: Documentation included in NPM package

Made with ❀️ by the Repzo Team

Comprehensive documentation automatically generated from OpenAPI 3.0 specifications

Keywords

repzo

FAQs

Package last updated on 28 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.