@hirosystems/token-metadata-api-client 1.0.0 → 1.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/api_test.spec.ts DELETED
@@ -1,53 +0,0 @@
1
- /**
2
- * Token Metadata API
3
- * Service that indexes metadata for every SIP-009, SIP-010, and SIP-013 Token in the Stacks blockchain and exposes it via REST API endpoints.
4
- *
5
- * OpenAPI spec version: v0.1.0
6
- *
7
- *
8
- * NOTE: This file is auto generated by the swagger code generator program.
9
- * https://github.com/swagger-api/swagger-codegen.git
10
- * Do not edit the file manually.
11
- */
12
-
13
- import * as api from "./api"
14
- import { Configuration } from "./configuration"
15
-
16
- const config: Configuration = {}
17
-
18
- describe("StatusApi", () => {
19
- let instance: api.StatusApi
20
- beforeEach(function() {
21
- instance = new api.StatusApi(config)
22
- });
23
-
24
- test("getApiStatus", () => {
25
- return expect(instance.getApiStatus({})).resolves.toBe(null)
26
- })
27
- })
28
-
29
- describe("TokensApi", () => {
30
- let instance: api.TokensApi
31
- beforeEach(function() {
32
- instance = new api.TokensApi(config)
33
- });
34
-
35
- test("getFtMetadata", () => {
36
- const principal: string = "principal_example"
37
- const locale: string = "locale_example"
38
- return expect(instance.getFtMetadata(principal, locale, {})).resolves.toBe(null)
39
- })
40
- test("getNftMetadata", () => {
41
- const principal: string = "principal_example"
42
- const tokenId: number = 56
43
- const locale: string = "locale_example"
44
- return expect(instance.getNftMetadata(principal, tokenId, locale, {})).resolves.toBe(null)
45
- })
46
- test("getSftMetadata", () => {
47
- const principal: string = "principal_example"
48
- const tokenId: number = 56
49
- const locale: string = "locale_example"
50
- return expect(instance.getSftMetadata(principal, tokenId, locale, {})).resolves.toBe(null)
51
- })
52
- })
53
-
package/git_push.sh DELETED
@@ -1,51 +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 swagger-petstore-perl "minor update"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
-
10
- if [ "$git_user_id" = "" ]; then
11
- git_user_id="GIT_USER_ID"
12
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
13
- fi
14
-
15
- if [ "$git_repo_id" = "" ]; then
16
- git_repo_id="GIT_REPO_ID"
17
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
18
- fi
19
-
20
- if [ "$release_note" = "" ]; then
21
- release_note="Minor update"
22
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
23
- fi
24
-
25
- # Initialize the local directory as a Git repository
26
- git init
27
-
28
- # Adds the files in the local repository and stages them for commit.
29
- git add .
30
-
31
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
32
- git commit -m "$release_note"
33
-
34
- # Sets the new remote
35
- git_remote=`git remote`
36
- if [ "$git_remote" = "" ]; then # git remote not defined
37
-
38
- if [ "$GIT_TOKEN" = "" ]; then
39
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
40
- git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
41
- else
42
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
43
- fi
44
-
45
- fi
46
-
47
- git pull origin master
48
-
49
- # Pushes (Forces) the changes in the local repository up to the remote repository
50
- echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
51
- git push origin master 2>&1 | grep -v 'To https'
package/tsconfig.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "declaration": true,
4
- "target": "es5",
5
- "module": "commonjs",
6
- "noImplicitAny": true,
7
- "outDir": "dist",
8
- "rootDir": ".",
9
- "lib": [
10
- "es6",
11
- "dom"
12
- ]
13
- },
14
- "exclude": [
15
- "dist",
16
- "node_modules",
17
- "**/*.spec.ts"
18
- ]
19
- }