@joshuanode/n8n-nodes-scalepad 0.0.1
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 +21 -0
- package/README.md +218 -0
- package/dist/credentials/ScalePadCoreApi.credentials.d.ts +9 -0
- package/dist/credentials/ScalePadCoreApi.credentials.js +60 -0
- package/dist/nodes/ScalePadCore/ScalePadCore.node.d.ts +6 -0
- package/dist/nodes/ScalePadCore/ScalePadCore.node.js +344 -0
- package/dist/nodes/ScalePadCore/descriptions/ClientDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/ClientDescription.js +227 -0
- package/dist/nodes/ScalePadCore/descriptions/ContactDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/ContactDescription.js +107 -0
- package/dist/nodes/ScalePadCore/descriptions/ContractDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/ContractDescription.js +121 -0
- package/dist/nodes/ScalePadCore/descriptions/HardwareAssetDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/HardwareAssetDescription.js +125 -0
- package/dist/nodes/ScalePadCore/descriptions/HardwareLifecycleDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/HardwareLifecycleDescription.js +142 -0
- package/dist/nodes/ScalePadCore/descriptions/MemberDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/MemberDescription.js +131 -0
- package/dist/nodes/ScalePadCore/descriptions/OpportunityDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/OpportunityDescription.js +129 -0
- package/dist/nodes/ScalePadCore/descriptions/SaasDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/SaasDescription.js +121 -0
- package/dist/nodes/ScalePadCore/descriptions/TicketDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/TicketDescription.js +146 -0
- package/dist/nodes/ScalePadCore/scalepad.svg +4 -0
- package/dist/nodes/shared/GenericFunctions.d.ts +17 -0
- package/dist/nodes/shared/GenericFunctions.js +101 -0
- package/dist/nodes/shared/types.d.ts +31 -0
- package/dist/nodes/shared/types.js +2 -0
- package/package.json +59 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clientFields = exports.clientOperations = void 0;
|
|
4
|
+
exports.clientOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['client'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get a client by ID',
|
|
20
|
+
action: 'Get a client',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many clients',
|
|
26
|
+
action: 'Get many clients',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'getAll',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.clientFields = [
|
|
33
|
+
// Get operation
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Client ID',
|
|
36
|
+
name: 'clientId',
|
|
37
|
+
type: 'string',
|
|
38
|
+
required: true,
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: ['client'],
|
|
42
|
+
operation: ['get'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
default: '',
|
|
46
|
+
description: 'The ID of the client to retrieve',
|
|
47
|
+
},
|
|
48
|
+
// Get Many operation
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Return All',
|
|
51
|
+
name: 'returnAll',
|
|
52
|
+
type: 'boolean',
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
resource: ['client'],
|
|
56
|
+
operation: ['getAll'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
default: false,
|
|
60
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
displayName: 'Limit',
|
|
64
|
+
name: 'limit',
|
|
65
|
+
type: 'number',
|
|
66
|
+
displayOptions: {
|
|
67
|
+
show: {
|
|
68
|
+
resource: ['client'],
|
|
69
|
+
operation: ['getAll'],
|
|
70
|
+
returnAll: [false],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
typeOptions: {
|
|
74
|
+
minValue: 1,
|
|
75
|
+
maxValue: 200,
|
|
76
|
+
},
|
|
77
|
+
default: 50,
|
|
78
|
+
description: 'Max number of results to return',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Additional Fields',
|
|
82
|
+
name: 'additionalFields',
|
|
83
|
+
type: 'collection',
|
|
84
|
+
placeholder: 'Add Field',
|
|
85
|
+
default: {},
|
|
86
|
+
displayOptions: {
|
|
87
|
+
show: {
|
|
88
|
+
resource: ['client'],
|
|
89
|
+
operation: ['getAll'],
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
options: [
|
|
93
|
+
{
|
|
94
|
+
displayName: 'Filter',
|
|
95
|
+
name: 'filter',
|
|
96
|
+
type: 'fixedCollection',
|
|
97
|
+
placeholder: 'Add Filter',
|
|
98
|
+
default: {},
|
|
99
|
+
typeOptions: {
|
|
100
|
+
multipleValues: true,
|
|
101
|
+
},
|
|
102
|
+
options: [
|
|
103
|
+
{
|
|
104
|
+
name: 'filters',
|
|
105
|
+
displayName: 'Filter',
|
|
106
|
+
values: [
|
|
107
|
+
{
|
|
108
|
+
displayName: 'Field',
|
|
109
|
+
name: 'field',
|
|
110
|
+
type: 'options',
|
|
111
|
+
options: [
|
|
112
|
+
{
|
|
113
|
+
name: 'Name',
|
|
114
|
+
value: 'name',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'Status',
|
|
118
|
+
value: 'status',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'Created At',
|
|
122
|
+
value: 'created_at',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'Updated At',
|
|
126
|
+
value: 'updated_at',
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
default: 'name',
|
|
130
|
+
description: 'Field to filter by',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
displayName: 'Operator',
|
|
134
|
+
name: 'operator',
|
|
135
|
+
type: 'options',
|
|
136
|
+
options: [
|
|
137
|
+
{
|
|
138
|
+
name: 'Equals',
|
|
139
|
+
value: 'eq',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: 'Not Equals',
|
|
143
|
+
value: 'ne',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: 'Contains',
|
|
147
|
+
value: 'like',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'Greater Than',
|
|
151
|
+
value: 'gt',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'Less Than',
|
|
155
|
+
value: 'lt',
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
default: 'eq',
|
|
159
|
+
description: 'Filter operator',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
displayName: 'Value',
|
|
163
|
+
name: 'value',
|
|
164
|
+
type: 'string',
|
|
165
|
+
default: '',
|
|
166
|
+
description: 'Filter value',
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
displayName: 'Sort',
|
|
174
|
+
name: 'sort',
|
|
175
|
+
type: 'fixedCollection',
|
|
176
|
+
placeholder: 'Add Sort',
|
|
177
|
+
default: {},
|
|
178
|
+
options: [
|
|
179
|
+
{
|
|
180
|
+
name: 'sortFields',
|
|
181
|
+
displayName: 'Sort',
|
|
182
|
+
values: [
|
|
183
|
+
{
|
|
184
|
+
displayName: 'Field',
|
|
185
|
+
name: 'field',
|
|
186
|
+
type: 'options',
|
|
187
|
+
options: [
|
|
188
|
+
{
|
|
189
|
+
name: 'Name',
|
|
190
|
+
value: 'name',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: 'Created At',
|
|
194
|
+
value: 'created_at',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'Updated At',
|
|
198
|
+
value: 'updated_at',
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
default: 'name',
|
|
202
|
+
description: 'Field to sort by',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
displayName: 'Direction',
|
|
206
|
+
name: 'direction',
|
|
207
|
+
type: 'options',
|
|
208
|
+
options: [
|
|
209
|
+
{
|
|
210
|
+
name: 'Ascending',
|
|
211
|
+
value: 'ASC',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'Descending',
|
|
215
|
+
value: 'DESC',
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
default: 'ASC',
|
|
219
|
+
description: 'Sort direction',
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
},
|
|
227
|
+
];
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contactFields = exports.contactOperations = void 0;
|
|
4
|
+
exports.contactOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['contact'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get a contact by ID',
|
|
20
|
+
action: 'Get a contact',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many contacts',
|
|
26
|
+
action: 'Get many contacts',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'getAll',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.contactFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Contact ID',
|
|
35
|
+
name: 'contactId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: true,
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['contact'],
|
|
41
|
+
operation: ['get'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'The ID of the contact to retrieve',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Return All',
|
|
49
|
+
name: 'returnAll',
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['contact'],
|
|
54
|
+
operation: ['getAll'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
default: false,
|
|
58
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Limit',
|
|
62
|
+
name: 'limit',
|
|
63
|
+
type: 'number',
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: {
|
|
66
|
+
resource: ['contact'],
|
|
67
|
+
operation: ['getAll'],
|
|
68
|
+
returnAll: [false],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
typeOptions: {
|
|
72
|
+
minValue: 1,
|
|
73
|
+
maxValue: 200,
|
|
74
|
+
},
|
|
75
|
+
default: 50,
|
|
76
|
+
description: 'Max number of results to return',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Additional Fields',
|
|
80
|
+
name: 'additionalFields',
|
|
81
|
+
type: 'collection',
|
|
82
|
+
placeholder: 'Add Field',
|
|
83
|
+
default: {},
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
resource: ['contact'],
|
|
87
|
+
operation: ['getAll'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Client ID',
|
|
93
|
+
name: 'clientId',
|
|
94
|
+
type: 'string',
|
|
95
|
+
default: '',
|
|
96
|
+
description: 'Filter contacts by client ID',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Email',
|
|
100
|
+
name: 'email',
|
|
101
|
+
type: 'string',
|
|
102
|
+
default: '',
|
|
103
|
+
description: 'Filter contacts by email address',
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
];
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contractFields = exports.contractOperations = void 0;
|
|
4
|
+
exports.contractOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['contract'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get a contract by ID',
|
|
20
|
+
action: 'Get a contract',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many contracts',
|
|
26
|
+
action: 'Get many contracts',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'getAll',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.contractFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Contract ID',
|
|
35
|
+
name: 'contractId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: true,
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['contract'],
|
|
41
|
+
operation: ['get'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'The ID of the contract to retrieve',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Return All',
|
|
49
|
+
name: 'returnAll',
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['contract'],
|
|
54
|
+
operation: ['getAll'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
default: false,
|
|
58
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Limit',
|
|
62
|
+
name: 'limit',
|
|
63
|
+
type: 'number',
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: {
|
|
66
|
+
resource: ['contract'],
|
|
67
|
+
operation: ['getAll'],
|
|
68
|
+
returnAll: [false],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
typeOptions: {
|
|
72
|
+
minValue: 1,
|
|
73
|
+
maxValue: 200,
|
|
74
|
+
},
|
|
75
|
+
default: 50,
|
|
76
|
+
description: 'Max number of results to return',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Additional Fields',
|
|
80
|
+
name: 'additionalFields',
|
|
81
|
+
type: 'collection',
|
|
82
|
+
placeholder: 'Add Field',
|
|
83
|
+
default: {},
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
resource: ['contract'],
|
|
87
|
+
operation: ['getAll'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Client ID',
|
|
93
|
+
name: 'clientId',
|
|
94
|
+
type: 'string',
|
|
95
|
+
default: '',
|
|
96
|
+
description: 'Filter contracts by client ID',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Status',
|
|
100
|
+
name: 'status',
|
|
101
|
+
type: 'options',
|
|
102
|
+
options: [
|
|
103
|
+
{
|
|
104
|
+
name: 'Active',
|
|
105
|
+
value: 'active',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Expired',
|
|
109
|
+
value: 'expired',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Pending',
|
|
113
|
+
value: 'pending',
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
default: '',
|
|
117
|
+
description: 'Filter contracts by status',
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
];
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hardwareAssetFields = exports.hardwareAssetOperations = void 0;
|
|
4
|
+
exports.hardwareAssetOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['hardwareAsset'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get a hardware asset by ID',
|
|
20
|
+
action: 'Get a hardware asset',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many hardware assets',
|
|
26
|
+
action: 'Get many hardware assets',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'getAll',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.hardwareAssetFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Asset ID',
|
|
35
|
+
name: 'assetId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: true,
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['hardwareAsset'],
|
|
41
|
+
operation: ['get'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'The ID of the hardware asset to retrieve',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Return All',
|
|
49
|
+
name: 'returnAll',
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['hardwareAsset'],
|
|
54
|
+
operation: ['getAll'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
default: false,
|
|
58
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Limit',
|
|
62
|
+
name: 'limit',
|
|
63
|
+
type: 'number',
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: {
|
|
66
|
+
resource: ['hardwareAsset'],
|
|
67
|
+
operation: ['getAll'],
|
|
68
|
+
returnAll: [false],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
typeOptions: {
|
|
72
|
+
minValue: 1,
|
|
73
|
+
maxValue: 200,
|
|
74
|
+
},
|
|
75
|
+
default: 50,
|
|
76
|
+
description: 'Max number of results to return',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Additional Fields',
|
|
80
|
+
name: 'additionalFields',
|
|
81
|
+
type: 'collection',
|
|
82
|
+
placeholder: 'Add Field',
|
|
83
|
+
default: {},
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
resource: ['hardwareAsset'],
|
|
87
|
+
operation: ['getAll'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Client ID',
|
|
93
|
+
name: 'clientId',
|
|
94
|
+
type: 'string',
|
|
95
|
+
default: '',
|
|
96
|
+
description: 'Filter assets by client ID',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Asset Type',
|
|
100
|
+
name: 'assetType',
|
|
101
|
+
type: 'options',
|
|
102
|
+
options: [
|
|
103
|
+
{
|
|
104
|
+
name: 'Desktop',
|
|
105
|
+
value: 'desktop',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Laptop',
|
|
109
|
+
value: 'laptop',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Server',
|
|
113
|
+
value: 'server',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'Network Device',
|
|
117
|
+
value: 'network',
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
default: '',
|
|
121
|
+
description: 'Filter assets by type',
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
},
|
|
125
|
+
];
|