@justbrunasso/n8n-nodes-glpi 1.0.33 → 1.0.35
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/dist/icons/glpi.dark.svg +1 -1
- package/dist/icons/glpi.svg +1 -1
- package/dist/nodes/GlpiApi/GlpiApi.node.js +57 -69
- package/dist/nodes/GlpiApi/GlpiApi.node.js.map +1 -1
- package/dist/nodes/GlpiApi/glpi.dark.svg +1 -1
- package/dist/nodes/GlpiApi/glpi.svg +1 -1
- package/dist/nodes/GlpiApi/resources/administration/create.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/administration/create.js +20 -0
- package/dist/nodes/GlpiApi/resources/administration/create.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/administration/get.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/administration/get.js +20 -0
- package/dist/nodes/GlpiApi/resources/administration/get.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/administration/group.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/administration/group.js +32 -0
- package/dist/nodes/GlpiApi/resources/administration/group.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/administration/index.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/administration/index.js +85 -0
- package/dist/nodes/GlpiApi/resources/administration/index.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/administration/profile.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/administration/profile.js +32 -0
- package/dist/nodes/GlpiApi/resources/administration/profile.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/administration/update.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/administration/update.js +31 -0
- package/dist/nodes/GlpiApi/resources/administration/update.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/create.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/create.js +20 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/create.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/get.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/get.js +20 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/get.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/index.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/index.js +71 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/index.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/update.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/update.js +31 -0
- package/dist/nodes/GlpiApi/resources/administrationManagement/update.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/create.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/create.js +20 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/create.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/get.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/get.js +20 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/get.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/index.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/index.js +75 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/index.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/update.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/update.js +31 -0
- package/dist/nodes/GlpiApi/resources/assetManagement/update.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/comment.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/comment.js +45 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/comment.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/create.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/create.js +20 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/create.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/get.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/get.js +20 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/get.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/index.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/index.js +69 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/index.js.map +1 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/update.d.ts +2 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/update.js +31 -0
- package/dist/nodes/GlpiApi/resources/itilObjects/update.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/icons/glpi.dark.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve"
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 512 360" width="512" height="360"><style>.st0{fill:#00a5f3}</style><g transform="translate(0 -151.37)"><path d="M253.9 328c-11.7 0-23.3-.3-35 0-7.3.3-9.9-1.7-8.7-9.5 7.1-48.7 13.7-97.4 20.6-146.2.2-1.2.4-2.3.6-3.4 2.5-17.8 2.5-17.6 20.2-17.2 6.7.1 8.8 2.6 7.8 9-3.7 26.3-7.5 52.5-11.1 78.8-2.8 19.7-5.3 39.2-8.3 58.8-.8 4.9.6 6 5.2 6 16-.2 32 .2 48.1-.2 6.8-.2 9.4 1.8 8.6 9-1.7 14.4-1.9 14.8-16.3 14.8zm220.9 0c-13.1 0-13.1-.3-11.2-13.3q11.1-76.95 21.6-153.9c.9-6.5 3.3-9.6 9.9-9h3.5c14.8 0 14.4 0 12.3 14.8-7.1 49.5-13.9 99.1-20.9 148.7-2 12.7-2.3 12.7-15.2 12.7m-76.3-176.3c-13.4.8-26.8.4-40.3 0-7.1-.2-10.2 2.1-11.2 9.7-6.8 51.1-14.1 102.2-21.3 153.2-1.9 13.4-2.1 13.4 10.9 13.4 13.9 0 13.9 0 15.7-13.6 1.2-9 2.7-17.9 3.6-26.9 2.5-22.9 2.5-22.9 25-22.9h3.5c34.2 0 59.4-22.2 64.1-55.9 3.3-26.6-12.8-59.2-50-57m-13 87.7c-2-.2-4.1 0-6.1 0-16.4 0-16.5 0-14.6-16.2 1.6-13.3 3.8-26.5 5.4-39.8.6-4.8 2.5-6.4 7.2-6.2 6.7.3 13.4 0 20.1 0 13.3 0 21.6 7.6 23.6 20.8 2.7 18.1-9.8 43.8-35.8 41.3h.2z" class="st0"/><path d="M128.5 308.4c-7.9-.6-15.7-2.3-23.1-4.9 19.7-11.1 33.1-27.1 38.2-49.3 1.4-6-2.7-9.1-7.8-11-10.2-3.8-21-4.2-31.8-4.6-5.4 0-10.8-.2-16.2-.8 16.4-7.2 33.7-12.3 51.4-15.1 9.1-1.8 18.6-1.8 27.7 0 12.6 3 19 12.8 16.1 25.4-4.5 19.5-19.1 31.5-33 43.9-6.6 6.1-14.3 11-21.5 16.4m-33.4 18.2-17.8-3.8c-.5 4.7-4.9 5.5-7.9 7.2-14.8 8.3-54.7 27.4-55.7 30.6 3 0 59.6-21.8 81.4-34" style="fill:#00a5f3;opacity:.6"/><path d="M104.1 176.7c19.2-7 39.1-8.9 59.3-8.8 4.9 0 9.3.8 9.6-6.4.3-6.6-2-9.3-8.8-9.7-19.5-1.1-39.1-.1-58.4 2.9-26.7 4-52.6 10.6-74.9 26.9C-2.5 206-10 252.8 14.2 286.4c5.3 7.4 12 13.7 19.6 18.7 13.3 8.5 28 14.5 43.4 17.7l17.8 3.8c22.3 2.1 44.6 3.9 67.1 1.9 7.4-.7 7.4-4.4 7.4-9.7.2-5.9-1.8-8.4-8.1-8.2-11.1.6-22.2-.1-33-2.2-7.9-.6-15.7-2.3-23.1-4.9-33.6-11.2-49.5-31.3-49.7-62.6-.1-30.9 16.3-52.4 48.5-64.2" class="st0"/></g></svg>
|
package/dist/icons/glpi.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve"
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 512 360" width="512" height="360"><style>.st0{fill:#00a5f3}</style><g transform="translate(0 -151.37)"><path d="M253.9 328c-11.7 0-23.3-.3-35 0-7.3.3-9.9-1.7-8.7-9.5 7.1-48.7 13.7-97.4 20.6-146.2.2-1.2.4-2.3.6-3.4 2.5-17.8 2.5-17.6 20.2-17.2 6.7.1 8.8 2.6 7.8 9-3.7 26.3-7.5 52.5-11.1 78.8-2.8 19.7-5.3 39.2-8.3 58.8-.8 4.9.6 6 5.2 6 16-.2 32 .2 48.1-.2 6.8-.2 9.4 1.8 8.6 9-1.7 14.4-1.9 14.8-16.3 14.8zm220.9 0c-13.1 0-13.1-.3-11.2-13.3q11.1-76.95 21.6-153.9c.9-6.5 3.3-9.6 9.9-9h3.5c14.8 0 14.4 0 12.3 14.8-7.1 49.5-13.9 99.1-20.9 148.7-2 12.7-2.3 12.7-15.2 12.7m-76.3-176.3c-13.4.8-26.8.4-40.3 0-7.1-.2-10.2 2.1-11.2 9.7-6.8 51.1-14.1 102.2-21.3 153.2-1.9 13.4-2.1 13.4 10.9 13.4 13.9 0 13.9 0 15.7-13.6 1.2-9 2.7-17.9 3.6-26.9 2.5-22.9 2.5-22.9 25-22.9h3.5c34.2 0 59.4-22.2 64.1-55.9 3.3-26.6-12.8-59.2-50-57m-13 87.7c-2-.2-4.1 0-6.1 0-16.4 0-16.5 0-14.6-16.2 1.6-13.3 3.8-26.5 5.4-39.8.6-4.8 2.5-6.4 7.2-6.2 6.7.3 13.4 0 20.1 0 13.3 0 21.6 7.6 23.6 20.8 2.7 18.1-9.8 43.8-35.8 41.3h.2z" class="st0"/><path d="M128.5 308.4c-7.9-.6-15.7-2.3-23.1-4.9 19.7-11.1 33.1-27.1 38.2-49.3 1.4-6-2.7-9.1-7.8-11-10.2-3.8-21-4.2-31.8-4.6-5.4 0-10.8-.2-16.2-.8 16.4-7.2 33.7-12.3 51.4-15.1 9.1-1.8 18.6-1.8 27.7 0 12.6 3 19 12.8 16.1 25.4-4.5 19.5-19.1 31.5-33 43.9-6.6 6.1-14.3 11-21.5 16.4m-33.4 18.2-17.8-3.8c-.5 4.7-4.9 5.5-7.9 7.2-14.8 8.3-54.7 27.4-55.7 30.6 3 0 59.6-21.8 81.4-34" style="fill:#00a5f3;opacity:.6"/><path d="M104.1 176.7c19.2-7 39.1-8.9 59.3-8.8 4.9 0 9.3.8 9.6-6.4.3-6.6-2-9.3-8.8-9.7-19.5-1.1-39.1-.1-58.4 2.9-26.7 4-52.6 10.6-74.9 26.9C-2.5 206-10 252.8 14.2 286.4c5.3 7.4 12 13.7 19.6 18.7 13.3 8.5 28 14.5 43.4 17.7l17.8 3.8c22.3 2.1 44.6 3.9 67.1 1.9 7.4-.7 7.4-4.4 7.4-9.7.2-5.9-1.8-8.4-8.1-8.2-11.1.6-22.2-.1-33-2.2-7.9-.6-15.7-2.3-23.1-4.9-33.6-11.2-49.5-31.3-49.7-62.6-.1-30.9 16.3-52.4 48.5-64.2" class="st0"/></g></svg>
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GlpiApi = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const itilObjects_1 = require("./resources/itilObjects");
|
|
6
|
+
const administration_1 = require("./resources/administration");
|
|
7
|
+
const assetManagement_1 = require("./resources/assetManagement");
|
|
8
|
+
const administrationManagement_1 = require("./resources/administrationManagement");
|
|
5
9
|
async function initSession(baseUrl, appToken, username, password) {
|
|
6
10
|
try {
|
|
7
11
|
const response = await this.helpers.httpRequest({
|
|
@@ -40,6 +44,7 @@ class GlpiApi {
|
|
|
40
44
|
icon: { light: 'file:glpi.svg', dark: 'file:glpi.dark.svg' },
|
|
41
45
|
group: ['transform'],
|
|
42
46
|
version: 1,
|
|
47
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
43
48
|
description: 'GLPI REST API',
|
|
44
49
|
defaults: {
|
|
45
50
|
name: 'GLPI API',
|
|
@@ -50,75 +55,30 @@ class GlpiApi {
|
|
|
50
55
|
credentials: [{ name: 'glpiApi', required: true }],
|
|
51
56
|
properties: [
|
|
52
57
|
{
|
|
53
|
-
displayName: '
|
|
54
|
-
name: '
|
|
58
|
+
displayName: 'Resource',
|
|
59
|
+
name: 'resource',
|
|
55
60
|
type: 'options',
|
|
56
61
|
noDataExpression: true,
|
|
57
62
|
options: [
|
|
58
|
-
{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
{ name: 'Change', value: 'Change' },
|
|
71
|
-
{ name: 'Computer', value: 'Computer' },
|
|
72
|
-
{ name: 'Problem', value: 'Problem' },
|
|
73
|
-
{ name: 'Software', value: 'Software' },
|
|
74
|
-
{ name: 'Ticket', value: 'Ticket' },
|
|
63
|
+
{
|
|
64
|
+
name: 'ITIL Object',
|
|
65
|
+
value: 'itilObjects',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'Administration',
|
|
69
|
+
value: 'administration',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'System Management',
|
|
73
|
+
value: 'systemManagement',
|
|
74
|
+
},
|
|
75
75
|
],
|
|
76
|
-
default: '
|
|
77
|
-
required: true,
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
displayName: 'Item ID',
|
|
81
|
-
name: 'itemId',
|
|
82
|
-
type: 'number',
|
|
83
|
-
displayOptions: {
|
|
84
|
-
show: { operation: ['get', 'update', 'comment'] },
|
|
85
|
-
},
|
|
86
|
-
default: 0,
|
|
87
|
-
description: 'ID do item a ser recuperado, atualizado ou comentado',
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
displayName: 'Payload (JSON)',
|
|
91
|
-
name: 'payload',
|
|
92
|
-
type: 'json',
|
|
93
|
-
default: '{}',
|
|
94
|
-
displayOptions: {
|
|
95
|
-
show: { operation: ['add', 'update'] },
|
|
96
|
-
},
|
|
97
|
-
description: 'Payload JSON para criar ou atualizar o item',
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
displayName: 'Comment',
|
|
101
|
-
name: 'comment',
|
|
102
|
-
type: 'string',
|
|
103
|
-
typeOptions: {
|
|
104
|
-
rows: 4,
|
|
105
|
-
},
|
|
106
|
-
displayOptions: {
|
|
107
|
-
show: { operation: ['comment'] },
|
|
108
|
-
},
|
|
109
|
-
default: '',
|
|
110
|
-
description: 'Conteúdo do comentário',
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
displayName: 'Private Comment',
|
|
114
|
-
name: 'isPrivate',
|
|
115
|
-
type: 'boolean',
|
|
116
|
-
default: false,
|
|
117
|
-
displayOptions: {
|
|
118
|
-
show: { operation: ['comment'] },
|
|
119
|
-
},
|
|
120
|
-
description: 'Whether the comment should be private',
|
|
76
|
+
default: 'itilObjects',
|
|
121
77
|
},
|
|
78
|
+
...itilObjects_1.itilObjectsDescription,
|
|
79
|
+
...administration_1.administrationDescription,
|
|
80
|
+
...assetManagement_1.assetManagementDescription,
|
|
81
|
+
...administrationManagement_1.administrationManagementDescription,
|
|
122
82
|
],
|
|
123
83
|
};
|
|
124
84
|
}
|
|
@@ -138,10 +98,38 @@ class GlpiApi {
|
|
|
138
98
|
};
|
|
139
99
|
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
140
100
|
try {
|
|
101
|
+
const resource = this.getNodeParameter('resource', itemIndex);
|
|
141
102
|
const operation = this.getNodeParameter('operation', itemIndex);
|
|
142
|
-
|
|
103
|
+
let itemtype;
|
|
104
|
+
if (resource === 'administration') {
|
|
105
|
+
if (operation === 'getGroup' || operation === 'createGroup' || operation === 'updateGroup') {
|
|
106
|
+
itemtype = 'Group';
|
|
107
|
+
}
|
|
108
|
+
else if (operation === 'getProfile' || operation === 'createProfile' || operation === 'updateProfile') {
|
|
109
|
+
itemtype = 'Profile';
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
itemtype = 'User';
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
else if (resource === 'assetManagement' || resource === 'administrationManagement') {
|
|
116
|
+
itemtype = this.getNodeParameter('itemtype', itemIndex) || '';
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
itemtype = this.getNodeParameter('itemtype', itemIndex) || '';
|
|
120
|
+
}
|
|
143
121
|
let options;
|
|
144
|
-
|
|
122
|
+
let normalizedOperation = operation;
|
|
123
|
+
if (operation === 'getGroup' || operation === 'getProfile') {
|
|
124
|
+
normalizedOperation = 'get';
|
|
125
|
+
}
|
|
126
|
+
else if (operation === 'createGroup' || operation === 'createProfile') {
|
|
127
|
+
normalizedOperation = 'create';
|
|
128
|
+
}
|
|
129
|
+
else if (operation === 'updateGroup' || operation === 'updateProfile') {
|
|
130
|
+
normalizedOperation = 'update';
|
|
131
|
+
}
|
|
132
|
+
if (normalizedOperation === 'get') {
|
|
145
133
|
const id = this.getNodeParameter('itemId', itemIndex, '');
|
|
146
134
|
options = {
|
|
147
135
|
method: 'GET',
|
|
@@ -150,7 +138,7 @@ class GlpiApi {
|
|
|
150
138
|
json: true,
|
|
151
139
|
};
|
|
152
140
|
}
|
|
153
|
-
else if (
|
|
141
|
+
else if (normalizedOperation === 'create') {
|
|
154
142
|
const payload = this.getNodeParameter('payload', itemIndex);
|
|
155
143
|
options = {
|
|
156
144
|
method: 'POST',
|
|
@@ -160,7 +148,7 @@ class GlpiApi {
|
|
|
160
148
|
json: true,
|
|
161
149
|
};
|
|
162
150
|
}
|
|
163
|
-
else if (
|
|
151
|
+
else if (normalizedOperation === 'update') {
|
|
164
152
|
const id = this.getNodeParameter('itemId', itemIndex);
|
|
165
153
|
const payload = this.getNodeParameter('payload', itemIndex);
|
|
166
154
|
options = {
|
|
@@ -199,7 +187,7 @@ class GlpiApi {
|
|
|
199
187
|
catch (error) {
|
|
200
188
|
if (this.continueOnFail()) {
|
|
201
189
|
returnData.push({
|
|
202
|
-
json: { error: error.message },
|
|
190
|
+
json: { error: error instanceof Error ? error.message : String(error) },
|
|
203
191
|
pairedItem: { item: itemIndex },
|
|
204
192
|
});
|
|
205
193
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlpiApi.node.js","sourceRoot":"","sources":["../../../nodes/GlpiApi/GlpiApi.node.ts"],"names":[],"mappings":";;;AAOA,+CAAyF;
|
|
1
|
+
{"version":3,"file":"GlpiApi.node.js","sourceRoot":"","sources":["../../../nodes/GlpiApi/GlpiApi.node.ts"],"names":[],"mappings":";;;AAOA,+CAAyF;AACzF,yDAAiE;AACjE,+DAAuE;AACvE,iEAAyE;AACzE,mFAA2F;AAK3F,KAAK,UAAU,WAAW,CAEzB,OAAe,EACf,QAAgB,EAChB,QAAgB,EAChB,QAAgB;IAEhB,IAAI,CAAC;QAEJ,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;YAC/C,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,GAAG,OAAO,cAAc;YAC7B,OAAO,EAAE;gBACR,WAAW,EAAE,QAAQ;aACrB;YACD,IAAI,EAAE;gBACL,QAAQ;gBACR,QAAQ;aACR;YACD,IAAI,EAAE,IAAI;SACV,CAAC,CAAC;QAEH,IAAI,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,CAAA,EAAE,CAAC;YAC9B,MAAM,IAAI,+BAAgB,CAAC,kEAAkE,EAAE;gBAC9F,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;QACJ,CAAC;QAED,OAAO,QAAQ,CAAC,aAAa,CAAC;IAC/B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,IAAI,KAAK,IAAI,OAAO,KAAK,KA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AAC,CAAC;gBACJ,CAAC;qBAAM,CAAC;oBACP,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE;wBACnD,SAAS;qBACT,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AA9KD,0BA8KC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve"
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 512 360" width="512" height="360"><style>.st0{fill:#00a5f3}</style><g transform="translate(0 -151.37)"><path d="M253.9 328c-11.7 0-23.3-.3-35 0-7.3.3-9.9-1.7-8.7-9.5 7.1-48.7 13.7-97.4 20.6-146.2.2-1.2.4-2.3.6-3.4 2.5-17.8 2.5-17.6 20.2-17.2 6.7.1 8.8 2.6 7.8 9-3.7 26.3-7.5 52.5-11.1 78.8-2.8 19.7-5.3 39.2-8.3 58.8-.8 4.9.6 6 5.2 6 16-.2 32 .2 48.1-.2 6.8-.2 9.4 1.8 8.6 9-1.7 14.4-1.9 14.8-16.3 14.8zm220.9 0c-13.1 0-13.1-.3-11.2-13.3q11.1-76.95 21.6-153.9c.9-6.5 3.3-9.6 9.9-9h3.5c14.8 0 14.4 0 12.3 14.8-7.1 49.5-13.9 99.1-20.9 148.7-2 12.7-2.3 12.7-15.2 12.7m-76.3-176.3c-13.4.8-26.8.4-40.3 0-7.1-.2-10.2 2.1-11.2 9.7-6.8 51.1-14.1 102.2-21.3 153.2-1.9 13.4-2.1 13.4 10.9 13.4 13.9 0 13.9 0 15.7-13.6 1.2-9 2.7-17.9 3.6-26.9 2.5-22.9 2.5-22.9 25-22.9h3.5c34.2 0 59.4-22.2 64.1-55.9 3.3-26.6-12.8-59.2-50-57m-13 87.7c-2-.2-4.1 0-6.1 0-16.4 0-16.5 0-14.6-16.2 1.6-13.3 3.8-26.5 5.4-39.8.6-4.8 2.5-6.4 7.2-6.2 6.7.3 13.4 0 20.1 0 13.3 0 21.6 7.6 23.6 20.8 2.7 18.1-9.8 43.8-35.8 41.3h.2z" class="st0"/><path d="M128.5 308.4c-7.9-.6-15.7-2.3-23.1-4.9 19.7-11.1 33.1-27.1 38.2-49.3 1.4-6-2.7-9.1-7.8-11-10.2-3.8-21-4.2-31.8-4.6-5.4 0-10.8-.2-16.2-.8 16.4-7.2 33.7-12.3 51.4-15.1 9.1-1.8 18.6-1.8 27.7 0 12.6 3 19 12.8 16.1 25.4-4.5 19.5-19.1 31.5-33 43.9-6.6 6.1-14.3 11-21.5 16.4m-33.4 18.2-17.8-3.8c-.5 4.7-4.9 5.5-7.9 7.2-14.8 8.3-54.7 27.4-55.7 30.6 3 0 59.6-21.8 81.4-34" style="fill:#00a5f3;opacity:.6"/><path d="M104.1 176.7c19.2-7 39.1-8.9 59.3-8.8 4.9 0 9.3.8 9.6-6.4.3-6.6-2-9.3-8.8-9.7-19.5-1.1-39.1-.1-58.4 2.9-26.7 4-52.6 10.6-74.9 26.9C-2.5 206-10 252.8 14.2 286.4c5.3 7.4 12 13.7 19.6 18.7 13.3 8.5 28 14.5 43.4 17.7l17.8 3.8c22.3 2.1 44.6 3.9 67.1 1.9 7.4-.7 7.4-4.4 7.4-9.7.2-5.9-1.8-8.4-8.1-8.2-11.1.6-22.2-.1-33-2.2-7.9-.6-15.7-2.3-23.1-4.9-33.6-11.2-49.5-31.3-49.7-62.6-.1-30.9 16.3-52.4 48.5-64.2" class="st0"/></g></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve"
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 512 360" width="512" height="360"><style>.st0{fill:#00a5f3}</style><g transform="translate(0 -151.37)"><path d="M253.9 328c-11.7 0-23.3-.3-35 0-7.3.3-9.9-1.7-8.7-9.5 7.1-48.7 13.7-97.4 20.6-146.2.2-1.2.4-2.3.6-3.4 2.5-17.8 2.5-17.6 20.2-17.2 6.7.1 8.8 2.6 7.8 9-3.7 26.3-7.5 52.5-11.1 78.8-2.8 19.7-5.3 39.2-8.3 58.8-.8 4.9.6 6 5.2 6 16-.2 32 .2 48.1-.2 6.8-.2 9.4 1.8 8.6 9-1.7 14.4-1.9 14.8-16.3 14.8zm220.9 0c-13.1 0-13.1-.3-11.2-13.3q11.1-76.95 21.6-153.9c.9-6.5 3.3-9.6 9.9-9h3.5c14.8 0 14.4 0 12.3 14.8-7.1 49.5-13.9 99.1-20.9 148.7-2 12.7-2.3 12.7-15.2 12.7m-76.3-176.3c-13.4.8-26.8.4-40.3 0-7.1-.2-10.2 2.1-11.2 9.7-6.8 51.1-14.1 102.2-21.3 153.2-1.9 13.4-2.1 13.4 10.9 13.4 13.9 0 13.9 0 15.7-13.6 1.2-9 2.7-17.9 3.6-26.9 2.5-22.9 2.5-22.9 25-22.9h3.5c34.2 0 59.4-22.2 64.1-55.9 3.3-26.6-12.8-59.2-50-57m-13 87.7c-2-.2-4.1 0-6.1 0-16.4 0-16.5 0-14.6-16.2 1.6-13.3 3.8-26.5 5.4-39.8.6-4.8 2.5-6.4 7.2-6.2 6.7.3 13.4 0 20.1 0 13.3 0 21.6 7.6 23.6 20.8 2.7 18.1-9.8 43.8-35.8 41.3h.2z" class="st0"/><path d="M128.5 308.4c-7.9-.6-15.7-2.3-23.1-4.9 19.7-11.1 33.1-27.1 38.2-49.3 1.4-6-2.7-9.1-7.8-11-10.2-3.8-21-4.2-31.8-4.6-5.4 0-10.8-.2-16.2-.8 16.4-7.2 33.7-12.3 51.4-15.1 9.1-1.8 18.6-1.8 27.7 0 12.6 3 19 12.8 16.1 25.4-4.5 19.5-19.1 31.5-33 43.9-6.6 6.1-14.3 11-21.5 16.4m-33.4 18.2-17.8-3.8c-.5 4.7-4.9 5.5-7.9 7.2-14.8 8.3-54.7 27.4-55.7 30.6 3 0 59.6-21.8 81.4-34" style="fill:#00a5f3;opacity:.6"/><path d="M104.1 176.7c19.2-7 39.1-8.9 59.3-8.8 4.9 0 9.3.8 9.6-6.4.3-6.6-2-9.3-8.8-9.7-19.5-1.1-39.1-.1-58.4 2.9-26.7 4-52.6 10.6-74.9 26.9C-2.5 206-10 252.8 14.2 286.4c5.3 7.4 12 13.7 19.6 18.7 13.3 8.5 28 14.5 43.4 17.7l17.8 3.8c22.3 2.1 44.6 3.9 67.1 1.9 7.4-.7 7.4-4.4 7.4-9.7.2-5.9-1.8-8.4-8.1-8.2-11.1.6-22.2-.1-33-2.2-7.9-.6-15.7-2.3-23.1-4.9-33.6-11.2-49.5-31.3-49.7-62.6-.1-30.9 16.3-52.4 48.5-64.2" class="st0"/></g></svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.administrationCreateDescription = void 0;
|
|
4
|
+
const showOnlyForAdministrationCreate = {
|
|
5
|
+
operation: ['create'],
|
|
6
|
+
resource: ['administration'],
|
|
7
|
+
};
|
|
8
|
+
exports.administrationCreateDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Payload (JSON)',
|
|
11
|
+
name: 'payload',
|
|
12
|
+
type: 'json',
|
|
13
|
+
default: '{}',
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForAdministrationCreate,
|
|
16
|
+
},
|
|
17
|
+
description: 'JSON payload to create the user',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/administration/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,+BAA+B,GAAG;IACvC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC;AAEW,QAAA,+BAA+B,GAAsB;IACjE;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE,+BAA+B;SACrC;QACD,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.administrationGetDescription = void 0;
|
|
4
|
+
const showOnlyForAdministrationGet = {
|
|
5
|
+
operation: ['get'],
|
|
6
|
+
resource: ['administration'],
|
|
7
|
+
};
|
|
8
|
+
exports.administrationGetDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'User ID',
|
|
11
|
+
name: 'itemId',
|
|
12
|
+
type: 'number',
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForAdministrationGet,
|
|
15
|
+
},
|
|
16
|
+
default: 0,
|
|
17
|
+
description: 'ID of the user to retrieve. Leave empty to get all users',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/administration/get.ts"],"names":[],"mappings":";;;AAEA,MAAM,4BAA4B,GAAG;IACpC,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC;AAEW,QAAA,4BAA4B,GAAsB;IAC9D;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,4BAA4B;SAClC;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,0DAA0D;KACvE;CACD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.administrationGroupDescription = void 0;
|
|
4
|
+
exports.administrationGroupDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Group ID',
|
|
7
|
+
name: 'itemId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['administration'],
|
|
12
|
+
operation: ['getGroup', 'updateGroup'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
default: 0,
|
|
16
|
+
description: 'ID of the group to retrieve or update. Leave empty to get all groups',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Payload (JSON)',
|
|
20
|
+
name: 'payload',
|
|
21
|
+
type: 'json',
|
|
22
|
+
default: '{}',
|
|
23
|
+
displayOptions: {
|
|
24
|
+
show: {
|
|
25
|
+
resource: ['administration'],
|
|
26
|
+
operation: ['createGroup', 'updateGroup'],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
description: 'JSON payload to create or update the group',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
//# sourceMappingURL=group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/administration/group.ts"],"names":[],"mappings":";;;AAEa,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,gBAAgB,CAAC;gBAC5B,SAAS,EAAE,CAAC,UAAU,EAAE,aAAa,CAAC;aACtC;SACD;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,sEAAsE;KACnF;IACD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,gBAAgB,CAAC;gBAC5B,SAAS,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;aACzC;SACD;QACD,WAAW,EAAE,4CAA4C;KACzD;CACD,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.administrationDescription = void 0;
|
|
4
|
+
const get_1 = require("./get");
|
|
5
|
+
const create_1 = require("./create");
|
|
6
|
+
const update_1 = require("./update");
|
|
7
|
+
const group_1 = require("./group");
|
|
8
|
+
const profile_1 = require("./profile");
|
|
9
|
+
const showOnlyForAdministration = {
|
|
10
|
+
resource: ['administration'],
|
|
11
|
+
};
|
|
12
|
+
exports.administrationDescription = [
|
|
13
|
+
{
|
|
14
|
+
displayName: 'Operation',
|
|
15
|
+
name: 'operation',
|
|
16
|
+
type: 'options',
|
|
17
|
+
noDataExpression: true,
|
|
18
|
+
displayOptions: {
|
|
19
|
+
show: showOnlyForAdministration,
|
|
20
|
+
},
|
|
21
|
+
options: [
|
|
22
|
+
{
|
|
23
|
+
name: 'Get a User',
|
|
24
|
+
value: 'get',
|
|
25
|
+
action: 'Get a user',
|
|
26
|
+
description: 'Get the data of a single user',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Create a User',
|
|
30
|
+
value: 'create',
|
|
31
|
+
action: 'Create a new user',
|
|
32
|
+
description: 'Create a new user',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Update a User',
|
|
36
|
+
value: 'update',
|
|
37
|
+
action: 'Update a user',
|
|
38
|
+
description: 'Update an existing user',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Get a Group',
|
|
42
|
+
value: 'getGroup',
|
|
43
|
+
action: 'Get a group',
|
|
44
|
+
description: 'Get the data of a single group',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Create a Group',
|
|
48
|
+
value: 'createGroup',
|
|
49
|
+
action: 'Create a new group',
|
|
50
|
+
description: 'Create a new group',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Update a Group',
|
|
54
|
+
value: 'updateGroup',
|
|
55
|
+
action: 'Update a group',
|
|
56
|
+
description: 'Update an existing group',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Get a Profile',
|
|
60
|
+
value: 'getProfile',
|
|
61
|
+
action: 'Get a profile',
|
|
62
|
+
description: 'Get the data of a single profile',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Create a Profile',
|
|
66
|
+
value: 'createProfile',
|
|
67
|
+
action: 'Create a new profile',
|
|
68
|
+
description: 'Create a new profile',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Update a Profile',
|
|
72
|
+
value: 'updateProfile',
|
|
73
|
+
action: 'Update a profile',
|
|
74
|
+
description: 'Update an existing profile',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
default: 'get',
|
|
78
|
+
},
|
|
79
|
+
...get_1.administrationGetDescription,
|
|
80
|
+
...create_1.administrationCreateDescription,
|
|
81
|
+
...update_1.administrationUpdateDescription,
|
|
82
|
+
...group_1.administrationGroupDescription,
|
|
83
|
+
...profile_1.administrationProfileDescription,
|
|
84
|
+
];
|
|
85
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/administration/index.ts"],"names":[],"mappings":";;;AACA,+BAAqD;AACrD,qCAA2D;AAC3D,qCAA2D;AAC3D,mCAAyD;AACzD,uCAA6D;AAE7D,MAAM,yBAAyB,GAAG;IACjC,QAAQ,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC;AAEW,QAAA,yBAAyB,GAAsB;IAC3D;QACC,W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;KACd;IACD,GAAG,kCAA4B;IAC/B,GAAG,wCAA+B;IAClC,GAAG,wCAA+B;IAClC,GAAG,sCAA8B;IACjC,GAAG,0CAAgC;CACnC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.administrationProfileDescription = void 0;
|
|
4
|
+
exports.administrationProfileDescription = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Profile ID',
|
|
7
|
+
name: 'itemId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['administration'],
|
|
12
|
+
operation: ['getProfile', 'updateProfile'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
default: 0,
|
|
16
|
+
description: 'ID of the profile to retrieve or update. Leave empty to get all profiles',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Payload (JSON)',
|
|
20
|
+
name: 'payload',
|
|
21
|
+
type: 'json',
|
|
22
|
+
default: '{}',
|
|
23
|
+
displayOptions: {
|
|
24
|
+
show: {
|
|
25
|
+
resource: ['administration'],
|
|
26
|
+
operation: ['createProfile', 'updateProfile'],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
description: 'JSON payload to create or update the profile',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
//# sourceMappingURL=profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/administration/profile.ts"],"names":[],"mappings":";;;AAEa,QAAA,gCAAgC,GAAsB;IAClE;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,gBAAgB,CAAC;gBAC5B,SAAS,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;aAC1C;SACD;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,0EAA0E;KACvF;IACD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,gBAAgB,CAAC;gBAC5B,SAAS,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;aAC7C;SACD;QACD,WAAW,EAAE,8CAA8C;KAC3D;CACD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.administrationUpdateDescription = void 0;
|
|
4
|
+
const showOnlyForAdministrationUpdate = {
|
|
5
|
+
operation: ['update'],
|
|
6
|
+
resource: ['administration'],
|
|
7
|
+
};
|
|
8
|
+
exports.administrationUpdateDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'User ID',
|
|
11
|
+
name: 'itemId',
|
|
12
|
+
type: 'number',
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForAdministrationUpdate,
|
|
15
|
+
},
|
|
16
|
+
default: 0,
|
|
17
|
+
required: true,
|
|
18
|
+
description: 'ID of the user to update',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Payload (JSON)',
|
|
22
|
+
name: 'payload',
|
|
23
|
+
type: 'json',
|
|
24
|
+
default: '{}',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: showOnlyForAdministrationUpdate,
|
|
27
|
+
},
|
|
28
|
+
description: 'JSON payload to update the user',
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/administration/update.ts"],"names":[],"mappings":";;;AAEA,MAAM,+BAA+B,GAAG;IACvC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,gBAAgB,CAAC;CAC5B,CAAC;AAEW,QAAA,+BAA+B,GAAsB;IACjE;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,+BAA+B;SACrC;QACD,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,0BAA0B;KACvC;IACD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE,+BAA+B;SACrC;QACD,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.administrationManagementCreateDescription = void 0;
|
|
4
|
+
const showOnlyForAdministrationManagementCreate = {
|
|
5
|
+
operation: ['create'],
|
|
6
|
+
resource: ['administrationManagement'],
|
|
7
|
+
};
|
|
8
|
+
exports.administrationManagementCreateDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Payload (JSON)',
|
|
11
|
+
name: 'payload',
|
|
12
|
+
type: 'json',
|
|
13
|
+
default: '{}',
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForAdministrationManagementCreate,
|
|
16
|
+
},
|
|
17
|
+
description: 'JSON payload to create the administration item',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/administrationManagement/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,yCAAyC,GAAG;IACjD,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,0BAA0B,CAAC;CACtC,CAAC;AAEW,QAAA,yCAAyC,GAAsB;IAC3E;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE,yCAAyC;SAC/C;QACD,WAAW,EAAE,gDAAgD;KAC7D;CACD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.administrationManagementGetDescription = void 0;
|
|
4
|
+
const showOnlyForAdministrationManagementGet = {
|
|
5
|
+
operation: ['get'],
|
|
6
|
+
resource: ['administrationManagement'],
|
|
7
|
+
};
|
|
8
|
+
exports.administrationManagementGetDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Item ID',
|
|
11
|
+
name: 'itemId',
|
|
12
|
+
type: 'number',
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForAdministrationManagementGet,
|
|
15
|
+
},
|
|
16
|
+
default: 0,
|
|
17
|
+
description: 'ID of the administration item to retrieve. Leave empty to get all items of the selected type',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/GlpiApi/resources/administrationManagement/get.ts"],"names":[],"mappings":";;;AAEA,MAAM,sCAAsC,GAAG;IAC9C,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,0BAA0B,CAAC;CACtC,CAAC;AAEW,QAAA,sCAAsC,GAAsB;IACxE;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sCAAsC;SAC5C;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,8FAA8F;KAC3G;CACD,CAAC"}
|