@explo-tech/fido-api 2.7.13 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +12 -0
- package/models/Branch.ts +9 -0
- package/models/BranchResponse.ts +12 -0
- package/models/BranchResponseMetadata.ts +11 -0
- package/models/ComputedView.ts +1 -0
- package/models/CreateViewChange.ts +11 -0
- package/models/DeleteViewChange.ts +9 -0
- package/models/ListBranchResponse.ts +10 -0
- package/models/ListVersionedViewsRequest.ts +8 -0
- package/models/MergeBranchRequest.ts +9 -0
- package/models/TableView.ts +1 -0
- package/models/UpdateViewChange.ts +11 -0
- package/models/View.ts +1 -0
- package/models/ViewChange.ts +10 -0
- package/models/ViewRequest.ts +1 -0
- package/package.json +1 -1
- package/services/BranchResourceService.ts +90 -0
- package/services/CommitResourceService.ts +35 -0
- package/services/ListViewsResourceService.ts +22 -0
- package/services/QueryResourceService.ts +69 -0
- package/services/ViewResourceService.ts +27 -0
package/index.ts
CHANGED
|
@@ -14,12 +14,16 @@ export type { And1 } from './models/And1';
|
|
|
14
14
|
export type { BigQuery } from './models/BigQuery';
|
|
15
15
|
export type { BigQueryAuthentication } from './models/BigQueryAuthentication';
|
|
16
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';
|
|
17
20
|
export type { CacheTelemetry } from './models/CacheTelemetry';
|
|
18
21
|
export { CalendarInterval } from './models/CalendarInterval';
|
|
19
22
|
export type { CalendarIntervalGrouping } from './models/CalendarIntervalGrouping';
|
|
20
23
|
export type { ClientError } from './models/ClientError';
|
|
21
24
|
export type { Computation } from './models/Computation';
|
|
22
25
|
export type { ComputedView } from './models/ComputedView';
|
|
26
|
+
export type { CreateViewChange } from './models/CreateViewChange';
|
|
23
27
|
export type { DataPage } from './models/DataPage';
|
|
24
28
|
export type { DataRecord } from './models/DataRecord';
|
|
25
29
|
export type { DataRequestParameters } from './models/DataRequestParameters';
|
|
@@ -36,6 +40,7 @@ export type { DatePropertyValue } from './models/DatePropertyValue';
|
|
|
36
40
|
export type { DateTimePropertyValue } from './models/DateTimePropertyValue';
|
|
37
41
|
export type { DecimalIntervalGrouping } from './models/DecimalIntervalGrouping';
|
|
38
42
|
export type { DecimalPropertyValue } from './models/DecimalPropertyValue';
|
|
43
|
+
export type { DeleteViewChange } from './models/DeleteViewChange';
|
|
39
44
|
export type { DoublePropertyValue } from './models/DoublePropertyValue';
|
|
40
45
|
export type { EmailConfiguration } from './models/EmailConfiguration';
|
|
41
46
|
export type { Equal } from './models/Equal';
|
|
@@ -75,9 +80,12 @@ export type { LessThan } from './models/LessThan';
|
|
|
75
80
|
export type { LessThan1 } from './models/LessThan1';
|
|
76
81
|
export type { LessThanOrEqual } from './models/LessThanOrEqual';
|
|
77
82
|
export type { LessThanOrEqual1 } from './models/LessThanOrEqual1';
|
|
83
|
+
export type { ListBranchResponse } from './models/ListBranchResponse';
|
|
78
84
|
export type { ListNamespacesResponse } from './models/ListNamespacesResponse';
|
|
85
|
+
export type { ListVersionedViewsRequest } from './models/ListVersionedViewsRequest';
|
|
79
86
|
export type { ListViewsRequest } from './models/ListViewsRequest';
|
|
80
87
|
export type { ListViewsResponse } from './models/ListViewsResponse';
|
|
88
|
+
export type { MergeBranchRequest } from './models/MergeBranchRequest';
|
|
81
89
|
export type { MSS } from './models/MSS';
|
|
82
90
|
export type { MySql } from './models/MySql';
|
|
83
91
|
export type { Namespace } from './models/Namespace';
|
|
@@ -132,15 +140,19 @@ export type { TestConnectionRequest } from './models/TestConnectionRequest';
|
|
|
132
140
|
export type { TestConnectionResponse } from './models/TestConnectionResponse';
|
|
133
141
|
export type { TtlEviction } from './models/TtlEviction';
|
|
134
142
|
export type { Tunnel } from './models/Tunnel';
|
|
143
|
+
export type { UpdateViewChange } from './models/UpdateViewChange';
|
|
135
144
|
export type { UUID } from './models/UUID';
|
|
136
145
|
export type { ValueGrouping } from './models/ValueGrouping';
|
|
137
146
|
export type { VendorPrivateKeyAuthentication } from './models/VendorPrivateKeyAuthentication';
|
|
138
147
|
export type { View } from './models/View';
|
|
148
|
+
export type { ViewChange } from './models/ViewChange';
|
|
139
149
|
export type { ViewExportRequest } from './models/ViewExportRequest';
|
|
140
150
|
export type { ViewRequest } from './models/ViewRequest';
|
|
141
151
|
export type { ViewResponse } from './models/ViewResponse';
|
|
142
152
|
export type { ViewRunRequest } from './models/ViewRunRequest';
|
|
143
153
|
|
|
154
|
+
export { BranchResourceService } from './services/BranchResourceService';
|
|
155
|
+
export { CommitResourceService } from './services/CommitResourceService';
|
|
144
156
|
export { DataSourceResourceService } from './services/DataSourceResourceService';
|
|
145
157
|
export { HealthResourceService } from './services/HealthResourceService';
|
|
146
158
|
export { ListViewsResourceService } from './services/ListViewsResourceService';
|
package/models/Branch.ts
ADDED
|
@@ -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
|
+
|
package/models/ComputedView.ts
CHANGED
|
@@ -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;
|
package/models/TableView.ts
CHANGED
package/models/View.ts
CHANGED
|
@@ -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
|
+
|
package/models/ViewRequest.ts
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { BranchResponse } from '../models/BranchResponse';
|
|
5
|
+
import type { ListBranchResponse } from '../models/ListBranchResponse';
|
|
6
|
+
import type { MergeBranchRequest } from '../models/MergeBranchRequest';
|
|
7
|
+
import type { UUID } from '../models/UUID';
|
|
8
|
+
import type { ViewRequest } from '../models/ViewRequest';
|
|
9
|
+
|
|
10
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
11
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
12
|
+
import { request as __request } from '../core/request';
|
|
13
|
+
|
|
14
|
+
export class BranchResourceService {
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Lists all branches
|
|
18
|
+
* @returns ListBranchResponse The branches
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
public static listBranches(): CancelablePromise<ListBranchResponse> {
|
|
22
|
+
return __request(OpenAPI, {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '/v1/branches',
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new branch
|
|
30
|
+
* @param requestBody Branch to create
|
|
31
|
+
* @returns BranchResponse The created branch
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
public static createBranch(
|
|
35
|
+
requestBody: ViewRequest,
|
|
36
|
+
): CancelablePromise<BranchResponse> {
|
|
37
|
+
return __request(OpenAPI, {
|
|
38
|
+
method: 'POST',
|
|
39
|
+
url: '/v1/branches',
|
|
40
|
+
body: requestBody,
|
|
41
|
+
mediaType: 'application/json',
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Gets the branch with the requested id
|
|
47
|
+
* @param id
|
|
48
|
+
* @param includeMeta
|
|
49
|
+
* @returns BranchResponse The requested branch
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
public static getBranch(
|
|
53
|
+
id: UUID,
|
|
54
|
+
includeMeta: boolean = false,
|
|
55
|
+
): CancelablePromise<BranchResponse> {
|
|
56
|
+
return __request(OpenAPI, {
|
|
57
|
+
method: 'GET',
|
|
58
|
+
url: '/v1/branches/{id}',
|
|
59
|
+
path: {
|
|
60
|
+
'id': id,
|
|
61
|
+
},
|
|
62
|
+
query: {
|
|
63
|
+
'includeMeta': includeMeta,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Merge the provided source branch into the provided target branch
|
|
70
|
+
* @param targetBranchId
|
|
71
|
+
* @param requestBody Options for merge
|
|
72
|
+
* @returns BranchResponse The target branch with the new head
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
public static mergeBranch(
|
|
76
|
+
targetBranchId: string,
|
|
77
|
+
requestBody: MergeBranchRequest,
|
|
78
|
+
): CancelablePromise<BranchResponse> {
|
|
79
|
+
return __request(OpenAPI, {
|
|
80
|
+
method: 'POST',
|
|
81
|
+
url: '/v1/branches/{targetBranchId}/merge',
|
|
82
|
+
path: {
|
|
83
|
+
'targetBranchId': targetBranchId,
|
|
84
|
+
},
|
|
85
|
+
body: requestBody,
|
|
86
|
+
mediaType: 'application/json',
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { BranchResponse } from '../models/BranchResponse';
|
|
5
|
+
import type { ViewRequest } from '../models/ViewRequest';
|
|
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 BranchResponse The created commit
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
public static createCommit(
|
|
21
|
+
branchId: string,
|
|
22
|
+
requestBody: ViewRequest,
|
|
23
|
+
): CancelablePromise<BranchResponse> {
|
|
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,7 @@ import { request as __request } from '../core/request';
|
|
|
11
12
|
export class ListViewsResourceService {
|
|
12
13
|
|
|
13
14
|
/**
|
|
15
|
+
* @deprecated
|
|
14
16
|
* Clones the request set of views
|
|
15
17
|
* @param requestBody View ids to clone
|
|
16
18
|
* @returns any The cloned views
|
|
@@ -30,6 +32,7 @@ export class ListViewsResourceService {
|
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
/**
|
|
35
|
+
* @deprecated
|
|
33
36
|
* Gets the requested set of views
|
|
34
37
|
* @param requestBody View ids to get
|
|
35
38
|
* @returns any The requested views
|
|
@@ -48,4 +51,23 @@ export class ListViewsResourceService {
|
|
|
48
51
|
});
|
|
49
52
|
}
|
|
50
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Gets the requested set of views
|
|
56
|
+
* @param requestBody View ids to get
|
|
57
|
+
* @returns any The requested views
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
public static listViews(
|
|
61
|
+
requestBody: ListVersionedViewsRequest,
|
|
62
|
+
): CancelablePromise<{
|
|
63
|
+
views: Array<ViewResponse>;
|
|
64
|
+
}> {
|
|
65
|
+
return __request(OpenAPI, {
|
|
66
|
+
method: 'POST',
|
|
67
|
+
url: '/v1/views/list',
|
|
68
|
+
body: requestBody,
|
|
69
|
+
mediaType: 'application/json',
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
51
73
|
}
|
|
@@ -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 commit
|
|
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
|
+
commit: string,
|
|
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}/commit/{commit}/export',
|
|
95
|
+
path: {
|
|
96
|
+
'commit': commit,
|
|
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 commit
|
|
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
|
+
commit: 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}/commit/{commit}/run',
|
|
129
|
+
path: {
|
|
130
|
+
'commit': commit,
|
|
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}/commit/{versionId}',
|
|
122
|
+
path: {
|
|
123
|
+
'id': id,
|
|
124
|
+
'namespaceId': namespaceId,
|
|
125
|
+
'versionId': versionId,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
103
130
|
}
|