@explo-tech/fido-api 0.0.11 → 0.0.13

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/core/OpenAPI.ts CHANGED
@@ -20,7 +20,7 @@ export type OpenAPIConfig = {
20
20
 
21
21
  export const OpenAPI: OpenAPIConfig = {
22
22
  BASE: '',
23
- VERSION: 'unspecified',
23
+ VERSION: '1.0',
24
24
  WITH_CREDENTIALS: false,
25
25
  CREDENTIALS: 'include',
26
26
  TOKEN: undefined,
package/index.ts CHANGED
@@ -27,14 +27,12 @@ export type { DecimalPropertyValue } from './models/DecimalPropertyValue';
27
27
  export type { DoublePropertyValue } from './models/DoublePropertyValue';
28
28
  export type { Filter } from './models/Filter';
29
29
  export type { IntegerPropertyValue } from './models/IntegerPropertyValue';
30
- export type { LocalDate } from './models/LocalDate';
31
30
  export type { MySql } from './models/MySql';
32
31
  export type { MySqlAuthentication } from './models/MySqlAuthentication';
33
32
  export type { Namespace } from './models/Namespace';
34
33
  export type { NamespaceRequest } from './models/NamespaceRequest';
35
34
  export type { NamespaceResponse } from './models/NamespaceResponse';
36
35
  export type { NamespaceResponseMetadata } from './models/NamespaceResponseMetadata';
37
- export type { OffsetDateTime } from './models/OffsetDateTime';
38
36
  export type { PagingConfiguration } from './models/PagingConfiguration';
39
37
  export type { PasswordAuthentication } from './models/PasswordAuthentication';
40
38
  export type { Postgres } from './models/Postgres';
@@ -64,7 +62,7 @@ export type { ViewResponse } from './models/ViewResponse';
64
62
  export type { ViewRunRequest } from './models/ViewRunRequest';
65
63
 
66
64
  export { BulkViewsResourceService } from './services/BulkViewsResourceService';
67
- export { DatasourceResourceService } from './services/DatasourceResourceService';
65
+ export { DataSourceResourceService } from './services/DataSourceResourceService';
68
66
  export { HealthResourceService } from './services/HealthResourceService';
69
67
  export { NamespaceResourceService } from './services/NamespaceResourceService';
70
68
  export { QueryResourceService } from './services/QueryResourceService';
@@ -6,10 +6,10 @@ import type { PropertySchema } from './PropertySchema';
6
6
 
7
7
  export type ComputedView = {
8
8
  name: string;
9
- description: string;
9
+ description: string | null;
10
10
  columnDefinitions: Array<PropertySchema>;
11
- id: string | null;
12
- namespaceId: string | null;
11
+ readonly id: string;
12
+ readonly namespaceId: string;
13
13
  query: string;
14
14
  };
15
15
 
@@ -7,8 +7,8 @@ import type { DataSourceConfiguration } from './DataSourceConfiguration';
7
7
  export type DataSource = {
8
8
  name: string;
9
9
  externalId: string;
10
- id: string | null;
11
- namespaceId: string | null;
10
+ readonly id: string;
11
+ readonly namespaceId: string;
12
12
  configuration: DataSourceConfiguration;
13
13
  };
14
14
 
@@ -2,9 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- import type { LocalDate } from './LocalDate';
6
-
7
5
  export type DatePropertyValue = {
8
- value: LocalDate;
6
+ value: string;
9
7
  };
10
8
 
@@ -2,9 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
 
5
- import type { OffsetDateTime } from './OffsetDateTime';
6
-
7
5
  export type DateTimePropertyValue = {
8
- value: OffsetDateTime;
6
+ value: string;
9
7
  };
10
8
 
@@ -4,6 +4,6 @@
4
4
 
5
5
  export type Namespace = {
6
6
  name: string;
7
- id: string | null;
7
+ readonly id: string;
8
8
  };
9
9
 
@@ -6,10 +6,10 @@ import type { PropertySchema } from './PropertySchema';
6
6
 
7
7
  export type TableView = {
8
8
  name: string;
9
- description: string;
9
+ description: string | null;
10
10
  columnDefinitions: Array<PropertySchema>;
11
- id: string | null;
12
- namespaceId: string | null;
11
+ readonly id: string;
12
+ readonly namespaceId: string;
13
13
  tableName: string;
14
14
  };
15
15
 
package/models/View.ts CHANGED
@@ -8,9 +8,9 @@ import type { TableView } from './TableView';
8
8
 
9
9
  export type View = (TableView | ComputedView | {
10
10
  name: string;
11
- description: string;
11
+ description: string | null;
12
12
  columnDefinitions: Array<PropertySchema>;
13
- id: string | null;
14
- namespaceId: string | null;
13
+ readonly id: string;
14
+ readonly namespaceId: string;
15
15
  });
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explo-tech/fido-api",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "Fido api",
5
5
  "homepage": "https://github.com/trust-kaz/fido",
6
6
  "license": "MIT",
@@ -12,12 +12,12 @@ export class BulkViewsResourceService {
12
12
 
13
13
  /**
14
14
  * Clones the request set of views
15
- * @param requestBody
15
+ * @param requestBody View ids to clone
16
16
  * @returns any The cloned views
17
17
  * @throws ApiError
18
18
  */
19
19
  public static cloneViews(
20
- requestBody?: BulkViewsRequest,
20
+ requestBody: BulkViewsRequest,
21
21
  ): CancelablePromise<{
22
22
  views: Array<View>;
23
23
  }> {
@@ -25,18 +25,18 @@ export class BulkViewsResourceService {
25
25
  method: 'POST',
26
26
  url: '/v1/views/clone',
27
27
  body: requestBody,
28
- mediaType: 'application/json',
28
+ mediaType: '*/*',
29
29
  });
30
30
  }
31
31
 
32
32
  /**
33
33
  * Deletes a view
34
- * @param requestBody
34
+ * @param requestBody View ids to get
35
35
  * @returns any The requested views
36
36
  * @throws ApiError
37
37
  */
38
38
  public static getViews(
39
- requestBody?: BulkViewsRequest,
39
+ requestBody: BulkViewsRequest,
40
40
  ): CancelablePromise<{
41
41
  views: Array<View>;
42
42
  }> {
@@ -44,7 +44,7 @@ export class BulkViewsResourceService {
44
44
  method: 'POST',
45
45
  url: '/v1/views/get',
46
46
  body: requestBody,
47
- mediaType: 'application/json',
47
+ mediaType: '*/*',
48
48
  });
49
49
  }
50
50
 
@@ -9,7 +9,7 @@ import type { CancelablePromise } from '../core/CancelablePromise';
9
9
  import { OpenAPI } from '../core/OpenAPI';
10
10
  import { request as __request } from '../core/request';
11
11
 
12
- export class DatasourceResourceService {
12
+ export class DataSourceResourceService {
13
13
 
14
14
  /**
15
15
  * Gets a data source
@@ -36,14 +36,14 @@ export class DatasourceResourceService {
36
36
  * Updates a data source's metadata
37
37
  * @param id
38
38
  * @param namespaceId
39
- * @param requestBody
39
+ * @param requestBody Data Source object to update
40
40
  * @returns DataSourceResponse The updated data source
41
41
  * @throws ApiError
42
42
  */
43
43
  public static updateDataSource(
44
44
  id: UUID,
45
45
  namespaceId: UUID,
46
- requestBody?: DataSourceRequest,
46
+ requestBody: DataSourceRequest,
47
47
  ): CancelablePromise<DataSourceResponse> {
48
48
  return __request(OpenAPI, {
49
49
  method: 'PUT',
@@ -53,7 +53,7 @@ export class DatasourceResourceService {
53
53
  'namespaceId': namespaceId,
54
54
  },
55
55
  body: requestBody,
56
- mediaType: 'application/json',
56
+ mediaType: '*/*',
57
57
  });
58
58
  }
59
59
 
@@ -61,14 +61,14 @@ export class DatasourceResourceService {
61
61
  * Creates a data source
62
62
  * @param id
63
63
  * @param namespaceId
64
- * @param requestBody
64
+ * @param requestBody Data Source object to create
65
65
  * @returns DataSourceResponse The requested data source
66
66
  * @throws ApiError
67
67
  */
68
68
  public static createDataSource(
69
69
  id: UUID,
70
70
  namespaceId: UUID,
71
- requestBody?: DataSourceRequest,
71
+ requestBody: DataSourceRequest,
72
72
  ): CancelablePromise<DataSourceResponse> {
73
73
  return __request(OpenAPI, {
74
74
  method: 'POST',
@@ -78,7 +78,7 @@ export class DatasourceResourceService {
78
78
  'namespaceId': namespaceId,
79
79
  },
80
80
  body: requestBody,
81
- mediaType: 'application/json',
81
+ mediaType: '*/*',
82
82
  });
83
83
  }
84
84
 
@@ -37,13 +37,13 @@ export class NamespaceResourceService {
37
37
  /**
38
38
  * Updates a namespace's metadata
39
39
  * @param id
40
- * @param requestBody
40
+ * @param requestBody Namespace object to update
41
41
  * @returns NamespaceResponse The updated namespace, along with its associated data sources
42
42
  * @throws ApiError
43
43
  */
44
44
  public static updateNamespace(
45
45
  id: UUID,
46
- requestBody?: NamespaceRequest,
46
+ requestBody: NamespaceRequest,
47
47
  ): CancelablePromise<NamespaceResponse> {
48
48
  return __request(OpenAPI, {
49
49
  method: 'PUT',
@@ -52,20 +52,20 @@ export class NamespaceResourceService {
52
52
  'id': id,
53
53
  },
54
54
  body: requestBody,
55
- mediaType: 'application/json',
55
+ mediaType: '*/*',
56
56
  });
57
57
  }
58
58
 
59
59
  /**
60
60
  * Creates a namespace and optionally a data source associated with it
61
61
  * @param id
62
- * @param requestBody
62
+ * @param requestBody Namespace object to create
63
63
  * @returns NamespaceResponse The requested namespace, along with its associated data source if applicable
64
64
  * @throws ApiError
65
65
  */
66
66
  public static createNamespace(
67
67
  id: UUID,
68
- requestBody?: NamespaceRequest,
68
+ requestBody: NamespaceRequest,
69
69
  ): CancelablePromise<NamespaceResponse> {
70
70
  return __request(OpenAPI, {
71
71
  method: 'POST',
@@ -74,7 +74,7 @@ export class NamespaceResourceService {
74
74
  'id': id,
75
75
  },
76
76
  body: requestBody,
77
- mediaType: 'application/json',
77
+ mediaType: '*/*',
78
78
  });
79
79
  }
80
80
 
@@ -17,14 +17,14 @@ export class QueryResourceService {
17
17
  * Runs a provided query against the provided data source
18
18
  * @param dataSourceId
19
19
  * @param namespaceId
20
- * @param requestBody
20
+ * @param requestBody Query to preview against the provided data source
21
21
  * @returns QueryExecutionResponse A DataPage of the provided query
22
22
  * @throws ApiError
23
23
  */
24
24
  public static getQueryPreview(
25
25
  dataSourceId: UUID,
26
26
  namespaceId: UUID,
27
- requestBody?: QueryPreviewRequest,
27
+ requestBody: QueryPreviewRequest,
28
28
  ): CancelablePromise<QueryExecutionResponse> {
29
29
  return __request(OpenAPI, {
30
30
  method: 'POST',
@@ -34,7 +34,7 @@ export class QueryResourceService {
34
34
  'namespaceId': namespaceId,
35
35
  },
36
36
  body: requestBody,
37
- mediaType: 'application/json',
37
+ mediaType: '*/*',
38
38
  });
39
39
  }
40
40
 
@@ -42,14 +42,14 @@ export class QueryResourceService {
42
42
  * Gets a preview of a specified table in a Data Source
43
43
  * @param dataSourceId
44
44
  * @param namespaceId
45
- * @param requestBody
45
+ * @param requestBody Table to preview against the provided data source
46
46
  * @returns QueryExecutionResponse A DataPage of the resulting Data Source's data
47
47
  * @throws ApiError
48
48
  */
49
49
  public static getTablePreview(
50
50
  dataSourceId: UUID,
51
51
  namespaceId: UUID,
52
- requestBody?: TablePreviewRequest,
52
+ requestBody: TablePreviewRequest,
53
53
  ): CancelablePromise<QueryExecutionResponse> {
54
54
  return __request(OpenAPI, {
55
55
  method: 'POST',
@@ -59,7 +59,7 @@ export class QueryResourceService {
59
59
  'namespaceId': namespaceId,
60
60
  },
61
61
  body: requestBody,
62
- mediaType: 'application/json',
62
+ mediaType: '*/*',
63
63
  });
64
64
  }
65
65
 
@@ -68,7 +68,7 @@ export class QueryResourceService {
68
68
  * @param dataSourceId
69
69
  * @param namespaceId
70
70
  * @param viewId
71
- * @param requestBody
71
+ * @param requestBody View to run against the provided data source
72
72
  * @returns QueryExecutionResponse A DataPage of the provided query
73
73
  * @throws ApiError
74
74
  */
@@ -76,7 +76,7 @@ export class QueryResourceService {
76
76
  dataSourceId: UUID,
77
77
  namespaceId: UUID,
78
78
  viewId: UUID,
79
- requestBody?: ViewRunRequest,
79
+ requestBody: ViewRunRequest,
80
80
  ): CancelablePromise<QueryExecutionResponse> {
81
81
  return __request(OpenAPI, {
82
82
  method: 'POST',
@@ -87,7 +87,7 @@ export class QueryResourceService {
87
87
  'viewId': viewId,
88
88
  },
89
89
  body: requestBody,
90
- mediaType: 'application/json',
90
+ mediaType: '*/*',
91
91
  });
92
92
  }
93
93
 
@@ -36,14 +36,14 @@ export class ViewResourceService {
36
36
  * Updates a view's metadata
37
37
  * @param id
38
38
  * @param namespaceId
39
- * @param requestBody
39
+ * @param requestBody View object to update
40
40
  * @returns ViewResponse The updated view
41
41
  * @throws ApiError
42
42
  */
43
43
  public static updateView(
44
44
  id: UUID,
45
45
  namespaceId: UUID,
46
- requestBody?: ViewRequest,
46
+ requestBody: ViewRequest,
47
47
  ): CancelablePromise<ViewResponse> {
48
48
  return __request(OpenAPI, {
49
49
  method: 'PUT',
@@ -53,7 +53,7 @@ export class ViewResourceService {
53
53
  'namespaceId': namespaceId,
54
54
  },
55
55
  body: requestBody,
56
- mediaType: 'application/json',
56
+ mediaType: '*/*',
57
57
  });
58
58
  }
59
59
 
@@ -61,14 +61,14 @@ export class ViewResourceService {
61
61
  * Creates a view
62
62
  * @param id
63
63
  * @param namespaceId
64
- * @param requestBody
64
+ * @param requestBody View object to create
65
65
  * @returns ViewResponse The requested view
66
66
  * @throws ApiError
67
67
  */
68
68
  public static createView(
69
69
  id: UUID,
70
70
  namespaceId: UUID,
71
- requestBody?: ViewRequest,
71
+ requestBody: ViewRequest,
72
72
  ): CancelablePromise<ViewResponse> {
73
73
  return __request(OpenAPI, {
74
74
  method: 'POST',
@@ -78,7 +78,7 @@ export class ViewResourceService {
78
78
  'namespaceId': namespaceId,
79
79
  },
80
80
  body: requestBody,
81
- mediaType: 'application/json',
81
+ mediaType: '*/*',
82
82
  });
83
83
  }
84
84
 
@@ -1,5 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export type LocalDate = string;
@@ -1,5 +0,0 @@
1
- /* istanbul ignore file */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- export type OffsetDateTime = string;