@zivego/n8n-nodes-dfir-iris 3.0.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.
- package/LICENSE.md +19 -0
- package/README.md +75 -0
- package/dist/credentials/DfirIrisApi.credentials.js +90 -0
- package/dist/credentials/icons/iris.svg +6 -0
- package/dist/nodes/DfirIris/DfirIris.node.js +25 -0
- package/dist/nodes/DfirIris/DfirIris.node.json +18 -0
- package/dist/nodes/DfirIris/iris.svg +6 -0
- package/dist/nodes/DfirIris/v1/DfirIrisV1.node.js +22 -0
- package/dist/nodes/DfirIris/v1/actions/alert/Alert.resource.js +78 -0
- package/dist/nodes/DfirIris/v1/actions/alert/batchDelete.operation.js +82 -0
- package/dist/nodes/DfirIris/v1/actions/alert/batchUpdate.operation.js +129 -0
- package/dist/nodes/DfirIris/v1/actions/alert/commonDescription.js +537 -0
- package/dist/nodes/DfirIris/v1/actions/alert/countAlerts.operation.js +139 -0
- package/dist/nodes/DfirIris/v1/actions/alert/create.operation.js +160 -0
- package/dist/nodes/DfirIris/v1/actions/alert/deleteAlert.operation.js +72 -0
- package/dist/nodes/DfirIris/v1/actions/alert/escalate.operation.js +150 -0
- package/dist/nodes/DfirIris/v1/actions/alert/filterAlerts.operation.js +171 -0
- package/dist/nodes/DfirIris/v1/actions/alert/get.operation.js +107 -0
- package/dist/nodes/DfirIris/v1/actions/alert/getRelations.operation.js +118 -0
- package/dist/nodes/DfirIris/v1/actions/alert/merge.operation.js +141 -0
- package/dist/nodes/DfirIris/v1/actions/alert/unmerge.operation.js +100 -0
- package/dist/nodes/DfirIris/v1/actions/alert/update.operation.js +212 -0
- package/dist/nodes/DfirIris/v1/actions/apiRequest/ApiRequest.resource.js +313 -0
- package/dist/nodes/DfirIris/v1/actions/asset/Asset.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/asset/commonDescription.js +101 -0
- package/dist/nodes/DfirIris/v1/actions/asset/create.operation.js +130 -0
- package/dist/nodes/DfirIris/v1/actions/asset/deleteAsset.operation.js +79 -0
- package/dist/nodes/DfirIris/v1/actions/asset/get.operation.js +83 -0
- package/dist/nodes/DfirIris/v1/actions/asset/getAll.operation.js +72 -0
- package/dist/nodes/DfirIris/v1/actions/asset/update.operation.js +107 -0
- package/dist/nodes/DfirIris/v1/actions/case/Case.resource.js +69 -0
- package/dist/nodes/DfirIris/v1/actions/case/addTaskLog.operation.js +60 -0
- package/dist/nodes/DfirIris/v1/actions/case/commonDescription.js +314 -0
- package/dist/nodes/DfirIris/v1/actions/case/countCases.operation.js +145 -0
- package/dist/nodes/DfirIris/v1/actions/case/create.operation.js +125 -0
- package/dist/nodes/DfirIris/v1/actions/case/deleteCase.operation.js +76 -0
- package/dist/nodes/DfirIris/v1/actions/case/exportCase.operation.js +56 -0
- package/dist/nodes/DfirIris/v1/actions/case/filterCases.operation.js +187 -0
- package/dist/nodes/DfirIris/v1/actions/case/getSummary.operation.js +81 -0
- package/dist/nodes/DfirIris/v1/actions/case/update.operation.js +123 -0
- package/dist/nodes/DfirIris/v1/actions/case/updateSummary.operation.js +79 -0
- package/dist/nodes/DfirIris/v1/actions/comment/Comment.resource.js +53 -0
- package/dist/nodes/DfirIris/v1/actions/comment/commonDescription.js +42 -0
- package/dist/nodes/DfirIris/v1/actions/comment/create.operation.js +89 -0
- package/dist/nodes/DfirIris/v1/actions/comment/deleteComment.operation.js +77 -0
- package/dist/nodes/DfirIris/v1/actions/comment/getAll.operation.js +86 -0
- package/dist/nodes/DfirIris/v1/actions/comment/update.operation.js +91 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/DatastoreFile.resource.js +60 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/commonDescription.js +11 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/deleteFile.operation.js +75 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/downloadFile.operation.js +108 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/getFileInfo.operation.js +74 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/moveFile.operation.js +87 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/updateFileInfo.operation.js +162 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFile/uploadFile.operation.js +126 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/DatastoreFolder.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/addFolder.operation.js +61 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/commonDescription.js +11 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/deleteFolder.operation.js +51 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/getTree.operation.js +69 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/moveFolder.operation.js +73 -0
- package/dist/nodes/DfirIris/v1/actions/datastoreFolder/renameFolder.operation.js +44 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/Evidence.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/commonDescription.js +65 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/createEvidence.operation.js +148 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/deleteEvidence.operation.js +73 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/getEvidence.operation.js +75 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/listEvidences.operation.js +42 -0
- package/dist/nodes/DfirIris/v1/actions/evidence/updateEvidence.operation.js +149 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/IOC.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/commonDescription.js +54 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/create.operation.js +120 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/deleteIOC.operation.js +79 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/get.operation.js +83 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/getAll.operation.js +52 -0
- package/dist/nodes/DfirIris/v1/actions/ioc/update.operation.js +100 -0
- package/dist/nodes/DfirIris/v1/actions/manage/Manage.resource.js +71 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getAssetTypes.operation.js +48 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getCaseClassifications.operation.js +46 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getCaseCustomers.operation.js +47 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getCaseStates.operation.js +45 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getCaseTemplates.operation.js +51 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getEvidenceTypes.operation.js +45 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getIOCTypes.operation.js +47 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getSeverities.operation.js +44 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getTaskStatuses.operation.js +45 -0
- package/dist/nodes/DfirIris/v1/actions/manage/getUsers.operation.js +48 -0
- package/dist/nodes/DfirIris/v1/actions/module/Module.resource.js +50 -0
- package/dist/nodes/DfirIris/v1/actions/module/callModule.operation.js +73 -0
- package/dist/nodes/DfirIris/v1/actions/module/commonDescription.js +117 -0
- package/dist/nodes/DfirIris/v1/actions/module/listHooks.operation.js +75 -0
- package/dist/nodes/DfirIris/v1/actions/module/listTasks.operation.js +44 -0
- package/dist/nodes/DfirIris/v1/actions/node.type.js +3 -0
- package/dist/nodes/DfirIris/v1/actions/note/Note.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/note/create.operation.js +86 -0
- package/dist/nodes/DfirIris/v1/actions/note/deleteNote.operation.js +49 -0
- package/dist/nodes/DfirIris/v1/actions/note/get.operation.js +65 -0
- package/dist/nodes/DfirIris/v1/actions/note/search.operation.js +48 -0
- package/dist/nodes/DfirIris/v1/actions/note/update.operation.js +110 -0
- package/dist/nodes/DfirIris/v1/actions/noteDirectory/NoteDirectory.resource.js +54 -0
- package/dist/nodes/DfirIris/v1/actions/noteDirectory/create.operation.js +69 -0
- package/dist/nodes/DfirIris/v1/actions/noteDirectory/deleteNoteDirectory.operation.js +49 -0
- package/dist/nodes/DfirIris/v1/actions/noteDirectory/getAll.operation.js +39 -0
- package/dist/nodes/DfirIris/v1/actions/noteDirectory/update.operation.js +79 -0
- package/dist/nodes/DfirIris/v1/actions/router.js +138 -0
- package/dist/nodes/DfirIris/v1/actions/task/Task.resource.js +57 -0
- package/dist/nodes/DfirIris/v1/actions/task/create.operation.js +148 -0
- package/dist/nodes/DfirIris/v1/actions/task/deleteTask.operation.js +56 -0
- package/dist/nodes/DfirIris/v1/actions/task/get.operation.js +78 -0
- package/dist/nodes/DfirIris/v1/actions/task/getAll.operation.js +70 -0
- package/dist/nodes/DfirIris/v1/actions/task/update.operation.js +161 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/Timeline.resource.js +63 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/addEvent.operation.js +122 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/commonDescription.js +211 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/deleteEvent.operation.js +59 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/fetchEvent.operation.js +103 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/flagEvent.operation.js +103 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/getTimelineState.operation.js +38 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/queryTimeline.operation.js +187 -0
- package/dist/nodes/DfirIris/v1/actions/timeline/updateEvent.operation.js +123 -0
- package/dist/nodes/DfirIris/v1/actions/versionDescription.js +93 -0
- package/dist/nodes/DfirIris/v1/compatibility/compatibility.manifest.json +198 -0
- package/dist/nodes/DfirIris/v1/compatibility/index.js +143 -0
- package/dist/nodes/DfirIris/v1/helpers/index.js +39 -0
- package/dist/nodes/DfirIris/v1/helpers/types.js +271 -0
- package/dist/nodes/DfirIris/v1/helpers/utils.js +251 -0
- package/dist/nodes/DfirIris/v1/methods/index.js +38 -0
- package/dist/nodes/DfirIris/v1/methods/loadOptions.js +544 -0
- package/dist/nodes/DfirIris/v1/transport/index.js +251 -0
- package/dist/package.json +74 -0
- package/package.json +74 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.caseOpenEndDate = exports.caseOpenStartDate = exports.caseTagsF = exports.caseTags = exports.caseSeverityF = exports.caseSeverity = exports.caseStatusF = exports.caseStatus = exports.caseStateF = exports.caseState = exports.caseReviewerF = exports.caseReviewer = exports.caseOpeningUser = exports.caseOwnerF = exports.caseOwner = exports.caseTemplateId = exports.caseClassificationF = exports.caseClassification = exports.rCaseDescription = exports.caseDescription = exports.rCaseName = exports.caseName = exports.rCaseCustomer = exports.caseCustomerF = exports.caseCustomer = exports.rCaseSocId = exports.caseSocId = exports.caseIds = exports.rCaseId = exports.caseId = void 0;
|
|
4
|
+
exports.caseId = {
|
|
5
|
+
displayName: 'Case ID',
|
|
6
|
+
name: 'case_id',
|
|
7
|
+
type: 'number',
|
|
8
|
+
default: '',
|
|
9
|
+
};
|
|
10
|
+
exports.rCaseId = {
|
|
11
|
+
displayName: 'Case ID',
|
|
12
|
+
name: 'case_id',
|
|
13
|
+
type: 'number',
|
|
14
|
+
default: '',
|
|
15
|
+
required: true,
|
|
16
|
+
};
|
|
17
|
+
exports.caseIds = {
|
|
18
|
+
displayName: 'Case IDs',
|
|
19
|
+
name: 'case_ids',
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'List of comma-separated case IDs',
|
|
22
|
+
default: '',
|
|
23
|
+
};
|
|
24
|
+
exports.caseSocId = {
|
|
25
|
+
displayName: 'Case SOC ID',
|
|
26
|
+
name: 'case_soc_id',
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'A SOC ticket reference',
|
|
29
|
+
default: '',
|
|
30
|
+
};
|
|
31
|
+
exports.rCaseSocId = {
|
|
32
|
+
displayName: 'Case SOC ID',
|
|
33
|
+
name: 'case_soc_id',
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'A SOC ticket reference',
|
|
36
|
+
default: '',
|
|
37
|
+
required: true,
|
|
38
|
+
};
|
|
39
|
+
exports.caseCustomer = {
|
|
40
|
+
displayName: 'Case Customer Name or ID',
|
|
41
|
+
name: 'case_customer',
|
|
42
|
+
type: 'options',
|
|
43
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
44
|
+
typeOptions: {
|
|
45
|
+
loadOptionsMethod: 'getCustomers',
|
|
46
|
+
},
|
|
47
|
+
default: '',
|
|
48
|
+
};
|
|
49
|
+
exports.caseCustomerF = {
|
|
50
|
+
displayName: 'Case Customer Name or ID',
|
|
51
|
+
name: 'case_customer_id',
|
|
52
|
+
type: 'options',
|
|
53
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
54
|
+
typeOptions: {
|
|
55
|
+
loadOptionsMethod: 'getCustomers',
|
|
56
|
+
},
|
|
57
|
+
default: '',
|
|
58
|
+
};
|
|
59
|
+
exports.rCaseCustomer = {
|
|
60
|
+
displayName: 'Case Customer Name or ID',
|
|
61
|
+
name: 'case_customer',
|
|
62
|
+
type: 'options',
|
|
63
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
64
|
+
typeOptions: {
|
|
65
|
+
loadOptionsMethod: 'getCustomers',
|
|
66
|
+
},
|
|
67
|
+
default: '',
|
|
68
|
+
required: true,
|
|
69
|
+
};
|
|
70
|
+
exports.caseName = {
|
|
71
|
+
displayName: 'Case Name',
|
|
72
|
+
name: 'case_name',
|
|
73
|
+
type: 'string',
|
|
74
|
+
default: '',
|
|
75
|
+
};
|
|
76
|
+
exports.rCaseName = {
|
|
77
|
+
displayName: 'Case Name',
|
|
78
|
+
name: 'case_name',
|
|
79
|
+
type: 'string',
|
|
80
|
+
default: '',
|
|
81
|
+
required: true,
|
|
82
|
+
};
|
|
83
|
+
exports.caseDescription = {
|
|
84
|
+
displayName: 'Case Description',
|
|
85
|
+
name: 'case_description',
|
|
86
|
+
type: 'string',
|
|
87
|
+
typeOptions: {
|
|
88
|
+
rows: 4,
|
|
89
|
+
},
|
|
90
|
+
default: '',
|
|
91
|
+
description: 'Minimum 2 characters',
|
|
92
|
+
};
|
|
93
|
+
exports.rCaseDescription = {
|
|
94
|
+
displayName: 'Case Description',
|
|
95
|
+
name: 'case_description',
|
|
96
|
+
type: 'string',
|
|
97
|
+
typeOptions: {
|
|
98
|
+
rows: 4,
|
|
99
|
+
},
|
|
100
|
+
default: '',
|
|
101
|
+
required: true,
|
|
102
|
+
description: 'Minimum 2 characters',
|
|
103
|
+
};
|
|
104
|
+
exports.caseClassification = {
|
|
105
|
+
displayName: 'Case Classification Name or ID',
|
|
106
|
+
name: 'classification_id',
|
|
107
|
+
type: 'options',
|
|
108
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
109
|
+
typeOptions: {
|
|
110
|
+
loadOptionsMethod: 'getCaseClassifications',
|
|
111
|
+
},
|
|
112
|
+
default: '',
|
|
113
|
+
};
|
|
114
|
+
exports.caseClassificationF = {
|
|
115
|
+
displayName: 'Case Classification Name or ID',
|
|
116
|
+
name: 'case_classification_id',
|
|
117
|
+
type: 'options',
|
|
118
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
119
|
+
typeOptions: {
|
|
120
|
+
loadOptionsMethod: 'getCaseClassifications',
|
|
121
|
+
},
|
|
122
|
+
default: '',
|
|
123
|
+
};
|
|
124
|
+
exports.caseTemplateId = {
|
|
125
|
+
displayName: 'Case Template Name or ID',
|
|
126
|
+
name: 'case_template_id',
|
|
127
|
+
type: 'options',
|
|
128
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
129
|
+
typeOptions: {
|
|
130
|
+
loadOptionsMethod: 'getCaseTemplates',
|
|
131
|
+
},
|
|
132
|
+
default: '',
|
|
133
|
+
};
|
|
134
|
+
exports.caseOwner = {
|
|
135
|
+
displayName: 'Case Owner Name or ID',
|
|
136
|
+
name: 'owner_id',
|
|
137
|
+
type: 'options',
|
|
138
|
+
typeOptions: {
|
|
139
|
+
loadOptionsMethod: 'getUsers',
|
|
140
|
+
},
|
|
141
|
+
default: '',
|
|
142
|
+
description: 'To whom assign a case. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
143
|
+
};
|
|
144
|
+
exports.caseOwnerF = {
|
|
145
|
+
displayName: 'Case Owner Name or ID',
|
|
146
|
+
name: 'case_owner_id',
|
|
147
|
+
type: 'options',
|
|
148
|
+
typeOptions: {
|
|
149
|
+
loadOptionsMethod: 'getUsers',
|
|
150
|
+
},
|
|
151
|
+
default: '',
|
|
152
|
+
description: 'To whom assign a case. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
153
|
+
};
|
|
154
|
+
exports.caseOpeningUser = {
|
|
155
|
+
displayName: 'Case Opening User Name or ID',
|
|
156
|
+
name: 'case_opening_user_id',
|
|
157
|
+
type: 'options',
|
|
158
|
+
typeOptions: {
|
|
159
|
+
loadOptionsMethod: 'getUsers',
|
|
160
|
+
},
|
|
161
|
+
default: '',
|
|
162
|
+
description: 'Who opened the case. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
163
|
+
};
|
|
164
|
+
exports.caseReviewer = {
|
|
165
|
+
displayName: 'Case Reviewer Name or ID',
|
|
166
|
+
name: 'reviewer_id',
|
|
167
|
+
type: 'options',
|
|
168
|
+
typeOptions: {
|
|
169
|
+
loadOptionsMethod: 'getUsers',
|
|
170
|
+
},
|
|
171
|
+
default: '',
|
|
172
|
+
description: 'Who will review the case. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
173
|
+
};
|
|
174
|
+
exports.caseReviewerF = {
|
|
175
|
+
displayName: 'Case Reviewer Name or ID',
|
|
176
|
+
name: 'case_reviewer_id',
|
|
177
|
+
type: 'options',
|
|
178
|
+
typeOptions: {
|
|
179
|
+
loadOptionsMethod: 'getUsers',
|
|
180
|
+
},
|
|
181
|
+
default: '',
|
|
182
|
+
description: 'Who will review the case. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
183
|
+
};
|
|
184
|
+
exports.caseState = {
|
|
185
|
+
displayName: 'Case State Name or ID',
|
|
186
|
+
name: 'state_id',
|
|
187
|
+
type: 'options',
|
|
188
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
189
|
+
typeOptions: {
|
|
190
|
+
loadOptionsMethod: 'getCaseState',
|
|
191
|
+
},
|
|
192
|
+
default: '',
|
|
193
|
+
};
|
|
194
|
+
exports.caseStateF = {
|
|
195
|
+
displayName: 'Case State Name or ID',
|
|
196
|
+
name: 'case_state_id',
|
|
197
|
+
type: 'options',
|
|
198
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
199
|
+
typeOptions: {
|
|
200
|
+
loadOptionsMethod: 'getCaseState',
|
|
201
|
+
},
|
|
202
|
+
default: '',
|
|
203
|
+
};
|
|
204
|
+
exports.caseStatus = {
|
|
205
|
+
displayName: 'Case Resolution Status',
|
|
206
|
+
name: 'status_id',
|
|
207
|
+
type: 'options',
|
|
208
|
+
options: [
|
|
209
|
+
{
|
|
210
|
+
name: 'Unknown',
|
|
211
|
+
value: 0,
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'False Positive',
|
|
215
|
+
value: 1,
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: 'True Positive with Impact',
|
|
219
|
+
value: 2,
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: 'Not Applicable',
|
|
223
|
+
value: 3,
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: 'True Positive without Impact',
|
|
227
|
+
value: 4,
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'Legitimate',
|
|
231
|
+
value: 5,
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
default: 1,
|
|
235
|
+
};
|
|
236
|
+
exports.caseStatusF = {
|
|
237
|
+
displayName: 'Case Resolution Status',
|
|
238
|
+
name: 'case_status_id',
|
|
239
|
+
type: 'options',
|
|
240
|
+
options: [
|
|
241
|
+
{
|
|
242
|
+
name: 'Unknown',
|
|
243
|
+
value: 0,
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: 'False Positive',
|
|
247
|
+
value: 1,
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: 'True Positive with Impact',
|
|
251
|
+
value: 2,
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: 'True Positive without Impact',
|
|
255
|
+
value: 3,
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
name: 'Not Applicable',
|
|
259
|
+
value: 4,
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
default: 1,
|
|
263
|
+
};
|
|
264
|
+
exports.caseSeverity = {
|
|
265
|
+
displayName: 'Case Severity Name or ID',
|
|
266
|
+
name: 'severity_id',
|
|
267
|
+
type: 'options',
|
|
268
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
269
|
+
typeOptions: {
|
|
270
|
+
loadOptionsMethod: 'getSeverity',
|
|
271
|
+
},
|
|
272
|
+
default: '',
|
|
273
|
+
};
|
|
274
|
+
exports.caseSeverityF = {
|
|
275
|
+
displayName: 'Case Severity Name or ID',
|
|
276
|
+
name: 'case_severity_id',
|
|
277
|
+
type: 'options',
|
|
278
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
279
|
+
typeOptions: {
|
|
280
|
+
loadOptionsMethod: 'getSeverity',
|
|
281
|
+
},
|
|
282
|
+
default: '',
|
|
283
|
+
};
|
|
284
|
+
exports.caseTags = {
|
|
285
|
+
displayName: 'Case Tags',
|
|
286
|
+
name: 'case_tags',
|
|
287
|
+
type: 'string',
|
|
288
|
+
default: '',
|
|
289
|
+
description: 'Comma-separated list of case tags',
|
|
290
|
+
};
|
|
291
|
+
exports.caseTagsF = {
|
|
292
|
+
displayName: 'Case Tags',
|
|
293
|
+
name: 'tags',
|
|
294
|
+
type: 'string',
|
|
295
|
+
default: '',
|
|
296
|
+
description: 'Comma-separated list of case tags',
|
|
297
|
+
};
|
|
298
|
+
exports.caseOpenStartDate = {
|
|
299
|
+
displayName: 'Case Open Date Start',
|
|
300
|
+
name: 'start_open_date',
|
|
301
|
+
type: 'dateTime',
|
|
302
|
+
default: '',
|
|
303
|
+
description: 'Lower Boundary when case was openedTime of the Event in UTC according to RFC. Works only together with end date.',
|
|
304
|
+
hint: 'e.g. 2023-03-26T03:00:30',
|
|
305
|
+
};
|
|
306
|
+
exports.caseOpenEndDate = {
|
|
307
|
+
displayName: 'Case Open Date End',
|
|
308
|
+
name: 'end_open_date',
|
|
309
|
+
type: 'dateTime',
|
|
310
|
+
default: '',
|
|
311
|
+
description: 'Higher Boundary when case was opened in UTC according to RFC. Works only together with start date.',
|
|
312
|
+
hint: 'e.g. 2023-03-26T03:00:30',
|
|
313
|
+
};
|
|
314
|
+
//# sourceMappingURL=commonDescription.js.map
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.description = void 0;
|
|
37
|
+
exports.execute = execute;
|
|
38
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
39
|
+
const Case_resource_1 = require("./Case.resource");
|
|
40
|
+
const transport_1 = require("../../transport");
|
|
41
|
+
const helpers_1 = require("../../helpers");
|
|
42
|
+
const icase = __importStar(require("./commonDescription"));
|
|
43
|
+
const fields = [
|
|
44
|
+
"alerts",
|
|
45
|
+
"case_id",
|
|
46
|
+
"case_uuid",
|
|
47
|
+
"classification",
|
|
48
|
+
"classification_id",
|
|
49
|
+
"client",
|
|
50
|
+
"client_id",
|
|
51
|
+
"close_date",
|
|
52
|
+
"closing_note",
|
|
53
|
+
"custom_attributes",
|
|
54
|
+
"description",
|
|
55
|
+
"initial_date",
|
|
56
|
+
"modification_history",
|
|
57
|
+
"name",
|
|
58
|
+
"note_directories",
|
|
59
|
+
"open_date",
|
|
60
|
+
"owner",
|
|
61
|
+
"owner_id",
|
|
62
|
+
"protagonists",
|
|
63
|
+
"review_status",
|
|
64
|
+
"review_status_id",
|
|
65
|
+
"reviewer",
|
|
66
|
+
"reviewer_id",
|
|
67
|
+
"severity",
|
|
68
|
+
"severity_id",
|
|
69
|
+
"soc_id",
|
|
70
|
+
"state",
|
|
71
|
+
"state_id",
|
|
72
|
+
"status_id",
|
|
73
|
+
"status_name",
|
|
74
|
+
"tags",
|
|
75
|
+
"user",
|
|
76
|
+
"user_id"
|
|
77
|
+
];
|
|
78
|
+
const properties = [
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Filter Options',
|
|
81
|
+
name: 'additionalFields',
|
|
82
|
+
type: 'collection',
|
|
83
|
+
placeholder: 'Add Field',
|
|
84
|
+
default: {},
|
|
85
|
+
options: [
|
|
86
|
+
icase.caseIds,
|
|
87
|
+
icase.caseCustomerF,
|
|
88
|
+
icase.caseName,
|
|
89
|
+
icase.caseDescription,
|
|
90
|
+
icase.caseClassificationF,
|
|
91
|
+
icase.caseOwnerF,
|
|
92
|
+
icase.caseOpeningUser,
|
|
93
|
+
icase.caseSeverityF,
|
|
94
|
+
icase.caseStateF,
|
|
95
|
+
icase.caseSocId,
|
|
96
|
+
icase.caseReviewerF,
|
|
97
|
+
icase.caseOpenStartDate,
|
|
98
|
+
icase.caseOpenEndDate,
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
displayName: 'Options',
|
|
103
|
+
name: 'options',
|
|
104
|
+
type: 'collection',
|
|
105
|
+
placeholder: 'Add Option',
|
|
106
|
+
default: {},
|
|
107
|
+
options: [...helpers_1.types.returnRaw, ...helpers_1.types.fieldProperties(fields)],
|
|
108
|
+
},
|
|
109
|
+
];
|
|
110
|
+
const displayOptions = {
|
|
111
|
+
show: {
|
|
112
|
+
resource: ['case'],
|
|
113
|
+
operation: ['countCases'],
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
|
|
117
|
+
async function execute(i) {
|
|
118
|
+
const query = { cid: 1 };
|
|
119
|
+
let response;
|
|
120
|
+
const body = {};
|
|
121
|
+
const irisLogger = new helpers_1.utils.IrisLog(this.logger);
|
|
122
|
+
const apiMode = await transport_1.getCredentialApiMode.call(this);
|
|
123
|
+
helpers_1.utils.addAdditionalFields.call(this, body, i);
|
|
124
|
+
irisLogger.info('updated body', { body });
|
|
125
|
+
Object.assign(query, body);
|
|
126
|
+
response =
|
|
127
|
+
apiMode === 'next'
|
|
128
|
+
? await transport_1.apiRequestAllNext.call(this, 'GET', 'api/v2/cases', {}, body, 1, 1)
|
|
129
|
+
: await transport_1.apiRequestAll.call(this, 'GET', `${Case_resource_1.endpoint}/filter`, {}, query, 1, 1, 'cases');
|
|
130
|
+
const options = this.getNodeParameter('options', i, {});
|
|
131
|
+
const isRaw = options.isRaw || false;
|
|
132
|
+
if (Object.prototype.hasOwnProperty.call(options, 'fields') &&
|
|
133
|
+
response.data &&
|
|
134
|
+
typeof response.data === 'object' &&
|
|
135
|
+
apiMode === 'stable' &&
|
|
136
|
+
'cases' in response.data) {
|
|
137
|
+
const data = response.data;
|
|
138
|
+
data.cases = helpers_1.utils.fieldsRemover(data.cases, options);
|
|
139
|
+
}
|
|
140
|
+
if (!isRaw)
|
|
141
|
+
response = [{ total: response.data.total || 0 }];
|
|
142
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
143
|
+
return executionData;
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=countCases.operation.js.map
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.description = void 0;
|
|
37
|
+
exports.execute = execute;
|
|
38
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
39
|
+
const Case_resource_1 = require("./Case.resource");
|
|
40
|
+
const compatibility_1 = require("../../compatibility");
|
|
41
|
+
const transport_1 = require("../../transport");
|
|
42
|
+
const helpers_1 = require("../../helpers");
|
|
43
|
+
const icase = __importStar(require("./commonDescription"));
|
|
44
|
+
const fields = [
|
|
45
|
+
'case_customer',
|
|
46
|
+
'case_description',
|
|
47
|
+
'case_id',
|
|
48
|
+
'case_name',
|
|
49
|
+
'case_soc_id',
|
|
50
|
+
'case_uuid',
|
|
51
|
+
'classification_id',
|
|
52
|
+
'close_date',
|
|
53
|
+
'closing_note',
|
|
54
|
+
'custom_attributes',
|
|
55
|
+
'modification_history',
|
|
56
|
+
'open_date',
|
|
57
|
+
'owner_id',
|
|
58
|
+
'review_status_id',
|
|
59
|
+
'reviewer_id',
|
|
60
|
+
'severity_id',
|
|
61
|
+
'state_id',
|
|
62
|
+
'status_id',
|
|
63
|
+
'user_id',
|
|
64
|
+
];
|
|
65
|
+
const properties = [
|
|
66
|
+
icase.rCaseSocId,
|
|
67
|
+
icase.rCaseCustomer,
|
|
68
|
+
icase.rCaseName,
|
|
69
|
+
icase.rCaseDescription,
|
|
70
|
+
{
|
|
71
|
+
displayName: 'Additional Fields',
|
|
72
|
+
name: 'additionalFields',
|
|
73
|
+
type: 'collection',
|
|
74
|
+
placeholder: 'Add Field',
|
|
75
|
+
default: {},
|
|
76
|
+
options: [icase.caseClassification, icase.caseTemplateId, helpers_1.types.customAttributes],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Options',
|
|
80
|
+
name: 'options',
|
|
81
|
+
type: 'collection',
|
|
82
|
+
placeholder: 'Add Option',
|
|
83
|
+
default: {},
|
|
84
|
+
options: [...helpers_1.types.returnRaw, ...helpers_1.types.fieldProperties(fields)],
|
|
85
|
+
},
|
|
86
|
+
];
|
|
87
|
+
const displayOptions = {
|
|
88
|
+
show: {
|
|
89
|
+
resource: ['case'],
|
|
90
|
+
operation: ['create'],
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
|
|
94
|
+
async function execute(i) {
|
|
95
|
+
const query = {};
|
|
96
|
+
let response;
|
|
97
|
+
const body = {};
|
|
98
|
+
const apiMode = await transport_1.getCredentialApiMode.call(this);
|
|
99
|
+
const caseCustomer = this.getNodeParameter('case_customer', i);
|
|
100
|
+
body.case_soc_id = this.getNodeParameter('case_soc_id', i);
|
|
101
|
+
body.case_name = this.getNodeParameter('case_name', i);
|
|
102
|
+
body.case_description = this.getNodeParameter('case_description', i);
|
|
103
|
+
if (apiMode === 'next') {
|
|
104
|
+
body.case_customer_id = caseCustomer;
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
body.case_customer = caseCustomer;
|
|
108
|
+
}
|
|
109
|
+
helpers_1.utils.addAdditionalFields.call(this, body, i);
|
|
110
|
+
response =
|
|
111
|
+
apiMode === 'next'
|
|
112
|
+
? await transport_1.apiRequest.call(this, 'POST', 'api/v2/cases', body, query)
|
|
113
|
+
: await transport_1.apiRequest.call(this, 'POST', `${Case_resource_1.endpoint}/add`, body, query);
|
|
114
|
+
const options = this.getNodeParameter('options', i, {});
|
|
115
|
+
const isRaw = options.isRaw || false;
|
|
116
|
+
if (Object.prototype.hasOwnProperty.call(options, 'fields')) {
|
|
117
|
+
const responseData = apiMode === 'next' ? (0, compatibility_1.extractNextResponseData)(response) : response.data;
|
|
118
|
+
response.data = helpers_1.utils.fieldsRemover(responseData, options);
|
|
119
|
+
}
|
|
120
|
+
if (!isRaw)
|
|
121
|
+
response = apiMode === 'next' ? (0, compatibility_1.extractNextResponseData)(response) : response.data;
|
|
122
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
123
|
+
return executionData;
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.description = void 0;
|
|
37
|
+
exports.execute = execute;
|
|
38
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
39
|
+
const Case_resource_1 = require("./Case.resource");
|
|
40
|
+
const transport_1 = require("../../transport");
|
|
41
|
+
const helpers_1 = require("../../helpers");
|
|
42
|
+
const icase = __importStar(require("./commonDescription"));
|
|
43
|
+
const properties = [
|
|
44
|
+
icase.rCaseId,
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Options',
|
|
47
|
+
name: 'options',
|
|
48
|
+
type: 'collection',
|
|
49
|
+
placeholder: 'Add Option',
|
|
50
|
+
default: {},
|
|
51
|
+
options: [...helpers_1.types.returnRaw],
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
const displayOptions = {
|
|
55
|
+
show: {
|
|
56
|
+
resource: ['case'],
|
|
57
|
+
operation: ['deleteCase'],
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
|
|
61
|
+
async function execute(i) {
|
|
62
|
+
let response;
|
|
63
|
+
const apiMode = await transport_1.getCredentialApiMode.call(this);
|
|
64
|
+
const caseId = this.getNodeParameter('case_id', i);
|
|
65
|
+
response =
|
|
66
|
+
apiMode === 'next'
|
|
67
|
+
? await transport_1.apiRequest.call(this, 'DELETE', `api/v2/cases/${caseId}`, {}, {}, { json: false, returnFullResponse: true })
|
|
68
|
+
: await transport_1.apiRequest.call(this, 'POST', `${Case_resource_1.endpoint}/delete/${caseId}`, {}, {});
|
|
69
|
+
const options = this.getNodeParameter('options', i, {});
|
|
70
|
+
const isRaw = options.isRaw || false;
|
|
71
|
+
if (!isRaw)
|
|
72
|
+
response = [{ status: 'success' }];
|
|
73
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
|
|
74
|
+
return executionData;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=deleteCase.operation.js.map
|