@explo-tech/fido-api 2.4.12 → 2.5.0-jordan-branch-crud.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 (62) hide show
  1. package/index.ts +49 -0
  2. package/models/And1.ts +11 -0
  3. package/models/Branch.ts +10 -0
  4. package/models/BranchRequest.ts +10 -0
  5. package/models/BranchResponse.ts +12 -0
  6. package/models/BranchResponseMetadata.ts +8 -0
  7. package/models/ColumnFormat.ts +10 -0
  8. package/models/Commit.ts +10 -0
  9. package/models/CommitResponse.ts +10 -0
  10. package/models/Computation.ts +2 -0
  11. package/models/ComputedView.ts +1 -0
  12. package/models/CreateCommitRequest.ts +13 -0
  13. package/models/CreateCommitResponse.ts +11 -0
  14. package/models/CreateViewChange.ts +12 -0
  15. package/models/CreateViewDiff.ts +11 -0
  16. package/models/DateTimeColumnFormat.ts +10 -0
  17. package/models/DecimalColumnFormat.ts +14 -0
  18. package/models/DeleteViewChange.ts +9 -0
  19. package/models/DeleteViewDiff.ts +11 -0
  20. package/models/DiffBranchResponse.ts +10 -0
  21. package/models/DurationColumnFormat.ts +9 -0
  22. package/models/EmailConfiguration.ts +10 -0
  23. package/models/Equal1.ts +13 -0
  24. package/models/ExportColumnOptions.ts +3 -0
  25. package/models/GreaterThan1.ts +13 -0
  26. package/models/GreaterThanOrEqual1.ts +13 -0
  27. package/models/Having.ts +25 -0
  28. package/models/In1.ts +13 -0
  29. package/models/LateBoundEqual1.ts +12 -0
  30. package/models/LateBoundGreaterThan1.ts +12 -0
  31. package/models/LateBoundGreaterThanOrEqual1.ts +12 -0
  32. package/models/LateBoundIn1.ts +12 -0
  33. package/models/LateBoundLessThan1.ts +12 -0
  34. package/models/LateBoundLessThanOrEqual1.ts +12 -0
  35. package/models/LateBoundStringContains1.ts +13 -0
  36. package/models/LessThan1.ts +13 -0
  37. package/models/LessThanOrEqual1.ts +13 -0
  38. package/models/ListBranchResponse.ts +10 -0
  39. package/models/ListVersionedViewsRequest.ts +8 -0
  40. package/models/MergeBranchRequest.ts +9 -0
  41. package/models/Not1.ts +11 -0
  42. package/models/Null1.ts +11 -0
  43. package/models/Or1.ts +11 -0
  44. package/models/QueryExportEmailResponse.ts +8 -0
  45. package/models/QueryExportLinkResponse.ts +9 -0
  46. package/models/QueryExportResponse.ts +4 -3
  47. package/models/StringContains1.ts +14 -0
  48. package/models/TableView.ts +1 -0
  49. package/models/UnitOfMeasurement.ts +7 -0
  50. package/models/UpdateViewChange.ts +11 -0
  51. package/models/UpdateViewDiff.ts +12 -0
  52. package/models/View.ts +1 -0
  53. package/models/ViewChange.ts +10 -0
  54. package/models/ViewDiff.ts +10 -0
  55. package/models/ViewExportRequest.ts +5 -0
  56. package/models/ViewRequest.ts +1 -0
  57. package/package.json +1 -1
  58. package/services/BranchResourceService.ts +131 -0
  59. package/services/CommitResourceService.ts +36 -0
  60. package/services/ListViewsResourceService.ts +22 -0
  61. package/services/QueryResourceService.ts +69 -0
  62. package/services/ViewResourceService.ts +27 -0
package/index.ts CHANGED
@@ -10,15 +10,27 @@ 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 { BranchRequest } from './models/BranchRequest';
19
+ export type { BranchResponse } from './models/BranchResponse';
20
+ export type { BranchResponseMetadata } from './models/BranchResponseMetadata';
16
21
  export type { CacheTelemetry } from './models/CacheTelemetry';
17
22
  export { CalendarInterval } from './models/CalendarInterval';
18
23
  export type { CalendarIntervalGrouping } from './models/CalendarIntervalGrouping';
19
24
  export type { ClientError } from './models/ClientError';
25
+ export type { ColumnFormat } from './models/ColumnFormat';
26
+ export type { Commit } from './models/Commit';
27
+ export type { CommitResponse } from './models/CommitResponse';
20
28
  export type { Computation } from './models/Computation';
21
29
  export type { ComputedView } from './models/ComputedView';
30
+ export type { CreateCommitRequest } from './models/CreateCommitRequest';
31
+ export type { CreateCommitResponse } from './models/CreateCommitResponse';
32
+ export type { CreateViewChange } from './models/CreateViewChange';
33
+ export type { CreateViewDiff } from './models/CreateViewDiff';
22
34
  export type { DataPage } from './models/DataPage';
