@explo-tech/fido-api 2.12.10 → 3.0.0

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.
Files changed (43) hide show
  1. package/index.ts +17 -8
  2. package/models/Branch.ts +1 -0
  3. package/models/BranchRequest.ts +10 -0
  4. package/models/BranchResponseMetadata.ts +3 -1
  5. package/models/Commit.ts +0 -1
  6. package/models/ComputedView.ts +5 -2
  7. package/models/CreateCommitRequest.ts +2 -2
  8. package/models/CreateCommitResponse.ts +2 -2
  9. package/models/CreateResourceChange.ts +11 -0
  10. package/models/CreateResourceDiff.ts +11 -0
  11. package/models/{DeleteViewChange.ts → DeleteResourceChange.ts} +1 -1
  12. package/models/DeleteResourceDiff.ts +11 -0
  13. package/models/DiffBranchResponse.ts +2 -2
  14. package/models/Folder.ts +16 -0
  15. package/models/ListBranchContentResponse.ts +10 -0
  16. package/models/ListVersionedViewsRequest.ts +3 -1
  17. package/models/MergeBranchRequest.ts +3 -1
  18. package/models/NamespaceResponseMetadata.ts +3 -2
  19. package/models/Parameter.ts +10 -0
  20. package/models/Resource.ts +16 -0
  21. package/models/ResourceChange.ts +10 -0
  22. package/models/ResourceDiff.ts +10 -0
  23. package/models/SearchBranchContentResponse.ts +10 -0
  24. package/models/TableView.ts +3 -2
  25. package/models/UpdateResourceChange.ts +11 -0
  26. package/models/UpdateResourceDiff.ts +12 -0
  27. package/models/VersionedViewRequest.ts +11 -0
  28. package/models/View.ts +4 -5
  29. package/models/ViewRequest.ts +1 -9
  30. package/models/ViewResponse1.ts +10 -0
  31. package/package.json +1 -1
  32. package/services/BranchContentResourceService.ts +42 -0
  33. package/services/BranchResourceService.ts +11 -6
  34. package/services/CommitResourceService.ts +2 -14
  35. package/services/ListViewsResourceService.ts +1 -1
  36. package/services/QueryResourceService.ts +22 -22
  37. package/models/CreateViewChange.ts +0 -12
  38. package/models/CreateViewDiff.ts +0 -11
  39. package/models/DeleteViewDiff.ts +0 -11
  40. package/models/UpdateViewChange.ts +0 -11
  41. package/models/UpdateViewDiff.ts +0 -12
  42. package/models/ViewChange.ts +0 -10
  43. 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 { CreateViewChange } from './models/CreateViewChange';
34
- export type { CreateViewDiff } from './models/CreateViewDiff';
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 { DeleteViewChange } from './models/DeleteViewChange';
55
- export type { DeleteViewDiff } from './models/DeleteViewDiff';
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,7 @@ 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';
116
120
  export type { PasswordAuthentication } from './models/PasswordAuthentication';
117
121
  export type { Postgres } from './models/Postgres';
118
122
  export type { Property } from './models/Property';
@@ -130,7 +134,11 @@ export type { QueryTimeoutError } from './models/QueryTimeoutError';
130
134
  export type { Redshift } from './models/Redshift';
131
135
  export type { RequestExecutionParameters } from './models/RequestExecutionParameters';
132
136
  export type { RequestTelemetry } from './models/RequestTelemetry';
137
+ export type { Resource } from './models/Resource';
138
+ export type { ResourceChange } from './models/ResourceChange';
139
+ export type { ResourceDiff } from './models/ResourceDiff';
133
140
  export type { ScheduledEviction } from './models/ScheduledEviction';
141
+ export type { SearchBranchContentResponse } from './models/SearchBranchContentResponse';
134
142
  export type { Snowflake } from './models/Snowflake';
135
143
  export type { SnowflakeAuthentication } from './models/SnowflakeAuthentication';
136
144
  export type { SnowflakePasswordAuthentication } from './models/SnowflakePasswordAuthentication';
@@ -155,19 +163,20 @@ export type { TestConnectionResponse } from './models/TestConnectionResponse';
155
163
  export type { TtlEviction } from './models/TtlEviction';
156
164
  export type { Tunnel } from './models/Tunnel';
157
165
  export { UnitOfMeasurement } from './models/UnitOfMeasurement';
