@seamapi/types 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.
- package/LICENSE.txt +20 -0
- package/README.md +155 -0
- package/index.d.ts +2 -0
- package/index.js +3 -0
- package/index.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/lib/todo.d.ts +1 -0
- package/lib/todo.js +2 -0
- package/lib/todo.js.map +1 -0
- package/package.json +77 -0
- package/src/index.ts +2 -0
- package/src/lib/index.ts +2 -0
- package/src/lib/todo.ts +1 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021-2023 Seam Labs, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# Seam API Types
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@seamapi/types)
|
|
4
|
+
[](https://github.com/seamapi/types/actions/workflows/check.yml)
|
|
5
|
+
|
|
6
|
+
TypeScript types for the Seam API.
|
|
7
|
+
|
|
8
|
+
## Description
|
|
9
|
+
|
|
10
|
+
TODO
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
Add this as a dependency to your project using [npm] with
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
$ npm install @seamapi/types
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[npm]: https://www.npmjs.com/
|
|
21
|
+
|
|
22
|
+
## Development and Testing
|
|
23
|
+
|
|
24
|
+
### Quickstart
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
$ git clone https://github.com/seamapi/types.git
|
|
28
|
+
$ cd types
|
|
29
|
+
$ nvm install
|
|
30
|
+
$ npm install
|
|
31
|
+
$ npm run test:watch
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Primary development tasks are defined under `scripts` in `package.json`
|
|
35
|
+
and available via `npm run`.
|
|
36
|
+
View them with
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
$ npm run
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Source code
|
|
43
|
+
|
|
44
|
+
The [source code] is hosted on GitHub.
|
|
45
|
+
Clone the project with
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
$ git clone git@github.com:seamapi/types.git
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
[source code]: https://github.com/seamapi/types
|
|
52
|
+
|
|
53
|
+
### Requirements
|
|
54
|
+
|
|
55
|
+
You will need [Node.js] with [npm] and a [Node.js debugging] client.
|
|
56
|
+
|
|
57
|
+
Be sure that all commands run under the correct Node version, e.g.,
|
|
58
|
+
if using [nvm], install the correct version with
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
$ nvm install
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Set the active version for each shell session with
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
$ nvm use
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Install the development dependencies with
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
$ npm install
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
[Node.js]: https://nodejs.org/
|
|
77
|
+
[Node.js debugging]: https://nodejs.org/en/docs/guides/debugging-getting-started/
|
|
78
|
+
[npm]: https://www.npmjs.com/
|
|
79
|
+
[nvm]: https://github.com/creationix/nvm
|
|
80
|
+
|
|
81
|
+
### Publishing
|
|
82
|
+
|
|
83
|
+
#### Automatic
|
|
84
|
+
|
|
85
|
+
New versions are released automatically with [semantic-release]
|
|
86
|
+
as long as commits follow the [Angular Commit Message Conventions].
|
|
87
|
+
|
|
88
|
+
[Angular Commit Message Conventions]: https://semantic-release.gitbook.io/semantic-release/#commit-message-format
|
|
89
|
+
[semantic-release]: https://semantic-release.gitbook.io/
|
|
90
|
+
|
|
91
|
+
#### Manual
|
|
92
|
+
|
|
93
|
+
Publish a new version by triggering a [version workflow_dispatch on GitHub Actions].
|
|
94
|
+
The `version` input will be passed as the first argument to [npm-version].
|
|
95
|
+
|
|
96
|
+
This may be done on the web or using the [GitHub CLI] with
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
$ gh workflow run version.yml --raw-field version=<version>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
[GitHub CLI]: https://cli.github.com/
|
|
103
|
+
[npm-version]: https://docs.npmjs.com/cli/version
|
|
104
|
+
[version workflow_dispatch on GitHub Actions]: https://github.com/seamapi/types/actions?query=workflow%3Aversion
|
|
105
|
+
|
|
106
|
+
## GitHub Actions
|
|
107
|
+
|
|
108
|
+
_GitHub Actions should already be configured: this section is for reference only._
|
|
109
|
+
|
|
110
|
+
The following repository secrets must be set on [GitHub Actions]:
|
|
111
|
+
|
|
112
|
+
- `NPM_TOKEN`: npm token for installing and publishing packages.
|
|
113
|
+
- `GH_TOKEN`: A personal access token for the bot user with
|
|
114
|
+
`packages:write` and `contents:write` permission.
|
|
115
|
+
- `GIT_USER_NAME`: The GitHub bot user's real name.
|
|
116
|
+
- `GIT_USER_EMAIL`: The GitHub bot user's email.
|
|
117
|
+
- `GPG_PRIVATE_KEY`: The GitHub bot user's [GPG private key].
|
|
118
|
+
- `GPG_PASSPHRASE`: The GitHub bot user's GPG passphrase.
|
|
119
|
+
|
|
120
|
+
[GitHub Actions]: https://github.com/features/actions
|
|
121
|
+
[GPG private key]: https://github.com/marketplace/actions/import-gpg#prerequisites
|
|
122
|
+
|
|
123
|
+
## Contributing
|
|
124
|
+
|
|
125
|
+
> If using squash merge, edit and ensure the commit message follows the [Angular Commit Message Conventions] specification.
|
|
126
|
+
> Otherwise, each individual commit must follow the [Angular Commit Message Conventions] specification.
|
|
127
|
+
|
|
128
|
+
1. Create your feature branch (`git checkout -b my-new-feature`).
|
|
129
|
+
2. Make changes.
|
|
130
|
+
3. Commit your changes (`git commit -am 'Add some feature'`).
|
|
131
|
+
4. Push to the branch (`git push origin my-new-feature`).
|
|
132
|
+
5. Create a new draft pull request.
|
|
133
|
+
6. Ensure all checks pass.
|
|
134
|
+
7. Mark your pull request ready for review.
|
|
135
|
+
8. Wait for the required approval from the code owners.
|
|
136
|
+
9. Merge when ready.
|
|
137
|
+
|
|
138
|
+
[Angular Commit Message Conventions]: https://semantic-release.gitbook.io/semantic-release/#commit-message-format
|
|
139
|
+
|
|
140
|
+
## License
|
|
141
|
+
|
|
142
|
+
This npm package is licensed under the MIT license.
|
|
143
|
+
|
|
144
|
+
## Warranty
|
|
145
|
+
|
|
146
|
+
This software is provided by the copyright holders and contributors "as is" and
|
|
147
|
+
any express or implied warranties, including, but not limited to, the implied
|
|
148
|
+
warranties of merchantability and fitness for a particular purpose are
|
|
149
|
+
disclaimed. In no event shall the copyright holder or contributors be liable for
|
|
150
|
+
any direct, indirect, incidental, special, exemplary, or consequential damages
|
|
151
|
+
(including, but not limited to, procurement of substitute goods or services;
|
|
152
|
+
loss of use, data, or profits; or business interruption) however caused and on
|
|
153
|
+
any theory of liability, whether in contract, strict liability, or tort
|
|
154
|
+
(including negligence or otherwise) arising in any way out of the use of this
|
|
155
|
+
software, even if advised of the possibility of such damage.
|
package/index.d.ts
ADDED
package/index.js
ADDED
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,cAAc,cAAc,CAAA"}
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA"}
|
package/lib/todo.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const todo: (x: string) => string;
|
package/lib/todo.js
ADDED
package/lib/todo.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"todo.js","sourceRoot":"","sources":["../src/lib/todo.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAS,EAAU,EAAE,CAAC,CAAC,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@seamapi/types",
|
|
3
|
+
"version": "0.0.4",
|
|
4
|
+
"description": "TypeScript types for the Seam API.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"types": "index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./index.js",
|
|
11
|
+
"types": "./index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"module": "index.js",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"keywords": [
|
|
17
|
+
"node"
|
|
18
|
+
],
|
|
19
|
+
"homepage": "https://github.com/seamapi/types",
|
|
20
|
+
"bugs": "https://github.com/seamapi/types/issues",
|
|
21
|
+
"repository": "seamapi/types",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": {
|
|
24
|
+
"name": "Seam Labs, Inc.",
|
|
25
|
+
"email": "devops@getseam.com"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"index.js",
|
|
29
|
+
"index.js.map",
|
|
30
|
+
"index.d.ts",
|
|
31
|
+
"lib",
|
|
32
|
+
"src",
|
|
33
|
+
"!**/*.test.ts"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "npm run build:ts",
|
|
37
|
+
"postbuild": "node ./index.js",
|
|
38
|
+
"build:ts": "tsc --project tsconfig.build.json",
|
|
39
|
+
"prebuild:ts": "del 'index.*' lib",
|
|
40
|
+
"postbuild:ts": "tsc-alias --project tsconfig.build.json",
|
|
41
|
+
"typecheck": "tsc",
|
|
42
|
+
"test": "c8 ava",
|
|
43
|
+
"pretest": "tsx src/index.ts",
|
|
44
|
+
"test:update": "ava --update-snapshots",
|
|
45
|
+
"test:watch": "ava --watch",
|
|
46
|
+
"test:debug": "ava debug --break",
|
|
47
|
+
"lint": "eslint --ignore-path .gitignore .",
|
|
48
|
+
"prelint": "prettier --check --ignore-path .gitignore .",
|
|
49
|
+
"postversion": "git push --follow-tags",
|
|
50
|
+
"example": "tsx examples",
|
|
51
|
+
"example:inspect": "tsx --inspect examples",
|
|
52
|
+
"format": "eslint --ignore-path .gitignore --fix .",
|
|
53
|
+
"preformat": "prettier --write --ignore-path .gitignore .",
|
|
54
|
+
"report": "c8 report"
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=16.13.0",
|
|
58
|
+
"npm": ">= 8.1.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@types/node": "^18.11.18",
|
|
62
|
+
"ava": "^5.0.1",
|
|
63
|
+
"c8": "^8.0.0",
|
|
64
|
+
"del-cli": "^5.0.0",
|
|
65
|
+
"eslint": "^8.9.0",
|
|
66
|
+
"eslint-config-prettier": "^8.4.0",
|
|
67
|
+
"eslint-config-standard": "^17.1.0",
|
|
68
|
+
"eslint-config-standard-with-typescript": "^36.0.0",
|
|
69
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
70
|
+
"eslint-plugin-unused-imports": "^2.0.0",
|
|
71
|
+
"landlubber": "^1.0.0",
|
|
72
|
+
"prettier": "^3.0.0",
|
|
73
|
+
"tsc-alias": "^1.8.2",
|
|
74
|
+
"tsx": "^3.12.1",
|
|
75
|
+
"typescript": "^5.0.2"
|
|
76
|
+
}
|
|
77
|
+
}
|
package/src/index.ts
ADDED
package/src/lib/index.ts
ADDED
package/src/lib/todo.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const todo = (x: string): string => x
|