@explo-tech/fido-api 0.0.0 → 0.0.2
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/.openapi-generator/FILES +30 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/.tool-versions +1 -0
- package/api/queryResourceApi.ts +2 -3
- package/git_push.sh +57 -0
- package/package.json +4 -8
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.gitignore
|
|
2
|
+
api.ts
|
|
3
|
+
api/apis.ts
|
|
4
|
+
api/datasourceResourceApi.ts
|
|
5
|
+
api/healthResourceApi.ts
|
|
6
|
+
api/namespaceResourceApi.ts
|
|
7
|
+
api/queryResourceApi.ts
|
|
8
|
+
git_push.sh
|
|
9
|
+
model/computedViewRunRequest.ts
|
|
10
|
+
model/dataPage.ts
|
|
11
|
+
model/dataRequestParameters.ts
|
|
12
|
+
model/dataResponseMetadata.ts
|
|
13
|
+
model/dataSchema.ts
|
|
14
|
+
model/dataSource.ts
|
|
15
|
+
model/dataSourceConfiguration.ts
|
|
16
|
+
model/dataSourceRequest.ts
|
|
17
|
+
model/dataSourceTablePreviewRequest.ts
|
|
18
|
+
model/models.ts
|
|
19
|
+
model/namespace.ts
|
|
20
|
+
model/namespaceRequest.ts
|
|
21
|
+
model/namespaceResponseMetadata.ts
|
|
22
|
+
model/pagingConfiguration.ts
|
|
23
|
+
model/propertySchema.ts
|
|
24
|
+
model/propertyType.ts
|
|
25
|
+
model/record.ts
|
|
26
|
+
model/v1NamespacesIdGet200Response.ts
|
|
27
|
+
model/v1NamespacesIdGet200ResponseMeta.ts
|
|
28
|
+
model/v1NamespacesIdGet4xxResponse.ts
|
|
29
|
+
model/v1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response.ts
|
|
30
|
+
model/v1NamespacesNamespaceIdDataSourcesIdGet200Response.ts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6.5.0
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# OpenAPI Generator Ignore
|
|
2
|
+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|
package/.tool-versions
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nodejs 16.17.1
|
package/api/queryResourceApi.ts
CHANGED
|
@@ -187,7 +187,7 @@ export class QueryResourceApi {
|
|
|
187
187
|
* @param namespaceId
|
|
188
188
|
* @param computedViewRunRequest
|
|
189
189
|
*/
|
|
190
|
-
public async v1NamespacesNamespaceIdDataSourcesDataSourceIdRunPost (dataSourceId: string, namespaceId: string, computedViewRunRequest?: ComputedViewRunRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body
|
|
190
|
+
public async v1NamespacesNamespaceIdDataSourcesDataSourceIdRunPost (dataSourceId: string, namespaceId: string, computedViewRunRequest?: ComputedViewRunRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
191
191
|
const localVarPath = this.basePath + '/v1/namespaces/{namespaceId}/data-sources/{dataSourceId}/_run'
|
|
192
192
|
.replace('{' + 'dataSourceId' + '}', encodeURIComponent(String(dataSourceId)))
|
|
193
193
|
.replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId)));
|
|
@@ -242,13 +242,12 @@ export class QueryResourceApi {
|
|
|
242
242
|
localVarRequestOptions.form = localVarFormParams;
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
245
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
246
246
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
247
247
|
if (error) {
|
|
248
248
|
reject(error);
|
|
249
249
|
} else {
|
|
250
250
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
251
|
-
body = ObjectSerializer.deserialize(body, "V1NamespacesNamespaceIdDataSourcesDataSourceIdPreviewPost200Response");
|
|
252
251
|
resolve({ response: response, body: body });
|
|
253
252
|
} else {
|
|
254
253
|
reject(new HttpError(response, body, response.statusCode));
|
package/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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'
|
package/package.json
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@explo-tech/fido-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Fido api",
|
|
5
|
+
"homepage": "https://github.com/trust-kaz/fido",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
|
-
"url": "
|
|
9
|
+
"url": "hhttps://github.com/trust-kaz/fido"
|
|
9
10
|
},
|
|
10
11
|
"publishConfig": {
|
|
11
12
|
"registry": "https://registry.npmjs.org"
|
|
12
|
-
}
|
|
13
|
-
"files": [
|
|
14
|
-
"model/",
|
|
15
|
-
"api/",
|
|
16
|
-
"api.ts"
|
|
17
|
-
]
|
|
13
|
+
}
|
|
18
14
|
}
|