158
- export type { UpdateViewChange } from './models/UpdateViewChange';
159
- export type { UpdateViewDiff } from './models/UpdateViewDiff';
166
+ export type { UpdateResourceChange } from './models/UpdateResourceChange';
167
+ export type { UpdateResourceDiff } from './models/UpdateResourceDiff';
160
168
  export type { UUID } from './models/UUID';
161
169
  export type { ValueGrouping } from './models/ValueGrouping';
162
170
  export type { VendorPrivateKeyAuthentication } from './models/VendorPrivateKeyAuthentication';
171
+ export type { VersionedViewRequest } from './models/VersionedViewRequest';
163
172
  export type { View } from './models/View';
164
- export type { ViewChange } from './models/ViewChange';
165
- export type { ViewDiff } from './models/ViewDiff';
166
173
  export type { ViewExportRequest } from './models/ViewExportRequest';
167
174
  export type { ViewRequest } from './models/ViewRequest';
168
175
  export type { ViewResponse } from './models/ViewResponse';
176
+ export type { ViewResponse1 } from './models/ViewResponse1';
169
177
  export type { ViewRunRequest } from './models/ViewRunRequest';
170
178
 
179
+ export { BranchContentResourceService } from './services/BranchContentResourceService';
171
180
  export { BranchResourceService } from './services/BranchResourceService';
172
181
  export { CommitResourceService } from './services/CommitResourceService';
173
182
  export { DataSourceResourceService } from './services/DataSourceResourceService';
package/models/Branch.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  /* eslint-disable */
4
4
 
5
5
  export type Branch = {
6
+ readonly id?: string;
6
7
  name: string;
7
8
  headId: string;
8
9
  };
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Branch } from './Branch';
6
+
7
+ export type BranchRequest = {
8
+ branch: Branch;
9
+ };
10
+
@@ -2,7 +2,9 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
+ import type { ResourceDiff } from './ResourceDiff';
6
+
5
7
  export type BranchResponseMetadata = {
6
- originCommitId: string;
8
+ diff: Array<ResourceDiff> | null;
7
9
  };
8
10
 
package/models/Commit.ts CHANGED
@@ -6,6 +6,5 @@ export type Commit = {
6
6
  readonly id?: string;
7
7
  commitMessage: string;
8
8
  readonly parentId: string | null;
9
- views: Record<string, string>;
10
9
  };
11
10
 
@@ -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<ViewChange>;
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 { ViewChange } from './ViewChange';
5
+ import type { ResourceChange } from './ResourceChange';
6
6
 
7
7
  export type CreateCommitResponse = {
8
8
  commitId: string;
9
- changes: Array<ViewChange>;
9
+ changes: Array<ResourceChange>;
10
10
  };
11
11
 
@@ -0,0 +1,11 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Resource } from './Resource';
6
+
7
+ export type CreateResourceChange = {
8
+ '@type': 'create';
9
+ resource: Resource;
10
+ };
11
+
@@ -0,0 +1,11 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Resource } from './Resource';
6
+
7
+ export type CreateResourceDiff = {
8
+ '@type': 'create';
9
+ resource: Resource;
10
+ };
11
+
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- export type DeleteViewChange = {
5
+ export type DeleteResourceChange = {
6
6
  '@type': 'delete';
7
7
  id: string;
8
8
  };
@@ -0,0 +1,11 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Resource } from './Resource';
6
+
7
+ export type DeleteResourceDiff = {
8
+ '@type': 'update';
9
+ originalResource: Resource;
10
+ };
11
+
@@ -2,9 +2,9 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- import type { ViewDiff } from './ViewDiff';
5
+ import type { ResourceDiff } from './ResourceDiff';
6
6
 
7
7
  export type DiffBranchResponse = {
8
- diff: Array<ViewDiff>;
8
+ diff: Array<ResourceDiff>;
9
9
  };
10
10
 
@@ -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
+
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Resource } from './Resource';
6
+
7
+ export type ListBranchContentResponse = {
8
+ content: Resource;
9
+ };
10
+
@@ -2,7 +2,9 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
+ import type { VersionedViewRequest } from './VersionedViewRequest';
6
+
5
7
  export type ListVersionedViewsRequest = {
6
- viewIds: Record<string, string>;
8
+ requests: Array<VersionedViewRequest>;
7
9
  };
8
10
 
@@ -2,8 +2,10 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
+ import type { UUID } from './UUID';
6
+
5
7
  export type MergeBranchRequest = {
6
8
  commitMessage: string;
7
- targetBranch: string | null;
9
+ sourceBranchId: UUID;
8
10
  };
