n8n-nodes-arubaclearpass 1.1.8 → 1.1.10

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.
@@ -78,8 +78,8 @@ exports.roleFields = [
78
78
  },
79
79
  // Fields for name-based operations
80
80
  {
81
- displayName: 'Name',
82
- name: 'name',
81
+ displayName: 'Role Name',
82
+ name: 'roleName',
83
83
  type: 'string',
84
84
  required: true,
85
85
  default: '',
@@ -94,8 +94,8 @@ exports.roleFields = [
94
94
  },
95
95
  // Fields for create operation
96
96
  {
97
- displayName: 'Name',
98
- name: 'name',
97
+ displayName: 'Role Name',
98
+ name: 'roleName',
99
99
  type: 'string',
100
100
  required: true,
101
101
  default: '',
@@ -109,8 +109,8 @@ exports.roleFields = [
109
109
  description: 'Name of the role',
110
110
  },
111
111
  {
112
- displayName: 'Description',
113
- name: 'description',
112
+ displayName: 'Role Description',
113
+ name: 'roleDescription',
114
114
  type: 'string',
115
115
  required: false,
116
116
  default: '',
@@ -125,8 +125,8 @@ exports.roleFields = [
125
125
  },
126
126
  // Fields for replace operation
127
127
  {
128
- displayName: 'Name',
129
- name: 'name',
128
+ displayName: 'Role Name',
129
+ name: 'roleName',
130
130
  type: 'string',
131
131
  required: true,
132
132
  default: '',
@@ -140,8 +140,8 @@ exports.roleFields = [
140
140
  description: 'Name of the role',
141
141
  },
142
142
  {
143
- displayName: 'Description',
144
- name: 'description',
143
+ displayName: 'Role Description',
144
+ name: 'roleDescription',
145
145
  type: 'string',
146
146
  required: false,
147
147
  default: '',
@@ -78,7 +78,7 @@ async function getRole() {
78
78
  */
79
79
  async function getRoleByName() {
80
80
  try {
81
- const name = this.getNodeParameter('name', 0);
81
+ const name = this.getNodeParameter('roleName', 0);
82
82
  const endpoint = `/role/name/${name}`;
83
83
  const responseData = await apiRequest_1.apiRequest.call(this, 'GET', endpoint);
84
84
  return responseFormatter_1.formatResponse.call(this, responseData);
@@ -104,9 +104,9 @@ async function createRole() {
104
104
  try {
105
105
  const body = {};
106
106
  // Add required fields
107
- body.name = this.getNodeParameter('name', 0);
107
+ body.name = this.getNodeParameter('roleName', 0);
108
108
  // Add optional fields
109
- const description = this.getNodeParameter('description', 0, '');
109
+ const description = this.getNodeParameter('roleDescription', 0, '');
110
110
  if (description) {
111
111
  body.description = description;
112
112
  }
@@ -161,7 +161,7 @@ async function updateRole() {
161
161
  */
162
162
  async function updateRoleByName() {
163
163
  try {
164
- const name = this.getNodeParameter('name', 0);
164
+ const name = this.getNodeParameter('roleName', 0);
165
165
  const updateFields = this.getNodeParameter('updateFields', 0, {});
166
166
  if (!Object.keys(updateFields).length) {
167
167
  throw new Error('Please specify at least one field to update');
@@ -192,9 +192,9 @@ async function replaceRole() {
192
192
  const roleId = this.getNodeParameter('roleId', 0);
193
193
  const body = {};
194
194
  // Add required fields
195
- body.name = this.getNodeParameter('name', 0);
195
+ body.name = this.getNodeParameter('roleName', 0);
196
196
  // Add optional fields
197
- const description = this.getNodeParameter('description', 0, '');
197
+ const description = this.getNodeParameter('roleDescription', 0, '');
198
198
  if (description) {
199
199
  body.description = description;
200
200
  }
@@ -221,12 +221,12 @@ async function replaceRole() {
221
221
  */
222
222
  async function replaceRoleByName() {
223
223
  try {
224
- const name = this.getNodeParameter('name', 0);
224
+ const name = this.getNodeParameter('roleName', 0);
225
225
  const body = {};
226
226
  // Add required fields
227
- body.name = this.getNodeParameter('name', 0);
227
+ body.name = this.getNodeParameter('roleName', 0);
228
228
  // Add optional fields
229
- const description = this.getNodeParameter('description', 0, '');
229
+ const description = this.getNodeParameter('roleDescription', 0, '');
230
230
  if (description) {
231
231
  body.description = description;
232
232
  }
@@ -277,7 +277,7 @@ async function deleteRole() {
277
277
  */
278
278
  async function deleteRoleByName() {
279
279
  try {
280
- const name = this.getNodeParameter('name', 0);
280
+ const name = this.getNodeParameter('roleName', 0);
281
281
  const endpoint = `/role/name/${name}`;
282
282
  await apiRequest_1.apiRequest.call(this, 'DELETE', endpoint);
283
283
  return [{ json: { success: true } }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-arubaclearpass",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "n8n community node for Aruba ClearPass API integration with comprehensive identity, policy, and enforcement profile management",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",