feat: Convert all app files to JS
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import defineTrigger from '../../../../helpers/define-trigger.js';
|
||||
import newPhotosInAlbum from './new-photos-in-album.js';
|
||||
|
||||
export default defineTrigger({
|
||||
name: 'New photos in album',
|
||||
pollInterval: 15,
|
||||
key: 'newPhotosInAlbum',
|
||||
description: 'Triggers when you add a new photo in an album.',
|
||||
arguments: [
|
||||
{
|
||||
label: 'Album',
|
||||
key: 'album',
|
||||
type: 'dropdown',
|
||||
required: true,
|
||||
variables: false,
|
||||
source: {
|
||||
type: 'query',
|
||||
name: 'getDynamicData',
|
||||
arguments: [
|
||||
{
|
||||
name: 'key',
|
||||
value: 'listAlbums',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
async run($) {
|
||||
await newPhotosInAlbum($);
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user