@justbrunasso/n8n-nodes-glpi 1.0.12 → 1.0.14
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.MIT → LICENSE.md} +19 -21
- package/README.md +247 -109
- package/dist/credentials/GlpiApi.credentials.d.ts +10 -0
- package/dist/credentials/GlpiApi.credentials.js +80 -0
- package/dist/credentials/GlpiApi.credentials.js.map +1 -0
- package/dist/icons/github.dark.svg +3 -0
- package/dist/icons/github.svg +3 -0
- package/dist/icons/glpi.dark.svg +0 -0
- package/dist/icons/glpi.svg +0 -0
- package/dist/nodes/Glpi/Glpi.node.d.ts +2 -2
- package/dist/nodes/Glpi/Glpi.node.dark.svg +0 -0
- package/dist/nodes/Glpi/Glpi.node.js +278 -11
- package/dist/nodes/Glpi/Glpi.node.js.map +1 -1
- package/dist/nodes/Glpi/Glpi.node.json +13 -0
- package/dist/nodes/Glpi/Glpi.node.svg +0 -0
- package/dist/package.json +52 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +52 -38
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -13
- package/dist/index.js.map +0 -1
- package/dist/nodes/Glpi/Glpi.descriptions.d.ts +0 -3
- package/dist/nodes/Glpi/Glpi.descriptions.js +0 -76
- package/dist/nodes/Glpi/Glpi.descriptions.js.map +0 -1
- package/dist/nodes/Glpi/GlpiApi.credentials.d.ts +0 -7
- package/dist/nodes/Glpi/GlpiApi.credentials.js +0 -56
- package/dist/nodes/Glpi/GlpiApi.credentials.js.map +0 -1
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.glpiFields = exports.glpiOperations = void 0;
|
|
4
|
-
exports.glpiOperations = [
|
|
5
|
-
{
|
|
6
|
-
displayName: 'Operation',
|
|
7
|
-
name: 'operation',
|
|
8
|
-
type: 'options',
|
|
9
|
-
options: [
|
|
10
|
-
{ name: 'Init Session', value: 'initSession' },
|
|
11
|
-
{ name: 'Add Solution', value: 'addSolution' },
|
|
12
|
-
{ name: 'Search', value: 'search' },
|
|
13
|
-
],
|
|
14
|
-
default: 'search',
|
|
15
|
-
},
|
|
16
|
-
];
|
|
17
|
-
exports.glpiFields = [
|
|
18
|
-
{
|
|
19
|
-
displayName: 'Criteria',
|
|
20
|
-
name: 'criteria',
|
|
21
|
-
type: 'fixedCollection',
|
|
22
|
-
typeOptions: { multipleValues: true },
|
|
23
|
-
placeholder: 'Add Criterion',
|
|
24
|
-
description: 'One or more criteria for the search',
|
|
25
|
-
options: [
|
|
26
|
-
{
|
|
27
|
-
displayName: 'Criterion',
|
|
28
|
-
name: 'criterion',
|
|
29
|
-
values: [
|
|
30
|
-
{ displayName: 'Field', name: 'field', type: 'string', default: '' },
|
|
31
|
-
{
|
|
32
|
-
displayName: 'Search Type',
|
|
33
|
-
name: 'searchtype',
|
|
34
|
-
type: 'options',
|
|
35
|
-
options: [
|
|
36
|
-
{ name: 'contains', value: 'contains' },
|
|
37
|
-
{ name: 'equals', value: 'equals' },
|
|
38
|
-
],
|
|
39
|
-
default: 'contains',
|
|
40
|
-
},
|
|
41
|
-
{ displayName: 'Value', name: 'value', type: 'string', default: '' },
|
|
42
|
-
{
|
|
43
|
-
displayName: 'Glue',
|
|
44
|
-
name: 'glue',
|
|
45
|
-
type: 'options',
|
|
46
|
-
options: [
|
|
47
|
-
{ name: 'AND', value: 'AND' },
|
|
48
|
-
{ name: 'OR', value: 'OR' },
|
|
49
|
-
],
|
|
50
|
-
default: 'AND',
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
default: [],
|
|
56
|
-
displayOptions: {
|
|
57
|
-
show: {
|
|
58
|
-
operation: ['search'],
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
displayName: 'Solution Data',
|
|
64
|
-
name: 'solutionData',
|
|
65
|
-
type: 'string',
|
|
66
|
-
default: '',
|
|
67
|
-
placeholder: '{"name":"Solution name", "content":"..."}',
|
|
68
|
-
displayOptions: {
|
|
69
|
-
show: {
|
|
70
|
-
operation: ['addSolution'],
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
description: 'JSON body for adding a solution',
|
|
74
|
-
},
|
|
75
|
-
];
|
|
76
|
-
//# sourceMappingURL=Glpi.descriptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Glpi.descriptions.js","sourceRoot":"","sources":["../../../nodes/Glpi/Glpi.descriptions.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,EAAE;YAC9C,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,EAAE;YAC9C,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;SACnC;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,UAAU,GAAsB;IAC5C;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE;QACrC,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,WAAW;gBACjB,MAAM,EAAE;oBACP,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;oBACpE;wBACC,WAAW,EAAE,aAAa;wBAC1B,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACR,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;4BACvC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;yBACnC;wBACD,OAAO,EAAE,UAAU;qBACnB;oBACD,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;oBACpE;wBACC,WAAW,EAAE,MAAM;wBACnB,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACR,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;4BAC7B,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE;yBAC3B;wBACD,OAAO,EAAE,KAAK;qBACd;iBACD;aACD;SACD;QACD,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;KACD;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,2CAA2C;QACxD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,aAAa,CAAC;aAC1B;SACD;QACD,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GlpiApi = void 0;
|
|
4
|
-
class GlpiApi {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.name = 'glpiApi';
|
|
7
|
-
this.displayName = 'GLPI API';
|
|
8
|
-
this.documentationUrl = 'https://github.com/PhyBruno/n8n-nodes-glpi';
|
|
9
|
-
this.properties = [
|
|
10
|
-
{
|
|
11
|
-
displayName: 'Base URL',
|
|
12
|
-
name: 'baseUrl',
|
|
13
|
-
type: 'string',
|
|
14
|
-
default: '',
|
|
15
|
-
placeholder: 'https://glpi.example.com',
|
|
16
|
-
required: true,
|
|
17
|
-
description: 'Base URL sem o sufixo /apirest.php',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
displayName: 'App Token',
|
|
21
|
-
name: 'appToken',
|
|
22
|
-
type: 'string',
|
|
23
|
-
typeOptions: { password: true },
|
|
24
|
-
default: '',
|
|
25
|
-
required: true,
|
|
26
|
-
description: 'Token da aplicação (App-Token)',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
displayName: 'User Token',
|
|
30
|
-
name: 'userToken',
|
|
31
|
-
type: 'string',
|
|
32
|
-
typeOptions: { password: true },
|
|
33
|
-
default: '',
|
|
34
|
-
required: false,
|
|
35
|
-
description: 'Token do usuário (opcional). Se informado será enviado como Authorization: user_token <token>.',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
displayName: 'Username (Basic Auth)',
|
|
39
|
-
name: 'username',
|
|
40
|
-
type: 'string',
|
|
41
|
-
default: '',
|
|
42
|
-
required: false,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
displayName: 'Password (Basic Auth)',
|
|
46
|
-
name: 'password',
|
|
47
|
-
type: 'string',
|
|
48
|
-
typeOptions: { password: true },
|
|
49
|
-
default: '',
|
|
50
|
-
required: false,
|
|
51
|
-
},
|
|
52
|
-
];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.GlpiApi = GlpiApi;
|
|
56
|
-
//# sourceMappingURL=GlpiApi.credentials.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GlpiApi.credentials.js","sourceRoot":"","sources":["../../../nodes/Glpi/GlpiApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,OAAO;IAApB;QACC,SAAI,GAAG,SAAS,CAAC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