UNPKG

@shopify/cli-kit

Version:

A set of utilities, interfaces, and models that are common across all the platform features

58 lines (57 loc) 2.26 kB
import { AbortError } from '../error.js'; export declare const CouldntObtainPartnersSpinFQDNError: AbortError; export declare const CouldntObtainIdentitySpinFQDNError: AbortError; export declare const CouldntObtainShopifySpinFQDNError: AbortError; export declare const NotProvidedStoreFQDNError: AbortError; /** * It returns the Partners' API service we should interact with. * * @returns Fully-qualified domain of the partners service we should interact with. */ export declare function partnersFqdn(): Promise<string>; /** * It returns the Admin service we should interact with. * * @returns Fully-qualified domain of the Admin service we should interact with. */ export declare function adminFqdn(): Promise<string>; /** * It returns the App Management API service we should interact with. * * @returns Fully-qualified domain of the App Management service we should interact with. */ export declare function appManagementFqdn(): Promise<string>; /** * It returns the App Dev API service we should interact with. * * @param storeFqdn - The store FQDN. * @returns Fully-qualified domain of the App Dev service we should interact with. */ export declare function appDevFqdn(storeFqdn: string): Promise<string>; /** * It returns the Developer Dashboard domain we should interact with. * * @returns Fully-qualified domain of the Developer Dashboard we should interact with. */ export declare function developerDashboardFqdn(): Promise<string>; /** * It returns the BusinessPlatform' API service we should interact with. * * @returns Fully-qualified domain of the partners service we should interact with. */ export declare function businessPlatformFqdn(): Promise<string>; /** * It returns the Identity service we should interact with. * * @returns Fully-qualified domain of the Identity service we should interact with. */ export declare function identityFqdn(): Promise<string>; /** * Normalize the store name to be used in the CLI. * It will add the .myshopify.com domain if it's not present. * It will add the spin domain if it's not present and we're in a Spin environment. * * @param store - Store name. * @returns Normalized store name. */ export declare function normalizeStoreFqdn(store: string): Promise<string>;