@explo-tech/fido-api 0.0.2 → 0.0.4

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 (78) hide show
  1. package/core/ApiError.ts +24 -0
  2. package/core/ApiRequestOptions.ts +16 -0
  3. package/core/ApiResult.ts +10 -0
  4. package/core/CancelablePromise.ts +130 -0
  5. package/core/OpenAPI.ts +31 -0
  6. package/core/request.ts +307 -0
  7. package/index.ts +47 -0
  8. package/models/BooleanPropertyValue.ts +9 -0
  9. package/models/ClientError.ts +9 -0
  10. package/models/ComputedViewRunRequest.ts +13 -0
  11. package/models/DataPage.ts +10 -0
  12. package/models/DataRequestParameters.ts +11 -0
  13. package/models/DataResponseMetadata.ts +12 -0
  14. package/models/DataSchema.ts +10 -0
  15. package/models/DataSource.ts +15 -0
  16. package/models/DataSourceConfiguration.ts +10 -0
  17. package/models/DataSourceRequest.ts +10 -0
  18. package/models/DataSourceResponse.ts +10 -0
  19. package/models/DataSourceTablePreviewRequest.ts +11 -0
  20. package/models/DatePropertyValue.ts +11 -0
  21. package/models/DateTimePropertyValue.ts +11 -0
  22. package/models/DecimalPropertyValue.ts +9 -0
  23. package/models/DoublePropertyValue.ts +9 -0
  24. package/models/Duration.ts +5 -0
  25. package/models/Instant.ts +5 -0
  26. package/models/IntegerPropertyValue.ts +9 -0
  27. package/models/LocalDate.ts +5 -0
  28. package/models/Namespace.ts +11 -0
  29. package/models/NamespaceRequest.ts +10 -0
  30. package/models/NamespaceResponse.ts +12 -0
  31. package/models/NamespaceResponseMetadata.ts +10 -0
  32. package/models/PagingConfiguration.ts +9 -0
  33. package/models/PropertySchema.ts +13 -0
  34. package/models/PropertyType.ts +14 -0
  35. package/models/PropertyValue.ts +16 -0
  36. package/models/QueryExecutionResponse.ts +15 -0
  37. package/models/Record.ts +10 -0
  38. package/models/RequestTelemetry.ts +12 -0
  39. package/models/StringPropertyValue.ts +9 -0
  40. package/models/Tunnel.ts +5 -0
  41. package/models/UUID.ts +5 -0
  42. package/package.json +1 -1
  43. package/services/DatasourceResourceService.ts +106 -0
  44. package/services/HealthResourceService.ts +45 -0
  45. package/services/NamespaceResourceService.ts +99 -0
  46. package/services/QueryResourceService.ts +65 -0
  47. package/.openapi-generator/FILES +0 -30
  48. package/.openapi-generator/VERSION +0 -1
  49. package/.openapi-generator-ignore +0 -23
  50. package/api/apis.ts +0 -20
  51. package/api/datasourceResourceApi.ts +0 -412
  52. package/api/healthResourceApi.ts +0 -239
  53. package/api/namespaceResourceApi.ts +0 -389
  54. package/api/queryResourceApi.ts +0 -260
  55. package/api.ts +0 -3
  56. package/git_push.sh +0 -57
  57. package/model/computedViewRunRequest.ts +0 -50
  58. package/model/dataPage.ts +0 -32
  59. package/model/dataRequestParameters.ts +0 -38
  60. package/model/dataResponseMetadata.ts +0 -44
  61. package/model/dataSchema.ts +0 -32
  62. package/model/dataSource.ts +0 -56
  63. package/model/dataSourceConfiguration.ts +0 -31
  64. package/model/dataSourceRequest.ts +0 -32
  65. package/model/dataSourceTablePreviewRequest.ts +0 -38
  66. package/model/models.ts +0 -282
  67. package/model/namespace.ts +0 -37
  68. package/model/namespaceRequest.ts +0 -32
  69. package/model/namespaceResponseMetadata.ts +0 -32
  70. package/model/pagingConfiguration.ts +0 -37
  71. package/model/propertySchema.ts +0 -52
  72. package/model/propertyType.ts +0 -24
  73. package/model/record.ts +0 -31
  74. package/model/v1NamespacesIdGet200Response.ts +0 -39
  75. package/model/v1NamespacesIdGet200ResponseMeta.ts +0 -32
  76. package/model/v1NamespacesIdGet4xxResponse.ts +0 -37
  77. package/model/v1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response.ts +0 -51
  78. package/model/v1NamespacesNamespaceIdDataSourcesIdGet200Response.ts +0 -32
