@aoxborrow/registrar-client 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -638,6 +638,44 @@ declare class NamecheapRegistrar extends BaseRegistrar {
638
638
  setDomainForwarding(domainName: string, forwards: DomainForward[], opts?: RequestOptions): Promise<OperationResult>;
639
639
  }
640
640
 
641
+ declare class NamecomRegistrar extends BaseRegistrar {
642
+ readonly name = "namecom";
643
+ static readonly displayName = "Name.com";
644
+ static readonly website = "name.com";
645
+ static readonly supportsSandbox = true;
646
+ static readonly configFields: ConfigField[];
647
+ static readonly helpText: string;
648
+ static readonly extendedFeatures: readonly RegistrarFeature[];
649
+ readonly requiresNameserversFetch = false;
650
+ constructor(credentials: RegistrarCredentials, options?: RegistrarOptions);
651
+ testConnection(opts?: RequestOptions): Promise<ConnectionResult>;
652
+ listDomains(opts?: ListDomainsOptions): Promise<Domain[]>;
653
+ getDomain(domainName: string, opts?: RequestOptions): Promise<Domain>;
654
+ getNameservers(domainName: string, opts?: RequestOptions): Promise<string[]>;
655
+ getAuthCode(domainName: string, opts?: RequestOptions): Promise<string>;
656
+ checkAvailability(domainNames: string[], opts?: RequestOptions): Promise<DomainAvailability[]>;
657
+ getPricing(tldOrDomain: string, opts?: RequestOptions): Promise<TldPricing>;
658
+ registerDomain(domainName: string, input: RegisterDomainInput, opts?: RequestOptions): Promise<OperationResult>;
659
+ renewDomain(domainName: string, years?: number, opts?: RequestOptions): Promise<OperationResult>;
660
+ transferIn(domainName: string, input: TransferDomainInput, opts?: RequestOptions): Promise<OperationResult>;
661
+ setAutoRenew(domainName: string, enabled: boolean, opts?: RequestOptions): Promise<OperationResult>;
662
+ lockDomain(domainName: string, opts?: RequestOptions): Promise<OperationResult>;
663
+ unlockDomain(domainName: string, opts?: RequestOptions): Promise<OperationResult>;
664
+ setPrivacy(domainName: string, enabled: boolean, opts?: RequestOptions): Promise<OperationResult>;
665
+ updateNameservers(domainName: string, nameservers: string[], opts?: RequestOptions): Promise<OperationResult>;
666
+ getContacts(domainName: string, opts?: RequestOptions): Promise<ContactSet>;
667
+ updateContacts(domainName: string, contacts: ContactSet, opts?: RequestOptions): Promise<OperationResult>;
668
+ getDnsRecords(domainName: string, opts?: RequestOptions): Promise<DnsRecord[]>;
669
+ setDnsRecords(domainName: string, records: DnsRecord[], opts?: RequestOptions): Promise<OperationResult>;
670
+ private patchDomain;
671
+ private rawDomain;
672
+ private domainPricing;
673
+ private toDomain;
674
+ private pages;
675
+ private mutate;
676
+ private purchase;
677
+ }
678
+
641
679
  declare class NameSiloRegistrar extends BaseRegistrar {
642
680
  readonly name = "namesilo";
643
681
  static readonly displayName = "NameSilo";
@@ -754,6 +792,7 @@ declare const registrars: {
754
792
  godaddy: typeof GoDaddyRegistrar;
755
793
  namebright: typeof NameBrightRegistrar;
756
794
  namecheap: typeof NamecheapRegistrar;
795
+ namecom: typeof NamecomRegistrar;
757
796
  namesilo: typeof NameSiloRegistrar;
758
797
  porkbun: typeof PorkbunRegistrar;
759
798
  spaceship: typeof SpaceshipRegistrar;
@@ -781,4 +820,4 @@ declare function parseDate(value: Date | string | number | null | undefined): Da
781
820
  declare function normalizeNameservers(nameservers: unknown): string[];
782
821
  declare function createDomain(data?: DomainInput): Domain;
783
822
 
784
- export { ALL_FEATURES, AbortError, AuthenticationError, AuthorizationError, BaseRegistrar, CORE_FEATURES, CloudflareRegistrar, type ConfigField, ConfigurationError, ConnectionError, type ConnectionResult, ConsentRequiredError, type Contact, type ContactSet, DEFAULT_OPTIONS, type DnsRecord, type DnssecStatus, type Domain, type DomainAvailability, type DomainForward, type DomainForwardType, type DomainInput, type DomainSource, type DsRecord, DynadotRegistrar, EXTENDED_FEATURES, type EmailForward, Feature, GandiRegistrar, GoDaddyRegistrar, HttpClient, type HttpClientConfig, InvalidResponseError, type ListDomainsOptions, MASKED_FORWARD_UNSUPPORTED, NameBrightRegistrar, NameSiloRegistrar, NamecheapRegistrar, NotFoundError, NotImplementedError, type OperationResult, ParsingError, PorkbunRegistrar, type PortfolioError, type PortfolioResult, RateLimitError, type RegisterDomainInput, type Registrar, RegistrarClient, type RegistrarClientOptions, type RegistrarConstructor, type RegistrarCredentials, type RegistrarEnvironment, RegistrarError, type RegistrarFeature, type RegistrarName, type RegistrarOptions, type RegistrationConsent, type RequestConfig, type RequestOptions, RetryableRegistrarError, type SettableDomainForward, SpaceshipRegistrar, TimeoutError, type TldPricing, type TransferDomainInput, USER_AGENT, backoffDelay, createDomain, createRegistrar, ensureArray, filterDomains, isCoreFeature, listPortfolio, normalizeDomain, normalizeNameservers, parseDate, parseXml, registrars, requireConsent, selectBaseUrl, settableForwards, sleep, toRegistrarError };
823
+ export { ALL_FEATURES, AbortError, AuthenticationError, AuthorizationError, BaseRegistrar, CORE_FEATURES, CloudflareRegistrar, type ConfigField, ConfigurationError, ConnectionError, type ConnectionResult, ConsentRequiredError, type Contact, type ContactSet, DEFAULT_OPTIONS, type DnsRecord, type DnssecStatus, type Domain, type DomainAvailability, type DomainForward, type DomainForwardType, type DomainInput, type DomainSource, type DsRecord, DynadotRegistrar, EXTENDED_FEATURES, type EmailForward, Feature, GandiRegistrar, GoDaddyRegistrar, HttpClient, type HttpClientConfig, InvalidResponseError, type ListDomainsOptions, MASKED_FORWARD_UNSUPPORTED, NameBrightRegistrar, NameSiloRegistrar, NamecheapRegistrar, NamecomRegistrar, NotFoundError, NotImplementedError, type OperationResult, ParsingError, PorkbunRegistrar, type PortfolioError, type PortfolioResult, RateLimitError, type RegisterDomainInput, type Registrar, RegistrarClient, type RegistrarClientOptions, type RegistrarConstructor, type RegistrarCredentials, type RegistrarEnvironment, RegistrarError, type RegistrarFeature, type RegistrarName, type RegistrarOptions, type RegistrationConsent, type RequestConfig, type RequestOptions, RetryableRegistrarError, type SettableDomainForward, SpaceshipRegistrar, TimeoutError, type TldPricing, type TransferDomainInput, USER_AGENT, backoffDelay, createDomain, createRegistrar, ensureArray, filterDomains, isCoreFeature, listPortfolio, normalizeDomain, normalizeNameservers, parseDate, parseXml, registrars, requireConsent, selectBaseUrl, settableForwards, sleep, toRegistrarError };
package/dist/index.d.ts CHANGED
@@ -638,6 +638,44 @@ declare class NamecheapRegistrar extends BaseRegistrar {
638
638
  setDomainForwarding(domainName: string, forwards: DomainForward[], opts?: RequestOptions): Promise<OperationResult>;
639
639
  }
640
640
 
641
+ declare class NamecomRegistrar extends BaseRegistrar {
642
+ readonly name = "namecom";
643
+ static readonly displayName = "Name.com";
644
+ static readonly website = "name.com";
645
+ static readonly supportsSandbox = true;
646
+ static readonly configFields: ConfigField[];
647
+ static readonly helpText: string;
648
+ static readonly extendedFeatures: readonly RegistrarFeature[];
649
+ readonly requiresNameserversFetch = false;
650
+ constructor(credentials: RegistrarCredentials, options?: RegistrarOptions);
651
+ testConnection(opts?: RequestOptions): Promise<ConnectionResult>;
652
+ listDomains(opts?: ListDomainsOptions): Promise<Domain[]>;
653
+ getDomain(domainName: string, opts?: RequestOptions): Promise<Domain>;
654
+ getNameservers(domainName: string, opts?: RequestOptions): Promise<string[]>;
655
+ getAuthCode(domainName: string, opts?: RequestOptions): Promise<string>;
656
+ checkAvailability(domainNames: string[], opts?: RequestOptions): Promise<DomainAvailability[]>;
657
+ getPricing(tldOrDomain: string, opts?: RequestOptions): Promise<TldPricing>;
658
+ registerDomain(domainName: string, input: RegisterDomainInput, opts?: RequestOptions): Promise<OperationResult>;
659
+ renewDomain(domainName: string, years?: number, opts?: RequestOptions): Promise<OperationResult>;
660
+ transferIn(domainName: string, input: TransferDomainInput, opts?: RequestOptions): Promise<OperationResult>;
661
+ setAutoRenew(domainName: string, enabled: boolean, opts?: RequestOptions): Promise<OperationResult>;
662
+ lockDomain(domainName: string, opts?: RequestOptions): Promise<OperationResult>;
663
+ unlockDomain(domainName: string, opts?: RequestOptions): Promise<OperationResult>;
664
+ setPrivacy(domainName: string, enabled: boolean, opts?: RequestOptions): Promise<OperationResult>;
665
+ updateNameservers(domainName: string, nameservers: string[], opts?: RequestOptions): Promise<OperationResult>;
666
+ getContacts(domainName: string, opts?: RequestOptions): Promise<ContactSet>;
667
+ updateContacts(domainName: string, contacts: ContactSet, opts?: RequestOptions): Promise<OperationResult>;
668
+ getDnsRecords(domainName: string, opts?: RequestOptions): Promise<DnsRecord[]>;
669
+ setDnsRecords(domainName: string, records: DnsRecord[], opts?: RequestOptions): Promise<OperationResult>;
670
+ private patchDomain;
671
+ private rawDomain;
672
+ private domainPricing;
673
+ private toDomain;
674
+ private pages;
675
+ private mutate;
676
+ private purchase;
677
+ }
678
+
641
679
  declare class NameSiloRegistrar extends BaseRegistrar {
642
680
  readonly name = "namesilo";
643
681
  static readonly displayName = "NameSilo";
@@ -754,6 +792,7 @@ declare const registrars: {
754
792
  godaddy: typeof GoDaddyRegistrar;
755
793
  namebright: typeof NameBrightRegistrar;
756
794
  namecheap: typeof NamecheapRegistrar;
795
+ namecom: typeof NamecomRegistrar;
757
796
  namesilo: typeof NameSiloRegistrar;
758
797
  porkbun: typeof PorkbunRegistrar;
759
798
  spaceship: typeof SpaceshipRegistrar;
@@ -781,4 +820,4 @@ declare function parseDate(value: Date | string | number | null | undefined): Da
781
820
  declare function normalizeNameservers(nameservers: unknown): string[];
782
821
  declare function createDomain(data?: DomainInput): Domain;
783
822
 
784
- export { ALL_FEATURES, AbortError, AuthenticationError, AuthorizationError, BaseRegistrar, CORE_FEATURES, CloudflareRegistrar, type ConfigField, ConfigurationError, ConnectionError, type ConnectionResult, ConsentRequiredError, type Contact, type ContactSet, DEFAULT_OPTIONS, type DnsRecord, type DnssecStatus, type Domain, type DomainAvailability, type DomainForward, type DomainForwardType, type DomainInput, type DomainSource, type DsRecord, DynadotRegistrar, EXTENDED_FEATURES, type EmailForward, Feature, GandiRegistrar, GoDaddyRegistrar, HttpClient, type HttpClientConfig, InvalidResponseError, type ListDomainsOptions, MASKED_FORWARD_UNSUPPORTED, NameBrightRegistrar, NameSiloRegistrar, NamecheapRegistrar, NotFoundError, NotImplementedError, type OperationResult, ParsingError, PorkbunRegistrar, type PortfolioError, type PortfolioResult, RateLimitError, type RegisterDomainInput, type Registrar, RegistrarClient, type RegistrarClientOptions, type RegistrarConstructor, type RegistrarCredentials, type RegistrarEnvironment, RegistrarError, type RegistrarFeature, type RegistrarName, type RegistrarOptions, type RegistrationConsent, type RequestConfig, type RequestOptions, RetryableRegistrarError, type SettableDomainForward, SpaceshipRegistrar, TimeoutError, type TldPricing, type TransferDomainInput, USER_AGENT, backoffDelay, createDomain, createRegistrar, ensureArray, filterDomains, isCoreFeature, listPortfolio, normalizeDomain, normalizeNameservers, parseDate, parseXml, registrars, requireConsent, selectBaseUrl, settableForwards, sleep, toRegistrarError };
823
+ export { ALL_FEATURES, AbortError, AuthenticationError, AuthorizationError, BaseRegistrar, CORE_FEATURES, CloudflareRegistrar, type ConfigField, ConfigurationError, ConnectionError, type ConnectionResult, ConsentRequiredError, type Contact, type ContactSet, DEFAULT_OPTIONS, type DnsRecord, type DnssecStatus, type Domain, type DomainAvailability, type DomainForward, type DomainForwardType, type DomainInput, type DomainSource, type DsRecord, DynadotRegistrar, EXTENDED_FEATURES, type EmailForward, Feature, GandiRegistrar, GoDaddyRegistrar, HttpClient, type HttpClientConfig, InvalidResponseError, type ListDomainsOptions, MASKED_FORWARD_UNSUPPORTED, NameBrightRegistrar, NameSiloRegistrar, NamecheapRegistrar, NamecomRegistrar, NotFoundError, NotImplementedError, type OperationResult, ParsingError, PorkbunRegistrar, type PortfolioError, type PortfolioResult, RateLimitError, type RegisterDomainInput, type Registrar, RegistrarClient, type RegistrarClientOptions, type RegistrarConstructor, type RegistrarCredentials, type RegistrarEnvironment, RegistrarError, type RegistrarFeature, type RegistrarName, type RegistrarOptions, type RegistrationConsent, type RequestConfig, type RequestOptions, RetryableRegistrarError, type SettableDomainForward, SpaceshipRegistrar, TimeoutError, type TldPricing, type TransferDomainInput, USER_AGENT, backoffDelay, createDomain, createRegistrar, ensureArray, filterDomains, isCoreFeature, listPortfolio, normalizeDomain, normalizeNameservers, parseDate, parseXml, registrars, requireConsent, selectBaseUrl, settableForwards, sleep, toRegistrarError };