@activepieces/piece-cloudconvert 0.0.2 → 0.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/package.json +10 -14
- package/src/i18n/de.json +7 -1
- package/src/i18n/es.json +7 -1
- package/src/i18n/fr.json +7 -1
- package/src/i18n/ja.json +7 -1
- package/src/i18n/nl.json +7 -1
- package/src/i18n/pt.json +7 -1
- package/src/i18n/translation.json +7 -1
- package/src/i18n/zh.json +7 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/lib/actions/convert-file.d.ts +2 -2
- package/src/lib/actions/convert-file.js.map +1 -1
- package/src/lib/actions/download-file.d.ts +1 -1
- package/src/lib/actions/download-file.js +1 -0
- package/src/lib/actions/download-file.js.map +1 -1
- package/src/lib/common/properties.d.ts +2 -2
- package/src/lib/common/properties.js +4 -55
- package/src/lib/common/properties.js.map +1 -1
- package/src/lib/common/schemas.d.ts +38 -444
- package/src/lib/triggers/job-failed.d.ts +1 -1
- package/src/lib/triggers/job-failed.js +5 -3
- package/src/lib/triggers/job-failed.js.map +1 -1
- package/src/lib/triggers/job-finished.d.ts +1 -1
- package/src/lib/triggers/job-finished.js +2 -1
- package/src/lib/triggers/job-finished.js.map +1 -1
- package/src/lib/triggers/new-job.d.ts +1 -1
- package/src/lib/triggers/new-job.js +2 -1
- package/src/lib/triggers/new-job.js.map +1 -1
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const convertFileSchema: z.
|
|
3
|
-
import_method: z.ZodEnum<
|
|
2
|
+
export declare const convertFileSchema: z.ZodObject<{
|
|
3
|
+
import_method: z.ZodEnum<{
|
|
4
|
+
upload: "upload";
|
|
5
|
+
url: "url";
|
|
6
|
+
stored_file: "stored_file";
|
|
7
|
+
}>;
|
|
4
8
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5
9
|
base64: z.ZodString;
|
|
6
10
|
filename: z.ZodOptional<z.ZodString>;
|
|
7
11
|
extension: z.ZodOptional<z.ZodString>;
|
|
8
|
-
},
|
|
9
|
-
base64: string;
|
|
10
|
-
filename?: string | undefined;
|
|
11
|
-
extension?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
base64: string;
|
|
14
|
-
filename?: string | undefined;
|
|
15
|
-
extension?: string | undefined;
|
|
16
|
-
}>>>;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
17
13
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
14
|
stored_file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
input_format: z.
|
|
15
|
+
input_format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
16
|
output_format: z.ZodString;
|
|
21
17
|
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
18
|
engine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -24,75 +20,7 @@ export declare const convertFileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
24
20
|
timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
21
|
wait_for_completion: z.ZodDefault<z.ZodBoolean>;
|
|
26
22
|
store_file: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
-
},
|
|
28
|
-
output_format: string;
|
|
29
|
-
import_method: "upload" | "url" | "stored_file";
|
|
30
|
-
wait_for_completion: boolean;
|
|
31
|
-
store_file: boolean;
|
|
32
|
-
filename?: string | null | undefined;
|
|
33
|
-
engine?: string | null | undefined;
|
|
34
|
-
timeout?: number | null | undefined;
|
|
35
|
-
input_format?: string | null | undefined;
|
|
36
|
-
engine_version?: string | null | undefined;
|
|
37
|
-
url?: string | null | undefined;
|
|
38
|
-
file?: {
|
|
39
|
-
base64: string;
|
|
40
|
-
filename?: string | undefined;
|
|
41
|
-
extension?: string | undefined;
|
|
42
|
-
} | null | undefined;
|
|
43
|
-
stored_file_id?: string | null | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
output_format: string;
|
|
46
|
-
import_method: "upload" | "url" | "stored_file";
|
|
47
|
-
filename?: string | null | undefined;
|
|
48
|
-
engine?: string | null | undefined;
|
|
49
|
-
timeout?: number | null | undefined;
|
|
50
|
-
input_format?: string | null | undefined;
|
|
51
|
-
engine_version?: string | null | undefined;
|
|
52
|
-
url?: string | null | undefined;
|
|
53
|
-
file?: {
|
|
54
|
-
base64: string;
|
|
55
|
-
filename?: string | undefined;
|
|
56
|
-
extension?: string | undefined;
|
|
57
|
-
} | null | undefined;
|
|
58
|
-
stored_file_id?: string | null | undefined;
|
|
59
|
-
wait_for_completion?: boolean | undefined;
|
|
60
|
-
store_file?: boolean | undefined;
|
|
61
|
-
}>, {
|
|
62
|
-
output_format: string;
|
|
63
|
-
import_method: "upload" | "url" | "stored_file";
|
|
64
|
-
wait_for_completion: boolean;
|
|
65
|
-
store_file: boolean;
|
|
66
|
-
filename?: string | null | undefined;
|
|
67
|
-
engine?: string | null | undefined;
|
|
68
|
-
timeout?: number | null | undefined;
|
|
69
|
-
input_format?: string | null | undefined;
|
|
70
|
-
engine_version?: string | null | undefined;
|
|
71
|
-
url?: string | null | undefined;
|
|
72
|
-
file?: {
|
|
73
|
-
base64: string;
|
|
74
|
-
filename?: string | undefined;
|
|
75
|
-
extension?: string | undefined;
|
|
76
|
-
} | null | undefined;
|
|
77
|
-
stored_file_id?: string | null | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
output_format: string;
|
|
80
|
-
import_method: "upload" | "url" | "stored_file";
|
|
81
|
-
filename?: string | null | undefined;
|
|
82
|
-
engine?: string | null | undefined;
|
|
83
|
-
timeout?: number | null | undefined;
|
|
84
|
-
input_format?: string | null | undefined;
|
|
85
|
-
engine_version?: string | null | undefined;
|
|
86
|
-
url?: string | null | undefined;
|
|
87
|
-
file?: {
|
|
88
|
-
base64: string;
|
|
89
|
-
filename?: string | undefined;
|
|
90
|
-
extension?: string | undefined;
|
|
91
|
-
} | null | undefined;
|
|
92
|
-
stored_file_id?: string | null | undefined;
|
|
93
|
-
wait_for_completion?: boolean | undefined;
|
|
94
|
-
store_file?: boolean | undefined;
|
|
95
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
96
24
|
export declare const captureWebsiteSchema: z.ZodObject<{
|
|
97
25
|
url: z.ZodString;
|
|
98
26
|
output_format: z.ZodString;
|
|
@@ -120,229 +48,51 @@ export declare const captureWebsiteSchema: z.ZodObject<{
|
|
|
120
48
|
timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
121
49
|
wait_for_completion: z.ZodDefault<z.ZodBoolean>;
|
|
122
50
|
store_file: z.ZodDefault<z.ZodBoolean>;
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
timeout?: number | null | undefined;
|
|
131
|
-
engine_version?: string | null | undefined;
|
|
132
|
-
pages?: string | null | undefined;
|
|
133
|
-
zoom?: number | null | undefined;
|
|
134
|
-
page_width?: number | null | undefined;
|
|
135
|
-
page_height?: number | null | undefined;
|
|
136
|
-
page_format?: string | null | undefined;
|
|
137
|
-
page_orientation?: string | null | undefined;
|
|
138
|
-
margin_top?: number | null | undefined;
|
|
139
|
-
margin_bottom?: number | null | undefined;
|
|
140
|
-
margin_left?: number | null | undefined;
|
|
141
|
-
margin_right?: number | null | undefined;
|
|
142
|
-
print_background?: boolean | null | undefined;
|
|
143
|
-
display_header_footer?: boolean | null | undefined;
|
|
144
|
-
header_template?: string | null | undefined;
|
|
145
|
-
footer_template?: string | null | undefined;
|
|
146
|
-
wait_until?: string | null | undefined;
|
|
147
|
-
wait_for_element?: string | null | undefined;
|
|
148
|
-
wait_time?: number | null | undefined;
|
|
149
|
-
css_media_type?: string | null | undefined;
|
|
150
|
-
}, {
|
|
151
|
-
output_format: string;
|
|
152
|
-
url: string;
|
|
153
|
-
filename?: string | null | undefined;
|
|
154
|
-
engine?: string | null | undefined;
|
|
155
|
-
timeout?: number | null | undefined;
|
|
156
|
-
engine_version?: string | null | undefined;
|
|
157
|
-
wait_for_completion?: boolean | undefined;
|
|
158
|
-
store_file?: boolean | undefined;
|
|
159
|
-
pages?: string | null | undefined;
|
|
160
|
-
zoom?: number | null | undefined;
|
|
161
|
-
page_width?: number | null | undefined;
|
|
162
|
-
page_height?: number | null | undefined;
|
|
163
|
-
page_format?: string | null | undefined;
|
|
164
|
-
page_orientation?: string | null | undefined;
|
|
165
|
-
margin_top?: number | null | undefined;
|
|
166
|
-
margin_bottom?: number | null | undefined;
|
|
167
|
-
margin_left?: number | null | undefined;
|
|
168
|
-
margin_right?: number | null | undefined;
|
|
169
|
-
print_background?: boolean | null | undefined;
|
|
170
|
-
display_header_footer?: boolean | null | undefined;
|
|
171
|
-
header_template?: string | null | undefined;
|
|
172
|
-
footer_template?: string | null | undefined;
|
|
173
|
-
wait_until?: string | null | undefined;
|
|
174
|
-
wait_for_element?: string | null | undefined;
|
|
175
|
-
wait_time?: number | null | undefined;
|
|
176
|
-
css_media_type?: string | null | undefined;
|
|
177
|
-
}>;
|
|
178
|
-
export declare const mergePdfSchema: z.ZodEffects<z.ZodObject<{
|
|
179
|
-
import_method: z.ZodEnum<["upload", "url", "stored_file"]>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export declare const mergePdfSchema: z.ZodObject<{
|
|
53
|
+
import_method: z.ZodEnum<{
|
|
54
|
+
upload: "upload";
|
|
55
|
+
url: "url";
|
|
56
|
+
stored_file: "stored_file";
|
|
57
|
+
}>;
|
|
180
58
|
files: z.ZodArray<z.ZodObject<{
|
|
181
59
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
60
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
183
61
|
base64: z.ZodString;
|
|
184
62
|
filename: z.ZodOptional<z.ZodString>;
|
|
185
63
|
extension: z.ZodOptional<z.ZodString>;
|
|
186
|
-
},
|
|
187
|
-
base64: string;
|
|
188
|
-
filename?: string | undefined;
|
|
189
|
-
extension?: string | undefined;
|
|
190
|
-
}, {
|
|
191
|
-
base64: string;
|
|
192
|
-
filename?: string | undefined;
|
|
193
|
-
extension?: string | undefined;
|
|
194
|
-
}>>>;
|
|
64
|
+
}, z.core.$strip>>>;
|
|
195
65
|
stored_file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
196
66
|
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
-
},
|
|
198
|
-
filename?: string | null | undefined;
|
|
199
|
-
url?: string | null | undefined;
|
|
200
|
-
file?: {
|
|
201
|
-
base64: string;
|
|
202
|
-
filename?: string | undefined;
|
|
203
|
-
extension?: string | undefined;
|
|
204
|
-
} | null | undefined;
|
|
205
|
-
stored_file_id?: string | null | undefined;
|
|
206
|
-
}, {
|
|
207
|
-
filename?: string | null | undefined;
|
|
208
|
-
url?: string | null | undefined;
|
|
209
|
-
file?: {
|
|
210
|
-
base64: string;
|
|
211
|
-
filename?: string | undefined;
|
|
212
|
-
extension?: string | undefined;
|
|
213
|
-
} | null | undefined;
|
|
214
|
-
stored_file_id?: string | null | undefined;
|
|
215
|
-
}>, "many">;
|
|
67
|
+
}, z.core.$strip>>;
|
|
216
68
|
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
69
|
engine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
70
|
engine_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
71
|
timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
220
72
|
wait_for_completion: z.ZodDefault<z.ZodBoolean>;
|
|
221
73
|
store_file: z.ZodDefault<z.ZodBoolean>;
|
|
222
|
-
},
|
|
223
|
-
import_method: "upload" | "url" | "stored_file";
|
|
224
|
-
wait_for_completion: boolean;
|
|
225
|
-
store_file: boolean;
|
|
226
|
-
files: {
|
|
227
|
-
filename?: string | null | undefined;
|
|
228
|
-
url?: string | null | undefined;
|
|
229
|
-
file?: {
|
|
230
|
-
base64: string;
|
|
231
|
-
filename?: string | undefined;
|
|
232
|
-
extension?: string | undefined;
|
|
233
|
-
} | null | undefined;
|
|
234
|
-
stored_file_id?: string | null | undefined;
|
|
235
|
-
}[];
|
|
236
|
-
filename?: string | null | undefined;
|
|
237
|
-
engine?: string | null | undefined;
|
|
238
|
-
timeout?: number | null | undefined;
|
|
239
|
-
engine_version?: string | null | undefined;
|
|
240
|
-
}, {
|
|
241
|
-
import_method: "upload" | "url" | "stored_file";
|
|
242
|
-
files: {
|
|
243
|
-
filename?: string | null | undefined;
|
|
244
|
-
url?: string | null | undefined;
|
|
245
|
-
file?: {
|
|
246
|
-
base64: string;
|
|
247
|
-
filename?: string | undefined;
|
|
248
|
-
extension?: string | undefined;
|
|
249
|
-
} | null | undefined;
|
|
250
|
-
stored_file_id?: string | null | undefined;
|
|
251
|
-
}[];
|
|
252
|
-
filename?: string | null | undefined;
|
|
253
|
-
engine?: string | null | undefined;
|
|
254
|
-
timeout?: number | null | undefined;
|
|
255
|
-
engine_version?: string | null | undefined;
|
|
256
|
-
wait_for_completion?: boolean | undefined;
|
|
257
|
-
store_file?: boolean | undefined;
|
|
258
|
-
}>, {
|
|
259
|
-
import_method: "upload" | "url" | "stored_file";
|
|
260
|
-
wait_for_completion: boolean;
|
|
261
|
-
store_file: boolean;
|
|
262
|
-
files: {
|
|
263
|
-
filename?: string | null | undefined;
|
|
264
|
-
url?: string | null | undefined;
|
|
265
|
-
file?: {
|
|
266
|
-
base64: string;
|
|
267
|
-
filename?: string | undefined;
|
|
268
|
-
extension?: string | undefined;
|
|
269
|
-
} | null | undefined;
|
|
270
|
-
stored_file_id?: string | null | undefined;
|
|
271
|
-
}[];
|
|
272
|
-
filename?: string | null | undefined;
|
|
273
|
-
engine?: string | null | undefined;
|
|
274
|
-
timeout?: number | null | undefined;
|
|
275
|
-
engine_version?: string | null | undefined;
|
|
276
|
-
}, {
|
|
277
|
-
import_method: "upload" | "url" | "stored_file";
|
|
278
|
-
files: {
|
|
279
|
-
filename?: string | null | undefined;
|
|
280
|
-
url?: string | null | undefined;
|
|
281
|
-
file?: {
|
|
282
|
-
base64: string;
|
|
283
|
-
filename?: string | undefined;
|
|
284
|
-
extension?: string | undefined;
|
|
285
|
-
} | null | undefined;
|
|
286
|
-
stored_file_id?: string | null | undefined;
|
|
287
|
-
}[];
|
|
288
|
-
filename?: string | null | undefined;
|
|
289
|
-
engine?: string | null | undefined;
|
|
290
|
-
timeout?: number | null | undefined;
|
|
291
|
-
engine_version?: string | null | undefined;
|
|
292
|
-
wait_for_completion?: boolean | undefined;
|
|
293
|
-
store_file?: boolean | undefined;
|
|
294
|
-
}>;
|
|
74
|
+
}, z.core.$strip>;
|
|
295
75
|
export declare const downloadFileSchema: z.ZodObject<{
|
|
296
76
|
task_id: z.ZodString;
|
|
297
|
-
include: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
77
|
+
include: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
298
78
|
store_file: z.ZodOptional<z.ZodBoolean>;
|
|
299
|
-
},
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
store_file?: boolean | undefined;
|
|
307
|
-
}>;
|
|
308
|
-
export declare const archiveFileSchema: z.ZodEffects<z.ZodObject<{
|
|
309
|
-
import_method: z.ZodEnum<["upload", "url", "stored_file"]>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export declare const archiveFileSchema: z.ZodObject<{
|
|
81
|
+
import_method: z.ZodEnum<{
|
|
82
|
+
upload: "upload";
|
|
83
|
+
url: "url";
|
|
84
|
+
stored_file: "stored_file";
|
|
85
|
+
}>;
|
|
310
86
|
files: z.ZodArray<z.ZodObject<{
|
|
311
87
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
88
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
313
89
|
base64: z.ZodString;
|
|
314
90
|
filename: z.ZodOptional<z.ZodString>;
|
|
315
91
|
extension: z.ZodOptional<z.ZodString>;
|
|
316
|
-
},
|
|
317
|
-
base64: string;
|
|
318
|
-
filename?: string | undefined;
|
|
319
|
-
extension?: string | undefined;
|
|
320
|
-
}, {
|
|
321
|
-
base64: string;
|
|
322
|
-
filename?: string | undefined;
|
|
323
|
-
extension?: string | undefined;
|
|
324
|
-
}>>>;
|
|
92
|
+
}, z.core.$strip>>>;
|
|
325
93
|
stored_file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
326
94
|
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
-
},
|
|
328
|
-
filename?: string | null | undefined;
|
|
329
|
-
url?: string | null | undefined;
|
|
330
|
-
file?: {
|
|
331
|
-
base64: string;
|
|
332
|
-
filename?: string | undefined;
|
|
333
|
-
extension?: string | undefined;
|
|
334
|
-
} | null | undefined;
|
|
335
|
-
stored_file_id?: string | null | undefined;
|
|
336
|
-
}, {
|
|
337
|
-
filename?: string | null | undefined;
|
|
338
|
-
url?: string | null | undefined;
|
|
339
|
-
file?: {
|
|
340
|
-
base64: string;
|
|
341
|
-
filename?: string | undefined;
|
|
342
|
-
extension?: string | undefined;
|
|
343
|
-
} | null | undefined;
|
|
344
|
-
stored_file_id?: string | null | undefined;
|
|
345
|
-
}>, "many">;
|
|
95
|
+
}, z.core.$strip>>;
|
|
346
96
|
output_format: z.ZodString;
|
|
347
97
|
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
98
|
engine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -350,98 +100,18 @@ export declare const archiveFileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
350
100
|
timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
351
101
|
wait_for_completion: z.ZodDefault<z.ZodBoolean>;
|
|
352
102
|
store_file: z.ZodDefault<z.ZodBoolean>;
|
|
353
|
-
},
|
|
354
|
-
|
|
355
|
-
import_method:
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
url?: string | null | undefined;
|
|
361
|
-
file?: {
|
|
362
|
-
base64: string;
|
|
363
|
-
filename?: string | undefined;
|
|
364
|
-
extension?: string | undefined;
|
|
365
|
-
} | null | undefined;
|
|
366
|
-
stored_file_id?: string | null | undefined;
|
|
367
|
-
}[];
|
|
368
|
-
filename?: string | null | undefined;
|
|
369
|
-
engine?: string | null | undefined;
|
|
370
|
-
timeout?: number | null | undefined;
|
|
371
|
-
engine_version?: string | null | undefined;
|
|
372
|
-
}, {
|
|
373
|
-
output_format: string;
|
|
374
|
-
import_method: "upload" | "url" | "stored_file";
|
|
375
|
-
files: {
|
|
376
|
-
filename?: string | null | undefined;
|
|
377
|
-
url?: string | null | undefined;
|
|
378
|
-
file?: {
|
|
379
|
-
base64: string;
|
|
380
|
-
filename?: string | undefined;
|
|
381
|
-
extension?: string | undefined;
|
|
382
|
-
} | null | undefined;
|
|
383
|
-
stored_file_id?: string | null | undefined;
|
|
384
|
-
}[];
|
|
385
|
-
filename?: string | null | undefined;
|
|
386
|
-
engine?: string | null | undefined;
|
|
387
|
-
timeout?: number | null | undefined;
|
|
388
|
-
engine_version?: string | null | undefined;
|
|
389
|
-
wait_for_completion?: boolean | undefined;
|
|
390
|
-
store_file?: boolean | undefined;
|
|
391
|
-
}>, {
|
|
392
|
-
output_format: string;
|
|
393
|
-
import_method: "upload" | "url" | "stored_file";
|
|
394
|
-
wait_for_completion: boolean;
|
|
395
|
-
store_file: boolean;
|
|
396
|
-
files: {
|
|
397
|
-
filename?: string | null | undefined;
|
|
398
|
-
url?: string | null | undefined;
|
|
399
|
-
file?: {
|
|
400
|
-
base64: string;
|
|
401
|
-
filename?: string | undefined;
|
|
402
|
-
extension?: string | undefined;
|
|
403
|
-
} | null | undefined;
|
|
404
|
-
stored_file_id?: string | null | undefined;
|
|
405
|
-
}[];
|
|
406
|
-
filename?: string | null | undefined;
|
|
407
|
-
engine?: string | null | undefined;
|
|
408
|
-
timeout?: number | null | undefined;
|
|
409
|
-
engine_version?: string | null | undefined;
|
|
410
|
-
}, {
|
|
411
|
-
output_format: string;
|
|
412
|
-
import_method: "upload" | "url" | "stored_file";
|
|
413
|
-
files: {
|
|
414
|
-
filename?: string | null | undefined;
|
|
415
|
-
url?: string | null | undefined;
|
|
416
|
-
file?: {
|
|
417
|
-
base64: string;
|
|
418
|
-
filename?: string | undefined;
|
|
419
|
-
extension?: string | undefined;
|
|
420
|
-
} | null | undefined;
|
|
421
|
-
stored_file_id?: string | null | undefined;
|
|
422
|
-
}[];
|
|
423
|
-
filename?: string | null | undefined;
|
|
424
|
-
engine?: string | null | undefined;
|
|
425
|
-
timeout?: number | null | undefined;
|
|
426
|
-
engine_version?: string | null | undefined;
|
|
427
|
-
wait_for_completion?: boolean | undefined;
|
|
428
|
-
store_file?: boolean | undefined;
|
|
429
|
-
}>;
|
|
430
|
-
export declare const optimizeFileSchema: z.ZodEffects<z.ZodObject<{
|
|
431
|
-
import_method: z.ZodEnum<["upload", "url", "stored_file"]>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
export declare const optimizeFileSchema: z.ZodObject<{
|
|
105
|
+
import_method: z.ZodEnum<{
|
|
106
|
+
upload: "upload";
|
|
107
|
+
url: "url";
|
|
108
|
+
stored_file: "stored_file";
|
|
109
|
+
}>;
|
|
432
110
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
433
111
|
base64: z.ZodString;
|
|
434
112
|
filename: z.ZodOptional<z.ZodString>;
|
|
435
113
|
extension: z.ZodOptional<z.ZodString>;
|
|
436
|
-
},
|
|
437
|
-
base64: string;
|
|
438
|
-
filename?: string | undefined;
|
|
439
|
-
extension?: string | undefined;
|
|
440
|
-
}, {
|
|
441
|
-
base64: string;
|
|
442
|
-
filename?: string | undefined;
|
|
443
|
-
extension?: string | undefined;
|
|
444
|
-
}>>>;
|
|
114
|
+
}, z.core.$strip>>>;
|
|
445
115
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
446
116
|
stored_file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
447
117
|
input_format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -454,80 +124,4 @@ export declare const optimizeFileSchema: z.ZodEffects<z.ZodObject<{
|
|
|
454
124
|
timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
455
125
|
wait_for_completion: z.ZodDefault<z.ZodBoolean>;
|
|
456
126
|
store_file: z.ZodDefault<z.ZodBoolean>;
|
|
457
|
-
},
|
|
458
|
-
import_method: "upload" | "url" | "stored_file";
|
|
459
|
-
wait_for_completion: boolean;
|
|
460
|
-
store_file: boolean;
|
|
461
|
-
filename?: string | null | undefined;
|
|
462
|
-
engine?: string | null | undefined;
|
|
463
|
-
timeout?: number | null | undefined;
|
|
464
|
-
input_format?: string | null | undefined;
|
|
465
|
-
engine_version?: string | null | undefined;
|
|
466
|
-
profile?: string | null | undefined;
|
|
467
|
-
flatten_signatures?: boolean | null | undefined;
|
|
468
|
-
colorspace?: string | null | undefined;
|
|
469
|
-
url?: string | null | undefined;
|
|
470
|
-
file?: {
|
|
471
|
-
base64: string;
|
|
472
|
-
filename?: string | undefined;
|
|
473
|
-
extension?: string | undefined;
|
|
474
|
-
} | null | undefined;
|
|
475
|
-
stored_file_id?: string | null | undefined;
|
|
476
|
-
}, {
|
|
477
|
-
import_method: "upload" | "url" | "stored_file";
|
|
478
|
-
filename?: string | null | undefined;
|
|
479
|
-
engine?: string | null | undefined;
|
|
480
|
-
timeout?: number | null | undefined;
|
|
481
|
-
input_format?: string | null | undefined;
|
|
482
|
-
engine_version?: string | null | undefined;
|
|
483
|
-
profile?: string | null | undefined;
|
|
484
|
-
flatten_signatures?: boolean | null | undefined;
|
|
485
|
-
colorspace?: string | null | undefined;
|
|
486
|
-
url?: string | null | undefined;
|
|
487
|
-
file?: {
|
|
488
|
-
base64: string;
|
|
489
|
-
filename?: string | undefined;
|
|
490
|
-
extension?: string | undefined;
|
|
491
|
-
} | null | undefined;
|
|
492
|
-
stored_file_id?: string | null | undefined;
|
|
493
|
-
wait_for_completion?: boolean | undefined;
|
|
494
|
-
store_file?: boolean | undefined;
|
|
495
|
-
}>, {
|
|
496
|
-
import_method: "upload" | "url" | "stored_file";
|
|
497
|
-
wait_for_completion: boolean;
|
|
498
|
-
store_file: boolean;
|
|
499
|
-
filename?: string | null | undefined;
|
|
500
|
-
engine?: string | null | undefined;
|
|
501
|
-
timeout?: number | null | undefined;
|
|
502
|
-
input_format?: string | null | undefined;
|
|
503
|
-
engine_version?: string | null | undefined;
|
|
504
|
-
profile?: string | null | undefined;
|
|
505
|
-
flatten_signatures?: boolean | null | undefined;
|
|
506
|
-
colorspace?: string | null | undefined;
|
|
507
|
-
url?: string | null | undefined;
|
|
508
|
-
file?: {
|
|
509
|
-
base64: string;
|
|
510
|
-
filename?: string | undefined;
|
|
511
|
-
extension?: string | undefined;
|
|
512
|
-
} | null | undefined;
|
|
513
|
-
stored_file_id?: string | null | undefined;
|
|
514
|
-
}, {
|
|
515
|
-
import_method: "upload" | "url" | "stored_file";
|
|
516
|
-
filename?: string | null | undefined;
|
|
517
|
-
engine?: string | null | undefined;
|
|
518
|
-
timeout?: number | null | undefined;
|
|
519
|
-
input_format?: string | null | undefined;
|
|
520
|
-
engine_version?: string | null | undefined;
|
|
521
|
-
profile?: string | null | undefined;
|
|
522
|
-
flatten_signatures?: boolean | null | undefined;
|
|
523
|
-
colorspace?: string | null | undefined;
|
|
524
|
-
url?: string | null | undefined;
|
|
525
|
-
file?: {
|
|
526
|
-
base64: string;
|
|
527
|
-
filename?: string | undefined;
|
|
528
|
-
extension?: string | undefined;
|
|
529
|
-
} | null | undefined;
|
|
530
|
-
stored_file_id?: string | null | undefined;
|
|
531
|
-
wait_for_completion?: boolean | undefined;
|
|
532
|
-
store_file?: boolean | undefined;
|
|
533
|
-
}>;
|
|
127
|
+
}, z.core.$strip>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const jobFailed: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}>;
|
|
2
|
+
export declare const jobFailed: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}>;
|
|
@@ -47,10 +47,11 @@ exports.jobFailed = (0, pieces_framework_1.createTrigger)({
|
|
|
47
47
|
});
|
|
48
48
|
},
|
|
49
49
|
onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
50
|
+
var _a;
|
|
50
51
|
const webhookUrl = context.webhookUrl;
|
|
51
52
|
const request = {
|
|
52
53
|
method: pieces_common_1.HttpMethod.POST,
|
|
53
|
-
url: `${common_1.cloudconvertCommon.baseUrl(context.auth.region || 'auto')}/webhooks`,
|
|
54
|
+
url: `${common_1.cloudconvertCommon.baseUrl(((_a = (context.auth).props) === null || _a === void 0 ? void 0 : _a['region']) || 'auto')}/webhooks`,
|
|
54
55
|
body: {
|
|
55
56
|
url: webhookUrl,
|
|
56
57
|
events: ['job.failed']
|
|
@@ -69,11 +70,12 @@ exports.jobFailed = (0, pieces_framework_1.createTrigger)({
|
|
|
69
70
|
}
|
|
70
71
|
}),
|
|
71
72
|
onDisable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
73
|
+
var _a, _b;
|
|
72
74
|
const webhookUrl = context.webhookUrl;
|
|
73
75
|
// First, find the webhook by URL
|
|
74
76
|
const listRequest = {
|
|
75
77
|
method: pieces_common_1.HttpMethod.GET,
|
|
76
|
-
url: `${common_1.cloudconvertCommon.baseUrl(context.auth.region || 'auto')}/users/me/webhooks`,
|
|
78
|
+
url: `${common_1.cloudconvertCommon.baseUrl(((_a = (context.auth).props) === null || _a === void 0 ? void 0 : _a['region']) || 'auto')}/users/me/webhooks`,
|
|
77
79
|
authentication: {
|
|
78
80
|
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
79
81
|
token: context.auth.access_token,
|
|
@@ -86,7 +88,7 @@ exports.jobFailed = (0, pieces_framework_1.createTrigger)({
|
|
|
86
88
|
if (webhook) {
|
|
87
89
|
const deleteRequest = {
|
|
88
90
|
method: pieces_common_1.HttpMethod.DELETE,
|
|
89
|
-
url: `${common_1.cloudconvertCommon.baseUrl(context.auth.region || 'auto')}/webhooks/${webhook.id}`,
|
|
91
|
+
url: `${common_1.cloudconvertCommon.baseUrl(((_b = (context.auth).props) === null || _b === void 0 ? void 0 : _b['region']) || 'auto')}/webhooks/${webhook.id}`,
|
|
90
92
|
authentication: {
|
|
91
93
|
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
92
94
|
token: context.auth.access_token,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-failed.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/cloudconvert/src/lib/triggers/job-failed.ts"],"names":[],"mappings":";;;;AAAA,+DAKqC;AACrC,qEAGwC;AACxC,sCAAiE;AAEpD,QAAA,SAAS,GAAG,IAAA,gCAAa,EAAC;IACrC,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,6CAA6C;IAC1D,IAAI,EAAE,yBAAgB;IACtB,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE,EAAE;IACT,UAAU,EAAE;QACV,KAAK,EAAE,YAAY;QACnB,GAAG,EAAE;YACH,EAAE,EAAE,eAAe;YACnB,GAAG,EAAE,aAAa;YAClB,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,sBAAsB;YAClC,UAAU,EAAE,sBAAsB;YAClC,QAAQ,EAAE,sBAAsB;YAChC,OAAO,EAAE,oCAAoC;YAC7C,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE;gBACL;oBACE,EAAE,EAAE,gBAAgB;oBACpB,IAAI,EAAE,iBAAiB;oBACvB,SAAS,EAAE,SAAS;oBACpB,MAAM,EAAE,OAAO;oBACf,OAAO,EAAE,uBAAuB;oBAChC,IAAI,EAAE,mBAAmB;oBACzB,UAAU,EAAE,sBAAsB;oBAClC,UAAU,EAAE,sBAAsB;oBAClC,QAAQ,EAAE,sBAAsB;oBAChC,MAAM,EAAE,QAAQ;oBAChB,cAAc,EAAE,MAAM;oBACtB,MAAM,EAAE,IAAI;iBACb;aACF;SACF;KACF;IAEK,IAAI,CAAC,OAAO;;YAChB,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC3B,CAAC;KAAA;IAED,QAAQ,EAAE,CAAO,OAAO,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"job-failed.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/cloudconvert/src/lib/triggers/job-failed.ts"],"names":[],"mappings":";;;;AAAA,+DAKqC;AACrC,qEAGwC;AACxC,sCAAiE;AAEpD,QAAA,SAAS,GAAG,IAAA,gCAAa,EAA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C9E,IAAI,OAAO,EAAE,CAAC;oBACZ,MAAM,aAAa,GAAgB;wBACjC,MAAM,EAAE,0BAAU,CAAC,MAAM;wBACzB,GAAG,EAAE,GAAG,2BAAkB,CAAC,OAAO,CAAC,CAAA,MAAA,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,0CAAG,QAAQ,CAAW,KAAI,MAAM,CAAC,aAAa,OAAO,CAAC,EAAE,EAAE;wBACjH,cAAc,EAAE;4BACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;4BACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;yBACjC;qBACF,CAAC;oBACF,MAAM,0BAAU,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;gBAC9C,CAAC;YACH,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,oBAAoB;QACtB,CAAC;IACH,CAAC,CAAA;IAED,GAAG,EAAE,CAAO,OAAO,EAAE,EAAE;QACrB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAW,CAAC;QAE5C,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,MAAK,YAAY,KAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAA,EAAE,CAAC;YACpD,OAAO,CAAC,OAAO,CAAC,CAAC;QACnB,CAAC;QAED,OAAO,EAAE,CAAC;IACZ,CAAC,CAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const jobFinished: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}>;
|
|
2
|
+
export declare const jobFinished: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}>;
|
|
@@ -86,10 +86,11 @@ exports.jobFinished = (0, pieces_framework_1.createTrigger)({
|
|
|
86
86
|
});
|
|
87
87
|
},
|
|
88
88
|
onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
89
|
+
var _a;
|
|
89
90
|
const webhookUrl = context.webhookUrl;
|
|
90
91
|
const request = {
|
|
91
92
|
method: pieces_common_1.HttpMethod.POST,
|
|
92
|
-
url: `${common_1.cloudconvertCommon.baseUrl(context.auth.region || 'auto')}/webhooks`,
|
|
93
|
+
url: `${common_1.cloudconvertCommon.baseUrl(((_a = (context.auth).props) === null || _a === void 0 ? void 0 : _a['region']) || 'auto')}/webhooks`,
|
|
93
94
|
body: {
|
|
94
95
|
url: webhookUrl,
|
|
95
96
|
events: ['job.finished']
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-finished.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/cloudconvert/src/lib/triggers/job-finished.ts"],"names":[],"mappings":";;;;AAAA,+DAKqC;AACrC,qEAGwC;AACxC,sCAAiE;AAEpD,QAAA,WAAW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EAAE,UAAU;oBAClB,UAAU,EAAE,2BAA2B;oBACvC,UAAU,EAAE,2BAA2B;oBACvC,QAAQ,EAAE,2BAA2B;oBACrC,MAAM,EAAE;wBACN,KAAK,EAAE;4BACL;gCACE,QAAQ,EAAE,aAAa;gCACvB,GAAG,EAAE,mFAAmF;gCACxF,IAAI,EAAE,KAAK;6BACZ;yBACF;qBACF;iBACF;aACF;SACF;KACF;IAEK,IAAI,CAAC,OAAO;;YAChB,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC3B,CAAC;KAAA;IAED,QAAQ,EAAE,CAAO,OAAO,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"job-finished.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/cloudconvert/src/lib/triggers/job-finished.ts"],"names":[],"mappings":";;;;AAAA,+DAKqC;AACrC,qEAGwC;AACxC,sCAAiE;AAEpD,QAAA,WAAW,GAAG,IAAA,gCAAa,EAAC;IACvC,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,qDAAqD;IAClE,IAAI,EAAE,yBAAgB;IACtB,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE,EAAE;IACT,UAAU,EAAE;QACV,KAAK,EAAE,cAAc;QACrB,GAAG,EAAE;YACH,EAAE,EAAE,sCAAsC;YAC1C,GAAG,EAAE,WAAW;YAChB,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,2BAA2B;YACvC,UAAU,EAAE,2BAA2B;YACvC,QAAQ,EAAE,2BAA2B;YACrC,KAAK,EAAE;gBACL;oBACE,EAAE,EAAE,sCAAsC;oBAC1C,IAAI,EAAE,gBAAgB;oBACtB,SAAS,EAAE,YAAY;oBACvB,MAAM,EAAE,UAAU;oBAClB,UAAU,EAAE,2BAA2B;oBACvC,UAAU,EAAE,2BAA2B;oBACvC,QAAQ,EAAE,2BAA2B;oBACrC,MAAM,EAAE;wBACN,KAAK,EAAE;4BACL;g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AO,EAAE,CAAC;oBACZ,MAAM,aAAa,GAAgB;wBACjC,MAAM,EAAE,0BAAU,CAAC,MAAM;wBACzB,GAAG,EAAE,GAAG,2BAAkB,CAAC,OAAO,CAAE,OAAO,CAAC,IAAY,CAAC,MAAM,IAAI,MAAM,CAAC,aAAa,OAAO,CAAC,EAAE,EAAE;wBACnG,cAAc,EAAE;4BACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;4BACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;yBACjC;qBACF,CAAC;oBACF,MAAM,0BAAU,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;gBAC9C,CAAC;YACH,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,oBAAoB;QACtB,CAAC;IACH,CAAC,CAAA;IAED,GAAG,EAAE,CAAO,OAAO,EAAE,EAAE;QACrB,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAW,CAAC;QAE5C,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,MAAK,cAAc,KAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAA,EAAE,CAAC;YACtD,OAAO,CAAC,OAAO,CAAC,CAAC;QACnB,CAAC;QAED,OAAO,EAAE,CAAC;IACZ,CAAC,CAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newJob: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}>;
|
|
2
|
+
export declare const newJob: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}>;
|
|
@@ -60,10 +60,11 @@ exports.newJob = (0, pieces_framework_1.createTrigger)({
|
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
62
|
onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
63
|
+
var _a;
|
|
63
64
|
const webhookUrl = context.webhookUrl;
|
|
64
65
|
const request = {
|
|
65
66
|
method: pieces_common_1.HttpMethod.POST,
|
|
66
|
-
url: `${common_1.cloudconvertCommon.baseUrl(context.auth.region || 'auto')}/webhooks`,
|
|
67
|
+
url: `${common_1.cloudconvertCommon.baseUrl(((_a = (context.auth).props) === null || _a === void 0 ? void 0 : _a['region']) || 'auto')}/webhooks`,
|
|
67
68
|
body: {
|
|
68
69
|
url: webhookUrl,
|
|
69
70
|
events: ['job.created']
|