finite-state-sdk
Version:
The Finite State SDK.
236 lines (235 loc) • 6.53 kB
TypeScript
declare const ALL_BUSINESS_UNITS: {
query: string;
variables: {
after: any;
first: number;
};
};
declare const ALL_USERS: {
query: string;
variables: {
after: any;
first: number;
};
};
declare const ALL_ORGANIZATIONS: {
query: string;
variables: {
after: any;
first: number;
};
};
interface Filter {
id?: string;
asset?: {
id: string;
};
group?: {
id: string;
};
}
interface Variables {
filter: Filter;
after: string | null;
first: number;
}
declare const ALL_ASSET_VERSIONS: {
query: string;
variables: (assetVersionId?: string, assetId?: string, businessUnitId?: string) => Variables;
};
interface AssetVariables {
filter: {
id?: string;
group?: {
id: string;
};
};
after: string | null;
first: number;
}
export declare const assetVariables: (assetId?: string, businessUnitId?: string) => AssetVariables;
declare const ALL_ASSETS: {
query: string;
variables: (assetId?: string, businessUnitId?: string) => AssetVariables;
};
interface ArtifactVariables {
filter: {
id?: string;
group?: {
id: string;
};
};
after: string | null;
first: number;
orderBy: string[];
}
declare const ALL_ARTIFACTS: {
query: string;
variables: (artifactId?: string, businessUnitId?: string) => ArtifactVariables;
};
declare const ALL_PRODUCTS: {
query: string;
variables: {
filter: {};
after: any;
first: number;
};
};
declare const GENERATE_EXPORT_DOWNLOAD_PRESIGNED_URL: {
query: string;
variables: (exportId: string) => {
exportId: string;
};
};
declare const GET_PRODUCT_ASSET_VERSIONS: {
query: string;
variables: (productId: string) => {
filter: {
id: string;
};
after: any;
first: number;
};
};
interface GetFindingsVariables {
filter: {
mergedFindingRefId?: string | null;
deletedAt?: string | null;
id?: string;
id_in?: string[];
assetVersionRefId?: string;
assetVersionRefId_in?: string[];
category_in?: string[];
AND?: Array<{
OR: Array<{
category_in?: string[];
title_like?: string;
description_like?: string;
cves_every?: {
cveId: string;
};
}>;
}>;
severity?: string;
currentStatus?: {
status_in: string[];
};
};
after?: string | null;
first?: number;
orderBy?: string[];
}
interface CreateGetFindingsVariablesParams {
assetVersionId?: string;
category?: string | string[];
cveId?: string;
findingId?: string | string[];
status?: string;
severity?: string;
limit?: number;
count?: boolean;
}
declare const GET_FINDINGS_COUNT: {
query: string;
variables: ({ assetVersionId, category, cveId, findingId, status, severity, limit, }: CreateGetFindingsVariablesParams) => GetFindingsVariables;
};
declare const GET_FINDINGS: {
query: string;
variables: ({ assetVersionId, category, cveId, findingId, status, severity, limit, }: CreateGetFindingsVariablesParams) => GetFindingsVariables;
};
declare const GET_SOFTWARE_COMPONENTS: {
query: string;
variables: ({ assetVersionId, type, }: {
assetVersionId?: string;
type?: string;
}) => {
filter: {
mergedComponentRefId: any;
deletedAt: any;
assetVersionRefId: string;
type_in: string[];
};
after: any;
first: number;
orderBy: string[];
};
};
interface GetProductsVariables {
filter: {
id?: string;
group?: {
id: string;
};
};
after?: string | null;
first?: number;
}
declare const GET_PRODUCTS: {
query: string;
variables: (productId?: string, businessUnitId?: string) => GetProductsVariables;
};
declare const GET_PRODUCTS_BUSINESS_UNIT: {
query: string;
variables: (businessUnitId: string) => {
filter: {
group: {
id: string;
};
};
after: any;
first: number;
};
};
declare const LAUNCH_CYCLONEDX_EXPORT: {
mutation: string;
variables: (cdxSubtype: string, assetVersionId: string) => {
cdxSubtype: string;
assetVersionId: string;
};
};
interface LaunchReportExportVariables {
artifactCsvSubtype?: string;
artifactPdfSubtype?: string;
assetVersionId?: string;
productCsvSubtype?: string;
productId?: string;
}
interface LaunchReportExport {
mutation: (assetVersionId?: string, productId?: string, reportType?: string, reportSubtype?: string) => string;
variables: (assetVersionId?: string, productId?: string, reportType?: string, reportSubtype?: string) => LaunchReportExportVariables;
}
declare const LAUNCH_REPORT_EXPORT: LaunchReportExport;
interface LaunchSpdxExportVariables {
spdxSubtype: string;
assetVersionId: string;
}
declare const LAUNCH_SPDX_EXPORT: {
mutation: string;
variables: (spdxSubtype: string, assetVersionId: string) => LaunchSpdxExportVariables;
};
declare const ONE_PRODUCT_ALL_ASSET_VERSIONS: {
query: string;
variables: (productId: string) => {
filter: {
id: string;
};
after: any;
first: number;
};
};
interface UpdateStatusInput {
comment?: string;
status: string | "AFFECTED" | "NOT_AFFECTED";
justification?: string;
responses?: string | string[];
}
interface UpdateFindingStatusesVariables {
ids: string[];
updateStatusInput: UpdateStatusInput;
userId?: string;
}
declare const UPDATE_FINDING_STATUSES: {
mutation: string;
variables: (userId?: string, findingIds?: string | string[], status?: string | "AFFECTED" | "NOT_AFFECTED", justification?: string, response?: string | string[], comment?: string) => UpdateFindingStatusesVariables;
};
export { ALL_BUSINESS_UNITS, ALL_USERS, ALL_ORGANIZATIONS, ALL_ASSET_VERSIONS, ALL_ARTIFACTS, ALL_PRODUCTS, ONE_PRODUCT_ALL_ASSET_VERSIONS, UPDATE_FINDING_STATUSES, ALL_ASSETS, GENERATE_EXPORT_DOWNLOAD_PRESIGNED_URL, GET_PRODUCT_ASSET_VERSIONS, GET_FINDINGS_COUNT, GET_FINDINGS, GET_SOFTWARE_COMPONENTS, GET_PRODUCTS, GET_PRODUCTS_BUSINESS_UNIT, LAUNCH_CYCLONEDX_EXPORT, LAUNCH_REPORT_EXPORT, LAUNCH_SPDX_EXPORT, };