9
11
 
@@ -3,10 +3,11 @@
3
3
  /* eslint-disable */
4
4
 
5
5
  import type { DataSource } from './DataSource';
6
- import type { View } from './View';
6
+ import type { Resource } from './Resource';
7
7
 
8
8
  export type NamespaceResponseMetadata = {
9
9
  dataSources: Array<DataSource> | null;
10
- views: Array<View> | null;
10
+ resources: Array<Resource> | null;
11
+ views: Array<Resource> | null;
11
12
  };
12
13
 
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type Parameter = {
6
+ name: string;
7
+ description: string | null;
8
+ required: boolean;
9
+ };
10
+
@@ -0,0 +1,16 @@
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
+ name: string;
11
+ path: string | null;
12
+ description: string | null;
13
+ readonly id?: string | null;
14
+ readonly versionId?: string | null;
15
+ });
16
+
@@ -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
+
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Resource } from './Resource';
6
+
7
+ export type SearchBranchContentResponse = {
8
+ results: Array<Resource>;
9
+ };
10
+
@@ -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;
@@ -0,0 +1,11 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Resource } from './Resource';
6
+
7
+ export type UpdateResourceChange = {
8
+ '@type': 'update';
9
+ resource: Resource;
10
+ };
11
+
@@ -0,0 +1,12 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Resource } from './Resource';
6
+
7
+ export type UpdateResourceDiff = {
8
+ '@type': 'delete';
9
+ originalResource: Resource;
10
+ updatedResource: Resource;
11
+ };
12
+
@@ -0,0 +1,11 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { UUID } from './UUID';
6
+
7
+ export type VersionedViewRequest = {
8
+ id: UUID;
9
+ versionId: UUID;
10
+ };
11
+
package/models/View.ts CHANGED
@@ -2,16 +2,15 @@
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 = (ComputedView | TableView | {
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
+ columnDefinitions: Array<PropertySchema>;
15
14
  readonly namespaceId?: string | null;
16
- });
15
+ };
17
16
 
@@ -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: (ComputedView | TableView | {
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
 
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Resource } from './Resource';
6
+
7
+ export type ViewResponse1 = {
8
+ resource: Resource;
9
+ };
10
+
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.12.10",
5
+ "version": "3.0.0",
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: ViewRequest,
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 sourceBranchId
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
- sourceBranchId: string,
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/{sourceBranchId}/merge',
105
+ url: '/v1/branches/{targetBranchId}/merge',
104
106
  path: {
105
- 'sourceBranchId': sourceBranchId,
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 { ListViewsResponse } from '../models/ListViewsResponse';
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: string,
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
  }
@@ -12,7 +12,7 @@ import { request as __request } from '../core/request';
12
12
  export class ListViewsResourceService {
13
13
 
14
14
  /**
15
- * Gets the requested set of views
15
+ * Gets the requested set of views. This endpoint cannot return any folders
16
16
  * @param requestBody View ids to get
17
17
  * @returns any The requested views
18
18
  * @throws ApiError
@@ -73,17 +73,15 @@ export class QueryResourceService {
73
73
  }
74
74
 
75
75
  /**
76
- * Runs the requested versioned view against the provided data source
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 Request options for the export
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 exportVersionedView(
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}/commits/{commitId}/export',
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 versioned view against the provided data source
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 Request options for the query
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 runVersionedView(
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}/commits/{commitId}/run',
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 View to export against the provided data source
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 exportView(
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 View to run against the provided data source
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 runView(
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,
@@ -1,12 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { View } from './View';
6
-
7
- export type CreateViewChange = {
8
- '@type': 'create';
9
- requestId: string;
10
- view: View;
11
- };
12
-
@@ -1,11 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { View } from './View';
6
-
7
- export type CreateViewDiff = {
8
- '@type': 'create';
9
- view: View;
10
- };
11
-
@@ -1,11 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { View } from './View';
6
-
7
- export type DeleteViewDiff = {
8
- '@type': 'update';
9
- originalView: View;
10
- };
11
-
@@ -1,11 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { View } from './View';
6
-
7
- export type UpdateViewChange = {
8
- '@type': 'update';
9
- view: View;
10
- };
11
-
@@ -1,12 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import type { View } from './View';
6
-
7
- export type UpdateViewDiff = {
8
- '@type': 'delete';
9
- originalView: View;
10
- updatedView: View;
11
- };
12
-
@@ -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
-
@@ -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
-