@bluecopa/core 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/definition/getDescription.d.ts +8 -0
- package/dist/api/definition/runDefinition.d.ts +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/statement/createNewRun.d.ts +25 -0
- package/dist/api/statement/getData.d.ts +20 -0
- package/dist/api/statement/getRunResultById.d.ts +8 -0
- package/dist/api/statement/getRunsByViewId.d.ts +8 -0
- package/dist/api/statement/getViewById.d.ts +8 -0
- package/dist/api/statement/getViewsBySheetId.d.ts +8 -0
- package/dist/api/statement/index.d.ts +6 -0
- package/dist/index.es.js +811 -55
- package/dist/index.es.js.map +1 -1
- package/dist/types/statement.d.ts +47 -0
- package/dist/utils/common/generatePushId.d.ts +11 -0
- package/dist/utils/common/generateRandomName.d.ts +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/inputTable/inputTableDefinition.d.ts +1 -1
- package/dist/utils/metric/analysisMethods.d.ts +8 -35
- package/dist/utils/metric/filterUtils.d.ts +1 -1
- package/dist/utils/metric/getMetricDefinition.d.ts +1 -1
- package/dist/utils/statement/filterConverters.d.ts +11 -0
- package/dist/utils/statement/filterUtils.d.ts +14 -0
- package/dist/utils/statement/hydrateStatement.d.ts +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Definition, Inputs } from '../../../../models/src/lib/ui-models/definitionModel';
|
|
2
|
+
import { CancelTokenSource } from 'axios';
|
|
3
|
+
export declare const getDescription: (props: {
|
|
4
|
+
inputs: Inputs;
|
|
5
|
+
definition: Definition;
|
|
6
|
+
variable: string;
|
|
7
|
+
source?: CancelTokenSource;
|
|
8
|
+
}) => Promise<any>;
|
package/dist/api/index.d.ts
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { StatementCommonFiltersType, StatementPromotedFiltersType } from '../../types/statement';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new run for a statement.
|
|
4
|
+
* If viewId is not provided, uses the default view of the statement.
|
|
5
|
+
*
|
|
6
|
+
* @param statementId - The ID of the statement workbook
|
|
7
|
+
* @param viewId - Optional view ID. If not provided, uses the default view
|
|
8
|
+
* @param runId - Optional run ID. If not provided, generates one.
|
|
9
|
+
* @param options - Optional options
|
|
10
|
+
* @param options.name - Custom name for the run. If not provided, generates a unique name.
|
|
11
|
+
* @param options.columnFilters - Array of promoted or common filters to apply to the run
|
|
12
|
+
* @returns Object containing the runId
|
|
13
|
+
*/
|
|
14
|
+
export type CreateNewRunResult = {
|
|
15
|
+
runId: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const createNewRun: ({ statementId, viewId, runId, options, }: {
|
|
18
|
+
statementId: string;
|
|
19
|
+
viewId?: string;
|
|
20
|
+
runId?: string;
|
|
21
|
+
options?: {
|
|
22
|
+
name?: string;
|
|
23
|
+
columnFilters?: (StatementPromotedFiltersType | StatementCommonFiltersType)[];
|
|
24
|
+
};
|
|
25
|
+
}) => Promise<CreateNewRunResult>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type StatementDataResult = {
|
|
2
|
+
data: Array<any>;
|
|
3
|
+
error: {
|
|
4
|
+
lineErrors: Array<any>;
|
|
5
|
+
comparisonErrors: {};
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Gets the latest run data for a statement.
|
|
10
|
+
* If viewId is not provided, uses the default view of the statement.
|
|
11
|
+
*
|
|
12
|
+
* @param statementId - The ID of the statement workbook
|
|
13
|
+
* @param viewId - Optional view ID. If not provided, uses the default view
|
|
14
|
+
* @returns Latest run data for the statement view
|
|
15
|
+
*/
|
|
16
|
+
export declare const getData: ({ statementId, viewId, runId, }: {
|
|
17
|
+
statementId: string;
|
|
18
|
+
viewId?: string;
|
|
19
|
+
runId?: string;
|
|
20
|
+
}) => Promise<StatementDataResult>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StatementViewWorkflowResult } from '../../../../models/src/lib/gen/Api';
|
|
2
|
+
/**
|
|
3
|
+
* Gets Workflow run result by id.
|
|
4
|
+
*
|
|
5
|
+
* @param runId - The ID of the statement run
|
|
6
|
+
* @returns Workflow run result for the run
|
|
7
|
+
*/
|
|
8
|
+
export declare const getRunResultById: (runId: string) => Promise<StatementViewWorkflowResult>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StatementViewWorkflowResult } from '../../../../models/src/lib/gen/Api';
|
|
2
|
+
/**
|
|
3
|
+
* Gets runs for a specific view.
|
|
4
|
+
*
|
|
5
|
+
* @param viewId - The ID of the statement view
|
|
6
|
+
* @returns Array of runs/results for the view
|
|
7
|
+
*/
|
|
8
|
+
export declare const getRunsByViewId: (viewId: string) => Promise<StatementViewWorkflowResult[]>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StatementViewWorkflow } from '../../../../models/src/lib/gen/Api';
|
|
2
|
+
/**
|
|
3
|
+
* Gets statement view workflow by id.
|
|
4
|
+
*
|
|
5
|
+
* @param viewId - The ID of the statement view
|
|
6
|
+
* @returns Statement view workflow for the sheet
|
|
7
|
+
*/
|
|
8
|
+
export declare const getViewById: (viewId: string) => Promise<StatementViewWorkflow>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StatementViewWorkflow } from '../../../../models/src/lib/gen/Api';
|
|
2
|
+
/**
|
|
3
|
+
* Gets statement view workflows for a specific sheet.
|
|
4
|
+
*
|
|
5
|
+
* @param sheetId - The ID of the statement sheet
|
|
6
|
+
* @returns Array of statement view workflows for the sheet
|
|
7
|
+
*/
|
|
8
|
+
export declare const getViewsBySheetId: (sheetId: string) => Promise<StatementViewWorkflow[]>;
|