File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ const nodeResolve = require('rollup-plugin-node-resolve');
6
6
const replace = require ( 'rollup-plugin-replace' ) ;
7
7
const json = require ( 'rollup-plugin-json' ) ;
8
8
const babel = require ( 'rollup-plugin-babel' ) ;
9
- const inject = require ( 'rollup-plugin-inject' ) ;
10
9
11
10
const adapters = {
12
11
'./lib/api/security' : 'build/module/adapters/security.browser.js' ,
Original file line number Diff line number Diff line change @@ -420,6 +420,11 @@ export interface PdfConvertParams {
420
420
pages ?: ( string | number ) [ ] ;
421
421
}
422
422
423
+ export interface FallbackParams {
424
+ handle : string ;
425
+ cache : number ;
426
+ }
427
+
423
428
const handleRegexp = / ^ [ \w \- ] { 20 } $ / ;
424
429
425
430
/**
@@ -1168,6 +1173,18 @@ export class Filelink {
1168
1173
return this . addTask ( 'pdfconvert' , params ) ;
1169
1174
}
1170
1175
1176
+ /**
1177
+ * Adds fallback transformation
1178
+ *
1179
+ * @see https://www.filestack.com/docs/api/processing/#fallback
1180
+ * @param {(FallbackParams) } params
1181
+ * @returns this
1182
+ * @memberof Filelink
1183
+ */
1184
+ fallback ( params : FallbackParams ) {
1185
+ return this . addTask ( 'fallback' , params ) ;
1186
+ }
1187
+
1171
1188
/**
1172
1189
* Checks if source is external
1173
1190
*
Original file line number Diff line number Diff line change @@ -1335,5 +1335,20 @@ export const TransformSchema = {
1335
1335
required : [ 'pages' ] ,
1336
1336
} ] ,
1337
1337
} ,
1338
+ fallback : {
1339
+ type : 'object' ,
1340
+ additionalProperties : false ,
1341
+ properties : {
1342
+ handle : {
1343
+ type : 'string' ,
1344
+ } ,
1345
+ cache : {
1346
+ type : 'integer' ,
1347
+ minimum : 1 ,
1348
+ maximum : 31536000 ,
1349
+ } ,
1350
+ } ,
1351
+ required : [ 'handle' ] ,
1352
+ } ,
1338
1353
} ,
1339
1354
} ;
You can’t perform that action at this time.
0 commit comments