@cloudconvert/n8n-nodes-cloudconvert 1.0.2 → 1.1.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/dist/credentials/CloudConvertApi.credentials.d.ts +2 -1
- package/dist/credentials/CloudConvertApi.credentials.js +2 -1
- package/dist/credentials/CloudConvertApi.credentials.js.map +1 -1
- package/dist/credentials/CloudConvertOAuth2Api.credentials.d.ts +2 -1
- package/dist/credentials/CloudConvertOAuth2Api.credentials.js +1 -0
- package/dist/credentials/CloudConvertOAuth2Api.credentials.js.map +1 -1
- package/dist/nodes/CloudConvert/CloudConvert.node.js +226 -19
- package/dist/nodes/CloudConvert/CloudConvert.node.js.map +1 -1
- package/dist/nodes/CloudConvert/Utils.js +11 -14
- package/dist/nodes/CloudConvert/Utils.js.map +1 -1
- package/dist/nodes/CloudConvert/cloudconvert.svg +13 -0
- package/dist/nodes/CloudConvert/cloudconvert_dark.svg +12 -0
- package/dist/nodes/CloudConvert/operations/archive/execute.js +1 -2
- package/dist/nodes/CloudConvert/operations/archive/execute.js.map +1 -1
- package/dist/nodes/CloudConvert/operations/capture-website/execute.js +1 -2
- package/dist/nodes/CloudConvert/operations/capture-website/execute.js.map +1 -1
- package/dist/nodes/CloudConvert/operations/command/execute.d.ts +2 -0
- package/dist/nodes/CloudConvert/operations/command/execute.js +89 -0
- package/dist/nodes/CloudConvert/operations/command/execute.js.map +1 -0
- package/dist/nodes/CloudConvert/operations/command/fields.d.ts +2 -0
- package/dist/nodes/CloudConvert/operations/command/fields.js +73 -0
- package/dist/nodes/CloudConvert/operations/command/fields.js.map +1 -0
- package/dist/nodes/CloudConvert/operations/convert/execute.js +1 -2
- package/dist/nodes/CloudConvert/operations/convert/execute.js.map +1 -1
- package/dist/nodes/CloudConvert/operations/merge/execute.js +1 -2
- package/dist/nodes/CloudConvert/operations/merge/execute.js.map +1 -1
- package/dist/nodes/CloudConvert/operations/metadata/execute.js +72 -23
- package/dist/nodes/CloudConvert/operations/metadata/execute.js.map +1 -1
- package/dist/nodes/CloudConvert/operations/optimize/execute.js +1 -2
- package/dist/nodes/CloudConvert/operations/optimize/execute.js.map +1 -1
- package/dist/nodes/CloudConvert/operations/pdf/execute.d.ts +2 -0
- package/dist/nodes/CloudConvert/operations/pdf/execute.js +111 -0
- package/dist/nodes/CloudConvert/operations/pdf/execute.js.map +1 -0
- package/dist/nodes/CloudConvert/operations/pdf/fields.d.ts +2 -0
- package/dist/nodes/CloudConvert/operations/pdf/fields.js +191 -0
- package/dist/nodes/CloudConvert/operations/pdf/fields.js.map +1 -0
- package/dist/nodes/CloudConvert/operations/thumbnail/execute.js +1 -2
- package/dist/nodes/CloudConvert/operations/thumbnail/execute.js.map +1 -1
- package/dist/nodes/CloudConvert/operations/watermark/execute.js +1 -2
- package/dist/nodes/CloudConvert/operations/watermark/execute.js.map +1 -1
- package/dist/package.json +16 -18
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -18
- package/dist/nodes/CloudConvert/cloudconvert.png +0 -0
- package/index.js +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
|
|
2
2
|
export declare class CloudConvertApi implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
5
|
documentationUrl: string;
|
|
6
|
+
icon: Icon;
|
|
6
7
|
properties: INodeProperties[];
|
|
7
8
|
authenticate: IAuthenticateGeneric;
|
|
8
9
|
test: ICredentialTestRequest;
|
|
@@ -6,6 +6,7 @@ class CloudConvertApi {
|
|
|
6
6
|
this.name = 'cloudConvertApi';
|
|
7
7
|
this.displayName = 'CloudConvert API';
|
|
8
8
|
this.documentationUrl = 'https://cloudconvert.com/dashboard/api/v2/keys';
|
|
9
|
+
this.icon = { light: 'file:../nodes/CloudConvert/cloudconvert.svg', dark: 'file:../nodes/CloudConvert/cloudconvert_dark.svg' };
|
|
9
10
|
this.properties = [
|
|
10
11
|
{
|
|
11
12
|
displayName: 'API Key',
|
|
@@ -27,7 +28,7 @@ class CloudConvertApi {
|
|
|
27
28
|
this.test = {
|
|
28
29
|
request: {
|
|
29
30
|
baseURL: 'https://api.cloudconvert.com/v2',
|
|
30
|
-
url: '/me',
|
|
31
|
+
url: '/users/me',
|
|
31
32
|
},
|
|
32
33
|
};
|
|
33
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudConvertApi.credentials.js","sourceRoot":"","sources":["../../credentials/CloudConvertApi.credentials.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CloudConvertApi.credentials.js","sourceRoot":"","sources":["../../credentials/CloudConvertApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,eAAe;IAA5B;QACC,SAAI,GAAG,iBAAiB,CAAC;QAEzB,gBAAW,GAAG,kBAAkB,CAAC;QAEjC,qBAAgB,GAAG,gDAAgD,CAAC;QAEpE,SAAI,GAAS,EAAE,KAAK,EAAE,6CAA6C,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC;QAEhI,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACV,8HAA8H;gBAC/H,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,iCAAiC;gBAC1C,GAAG,EAAE,WAAW;aAChB;SACD,CAAC;IACH,CAAC;CAAA;AApCD,0CAoCC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
1
|
+
import type { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
|
|
2
2
|
export declare class CloudConvertOAuth2Api implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
4
|
extends: string[];
|
|
5
5
|
displayName: string;
|
|
6
6
|
documentationUrl: string;
|
|
7
|
+
icon: Icon;
|
|
7
8
|
properties: INodeProperties[];
|
|
8
9
|
}
|
|
@@ -8,6 +8,7 @@ class CloudConvertOAuth2Api {
|
|
|
8
8
|
this.extends = ['oAuth2Api'];
|
|
9
9
|
this.displayName = 'CloudConvert OAuth2 API';
|
|
10
10
|
this.documentationUrl = 'https://cloudconvert.com/api/v2#authentication';
|
|
11
|
+
this.icon = { light: 'file:../nodes/CloudConvert/cloudconvert.svg', dark: 'file:../nodes/CloudConvert/cloudconvert_dark.svg' };
|
|
11
12
|
this.properties = [
|
|
12
13
|
{
|
|
13
14
|
displayName: 'Grant Type',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudConvertOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/CloudConvertOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAM,MAAM,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;AAExD,MAAa,qBAAqB;IAAlC;QACC,SAAI,GAAG,uBAAuB,CAAC;QAE/B,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,gBAAW,GAAG,yBAAyB,CAAC;QAExC,qBAAgB,GAAG,gDAAgD,CAAC;QAEpE,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,mBAAmB;aAC5B;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,0CAA0C;aACnD;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,sCAAsC;aAC/C;YACD;gBACC,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM;aACf;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;aACzB;SACD,CAAC;IACH,CAAC;CAAA;
|
|
1
|
+
{"version":3,"file":"CloudConvertOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/CloudConvertOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAM,MAAM,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;AAExD,MAAa,qBAAqB;IAAlC;QACC,SAAI,GAAG,uBAAuB,CAAC;QAE/B,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,gBAAW,GAAG,yBAAyB,CAAC;QAExC,qBAAgB,GAAG,gDAAgD,CAAC;QAEpE,SAAI,GAAS,EAAE,KAAK,EAAE,6CAA6C,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC;QAEhI,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,mBAAmB;aAC5B;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,0CAA0C;aACnD;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,sCAAsC;aAC/C;YACD;gBACC,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM;aACf;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;aACzB;SACD,CAAC;IACH,CAAC;CAAA;AAjDD,sDAiDC"}
|
|
@@ -13,12 +13,16 @@ const execute_6 = require("./operations/watermark/execute");
|
|
|
13
13
|
const execute_7 = require("./operations/metadata/execute");
|
|
14
14
|
const execute_8 = require("./operations/capture-website/execute");
|
|
15
15
|
const fields_3 = require("./operations/capture-website/fields");
|
|
16
|
+
const execute_9 = require("./operations/pdf/execute");
|
|
17
|
+
const fields_4 = require("./operations/pdf/fields");
|
|
18
|
+
const execute_10 = require("./operations/command/execute");
|
|
19
|
+
const fields_5 = require("./operations/command/fields");
|
|
16
20
|
class CloudConvert {
|
|
17
21
|
constructor() {
|
|
18
22
|
this.description = {
|
|
19
23
|
displayName: 'CloudConvert',
|
|
20
24
|
name: 'cloudConvert',
|
|
21
|
-
icon: 'file:cloudconvert.
|
|
25
|
+
icon: { light: 'file:cloudconvert.svg', dark: 'file:cloudconvert_dark.svg' },
|
|
22
26
|
group: ['transform'],
|
|
23
27
|
version: 1,
|
|
24
28
|
subtitle: '={{ $parameter["operation"] }}',
|
|
@@ -66,10 +70,44 @@ class CloudConvert {
|
|
|
66
70
|
],
|
|
67
71
|
default: 'oAuth2',
|
|
68
72
|
},
|
|
73
|
+
{
|
|
74
|
+
displayName: 'Resource',
|
|
75
|
+
name: 'resource',
|
|
76
|
+
type: 'options',
|
|
77
|
+
noDataExpression: true,
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
name: 'Command',
|
|
81
|
+
value: 'command',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'File',
|
|
85
|
+
value: 'file',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'Metadata',
|
|
89
|
+
value: 'metadata',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'PDF',
|
|
93
|
+
value: 'pdf',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'Website',
|
|
97
|
+
value: 'website',
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
default: 'file',
|
|
101
|
+
},
|
|
69
102
|
{
|
|
70
103
|
displayName: 'Operation',
|
|
71
104
|
name: 'operation',
|
|
72
105
|
type: 'options',
|
|
106
|
+
displayOptions: {
|
|
107
|
+
show: {
|
|
108
|
+
resource: ['file'],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
73
111
|
options: [
|
|
74
112
|
{
|
|
75
113
|
name: 'Add Watermark',
|
|
@@ -77,12 +115,6 @@ class CloudConvert {
|
|
|
77
115
|
description: 'Add a watermark to a PDF file, to an image or to a video',
|
|
78
116
|
action: 'Add watermark to a file',
|
|
79
117
|
},
|
|
80
|
-
{
|
|
81
|
-
name: 'Capture Website',
|
|
82
|
-
value: 'capture-website',
|
|
83
|
-
description: 'Creates job to capture a website as PDF or create a website screenshot as JPG or PNG',
|
|
84
|
-
action: 'Capture website',
|
|
85
|
-
},
|
|
86
118
|
{
|
|
87
119
|
name: 'Convert File',
|
|
88
120
|
value: 'convert',
|
|
@@ -101,26 +133,142 @@ class CloudConvert {
|
|
|
101
133
|
description: 'Create a thumbnail of a file',
|
|
102
134
|
action: 'Create a thumbnail',
|
|
103
135
|
},
|
|
136
|
+
{
|
|
137
|
+
name: 'Optimize File',
|
|
138
|
+
value: 'optimize',
|
|
139
|
+
description: 'Optimize / compress a file to reduce its size',
|
|
140
|
+
action: 'Optimize a file',
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
default: 'convert',
|
|
144
|
+
noDataExpression: true,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Operation',
|
|
148
|
+
name: 'operation',
|
|
149
|
+
type: 'options',
|
|
150
|
+
displayOptions: {
|
|
151
|
+
show: {
|
|
152
|
+
resource: ['metadata'],
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
options: [
|
|
104
156
|
{
|
|
105
157
|
name: 'Get Metadata',
|
|
106
158
|
value: 'metadata',
|
|
107
159
|
description: 'Extract metadata from files',
|
|
108
160
|
action: 'Get metadata from a file',
|
|
109
161
|
},
|
|
162
|
+
{
|
|
163
|
+
name: 'Write Metadata',
|
|
164
|
+
value: 'metadata/write',
|
|
165
|
+
description: 'Write metadata to files',
|
|
166
|
+
action: 'Write metadata to a file',
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
default: 'metadata',
|
|
170
|
+
noDataExpression: true,
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
displayName: 'Operation',
|
|
174
|
+
name: 'operation',
|
|
175
|
+
type: 'options',
|
|
176
|
+
displayOptions: {
|
|
177
|
+
show: {
|
|
178
|
+
resource: ['pdf'],
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
options: [
|
|
182
|
+
{
|
|
183
|
+
name: 'Add PDF OCR Layer',
|
|
184
|
+
value: 'pdf/ocr',
|
|
185
|
+
description: 'Add an OCR text layer to scanned PDF files',
|
|
186
|
+
action: 'Add OCR layer to PDF',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: 'Convert PDF to PDF/A',
|
|
190
|
+
value: 'pdf/a',
|
|
191
|
+
description: 'Convert a PDF file to PDF/A-1B, PDF/A-2B or PDF/A-3B',
|
|
192
|
+
action: 'Convert PDF to PDF/A',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: 'Decrypt PDF',
|
|
196
|
+
value: 'pdf/decrypt',
|
|
197
|
+
description: 'Decrypt a password-protected PDF file',
|
|
198
|
+
action: 'Decrypt PDF',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: 'Encrypt PDF',
|
|
202
|
+
value: 'pdf/encrypt',
|
|
203
|
+
description: 'Encrypt a PDF file and optionally set a password and restrictions',
|
|
204
|
+
action: 'Encrypt PDF',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
name: 'Extract Pages From PDF',
|
|
208
|
+
value: 'pdf/extract-pages',
|
|
209
|
+
description: 'Extract specific pages or page ranges from a PDF file',
|
|
210
|
+
action: 'Extract pages from PDF',
|
|
211
|
+
},
|
|
110
212
|
{
|
|
111
213
|
name: 'Merge Files',
|
|
112
|
-
value: 'merge',
|
|
214
|
+
value: 'pdf/merge',
|
|
113
215
|
description: 'Merge multiple files into a single PDF',
|
|
114
216
|
action: 'Merge files to PDF',
|
|
115
217
|
},
|
|
116
218
|
{
|
|
117
|
-
name: '
|
|
118
|
-
value: '
|
|
119
|
-
description: '
|
|
120
|
-
action: '
|
|
219
|
+
name: 'Rotate PDF Pages',
|
|
220
|
+
value: 'pdf/rotate-pages',
|
|
221
|
+
description: 'Rotate single pages or all pages of a PDF file',
|
|
222
|
+
action: 'Rotate PDF pages',
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: 'Split PDF Into Pages',
|
|
226
|
+
value: 'pdf/split-pages',
|
|
227
|
+
description: 'Split a PDF into one PDF file per page',
|
|
228
|
+
action: 'Split PDF into pages',
|
|
121
229
|
},
|
|
122
230
|
],
|
|
123
|
-
default: '
|
|
231
|
+
default: 'pdf/a',
|
|
232
|
+
noDataExpression: true,
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
displayName: 'Operation',
|
|
236
|
+
name: 'operation',
|
|
237
|
+
type: 'options',
|
|
238
|
+
displayOptions: {
|
|
239
|
+
show: {
|
|
240
|
+
resource: ['command'],
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
options: [
|
|
244
|
+
{
|
|
245
|
+
name: 'Execute Command',
|
|
246
|
+
value: 'command',
|
|
247
|
+
description: 'Execute a custom ffmpeg, ImageMagick or GraphicsMagick command on the input file',
|
|
248
|
+
action: 'Execute command',
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
default: 'command',
|
|
252
|
+
noDataExpression: true,
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
displayName: 'Operation',
|
|
256
|
+
name: 'operation',
|
|
257
|
+
type: 'options',
|
|
258
|
+
displayOptions: {
|
|
259
|
+
show: {
|
|
260
|
+
resource: ['website'],
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
options: [
|
|
264
|
+
{
|
|
265
|
+
name: 'Capture Website',
|
|
266
|
+
value: 'capture-website',
|
|
267
|
+
description: 'Creates job to capture a website as PDF or create a website screenshot as JPG or PNG',
|
|
268
|
+
action: 'Capture website',
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
default: 'capture-website',
|
|
124
272
|
noDataExpression: true,
|
|
125
273
|
},
|
|
126
274
|
{
|
|
@@ -155,14 +303,23 @@ class CloudConvert {
|
|
|
155
303
|
'thumbnail',
|
|
156
304
|
'optimize',
|
|
157
305
|
'metadata',
|
|
306
|
+
'metadata/write',
|
|
158
307
|
'watermark',
|
|
308
|
+
'command',
|
|
309
|
+
'pdf/a',
|
|
310
|
+
'pdf/ocr',
|
|
311
|
+
'pdf/encrypt',
|
|
312
|
+
'pdf/decrypt',
|
|
313
|
+
'pdf/split-pages',
|
|
314
|
+
'pdf/extract-pages',
|
|
315
|
+
'pdf/rotate-pages',
|
|
159
316
|
],
|
|
160
317
|
},
|
|
161
318
|
},
|
|
162
319
|
description: 'Whether the input file to upload should be taken from binary field',
|
|
163
320
|
},
|
|
164
321
|
{
|
|
165
|
-
displayName: 'Input File
|
|
322
|
+
displayName: 'Input File Contents',
|
|
166
323
|
name: 'inputFileContent',
|
|
167
324
|
type: 'string',
|
|
168
325
|
default: '',
|
|
@@ -176,7 +333,16 @@ class CloudConvert {
|
|
|
176
333
|
'thumbnail',
|
|
177
334
|
'optimize',
|
|
178
335
|
'metadata',
|
|
336
|
+
'metadata/write',
|
|
179
337
|
'watermark',
|
|
338
|
+
'command',
|
|
339
|
+
'pdf/a',
|
|
340
|
+
'pdf/ocr',
|
|
341
|
+
'pdf/encrypt',
|
|
342
|
+
'pdf/decrypt',
|
|
343
|
+
'pdf/split-pages',
|
|
344
|
+
'pdf/extract-pages',
|
|
345
|
+
'pdf/rotate-pages',
|
|
180
346
|
],
|
|
181
347
|
inputBinaryData: [false],
|
|
182
348
|
},
|
|
@@ -185,7 +351,7 @@ class CloudConvert {
|
|
|
185
351
|
description: 'The text content of the file to upload',
|
|
186
352
|
},
|
|
187
353
|
{
|
|
188
|
-
displayName: 'Input
|
|
354
|
+
displayName: 'Input File Name',
|
|
189
355
|
name: 'inputFilename',
|
|
190
356
|
type: 'string',
|
|
191
357
|
default: '',
|
|
@@ -199,7 +365,9 @@ class CloudConvert {
|
|
|
199
365
|
'thumbnail',
|
|
200
366
|
'optimize',
|
|
201
367
|
'metadata',
|
|
368
|
+
'metadata/write',
|
|
202
369
|
'watermark',
|
|
370
|
+
'command',
|
|
203
371
|
],
|
|
204
372
|
inputBinaryData: [false],
|
|
205
373
|
},
|
|
@@ -222,7 +390,16 @@ class CloudConvert {
|
|
|
222
390
|
'thumbnail',
|
|
223
391
|
'optimize',
|
|
224
392
|
'metadata',
|
|
393
|
+
'metadata/write',
|
|
225
394
|
'watermark',
|
|
395
|
+
'command',
|
|
396
|
+
'pdf/a',
|
|
397
|
+
'pdf/ocr',
|
|
398
|
+
'pdf/encrypt',
|
|
399
|
+
'pdf/decrypt',
|
|
400
|
+
'pdf/split-pages',
|
|
401
|
+
'pdf/extract-pages',
|
|
402
|
+
'pdf/rotate-pages',
|
|
226
403
|
],
|
|
227
404
|
inputBinaryData: [true],
|
|
228
405
|
},
|
|
@@ -233,6 +410,22 @@ class CloudConvert {
|
|
|
233
410
|
...fields_3.captureWebsiteFields,
|
|
234
411
|
...fields_1.thumbnailFields,
|
|
235
412
|
...fields_2.watermarkFields,
|
|
413
|
+
...fields_4.pdfFields,
|
|
414
|
+
...fields_5.commandFields,
|
|
415
|
+
{
|
|
416
|
+
displayName: 'Metadata',
|
|
417
|
+
name: 'metadata',
|
|
418
|
+
type: 'json',
|
|
419
|
+
default: '',
|
|
420
|
+
displayOptions: {
|
|
421
|
+
show: {
|
|
422
|
+
resource: ['metadata'],
|
|
423
|
+
operation: ['metadata/write'],
|
|
424
|
+
},
|
|
425
|
+
},
|
|
426
|
+
placeholder: '{ "Author": "Jane Doe", "Title": "My Document" }',
|
|
427
|
+
description: 'JSON dictionary of metadata keys and values to write, for example Title, Author, Creator, Producer',
|
|
428
|
+
},
|
|
236
429
|
{
|
|
237
430
|
displayName: 'Additional Options',
|
|
238
431
|
name: 'additionalOptions',
|
|
@@ -244,9 +437,9 @@ class CloudConvert {
|
|
|
244
437
|
'convert',
|
|
245
438
|
'thumbnail',
|
|
246
439
|
'optimize',
|
|
247
|
-
'metadata',
|
|
248
440
|
'watermark',
|
|
249
441
|
'capture-website',
|
|
442
|
+
'command',
|
|
250
443
|
],
|
|
251
444
|
},
|
|
252
445
|
},
|
|
@@ -260,9 +453,11 @@ class CloudConvert {
|
|
|
260
453
|
async loadOutputFormats() {
|
|
261
454
|
const operation = this.getCurrentNodeParameter('operation');
|
|
262
455
|
const returnData = [];
|
|
263
|
-
const
|
|
456
|
+
const credentialsType = this.getCurrentNodeParameter('authentication') === 'oAuth2'
|
|
457
|
+
? 'cloudConvertOAuth2Api'
|
|
458
|
+
: 'cloudConvertApi';
|
|
459
|
+
const { data } = await this.helpers.httpRequestWithAuthentication.call(this, credentialsType, {
|
|
264
460
|
method: 'GET',
|
|
265
|
-
json: true,
|
|
266
461
|
url: `https://api.cloudconvert.com/v2/operations?filter[operation]=${operation}`,
|
|
267
462
|
});
|
|
268
463
|
const uniqueFormats = Array.from(new Set(data.map((item) => item.output_format || '')));
|
|
@@ -298,12 +493,24 @@ class CloudConvert {
|
|
|
298
493
|
else if (operation === 'watermark') {
|
|
299
494
|
return await execute_6.executeWatermark.call(this);
|
|
300
495
|
}
|
|
301
|
-
else if (operation === 'metadata') {
|
|
496
|
+
else if (operation === 'metadata' || operation === 'metadata/write') {
|
|
302
497
|
return await execute_7.executeMetadata.call(this);
|
|
303
498
|
}
|
|
304
499
|
else if (operation === 'capture-website') {
|
|
305
500
|
return await execute_8.executeCaptureWebsite.call(this);
|
|
306
501
|
}
|
|
502
|
+
else if (operation === 'command') {
|
|
503
|
+
return await execute_10.executeCommand.call(this);
|
|
504
|
+
}
|
|
505
|
+
else if (operation === 'pdf/a' ||
|
|
506
|
+
operation === 'pdf/ocr' ||
|
|
507
|
+
operation === 'pdf/encrypt' ||
|
|
508
|
+
operation === 'pdf/decrypt' ||
|
|
509
|
+
operation === 'pdf/split-pages' ||
|
|
510
|
+
operation === 'pdf/extract-pages' ||
|
|
511
|
+
operation === 'pdf/rotate-pages') {
|
|
512
|
+
return await execute_9.executePdfOperation.call(this);
|
|
513
|
+
}
|
|
307
514
|
else {
|
|
308
515
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Invalid operation ${operation}`);
|
|
309
516
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudConvert.node.js","sourceRoot":"","sources":["../../../nodes/CloudConvert/CloudConvert.node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CloudConvert.node.js","sourceRoot":"","sources":["../../../nodes/CloudConvert/CloudConvert.node.ts"],"names":[],"mappings":";;;AAQA,+CAAkD;AAElD,0DAAgE;AAChE,4DAAkE;AAClE,0DAA8D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AAO,MAAM,yBAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACzC,CAAC;iBAAM,IAAI,SAAS,KAAK,iBAAiB,EAAE,CAAC;gBAC5C,OAAO,MAAM,+BAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC/C,CAAC;iBAAM,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;gBACpC,OAAO,MAAM,yBAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxC,CAAC;iBAAM,IACN,SAAS,KAAK,OAAO;gBACrB,SAAS,KAAK,SAAS;gBACvB,SAAS,KAAK,aAAa;gBAC3B,SAAS,KAAK,aAAa;gBAC3B,SAAS,KAAK,iBAAiB;gBAC/B,SAAS,KAAK,mBAAmB;gBACjC,SAAS,KAAK,kBAAkB,EAC/B,CAAC;gBACF,OAAO,MAAM,6BAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7C,CAAC;iBAAM,CAAC;gBACP,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,qBAAqB,SAAS,EAAE,CAAC,CAAC;YAChF,CAAC;QACF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,OAAO,IAAI,CAAC,iBAAiB,CAAC;oBAC7B;wBACC,IAAI,EAAE;4BACL,KAAK,EAAE,KAAK,CAAC,OAAO;yBACpB;qBACD;iBACD,CAAC,CAAC;YACJ,CAAC;YACD,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;CACD;AAhjBD,oCAgjBC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createJob = createJob;
|
|
4
|
+
exports.uploadInputFile = uploadInputFile;
|
|
5
|
+
exports.getJobErrorMessage = getJobErrorMessage;
|
|
6
|
+
exports.waitForJob = waitForJob;
|
|
7
|
+
exports.downloadOutputFile = downloadOutputFile;
|
|
8
|
+
exports.getJobUploadTask = getJobUploadTask;
|
|
9
|
+
exports.getJobExportUrls = getJobExportUrls;
|
|
10
|
+
exports.mergeObjects = mergeObjects;
|
|
4
11
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
12
|
async function createJob(tasks) {
|
|
6
13
|
var _a, _b;
|
|
@@ -27,12 +34,9 @@ async function createJob(tasks) {
|
|
|
27
34
|
}
|
|
28
35
|
return createResponseData.data;
|
|
29
36
|
}
|
|
30
|
-
exports.createJob = createJob;
|
|
31
37
|
async function uploadInputFile(uploadTask, itemIndex = 0) {
|
|
32
38
|
var _a, _b;
|
|
33
|
-
const
|
|
34
|
-
const BlobCtor = globalThis.Blob;
|
|
35
|
-
const formData = new FormDataCtor();
|
|
39
|
+
const formData = new FormData();
|
|
36
40
|
for (const parameter in ((_b = (_a = uploadTask.result) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.parameters) || {}) {
|
|
37
41
|
formData.append(parameter, uploadTask.result.form.parameters[parameter]);
|
|
38
42
|
}
|
|
@@ -42,13 +46,13 @@ async function uploadInputFile(uploadTask, itemIndex = 0) {
|
|
|
42
46
|
const buffer = await this.helpers.getBinaryDataBuffer(itemIndex, binaryPropertyName);
|
|
43
47
|
if (!binaryData.fileName)
|
|
44
48
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No file name given for input file.');
|
|
45
|
-
const blob = new
|
|
49
|
+
const blob = new Blob([buffer], { type: binaryData.mimeType || undefined });
|
|
46
50
|
formData.append('file', blob, binaryData.fileName);
|
|
47
51
|
}
|
|
48
52
|
else {
|
|
49
53
|
const content = this.getNodeParameter('inputFileContent', itemIndex);
|
|
50
54
|
const filename = this.getNodeParameter('inputFilename', itemIndex);
|
|
51
|
-
const blob = new
|
|
55
|
+
const blob = new Blob([content], { type: 'text/plain' });
|
|
52
56
|
formData.append('file', blob, filename);
|
|
53
57
|
}
|
|
54
58
|
await this.helpers.httpRequest({
|
|
@@ -57,7 +61,6 @@ async function uploadInputFile(uploadTask, itemIndex = 0) {
|
|
|
57
61
|
body: formData,
|
|
58
62
|
});
|
|
59
63
|
}
|
|
60
|
-
exports.uploadInputFile = uploadInputFile;
|
|
61
64
|
function getJobErrorMessage(job) {
|
|
62
65
|
return job.tasks
|
|
63
66
|
.map((task) => {
|
|
@@ -70,7 +73,6 @@ function getJobErrorMessage(job) {
|
|
|
70
73
|
.filter((msg) => msg !== null)
|
|
71
74
|
.join('; ');
|
|
72
75
|
}
|
|
73
|
-
exports.getJobErrorMessage = getJobErrorMessage;
|
|
74
76
|
async function waitForJob(id) {
|
|
75
77
|
const credentialsType = this.getNodeParameter('authentication', 0) === 'oAuth2'
|
|
76
78
|
? 'cloudConvertOAuth2Api'
|
|
@@ -85,7 +87,6 @@ async function waitForJob(id) {
|
|
|
85
87
|
}
|
|
86
88
|
return job;
|
|
87
89
|
}
|
|
88
|
-
exports.waitForJob = waitForJob;
|
|
89
90
|
async function downloadOutputFile(exportUrl) {
|
|
90
91
|
const downloadResponse = (await this.helpers.httpRequest({
|
|
91
92
|
method: 'GET',
|
|
@@ -95,18 +96,15 @@ async function downloadOutputFile(exportUrl) {
|
|
|
95
96
|
}));
|
|
96
97
|
return this.helpers.prepareBinaryData(downloadResponse.body, exportUrl.filename, downloadResponse.headers['content-type']);
|
|
97
98
|
}
|
|
98
|
-
exports.downloadOutputFile = downloadOutputFile;
|
|
99
99
|
function getJobUploadTask(job, index = 0) {
|
|
100
100
|
const uploadTasks = job.tasks.filter((task) => task.operation === 'import/upload');
|
|
101
101
|
return uploadTasks[index] !== undefined ? uploadTasks[index] : null;
|
|
102
102
|
}
|
|
103
|
-
exports.getJobUploadTask = getJobUploadTask;
|
|
104
103
|
function getJobExportUrls(job) {
|
|
105
104
|
return job.tasks
|
|
106
105
|
.filter((task) => task.operation === 'export/url' && task.status === 'finished')
|
|
107
106
|
.flatMap((task) => { var _a, _b; return (_b = (_a = task.result) === null || _a === void 0 ? void 0 : _a.files) !== null && _b !== void 0 ? _b : []; });
|
|
108
107
|
}
|
|
109
|
-
exports.getJobExportUrls = getJobExportUrls;
|
|
110
108
|
function mergeObjects(target, source) {
|
|
111
109
|
const output = { ...target };
|
|
112
110
|
for (const key of Object.keys(source)) {
|
|
@@ -126,5 +124,4 @@ function mergeObjects(target, source) {
|
|
|
126
124
|
}
|
|
127
125
|
return output;
|
|
128
126
|
}
|
|
129
|
-
exports.mergeObjects = mergeObjects;
|
|
130
127
|
//# sourceMappingURL=Utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../nodes/CloudConvert/Utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../../nodes/CloudConvert/Utils.ts"],"names":[],"mappings":";;AAKA,8BA8BC;AAED,0CA6BC;AAED,gDAUC;AAED,gCAoBC;AAED,gDAYC;AAED,4CAGC;AAED,4CAIC;AAGD,oCAsBC;AArJD,+CAAkD;AAI3C,KAAK,UAAU,SAAS,CAA0B,KAAyB;;IACjF,MAAM,eAAe,GACnB,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC,CAAY,KAAK,QAAQ;QAClE,CAAC,CAAC,uBAAuB;QACzB,CAAC,CAAC,iBAAiB,CAAC;IACtB,IAAI,kBAAkB,CAAC;IACvB,IAAI,CAAC;QACJ,kBAAkB,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CACzE,IAAI,EACJ,eAAe,EACf;YACC,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,sCAAsC;YAC3C,IAAI,EAAE,IAAI;YACV,IAAI,EAAE;gBACL,GAAG,EAAE,KAAK;gBACV,KAAK;aACL;SACD,CACD,CAAC;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,IAAI,MAAA,MAAA,C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DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="1015px" height="668px" viewBox="0 0 10150 6680" preserveAspectRatio="xMidYMid meet">
|
|
3
|
+
<defs><linearGradient id="outlineGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#707070;stop-opacity:1" /><stop offset="100%" style="stop-color:#292929;stop-opacity:1" /></linearGradient><linearGradient id="cloudGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#f9f9f9;stop-opacity:1" /><stop offset="100%" style="stop-color:#d5d5d5;stop-opacity:1" /></linearGradient><linearGradient id="redGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#ee5f5b;stop-opacity:1" /><stop offset="100%" style="stop-color:#941f1e;stop-opacity:1" /></linearGradient></defs><g id="layer101" fill="url(#redGrad)" stroke="none">
|
|
4
|
+
<path d="M4710 6670 l-3165 -6 -195 -50 c-230 -60 -319 -99 -477 -210 -228 -161 -327 -262 -490 -501 -151 -222 -219 -385 -297 -714 -64 -271 -76 -363 -76 -569 0 -206 12 -300 76 -570 54 -226 97 -357 161 -484 71 -142 213 -347 328 -474 147 -161 449 -363 605 -403 43 -11 50 -16 56 -43 33 -159 120 -493 150 -572 46 -126 129 -288 200 -395 182 -272 322 -422 537 -574 225 -159 297 -191 607 -265 200 -48 352 -61 486 -41 62 9 318 69 449 105 16 5 35 -15 105 -110 147 -202 307 -348 569 -520 137 -89 253 -138 439 -185 264 -67 341 -80 483 -80 148 0 185 6 436 66 267 65 373 112 597 270 143 100 249 189 332 278 68 74 201 247 269 350 21 31 42 57 47 57 5 0 46 -10 91 -22 66 -18 110 -22 227 -22 134 -1 157 2 300 37 279 68 358 102 555 238 257 179 493 460 653 779 67 134 102 224 164 428 13 42 16 44 96 76 123 50 350 206 469 323 186 184 386 500 472 746 53 151 138 519 161 696 16 122 14 426 -4 554 -25 171 -110 523 -165 682 -78 223 -321 588 -489 733 -99 86 -284 213 -368 254 -90 43 -381 121 -518 138 -44 5 -222 9 -396 8 -173 -2 -1739 -5 -3480 -8z" />
|
|
5
|
+
</g>
|
|
6
|
+
<g id="layer102" fill="url(#outlineGrad)" stroke="none">
|
|
7
|
+
<path d="M4710 6670 l-3165 -6 -195 -50 c-230 -60 -319 -99 -477 -210 -228 -161 -327 -262 -490 -501 -151 -222 -219 -385 -297 -714 -64 -271 -76 -363 -76 -569 0 -206 12 -300 76 -570 54 -226 97 -357 161 -484 71 -142 213 -347 328 -474 147 -161 449 -363 605 -403 43 -11 50 -16 56 -43 33 -159 120 -493 150 -572 46 -126 129 -288 200 -395 182 -272 322 -422 537 -574 225 -159 297 -191 607 -265 200 -48 352 -61 486 -41 62 9 318 69 449 105 16 5 35 -15 105 -110 147 -202 307 -348 569 -520 137 -89 253 -138 439 -185 264 -67 341 -80 483 -80 148 0 185 6 436 66 267 65 373 112 597 270 143 100 249 189 332 278 68 74 201 247 269 350 21 31 42 57 47 57 5 0 46 -10 91 -22 66 -18 110 -22 227 -22 134 -1 157 2 300 37 279 68 358 102 555 238 257 179 493 460 653 779 67 134 102 224 164 428 13 42 16 44 96 76 123 50 350 206 469 323 186 184 386 500 472 746 53 151 138 519 161 696 16 122 14 426 -4 554 -25 171 -110 523 -165 682 -78 223 -321 588 -489 733 -99 86 -284 213 -368 254 -90 43 -381 121 -518 138 -44 5 -222 9 -396 8 -173 -2 -1739 -5 -3480 -8z m745 -1000 c161 -32 283 -73 430 -146 174 -85 294 -173 446 -324 191 -190 323 -404 405 -655 30 -91 31 -101 16 -107 -9 -4 -152 -41 -317 -83 -165 -42 -307 -78 -317 -81 -13 -4 -21 10 -38 63 -93 282 -323 518 -600 617 -270 97 -501 81 -773 -55 -104 -52 -238 -137 -244 -156 -2 -6 68 -75 157 -154 89 -80 155 -146 148 -148 -30 -10 -1373 -368 -1375 -367 -3 3 239 1400 243 1405 2 2 62 -50 135 -115 72 -66 142 -127 155 -137 l24 -19 77 63 c269 216 588 361 912 414 124 21 374 13 516 -15z m1193 -2446 c-67 -384 -123 -701 -124 -703 -2 -1 -71 58 -154 133 -83 75 -154 136 -158 136 -4 0 -38 -25 -77 -56 -382 -308 -857 -467 -1267 -425 -145 14 -242 35 -380 81 -158 52 -265 105 -406 199 -314 210 -559 537 -665 889 -14 45 -24 82 -23 82 3 0 630 160 647 165 13 4 23 -14 48 -84 106 -295 364 -538 660 -620 247 -69 450 -46 706 79 100 48 245 143 245 159 0 5 -72 74 -159 152 -88 79 -157 145 -153 146 21 8 1377 370 1379 369 1 -1 -52 -317 -119 -702z" />
|
|
8
|
+
</g>
|
|
9
|
+
<g id="layer103" fill="url(#cloudGrad)" stroke="none">
|
|
10
|
+
<path d="M1610 6109 c-228 -28 -420 -127 -600 -308 -331 -333 -502 -887 -435 -1408 50 -384 187 -691 413 -925 198 -205 402 -305 645 -315 l117 -6 0 -76 c1 -783 415 -1481 994 -1675 362 -122 770 -28 1073 247 61 55 83 68 83 47 0 -22 97 -234 152 -332 170 -300 438 -562 700 -682 394 -183 826 -148 1195 95 292 193 535 507 679 876 21 54 39 100 40 102 2 1 41 -23 88 -54 170 -113 326 -160 521 -158 148 1 239 23 380 91 256 124 471 358 630 685 92 187 140 343 201 645 4 19 11 22 48 22 55 0 177 31 265 68 105 44 206 116 311 222 235 235 385 555 457 975 24 145 24 491 0 640 -80 481 -272 841 -567 1062 -71 54 -195 115 -290 145 l-75 23 -3480 1 c-1914 1 -3509 -2 -3545 -7z m3845 -439 c161 -32 283 -73 430 -146 174 -85 294 -173 446 -324 191 -190 323 -404 405 -655 30 -91 31 -101 16 -107 -9 -4 -152 -41 -317 -83 -165 -42 -307 -78 -317 -81 -13 -4 -21 10 -38 63 -93 282 -323 518 -600 617 -270 97 -501 81 -773 -55 -104 -52 -238 -137 -244 -156 -2 -6 68 -75 157 -154 89 -80 155 -146 148 -148 -30 -10 -1373 -368 -1375 -367 -3 3 239 1400 243 1405 2 2 62 -50 135 -115 72 -66 142 -127 155 -137 l24 -19 77 63 c269 216 588 361 912 414 124 21 374 13 516 -15z m1193 -2446 c-67 -384 -123 -701 -124 -703 -2 -1 -71 58 -154 133 -83 75 -154 136 -158 136 -4 0 -38 -25 -77 -56 -382 -308 -857 -467 -1267 -425 -145 14 -242 35 -380 81 -158 52 -265 105 -406 199 -314 210 -559 537 -665 889 -14 45 -24 82 -23 82 3 0 630 160 647 165 13 4 23 -14 48 -84 106 -295 364 -538 660 -620 247 -69 450 -46 706 79 100 48 245 143 245 159 0 5 -72 74 -159 152 -88 79 -157 145 -153 146 21 8 1377 370 1379 369 1 -1 -52 -317 -119 -702z" />
|
|
11
|
+
</g>
|
|
12
|
+
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="1015px" height="668px" viewBox="0 0 10150 6680" preserveAspectRatio="xMidYMid meet">
|
|
3
|
+
<defs><linearGradient id="outlineGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#707070;stop-opacity:1" /><stop offset="100%" style="stop-color:#292929;stop-opacity:1" /></linearGradient><linearGradient id="cloudGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#f9f9f9;stop-opacity:1" /><stop offset="100%" style="stop-color:#d5d5d5;stop-opacity:1" /></linearGradient><linearGradient id="redGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#ee5f5b;stop-opacity:1" /><stop offset="100%" style="stop-color:#941f1e;stop-opacity:1" /></linearGradient></defs>
|
|
4
|
+
<g id="layer103" fill="url(#cloudGrad)" stroke="none">
|
|
5
|
+
<path d="M1610 6109 c-228 -28 -420 -127 -600 -308 -331 -333 -502 -887 -435 -1408 50 -384 187 -691 413 -925 198 -205 402 -305 645 -315 l117 -6 0 -76 c1 -783 415 -1481 994 -1675 362 -122 770 -28 1073 247 61 55 83 68 83 47 0 -22 97 -234 152 -332 170 -300 438 -562 700 -682 394 -183 826 -148 1195 95 292 193 535 507 679 876 21 54 39 100 40 102 2 1 41 -23 88 -54 170 -113 326 -160 521 -158 148 1 239 23 380 91 256 124 471 358 630 685 92 187 140 343 201 645 4 19 11 22 48 22 55 0 177 31 265 68 105 44 206 116 311 222 235 235 385 555 457 975 24 145 24 491 0 640 -80 481 -272 841 -567 1062 -71 54 -195 115 -290 145 l-75 23 -3480 1 c-1914 1 -3509 -2 -3545 -7z" />
|
|
6
|
+
</g>
|
|
7
|
+
<g id="layer104" fill="url(#redGrad)" stroke="none">
|
|
8
|
+
<path d="M1610 6109 m3845 -439 c161 -32 283 -73 430 -146 174 -85 294 -173 446 -324 191 -190 323 -404 405 -655 30 -91 31 -101 16 -107 -9 -4 -152 -41 -317 -83 -165 -42 -307 -78 -317 -81 -13 -4 -21 10 -38 63 -93 282 -323 518 -600 617 -270 97 -501 81 -773 -55 -104 -52 -238 -137 -244 -156 -2 -6 68 -75 157 -154 89 -80 155 -146 148 -148 -30 -10 -1373 -368 -1375 -367 -3 3 239 1400 243 1405 2 2 62 -50 135 -115 72 -66 142 -127 155 -137 l24 -19 77 63 c269 216 588 361 912 414 124 21 374 13 516 -15z m1193 -2446 c-67 -384 -123 -701 -124 -703 -2 -1 -71 58 -154 133 -83 75 -154 136 -158 136 -4 0 -38 -25 -77 -56 -382 -308 -857 -467 -1267 -425 -145 14 -242 35 -380 81 -158 52 -265 105 -406 199 -314 210 -559 537 -665 889 -14 45 -24 82 -23 82 3 0 630 160 647 165 13 4 23 -14 48 -84 106 -295 364 -538 660 -620 247 -69 450 -46 706 79 100 48 245 143 245 159 0 5 -72 74 -159 152 -88 79 -157 145 -153 146 21 8 1377 370 1379 369 1 -1 -52 -317 -119 -702z" />
|
|
9
|
+
</g>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
</svg>
|