@nextplus/js-sdk
Version:
A TypeScript SDK for interacting with the NextPlus API, automatically generated from OpenAPI specifications.
46 lines (43 loc) • 1.27 kB
TypeScript
import { A as AllServiceTypes } from './index-DESgEWKO.js';
import './sdk.gen-aOku7-zB.js';
import './types.gen-vDP9AbtO.js';
type ServiceStatics = {
[K in keyof typeof AllServiceTypes as K extends `${string}Service` ? K : never]: typeof AllServiceTypes[K];
};
declare class NextPlusSDK {
private client;
private credentials;
private returnType;
private normalizeOptions;
constructor(options: {
baseURL: string;
email?: string;
username?: string;
password: string;
returnType?: 'raw' | 'data';
});
private authRequestInterceptor;
private ensureValidToken;
private login;
private createServiceProxies;
private createServiceProxy;
manualLogin(): Promise<boolean>;
}
interface NextPlusSDK extends ServiceStatics {
}
type SDKInstance = NextPlusSDK & ServiceStatics;
declare const configure: (options: {
baseURL: string;
email?: string;
username?: string;
password: string;
returnType?: "raw" | "data";
}) => SDKInstance;
declare const createSDK: (options: {
baseURL: string;
email?: string;
username?: string;
password: string;
returnType?: "raw" | "data";
}) => SDKInstance;
export { NextPlusSDK, type SDKInstance, configure, createSDK };