@explo-tech/fido-api 2.4.11 → 2.4.13-jordan-commit-branches.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 (61) hide show
  1. package/index.ts +48 -0
  2. package/models/And1.ts +11 -0
  3. package/models/Branch.ts +9 -0
  4. package/models/BranchResponse.ts +12 -0
  5. package/models/BranchResponseMetadata.ts +8 -0
  6. package/models/ColumnFormat.ts +10 -0
  7. package/models/Commit.ts +10 -0
  8. package/models/CommitResponse.ts +10 -0
  9. package/models/Computation.ts +2 -0
  10. package/models/ComputedView.ts +1 -0
  11. package/models/CreateCommitRequest.ts +13 -0
  12. package/models/CreateCommitResponse.ts +11 -0
  13. package/models/CreateViewChange.ts +12 -0
  14. package/models/CreateViewDiff.ts +11 -0
  15. package/models/DateTimeColumnFormat.ts +10 -0
  16. package/models/DecimalColumnFormat.ts +14 -0
  17. package/models/DeleteViewChange.ts +9 -0
  18. package/models/DeleteViewDiff.ts +11 -0
  19. package/models/DiffBranchResponse.ts +10 -0
  20. package/models/DurationColumnFormat.ts +9 -0
  21. package/models/EmailConfiguration.ts +10 -0
  22. package/models/Equal1.ts +13 -0
  23. package/models/ExportColumnOptions.ts +3 -0
  24. package/models/GreaterThan1.ts +13 -0
  25. package/models/GreaterThanOrEqual1.ts +13 -0
  26. package/models/Having.ts +25 -0
  27. package/models/In1.ts +13 -0
  28. package/models/LateBoundEqual1.ts +12 -0
  29. package/models/LateBoundGreaterThan1.ts +12 -0
  30. package/models/LateBoundGreaterThanOrEqual1.ts +12 -0
  31. package/models/LateBoundIn1.ts +12 -0
  32. package/models/LateBoundLessThan1.ts +12 -0
  33. package/models/LateBoundLessThanOrEqual1.ts +12 -0
  34. package/models/LateBoundStringContains1.ts +13 -0
  35. package/models/LessThan1.ts +13 -0
  36. package/models/LessThanOrEqual1.ts +13 -0
  37. package/models/ListBranchResponse.ts +10 -0
  38. package/models/ListVersionedViewsRequest.ts +8 -0
  39. package/models/MergeBranchRequest.ts +9 -0
  40. package/models/Not1.ts +11 -0
  41. package/models/Null1.ts +11 -0
  42. package/models/Or1.ts +11 -0
  43. package/models/QueryExportEmailResponse.ts +8 -0
  44. package/models/QueryExportLinkResponse.ts +9 -0
  45. package/models/QueryExportResponse.ts +4 -3
  46. package/models/StringContains1.ts +14 -0
  47. package/models/TableView.ts +1 -0
  48. package/models/UnitOfMeasurement.ts +7 -0
  49. package/models/UpdateViewChange.ts +11 -0
  50. package/models/UpdateViewDiff.ts +12 -0
  51. package/models/View.ts +1 -0
  52. package/models/ViewChange.ts +10 -0
  53. package/models/ViewDiff.ts +10 -0
  54. package/models/ViewExportRequest.ts +5 -0
  55. package/models/ViewRequest.ts +1 -0
  56. package/package.json +1 -1
  57. package/services/BranchResourceService.ts +131 -0
  58. package/services/CommitResourceService.ts +35 -0
  59. package/services/ListViewsResourceService.ts +22 -0
  60. package/services/QueryResourceService.ts +69 -0
  61. package/services/ViewResourceService.ts +27 -0
package/index.ts CHANGED
@@ -10,15 +10,26 @@ export type { AggregateProperty } from './models/AggregateProperty';
10
10
  export { Aggregation } from './models/Aggregation';
11
11
  export type { AggregationOption } from './models/AggregationOption';
12
12
  export type { And } from './models/And';
