n8n-nodes-halopsacomplete 1.0.0 → 1.2.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.
Files changed (77) hide show
  1. package/README.md +3 -0
  2. package/dist/credentials/HaloPSACompleteApiOAuth2OAuth2Api.credentials.d.ts +2 -1
  3. package/dist/credentials/HaloPSACompleteApiOAuth2OAuth2Api.credentials.js +4 -0
  4. package/dist/credentials/HaloPSACompleteApiOAuth2OAuth2Api.credentials.js.map +1 -1
  5. package/dist/nodes/HaloPSA/HaloPsa.node.d.ts +1 -0
  6. package/dist/nodes/HaloPSA/HaloPsa.node.js +38 -0
  7. package/dist/nodes/HaloPSA/HaloPsa.node.js.map +1 -1
  8. package/dist/nodes/HaloPSA/actions/Interfaces.d.ts +3 -2
  9. package/dist/nodes/HaloPSA/actions/actions/getAll/execute.js +4 -0
  10. package/dist/nodes/HaloPSA/actions/actions/getAll/execute.js.map +1 -1
  11. package/dist/nodes/HaloPSA/actions/agents/getAll/description.js +0 -30
  12. package/dist/nodes/HaloPSA/actions/agents/getAll/description.js.map +1 -1
  13. package/dist/nodes/HaloPSA/actions/agents/getAll/execute.js +11 -5
  14. package/dist/nodes/HaloPSA/actions/agents/getAll/execute.js.map +1 -1
  15. package/dist/nodes/HaloPSA/actions/assets/getAll/execute.js +4 -0
  16. package/dist/nodes/HaloPSA/actions/assets/getAll/execute.js.map +1 -1
  17. package/dist/nodes/HaloPSA/actions/client/getAll/execute.js +4 -0
  18. package/dist/nodes/HaloPSA/actions/client/getAll/execute.js.map +1 -1
  19. package/dist/nodes/HaloPSA/actions/router.js +4 -0
  20. package/dist/nodes/HaloPSA/actions/router.js.map +1 -1
  21. package/dist/nodes/HaloPSA/actions/tickets/getAll/execute.js +4 -0
  22. package/dist/nodes/HaloPSA/actions/tickets/getAll/execute.js.map +1 -1
  23. package/dist/nodes/HaloPSA/actions/users/create/description.d.ts +2 -0
  24. package/dist/nodes/HaloPSA/actions/users/create/description.js +189 -0
  25. package/dist/nodes/HaloPSA/actions/users/create/description.js.map +1 -0
  26. package/dist/nodes/HaloPSA/actions/users/create/execute.d.ts +3 -0
  27. package/dist/nodes/HaloPSA/actions/users/create/execute.js +34 -0
  28. package/dist/nodes/HaloPSA/actions/users/create/execute.js.map +1 -0
  29. package/dist/nodes/HaloPSA/actions/users/create/index.d.ts +2 -0
  30. package/dist/nodes/HaloPSA/actions/users/create/index.js +8 -0
  31. package/dist/nodes/HaloPSA/actions/users/create/index.js.map +1 -0
  32. package/dist/nodes/HaloPSA/actions/users/delete/description.d.ts +2 -0
  33. package/dist/nodes/HaloPSA/actions/users/delete/description.js +20 -0
  34. package/dist/nodes/HaloPSA/actions/users/delete/description.js.map +1 -0
  35. package/dist/nodes/HaloPSA/actions/users/delete/execute.d.ts +3 -0
  36. package/dist/nodes/HaloPSA/actions/users/delete/execute.js +18 -0
  37. package/dist/nodes/HaloPSA/actions/users/delete/execute.js.map +1 -0
  38. package/dist/nodes/HaloPSA/actions/users/delete/index.d.ts +2 -0
  39. package/dist/nodes/HaloPSA/actions/users/delete/index.js +8 -0
  40. package/dist/nodes/HaloPSA/actions/users/delete/index.js.map +1 -0
  41. package/dist/nodes/HaloPSA/actions/users/getAll/description.d.ts +2 -0
  42. package/dist/nodes/HaloPSA/actions/users/getAll/description.js +460 -0
  43. package/dist/nodes/HaloPSA/actions/users/getAll/description.js.map +1 -0
  44. package/dist/nodes/HaloPSA/actions/users/getAll/execute.d.ts +3 -0
  45. package/dist/nodes/HaloPSA/actions/users/getAll/execute.js +146 -0
  46. package/dist/nodes/HaloPSA/actions/users/getAll/execute.js.map +1 -0
  47. package/dist/nodes/HaloPSA/actions/users/getAll/index.d.ts +2 -0
  48. package/dist/nodes/HaloPSA/actions/users/getAll/index.js +8 -0
  49. package/dist/nodes/HaloPSA/actions/users/getAll/index.js.map +1 -0
  50. package/dist/nodes/HaloPSA/actions/users/getById/description.d.ts +2 -0
  51. package/dist/nodes/HaloPSA/actions/users/getById/description.js +146 -0
  52. package/dist/nodes/HaloPSA/actions/users/getById/description.js.map +1 -0
  53. package/dist/nodes/HaloPSA/actions/users/getById/execute.d.ts +3 -0
  54. package/dist/nodes/HaloPSA/actions/users/getById/execute.js +50 -0
  55. package/dist/nodes/HaloPSA/actions/users/getById/execute.js.map +1 -0
  56. package/dist/nodes/HaloPSA/actions/users/getById/index.d.ts +2 -0
  57. package/dist/nodes/HaloPSA/actions/users/getById/index.js +8 -0
  58. package/dist/nodes/HaloPSA/actions/users/getById/index.js.map +1 -0
  59. package/dist/nodes/HaloPSA/actions/users/index.d.ts +8 -0
  60. package/dist/nodes/HaloPSA/actions/users/index.js +98 -0
  61. package/dist/nodes/HaloPSA/actions/users/index.js.map +1 -0
  62. package/dist/nodes/HaloPSA/actions/users/update/description.d.ts +2 -0
  63. package/dist/nodes/HaloPSA/actions/users/update/description.js +182 -0
  64. package/dist/nodes/HaloPSA/actions/users/update/description.js.map +1 -0
  65. package/dist/nodes/HaloPSA/actions/users/update/execute.d.ts +3 -0
  66. package/dist/nodes/HaloPSA/actions/users/update/execute.js +30 -0
  67. package/dist/nodes/HaloPSA/actions/users/update/execute.js.map +1 -0
  68. package/dist/nodes/HaloPSA/actions/users/update/index.d.ts +2 -0
  69. package/dist/nodes/HaloPSA/actions/users/update/index.js +8 -0
  70. package/dist/nodes/HaloPSA/actions/users/update/index.js.map +1 -0
  71. package/dist/nodes/HaloPSA/transport.d.ts +1 -0
  72. package/dist/nodes/HaloPSA/transport.js +43 -0
  73. package/dist/nodes/HaloPSA/transport.js.map +1 -1
  74. package/dist/package.json +1 -1
  75. package/dist/tsconfig.tsbuildinfo +1 -1
  76. package/docs/users.md +131 -0
  77. package/package.json +1 -1
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createDescription = void 0;
4
+ exports.createDescription = [
5
+ {
6
+ displayName: 'Name',
7
+ name: 'name',
8
+ type: 'string',
9
+ displayOptions: {
10
+ show: {
11
+ resource: ['users'],
12
+ operation: ['create'],
13
+ },
14
+ },
15
+ default: '',
16
+ required: true,
17
+ description: 'The full name of the new user',
18
+ },
19
+ {
20
+ displayName: 'Email Address',
21
+ name: 'emailaddress',
22
+ type: 'string',
23
+ displayOptions: {
24
+ show: {
25
+ resource: ['users'],
26
+ operation: ['create'],
27
+ },
28
+ },
29
+ default: '',
30
+ required: true,
31
+ description: 'The email address for the new user',
32
+ },
33
+ {
34
+ displayName: 'Site ID',
35
+ name: 'site_id',
36
+ type: 'number',
37
+ displayOptions: {
38
+ show: {
39
+ resource: ['users'],
40
+ operation: ['create'],
41
+ },
42
+ },
43
+ default: 0,
44
+ required: true,
45
+ description: 'The site ID to which the user belongs',
46
+ },
47
+ {
48
+ displayName: 'Additional Fields',
49
+ name: 'additionalFields',
50
+ type: 'collection',
51
+ placeholder: 'Add Field',
52
+ default: {},
53
+ displayOptions: {
54
+ show: {
55
+ resource: ['users'],
56
+ operation: ['create'],
57
+ },
58
+ },
59
+ options: [
60
+ {
61
+ displayName: 'Client ID',
62
+ name: 'client_id',
63
+ type: 'number',
64
+ default: 0,
65
+ description: 'The client ID to which the user belongs',
66
+ },
67
+ {
68
+ displayName: 'Colour',
69
+ name: 'colour',
70
+ type: 'color',
71
+ default: '',
72
+ description: 'Colour code for the user (e.g., #e83c4a)',
73
+ },
74
+ {
75
+ displayName: 'First Name',
76
+ name: 'firstname',
77
+ type: 'string',
78
+ default: '',
79
+ description: 'The first name of the user',
80
+ },
81
+ {
82
+ displayName: 'Ignore Automated Billing',
83
+ name: 'ignoreautomatedbilling',
84
+ type: 'boolean',
85
+ default: false,
86
+ description: 'Whether to ignore automated billing for this user',
87
+ },
88
+ {
89
+ displayName: 'Inactive',
90
+ name: 'inactive',
91
+ type: 'boolean',
92
+ default: false,
93
+ description: 'Whether the user is inactive',
94
+ },
95
+ {
96
+ displayName: 'Initials',
97
+ name: 'initials',
98
+ type: 'string',
99
+ default: '',
100
+ description: 'The initials of the user',
101
+ },
102
+ {
103
+ displayName: 'Is Important Contact',
104
+ name: 'isimportantcontact',
105
+ type: 'boolean',
106
+ default: false,
107
+ description: 'Whether this is an important contact',
108
+ },
109
+ {
110
+ displayName: 'Is Important Contact 2',
111
+ name: 'isimportantcontact2',
112
+ type: 'boolean',
113
+ default: false,
114
+ description: 'Whether this is a secondary important contact',
115
+ },
116
+ {
117
+ displayName: 'Is Service Account',
118
+ name: 'isserviceaccount',
119
+ type: 'boolean',
120
+ default: false,
121
+ description: 'Whether this is a service account',
122
+ },
123
+ {
124
+ displayName: 'Linked Agent ID',
125
+ name: 'linked_agent_id',
126
+ type: 'number',
127
+ default: 0,
128
+ description: 'The ID of the linked agent',
129
+ },
130
+ {
131
+ displayName: 'Never Send Emails',
132
+ name: 'neversendemails',
133
+ type: 'boolean',
134
+ default: false,
135
+ description: 'Whether to never send emails to this user',
136
+ },
137
+ {
138
+ displayName: 'Phone Number',
139
+ name: 'phonenumber',
140
+ type: 'string',
141
+ default: '',
142
+ description: 'The phone number of the user',
143
+ },
144
+ {
145
+ displayName: 'Phone Number Preferred',
146
+ name: 'phonenumber_preferred',
147
+ type: 'string',
148
+ default: '',
149
+ description: 'The preferred phone number of the user',
150
+ },
151
+ {
152
+ displayName: 'Priority ID',
153
+ name: 'priority_id',
154
+ type: 'number',
155
+ default: 0,
156
+ description: 'The priority ID for the user',
157
+ },
158
+ {
159
+ displayName: 'Site Phone Number',
160
+ name: 'sitephonenumber',
161
+ type: 'string',
162
+ default: '',
163
+ description: 'Phone number associated with the site',
164
+ },
165
+ {
166
+ displayName: 'Surname',
167
+ name: 'surname',
168
+ type: 'string',
169
+ default: '',
170
+ description: 'The surname/last name of the user',
171
+ },
172
+ {
173
+ displayName: 'Tel Pref',
174
+ name: 'telpref',
175
+ type: 'number',
176
+ default: 0,
177
+ description: 'Telephone preference setting',
178
+ },
179
+ {
180
+ displayName: 'WhatsApp Number',
181
+ name: 'whatsapp_number',
182
+ type: 'string',
183
+ default: '',
184
+ description: 'The WhatsApp number of the user',
185
+ },
186
+ ],
187
+ },
188
+ ];
189
+ //# sourceMappingURL=description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../nodes/HaloPSA/actions/users/create/description.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,+BAA+B;KAC5C;IACD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,oCAAoC;KACjD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,uCAAuC;KACpD;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OA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AW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iCAAiC;aAC9C;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IExecuteFunctions } from 'n8n-workflow';
2
+ import { INodeExecutionData } from 'n8n-workflow';
3
+ export declare function execute(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.execute = execute;
4
+ const transport_1 = require("../../../transport");
5
+ async function execute(index) {
6
+ const name = this.getNodeParameter('name', index);
7
+ const emailaddress = this.getNodeParameter('emailaddress', index);
8
+ const site_id = this.getNodeParameter('site_id', index);
9
+ const additionalFields = this.getNodeParameter('additionalFields', index, {});
10
+ const body = {
11
+ name,
12
+ emailaddress,
13
+ site_id,
14
+ ...additionalFields,
15
+ };
16
+ try {
17
+ const response = await transport_1.apiRequest.call(this, 'POST', '/Users', [body], {});
18
+ let users = [];
19
+ if (Array.isArray(response)) {
20
+ users = response;
21
+ }
22
+ else if (response) {
23
+ users = [response];
24
+ }
25
+ return users.map((user) => ({
26
+ json: user,
27
+ pairedItem: { item: index },
28
+ }));
29
+ }
30
+ catch (error) {
31
+ throw error;
32
+ }
33
+ }
34
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../../nodes/HaloPSA/actions/users/create/execute.ts"],"names":[],"mappings":";;AAIA,0BAiCC;AAnCD,kDAAgD;AAEzC,KAAK,UAAU,OAAO,CAE5B,KAAa;IAEb,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAW,CAAC;IAC5D,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,KAAK,CAAW,CAAC;IAC5E,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,KAAK,CAAW,CAAC;IAClE,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,KAAK,EAAE,EAAE,CAAgB,CAAC;IAE7F,MAAM,IAAI,GAAG;QACZ,IAAI;QACJ,YAAY;QACZ,OAAO;QACP,GAAG,gBAAgB;KACnB,CAAC;IAEF,IAAI,CAAC;QACJ,MAAM,QAAQ,GAAG,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAE3E,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC7B,KAAK,GAAG,QAAQ,CAAC;QAClB,CAAC;aAAM,IAAI,QAAQ,EAAE,CAAC;YACrB,KAAK,GAAG,CAAC,QAAQ,CAAC,CAAC;QACpB,CAAC;QAED,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,CAAC;YAChC,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SAC3B,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createDescription as description } from './description';
2
+ export { execute } from './execute';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.execute = exports.description = void 0;
4
+ var description_1 = require("./description");
5
+ Object.defineProperty(exports, "description", { enumerable: true, get: function () { return description_1.createDescription; } });
6
+ var execute_1 = require("./execute");
7
+ Object.defineProperty(exports, "execute", { enumerable: true, get: function () { return execute_1.execute; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/HaloPSA/actions/users/create/index.ts"],"names":[],"mappings":";;;AAAA,6CAAiE;AAAxD,0GAAA,iBAAiB,OAAe;AACzC,qCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
@@ -0,0 +1,2 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ export declare const deleteDescription: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteDescription = void 0;
4
+ exports.deleteDescription = [
5
+ {
6
+ displayName: 'User ID',
7
+ name: 'id',
8
+ type: 'number',
9
+ displayOptions: {
10
+ show: {
11
+ resource: ['users'],
12
+ operation: ['delete'],
13
+ },
14
+ },
15
+ default: 0,
16
+ required: true,
17
+ description: 'The ID of the user to delete',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../nodes/HaloPSA/actions/users/delete/description.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,8BAA8B;KAC3C;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IExecuteFunctions } from 'n8n-workflow';
2
+ import { INodeExecutionData } from 'n8n-workflow';
3
+ export declare function execute(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.execute = execute;
4
+ const transport_1 = require("../../../transport");
5
+ async function execute(index) {
6
+ const id = this.getNodeParameter('id', index);
7
+ try {
8
+ await transport_1.apiRequest.call(this, 'DELETE', `/Users/${id}`, {}, {});
9
+ return [{
10
+ json: { success: true, id, deleted: true },
11
+ pairedItem: { item: index },
12
+ }];
13
+ }
14
+ catch (error) {
15
+ throw error;
16
+ }
17
+ }
18
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../../nodes/HaloPSA/actions/users/delete/execute.ts"],"names":[],"mappings":";;AAIA,0BAgBC;AAlBD,kDAAgD;AAEzC,KAAK,UAAU,OAAO,CAE5B,KAAa;IAEb,MAAM,EAAE,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAW,CAAC;IAExD,IAAI,CAAC;QACJ,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAE9D,OAAO,CAAC;gBACP,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBAC1C,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;aAC3B,CAAC,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,KAAK,CAAC;IACb,CAAC;AACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { deleteDescription as description } from './description';
2
+ export { execute } from './execute';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.execute = exports.description = void 0;
4
+ var description_1 = require("./description");
5
+ Object.defineProperty(exports, "description", { enumerable: true, get: function () { return description_1.deleteDescription; } });
6
+ var execute_1 = require("./execute");
7
+ Object.defineProperty(exports, "execute", { enumerable: true, get: function () { return execute_1.execute; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/HaloPSA/actions/users/delete/index.ts"],"names":[],"mappings":";;;AAAA,6CAAiE;AAAxD,0GAAA,iBAAiB,OAAe;AACzC,qCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
@@ -0,0 +1,2 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ export declare const getAllDescription: INodeProperties[];