dhicn-domain-paas-sdk

Bind TypeScript projects to Domain PaaS services with token-based authentication.

4|Updated May 12, 2023
One-click install
npx skills add https://github.com/DHICN/Domain-PaaS-SDK-TS --skill dhicn-domain-paas-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dhicn-domain-paas-sdk
Source: https://github.com/DHICN/Domain-PaaS-SDK-TS/tree/main/dhicn-domain-paas-sdk
Command: npx skills add https://github.com/DHICN/Domain-PaaS-SDK-TS --skill dhicn-domain-paas-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduce the complexity of wiring multiple Domain PaaS services in TypeScript projects.

Core Features & Use Cases

  • Quick API service scaffolding: extend ApiHelper and configure the required service modules to compose API clients.
  • Authentication management: handle login, token refresh, tenant changes, and centralized error handling.
  • Service module selection: pick and instantiate only the Domain services you need for a given app.
  • Type-safe API usage: leverage generated typings to ensure compile-time correctness across SDK APIs.
  • Use case: accelerate building apps that consume identity, scenario, IoT, GIS, file-service, and digital-twin APIs in a cohesive client.

Quick Start

Install the SDK, create an API manager by extending ApiHelper and wiring the necessary service modules, then call logIn and begin using the APIs.

Frequently Asked Questions about dhicn-domain-paas-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate multiple Domain PaaS services in a TypeScript project?

The SDK reduces the complexity of wiring multiple Domain PaaS services in TypeScript projects by unifying authentication, service access, and type-safe API calls through a reusable ApiHelper pattern.

What is the best way to manage authentication and token refresh for IoT and GIS APIs?

The SDK handles authentication management by processing login, token refresh, tenant changes, and centralized error handling to ensure secure access across IoT, GIS, and file services.

How do I scaffold a type-safe API client for digital-twin applications?

To scaffold an API client, you extend the ApiHelper and wire the necessary service modules to leverage generated typings, ensuring compile-time correctness across SDK APIs for digital-twin applications.

Can I select only the specific Domain services I need for my application?

Yes, the SDK supports service module selection, allowing you to pick and instantiate only the Domain services you need for a given app to compose a customized API client.

Does the Domain PaaS TypeScript SDK require configurable base URLs for different tenants?

Yes, the SDK requires configurable base URLs to support the token-based authentication workflow and manage tenant changes across different domains effectively.