nana800-code-action 1.0.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/LICENSE +21 -0
- package/README.md +79 -0
- package/dist/main.cjs.js +2578 -0
- package/dist/main.d.ts +16 -0
- package/dist/main.esm.js +2561 -0
- package/package.json +50 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Andreas Linnert
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, 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,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Nana800 Code Action from NANA800.io 🍺
|
|
2
|
+
|
|
3
|
+
This tool allows you to run block chains inside your schemas on the platform NANA800.io through the "code action" trigger.
|
|
4
|
+
NANA800.io is a low-code platform for technical projects. Quickly create projects without writing code.
|
|
5
|
+
|
|
6
|
+
### Detail Documentation
|
|
7
|
+
|
|
8
|
+
[NANA800 Documentation 📊](https://nana800.gitbook.io/doc/features/remote-config-peremennye)
|
|
9
|
+
|
|
10
|
+
### Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
yarn add nana800-code-action
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
or
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm i nana800-code-action
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Usage
|
|
23
|
+
|
|
24
|
+
#### For JavaScript/TypeScript projects:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { nana800CodeAction } from "nana800-code-action"
|
|
28
|
+
|
|
29
|
+
const codeActionResponse = await nana800CodeAction.startTriggerAction({
|
|
30
|
+
api_key: 'string',
|
|
31
|
+
scheme_id: 'string',
|
|
32
|
+
code_action_slug: 'string',
|
|
33
|
+
payload: {},
|
|
34
|
+
})
|
|
35
|
+
console.log({codeActionResponse})
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### For HTML/JS projects:
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<script src="https://s3.timeweb.cloud/c14a1252-bekender-files/cdn_libraries/nana800-code-action.cjs.js"></script>
|
|
42
|
+
|
|
43
|
+
<script>
|
|
44
|
+
const codeActionResponse = await nana800CodeAction.startTriggerAction({
|
|
45
|
+
api_key: 'string',
|
|
46
|
+
scheme_id: 'string',
|
|
47
|
+
code_action_slug: 'string',
|
|
48
|
+
payload: {},
|
|
49
|
+
})
|
|
50
|
+
console.log({codeActionResponse})
|
|
51
|
+
</script>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
#### For other platforms (cURL):
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
curl --location 'https://api.nana800.io/runner/run_code_action_trigger/<api_key>/<scheme_id>/<code_action_trigger_slug>' \
|
|
58
|
+
--header 'Content-Type: application/json' \
|
|
59
|
+
--data '{}'
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## FAQ
|
|
63
|
+
|
|
64
|
+
### Where is the API key ("api_key"):
|
|
65
|
+
Get your API key from: https://cloud.nana800.io/settings
|
|
66
|
+
|
|
67
|
+
### Where is the "scheme_id":
|
|
68
|
+
Get your scheme id after creating a no-code scheme on nana800.io
|
|
69
|
+
|
|
70
|
+
### What is "code_action_slug":
|
|
71
|
+
It is a no-code block scheme name, managed by you.
|
|
72
|
+
|
|
73
|
+
## Contacts
|
|
74
|
+
|
|
75
|
+
No-Code & Business & Analytics Cloud Platform [NANA800.io](https://nana800.io)
|
|
76
|
+
|
|
77
|
+
Platform Console [CLOUD.NANA800.io](https://cloud.nana800.io)
|
|
78
|
+
|
|
79
|
+
Platform Documentation [NANA800 Documentation](https://nana800.gitbook.io/doc)
|