@explo-tech/fido-api 0.0.48 → 0.0.49

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.
@@ -6,6 +6,6 @@
6
6
  export type PasswordAuthentication = {
7
7
  '@type': 'username-password';
8
8
  username: string;
9
- password: string;
9
+ password?: string | null;
10
10
  };
11
11
 
@@ -6,6 +6,6 @@
6
6
  export type TenantPrivateKeyAuthentication = {
7
7
  username: string;
8
8
  '@type': 'tenant';
9
- privateKey: string;
9
+ privateKey?: string | null;
10
10
  };
11
11
 
@@ -9,6 +9,10 @@ import type { TableView } from './TableView';
9
9
 
10
10
  export type ViewResponse = {
11
11
  view: (TableView | ComputedView | {
12
+ readonly id: string;
13
+ readonly namespaceId: string;
14
+ readonly id: string;
15
+ readonly namespaceId: string;
12
16
  name: string;
13
17
  description: string | null;
14
18
  columnDefinitions: Array<PropertySchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explo-tech/fido-api",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "description": "Fido api",
5
5
  "homepage": "https://github.com/trust-kaz/fido",
6
6
  "license": "MIT",
@@ -47,4 +47,22 @@ export class TenantResourceService {
47
47
  });
48
48
  }
49
49
 
50
+ /**
51
+ * Deletes a tenant
52
+ * @param id
53
+ * @returns any 200 if the tenant was deleted properly
54
+ * @throws ApiError
55
+ */
56
+ public static deleteTenant(
57
+ id: UUID,
58
+ ): CancelablePromise<Record<string, any>> {
59
+ return __request(OpenAPI, {
60
+ method: 'DELETE',
61
+ url: '/v1/tenants/{id}',
62
+ path: {
63
+ 'id': id,
64
+ },
65
+ });
66
+ }
67
+
50
68
  }
@@ -3,6 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { TestConnectionRequest } from '../models/TestConnectionRequest';
6
+ import type { UUID } from '../models/UUID';
6
7
 
7
8
  import type { CancelablePromise } from '../core/CancelablePromise';
8
9
  import { OpenAPI } from '../core/OpenAPI';
@@ -10,6 +11,30 @@ import { request as __request } from '../core/request';
10
11
 
11
12
  export class TestConnectionResourceService {
12
13
 
14
+ /**
15
+ * Get the number of tables in a provided data source
16
+ * @param id
17
+ * @param requestBody Data Source configuration to retry to connect to
18
+ * @returns any Number of tables in a provided data source
19
+ * @throws ApiError
20
+ */
21
+ public static retestConnection(
22
+ id: UUID,
23
+ requestBody: TestConnectionRequest,
24
+ ): CancelablePromise<{
25
+ numberOfTables: number;
26
+ }> {
27
+ return __request(OpenAPI, {
28
+ method: 'POST',
29
+ url: '/v1/data-sources/retest-connection/{id}',
30
+ path: {
31
+ 'id': id,
32
+ },
33
+ body: requestBody,
34
+ mediaType: '*/*',
35
+ });
36
+ }
37
+
13
38
  /**
14
39
  * Get the number of tables in a provided data source
15
40
  * @param requestBody Data Source configuration to try to connect to