package/git_push.sh DELETED
@@ -1,57 +0,0 @@
1
- #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
-
16
- if [ "$git_user_id" = "" ]; then
17
- git_user_id="GIT_USER_ID"
18
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
- fi
20
-
21
- if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="GIT_REPO_ID"
23
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
- fi
25
-
26
- if [ "$release_note" = "" ]; then
27
- release_note="Minor update"
28
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
- fi
30
-
31
- # Initialize the local directory as a Git repository
32
- git init
33
-
34
- # Adds the files in the local repository and stages them for commit.
35
- git add .
36
-
37
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
- git commit -m "$release_note"
39
-
40
- # Sets the new remote
41
- git_remote=$(git remote)
42
- if [ "$git_remote" = "" ]; then # git remote not defined
43
-
44
- if [ "$GIT_TOKEN" = "" ]; then
45
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
- else
48
- git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
- fi
50
-
51
- fi
52
-
53
- git pull origin master
54
-
55
- # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
- git push origin master 2>&1 | grep -v 'To https'
@@ -1,50 +0,0 @@
1
- /**
2
- * fido API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: unspecified
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
-
13
- import { RequestFile } from './models';
14
- import { DataRequestParameters } from './dataRequestParameters';
15
-
16
- export class ComputedViewRunRequest {
17
- 'query': string;
18
- 'tableIdentifier': string;
19
- 'dataRequestParameters': DataRequestParameters;
20
- 'queryContext': { [key: string]: any; };
21
-
22
- static discriminator: string | undefined = undefined;
23
-
24
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
25
- {
26
- "name": "query",
27
- "baseName": "query",
28
- "type": "string"
29
- },
30
- {
31
- "name": "tableIdentifier",
32
- "baseName": "tableIdentifier",
33
- "type": "string"
34
- },
35
- {
36
- "name": "dataRequestParameters",
37
- "baseName": "dataRequestParameters",
38
- "type": "DataRequestParameters"
39
- },
40
- {
41
- "name": "queryContext",
42
- "baseName": "queryContext",
43
- "type": "{ [key: string]: any; }"
44
- } ];
45
-
46
- static getAttributeTypeMap() {
47
- return ComputedViewRunRequest.attributeTypeMap;
48
- }
49
- }
50
-
package/model/dataPage.ts DELETED
@@ -1,32 +0,0 @@
1
- /**
2
- * fido API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: unspecified
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
-
13
- import { RequestFile } from './models';
14
- import { Record } from './record';
15
-
16
- export class DataPage {
17
- 'records': Array<Record>;
18
-
19
- static discriminator: string | undefined = undefined;
20
-
21
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
22
- {
23
- "name": "records",
24
- "baseName": "records",
25
- "type": "Array<Record>"
26
- } ];
27
-
28
- static getAttributeTypeMap() {
29
- return DataPage.attributeTypeMap;
30
- }
31
- }
32
-
@@ -1,38 +0,0 @@
1
- /**
2
- * fido API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: unspecified
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
-
13
- import { RequestFile } from './models';
14
- import { PagingConfiguration } from './pagingConfiguration';
15
-
16
- export class DataRequestParameters {
17
- 'pagingConfiguration'?: PagingConfiguration;
18
- 'includeTotalResults'?: boolean;
19
-
20
- static discriminator: string | undefined = undefined;
21
-
22
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
23
- {
24
- "name": "pagingConfiguration",
25
- "baseName": "pagingConfiguration",
26
- "type": "PagingConfiguration"
27
- },
28
- {
29
- "name": "includeTotalResults",
30
- "baseName": "includeTotalResults",
31
- "type": "boolean"
32
- } ];
33
-
34
- static getAttributeTypeMap() {
35
- return DataRequestParameters.attributeTypeMap;
36
- }
37
- }
38
-
@@ -1,44 +0,0 @@
1
- /**
2
- * fido API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: unspecified
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
-
13
- import { RequestFile } from './models';
14
- import { DataSchema } from './dataSchema';
15
-
16
- export class DataResponseMetadata {
17
- 'schema': DataSchema;
18
- 'totalResults': number | null;
19
- 'renderedQuery': string | null;
20
-
21
- static discriminator: string | undefined = undefined;
22
-
23
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24
- {
25
- "name": "schema",
26
- "baseName": "schema",
27
- "type": "DataSchema"
28
- },
29
- {
30
- "name": "totalResults",
31
- "baseName": "totalResults",
32
- "type": "number"
33
- },
34
- {
35
- "name": "renderedQuery",
36
- "baseName": "renderedQuery",
37
- "type": "string"
38
- } ];
39
-
40
- static getAttributeTypeMap() {
41
- return DataResponseMetadata.attributeTypeMap;
42
- }
43
- }
44
-
@@ -1,32 +0,0 @@
1
- /**
2
- * fido API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: unspecified
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
-
13
- import { RequestFile } from './models';
14
- import { PropertySchema } from './propertySchema';
15
-
16
- export class DataSchema {
17
- 'propertySchema': Array<PropertySchema>;
18
-
19
- static discriminator: string | undefined = undefined;
20
-
21
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
22
- {
23
- "name": "propertySchema",
24
- "baseName": "propertySchema",
25
- "type": "Array<PropertySchema>"
26
- } ];
27
-
28
- static getAttributeTypeMap() {
29
- return DataSchema.attributeTypeMap;
30
- }
31
- }
32
-
@@ -1,56 +0,0 @@
1
- /**
2
- * fido API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: unspecified
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
-
13
- import { RequestFile } from './models';
14
- import { DataSourceConfiguration } from './dataSourceConfiguration';
15
-
16
- export class DataSource {
17
- 'name': string;
18
- 'externalId': string;
19
- 'id'?: string | null;
20
- 'namespaceId'?: string | null;
21
- 'configuration': DataSourceConfiguration;
22
-
23
- static discriminator: string | undefined = undefined;
24
-
25
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
26
- {
27
- "name": "name",
28
- "baseName": "name",
29
- "type": "string"
30
- },
31
- {
32
- "name": "externalId",
33
- "baseName": "externalId",
34
- "type": "string"
35
- },
36
- {
37
- "name": "id",
38
- "baseName": "id",
39
- "type": "string"
40
- },
41
- {
42
- "name": "namespaceId",
43
- "baseName": "namespaceId",
44
- "type": "string"
45
- },
46
- {
47
- "name": "configuration",
48
- "baseName": "configuration",
49
- "type": "DataSourceConfiguration"
50
- } ];
51
-
52
- static getAttributeTypeMap() {
53
- return DataSource.attributeTypeMap;
54
- }
55
- }
56
-
@@ -1,31 +0,0 @@
1
- /**
2
- * fido API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: unspecified
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
-
13
- import { RequestFile } from './models';
14
-
15
- export class DataSourceConfiguration {
16
- 'tunnel'?: object;
17
-
18
- static discriminator: string | undefined = undefined;
19
-
20
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
21
- {
22
- "name": "tunnel",
23
- "baseName": "tunnel",
24
- "type": "object"
25
- } ];
26
-
27
- static getAttributeTypeMap() {
28
- return DataSourceConfiguration.attributeTypeMap;
29
- }
30
- }
31
-
@@ -1,32 +0,0 @@
1
- /**
2
- * fido API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: unspecified
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
-
13
- import { RequestFile } from './models';
14
- import { DataSource } from './dataSource';
15
-
16
- export class DataSourceRequest {
17
- 'dataSource': DataSource;
18
-
19
- static discriminator: string | undefined = undefined;
20
-
21
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
22
- {
23
- "name": "dataSource",
24
- "baseName": "dataSource",
25
- "type": "DataSource"
26
- } ];
27
-
28
- static getAttributeTypeMap() {
29
- return DataSourceRequest.attributeTypeMap;
30
- }
31
- }
32
-
@@ -1,38 +0,0 @@
1
- /**
2
- * fido API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: unspecified
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
-
13
- import { RequestFile } from './models';
14
- import { DataRequestParameters } from './dataRequestParameters';
15
-
16
- export class DataSourceTablePreviewRequest {
17
- 'tableIdentifier': string;
18
- 'dataRequestParameters': DataRequestParameters;
19
-
20
- static discriminator: string | undefined = undefined;
21
-
22
- static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
23
- {
24
- "name": "tableIdentifier",
25
- "baseName": "tableIdentifier",
26
- "type": "string"
27
- },
28
- {
29
- "name": "dataRequestParameters",
30
- "baseName": "dataRequestParameters",
31
- "type": "DataRequestParameters"
32
- } ];
33
-
34
- static getAttributeTypeMap() {
35
- return DataSourceTablePreviewRequest.attributeTypeMap;
36
- }
37
- }
38
-