@finos/legend-application-marketplace
Version:
Legend Marketplace application core
71 lines • 3.78 kB
TypeScript
/**
* Copyright (c) 2020-present, Goldman Sachs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export declare enum LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN {
VENDOR_NAME = "vendorName",
GAV = "gav",
DATA_PRODUCT_PATH = "path",
TASK_ID = "taskId",
CONTRACT_ID = "contractId",
ingestEnvironmentUrn = "ingestEnvironmentUrn"
}
export declare enum LEGEND_MARKETPLACE_SEARCH_RESULTS_QUERY_PARAM_TOKEN {
PROVIDER = "provider",
QUERY = "query"
}
export type LakehouseDataProductPathParams = {
[LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN.GAV]: string;
[LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN.DATA_PRODUCT_PATH]: string;
};
export type LakehouseSandboxDataProductPathParams = {
[LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN.ingestEnvironmentUrn]: string;
[LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN.DATA_PRODUCT_PATH]: string;
};
export type LakehouseEntitlementsTasksParam = {
[LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN.TASK_ID]: string | undefined;
[LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN.CONTRACT_ID]: string | undefined;
};
export declare const LEGEND_MARKETPLACE_ROUTE_PATTERN: Readonly<{
DEFAULT: "/";
OAUTH_CALLBACK: "/callback";
SEARCH_RESULTS: "/results";
VENDOR_DATA: "/vendordata";
VENDOR_DETAILS: "/vendor/:vendorName";
LAKEHOUSE: "/lakehouse";
LAKEHOUSE_ENTITLEMENTS: "/lakehouse/entitlements";
LAKEHOUSE_ENTITLEMENTS_CONTRACTS: "/lakehouse/entitlements/contracts/:contractId";
LAKEHOUSE_PRODUCT: "/lakehouse/dataProduct/:gav/:path";
LAKEHOUSE_SANDBOX_PRODUCT: "/lakehouse/dataProduct/sandbox/:ingestEnvironmentUrn/:path";
SUBSCRIPTIONS: "/subscriptions";
ORDERS: "/orders";
LAKEHOUSE_ADMIN: "/lakehouse/admin";
}>;
export declare const LAKEHOUSE_ROUTES: readonly ("/lakehouse" | "/lakehouse/entitlements" | "/lakehouse/entitlements/contracts/:contractId" | "/lakehouse/dataProduct/:gav/:path" | "/lakehouse/dataProduct/sandbox/:ingestEnvironmentUrn/:path" | "/lakehouse/admin")[];
export declare const isLakehouseRoute: (pathName: string) => boolean;
export declare const generateLakehouseDataProductPath: (gav: string, path: string) => string;
export declare const generateLakehouseSandboxDataProductPath: (ingestEnvironmentUrn: string, path: string) => string;
export declare const generateLakehouseTaskPath: (taskId: string) => string;
export declare const generateLakehouseContractPath: (contractId: string) => string;
export declare const generateSearchResultsRoute: (provider: string | undefined, query: string | undefined) => string;
export declare const generateVendorDetailsRoute: (vendorName: string) => string;
/**
* @external_application_navigation This depends on Legend Studio routing and is hardcoded so it's potentially brittle
*/
export declare const EXTERNAL_APPLICATION_NAVIGATION__generateStudioSDLCProjectViewUrl: (studioApplicationUrl: string, projectId: string, versionId: string | undefined, entityPath: string | undefined) => string;
/**
* @external_application_navigation This depends on Ingest Environment swagger URL and is hardcoded so it's potentially brittle
*/
export declare const EXTERNAL_APPLICATION_NAVIGATION__generateIngestEnvironemntUrl: (baseUrl: string) => string;
//# sourceMappingURL=LegendMarketplaceNavigation.d.ts.map