@explo-tech/fido-api 2.12.10 → 2.13.0-dan-ds-coordinator-refactor-i.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 +18 -8
- package/models/Branch.ts +1 -0
- package/models/BranchRequest.ts +10 -0
- package/models/BranchResponseMetadata.ts +3 -1
- package/models/Commit.ts +0 -1
- package/models/ComputedView.ts +5 -2
- package/models/CreateCommitRequest.ts +2 -2
- package/models/CreateCommitResponse.ts +2 -2
- package/models/CreateResourceChange.ts +11 -0
- package/models/CreateResourceDiff.ts +11 -0
- package/models/{DeleteViewChange.ts → DeleteResourceChange.ts} +1 -1
- package/models/DeleteResourceDiff.ts +11 -0
- package/models/DiffBranchResponse.ts +2 -2
- package/models/Folder.ts +16 -0
- package/models/ListBranchContentResponse.ts +10 -0
- package/models/ListVersionedViewsRequest.ts +3 -1
- package/models/MergeBranchRequest.ts +3 -1
- package/models/NamespaceResponseMetadata.ts +3 -2
- package/models/Parameter.ts +10 -0
- package/models/ParseQueryRequest.ts +8 -0
- package/models/Resource.ts +17 -0
- package/models/ResourceChange.ts +10 -0
- package/models/ResourceDiff.ts +10 -0
- package/models/SearchBranchContentResponse.ts +10 -0
- package/models/TableView.ts +3 -2
- package/models/UpdateResourceChange.ts +11 -0
- package/models/UpdateResourceDiff.ts +12 -0
- package/models/VersionedViewRequest.ts +11 -0
- package/models/View.ts +5 -5
- package/models/ViewRequest.ts +1 -9
- package/models/ViewResponse1.ts +10 -0
- package/package.json +1 -1
- package/services/BranchContentResourceService.ts +42 -0
- package/services/BranchResourceService.ts +11 -6
- package/services/CommitResourceService.ts +2 -14
- package/services/ListViewsResourceService.ts +22 -1
- package/services/QueryResourceService.ts +22 -22
- package/models/CreateViewChange.ts +0 -12
- package/models/CreateViewDiff.ts +0 -11
- package/models/DeleteViewDiff.ts +0 -11
- package/models/UpdateViewChange.ts +0 -11
- package/models/UpdateViewDiff.ts +0 -12
- package/models/ViewChange.ts +0 -10
- package/models/ViewDiff.ts +0 -10
package/index.ts
CHANGED
|
@@ -15,6 +15,7 @@ export type { BigQuery } from './models/BigQuery';
|
|
|
15
15
|
export type { BigQueryAuthentication } from './models/BigQueryAuthentication';
|
|
16
16
|
export type { BooleanPropertyValue } from './models/BooleanPropertyValue';
|
|
17
17
|
export type { Branch } from './models/Branch';
|
|
18
|
+
export type { BranchRequest } from './models/BranchRequest';
|
|
18
19
|
export type { BranchResponse } from './models/BranchResponse';
|
|
19
20
|
export type { BranchResponseMetadata } from './models/BranchResponseMetadata';
|
|
20
21
|
export type { CacheTelemetry } from './models/CacheTelemetry';
|
|
@@ -30,8 +31,8 @@ export type { Computation } from './models/Computation';
|
|
|
30
31
|
export type { ComputedView } from './models/ComputedView';
|
|
31
32
|
export type { CreateCommitRequest } from './models/CreateCommitRequest';
|
|
32
33
|
export type { CreateCommitResponse } from './models/CreateCommitResponse';
|
|
33
|
-
export type {
|
|
34
|
-
export type {
|
|
34
|
+
export type { CreateResourceChange } from './models/CreateResourceChange';
|
|
35
|
+
export type { CreateResourceDiff } from './models/CreateResourceDiff';
|
|
35
36
|
export type { DataPage } from './models/DataPage';
|
|
36
37
|
export type { DataRecord } from './models/DataRecord';
|
|
37
38
|
export type { DataRequestParameters } from './models/DataRequestParameters';
|
|
@@ -51,8 +52,8 @@ export type { DateTimePropertyValue } from './models/DateTimePropertyValue';
|
|
|
51
52
|
export type { DecimalColumnFormat } from './models/DecimalColumnFormat';
|
|
52
53
|
export type { DecimalIntervalGrouping } from './models/DecimalIntervalGrouping';
|
|
53
54
|
export type { DecimalPropertyValue } from './models/DecimalPropertyValue';
|
|
54
|
-
export type {
|
|
55
|
-
export type {
|
|
55
|
+
export type { DeleteResourceChange } from './models/DeleteResourceChange';
|
|
56
|
+
export type { DeleteResourceDiff } from './models/DeleteResourceDiff';
|
|
56
57
|
export type { DiffBranchResponse } from './models/DiffBranchResponse';
|
|
57
58
|
export type { DoublePropertyValue } from './models/DoublePropertyValue';
|
|
58
59
|
export type { DurationColumnFormat } from './models/DurationColumnFormat';
|
|
@@ -64,6 +65,7 @@ export type { ExportColumnOptions } from './models/ExportColumnOptions';
|
|
|
64
65
|
export { ExportFormat } from './models/ExportFormat';
|
|
65
66
|
export type { ExportTargetConfiguration } from './models/ExportTargetConfiguration';
|
|
66
67
|
export type { Filter } from './models/Filter';
|
|
68
|
+
export type { Folder } from './models/Folder';
|
|
67
69
|
export type { FormulaProperty } from './models/FormulaProperty';
|
|
68
70
|
export type { GreaterThan } from './models/GreaterThan';
|
|
69
71
|
export type { GreaterThan1 } from './models/GreaterThan1';
|
|
@@ -94,6 +96,7 @@ export type { LessThan } from './models/LessThan';
|
|
|
94
96
|
export type { LessThan1 } from './models/LessThan1';
|
|
95
97
|
export type { LessThanOrEqual } from './models/LessThanOrEqual';
|
|
96
98
|
export type { LessThanOrEqual1 } from './models/LessThanOrEqual1';
|
|
99
|
+
export type { ListBranchContentResponse } from './models/ListBranchContentResponse';
|
|
97
100
|
export type { ListBranchResponse } from './models/ListBranchResponse';
|
|
98
101
|
export type { ListNamespacesResponse } from './models/ListNamespacesResponse';
|
|
99
102
|
export type { ListVersionedViewsRequest } from './models/ListVersionedViewsRequest';
|
|
@@ -113,6 +116,8 @@ export type { Null1 } from './models/Null1';
|
|
|
113
116
|
export type { Or } from './models/Or';
|
|
114
117
|
export type { Or1 } from './models/Or1';
|
|
115
118
|
export type { PagingConfiguration } from './models/PagingConfiguration';
|
|
119
|
+
export type { Parameter } from './models/Parameter';
|
|
120
|
+
export type { ParseQueryRequest } from './models/ParseQueryRequest';
|
|
116
121
|
export type { PasswordAuthentication } from './models/PasswordAuthentication';
|
|
117
122
|
export type { Postgres } from './models/Postgres';
|
|
118
123
|
export type { Property } from './models/Property';
|
|
@@ -130,7 +135,11 @@ export type { QueryTimeoutError } from './models/QueryTimeoutError';
|
|
|
130
135
|
export type { Redshift } from './models/Redshift';
|
|
131
136
|
export type { RequestExecutionParameters } from './models/RequestExecutionParameters';
|
|
132
137
|
export type { RequestTelemetry } from './models/RequestTelemetry';
|
|
138
|
+
export type { Resource } from './models/Resource';
|
|
139
|
+
export type { ResourceChange } from './models/ResourceChange';
|
|
140
|
+
export type { ResourceDiff } from './models/ResourceDiff';
|
|
133
141
|
export type { ScheduledEviction } from './models/ScheduledEviction';
|
|
142
|
+
export type { SearchBranchContentResponse } from './models/SearchBranchContentResponse';
|
|
134
143
|
export type { Snowflake } from './models/Snowflake';
|
|
135
144
|
export type { SnowflakeAuthentication } from './models/SnowflakeAuthentication';
|
|
136
145
|
export type { SnowflakePasswordAuthentication } from './models/SnowflakePasswordAuthentication';
|
|
@@ -155,19 +164,20 @@ export type { TestConnectionResponse } from './models/TestConnectionResponse';
|
|
|
155
164
|
export type { TtlEviction } from './models/TtlEviction';
|
|
156
165
|
export type { Tunnel } from './models/Tunnel';
|
|
157
166
|
export { UnitOfMeasurement } from './models/UnitOfMeasurement';
|
|
158
|
-
export type {
|
|
159
|
-
export type {
|
|
167
|
+
export type { UpdateResourceChange } from './models/UpdateResourceChange';
|
|
168
|
+
export type { UpdateResourceDiff } from './models/UpdateResourceDiff';
|
|
160
169
|
export type { UUID } from './models/UUID';
|
|
161
170
|
export type { ValueGrouping } from './models/ValueGrouping';
|
|
162
171
|
export type { VendorPrivateKeyAuthentication } from './models/VendorPrivateKeyAuthentication';
|
|
172
|
+
export type { VersionedViewRequest } from './models/VersionedViewRequest';
|
|
163
173
|
export type { View } from './models/View';
|
|
164
|
-
export type { ViewChange } from './models/ViewChange';
|
|
165
|
-
export type { ViewDiff } from './models/ViewDiff';
|
|
166
174
|
export type { ViewExportRequest } from './models/ViewExportRequest';
|
|
167
175
|
export type { ViewRequest } from './models/ViewRequest';
|
|
168
176
|
export type { ViewResponse } from './models/ViewResponse';
|
|
177
|
+
export type { ViewResponse1 } from './models/ViewResponse1';
|
|
169
178
|
export type { ViewRunRequest } from './models/ViewRunRequest';
|
|
170
179
|
|
|
180
|
+
export { BranchContentResourceService } from './services/BranchContentResourceService';
|
|
171
181
|
export { BranchResourceService } from './services/BranchResourceService';
|
|
172
182
|
export { CommitResourceService } from './services/CommitResourceService';
|
|
173
183
|
export { DataSourceResourceService } from './services/DataSourceResourceService';
|
package/models/Branch.ts
CHANGED
package/models/Commit.ts
CHANGED
package/models/ComputedView.ts
CHANGED
|
@@ -3,18 +3,21 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { EvictionPolicy } from './EvictionPolicy';
|
|
6
|
+
import type { Parameter } from './Parameter';
|
|
6
7
|
import type { PropertySchema } from './PropertySchema';
|
|
7
8
|
|
|
8
9
|
export type ComputedView = {
|
|
10
|
+
columnDefinitions: Array<PropertySchema>;
|
|
11
|
+
readonly namespaceId?: string | null;
|
|
9
12
|
name: string;
|
|
13
|
+
path: string | null;
|
|
10
14
|
description: string | null;
|
|
11
|
-
columnDefinitions: Array<PropertySchema>;
|
|
12
15
|
readonly id?: string | null;
|
|
13
16
|
readonly versionId?: string | null;
|
|
14
|
-
readonly namespaceId?: string | null;
|
|
15
17
|
'@type': 'computed-view';
|
|
16
18
|
query: string;
|
|
17
19
|
cacheable?: boolean;
|
|
20
|
+
parameters: Array<Parameter>;
|
|
18
21
|
cacheEvictionPolicy: EvictionPolicy | null;
|
|
19
22
|
};
|
|
20
23
|
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
+
import type { ResourceChange } from './ResourceChange';
|
|
5
6
|
import type { UUID } from './UUID';
|
|
6
|
-
import type { ViewChange } from './ViewChange';
|
|
7
7
|
|
|
8
8
|
export type CreateCommitRequest = {
|
|
9
9
|
commitMessage: string;
|
|
10
10
|
parentCommitId: UUID;
|
|
11
|
-
changes: Array<
|
|
11
|
+
changes: Array<ResourceChange>;
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
-
import type {
|
|
5
|
+
import type { ResourceChange } from './ResourceChange';
|
|
6
6
|
|
|
7
7
|
export type CreateCommitResponse = {
|
|
8
8
|
commitId: string;
|
|
9
|
-
changes: Array<
|
|
9
|
+
changes: Array<ResourceChange>;
|
|
10
10
|
};
|
|
11
11
|
|
package/models/Folder.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { Resource } from './Resource';
|
|
6
|
+
|
|
7
|
+
export type Folder = {
|
|
8
|
+
name: string;
|
|
9
|
+
path: string | null;
|
|
10
|
+
description: string | null;
|
|
11
|
+
readonly id?: string | null;
|
|
12
|
+
readonly versionId?: string | null;
|
|
13
|
+
'@type': 'folder';
|
|
14
|
+
children: Array<Resource> | null;
|
|
15
|
+
};
|
|
16
|
+
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { DataSource } from './DataSource';
|
|
6
|
-
import type {
|
|
6
|
+
import type { Resource } from './Resource';
|
|
7
7
|
|
|
8
8
|
export type NamespaceResponseMetadata = {
|
|
9
9
|
dataSources: Array<DataSource> | null;
|
|
10
|
-
|
|
10
|
+
resources: Array<Resource> | null;
|
|
11
|
+
views: Array<Resource> | null;
|
|
11
12
|
};
|
|
12
13
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { ComputedView } from './ComputedView';
|
|
6
|
+
import type { Folder } from './Folder';
|
|
7
|
+
import type { TableView } from './TableView';
|
|
8
|
+
|
|
9
|
+
export type Resource = (ComputedView | TableView | Folder | {
|
|
10
|
+
'@type': string;
|
|
11
|
+
name: string;
|
|
12
|
+
path: string | null;
|
|
13
|
+
description: string | null;
|
|
14
|
+
readonly id?: string | null;
|
|
15
|
+
readonly versionId?: string | null;
|
|
16
|
+
});
|
|
17
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { CreateResourceChange } from './CreateResourceChange';
|
|
6
|
+
import type { DeleteResourceChange } from './DeleteResourceChange';
|
|
7
|
+
import type { UpdateResourceChange } from './UpdateResourceChange';
|
|
8
|
+
|
|
9
|
+
export type ResourceChange = (CreateResourceChange | UpdateResourceChange | DeleteResourceChange);
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { CreateResourceDiff } from './CreateResourceDiff';
|
|
6
|
+
import type { DeleteResourceDiff } from './DeleteResourceDiff';
|
|
7
|
+
import type { UpdateResourceDiff } from './UpdateResourceDiff';
|
|
8
|
+
|
|
9
|
+
export type ResourceDiff = (CreateResourceDiff | DeleteResourceDiff | UpdateResourceDiff);
|
|
10
|
+
|
package/models/TableView.ts
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
import type { PropertySchema } from './PropertySchema';
|
|
6
6
|
|
|
7
7
|
export type TableView = {
|
|
8
|
+
columnDefinitions: Array<PropertySchema>;
|
|
9
|
+
readonly namespaceId?: string | null;
|
|
8
10
|
name: string;
|
|
11
|
+
path: string | null;
|
|
9
12
|
description: string | null;
|
|
10
|
-
columnDefinitions: Array<PropertySchema>;
|
|
11
13
|
readonly id?: string | null;
|
|
12
14
|
readonly versionId?: string | null;
|
|
13
|
-
readonly namespaceId?: string | null;
|
|
14
15
|
'@type': 'table-view';
|
|
15
16
|
tableName: string;
|
|
16
17
|
schemaName?: string | null;
|
package/models/View.ts
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
-
import type { ComputedView } from './ComputedView';
|
|
6
5
|
import type { PropertySchema } from './PropertySchema';
|
|
7
|
-
import type { TableView } from './TableView';
|
|
8
6
|
|
|
9
|
-
export type View =
|
|
7
|
+
export type View = {
|
|
10
8
|
name: string;
|
|
9
|
+
path: string | null;
|
|
11
10
|
description: string | null;
|
|
12
|
-
columnDefinitions: Array<PropertySchema>;
|
|
13
11
|
readonly id?: string | null;
|
|
14
12
|
readonly versionId?: string | null;
|
|
13
|
+
'@type': string;
|
|
14
|
+
columnDefinitions: Array<PropertySchema>;
|
|
15
15
|
readonly namespaceId?: string | null;
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
|
package/models/ViewRequest.ts
CHANGED
|
@@ -3,17 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { ComputedView } from './ComputedView';
|
|
6
|
-
import type { PropertySchema } from './PropertySchema';
|
|
7
6
|
import type { TableView } from './TableView';
|
|
8
7
|
|
|
9
8
|
export type ViewRequest = {
|
|
10
|
-
view: (
|
|
11
|
-
name: string;
|
|
12
|
-
description: string | null;
|
|
13
|
-
columnDefinitions: Array<PropertySchema>;
|
|
14
|
-
readonly id?: string | null;
|
|
15
|
-
readonly versionId?: string | null;
|
|
16
|
-
readonly namespaceId?: string | null;
|
|
17
|
-
});
|
|
9
|
+
view: (TableView | ComputedView);
|
|
18
10
|
};
|
|
19
11
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@explo-tech/fido-api",
|
|
3
3
|
"description": "Fido api",
|
|
4
4
|
"homepage": "https://github.com/trust-kaz/fido",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.13.0-dan-ds-coordinator-refactor-i.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/trust-kaz/fido"
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { ListBranchContentResponse } from '../models/ListBranchContentResponse';
|
|
5
|
+
import type { UUID } from '../models/UUID';
|
|
6
|
+
|
|
7
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
9
|
+
import { request as __request } from '../core/request';
|
|
10
|
+
|
|
11
|
+
export class BranchContentResourceService {
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Lists the state at the head of the requested branch
|
|
15
|
+
* @param id
|
|
16
|
+
* @param path
|
|
17
|
+
* @param page
|
|
18
|
+
* @param perPage
|
|
19
|
+
* @returns ListBranchContentResponse The views on the requested branch
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
public static listBranchContent(
|
|
23
|
+
id: UUID,
|
|
24
|
+
path: string = '/',
|
|
25
|
+
page?: number,
|
|
26
|
+
perPage: number = 50,
|
|
27
|
+
): CancelablePromise<ListBranchContentResponse> {
|
|
28
|
+
return __request(OpenAPI, {
|
|
29
|
+
method: 'GET',
|
|
30
|
+
url: '/v1/branches/{id}/contents{path}',
|
|
31
|
+
path: {
|
|
32
|
+
'id': id,
|
|
33
|
+
'path': path,
|
|
34
|
+
},
|
|
35
|
+
query: {
|
|
36
|
+
'page': page,
|
|
37
|
+
'perPage': perPage,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* istanbul ignore file */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
+
import type { BranchRequest } from '../models/BranchRequest';
|
|
4
5
|
import type { BranchResponse } from '../models/BranchResponse';
|
|
5
6
|
import type { DiffBranchResponse } from '../models/DiffBranchResponse';
|
|
6
7
|
import type { ListBranchResponse } from '../models/ListBranchResponse';
|
|
7
8
|
import type { MergeBranchRequest } from '../models/MergeBranchRequest';
|
|
8
9
|
import type { UUID } from '../models/UUID';
|
|
9
|
-
import type { ViewRequest } from '../models/ViewRequest';
|
|
10
10
|
|
|
11
11
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
12
12
|
import { OpenAPI } from '../core/OpenAPI';
|
|
@@ -33,7 +33,7 @@ export class BranchResourceService {
|
|
|
33
33
|
* @throws ApiError
|
|
34
34
|
*/
|
|
35
35
|
public static createBranch(
|
|
36
|
-
requestBody:
|
|
36
|
+
requestBody: BranchRequest,
|
|
37
37
|
): CancelablePromise<BranchResponse> {
|
|
38
38
|
return __request(OpenAPI, {
|
|
39
39
|
method: 'POST',
|
|
@@ -89,20 +89,25 @@ export class BranchResourceService {
|
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Merge the provided source branch into the provided target branch
|
|
92
|
-
* @param
|
|
92
|
+
* @param targetBranchId
|
|
93
|
+
* @param isForce
|
|
93
94
|
* @param requestBody Options for merge
|
|
94
95
|
* @returns BranchResponse The target branch with the new head
|
|
95
96
|
* @throws ApiError
|
|
96
97
|
*/
|
|
97
98
|
public static mergeBranch(
|
|
98
|
-
|
|
99
|
+
targetBranchId: UUID,
|
|
100
|
+
isForce: boolean,
|
|
99
101
|
requestBody: MergeBranchRequest,
|
|
100
102
|
): CancelablePromise<BranchResponse> {
|
|
101
103
|
return __request(OpenAPI, {
|
|
102
104
|
method: 'POST',
|
|
103
|
-
url: '/v1/branches/{
|
|
105
|
+
url: '/v1/branches/{targetBranchId}/merge',
|
|
104
106
|
path: {
|
|
105
|
-
'
|
|
107
|
+
'targetBranchId': targetBranchId,
|
|
108
|
+
},
|
|
109
|
+
query: {
|
|
110
|
+
'isForce': isForce,
|
|
106
111
|
},
|
|
107
112
|
body: requestBody,
|
|
108
113
|
mediaType: 'application/json',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import type { CreateCommitRequest } from '../models/CreateCommitRequest';
|
|
5
5
|
import type { CreateCommitResponse } from '../models/CreateCommitResponse';
|
|
6
|
-
import type {
|
|
6
|
+
import type { UUID } from '../models/UUID';
|
|
7
7
|
|
|
8
8
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
9
|
import { OpenAPI } from '../core/OpenAPI';
|
|
@@ -19,7 +19,7 @@ export class CommitResourceService {
|
|
|
19
19
|
* @throws ApiError
|
|
20
20
|
*/
|
|
21
21
|
public static createCommit(
|
|
22
|
-
branchId:
|
|
22
|
+
branchId: UUID,
|
|
23
23
|
requestBody: CreateCommitRequest,
|
|
24
24
|
): CancelablePromise<CreateCommitResponse> {
|
|
25
25
|
return __request(OpenAPI, {
|
|
@@ -33,16 +33,4 @@ export class CommitResourceService {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
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
36
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import type { ListVersionedViewsRequest } from '../models/ListVersionedViewsRequest';
|
|
5
5
|
import type { ListViewsRequest } from '../models/ListViewsRequest';
|
|
6
|
+
import type { Parameter } from '../models/Parameter';
|
|
7
|
+
import type { ParseQueryRequest } from '../models/ParseQueryRequest';
|
|
6
8
|
import type { ViewResponse } from '../models/ViewResponse';
|
|
7
9
|
|
|
8
10
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -12,7 +14,7 @@ import { request as __request } from '../core/request';
|
|
|
12
14
|
export class ListViewsResourceService {
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
|
-
* Gets the requested set of views
|
|
17
|
+
* Gets the requested set of views. This endpoint cannot return any folders
|
|
16
18
|
* @param requestBody View ids to get
|
|
17
19
|
* @returns any The requested views
|
|
18
20
|
* @throws ApiError
|
|
@@ -70,4 +72,23 @@ export class ListViewsResourceService {
|
|
|
70
72
|
});
|
|
71
73
|
}
|
|
72
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Validate source query and get referenced parameters in query body
|
|
77
|
+
* @param requestBody Query to parse
|
|
78
|
+
* @returns any Query validation result and discovered parameters
|
|
79
|
+
* @throws ApiError
|
|
80
|
+
*/
|
|
81
|
+
public static parseQuery(
|
|
82
|
+
requestBody: ParseQueryRequest,
|
|
83
|
+
): CancelablePromise<{
|
|
84
|
+
parameters: Array<Parameter>;
|
|
85
|
+
}> {
|
|
86
|
+
return __request(OpenAPI, {
|
|
87
|
+
method: 'POST',
|
|
88
|
+
url: '/v1/views/parse-query',
|
|
89
|
+
body: requestBody,
|
|
90
|
+
mediaType: 'application/json',
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
73
94
|
}
|
|
@@ -73,17 +73,15 @@ export class QueryResourceService {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* Runs the requested
|
|
77
|
-
* @param commitId
|
|
76
|
+
* Runs the requested view against the provided data source, using the most recent version of the view
|
|
78
77
|
* @param dataSourceId
|
|
79
78
|
* @param namespaceId
|
|
80
79
|
* @param viewId
|
|
81
|
-
* @param requestBody
|
|
80
|
+
* @param requestBody View to export against the provided data source
|
|
82
81
|
* @returns QueryExportResponse A DataPage of the provided query
|
|
83
82
|
* @throws ApiError
|
|
84
83
|
*/
|
|
85
|
-
public static
|
|
86
|
-
commitId: UUID,
|
|
84
|
+
public static exportView(
|
|
87
85
|
dataSourceId: UUID,
|
|
88
86
|
namespaceId: UUID,
|
|
89
87
|
viewId: UUID,
|
|
@@ -91,9 +89,8 @@ export class QueryResourceService {
|
|
|
91
89
|
): CancelablePromise<QueryExportResponse> {
|
|
92
90
|
return __request(OpenAPI, {
|
|
93
91
|
method: 'POST',
|
|
94
|
-
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/
|
|
92
|
+
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/export',
|
|
95
93
|
path: {
|
|
96
|
-
'commitId': commitId,
|
|
97
94
|
'dataSourceId': dataSourceId,
|
|
98
95
|
'namespaceId': namespaceId,
|
|
99
96
|
'viewId': viewId,
|
|
@@ -107,17 +104,15 @@ export class QueryResourceService {
|
|
|
107
104
|
}
|
|
108
105
|
|
|
109
106
|
/**
|
|
110
|
-
* Runs the requested
|
|
111
|
-
* @param commitId
|
|
107
|
+
* Runs the requested view against the provided data source, using the most recent version of the view
|
|
112
108
|
* @param dataSourceId
|
|
113
109
|
* @param namespaceId
|
|
114
110
|
* @param viewId
|
|
115
|
-
* @param requestBody
|
|
111
|
+
* @param requestBody View to run against the provided data source
|
|
116
112
|
* @returns QueryExecutionResponse A DataPage of the provided query
|
|
117
113
|
* @throws ApiError
|
|
118
114
|
*/
|
|
119
|
-
public static
|
|
120
|
-
commitId: string,
|
|
115
|
+
public static runView(
|
|
121
116
|
dataSourceId: UUID,
|
|
122
117
|
namespaceId: UUID,
|
|
123
118
|
viewId: UUID,
|
|
@@ -125,9 +120,8 @@ export class QueryResourceService {
|
|
|
125
120
|
): CancelablePromise<QueryExecutionResponse> {
|
|
126
121
|
return __request(OpenAPI, {
|
|
127
122
|
method: 'POST',
|
|
128
|
-
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/
|
|
123
|
+
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/run',
|
|
129
124
|
path: {
|
|
130
|
-
'commitId': commitId,
|
|
131
125
|
'dataSourceId': dataSourceId,
|
|
132
126
|
'namespaceId': namespaceId,
|
|
133
127
|
'viewId': viewId,
|
|
@@ -142,26 +136,29 @@ export class QueryResourceService {
|
|
|
142
136
|
}
|
|
143
137
|
|
|
144
138
|
/**
|
|
145
|
-
* Runs the requested view against the provided data source
|
|
139
|
+
* Runs the requested versioned view against the provided data source
|
|
146
140
|
* @param dataSourceId
|
|
147
141
|
* @param namespaceId
|
|
142
|
+
* @param versionId
|
|
148
143
|
* @param viewId
|
|
149
|
-
* @param requestBody
|
|
144
|
+
* @param requestBody Request options for the export
|
|
150
145
|
* @returns QueryExportResponse A DataPage of the provided query
|
|
151
146
|
* @throws ApiError
|
|
152
147
|
*/
|
|
153
|
-
public static
|
|
148
|
+
public static exportVersionedView(
|
|
154
149
|
dataSourceId: UUID,
|
|
155
150
|
namespaceId: UUID,
|
|
151
|
+
versionId: UUID,
|
|
156
152
|
viewId: UUID,
|
|
157
153
|
requestBody: ViewExportRequest,
|
|
158
154
|
): CancelablePromise<QueryExportResponse> {
|
|
159
155
|
return __request(OpenAPI, {
|
|
160
156
|
method: 'POST',
|
|
161
|
-
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/export',
|
|
157
|
+
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/versions/{versionId}/export',
|
|
162
158
|
path: {
|
|
163
159
|
'dataSourceId': dataSourceId,
|
|
164
160
|
'namespaceId': namespaceId,
|
|
161
|
+
'versionId': versionId,
|
|
165
162
|
'viewId': viewId,
|
|
166
163
|
},
|
|
167
164
|
body: requestBody,
|
|
@@ -173,26 +170,29 @@ export class QueryResourceService {
|
|
|
173
170
|
}
|
|
174
171
|
|
|
175
172
|
/**
|
|
176
|
-
* Runs the requested view against the provided data source
|
|
173
|
+
* Runs the requested versioned view against the provided data source
|
|
177
174
|
* @param dataSourceId
|
|
178
175
|
* @param namespaceId
|
|
176
|
+
* @param versionId
|
|
179
177
|
* @param viewId
|
|
180
|
-
* @param requestBody
|
|
178
|
+
* @param requestBody Request options for the query
|
|
181
179
|
* @returns QueryExecutionResponse A DataPage of the provided query
|
|
182
180
|
* @throws ApiError
|
|
183
181
|
*/
|
|
184
|
-
public static
|
|
182
|
+
public static runVersionedView(
|
|
185
183
|
dataSourceId: UUID,
|
|
186
184
|
namespaceId: UUID,
|
|
185
|
+
versionId: string,
|
|
187
186
|
viewId: UUID,
|
|
188
187
|
requestBody: ViewRunRequest,
|
|
189
188
|
): CancelablePromise<QueryExecutionResponse> {
|
|
190
189
|
return __request(OpenAPI, {
|
|
191
190
|
method: 'POST',
|
|
192
|
-
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/run',
|
|
191
|
+
url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/versions/{versionId}/run',
|
|
193
192
|
path: {
|
|
194
193
|
'dataSourceId': dataSourceId,
|
|
195
194
|
'namespaceId': namespaceId,
|
|
195
|
+
'versionId': versionId,
|
|
196
196
|
'viewId': viewId,
|
|
197
197
|
},
|
|
198
198
|
body: requestBody,
|
package/models/CreateViewDiff.ts
DELETED
package/models/DeleteViewDiff.ts
DELETED
package/models/UpdateViewDiff.ts
DELETED
package/models/ViewChange.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
|
package/models/ViewDiff.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
|