@explo-tech/fido-api 2.0.0 → 2.0.1
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/{index.ts → generated/typescript/index.ts} +59 -0
- package/generated/typescript/models/And1.ts +11 -0
- package/{models → generated/typescript/models}/BigQueryAuthentication.ts +1 -0
- package/generated/typescript/models/Branch.ts +9 -0
- package/generated/typescript/models/BranchResponse.ts +12 -0
- package/generated/typescript/models/BranchResponseMetadata.ts +8 -0
- package/generated/typescript/models/CacheTelemetry.ts +10 -0
- package/generated/typescript/models/Clickhouse.ts +18 -0
- package/generated/typescript/models/ClickhouseConnectionType.ts +8 -0
- package/generated/typescript/models/ColumnFormat.ts +10 -0
- package/generated/typescript/models/Commit.ts +11 -0
- package/generated/typescript/models/CommitResponse.ts +10 -0
- package/{models → generated/typescript/models}/Computation.ts +2 -0
- package/{models → generated/typescript/models}/ComputedView.ts +4 -0
- package/generated/typescript/models/CreateCommitRequest.ts +13 -0
- package/generated/typescript/models/CreateCommitResponse.ts +11 -0
- package/generated/typescript/models/CreateViewChange.ts +12 -0
- package/generated/typescript/models/CreateViewDiff.ts +11 -0
- package/{models → generated/typescript/models}/DataSourceConfiguration.ts +4 -1
- package/generated/typescript/models/DateTimeColumnFormat.ts +11 -0
- package/generated/typescript/models/DecimalColumnFormat.ts +14 -0
- package/generated/typescript/models/DeleteViewChange.ts +9 -0
- package/generated/typescript/models/DeleteViewDiff.ts +11 -0
- package/generated/typescript/models/DiffBranchResponse.ts +10 -0
- package/generated/typescript/models/DurationColumnFormat.ts +9 -0
- package/generated/typescript/models/EmailConfiguration.ts +10 -0
- package/generated/typescript/models/Equal1.ts +13 -0
- package/generated/typescript/models/EvictionPolicy.ts +9 -0
- package/generated/typescript/models/ExportColumnOptions.ts +12 -0
- package/{models → generated/typescript/models}/ExportTargetConfiguration.ts +2 -0
- package/generated/typescript/models/GreaterThan1.ts +13 -0
- package/generated/typescript/models/GreaterThanOrEqual1.ts +13 -0
- package/generated/typescript/models/Having.ts +25 -0
- package/generated/typescript/models/In1.ts +13 -0
- package/generated/typescript/models/LateBoundEqual1.ts +12 -0
- package/generated/typescript/models/LateBoundGreaterThan1.ts +12 -0
- package/generated/typescript/models/LateBoundGreaterThanOrEqual1.ts +12 -0
- package/generated/typescript/models/LateBoundIn1.ts +12 -0
- package/generated/typescript/models/LateBoundLessThan1.ts +12 -0
- package/generated/typescript/models/LateBoundLessThanOrEqual1.ts +12 -0
- package/generated/typescript/models/LateBoundStringContains1.ts +13 -0
- package/generated/typescript/models/LessThan1.ts +13 -0
- package/generated/typescript/models/LessThanOrEqual1.ts +13 -0
- package/generated/typescript/models/ListBranchResponse.ts +10 -0
- package/generated/typescript/models/ListVersionedViewsRequest.ts +8 -0
- package/generated/typescript/models/MergeBranchRequest.ts +9 -0
- package/generated/typescript/models/Not1.ts +11 -0
- package/generated/typescript/models/Null1.ts +11 -0
- package/generated/typescript/models/Or1.ts +11 -0
- package/{models → generated/typescript/models}/Property.ts +3 -1
- package/generated/typescript/models/QueryExportEmailResponse.ts +8 -0
- package/{models/QueryExportResponse.ts → generated/typescript/models/QueryExportLinkResponse.ts} +2 -1
- package/generated/typescript/models/QueryExportResponse.ts +9 -0
- package/{models → generated/typescript/models}/Redshift.ts +1 -1
- package/generated/typescript/models/RequestExecutionParameters.ts +8 -0
- package/{models → generated/typescript/models}/RequestTelemetry.ts +3 -0
- package/generated/typescript/models/ScheduledEviction.ts +9 -0
- package/generated/typescript/models/Snowflake.ts +17 -0
- package/generated/typescript/models/SnowflakeAuthentication.ts +8 -0
- package/generated/typescript/models/SnowflakePasswordAuthentication.ts +9 -0
- package/generated/typescript/models/StringContains1.ts +14 -0
- package/{models → generated/typescript/models}/TableView.ts +1 -0
- package/generated/typescript/models/TtlEviction.ts +9 -0
- package/generated/typescript/models/UnitOfMeasurement.ts +7 -0
- package/generated/typescript/models/UpdateViewChange.ts +11 -0
- package/generated/typescript/models/UpdateViewDiff.ts +12 -0
- package/{models → generated/typescript/models}/View.ts +1 -0
- package/generated/typescript/models/ViewChange.ts +10 -0
- package/generated/typescript/models/ViewDiff.ts +10 -0
- package/{models → generated/typescript/models}/ViewExportRequest.ts +5 -0
- package/{models → generated/typescript/models}/ViewRequest.ts +1 -0
- package/{models → generated/typescript/models}/ViewRunRequest.ts +2 -0
- package/generated/typescript/services/BranchResourceService.ts +112 -0
- package/generated/typescript/services/CommitResourceService.ts +48 -0
- package/{services → generated/typescript/services}/ListViewsResourceService.ts +22 -0
- package/{services → generated/typescript/services}/QueryResourceService.ts +69 -0
- package/{services → generated/typescript/services}/ViewResourceService.ts +27 -0
- package/package.json +1 -1
- package/tsconfig.json +15 -0
- package/{core → generated/typescript/core}/ApiError.ts +0 -0
- package/{core → generated/typescript/core}/ApiRequestOptions.ts +0 -0
- package/{core → generated/typescript/core}/ApiResult.ts +0 -0
- package/{core → generated/typescript/core}/CancelablePromise.ts +0 -0
- package/{core → generated/typescript/core}/OpenAPI.ts +0 -0
- package/{core → generated/typescript/core}/request.ts +0 -0
- package/{models → generated/typescript/models}/AggregateProperty.ts +1 -1
- package/{models → generated/typescript/models}/Aggregation.ts +0 -0
- package/{models → generated/typescript/models}/AggregationOption.ts +0 -0
- package/{models → generated/typescript/models}/And.ts +0 -0
- package/{models → generated/typescript/models}/BigQuery.ts +0 -0
- package/{models → generated/typescript/models}/BooleanPropertyValue.ts +0 -0
- package/{models → generated/typescript/models}/CalendarInterval.ts +0 -0
- package/{models → generated/typescript/models}/CalendarIntervalGrouping.ts +0 -0
- package/{models → generated/typescript/models}/ClientError.ts +0 -0
- package/{models → generated/typescript/models}/DataPage.ts +0 -0
- package/{models → generated/typescript/models}/DataRecord.ts +0 -0
- package/{models → generated/typescript/models}/DataRequestParameters.ts +0 -0
- package/{models → generated/typescript/models}/DataResponseMetadata.ts +0 -0
- package/{models → generated/typescript/models}/DataSchema.ts +0 -0
- package/{models → generated/typescript/models}/DataSource.ts +0 -0
- package/{models → generated/typescript/models}/DataSourceError.ts +0 -0
- package/{models → generated/typescript/models}/DataSourceRequest.ts +0 -0
- package/{models → generated/typescript/models}/DataSourceResponse.ts +0 -0
- package/{models → generated/typescript/models}/DatePart.ts +0 -0
- package/{models → generated/typescript/models}/DatePartGrouping.ts +0 -0
- package/{models → generated/typescript/models}/DatePropertyValue.ts +0 -0
- package/{models → generated/typescript/models}/DateTimePropertyValue.ts +0 -0
- package/{models → generated/typescript/models}/DecimalIntervalGrouping.ts +0 -0
- package/{models → generated/typescript/models}/DecimalPropertyValue.ts +0 -0
- package/{models → generated/typescript/models}/DoublePropertyValue.ts +0 -0
- package/{models → generated/typescript/models}/Equal.ts +0 -0
- package/{models → generated/typescript/models}/ExportFormat.ts +0 -0
- package/{models → generated/typescript/models}/Filter.ts +0 -0
- package/{models → generated/typescript/models}/FormulaProperty.ts +1 -1
- package/{models → generated/typescript/models}/GreaterThan.ts +0 -0
- package/{models → generated/typescript/models}/GreaterThanOrEqual.ts +0 -0
- package/{models → generated/typescript/models}/Grouping.ts +0 -0
- package/{models → generated/typescript/models}/In.ts +0 -0
- package/{models → generated/typescript/models}/IntegerIntervalGrouping.ts +0 -0
- package/{models → generated/typescript/models}/IntegerPropertyValue.ts +0 -0
- package/{models → generated/typescript/models}/JdbcAuthentication.ts +0 -0
- package/{models → generated/typescript/models}/LateBoundEqual.ts +0 -0
- package/{models → generated/typescript/models}/LateBoundGreaterThan.ts +0 -0
- package/{models → generated/typescript/models}/LateBoundGreaterThanOrEqual.ts +0 -0
- package/{models → generated/typescript/models}/LateBoundIn.ts +0 -0
- package/{models → generated/typescript/models}/LateBoundLessThan.ts +0 -0
- package/{models → generated/typescript/models}/LateBoundLessThanOrEqual.ts +0 -0
- package/{models → generated/typescript/models}/LateBoundStringContains.ts +0 -0
- package/{models → generated/typescript/models}/LessThan.ts +0 -0
- package/{models → generated/typescript/models}/LessThanOrEqual.ts +0 -0
- package/{models → generated/typescript/models}/ListNamespacesResponse.ts +0 -0
- package/{models → generated/typescript/models}/ListViewsRequest.ts +0 -0
- package/{models → generated/typescript/models}/ListViewsResponse.ts +0 -0
- package/{models → generated/typescript/models}/MSS.ts +0 -0
- package/{models → generated/typescript/models}/MySql.ts +0 -0
- package/{models → generated/typescript/models}/Namespace.ts +0 -0
- package/{models → generated/typescript/models}/NamespaceRequest.ts +0 -0
- package/{models → generated/typescript/models}/NamespaceResponse.ts +0 -0
- package/{models → generated/typescript/models}/NamespaceResponseMetadata.ts +0 -0
- package/{models → generated/typescript/models}/Not.ts +0 -0
- package/{models → generated/typescript/models}/Null.ts +0 -0
- package/{models → generated/typescript/models}/Or.ts +0 -0
- package/{models → generated/typescript/models}/PagingConfiguration.ts +0 -0
- package/{models → generated/typescript/models}/PasswordAuthentication.ts +0 -0
- package/{models → generated/typescript/models}/Postgres.ts +0 -0
- package/{models → generated/typescript/models}/PropertySchema.ts +0 -0
- package/{models → generated/typescript/models}/PropertyType.ts +0 -0
- package/{models → generated/typescript/models}/PropertyValue.ts +0 -0
- package/{models → generated/typescript/models}/PublicTunnel.ts +0 -0
- package/{models → generated/typescript/models}/QueryExecutionError.ts +0 -0
- package/{models → generated/typescript/models}/QueryExecutionResponse.ts +0 -0
- package/{models → generated/typescript/models}/QueryPreviewRequest.ts +0 -0
- package/{models → generated/typescript/models}/QueryTimeoutError.ts +0 -0
- package/{models → generated/typescript/models}/SSHAuthentication.ts +0 -0
- package/{models → generated/typescript/models}/SSHTunnel.ts +0 -0
- package/{models → generated/typescript/models}/Sort.ts +0 -0
- package/{models → generated/typescript/models}/SortDirection.ts +0 -0
- package/{models → generated/typescript/models}/SourceProperty.ts +1 -1
- /package/{models → generated/typescript/models}/StringContains.ts +0 -0
- /package/{models → generated/typescript/models}/StringPropertyValue.ts +0 -0
- /package/{models → generated/typescript/models}/TablePreviewRequest.ts +0 -0
- /package/{models → generated/typescript/models}/Tenant.ts +0 -0
- /package/{models → generated/typescript/models}/TenantKey.ts +0 -0
- /package/{models → generated/typescript/models}/TenantPrivateKeyAuthentication.ts +0 -0
- /package/{models → generated/typescript/models}/TenantRequest.ts +0 -0
- /package/{models → generated/typescript/models}/TenantResponse.ts +0 -0
- /package/{models → generated/typescript/models}/TenantS3Configuration.ts +0 -0
- /package/{models → generated/typescript/models}/TestConnectionRequest.ts +0 -0
- /package/{models → generated/typescript/models}/TestConnectionResponse.ts +0 -0
- /package/{models → generated/typescript/models}/Tunnel.ts +0 -0
- /package/{models → generated/typescript/models}/UUID.ts +0 -0
- /package/{models → generated/typescript/models}/ValueGrouping.ts +0 -0
- /package/{models → generated/typescript/models}/VendorPrivateKeyAuthentication.ts +0 -0
- /package/{models → generated/typescript/models}/ViewResponse.ts +0 -0
- /package/{services → generated/typescript/services}/DataSourceResourceService.ts +0 -0
- /package/{services → generated/typescript/services}/HealthResourceService.ts +0 -0
- /package/{services → generated/typescript/services}/NamespaceResourceService.ts +0 -0
- /package/{services → generated/typescript/services}/TenantResourceService.ts +0 -0
- /package/{services → generated/typescript/services}/TestConnectionResourceService.ts +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { Property } from './Property';
|
|
6
|
+
|
|
7
|
+
export type LateBoundLessThanOrEqual1 = {
|
|
8
|
+
'@type': 'lte-var-ref';
|
|
9
|
+
property: Property;
|
|
10
|
+
valueVariableReference: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { Property } from './Property';
|
|
6
|
+
|
|
7
|
+
export type LateBoundStringContains1 = {
|
|
8
|
+
'@type': 'str-ctns-var-ref';
|
|
9
|
+
property: Property;
|
|
10
|
+
valueVariableReference: string;
|
|
11
|
+
caseInsensitive: boolean;
|
|
12
|
+
};
|
|
13
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { Property } from './Property';
|
|
6
|
+
import type { PropertyValue } from './PropertyValue';
|
|
7
|
+
|
|
8
|
+
export type LessThan1 = {
|
|
9
|
+
'@type': 'lt';
|
|
10
|
+
property: Property;
|
|
11
|
+
value: PropertyValue;
|
|
12
|
+
};
|
|
13
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { Property } from './Property';
|
|
6
|
+
import type { PropertyValue } from './PropertyValue';
|
|
7
|
+
|
|
8
|
+
export type LessThanOrEqual1 = {
|
|
9
|
+
'@type': 'lte';
|
|
10
|
+
property: Property;
|
|
11
|
+
value: PropertyValue;
|
|
12
|
+
};
|
|
13
|
+
|
|
@@ -6,5 +6,7 @@ import type { AggregateProperty } from './AggregateProperty';
|
|
|
6
6
|
import type { FormulaProperty } from './FormulaProperty';
|
|
7
7
|
import type { SourceProperty } from './SourceProperty';
|
|
8
8
|
|
|
9
|
-
export type Property = (AggregateProperty | SourceProperty | FormulaProperty
|
|
9
|
+
export type Property = (AggregateProperty | SourceProperty | FormulaProperty | {
|
|
10
|
+
targetPropertyId: string | null;
|
|
11
|
+
});
|
|
10
12
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { QueryExportEmailResponse } from './QueryExportEmailResponse';
|
|
6
|
+
import type { QueryExportLinkResponse } from './QueryExportLinkResponse';
|
|
7
|
+
|
|
8
|
+
export type QueryExportResponse = (QueryExportEmailResponse | QueryExportLinkResponse);
|
|
9
|
+
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
+
import type { CacheTelemetry } from './CacheTelemetry';
|
|
6
|
+
|
|
5
7
|
export type RequestTelemetry = {
|
|
6
8
|
requestTime: string | null;
|
|
7
9
|
queryTime: string | null;
|
|
8
10
|
processingTime: string | null;
|
|
11
|
+
cacheTelemetry?: CacheTelemetry | null;
|
|
9
12
|
};
|
|
10
13
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { SnowflakeAuthentication } from './SnowflakeAuthentication';
|
|
6
|
+
import type { Tunnel } from './Tunnel';
|
|
7
|
+
|
|
8
|
+
export type Snowflake = {
|
|
9
|
+
tunnel: Tunnel;
|
|
10
|
+
'@type': 'snowflake';
|
|
11
|
+
user: string;
|
|
12
|
+
account: string;
|
|
13
|
+
schema: string | null;
|
|
14
|
+
database: string | null;
|
|
15
|
+
authentication: SnowflakeAuthentication;
|
|
16
|
+
};
|
|
17
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { Property } from './Property';
|
|
6
|
+
import type { StringPropertyValue } from './StringPropertyValue';
|
|
7
|
+
|
|
8
|
+
export type StringContains1 = {
|
|
9
|
+
'@type': 'str-ctns';
|
|
10
|
+
property: Property;
|
|
11
|
+
value: StringPropertyValue;
|
|
12
|
+
caseInsensitive: boolean;
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { CreateViewChange } from './CreateViewChange';
|
|
6
|
+
import type { DeleteViewChange } from './DeleteViewChange';
|
|
7
|
+
import type { UpdateViewChange } from './UpdateViewChange';
|
|
8
|
+
|
|
9
|
+
export type ViewChange = (CreateViewChange | UpdateViewChange | DeleteViewChange);
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { CreateViewDiff } from './CreateViewDiff';
|
|
6
|
+
import type { DeleteViewDiff } from './DeleteViewDiff';
|
|
7
|
+
import type { UpdateViewDiff } from './UpdateViewDiff';
|
|
8
|
+
|
|
9
|
+
export type ViewDiff = (CreateViewDiff | DeleteViewDiff | UpdateViewDiff);
|
|
10
|
+
|
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { Computation } from './Computation';
|
|
6
|
+
import type { EmailConfiguration } from './EmailConfiguration';
|
|
6
7
|
import type { ExportTargetConfiguration } from './ExportTargetConfiguration';
|
|
7
8
|
|
|
8
9
|
export type ViewExportRequest = {
|
|
9
10
|
queryContext: Record<string, any>;
|
|
10
11
|
computation: Computation | null;
|
|
11
12
|
exportConfiguration: ExportTargetConfiguration;
|
|
13
|
+
/**
|
|
14
|
+
* If present, then the export will be sent to the provided emails. Otherwise, a URL pointing to the export will be returned in the response
|
|
15
|
+
*/
|
|
16
|
+
emailConfiguration: EmailConfiguration | null;
|
|
12
17
|
};
|
|
13
18
|
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
import type { Computation } from './Computation';
|
|
6
6
|
import type { DataRequestParameters } from './DataRequestParameters';
|
|
7
|
+
import type { RequestExecutionParameters } from './RequestExecutionParameters';
|
|
7
8
|
|
|
8
9
|
export type ViewRunRequest = {
|
|
9
10
|
dataRequestParameters: DataRequestParameters;
|
|
11
|
+
requestExecutionParameters: RequestExecutionParameters | null;
|
|
10
12
|
queryContext: Record<string, any>;
|
|
11
13
|
computation: Computation | null;
|
|
12
14
|
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { BranchResponse } from '../models/BranchResponse';
|
|
5
|
+
import type { DiffBranchResponse } from '../models/DiffBranchResponse';
|
|
6
|
+
import type { ListBranchResponse } from '../models/ListBranchResponse';
|
|
7
|
+
import type { MergeBranchRequest } from '../models/MergeBranchRequest';
|
|
8
|
+
import type { UUID } from '../models/UUID';
|
|
9
|
+
import type { ViewRequest } from '../models/ViewRequest';
|
|
10
|
+
|
|
11
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
12
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
13
|
+
import { request as __request } from '../core/request';
|
|
14
|
+
|
|
15
|
+
export class BranchResourceService {
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Lists all branches
|
|
19
|
+
* @returns ListBranchResponse The branches
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
public static listBranches(): CancelablePromise<ListBranchResponse> {
|
|
23
|
+
return __request(OpenAPI, {
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: '/v1/branches',
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new branch
|
|
31
|
+
* @param requestBody Branch to create
|
|
32
|
+
* @returns BranchResponse The created branch
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
public static createBranch(
|
|
36
|
+
requestBody: ViewRequest,
|
|
37
|
+
): CancelablePromise<BranchResponse> {
|
|
38
|
+
return __request(OpenAPI, {
|
|
39
|
+
method: 'POST',
|
|
40
|
+
url: '/v1/branches',
|
|
41
|
+
body: requestBody,
|
|
42
|
+
mediaType: 'application/json',
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Returns the diff between the provided source branch and the provided target branch
|
|
48
|
+
* @param from
|
|
49
|
+
* @param to
|
|
50
|
+
* @returns DiffBranchResponse The diff between the two branches
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
public static diffBranch(
|
|
54
|
+
from?: UUID,
|
|
55
|
+
to?: UUID,
|
|
56
|
+
): CancelablePromise<DiffBranchResponse> {
|
|
57
|
+
return __request(OpenAPI, {
|
|
58
|
+
method: 'GET',
|
|
59
|
+
url: '/v1/branches/diff',
|
|
60
|
+
query: {
|
|
61
|
+
'from': from,
|
|
62
|
+
'to': to,
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Gets the branch with the requested id
|
|
69
|
+
* @param id
|
|
70
|
+
* @param includeMeta
|
|
71
|
+
* @returns BranchResponse The requested branch
|
|
72
|
+
* @throws ApiError
|
|
73
|
+
*/
|
|
74
|
+
public static getBranch(
|
|
75
|
+
id: UUID,
|
|
76
|
+
includeMeta: boolean = false,
|
|
77
|
+
): CancelablePromise<BranchResponse> {
|
|
78
|
+
return __request(OpenAPI, {
|
|
79
|
+
method: 'GET',
|
|
80
|
+
url: '/v1/branches/{id}',
|
|
81
|
+
path: {
|
|
82
|
+
'id': id,
|
|
83
|
+
},
|
|
84
|
+
query: {
|
|
85
|
+
'includeMeta': includeMeta,
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Merge the provided source branch into the provided target branch
|
|
92
|
+
* @param sourceBranchId
|
|
93
|
+
* @param requestBody Options for merge
|
|
94
|
+
* @returns BranchResponse The target branch with the new head
|
|
95
|
+
* @throws ApiError
|
|
96
|
+
*/
|
|
97
|
+
public static mergeBranch(
|
|
98
|
+
sourceBranchId: string,
|
|
99
|
+
requestBody: MergeBranchRequest,
|
|
100
|
+
): CancelablePromise<BranchResponse> {
|
|
101
|
+
return __request(OpenAPI, {
|
|
102
|
+
method: 'POST',
|
|
103
|
+
url: '/v1/branches/{sourceBranchId}/merge',
|
|
104
|
+
path: {
|
|
105
|
+
'sourceBranchId': sourceBranchId,
|
|
106
|
+
},
|
|
107
|
+
body: requestBody,
|
|
108
|
+
mediaType: 'application/json',
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { CreateCommitRequest } from '../models/CreateCommitRequest';
|
|
5
|
+
import type { CreateCommitResponse } from '../models/CreateCommitResponse';
|
|
6
|
+
import type { ListViewsResponse } from '../models/ListViewsResponse';
|
|
7
|
+
|
|
8
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
10
|
+
import { request as __request } from '../core/request';
|
|
11
|
+
|
|
12
|
+
export class CommitResourceService {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new commit on the provided branch
|
|
16
|
+
* @param branchId
|
|
17
|
+
* @param requestBody Branch to create
|
|
18
|
+
* @returns CreateCommitResponse The created commit
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
public static createCommit(
|
|
22
|
+
branchId: string,
|
|
23
|
+
requestBody: CreateCommitRequest,
|
|
24
|
+
): CancelablePromise<CreateCommitResponse> {
|
|
25
|
+
return __request(OpenAPI, {
|
|
26
|
+
method: 'POST',
|
|
27
|
+
url: '/v1/branches/{branchId}/commits',
|
|
28
|
+
path: {
|
|
29
|
+
'branchId': branchId,
|
|
30
|
+
},
|
|
31
|
+
body: requestBody,
|
|
32
|
+
mediaType: 'application/json',
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Lists the views affected by the specified commit
|
|
38
|
+
* @returns ListViewsResponse The views affected by the commit
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
public static listCommitViews(): CancelablePromise<ListViewsResponse> {
|
|
42
|
+
return __request(OpenAPI, {
|
|
43
|
+
method: 'GET',
|
|
44
|
+
url: '/v1/branches/{branchId}/commits/views',
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* istanbul ignore file */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
+
import type { ListVersionedViewsRequest } from '../models/ListVersionedViewsRequest';
|
|
4
5
|
import type { ListViewsRequest } from '../models/ListViewsRequest';
|
|
5
6
|
import type { ViewResponse } from '../models/ViewResponse';
|
|
6
7
|
|
|
@@ -11,6 +12,26 @@ import { request as __request } from '../core/request';
|
|
|
11
12
|
export class ListViewsResourceService {
|
|
12
13
|
|
|
13
14
|
/**
|
|
15
|
+
* Gets the requested set of views
|
|
16
|
+
* @param requestBody View ids to get
|
|
17
|
+
* @returns any The requested views
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
public static batchGetViews(
|
|
21
|
+
requestBody: ListVersionedViewsRequest,
|
|
22
|
+
): CancelablePromise<{
|
|
23
|
+
views: Array<ViewResponse>;
|
|
24
|
+
}> {
|
|
25
|
+
return __request(OpenAPI, {
|
|
26
|
+
method: 'POST',
|
|
27
|
+
url: '/v1/views/batch-get',
|
|
28
|
+
body: requestBody,
|
|
29
|
+
mediaType: 'application/json',
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated
|
|
14
35
|
* Clones the request set of views
|
|
15
36
|
* @param requestBody View ids to clone
|
|
16
37
|
* @returns any The cloned views
|
|
@@ -30,6 +51,7 @@ export class ListViewsResourceService {
|
|
|
30
51
|
}
|
|
31
52
|
|
|
32
53
|
/**
|
|
54
|
+
* @deprecated
|
|
33
55
|
* Gets the requested set of views
|
|
34
56
|
* @param requestBody View ids to get
|
|
35
57
|
* @returns any The requested views
|