13
+ export type { And1 } from './models/And1';
13
14
  export type { BigQuery } from './models/BigQuery';
14
15
  export type { BigQueryAuthentication } from './models/BigQueryAuthentication';
15
16
  export type { BooleanPropertyValue } from './models/BooleanPropertyValue';
17
+ export type { Branch } from './models/Branch';
18
+ export type { BranchResponse } from './models/BranchResponse';
19
+ export type { BranchResponseMetadata } from './models/BranchResponseMetadata';
16
20
  export type { CacheTelemetry } from './models/CacheTelemetry';
17
21
  export { CalendarInterval } from './models/CalendarInterval';
18
22
  export type { CalendarIntervalGrouping } from './models/CalendarIntervalGrouping';
19
23
  export type { ClientError } from './models/ClientError';
24
+ export type { ColumnFormat } from './models/ColumnFormat';
25
+ export type { Commit } from './models/Commit';
26
+ export type { CommitResponse } from './models/CommitResponse';
20
27
  export type { Computation } from './models/Computation';
21
28
  export type { ComputedView } from './models/ComputedView';
29
+ export type { CreateCommitRequest } from './models/CreateCommitRequest';
30
+ export type { CreateCommitResponse } from './models/CreateCommitResponse';
31
+ export type { CreateViewChange } from './models/CreateViewChange';
32
+ export type { CreateViewDiff } from './models/CreateViewDiff';
22
33
  export type { DataPage } from './models/DataPage';
23
34
  export type { DataRecord } from './models/DataRecord';
24
35
  export type { DataRequestParameters } from './models/DataRequestParameters';
@@ -32,11 +43,19 @@ export type { DataSourceResponse } from './models/DataSourceResponse';
32
43
  export { DatePart } from './models/DatePart';
33
44
  export type { DatePartGrouping } from './models/DatePartGrouping';
34
45
  export type { DatePropertyValue } from './models/DatePropertyValue';
46
+ export type { DateTimeColumnFormat } from './models/DateTimeColumnFormat';
35
47
  export type { DateTimePropertyValue } from './models/DateTimePropertyValue';
48
+ export type { DecimalColumnFormat } from './models/DecimalColumnFormat';
36
49
  export type { DecimalIntervalGrouping } from './models/DecimalIntervalGrouping';
37
50
  export type { DecimalPropertyValue } from './models/DecimalPropertyValue';
51
+ export type { DeleteViewChange } from './models/DeleteViewChange';
52
+ export type { DeleteViewDiff } from './models/DeleteViewDiff';
53
+ export type { DiffBranchResponse } from './models/DiffBranchResponse';
38
54
  export type { DoublePropertyValue } from './models/DoublePropertyValue';
55
+ export type { DurationColumnFormat } from './models/DurationColumnFormat';
56
+ export type { EmailConfiguration } from './models/EmailConfiguration';
39
57
  export type { Equal } from './models/Equal';
58
+ export type { Equal1 } from './models/Equal1';
40
59
  export type { EvictionPolicy } from './models/EvictionPolicy';
41
60
  export type { ExportColumnOptions } from './models/ExportColumnOptions';
42
61
  export { ExportFormat } from './models/ExportFormat';
@@ -44,24 +63,40 @@ export type { ExportTargetConfiguration } from './models/ExportTargetConfigurati
44
63
  export type { Filter } from './models/Filter';
45
64
  export type { FormulaProperty } from './models/FormulaProperty';
46
65
  export type { GreaterThan } from './models/GreaterThan';
66
+ export type { GreaterThan1 } from './models/GreaterThan1';
47
67
  export type { GreaterThanOrEqual } from './models/GreaterThanOrEqual';
68
+ export type { GreaterThanOrEqual1 } from './models/GreaterThanOrEqual1';
48
69
  export type { Grouping } from './models/Grouping';
70
+ export type { Having } from './models/Having';
49
71
  export type { In } from './models/In';
72
+ export type { In1 } from './models/In1';
50
73
  export type { IntegerIntervalGrouping } from './models/IntegerIntervalGrouping';
