n8n-nodes-qwease 0.3.12 → 0.3.14
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/dist/credentials/QweaseApi.credentials.d.ts +4 -1
- package/dist/credentials/QweaseApi.credentials.js +1 -1
- package/dist/credentials/qwease.dark.svg +11 -0
- package/dist/credentials/qwease.svg +11 -0
- package/dist/nodes/Qwease/Qwease.node.js +4 -4
- package/dist/nodes/Qwease/QweaseDescription.js +10 -0
- package/dist/nodes/Qwease/QweaseTrigger.node.js +3 -3
- package/dist/nodes/Qwease/qwease.dark.svg +11 -0
- package/dist/nodes/Qwease/qwease.svg +11 -0
- package/dist/nodes/Qwease/shared.js +6 -0
- package/package.json +1 -1
- package/dist/credentials/qwease.png +0 -0
- package/dist/nodes/Qwease/qwease.png +0 -0
|
@@ -2,7 +2,10 @@ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INo
|
|
|
2
2
|
export declare class QweaseApi implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
|
-
icon:
|
|
5
|
+
icon: {
|
|
6
|
+
readonly light: "file:qwease.svg";
|
|
7
|
+
readonly dark: "file:qwease.dark.svg";
|
|
8
|
+
};
|
|
6
9
|
documentationUrl: string;
|
|
7
10
|
properties: INodeProperties[];
|
|
8
11
|
authenticate: IAuthenticateGeneric;
|
|
@@ -5,7 +5,7 @@ class QweaseApi {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'qweaseApi';
|
|
7
7
|
this.displayName = 'Qwease API';
|
|
8
|
-
this.icon = 'file:qwease.
|
|
8
|
+
this.icon = { light: 'file:qwease.svg', dark: 'file:qwease.dark.svg' };
|
|
9
9
|
this.documentationUrl = 'https://rest.qwease.fr/swagger/';
|
|
10
10
|
this.properties = [
|
|
11
11
|
{
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" width="60" height="60">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="qweaseGradDark" x1="18%" y1="12%" x2="88%" y2="92%">
|
|
4
|
+
<stop offset="0%" stop-color="#5AD4F5"/>
|
|
5
|
+
<stop offset="45%" stop-color="#3A9AD4"/>
|
|
6
|
+
<stop offset="100%" stop-color="#1E6BB0"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
</defs>
|
|
9
|
+
<circle cx="30" cy="30" r="30" fill="url(#qweaseGradDark)"/>
|
|
10
|
+
<text x="30" y="39" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="32" font-weight="700" fill="#FFFFFF">Q</text>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" width="60" height="60">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="qweaseGradLight" x1="18%" y1="12%" x2="88%" y2="92%">
|
|
4
|
+
<stop offset="0%" stop-color="#39C7EE"/>
|
|
5
|
+
<stop offset="45%" stop-color="#1B80BE"/>
|
|
6
|
+
<stop offset="100%" stop-color="#10529C"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
</defs>
|
|
9
|
+
<circle cx="30" cy="30" r="30" fill="url(#qweaseGradLight)"/>
|
|
10
|
+
<text x="30" y="39" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="32" font-weight="700" fill="#FFFFFF">Q</text>
|
|
11
|
+
</svg>
|
|
@@ -15,7 +15,7 @@ class Qwease {
|
|
|
15
15
|
this.description = {
|
|
16
16
|
displayName: 'Qwease',
|
|
17
17
|
name: 'qwease',
|
|
18
|
-
icon: 'file:qwease.
|
|
18
|
+
icon: { light: 'file:qwease.svg', dark: 'file:qwease.dark.svg' },
|
|
19
19
|
group: ['transform'],
|
|
20
20
|
version: 1,
|
|
21
21
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
@@ -23,8 +23,8 @@ class Qwease {
|
|
|
23
23
|
defaults: {
|
|
24
24
|
name: 'Qwease',
|
|
25
25
|
},
|
|
26
|
-
inputs: [
|
|
27
|
-
outputs: [
|
|
26
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
27
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
28
28
|
usableAsTool: true,
|
|
29
29
|
credentials: [
|
|
30
30
|
{
|
|
@@ -178,7 +178,7 @@ class Qwease {
|
|
|
178
178
|
returnData.push({ json: { error: error.message }, pairedItem: { item: i } });
|
|
179
179
|
continue;
|
|
180
180
|
}
|
|
181
|
-
throw error;
|
|
181
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex: i });
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
return [returnData];
|
|
@@ -57,6 +57,7 @@ const userResourceLocatorModes = [
|
|
|
57
57
|
displayName: 'From List',
|
|
58
58
|
name: 'list',
|
|
59
59
|
type: 'list',
|
|
60
|
+
default: '',
|
|
60
61
|
placeholder: 'Select a user...',
|
|
61
62
|
typeOptions: {
|
|
62
63
|
searchListMethod: 'getUsers',
|
|
@@ -67,6 +68,7 @@ const userResourceLocatorModes = [
|
|
|
67
68
|
displayName: 'By ID',
|
|
68
69
|
name: 'id',
|
|
69
70
|
type: 'string',
|
|
71
|
+
default: '',
|
|
70
72
|
placeholder: '1',
|
|
71
73
|
validation: idModeValidation,
|
|
72
74
|
},
|
|
@@ -76,6 +78,7 @@ const teamResourceLocatorModes = [
|
|
|
76
78
|
displayName: 'From List',
|
|
77
79
|
name: 'list',
|
|
78
80
|
type: 'list',
|
|
81
|
+
default: '',
|
|
79
82
|
placeholder: 'Select a team...',
|
|
80
83
|
typeOptions: {
|
|
81
84
|
searchListMethod: 'getTeams',
|
|
@@ -86,6 +89,7 @@ const teamResourceLocatorModes = [
|
|
|
86
89
|
displayName: 'By ID',
|
|
87
90
|
name: 'id',
|
|
88
91
|
type: 'string',
|
|
92
|
+
default: '',
|
|
89
93
|
placeholder: '1',
|
|
90
94
|
validation: idModeValidation,
|
|
91
95
|
},
|
|
@@ -141,6 +145,7 @@ const optionalTicketFields = [
|
|
|
141
145
|
displayName: 'From List',
|
|
142
146
|
name: 'list',
|
|
143
147
|
type: 'list',
|
|
148
|
+
default: '',
|
|
144
149
|
placeholder: 'Select a status...',
|
|
145
150
|
typeOptions: {
|
|
146
151
|
searchListMethod: 'getFormStatuses',
|
|
@@ -151,6 +156,7 @@ const optionalTicketFields = [
|
|
|
151
156
|
displayName: 'By ID',
|
|
152
157
|
name: 'id',
|
|
153
158
|
type: 'string',
|
|
159
|
+
default: '',
|
|
154
160
|
placeholder: '1',
|
|
155
161
|
validation: idModeValidation,
|
|
156
162
|
},
|
|
@@ -182,6 +188,7 @@ exports.ticketFields = [
|
|
|
182
188
|
displayName: 'From List',
|
|
183
189
|
name: 'list',
|
|
184
190
|
type: 'list',
|
|
191
|
+
default: '',
|
|
185
192
|
placeholder: 'Select a ticket...',
|
|
186
193
|
typeOptions: {
|
|
187
194
|
searchListMethod: 'getTickets',
|
|
@@ -192,6 +199,7 @@ exports.ticketFields = [
|
|
|
192
199
|
displayName: 'By ID',
|
|
193
200
|
name: 'id',
|
|
194
201
|
type: 'string',
|
|
202
|
+
default: '',
|
|
195
203
|
placeholder: '123',
|
|
196
204
|
validation: idModeValidation,
|
|
197
205
|
},
|
|
@@ -232,6 +240,7 @@ exports.ticketFields = [
|
|
|
232
240
|
displayName: 'From List',
|
|
233
241
|
name: 'list',
|
|
234
242
|
type: 'list',
|
|
243
|
+
default: '',
|
|
235
244
|
placeholder: 'Select a form...',
|
|
236
245
|
typeOptions: {
|
|
237
246
|
searchListMethod: 'getForms',
|
|
@@ -242,6 +251,7 @@ exports.ticketFields = [
|
|
|
242
251
|
displayName: 'By ID',
|
|
243
252
|
name: 'id',
|
|
244
253
|
type: 'string',
|
|
254
|
+
default: '',
|
|
245
255
|
placeholder: '1',
|
|
246
256
|
validation: idModeValidation,
|
|
247
257
|
},
|
|
@@ -37,15 +37,16 @@ class QweaseTrigger {
|
|
|
37
37
|
this.description = {
|
|
38
38
|
displayName: 'Qwease Trigger',
|
|
39
39
|
name: 'qweaseTrigger',
|
|
40
|
-
icon: 'file:qwease.
|
|
40
|
+
icon: { light: 'file:qwease.svg', dark: 'file:qwease.dark.svg' },
|
|
41
41
|
group: ['trigger'],
|
|
42
42
|
version: 1,
|
|
43
|
+
subtitle: '={{$parameter["events"].length ? $parameter["events"].join(", ") : "All events"}}',
|
|
43
44
|
description: 'Starts the workflow when Qwease sends a signed webhook event',
|
|
44
45
|
defaults: {
|
|
45
46
|
name: 'Qwease Trigger',
|
|
46
47
|
},
|
|
47
48
|
inputs: [],
|
|
48
|
-
outputs: [
|
|
49
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
49
50
|
webhooks: [
|
|
50
51
|
{
|
|
51
52
|
name: 'default',
|
|
@@ -88,7 +89,6 @@ class QweaseTrigger {
|
|
|
88
89
|
description: 'Whether to still emit the item when HMAC verification fails (not recommended in production)',
|
|
89
90
|
},
|
|
90
91
|
],
|
|
91
|
-
usableAsTool: true,
|
|
92
92
|
};
|
|
93
93
|
this.webhookMethods = {
|
|
94
94
|
default: {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" width="60" height="60">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="qweaseGradDark" x1="18%" y1="12%" x2="88%" y2="92%">
|
|
4
|
+
<stop offset="0%" stop-color="#5AD4F5"/>
|
|
5
|
+
<stop offset="45%" stop-color="#3A9AD4"/>
|
|
6
|
+
<stop offset="100%" stop-color="#1E6BB0"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
</defs>
|
|
9
|
+
<circle cx="30" cy="30" r="30" fill="url(#qweaseGradDark)"/>
|
|
10
|
+
<text x="30" y="39" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="32" font-weight="700" fill="#FFFFFF">Q</text>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" width="60" height="60">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="qweaseGradLight" x1="18%" y1="12%" x2="88%" y2="92%">
|
|
4
|
+
<stop offset="0%" stop-color="#39C7EE"/>
|
|
5
|
+
<stop offset="45%" stop-color="#1B80BE"/>
|
|
6
|
+
<stop offset="100%" stop-color="#10529C"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
</defs>
|
|
9
|
+
<circle cx="30" cy="30" r="30" fill="url(#qweaseGradLight)"/>
|
|
10
|
+
<text x="30" y="39" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="32" font-weight="700" fill="#FFFFFF">Q</text>
|
|
11
|
+
</svg>
|
|
@@ -19,6 +19,7 @@ function resourceLocatorModes(searchListMethod, listPlaceholder, idPlaceholder =
|
|
|
19
19
|
displayName: 'From List',
|
|
20
20
|
name: 'list',
|
|
21
21
|
type: 'list',
|
|
22
|
+
default: '',
|
|
22
23
|
placeholder: listPlaceholder,
|
|
23
24
|
typeOptions: {
|
|
24
25
|
searchListMethod,
|
|
@@ -29,6 +30,7 @@ function resourceLocatorModes(searchListMethod, listPlaceholder, idPlaceholder =
|
|
|
29
30
|
displayName: 'By ID',
|
|
30
31
|
name: 'id',
|
|
31
32
|
type: 'string',
|
|
33
|
+
default: '',
|
|
32
34
|
placeholder: idPlaceholder,
|
|
33
35
|
validation: exports.idModeValidation,
|
|
34
36
|
},
|
|
@@ -104,6 +106,7 @@ function customFieldsFixedCollectionWithList(searchListMethod, description = 'Pi
|
|
|
104
106
|
displayName: 'From List',
|
|
105
107
|
name: 'list',
|
|
106
108
|
type: 'list',
|
|
109
|
+
default: '',
|
|
107
110
|
placeholder: 'Select a field...',
|
|
108
111
|
typeOptions: {
|
|
109
112
|
searchListMethod,
|
|
@@ -114,6 +117,7 @@ function customFieldsFixedCollectionWithList(searchListMethod, description = 'Pi
|
|
|
114
117
|
displayName: 'By Name',
|
|
115
118
|
name: 'name',
|
|
116
119
|
type: 'string',
|
|
120
|
+
default: '',
|
|
117
121
|
placeholder: 'Customfield1',
|
|
118
122
|
hint: 'technical_name from Qwease',
|
|
119
123
|
},
|
|
@@ -133,6 +137,7 @@ function customFieldsFixedCollectionWithList(searchListMethod, description = 'Pi
|
|
|
133
137
|
displayName: 'From List',
|
|
134
138
|
name: 'list',
|
|
135
139
|
type: 'list',
|
|
140
|
+
default: '',
|
|
136
141
|
placeholder: 'Select an option...',
|
|
137
142
|
typeOptions: {
|
|
138
143
|
searchListMethod: 'getCustomFieldOptions',
|
|
@@ -143,6 +148,7 @@ function customFieldsFixedCollectionWithList(searchListMethod, description = 'Pi
|
|
|
143
148
|
displayName: 'By Value',
|
|
144
149
|
name: 'id',
|
|
145
150
|
type: 'string',
|
|
151
|
+
default: '',
|
|
146
152
|
placeholder: 'Text value or option ID',
|
|
147
153
|
hint: 'Use for non-list fields, or paste an option ID',
|
|
148
154
|
},
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|