@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.
Files changed (179) hide show
  1. package/{index.ts → generated/typescript/index.ts} +59 -0
  2. package/generated/typescript/models/And1.ts +11 -0
  3. package/{models → generated/typescript/models}/BigQueryAuthentication.ts +1 -0
  4. package/generated/typescript/models/Branch.ts +9 -0
  5. package/generated/typescript/models/BranchResponse.ts +12 -0
  6. package/generated/typescript/models/BranchResponseMetadata.ts +8 -0
  7. package/generated/typescript/models/CacheTelemetry.ts +10 -0
  8. package/generated/typescript/models/Clickhouse.ts +18 -0
  9. package/generated/typescript/models/ClickhouseConnectionType.ts +8 -0
  10. package/generated/typescript/models/ColumnFormat.ts +10 -0
  11. package/generated/typescript/models/Commit.ts +11 -0
  12. package/generated/typescript/models/CommitResponse.ts +10 -0
  13. package/{models → generated/typescript/models}/Computation.ts +2 -0
  14. package/{models → generated/typescript/models}/ComputedView.ts +4 -0
  15. package/generated/typescript/models/CreateCommitRequest.ts +13 -0
  16. package/generated/typescript/models/CreateCommitResponse.ts +11 -0
  17. package/generated/typescript/models/CreateViewChange.ts +12 -0
  18. package/generated/typescript/models/CreateViewDiff.ts +11 -0
  19. package/{models → generated/typescript/models}/DataSourceConfiguration.ts +4 -1
  20. package/generated/typescript/models/DateTimeColumnFormat.ts +11 -0
  21. package/generated/typescript/models/DecimalColumnFormat.ts +14 -0
  22. package/generated/typescript/models/DeleteViewChange.ts +9 -0
  23. package/generated/typescript/models/DeleteViewDiff.ts +11 -0
  24. package/generated/typescript/models/DiffBranchResponse.ts +10 -0
  25. package/generated/typescript/models/DurationColumnFormat.ts +9 -0
  26. package/generated/typescript/models/EmailConfiguration.ts +10 -0
  27. package/generated/typescript/models/Equal1.ts +13 -0
  28. package/generated/typescript/models/EvictionPolicy.ts +9 -0
  29. package/generated/typescript/models/ExportColumnOptions.ts +12 -0
  30. package/{models → generated/typescript/models}/ExportTargetConfiguration.ts +2 -0
  31. package/generated/typescript/models/GreaterThan1.ts +13 -0
  32. package/generated/typescript/models/GreaterThanOrEqual1.ts +13 -0
  33. package/generated/typescript/models/Having.ts +25 -0
  34. package/generated/typescript/models/In1.ts +13 -0
  35. package/generated/typescript/models/LateBoundEqual1.ts +12 -0
  36. package/generated/typescript/models/LateBoundGreaterThan1.ts +12 -0
  37. package/generated/typescript/models/LateBoundGreaterThanOrEqual1.ts +12 -0
  38. package/generated/typescript/models/LateBoundIn1.ts +12 -0
  39. package/generated/typescript/models/LateBoundLessThan1.ts +12 -0
  40. package/generated/typescript/models/LateBoundLessThanOrEqual1.ts +12 -0
  41. package/generated/typescript/models/LateBoundStringContains1.ts +13 -0
  42. package/generated/typescript/models/LessThan1.ts +13 -0
  43. package/generated/typescript/models/LessThanOrEqual1.ts +13 -0
  44. package/generated/typescript/models/ListBranchResponse.ts +10 -0
  45. package/generated/typescript/models/ListVersionedViewsRequest.ts +8 -0
  46. package/generated/typescript/models/MergeBranchRequest.ts +9 -0
  47. package/generated/typescript/models/Not1.ts +11 -0
  48. package/generated/typescript/models/Null1.ts +11 -0
  49. package/generated/typescript/models/Or1.ts +11 -0
  50. package/{models → generated/typescript/models}/Property.ts +3 -1
  51. package/generated/typescript/models/QueryExportEmailResponse.ts +8 -0
  52. package/{models/QueryExportResponse.ts → generated/typescript/models/QueryExportLinkResponse.ts} +2 -1
  53. package/generated/typescript/models/QueryExportResponse.ts +9 -0
  54. package/{models → generated/typescript/models}/Redshift.ts +1 -1
  55. package/generated/typescript/models/RequestExecutionParameters.ts +8 -0
  56. package/{models → generated/typescript/models}/RequestTelemetry.ts +3 -0
  57. package/generated/typescript/models/ScheduledEviction.ts +9 -0
  58. package/generated/typescript/models/Snowflake.ts +17 -0
  59. package/generated/typescript/models/SnowflakeAuthentication.ts +8 -0
  60. package/generated/typescript/models/SnowflakePasswordAuthentication.ts +9 -0
  61. package/generated/typescript/models/StringContains1.ts +14 -0
  62. package/{models → generated/typescript/models}/TableView.ts +1 -0
  63. package/generated/typescript/models/TtlEviction.ts +9 -0
  64. package/generated/typescript/models/UnitOfMeasurement.ts +7 -0
  65. package/generated/typescript/models/UpdateViewChange.ts +11 -0
  66. package/generated/typescript/models/UpdateViewDiff.ts +12 -0
  67. package/{models → generated/typescript/models}/View.ts +1 -0
  68. package/generated/typescript/models/ViewChange.ts +10 -0
  69. package/generated/typescript/models/ViewDiff.ts +10 -0
  70. package/{models → generated/typescript/models}/ViewExportRequest.ts +5 -0
  71. package/{models → generated/typescript/models}/ViewRequest.ts +1 -0
  72. package/{models → generated/typescript/models}/ViewRunRequest.ts +2 -0
  73. package/generated/typescript/services/BranchResourceService.ts +112 -0
  74. package/generated/typescript/services/CommitResourceService.ts +48 -0
  75. package/{services → generated/typescript/services}/ListViewsResourceService.ts +22 -0
  76. package/{services → generated/typescript/services}/QueryResourceService.ts +69 -0
  77. package/{services → generated/typescript/services}/ViewResourceService.ts +27 -0
  78. package/package.json +1 -1
  79. package/tsconfig.json +15 -0
  80. package/{core → generated/typescript/core}/ApiError.ts +0 -0
  81. package/{core → generated/typescript/core}/ApiRequestOptions.ts +0 -0
  82. package/{core → generated/typescript/core}/ApiResult.ts +0 -0
  83. package/{core → generated/typescript/core}/CancelablePromise.ts +0 -0
  84. package/{core → generated/typescript/core}/OpenAPI.ts +0 -0
  85. package/{core → generated/typescript/core}/request.ts +0 -0
  86. package/{models → generated/typescript/models}/AggregateProperty.ts +1 -1
  87. package/{models → generated/typescript/models}/Aggregation.ts +0 -0
  88. package/{models → generated/typescript/models}/AggregationOption.ts +0 -0
  89. package/{models → generated/typescript/models}/And.ts +0 -0
  90. package/{models → generated/typescript/models}/BigQuery.ts +0 -0
  91. package/{models → generated/typescript/models}/BooleanPropertyValue.ts +0 -0
  92. package/{models → generated/typescript/models}/CalendarInterval.ts +0 -0
  93. package/{models → generated/typescript/models}/CalendarIntervalGrouping.ts +0 -0
  94. package/{models → generated/typescript/models}/ClientError.ts +0 -0
  95. package/{models → generated/typescript/models}/DataPage.ts +0 -0
  96. package/{models → generated/typescript/models}/DataRecord.ts +0 -0
  97. package/{models → generated/typescript/models}/DataRequestParameters.ts +0 -0
  98. package/{models → generated/typescript/models}/DataResponseMetadata.ts +0 -0
  99. package/{models → generated/typescript/models}/DataSchema.ts +0 -0
  100. package/{models → generated/typescript/models}/DataSource.ts +0 -0
  101. package/{models → generated/typescript/models}/DataSourceError.ts +0 -0
  102. package/{models → generated/typescript/models}/DataSourceRequest.ts +0 -0
  103. package/{models → generated/typescript/models}/DataSourceResponse.ts +0 -0
  104. package/{models → generated/typescript/models}/DatePart.ts +0 -0
  105. package/{models → generated/typescript/models}/DatePartGrouping.ts +0 -0
  106. package/{models → generated/typescript/models}/DatePropertyValue.ts +0 -0
  107. package/{models → generated/typescript/models}/DateTimePropertyValue.ts +0 -0
  108. package/{models → generated/typescript/models}/DecimalIntervalGrouping.ts +0 -0
  109. package/{models → generated/typescript/models}/DecimalPropertyValue.ts +0 -0
  110. package/{models → generated/typescript/models}/DoublePropertyValue.ts +0 -0
  111. package/{models → generated/typescript/models}/Equal.ts +0 -0
  112. package/{models → generated/typescript/models}/ExportFormat.ts +0 -0
  113. package/{models → generated/typescript/models}/Filter.ts +0 -0
  114. package/{models → generated/typescript/models}/FormulaProperty.ts +1 -1
  115. package/{models → generated/typescript/models}/GreaterThan.ts +0 -0
  116. package/{models → generated/typescript/models}/GreaterThanOrEqual.ts +0 -0
  117. package/{models → generated/typescript/models}/Grouping.ts +0 -0
  118. package/{models → generated/typescript/models}/In.ts +0 -0
  119. package/{models → generated/typescript/models}/IntegerIntervalGrouping.ts +0 -0
  120. package/{models → generated/typescript/models}/IntegerPropertyValue.ts +0 -0
  121. package/{models → generated/typescript/models}/JdbcAuthentication.ts +0 -0
  122. package/{models → generated/typescript/models}/LateBoundEqual.ts +0 -0
  123. package/{models → generated/typescript/models}/LateBoundGreaterThan.ts +0 -0
  124. package/{models → generated/typescript/models}/LateBoundGreaterThanOrEqual.ts +0 -0
  125. package/{models → generated/typescript/models}/LateBoundIn.ts +0 -0
  126. package/{models → generated/typescript/models}/LateBoundLessThan.ts +0 -0
  127. package/{models → generated/typescript/models}/LateBoundLessThanOrEqual.ts +0 -0
  128. package/{models → generated/typescript/models}/LateBoundStringContains.ts +0 -0
  129. package/{models → generated/typescript/models}/LessThan.ts +0 -0
  130. package/{models → generated/typescript/models}/LessThanOrEqual.ts +0 -0
  131. package/{models → generated/typescript/models}/ListNamespacesResponse.ts +0 -0
  132. package/{models → generated/typescript/models}/ListViewsRequest.ts +0 -0
  133. package/{models → generated/typescript/models}/ListViewsResponse.ts +0 -0
  134. package/{models → generated/typescript/models}/MSS.ts +0 -0
  135. package/{models → generated/typescript/models}/MySql.ts +0 -0
  136. package/{models → generated/typescript/models}/Namespace.ts +0 -0
  137. package/{models → generated/typescript/models}/NamespaceRequest.ts +0 -0
  138. package/{models → generated/typescript/models}/NamespaceResponse.ts +0 -0
  139. package/{models → generated/typescript/models}/NamespaceResponseMetadata.ts +0 -0
  140. package/{models → generated/typescript/models}/Not.ts +0 -0
  141. package/{models → generated/typescript/models}/Null.ts +0 -0
  142. package/{models → generated/typescript/models}/Or.ts +0 -0
  143. package/{models → generated/typescript/models}/PagingConfiguration.ts +0 -0
  144. package/{models → generated/typescript/models}/PasswordAuthentication.ts +0 -0
  145. package/{models → generated/typescript/models}/Postgres.ts +0 -0
  146. package/{models → generated/typescript/models}/PropertySchema.ts +0 -0
  147. package/{models → generated/typescript/models}/PropertyType.ts +0 -0
  148. package/{models → generated/typescript/models}/PropertyValue.ts +0 -0
  149. package/{models → generated/typescript/models}/PublicTunnel.ts +0 -0
  150. package/{models → generated/typescript/models}/QueryExecutionError.ts +0 -0
  151. package/{models → generated/typescript/models}/QueryExecutionResponse.ts +0 -0
  152. package/{models → generated/typescript/models}/QueryPreviewRequest.ts +0 -0
  153. package/{models → generated/typescript/models}/QueryTimeoutError.ts +0 -0
  154. package/{models → generated/typescript/models}/SSHAuthentication.ts +0 -0
  155. package/{models → generated/typescript/models}/SSHTunnel.ts +0 -0
  156. package/{models → generated/typescript/models}/Sort.ts +0 -0
  157. package/{models → generated/typescript/models}/SortDirection.ts +0 -0
  158. package/{models → generated/typescript/models}/SourceProperty.ts +1 -1
  159. /package/{models → generated/typescript/models}/StringContains.ts +0 -0
  160. /package/{models → generated/typescript/models}/StringPropertyValue.ts +0 -0
  161. /package/{models → generated/typescript/models}/TablePreviewRequest.ts +0 -0
  162. /package/{models → generated/typescript/models}/Tenant.ts +0 -0
  163. /package/{models → generated/typescript/models}/TenantKey.ts +0 -0
  164. /package/{models → generated/typescript/models}/TenantPrivateKeyAuthentication.ts +0 -0
  165. /package/{models → generated/typescript/models}/TenantRequest.ts +0 -0
  166. /package/{models → generated/typescript/models}/TenantResponse.ts +0 -0
  167. /package/{models → generated/typescript/models}/TenantS3Configuration.ts +0 -0
  168. /package/{models → generated/typescript/models}/TestConnectionRequest.ts +0 -0
  169. /package/{models → generated/typescript/models}/TestConnectionResponse.ts +0 -0
  170. /package/{models → generated/typescript/models}/Tunnel.ts +0 -0
  171. /package/{models → generated/typescript/models}/UUID.ts +0 -0
  172. /package/{models → generated/typescript/models}/ValueGrouping.ts +0 -0
  173. /package/{models → generated/typescript/models}/VendorPrivateKeyAuthentication.ts +0 -0
  174. /package/{models → generated/typescript/models}/ViewResponse.ts +0 -0
  175. /package/{services → generated/typescript/services}/DataSourceResourceService.ts +0 -0
  176. /package/{services → generated/typescript/services}/HealthResourceService.ts +0 -0
  177. /package/{services → generated/typescript/services}/NamespaceResourceService.ts +0 -0
  178. /package/{services → generated/typescript/services}/TenantResourceService.ts +0 -0
  179. /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 LateBoundIn1 = {
8
+ '@type': 'in-var-ref';
9
+ property: Property;
10
+ valueVariableReference: string;
11
+ };
12
+
@@ -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 LateBoundLessThan1 = {
8
+ '@type': 'lt-var-ref';
9
+ property: Property;
10
+ valueVariableReference: string;
11
+ };
12
+
@@ -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
+
@@ -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 ListBranchResponse = {
8
+ branches: Array<Branch>;
9
+ };
10
+
@@ -0,0 +1,8 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type ListVersionedViewsRequest = {
6
+ viewIds: Record<string, string>;
7
+ };
8
+
@@ -0,0 +1,9 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type MergeBranchRequest = {
6
+ commitMessage: string;
7
+ targetBranch: string | null;
8
+ };
9
+
@@ -0,0 +1,11 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Having } from './Having';
6
+
7
+ export type Not1 = {
8
+ '@type': 'not';
9
+ value: Having;
10
+ };
11
+
@@ -0,0 +1,11 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Property } from './Property';
6
+
7
+ export type Null1 = {
8
+ '@type': 'null';
9
+ property: Property;
10
+ };
11
+
@@ -0,0 +1,11 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Having } from './Having';
6
+
7
+ export type Or1 = {
8
+ '@type': 'or';
9
+ values: Array<Having>;
10
+ };
11
+
@@ -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,8 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type QueryExportEmailResponse = {
6
+ '@type': 'email';
7
+ };
8
+
@@ -2,7 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- export type QueryExportResponse = {
5
+ export type QueryExportLinkResponse = {
6
+ '@type': 'link';
6
7
  url: string;
7
8
  };
8
9
 
@@ -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
+
@@ -10,7 +10,7 @@ export type Redshift = {
10
10
  database: string;
11
11
  host: string;
12
12
  tunnel: Tunnel;
13
- '@type': string;
13
+ '@type': 'redshift';
14
14
  port?: number;
15
15
  };
16
16
 
@@ -0,0 +1,8 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type RequestExecutionParameters = {
6
+ forceRefresh?: boolean;
7
+ };
8
+
@@ -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,9 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type ScheduledEviction = {
6
+ '@type': 'schedule';
7
+ evictionSchedule: string;
8
+ };
9
+
@@ -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,8 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { SnowflakePasswordAuthentication } from './SnowflakePasswordAuthentication';
6
+
7
+ export type SnowflakeAuthentication = SnowflakePasswordAuthentication;
8
+
@@ -0,0 +1,9 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type SnowflakePasswordAuthentication = {
6
+ '@type': 'username-password';
7
+ password?: string | null;
8
+ };
9
+
@@ -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
+
@@ -9,6 +9,7 @@ export type TableView = {
9
9
  description: string | null;
10
10
  columnDefinitions: Array<PropertySchema>;
11
11
  readonly id?: string | null;
12
+ readonly versionId?: string | null;
12
13
  readonly namespaceId?: string | null;
13
14
  '@type': 'table-view';
14
15
  tableName: string;
@@ -0,0 +1,9 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type TtlEviction = {
6
+ '@type': 'ttl';
7
+ ttl: string;
8
+ };
9
+
@@ -0,0 +1,7 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export enum UnitOfMeasurement {
6
+ CURRENCY = 'CURRENCY',
7
+ }
@@ -0,0 +1,11 @@
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
+
@@ -0,0 +1,12 @@
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
+
@@ -11,6 +11,7 @@ export type View = (ComputedView | TableView | {
11
11
  description: string | null;
12
12
  columnDefinitions: Array<PropertySchema>;
13
13
  readonly id?: string | null;
14
+ readonly versionId?: string | null;
14
15
  readonly namespaceId?: string | null;
15
16
  });
16
17
 
@@ -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
 
@@ -12,6 +12,7 @@ export type ViewRequest = {
12
12
  description: string | null;
13
13
  columnDefinitions: Array<PropertySchema>;
14
14
  readonly id?: string | null;
15
+ readonly versionId?: string | null;
15
16
  readonly namespaceId?: string | null;
16
17
  });
17
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