@finos/legend-application-marketplace
Version:
Legend Marketplace application core
88 lines • 3.69 kB
TypeScript
/**
* Copyright (c) 2026-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.
*/
import { type V1_EntitlementsDataProductDetailsResponse, type V1_EntitlementsLakehouseEnvironmentType, V1_IngestEnvironmentClassification } from '@finos/legend-graph';
import { type PlainObject } from '@finos/legend-shared';
import type { IngestDeploymentServerConfig } from '@finos/legend-server-lakehouse';
import type { StoreProjectData } from '@finos/legend-server-depot';
import type { StoredFileGeneration } from '@finos/legend-storage';
export type LakehouseContractSyncStatusResponseFixture = {
status: string;
unsyncedUsers?: {
username: string;
}[];
unsyncedAccessPoints?: {
accessPointName: string;
}[];
unsyncedTargetAccounts?: string[];
};
export declare const buildSyncStatusResponse: (params: {
status: string;
unsyncedUsers?: string[];
unsyncedAccessPoints?: string[];
unsyncedTargetAccounts?: string[];
}) => LakehouseContractSyncStatusResponseFixture;
export declare const mockSyncStatus_fullySynced: LakehouseContractSyncStatusResponseFixture;
export declare const mockSyncStatus_neverSynced: LakehouseContractSyncStatusResponseFixture;
export declare const mockSyncStatus_notFullySynced_all: LakehouseContractSyncStatusResponseFixture;
export declare const mockDataProductDetailsResponse_adHoc: (params: {
deploymentId: number;
resourceId: string;
envType: V1_EntitlementsLakehouseEnvironmentType;
}) => V1_EntitlementsDataProductDetailsResponse;
export declare const TEST_APG_ID = "GROUP1";
export declare const TEST_DP_NAME = "MyDataProduct";
export declare const TEST_GAV: {
groupId: string;
artifactId: string;
versionId: string;
};
export declare const TEST_FULL_PATH = "test::MyDataProduct";
export declare const mockDataProductDetailsResponse_sdlc: (params: {
deploymentId: number;
resourceId: string;
envType: V1_EntitlementsLakehouseEnvironmentType;
}) => V1_EntitlementsDataProductDetailsResponse;
export type ArtifactDatasetSpec = {
ingestPath: string;
producer: {
kind: 'appDir';
appDirId: number;
} | {
kind: 'kerberos';
kerberos: string;
};
datasetName: string;
};
export type ArtifactAccessPointImplSpec = {
id: string;
datasets: ArtifactDatasetSpec[];
dependencyAccessPoints?: {
dataProductId: string;
accessPointId: string;
}[];
};
export declare const buildModernAccessPointImpl: (spec: ArtifactAccessPointImplSpec) => PlainObject;
export declare const buildDataProductArtifactJson: (params: {
accessPointImpls: PlainObject[];
}) => string;
export declare const mockStoreProjectData: PlainObject<StoreProjectData>;
export declare const buildGenerationFilesResponse: (params: {
artifactJson: string;
}) => PlainObject<StoredFileGeneration>[];
export declare const buildMockIngestEnvConfig: (classification?: V1_IngestEnvironmentClassification) => PlainObject<IngestDeploymentServerConfig>;
export declare const mockProducerEnvironment: PlainObject;
export declare const TEST_SERVER_URNS: string[];
//# sourceMappingURL=TEST_DATA__ContractErrors.d.ts.map