51
74
  export type { IntegerPropertyValue } from './models/IntegerPropertyValue';
52
75
  export type { JdbcAuthentication } from './models/JdbcAuthentication';
53
76
  export type { LateBoundEqual } from './models/LateBoundEqual';
77
+ export type { LateBoundEqual1 } from './models/LateBoundEqual1';
54
78
  export type { LateBoundGreaterThan } from './models/LateBoundGreaterThan';
79
+ export type { LateBoundGreaterThan1 } from './models/LateBoundGreaterThan1';
55
80
  export type { LateBoundGreaterThanOrEqual } from './models/LateBoundGreaterThanOrEqual';
81
+ export type { LateBoundGreaterThanOrEqual1 } from './models/LateBoundGreaterThanOrEqual1';
56
82
  export type { LateBoundIn } from './models/LateBoundIn';
83
+ export type { LateBoundIn1 } from './models/LateBoundIn1';
57
84
  export type { LateBoundLessThan } from './models/LateBoundLessThan';
85
+ export type { LateBoundLessThan1 } from './models/LateBoundLessThan1';
58
86
  export type { LateBoundLessThanOrEqual } from './models/LateBoundLessThanOrEqual';
87
+ export type { LateBoundLessThanOrEqual1 } from './models/LateBoundLessThanOrEqual1';
59
88
  export type { LateBoundStringContains } from './models/LateBoundStringContains';
89
+ export type { LateBoundStringContains1 } from './models/LateBoundStringContains1';
60
90
  export type { LessThan } from './models/LessThan';
91
+ export type { LessThan1 } from './models/LessThan1';
61
92
  export type { LessThanOrEqual } from './models/LessThanOrEqual';
93
+ export type { LessThanOrEqual1 } from './models/LessThanOrEqual1';
94
+ export type { ListBranchResponse } from './models/ListBranchResponse';
62
95
  export type { ListNamespacesResponse } from './models/ListNamespacesResponse';
96
+ export type { ListVersionedViewsRequest } from './models/ListVersionedViewsRequest';
63
97
  export type { ListViewsRequest } from './models/ListViewsRequest';
64
98
  export type { ListViewsResponse } from './models/ListViewsResponse';
99
+ export type { MergeBranchRequest } from './models/MergeBranchRequest';
65
100
  export type { MSS } from './models/MSS';
66
101
  export type { MySql } from './models/MySql';
67
102
  export type { Namespace } from './models/Namespace';
@@ -69,8 +104,11 @@ export type { NamespaceRequest } from './models/NamespaceRequest';
69
104
  export type { NamespaceResponse } from './models/NamespaceResponse';
70
105
  export type { NamespaceResponseMetadata } from './models/NamespaceResponseMetadata';
71
106
  export type { Not } from './models/Not';
107
+ export type { Not1 } from './models/Not1';
72
108
  export type { Null } from './models/Null';
109
+ export type { Null1 } from './models/Null1';
73
110
  export type { Or } from './models/Or';
111
+ export type { Or1 } from './models/Or1';
74
112
  export type { PagingConfiguration } from './models/PagingConfiguration';
75
113
  export type { PasswordAuthentication } from './models/PasswordAuthentication';
76
114
  export type { Postgres } from './models/Postgres';
@@ -81,6 +119,8 @@ export type { PropertyValue } from './models/PropertyValue';
81
119
  export type { PublicTunnel } from './models/PublicTunnel';
82
120
  export type { QueryExecutionError } from './models/QueryExecutionError';
83
121
  export type { QueryExecutionResponse } from './models/QueryExecutionResponse';
122
+ export type { QueryExportEmailResponse } from './models/QueryExportEmailResponse';
123
+ export type { QueryExportLinkResponse } from './models/QueryExportLinkResponse';
84
124
  export type { QueryExportResponse } from './models/QueryExportResponse';
85
125
  export type { QueryPreviewRequest } from './models/QueryPreviewRequest';
86
126
  export type { QueryTimeoutError } from './models/QueryTimeoutError';
