@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,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hardwareLifecycleFields = exports.hardwareLifecycleOperations = void 0;
|
|
4
|
+
exports.hardwareLifecycleOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['hardwareLifecycle'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get a hardware lifecycle record by ID',
|
|
20
|
+
action: 'Get a hardware lifecycle record',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many hardware lifecycle records',
|
|
26
|
+
action: 'Get many hardware lifecycle records',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'getAll',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.hardwareLifecycleFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Record ID',
|
|
35
|
+
name: 'recordId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: true,
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['hardwareLifecycle'],
|
|
41
|
+
operation: ['get'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'The ID of the hardware lifecycle record to retrieve',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Return All',
|
|
49
|
+
name: 'returnAll',
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['hardwareLifecycle'],
|
|
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: ['hardwareLifecycle'],
|
|
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: ['hardwareLifecycle'],
|
|
87
|
+
operation: ['getAll'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Client ID',
|
|
93
|
+
name: 'clientId',
|
|
94
|
+
type: 'string',
|
|
95
|
+
default: '',
|
|
96
|
+
description: 'Filter by client ID',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Warranty Status',
|
|
100
|
+
name: 'warrantyStatus',
|
|
101
|
+
type: 'options',
|
|
102
|
+
options: [
|
|
103
|
+
{
|
|
104
|
+
name: 'Active',
|
|
105
|
+
value: 'active',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Expired',
|
|
109
|
+
value: 'expired',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Expiring Soon',
|
|
113
|
+
value: 'expiring_soon',
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
default: '',
|
|
117
|
+
description: 'Filter by warranty status',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
displayName: 'End of Life Status',
|
|
121
|
+
name: 'eolStatus',
|
|
122
|
+
type: 'options',
|
|
123
|
+
options: [
|
|
124
|
+
{
|
|
125
|
+
name: 'Active',
|
|
126
|
+
value: 'active',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'End of Life',
|
|
130
|
+
value: 'eol',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: 'Approaching EOL',
|
|
134
|
+
value: 'approaching_eol',
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
default: '',
|
|
138
|
+
description: 'Filter by end of life status',
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
];
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.memberFields = exports.memberOperations = void 0;
|
|
4
|
+
exports.memberOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['member'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get a team member by ID',
|
|
20
|
+
action: 'Get a team member',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many team members',
|
|
26
|
+
action: 'Get many team members',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'getAll',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.memberFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Member ID',
|
|
35
|
+
name: 'memberId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: true,
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['member'],
|
|
41
|
+
operation: ['get'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'The ID of the team member to retrieve',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Return All',
|
|
49
|
+
name: 'returnAll',
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['member'],
|
|
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: ['member'],
|
|
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: ['member'],
|
|
87
|
+
operation: ['getAll'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Role',
|
|
93
|
+
name: 'role',
|
|
94
|
+
type: 'options',
|
|
95
|
+
options: [
|
|
96
|
+
{
|
|
97
|
+
name: 'Admin',
|
|
98
|
+
value: 'admin',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'User',
|
|
102
|
+
value: 'user',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'Viewer',
|
|
106
|
+
value: 'viewer',
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
default: '',
|
|
110
|
+
description: 'Filter members by role',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
displayName: 'Status',
|
|
114
|
+
name: 'status',
|
|
115
|
+
type: 'options',
|
|
116
|
+
options: [
|
|
117
|
+
{
|
|
118
|
+
name: 'Active',
|
|
119
|
+
value: 'active',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'Inactive',
|
|
123
|
+
value: 'inactive',
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
default: '',
|
|
127
|
+
description: 'Filter members by status',
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
];
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.opportunityFields = exports.opportunityOperations = void 0;
|
|
4
|
+
exports.opportunityOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['opportunity'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get an opportunity by ID',
|
|
20
|
+
action: 'Get an opportunity',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many opportunities',
|
|
26
|
+
action: 'Get many opportunities',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'getAll',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.opportunityFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Opportunity ID',
|
|
35
|
+
name: 'opportunityId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: true,
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['opportunity'],
|
|
41
|
+
operation: ['get'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'The ID of the opportunity to retrieve',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Return All',
|
|
49
|
+
name: 'returnAll',
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['opportunity'],
|
|
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: ['opportunity'],
|
|
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: ['opportunity'],
|
|
87
|
+
operation: ['getAll'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Client ID',
|
|
93
|
+
name: 'clientId',
|
|
94
|
+
type: 'string',
|
|
95
|
+
default: '',
|
|
96
|
+
description: 'Filter opportunities by client ID',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Stage',
|
|
100
|
+
name: 'stage',
|
|
101
|
+
type: 'options',
|
|
102
|
+
options: [
|
|
103
|
+
{
|
|
104
|
+
name: 'Prospect',
|
|
105
|
+
value: 'prospect',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Qualified',
|
|
109
|
+
value: 'qualified',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Proposal',
|
|
113
|
+
value: 'proposal',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'Won',
|
|
117
|
+
value: 'won',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'Lost',
|
|
121
|
+
value: 'lost',
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
default: '',
|
|
125
|
+
description: 'Filter opportunities by stage',
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
];
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.saasFields = exports.saasOperations = void 0;
|
|
4
|
+
exports.saasOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['saas'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get a SaaS subscription by ID',
|
|
20
|
+
action: 'Get a SaaS subscription',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many SaaS subscriptions',
|
|
26
|
+
action: 'Get many SaaS subscriptions',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'getAll',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.saasFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'SaaS ID',
|
|
35
|
+
name: 'saasId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: true,
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['saas'],
|
|
41
|
+
operation: ['get'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'The ID of the SaaS subscription to retrieve',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Return All',
|
|
49
|
+
name: 'returnAll',
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['saas'],
|
|
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: ['saas'],
|
|
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: ['saas'],
|
|
87
|
+
operation: ['getAll'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Client ID',
|
|
93
|
+
name: 'clientId',
|
|
94
|
+
type: 'string',
|
|
95
|
+
default: '',
|
|
96
|
+
description: 'Filter SaaS subscriptions 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: 'Inactive',
|
|
109
|
+
value: 'inactive',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Trial',
|
|
113
|
+
value: 'trial',
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
default: '',
|
|
117
|
+
description: 'Filter SaaS subscriptions by status',
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
];
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ticketFields = exports.ticketOperations = void 0;
|
|
4
|
+
exports.ticketOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['ticket'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get a ticket by ID',
|
|
20
|
+
action: 'Get a ticket',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get Many',
|
|
24
|
+
value: 'getAll',
|
|
25
|
+
description: 'Get many tickets',
|
|
26
|
+
action: 'Get many tickets',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
default: 'getAll',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.ticketFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Ticket ID',
|
|
35
|
+
name: 'ticketId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: true,
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['ticket'],
|
|
41
|
+
operation: ['get'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
default: '',
|
|
45
|
+
description: 'The ID of the ticket to retrieve',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Return All',
|
|
49
|
+
name: 'returnAll',
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: {
|
|
53
|
+
resource: ['ticket'],
|
|
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: ['ticket'],
|
|
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: ['ticket'],
|
|
87
|
+
operation: ['getAll'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
options: [
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Client ID',
|
|
93
|
+
name: 'clientId',
|
|
94
|
+
type: 'string',
|
|
95
|
+
default: '',
|
|
96
|
+
description: 'Filter tickets by client ID',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Status',
|
|
100
|
+
name: 'status',
|
|
101
|
+
type: 'options',
|
|
102
|
+
options: [
|
|
103
|
+
{
|
|
104
|
+
name: 'Open',
|
|
105
|
+
value: 'open',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'Closed',
|
|
109
|
+
value: 'closed',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Pending',
|
|
113
|
+
value: 'pending',
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
default: '',
|
|
117
|
+
description: 'Filter tickets by status',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
displayName: 'Priority',
|
|
121
|
+
name: 'priority',
|
|
122
|
+
type: 'options',
|
|
123
|
+
options: [
|
|
124
|
+
{
|
|
125
|
+
name: 'Low',
|
|
126
|
+
value: 'low',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'Medium',
|
|
130
|
+
value: 'medium',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: 'High',
|
|
134
|
+
value: 'high',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: 'Critical',
|
|
138
|
+
value: 'critical',
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
default: '',
|
|
142
|
+
description: 'Filter tickets by priority',
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
},
|
|
146
|
+
];
|