@tailor-platform/function-types 0.1.1 → 0.2.0
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/README.md +19 -0
- package/package.json +4 -3
- package/{tailordb.d.ts → tailor.d.ts} +7 -0
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @tailor-platform/function-types
|
|
2
|
+
|
|
3
|
+
## Usage
|
|
4
|
+
|
|
5
|
+
Install package.
|
|
6
|
+
```sh
|
|
7
|
+
npm i -D @tailor-platform/function-types
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Add types to `tsconfig.json`.
|
|
11
|
+
```
|
|
12
|
+
{
|
|
13
|
+
...
|
|
14
|
+
"compilerOptions": {
|
|
15
|
+
...
|
|
16
|
+
"types": ["@tailor-platform/function-types"]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
```
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/function-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "TypeScript types for Tailor Platform Function service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/tailor-platform/function"
|
|
7
|
+
"url": "https://github.com/tailor-platform/function",
|
|
8
|
+
"directory": "packages/types"
|
|
8
9
|
},
|
|
9
|
-
"types": "./
|
|
10
|
+
"types": "./tailor.d.ts",
|
|
10
11
|
"author": ""
|
|
11
12
|
}
|
|
@@ -29,3 +29,10 @@ declare namespace Tailordb {
|
|
|
29
29
|
declare const tailordb: {
|
|
30
30
|
Client: typeof Tailordb.Client;
|
|
31
31
|
};
|
|
32
|
+
|
|
33
|
+
declare namespace tailor.secretmanager {
|
|
34
|
+
// getSecrets returns multiple secret objects(key=name, value=secret) at once according to vault, names
|
|
35
|
+
function getSecrets(vault: string, names: string[]): Promise<Record<string, string>>
|
|
36
|
+
// getSecret returns a secret according to vault, name
|
|
37
|
+
function getSecret(vault: string, name: string): Promise<string>
|
|
38
|
+
}
|