@@ -97,6 +137,7 @@ export type { SourceProperty } from './models/SourceProperty';
97
137
  export type { SSHAuthentication } from './models/SSHAuthentication';
98
138
  export type { SSHTunnel } from './models/SSHTunnel';
99
139
  export type { StringContains } from './models/StringContains';
140
+ export type { StringContains1 } from './models/StringContains1';
100
141
  export type { StringPropertyValue } from './models/StringPropertyValue';
101
142
  export type { TablePreviewRequest } from './models/TablePreviewRequest';
102
143
  export type { TableView } from './models/TableView';
@@ -110,15 +151,22 @@ export type { TestConnectionRequest } from './models/TestConnectionRequest';
110
151
  export type { TestConnectionResponse } from './models/TestConnectionResponse';
111
152
  export type { TtlEviction } from './models/TtlEviction';
112
153
  export type { Tunnel } from './models/Tunnel';
154
+ export { UnitOfMeasurement } from './models/UnitOfMeasurement';
155
+ export type { UpdateViewChange } from './models/UpdateViewChange';
156
+ export type { UpdateViewDiff } from './models/UpdateViewDiff';
113
157
  export type { UUID } from './models/UUID';
114
158
  export type { ValueGrouping } from './models/ValueGrouping';
115
159
  export type { VendorPrivateKeyAuthentication } from './models/VendorPrivateKeyAuthentication';
116
160
  export type { View } from './models/View';
161
+ export type { ViewChange } from './models/ViewChange';
162
+ export type { ViewDiff } from './models/ViewDiff';
117
163
  export type { ViewExportRequest } from './models/ViewExportRequest';
118
164
  export type { ViewRequest } from './models/ViewRequest';
119
165
  export type { ViewResponse } from './models/ViewResponse';
120
166
  export type { ViewRunRequest } from './models/ViewRunRequest';
121
167
 
168
+ export { BranchResourceService } from './services/BranchResourceService';
169
+ export { CommitResourceService } from './services/CommitResourceService';
122
170
  export { DataSourceResourceService } from './services/DataSourceResourceService';
123
171
  export { HealthResourceService } from './services/HealthResourceService';
124
172
  export { ListViewsResourceService } from './services/ListViewsResourceService';
package/models/And1.ts ADDED
@@ -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 And1 = {
8
+ '@type': 'and';
9
+ values: Array<Having>;
10
+ };
11
+
@@ -0,0 +1,9 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type Branch = {
6
+ name: string;
7
+ headId: string;
8
+ };
9
+
@@ -0,0 +1,12 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Branch } from './Branch';
6
+ import type { BranchResponseMetadata } from './BranchResponseMetadata';
7
+
8
+ export type BranchResponse = {
9
+ branch: Branch;
10
+ meta: BranchResponseMetadata | null;
11
+ };
12
+
@@ -0,0 +1,8 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type BranchResponseMetadata = {
6
+ originCommitId: string;
7
+ };
8
+
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { DateTimeColumnFormat } from './DateTimeColumnFormat';
6
+ import type { DecimalColumnFormat } from './DecimalColumnFormat';
7
+ import type { DurationColumnFormat } from './DurationColumnFormat';
8
+
9
+ export type ColumnFormat = (DateTimeColumnFormat | DecimalColumnFormat | DurationColumnFormat);
10
+
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type Commit = {
6
+ readonly id?: string;
7
+ commitMessage: string;
8
+ readonly parentId: string | null;
9
+ };
10
+
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { Commit } from './Commit';
6
+
7
+ export type CommitResponse = {
8
+ commit: Commit;
9
+ };
10
+
@@ -4,6 +4,7 @@
4
4
 
5
5
  import type { Filter } from './Filter';
6
6
  import type { Grouping } from './Grouping';
7
+ import type { Having } from './Having';
7
8
  import type { Property } from './Property';
8
9
  import type { Sort } from './Sort';
9
10
 
