node-ovh-ts
Version:
OVH API wrapper library for TypeScript
90 lines (87 loc) • 3.69 kB
TypeScript
import { NichandleCreationRules } from '../models/NichandleCreationRules.js';
import { NichandleLanguageEnum } from '../models/NichandleLanguageEnum.js';
import { NichandleCountryEnum } from '../models/NichandleCountryEnum.js';
import { OrderContract } from '../models/OrderContract.js';
import { NichandleLegalFormEnum } from '../models/NichandleLegalFormEnum.js';
import { NichandleCreationRule } from '../models/NichandleCreationRule.js';
import { NichandleCreationRulesActionEnum } from '../models/NichandleCreationRulesActionEnum.js';
import { NichandleGenderEnum } from '../models/NichandleGenderEnum.js';
import { NichandleNewAccountAndToken } from '../models/NichandleNewAccountAndToken.js';
import { NichandleOvhSubsidiaryEnum } from '../models/NichandleOvhSubsidiaryEnum.js';
import { NichandleOvhCompanyEnum } from '../models/NichandleOvhCompanyEnum.js';
import OVHBase from '../ovh.js';
import '../endpoints.js';
declare class NewAccountHandler {
ovh: OVHBase;
constructor(ovh: OVHBase);
/** Create a new OVH identifier */
create: (body: {
address?: string;
area?: string;
birthCity?: string;
birthDay?: string;
city?: string;
companyNationalIdentificationNumber?: string;
corporationType?: string;
country: NichandleCountryEnum;
email: string;
fax?: string;
firstname?: string;
italianSDI?: string;
language?: NichandleLanguageEnum;
legalform: NichandleLegalFormEnum;
name?: string;
nationalIdentificationNumber?: string;
organisation?: string;
ovhCompany: NichandleOvhCompanyEnum;
ovhSubsidiary: NichandleOvhSubsidiaryEnum;
phone?: string;
phoneCountry?: NichandleCountryEnum;
sex?: NichandleGenderEnum;
spareEmail?: string;
vat?: string;
zip?: string;
}) => Promise<NichandleNewAccountAndToken>;
/** All available areas for a given country */
getArea: () => Promise<string[]>;
/** Returns the contracts that governs the creation of an OVH identifier */
getContracts: () => Promise<OrderContract[]>;
/** All available corporation types for a given country */
getCorporationType: () => Promise<string[]>;
/** All available countries for an ovh company and an ovh subsidiary */
getCountries: () => Promise<NichandleCountryEnum[]>;
/** Give all the rules to follow in order to create an OVH identifier */
getCreationRules: () => Promise<NichandleCreationRules>;
/** All available legal forms for a given country */
getLegalform: () => Promise<string[]>;
/** Give all the rules to follow in order to create and update an OVH identifier */
postRules: (body: {
action?: NichandleCreationRulesActionEnum;
address?: string;
area?: string;
birthCity?: string;
birthDay?: string;
city?: string;
companyNationalIdentificationNumber?: string;
corporationType?: string;
country?: NichandleCountryEnum;
email?: string;
fax?: string;
firstname?: string;
italianSDI?: string;
language?: NichandleLanguageEnum;
legalform?: NichandleLegalFormEnum;
name?: string;
nationalIdentificationNumber?: string;
organisation?: string;
ovhCompany?: NichandleOvhCompanyEnum;
ovhSubsidiary?: NichandleOvhSubsidiaryEnum;
phone?: string;
phoneCountry?: NichandleCountryEnum;
sex?: NichandleGenderEnum;
spareEmail?: string;
vat?: string;
zip?: string;
}) => Promise<NichandleCreationRule[]>;
}
export { NewAccountHandler };