@justbrunasso/n8n-nodes-glpi-v2 1.0.7 → 2.0.3
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.md +19 -19
- package/README.md +0 -247
- package/dist/{nodes/GlpiV2/GlpiV2.credentials.d.ts → credentials/GlpiV2Api.credentials.d.ts} +3 -3
- package/dist/credentials/GlpiV2Api.credentials.js +68 -0
- package/dist/credentials/GlpiV2Api.credentials.js.map +1 -0
- package/dist/icons/glpi.dark.svg +10 -0
- package/dist/icons/glpi.svg +10 -0
- package/dist/nodes/GlpiV2/GlpiApi.node.json +18 -0
- package/dist/nodes/GlpiV2/GlpiV2.node.d.ts +2 -1
- package/dist/nodes/GlpiV2/GlpiV2.node.js +431 -27
- package/dist/nodes/GlpiV2/GlpiV2.node.js.map +1 -1
- package/dist/nodes/GlpiV2/glpi.dark.svg +10 -0
- package/dist/nodes/GlpiV2/glpi_v2.svg +10 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/create.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/create.js +287 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/create.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/delete.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/delete.js +31 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/delete.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/get.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/get.js +30 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/get.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/group.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/group.js +45 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/group.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/index.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/index.js +90 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/index.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/options.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/options.js +20 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/options.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/profile.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/profile.js +58 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/profile.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/update.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/update.js +354 -0
- package/dist/nodes/GlpiV2/resources/Administration Management/update.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/create.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/create.js +20 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/create.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/delete.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/delete.js +31 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/delete.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/get.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/get.js +30 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/get.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/index.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/index.js +67 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/index.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/options.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/options.js +20 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/options.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/update.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/update.js +31 -0
- package/dist/nodes/GlpiV2/resources/Asset Management/update.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/comment.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/comment.js +55 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/comment.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/create.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/create.js +153 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/create.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/delete.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/delete.js +31 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/delete.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/get.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/get.js +31 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/get.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/index.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/index.js +85 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/index.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/options.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/options.js +20 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/options.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/solve.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/solve.js +53 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/solve.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/update.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/update.js +162 -0
- package/dist/nodes/GlpiV2/resources/Assistance Management/update.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Management/create.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Management/create.js +20 -0
- package/dist/nodes/GlpiV2/resources/Management/create.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Management/delete.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Management/delete.js +31 -0
- package/dist/nodes/GlpiV2/resources/Management/delete.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Management/get.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Management/get.js +30 -0
- package/dist/nodes/GlpiV2/resources/Management/get.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Management/index.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Management/index.js +71 -0
- package/dist/nodes/GlpiV2/resources/Management/index.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Management/options.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Management/options.js +20 -0
- package/dist/nodes/GlpiV2/resources/Management/options.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Management/update.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Management/update.js +31 -0
- package/dist/nodes/GlpiV2/resources/Management/update.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Other Actions/customApiCall.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Other Actions/customApiCall.js +86 -0
- package/dist/nodes/GlpiV2/resources/Other Actions/customApiCall.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Other Actions/index.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Other Actions/index.js +29 -0
- package/dist/nodes/GlpiV2/resources/Other Actions/index.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/create.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/create.js +19 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/create.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/delete.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/delete.js +31 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/delete.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/get.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/get.js +33 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/get.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/index.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/index.js +81 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/index.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/options.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/options.js +20 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/options.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/update.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/update.js +33 -0
- package/dist/nodes/GlpiV2/resources/Setup Management/update.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/create.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/create.js +80 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/create.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/delete.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/delete.js +31 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/delete.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/get.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/get.js +33 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/get.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/index.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/index.js +74 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/index.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/options.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/options.js +283 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/options.js.map +1 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/update.d.ts +2 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/update.js +33 -0
- package/dist/nodes/GlpiV2/resources/Tool Management/update.js.map +1 -0
- package/dist/package.json +32 -18
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +53 -39
- package/LICENSE +0 -21
- package/dist/credentials/GithubIssuesApi.credentials.d.ts +0 -10
- package/dist/credentials/GithubIssuesApi.credentials.js +0 -37
- package/dist/credentials/GithubIssuesApi.credentials.js.map +0 -1
- package/dist/credentials/GithubIssuesOAuth2Api.credentials.d.ts +0 -9
- package/dist/credentials/GithubIssuesOAuth2Api.credentials.js +0 -54
- package/dist/credentials/GithubIssuesOAuth2Api.credentials.js.map +0 -1
- package/dist/icons/github.dark.svg +0 -3
- package/dist/icons/github.svg +0 -3
- package/dist/nodes/GlpiV2/GlpiV2.credentials.js +0 -82
- package/dist/nodes/GlpiV2/GlpiV2.credentials.js.map +0 -1
- package/dist/nodes/GlpiV2/GlpiV2.svg +0 -5
- package/dist/nodes/GlpiV2/resources/computer/create.d.ts +0 -10
- package/dist/nodes/GlpiV2/resources/computer/create.js +0 -45
- package/dist/nodes/GlpiV2/resources/computer/create.js.map +0 -1
- package/dist/nodes/GlpiV2/resources/computer/delete.d.ts +0 -10
- package/dist/nodes/GlpiV2/resources/computer/delete.js +0 -39
- package/dist/nodes/GlpiV2/resources/computer/delete.js.map +0 -1
- package/dist/nodes/GlpiV2/resources/computer/get.d.ts +0 -10
- package/dist/nodes/GlpiV2/resources/computer/get.js +0 -39
- package/dist/nodes/GlpiV2/resources/computer/get.js.map +0 -1
- package/dist/nodes/GlpiV2/resources/computer/getAll.d.ts +0 -10
- package/dist/nodes/GlpiV2/resources/computer/getAll.js +0 -63
- package/dist/nodes/GlpiV2/resources/computer/getAll.js.map +0 -1
- package/dist/nodes/GlpiV2/resources/computer/index.d.ts +0 -3
- package/dist/nodes/GlpiV2/resources/computer/index.js +0 -62
- package/dist/nodes/GlpiV2/resources/computer/index.js.map +0 -1
- package/dist/nodes/GlpiV2/resources/computer/update.d.ts +0 -10
- package/dist/nodes/GlpiV2/resources/computer/update.js +0 -57
- package/dist/nodes/GlpiV2/resources/computer/update.js.map +0 -1
package/LICENSE.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
Copyright 2022 n8n
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
-
the Software without restriction, including without limitation the rights to
|
|
6
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
-
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
-
so, subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in all
|
|
11
|
-
copies or substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
-
SOFTWARE.
|
|
1
|
+
Copyright 2022 n8n
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# n8n-nodes-starter
|
|
4
|
-
|
|
5
|
-
This starter repository helps you build custom integrations for [n8n](https://n8n.io). It includes example nodes, credentials, the node linter, and all the tooling you need to get started.
|
|
6
|
-
|
|
7
|
-
## Quick Start
|
|
8
|
-
|
|
9
|
-
> [!TIP]
|
|
10
|
-
> **New to building n8n nodes?** The fastest way to get started is with `npm create @n8n/node`. This command scaffolds a complete node package for you using the [@n8n/node-cli](https://www.npmjs.com/package/@n8n/node-cli).
|
|
11
|
-
|
|
12
|
-
**To create a new node package from scratch:**
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
npm create @n8n/node
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
**Already using this starter? Start developing with:**
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
npm run dev
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
This starts n8n with your nodes loaded and hot reload enabled.
|
|
25
|
-
|
|
26
|
-
## What's Included
|
|
27
|
-
|
|
28
|
-
This starter repository includes two example nodes to learn from:
|
|
29
|
-
|
|
30
|
-
- **[Example Node](nodes/Example/)** - A simple starter node that shows the basic structure with a custom `execute` method
|
|
31
|
-
- **[GitHub Issues Node](nodes/GithubIssues/)** - A complete, production-ready example built using the **declarative style**:
|
|
32
|
-
- **Low-code approach** - Define operations declaratively without writing request logic
|
|
33
|
-
- Multiple resources (Issues, Comments)
|
|
34
|
-
- Multiple operations (Get, Get All, Create)
|
|
35
|
-
- Two authentication methods (OAuth2 and Personal Access Token)
|
|
36
|
-
- List search functionality for dynamic dropdowns
|
|
37
|
-
- Proper error handling and typing
|
|
38
|
-
- Ideal for HTTP API-based integrations
|
|
39
|
-
|
|
40
|
-
> [!TIP]
|
|
41
|
-
> The declarative/low-code style (used in GitHub Issues) is the recommended approach for building nodes that interact with HTTP APIs. It significantly reduces boilerplate code and handles requests automatically.
|
|
42
|
-
|
|
43
|
-
Browse these examples to understand both approaches, then modify them or create your own.
|
|
44
|
-
|
|
45
|
-
## Finding Inspiration
|
|
46
|
-
|
|
47
|
-
Looking for more examples? Check out these resources:
|
|
48
|
-
|
|
49
|
-
- **[npm Community Nodes](https://www.npmjs.com/search?q=keywords:n8n-community-node-package)** - Browse thousands of community-built nodes on npm using the `n8n-community-node-package` tag
|
|
50
|
-
- **[n8n Built-in Nodes](https://github.com/n8n-io/n8n/tree/master/packages/nodes-base/nodes)** - Study the source code of n8n's official nodes for production-ready patterns and best practices
|
|
51
|
-
- **[n8n Credentials](https://github.com/n8n-io/n8n/tree/master/packages/nodes-base/credentials)** - See how authentication is implemented for various services
|
|
52
|
-
|
|
53
|
-
These are excellent resources to understand how to structure your nodes, handle different API patterns, and implement advanced features.
|
|
54
|
-
|
|
55
|
-
## Prerequisites
|
|
56
|
-
|
|
57
|
-
Before you begin, install the following on your development machine:
|
|
58
|
-
|
|
59
|
-
### Required
|
|
60
|
-
|
|
61
|
-
- **[Node.js](https://nodejs.org/)** (v22 or higher) and npm
|
|
62
|
-
- Linux/Mac/WSL: Install via [nvm](https://github.com/nvm-sh/nvm)
|
|
63
|
-
- Windows: Follow [Microsoft's NodeJS guide](https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows)
|
|
64
|
-
- **[git](https://git-scm.com/downloads)**
|
|
65
|
-
|
|
66
|
-
### Recommended
|
|
67
|
-
|
|
68
|
-
- Follow n8n's [development environment setup guide](https://docs.n8n.io/integrations/creating-nodes/build/node-development-environment/)
|
|
69
|
-
|
|
70
|
-
> [!NOTE]
|
|
71
|
-
> The `@n8n/node-cli` is included as a dev dependency and will be installed automatically when you run `npm install`. The CLI includes n8n for local development, so you don't need to install n8n globally.
|
|
72
|
-
|
|
73
|
-
## Getting Started with this Starter
|
|
74
|
-
|
|
75
|
-
Follow these steps to create your own n8n community node package:
|
|
76
|
-
|
|
77
|
-
### 1. Create Your Repository
|
|
78
|
-
|
|
79
|
-
[Generate a new repository](https://github.com/n8n-io/n8n-nodes-starter/generate) from this template, then clone it:
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
git clone https://github.com/<your-organization>/<your-repo-name>.git
|
|
83
|
-
cd <your-repo-name>
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### 2. Install Dependencies
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
npm install
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
This installs all required dependencies including the `@n8n/node-cli`.
|
|
93
|
-
|
|
94
|
-
### 3. Explore the Examples
|
|
95
|
-
|
|
96
|
-
Browse the example nodes in [nodes/](nodes/) and [credentials/](credentials/) to understand the structure:
|
|
97
|
-
|
|
98
|
-
- Start with [nodes/Example/](nodes/Example/) for a basic node
|
|
99
|
-
- Study [nodes/GithubIssues/](nodes/GithubIssues/) for a real-world implementation
|
|
100
|
-
|
|
101
|
-
### 4. Build Your Node
|
|
102
|
-
|
|
103
|
-
Edit the example nodes to fit your use case, or create new node files by copying the structure from [nodes/Example/](nodes/Example/).
|
|
104
|
-
|
|
105
|
-
> [!TIP]
|
|
106
|
-
> If you want to scaffold a completely new node package, use `npm create @n8n/node` to start fresh with the CLI's interactive generator.
|
|
107
|
-
|
|
108
|
-
### 5. Configure Your Package
|
|
109
|
-
|
|
110
|
-
Update `package.json` with your details:
|
|
111
|
-
|
|
112
|
-
- `name` - Your package name (must start with `n8n-nodes-`)
|
|
113
|
-
- `author` - Your name and email
|
|
114
|
-
- `repository` - Your repository URL
|
|
115
|
-
- `description` - What your node does
|
|
116
|
-
|
|
117
|
-
Make sure your node is registered in the `n8n.nodes` array.
|
|
118
|
-
|
|
119
|
-
### 6. Develop and Test Locally
|
|
120
|
-
|
|
121
|
-
Start n8n with your node loaded:
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
npm run dev
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
This command runs `n8n-node dev` which:
|
|
128
|
-
|
|
129
|
-
- Builds your node with watch mode
|
|
130
|
-
- Starts n8n with your node available
|
|
131
|
-
- Automatically rebuilds when you make changes
|
|
132
|
-
- Opens n8n in your browser (usually http://localhost:5678)
|
|
133
|
-
|
|
134
|
-
You can now test your node in n8n workflows!
|
|
135
|
-
|
|
136
|
-
> [!NOTE]
|
|
137
|
-
> Learn more about CLI commands in the [@n8n/node-cli documentation](https://www.npmjs.com/package/@n8n/node-cli).
|
|
138
|
-
|
|
139
|
-
### 7. Lint Your Code
|
|
140
|
-
|
|
141
|
-
Check for errors:
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
npm run lint
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
Auto-fix issues when possible:
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
npm run lint:fix
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### 8. Build for Production
|
|
154
|
-
|
|
155
|
-
When ready to publish:
|
|
156
|
-
|
|
157
|
-
```bash
|
|
158
|
-
npm run build
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
This compiles your TypeScript code to the `dist/` folder.
|
|
162
|
-
|
|
163
|
-
### 9. Prepare for Publishing
|
|
164
|
-
|
|
165
|
-
Before publishing:
|
|
166
|
-
|
|
167
|
-
1. **Update documentation**: Replace this README with your node's documentation. Use [README_TEMPLATE.md](README_TEMPLATE.md) as a starting point.
|
|
168
|
-
2. **Update the LICENSE**: Add your details to the [LICENSE](LICENSE.md) file.
|
|
169
|
-
3. **Test thoroughly**: Ensure your node works in different scenarios.
|
|
170
|
-
|
|
171
|
-
### 10. Publish to npm
|
|
172
|
-
|
|
173
|
-
Publish your package to make it available to the n8n community:
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
npm publish
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
Learn more about [publishing to npm](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry).
|
|
180
|
-
|
|
181
|
-
### 11. Submit for Verification (Optional)
|
|
182
|
-
|
|
183
|
-
Get your node verified for n8n Cloud:
|
|
184
|
-
|
|
185
|
-
1. Ensure your node meets the [requirements](https://docs.n8n.io/integrations/creating-nodes/deploy/submit-community-nodes/):
|
|
186
|
-
- Uses MIT license ✅ (included in this starter)
|
|
187
|
-
- No external package dependencies
|
|
188
|
-
- Follows n8n's design guidelines
|
|
189
|
-
- Passes quality and security review
|
|
190
|
-
|
|
191
|
-
2. Submit through the [n8n Creator Portal](https://creators.n8n.io/nodes)
|
|
192
|
-
|
|
193
|
-
**Benefits of verification:**
|
|
194
|
-
|
|
195
|
-
- Available directly in n8n Cloud
|
|
196
|
-
- Discoverable in the n8n nodes panel
|
|
197
|
-
- Verified badge for quality assurance
|
|
198
|
-
- Increased visibility in the n8n community
|
|
199
|
-
|
|
200
|
-
## Available Scripts
|
|
201
|
-
|
|
202
|
-
This starter includes several npm scripts to streamline development:
|
|
203
|
-
|
|
204
|
-
| Script | Description |
|
|
205
|
-
| --------------------- | ---------------------------------------------------------------- |
|
|
206
|
-
| `npm run dev` | Start n8n with your node and watch for changes (runs `n8n-node dev`) |
|
|
207
|
-
| `npm run build` | Compile TypeScript to JavaScript for production (runs `n8n-node build`) |
|
|
208
|
-
| `npm run build:watch` | Build in watch mode (auto-rebuild on changes) |
|
|
209
|
-
| `npm run lint` | Check your code for errors and style issues (runs `n8n-node lint`) |
|
|
210
|
-
| `npm run lint:fix` | Automatically fix linting issues when possible (runs `n8n-node lint --fix`) |
|
|
211
|
-
| `npm run release` | Create a new release (runs `n8n-node release`) |
|
|
212
|
-
|
|
213
|
-
> [!TIP]
|
|
214
|
-
> These scripts use the [@n8n/node-cli](https://www.npmjs.com/package/@n8n/node-cli) under the hood. You can also run CLI commands directly, e.g., `npx n8n-node dev`.
|
|
215
|
-
|
|
216
|
-
## Troubleshooting
|
|
217
|
-
|
|
218
|
-
### My node doesn't appear in n8n
|
|
219
|
-
|
|
220
|
-
1. Make sure you ran `npm install` to install dependencies
|
|
221
|
-
2. Check that your node is listed in `package.json` under `n8n.nodes`
|
|
222
|
-
3. Restart the dev server with `npm run dev`
|
|
223
|
-
4. Check the console for any error messages
|
|
224
|
-
|
|
225
|
-
### Linting errors
|
|
226
|
-
|
|
227
|
-
Run `npm run lint:fix` to automatically fix most common issues. For remaining errors, check the [n8n node development guidelines](https://docs.n8n.io/integrations/creating-nodes/).
|
|
228
|
-
|
|
229
|
-
### TypeScript errors
|
|
230
|
-
|
|
231
|
-
Make sure you're using Node.js v22 or higher and have run `npm install` to get all type definitions.
|
|
232
|
-
|
|
233
|
-
## Resources
|
|
234
|
-
|
|
235
|
-
- **[n8n Node Documentation](https://docs.n8n.io/integrations/creating-nodes/)** - Complete guide to building nodes
|
|
236
|
-
- **[n8n Community Forum](https://community.n8n.io/)** - Get help and share your nodes
|
|
237
|
-
- **[@n8n/node-cli Documentation](https://www.npmjs.com/package/@n8n/node-cli)** - CLI tool reference
|
|
238
|
-
- **[n8n Creator Portal](https://creators.n8n.io/nodes)** - Submit your node for verification
|
|
239
|
-
- **[Submit Community Nodes Guide](https://docs.n8n.io/integrations/creating-nodes/deploy/submit-community-nodes/)** - Verification requirements and process
|
|
240
|
-
|
|
241
|
-
## Contributing
|
|
242
|
-
|
|
243
|
-
Have suggestions for improving this starter? [Open an issue](https://github.com/n8n-io/n8n-nodes-starter/issues) or submit a pull request!
|
|
244
|
-
|
|
245
|
-
## License
|
|
246
|
-
|
|
247
|
-
[MIT](https://github.com/n8n-io/n8n-nodes-starter/blob/master/LICENSE.md)
|
package/dist/{nodes/GlpiV2/GlpiV2.credentials.d.ts → credentials/GlpiV2Api.credentials.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
1
|
+
import type { ICredentialType, ICredentialTestRequest, INodeProperties, Icon } from 'n8n-workflow';
|
|
2
2
|
export declare class GlpiV2Api implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
|
-
extends: string[];
|
|
5
4
|
displayName: string;
|
|
6
|
-
icon:
|
|
5
|
+
icon: Icon;
|
|
7
6
|
documentationUrl: string;
|
|
7
|
+
test: ICredentialTestRequest;
|
|
8
8
|
properties: INodeProperties[];
|
|
9
9
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlpiV2Api = void 0;
|
|
4
|
+
class GlpiV2Api {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'glpiV2Api';
|
|
7
|
+
this.displayName = 'GLPI V2 API';
|
|
8
|
+
this.icon = { light: 'file:../icons/glpi.svg', dark: 'file:../icons/glpi.dark.svg' };
|
|
9
|
+
this.documentationUrl = 'https://atendimento.centrium.com.br/api.php/v2.1/doc.JSON';
|
|
10
|
+
this.test = {
|
|
11
|
+
request: {
|
|
12
|
+
url: '={{$credentials.host.replace(/\\/+$/, "") + "/api.php"}}/token',
|
|
13
|
+
method: 'POST',
|
|
14
|
+
headers: {
|
|
15
|
+
'Content-Type': 'application/json',
|
|
16
|
+
},
|
|
17
|
+
body: '={ "grant_type": "password", "client_id": "{{$credentials.clientId}}", "client_secret": "{{$credentials.clientSecret}}", "username": "{{$credentials.username}}", "password": "{{$credentials.password}}" }',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
this.properties = [
|
|
21
|
+
{
|
|
22
|
+
displayName: 'GLPI URL',
|
|
23
|
+
name: 'host',
|
|
24
|
+
type: 'string',
|
|
25
|
+
default: '',
|
|
26
|
+
placeholder: 'https://glpi.example.com',
|
|
27
|
+
required: true,
|
|
28
|
+
description: 'URL base do GLPI (sem /api.php/v.21 - será adicionado automaticamente)',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Client ID',
|
|
32
|
+
name: 'clientId',
|
|
33
|
+
type: 'string',
|
|
34
|
+
required: true,
|
|
35
|
+
default: '',
|
|
36
|
+
description: 'Client ID gerado no GLPI (Setup > OAuth Clients)',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Client Secret',
|
|
40
|
+
name: 'clientSecret',
|
|
41
|
+
type: 'string',
|
|
42
|
+
typeOptions: { password: true },
|
|
43
|
+
required: true,
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'Client Secret gerado no GLPI',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Username',
|
|
49
|
+
name: 'username',
|
|
50
|
+
type: 'string',
|
|
51
|
+
required: true,
|
|
52
|
+
default: '',
|
|
53
|
+
description: 'Usuário do GLPI a ser autenticado',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
displayName: 'Password',
|
|
57
|
+
name: 'password',
|
|
58
|
+
type: 'string',
|
|
59
|
+
typeOptions: { password: true },
|
|
60
|
+
required: true,
|
|
61
|
+
default: '',
|
|
62
|
+
description: 'Senha do usuário do GLPI',
|
|
63
|
+
},
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.GlpiV2Api = GlpiV2Api;
|
|
68
|
+
//# sourceMappingURL=GlpiV2Api.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlpiV2Api.credentials.js","sourceRoot":"","sources":["../../credentials/GlpiV2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,SAAS;IAAtB;QACC,SAAI,GAAG,WAAW,CAAC;QAEnB,gBAAW,GAAG,aAAa,CAAC;QAE5B,SAAI,GAAS,EAAE,KAAK,EAAE,wBAAwB,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;QAEtF,qBAAgB,GAAG,2DAA2D,CAAC;QAE/E,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,GAAG,EAAE,gEAAgE;gBACrE,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE;oBACR,cAAc,EAAE,kBAAkB;iBAClC;gBACD,IAAI,EAAE,6MAA6M;aACnN;SACD,CAAC;QAEF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;gBACvC,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,wEAAwE;aACrF;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,kDAAkD;aAC/D;YACD;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,8BAA8B;aAC3C;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,mCAAmC;aAChD;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;aACvC;SACD,CAAC;IACH,CAAC;CAAA;AAjED,8BAiEC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="400px" height="400px" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
4
|
+
<g><path style="opacity:0.998" fill="#02a4f7" d="M 347.5,350.5 C 347.389,349.883 347.056,349.383 346.5,349C 252.999,348.168 159.666,348.334 66.5,349.5C 58.2547,347.089 52.7547,341.756 50,333.5C 49.5,239.167 49.3333,144.834 49.5,50.5C 49.1238,39.4198 54.1238,31.9198 64.5,28C 162.167,27.3333 259.833,27.3333 357.5,28C 364.758,30.9241 369.592,36.0908 372,43.5C 372.667,140.167 372.667,236.833 372,333.5C 368.094,345.23 359.928,350.897 347.5,350.5 Z"/></g>
|
|
5
|
+
<g><path style="opacity:0.967" fill="#b3e3fc" d="M 49.5,50.5 C 49.3333,144.834 49.5,239.167 50,333.5C 52.7547,341.756 58.2547,347.089 66.5,349.5C 159.332,350.499 252.332,350.833 345.5,350.5C 345.378,363.484 338.711,371.318 325.5,374C 231.167,374.667 136.833,374.667 42.5,374C 32.6363,372.469 26.1363,366.969 23,357.5C 22.3333,260.833 22.3333,164.167 23,67.5C 27.3292,54.6509 36.1625,48.9842 49.5,50.5 Z"/></g>
|
|
6
|
+
<g><path style="opacity:1" fill="#fdfefe" d="M 230.5,240.5 C 243.677,244.978 257.344,247.644 271.5,248.5C 282.146,249.209 292.813,249.709 303.5,250C 304,250.5 304.5,251 305,251.5C 305.667,258.5 305.667,265.5 305,272.5C 304.692,273.308 304.192,273.975 303.5,274.5C 277.183,277.138 250.85,277.138 224.5,274.5C 212.773,273.088 201.106,270.755 189.5,267.5C 162.168,260.974 140.001,246.641 123,224.5C 105.396,192.967 105.062,161.3 122,129.5C 135.358,110.83 152.858,97.3296 174.5,89C 217.836,72.7836 262.336,67.9503 308,74.5C 308.812,81.7471 308.646,88.9138 307.5,96C 280.874,94.7827 254.874,98.116 229.5,106C 184.235,124.367 169.068,156.867 184,203.5C 193.873,222.859 209.373,235.192 230.5,240.5 Z"/></g>
|
|
7
|
+
<g><path style="opacity:1" fill="#bbe4fc" d="M 271.5,248.5 C 257.344,247.644 243.677,244.978 230.5,240.5C 241.694,233.477 251.194,224.477 259,213.5C 265.346,204.794 268.679,195.127 269,184.5C 264.979,180.601 260.145,178.434 254.5,178C 237.912,175.954 221.246,174.954 204.5,175C 201.808,172.368 202.141,170.034 205.5,168C 227.216,159.654 249.55,153.654 272.5,150C 281.546,149.193 290.546,149.526 299.5,151C 318.543,156.918 325.043,169.418 319,188.5C 311.29,206.217 299.79,221.051 284.5,233C 278.5,237.667 272.5,242.333 266.5,247C 268.382,247.198 270.048,247.698 271.5,248.5 Z"/></g>
|
|
8
|
+
<g><path style="opacity:1" fill="#bce5fc" d="M 189.5,267.5 C 201.106,270.755 212.773,273.088 224.5,274.5C 222.473,274.338 220.473,274.505 218.5,275C 196.078,286.362 173.078,296.362 149.5,305C 137.502,308.553 125.835,312.887 114.5,318C 107.457,319.404 105.79,317.071 109.5,311C 137.709,298.563 165.042,284.563 191.5,269C 190.584,268.722 189.918,268.222 189.5,267.5 Z"/></g>
|
|
9
|
+
<g><path style="opacity:1" fill="#23a8f7" d="M 347.5,350.5 C 346.833,350.5 346.167,350.5 345.5,350.5C 252.332,350.833 159.332,350.499 66.5,349.5C 159.666,348.334 252.999,348.168 346.5,349C 347.056,349.383 347.389,349.883 347.5,350.5 Z"/></g>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="400px" height="400px" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
4
|
+
<g><path style="opacity:0.998" fill="#02a4f7" d="M 347.5,350.5 C 347.389,349.883 347.056,349.383 346.5,349C 252.999,348.168 159.666,348.334 66.5,349.5C 58.2547,347.089 52.7547,341.756 50,333.5C 49.5,239.167 49.3333,144.834 49.5,50.5C 49.1238,39.4198 54.1238,31.9198 64.5,28C 162.167,27.3333 259.833,27.3333 357.5,28C 364.758,30.9241 369.592,36.0908 372,43.5C 372.667,140.167 372.667,236.833 372,333.5C 368.094,345.23 359.928,350.897 347.5,350.5 Z"/></g>
|
|
5
|
+
<g><path style="opacity:0.967" fill="#b3e3fc" d="M 49.5,50.5 C 49.3333,144.834 49.5,239.167 50,333.5C 52.7547,341.756 58.2547,347.089 66.5,349.5C 159.332,350.499 252.332,350.833 345.5,350.5C 345.378,363.484 338.711,371.318 325.5,374C 231.167,374.667 136.833,374.667 42.5,374C 32.6363,372.469 26.1363,366.969 23,357.5C 22.3333,260.833 22.3333,164.167 23,67.5C 27.3292,54.6509 36.1625,48.9842 49.5,50.5 Z"/></g>
|
|
6
|
+
<g><path style="opacity:1" fill="#fdfefe" d="M 230.5,240.5 C 243.677,244.978 257.344,247.644 271.5,248.5C 282.146,249.209 292.813,249.709 303.5,250C 304,250.5 304.5,251 305,251.5C 305.667,258.5 305.667,265.5 305,272.5C 304.692,273.308 304.192,273.975 303.5,274.5C 277.183,277.138 250.85,277.138 224.5,274.5C 212.773,273.088 201.106,270.755 189.5,267.5C 162.168,260.974 140.001,246.641 123,224.5C 105.396,192.967 105.062,161.3 122,129.5C 135.358,110.83 152.858,97.3296 174.5,89C 217.836,72.7836 262.336,67.9503 308,74.5C 308.812,81.7471 308.646,88.9138 307.5,96C 280.874,94.7827 254.874,98.116 229.5,106C 184.235,124.367 169.068,156.867 184,203.5C 193.873,222.859 209.373,235.192 230.5,240.5 Z"/></g>
|
|
7
|
+
<g><path style="opacity:1" fill="#bbe4fc" d="M 271.5,248.5 C 257.344,247.644 243.677,244.978 230.5,240.5C 241.694,233.477 251.194,224.477 259,213.5C 265.346,204.794 268.679,195.127 269,184.5C 264.979,180.601 260.145,178.434 254.5,178C 237.912,175.954 221.246,174.954 204.5,175C 201.808,172.368 202.141,170.034 205.5,168C 227.216,159.654 249.55,153.654 272.5,150C 281.546,149.193 290.546,149.526 299.5,151C 318.543,156.918 325.043,169.418 319,188.5C 311.29,206.217 299.79,221.051 284.5,233C 278.5,237.667 272.5,242.333 266.5,247C 268.382,247.198 270.048,247.698 271.5,248.5 Z"/></g>
|
|
8
|
+
<g><path style="opacity:1" fill="#bce5fc" d="M 189.5,267.5 C 201.106,270.755 212.773,273.088 224.5,274.5C 222.473,274.338 220.473,274.505 218.5,275C 196.078,286.362 173.078,296.362 149.5,305C 137.502,308.553 125.835,312.887 114.5,318C 107.457,319.404 105.79,317.071 109.5,311C 137.709,298.563 165.042,284.563 191.5,269C 190.584,268.722 189.918,268.222 189.5,267.5 Z"/></g>
|
|
9
|
+
<g><path style="opacity:1" fill="#23a8f7" d="M 347.5,350.5 C 346.833,350.5 346.167,350.5 345.5,350.5C 252.332,350.833 159.332,350.499 66.5,349.5C 159.666,348.334 252.999,348.168 346.5,349C 347.056,349.383 347.389,349.883 347.5,350.5 Z"/></g>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-glpi",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Productivity", "IT Management"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://github.com/glpi-project/glpi/blob/master/apirest.md"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://github.com/glpi-project/glpi/blob/master/apirest.md"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
2
|
export declare class GlpiV2 implements INodeType {
|
|
3
3
|
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
4
5
|
}
|