@shopify/app-bridge-host
Version:
App Bridge Host contains middleware and components that are meant to be consumed by the app's host. The middleware and `Frame` component are responsible for facilitating messages posted between the client and host, and used to act on actions sent from the
36 lines (35 loc) • 1.13 kB
TypeScript
/**
* A collection of methods which can be used to return the local paths
* for navigating to a section within Admin
* @internal
* */
export interface NavigationResolver {
app(id: string, path: string): string;
apps(): string;
home(): string;
collectionIndex(): string;
collectionShow(id: string): string;
collectionNew(): string;
customerIndex(): string;
customerShow(id: string): string;
customerCreate(): string;
discountIndex(): string;
discountShow(id: string): string;
discountNew(): string;
orderIndex(): string;
orderShow(id: string): string;
orderNew(): string;
productIndex(): string;
productVariantDetails(id: string, variantId: string): string;
productVariantNew(id: string): string;
productDetails(id: string): string;
productNew(): string;
}
interface QueryParams {
[key: string]: any;
}
export declare const ROOT_URL = "/admin";
export declare const APPS_URL: string;
export declare const resolver: NavigationResolver;
export declare function withQueryParams(url: string, params?: QueryParams): string;
export default resolver;