@@ -12,6 +13,7 @@ export type Computation = {
12
13
  properties: Array<Property>;
13
14
  groupings: Array<Grouping>;
14
15
  sorts: Array<Sort>;
16
+ having: Having | null;
15
17
  includeRollup?: boolean;
16
18
  };
17
19
 
@@ -10,6 +10,7 @@ export type ComputedView = {
10
10
  description: string | null;
11
11
  columnDefinitions: Array<PropertySchema>;
12
12
  readonly id?: string | null;
13
+ readonly versionId?: string | null;
13
14
  readonly namespaceId?: string | null;
14
15
  '@type': 'computed-view';
15
16
  query: string;
@@ -0,0 +1,13 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { UUID } from './UUID';
6
+ import type { ViewChange } from './ViewChange';
7
+
8
+ export type CreateCommitRequest = {
9
+ commitMessage: string;
10
+ parentCommitId: UUID;
11
+ changes: Array<ViewChange>;
12
+ };
13
+
@@ -0,0 +1,11 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { ViewChange } from './ViewChange';
6
+
7
+ export type CreateCommitResponse = {
8
+ commitId: string;
9
+ changes: Array<ViewChange>;
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 CreateViewChange = {
8
+ '@type': 'create';
9
+ requestId: string;
10
+ view: View;
11
+ };
12
+
@@ -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 CreateViewDiff = {
8
+ '@type': 'create';
9
+ view: View;
10
+ };
11
+
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type DateTimeColumnFormat = {
6
+ '@type': 'datetime';
7
+ dateTimeFormatPattern: string | null;
8
+ locale: string | null;
9
+ };
10
+
@@ -0,0 +1,14 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { UnitOfMeasurement } from './UnitOfMeasurement';
6
+
7
+ export type DecimalColumnFormat = {
8
+ '@type': 'decimal';
9
+ decimalFormat: string | null;
10
+ locale: string | null;
11
+ unitOfMeasurement: UnitOfMeasurement;
12
+ multiplier: number | null;
13
+ };
14
+
@@ -0,0 +1,9 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type DeleteViewChange = {
6
+ '@type': 'delete';
7
+ id: string;
8
+ };
9
+
@@ -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 DeleteViewDiff = {
8
+ '@type': 'update';
9
+ originalView: View;
10
+ };
11
+
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { ViewDiff } from './ViewDiff';
6
+
7
+ export type DiffBranchResponse = {
8
+ diff: Array<ViewDiff>;
9
+ };
10
+
@@ -0,0 +1,9 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type DurationColumnFormat = {
6
+ '@type': 'duration';
7
+ durationPattern: string;
8
+ };
9
+
@@ -0,0 +1,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type EmailConfiguration = {
6
+ recipientEmails: Array<string>;
7
+ subject: string | null;
8
+ body: string | null;
9
+ };
10
+
@@ -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 Equal1 = {
9
+ '@type': 'eq';
10
+ property: Property;
11
+ value: PropertyValue;
12
+ };
13
+
@@ -2,8 +2,11 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
+ import type { ColumnFormat } from './ColumnFormat';
6
+
5
7
  export type ExportColumnOptions = {
6
8
  targetPropertyId: string;
7
9
  displayName: string | null;
10
+ columnFormat: ColumnFormat | null;
8
11
  };
9
12
 
@@ -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 GreaterThan1 = {
9
+ '@type': 'gt';
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 GreaterThanOrEqual1 = {
9
+ '@type': 'gte';
10
+ property: Property;
11
+ value: PropertyValue;
12
+ };
13
+
@@ -0,0 +1,25 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import type { And1 } from './And1';
6
+ import type { Equal1 } from './Equal1';
7
+ import type { GreaterThan1 } from './GreaterThan1';
8
+ import type { GreaterThanOrEqual1 } from './GreaterThanOrEqual1';
9
+ import type { In1 } from './In1';
10
+ import type { LateBoundEqual1 } from './LateBoundEqual1';
11
+ import type { LateBoundGreaterThan1 } from './LateBoundGreaterThan1';
12
+ import type { LateBoundGreaterThanOrEqual1 } from './LateBoundGreaterThanOrEqual1';
13
+ import type { LateBoundIn1 } from './LateBoundIn1';
14
+ import type { LateBoundLessThan1 } from './LateBoundLessThan1';
15
+ import type { LateBoundLessThanOrEqual1 } from './LateBoundLessThanOrEqual1';
16
+ import type { LateBoundStringContains1 } from './LateBoundStringContains1';
17
+ import type { LessThan1 } from './LessThan1';
18
+ import type { LessThanOrEqual1 } from './LessThanOrEqual1';
19
+ import type { Not1 } from './Not1';
20
+ import type { Null1 } from './Null1';
21
+ import type { Or1 } from './Or1';
22
+ import type { StringContains1 } from './StringContains1';
23
+
24
+ export type Having = (And1 | Or1 | Not1 | Equal1 | LateBoundEqual1 | In1 | LateBoundIn1 | LessThan1 | LessThanOrEqual1 | GreaterThan1 | GreaterThanOrEqual1 | LateBoundLessThan1 | LateBoundLessThanOrEqual1 | LateBoundGreaterThan1 | LateBoundGreaterThanOrEqual1 | Null1 | StringContains1 | LateBoundStringContains1);
25
+
package/models/In1.ts ADDED
@@ -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 In1 = {
9
+ '@type': 'in';
10
+ property: Property;
11
+ values: Array<PropertyValue>;
12
+ };
13
+
@@ -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 LateBoundEqual1 = {
8
+ '@type': 'eq-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 LateBoundGreaterThan1 = {
8
+ '@type': 'gt-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 LateBoundGreaterThanOrEqual1 = {
8
+ '@type': 'gte-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 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
+
package/models/Not1.ts ADDED
@@ -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
+
package/models/Or1.ts ADDED
@@ -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
+
@@ -0,0 +1,8 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type QueryExportEmailResponse = {
6
+ '@type': 'email';
7
+ };
8
+
@@ -0,0 +1,9 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type QueryExportLinkResponse = {
6
+ '@type': 'link';
7
+ url: string;
8
+ };
9
+
@@ -2,7 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- export type QueryExportResponse = {
6
- url: string;
7
- };
5
+ import type { QueryExportEmailResponse } from './QueryExportEmailResponse';
6
+ import type { QueryExportLinkResponse } from './QueryExportLinkResponse';
7
+
8
+ export type QueryExportResponse = (QueryExportEmailResponse | QueryExportLinkResponse);
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,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
+
package/models/View.ts CHANGED
@@ -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
  };
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.4.11",
5
+ "version": "2.4.13-jordan-commit-branches.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/trust-kaz/fido"
@@ -0,0 +1,131 @@
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 { ListViewsResponse } from '../models/ListViewsResponse';
8
+ import type { MergeBranchRequest } from '../models/MergeBranchRequest';
9
+ import type { UUID } from '../models/UUID';
10
+ import type { ViewRequest } from '../models/ViewRequest';
11
+
12
+ import type { CancelablePromise } from '../core/CancelablePromise';
13
+ import { OpenAPI } from '../core/OpenAPI';
14
+ import { request as __request } from '../core/request';
15
+
16
+ export class BranchResourceService {
17
+
18
+ /**
19
+ * Lists all branches
20
+ * @returns ListBranchResponse The branches
21
+ * @throws ApiError
22
+ */
23
+ public static listBranches(): CancelablePromise<ListBranchResponse> {
24
+ return __request(OpenAPI, {
25
+ method: 'GET',
26
+ url: '/v1/branches',
27
+ });
28
+ }
29
+
30
+ /**
31
+ * Creates a new branch
32
+ * @param requestBody Branch to create
33
+ * @returns BranchResponse The created branch
34
+ * @throws ApiError
35
+ */
36
+ public static createBranch(
37
+ requestBody: ViewRequest,
38
+ ): CancelablePromise<BranchResponse> {
39
+ return __request(OpenAPI, {
40
+ method: 'POST',
41
+ url: '/v1/branches',
42
+ body: requestBody,
43
+ mediaType: 'application/json',
44
+ });
45
+ }
46
+
47
+ /**
48
+ * Returns the diff between the provided source branch and the provided target branch
49
+ * @param from
50
+ * @param to
51
+ * @returns DiffBranchResponse The diff between the two branches
52
+ * @throws ApiError
53
+ */
54
+ public static diffBranch(
55
+ from?: UUID,
56
+ to?: UUID,
57
+ ): CancelablePromise<DiffBranchResponse> {
58
+ return __request(OpenAPI, {
59
+ method: 'GET',
60
+ url: '/v1/branches/diff',
61
+ query: {
62
+ 'from': from,
63
+ 'to': to,
64
+ },
65
+ });
66
+ }
67
+
68
+ /**
69
+ * Gets the branch with the requested id
70
+ * @param id
71
+ * @param includeMeta
72
+ * @returns BranchResponse The requested branch
73
+ * @throws ApiError
74
+ */
75
+ public static getBranch(
76
+ id: UUID,
77
+ includeMeta: boolean = false,
78
+ ): CancelablePromise<BranchResponse> {
79
+ return __request(OpenAPI, {
80
+ method: 'GET',
81
+ url: '/v1/branches/{id}',
82
+ path: {
83
+ 'id': id,
84
+ },
85
+ query: {
86
+ 'includeMeta': includeMeta,
87
+ },
88
+ });
89
+ }
90
+
91
+ /**
92
+ * Lists the views at the head of the requested branch
93
+ * @param id
94
+ * @returns ListViewsResponse The views on the requested branch
95
+ * @throws ApiError
96
+ */
97
+ public static listBranchViews(
98
+ id: UUID,
99
+ ): CancelablePromise<ListViewsResponse> {
100
+ return __request(OpenAPI, {
101
+ method: 'GET',
102
+ url: '/v1/branches/{id}/views',
103
+ path: {
104
+ 'id': id,
105
+ },
106
+ });
107
+ }
108
+
109
+ /**
110
+ * Merge the provided source branch into the provided target branch
111
+ * @param sourceBranchId
112
+ * @param requestBody Options for merge
113
+ * @returns BranchResponse The target branch with the new head
114
+ * @throws ApiError
115
+ */
116
+ public static mergeBranch(
117
+ sourceBranchId: string,
118
+ requestBody: MergeBranchRequest,
119
+ ): CancelablePromise<BranchResponse> {
120
+ return __request(OpenAPI, {
121
+ method: 'POST',
122
+ url: '/v1/branches/{sourceBranchId}/merge',
123
+ path: {
124
+ 'sourceBranchId': sourceBranchId,
125
+ },
126
+ body: requestBody,
127
+ mediaType: 'application/json',
128
+ });
129
+ }
130
+
131
+ }
@@ -0,0 +1,35 @@
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
+
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 CommitResourceService {
12
+
13
+ /**
14
+ * Creates a new commit on the provided branch
15
+ * @param branchId
16
+ * @param requestBody Branch to create
17
+ * @returns CreateCommitResponse The created commit
18
+ * @throws ApiError
19
+ */
20
+ public static createCommit(
21
+ branchId: string,
22
+ requestBody: CreateCommitRequest,
23
+ ): CancelablePromise<CreateCommitResponse> {
24
+ return __request(OpenAPI, {
25
+ method: 'POST',
26
+ url: '/v1/branches/{branchId}/commits',
27
+ path: {
28
+ 'branchId': branchId,
29
+ },
30
+ body: requestBody,
31
+ mediaType: 'application/json',
32
+ });
33
+ }
34
+
35
+ }
@@ -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
@@ -72,6 +72,75 @@ export class QueryResourceService {
72
72
  });
73
73
  }
74
74
 
75
+ /**
76
+ * Runs the requested versioned view against the provided data source
77
+ * @param commitId
78
+ * @param dataSourceId
79
+ * @param namespaceId
80
+ * @param viewId
81
+ * @param requestBody Request options for the export
82
+ * @returns QueryExportResponse A DataPage of the provided query
83
+ * @throws ApiError
84
+ */
85
+ public static exportVersionedView(
86
+ commitId: UUID,
87
+ dataSourceId: UUID,
88
+ namespaceId: UUID,
89
+ viewId: UUID,
90
+ requestBody: ViewExportRequest,
91
+ ): CancelablePromise<QueryExportResponse> {
92
+ return __request(OpenAPI, {
93
+ method: 'POST',
94
+ url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/commits/{commitId}/export',
95
+ path: {
96
+ 'commitId': commitId,
97
+ 'dataSourceId': dataSourceId,
98
+ 'namespaceId': namespaceId,
99
+ 'viewId': viewId,
100
+ },
101
+ body: requestBody,
102
+ mediaType: 'application/json',
103
+ errors: {
104
+ 400: `An error related to the user request`,
105
+ },
106
+ });
107
+ }
108
+
109
+ /**
110
+ * Runs the requested versioned view against the provided data source
111
+ * @param commitId
112
+ * @param dataSourceId
113
+ * @param namespaceId
114
+ * @param viewId
115
+ * @param requestBody Request options for the query
116
+ * @returns QueryExecutionResponse A DataPage of the provided query
117
+ * @throws ApiError
118
+ */
119
+ public static runVersionedView(
120
+ commitId: string,
121
+ dataSourceId: UUID,
122
+ namespaceId: UUID,
123
+ viewId: UUID,
124
+ requestBody: ViewRunRequest,
125
+ ): CancelablePromise<QueryExecutionResponse> {
126
+ return __request(OpenAPI, {
127
+ method: 'POST',
128
+ url: '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/views/{viewId}/commits/{commitId}/run',
129
+ path: {
130
+ 'commitId': commitId,
131
+ 'dataSourceId': dataSourceId,
132
+ 'namespaceId': namespaceId,
133
+ 'viewId': viewId,
134
+ },
135
+ body: requestBody,
136
+ mediaType: 'application/json',
137
+ errors: {
138
+ 400: `An error related to the user request`,
139
+ 503: `An error related to the execution of the request`,
140
+ },
141
+ });
142
+ }
143
+
75
144
  /**
76
145
  * Runs the requested view against the provided data source
77
146
  * @param dataSourceId
@@ -12,6 +12,7 @@ import { request as __request } from '../core/request';
12
12
  export class ViewResourceService {
13
13
 
14
14
  /**
15
+ * @deprecated
15
16
  * Creates a view
16
17
  * @param namespaceId
17
18
  * @param requestBody View object to create
@@ -55,6 +56,7 @@ export class ViewResourceService {
55
56
  }
56
57
 
57
58
  /**
59
+ * @deprecated
58
60
  * Updates a view's metadata
59
61
  * @param id
60
62
  * @param namespaceId
@@ -80,6 +82,7 @@ export class ViewResourceService {
80
82
  }
81
83
 
82
84
  /**
85
+ * @deprecated
83
86
  * Deletes a view
84
87
  * @param id
85
88
  * @param namespaceId
@@ -100,4 +103,28 @@ export class ViewResourceService {
100
103
  });
101
104
  }
102
105
 
106
+ /**
107
+ * Gets a view with the specified version
108
+ * @param id
109
+ * @param namespaceId
110
+ * @param versionId
111
+ * @returns ViewResponse The requested view
112
+ * @throws ApiError
113
+ */
114
+ public static getVersionedView(
115
+ id: UUID,
116
+ namespaceId: UUID,
117
+ versionId: UUID,
118
+ ): CancelablePromise<ViewResponse> {
119
+ return __request(OpenAPI, {
120
+ method: 'GET',
121
+ url: '/v1/namespaces/{namespaceId}/views/{id}/versions/{versionId}',
122
+ path: {
123
+ 'id': id,
124
+ 'namespaceId': namespaceId,
125
+ 'versionId': versionId,
126
+ },
127
+ });
128
+ }
129
+
103
130
  }