23
35
  export type { DataRecord } from './models/DataRecord';
24
36
  export type { DataRequestParameters } from './models/DataRequestParameters';
@@ -32,11 +44,19 @@ export type { DataSourceResponse } from './models/DataSourceResponse';
32
44
  export { DatePart } from './models/DatePart';
33
45
  export type { DatePartGrouping } from './models/DatePartGrouping';
34
46
  export type { DatePropertyValue } from './models/DatePropertyValue';
47
+ export type { DateTimeColumnFormat } from './models/DateTimeColumnFormat';
35
48
  export type { DateTimePropertyValue } from './models/DateTimePropertyValue';
49
+ export type { DecimalColumnFormat } from './models/DecimalColumnFormat';
36
50
  export type { DecimalIntervalGrouping } from './models/DecimalIntervalGrouping';
37
51
  export type { DecimalPropertyValue } from './models/DecimalPropertyValue';
52
+ export type { DeleteViewChange } from './models/DeleteViewChange';
53
+ export type { DeleteViewDiff } from './models/DeleteViewDiff';
54
+ export type { DiffBranchResponse } from './models/DiffBranchResponse';
38
55
  export type { DoublePropertyValue } from './models/DoublePropertyValue';
56
+ export type { DurationColumnFormat } from './models/DurationColumnFormat';
57
+ export type { EmailConfiguration } from './models/EmailConfiguration';
39
58
  export type { Equal } from './models/Equal';
59
+ export type { Equal1 } from './models/Equal1';
40
60
  export type { EvictionPolicy } from './models/EvictionPolicy';
41
61
  export type { ExportColumnOptions } from './models/ExportColumnOptions';
42
62
  export { ExportFormat } from './models/ExportFormat';
@@ -44,24 +64,40 @@ export type { ExportTargetConfiguration } from './models/ExportTargetConfigurati
44
64
  export type { Filter } from './models/Filter';
45
65
  export type { FormulaProperty } from './models/FormulaProperty';
46
66
  export type { GreaterThan } from './models/GreaterThan';
67
+ export type { GreaterThan1 } from './models/GreaterThan1';
47
68
  export type { GreaterThanOrEqual } from './models/GreaterThanOrEqual';
69
+ export type { GreaterThanOrEqual1 } from './models/GreaterThanOrEqual1';
48
70
  export type { Grouping } from './models/Grouping';
71
+ export type { Having } from './models/Having';
49
72
  export type { In } from './models/In';
73
+ export type { In1 } from './models/In1';
50
74
  export type { IntegerIntervalGrouping } from './models/IntegerIntervalGrouping';
51
75
  export type { IntegerPropertyValue } from './models/IntegerPropertyValue';
52
76
  export type { JdbcAuthentication } from './models/JdbcAuthentication';
53
77
  export type { LateBoundEqual } from './models/LateBoundEqual';
78
+ export type { LateBoundEqual1 } from './models/LateBoundEqual1';
54
79
  export type { LateBoundGreaterThan } from './models/LateBoundGreaterThan';
80
+ export type { LateBoundGreaterThan1 } from './models/LateBoundGreaterThan1';
55
81
  export type { LateBoundGreaterThanOrEqual } from './models/LateBoundGreaterThanOrEqual';
82
+ export type { LateBoundGreaterThanOrEqual1 } from './models/LateBoundGreaterThanOrEqual1';
56
83
  export type { LateBoundIn } from './models/LateBoundIn';
84
+ export type { LateBoundIn1 } from './models/LateBoundIn1';
57
85
  export type { LateBoundLessThan } from './models/LateBoundLessThan';
86
+ export type { LateBoundLessThan1 } from './models/LateBoundLessThan1';
58
87
  export type { LateBoundLessThanOrEqual } from './models/LateBoundLessThanOrEqual';
88
+ export type { LateBoundLessThanOrEqual1 } from './models/LateBoundLessThanOrEqual1';
59
89
  export type { LateBoundStringContains } from './models/LateBoundStringContains';
90
+ export type { LateBoundStringContains1 } from './models/LateBoundStringContains1';
60
91
  export type { LessThan } from './models/LessThan';
92
+ export type { LessThan1 } from './models/LessThan1';
61
93
  export type { LessThanOrEqual } from './models/LessThanOrEqual';
94
+ export type { LessThanOrEqual1 } from './models/LessThanOrEqual1';
95
+ export type { ListBranchResponse } from './models/ListBranchResponse';
62
96
  export type { ListNamespacesResponse } from './models/ListNamespacesResponse';
97
+ export type { ListVersionedViewsRequest } from './models/ListVersionedViewsRequest';
63
98
  export type { ListViewsRequest } from './models/ListViewsRequest';
64
99
  export type { ListViewsResponse } from './models/ListViewsResponse';
100
+ export type { MergeBranchRequest } from './models/MergeBranchRequest';
65
101
  export type { MSS } from './models/MSS';
66
102
  export type { MySql } from './models/MySql';
67
103
  export type { Namespace } from './models/Namespace';
@@ -69,8 +105,11 @@ export type { NamespaceRequest } from './models/NamespaceRequest';
69
105
  export type { NamespaceResponse } from './models/NamespaceResponse';
70
106
  export type { NamespaceResponseMetadata } from './models/NamespaceResponseMetadata';
71
107
  export type { Not } from './models/Not';
108
+ export type { Not1 } from './models/Not1';
72
109
  export type { Null } from './models/Null';
110
+ export type { Null1 } from './models/Null1';
73
111
  export type { Or } from './models/Or';
112
+ export type { Or1 } from './models/Or1';
74
113
  export type { PagingConfiguration } from './models/PagingConfiguration';
75
114
  export type { PasswordAuthentication } from './models/PasswordAuthentication';
76
115
  export type { Postgres } from './models/Postgres';
@@ -81,6 +120,8 @@ export type { PropertyValue } from './models/PropertyValue';
81
120
  export type { PublicTunnel } from './models/PublicTunnel';
82
121
  export type { QueryExecutionError } from './models/QueryExecutionError';
83
122
  export type { QueryExecutionResponse } from './models/QueryExecutionResponse';
123
+ export type { QueryExportEmailResponse } from './models/QueryExportEmailResponse';
124
+ export type { QueryExportLinkResponse } from './models/QueryExportLinkResponse';
84
125
  export type { QueryExportResponse } from './models/QueryExportResponse';
85
126
  export type { QueryPreviewRequest } from './models/QueryPreviewRequest';
86
127
  export type { QueryTimeoutError } from './models/QueryTimeoutError';
@@ -97,6 +138,7 @@ export type { SourceProperty } from './models/SourceProperty';
97
138
  export type { SSHAuthentication } from './models/SSHAuthentication';
98
139
  export type { SSHTunnel } from './models/SSHTunnel';
99
140
  export type { StringContains } from './models/StringContains';
141
+ export type { StringContains1 } from './models/StringContains1';
100
142
  export type { StringPropertyValue } from './models/StringPropertyValue';
101
143
  export type { TablePreviewRequest } from './models/TablePreviewRequest';
102
144
  export type { TableView } from './models/TableView';
@@ -110,15 +152,22 @@ export type { TestConnectionRequest } from './models/TestConnectionRequest';
110
152
  export type { TestConnectionResponse } from './models/TestConnectionResponse';
111
153
  export type { TtlEviction } from './models/TtlEviction';
112
154
  export type { Tunnel } from './models/Tunnel';
155
+ export { UnitOfMeasurement } from './models/UnitOfMeasurement';
156
+ export type { UpdateViewChange } from './models/UpdateViewChange';
157
+ export type { UpdateViewDiff } from './models/UpdateViewDiff';
113
158
  export type { UUID } from './models/UUID';
114
159
  export type { ValueGrouping } from './models/ValueGrouping';
115
160
  export type { VendorPrivateKeyAuthentication } from './models/VendorPrivateKeyAuthentication';
116
161
  export type { View } from './models/View';
162
+ export type { ViewChange } from './models/ViewChange';
163
+ export type { ViewDiff } from './models/ViewDiff';
117
164
  export type { ViewExportRequest } from './models/ViewExportRequest';
118
165
  export type { ViewRequest } from './models/ViewRequest';
119
166
  export type { ViewResponse } from './models/ViewResponse';
120
167
  export type { ViewRunRequest } from './models/ViewRunRequest';
121
168
 
169
+ export { BranchResourceService } from './services/BranchResourceService';
170
+ export { CommitResourceService } from './services/CommitResourceService';
122
171
  export { DataSourceResourceService } from './services/DataSourceResourceService';
123
172
  export { HealthResourceService } from './services/HealthResourceService';
124
173
  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,10 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ export type Branch = {
6
+ readonly id?: string;
7
+ name: string;
8
+ headId: string;
9
+ };
10
+
@@ -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
+
@@ -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.12",
5
+ "version": "2.5.0-jordan-branch-crud.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 { BranchRequest } from '../models/BranchRequest';
5
+ import type { BranchResponse } from '../models/BranchResponse';
6
+ import type { DiffBranchResponse } from '../models/DiffBranchResponse';
7
+ import type { ListBranchResponse } from '../models/ListBranchResponse';
8
+ import type { ListViewsResponse } from '../models/ListViewsResponse';
9
+ import type { MergeBranchRequest } from '../models/MergeBranchRequest';
10
+ import type { UUID } from '../models/UUID';
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: BranchRequest,
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,36 @@
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 { UUID } from '../models/UUID';
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 Commit to create
18
+ * @returns CreateCommitResponse The created commit
19
+ * @throws ApiError
20
+ */
21
+ public static createCommit(
22
+ branchId: UUID,
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
+ }
@@ -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
  }