feat: Convert all app files to JS

This commit is contained in:
Faruk AYDIN
2024-01-05 17:44:21 +01:00
parent b95478b635
commit 43dba351c3
1030 changed files with 5114 additions and 6436 deletions

View File

@@ -1,3 +1,3 @@
import listExternalScheduledEventFields from './list-external-scheduled-event-fields';
import listExternalScheduledEventFields from './list-external-scheduled-event-fields/index.js';
export default [listExternalScheduledEventFields];

View File

@@ -1,9 +1,8 @@
import { IGlobalVariable } from '@automatisch/types';
export default {
name: 'List external scheduled event fields',
key: 'listExternalScheduledEventFields',
async run($: IGlobalVariable) {
async run($) {
const isExternal = $.step.parameters.entityType === 3;
if (isExternal) {
@@ -11,15 +10,16 @@ export default {
{
label: 'Location',
key: 'location',
type: 'string' as const,
type: 'string',
required: true,
description: 'The location of the event (1-100 characters). This will be omitted if type is NOT EXTERNAL',
description:
'The location of the event (1-100 characters). This will be omitted if type is NOT EXTERNAL',
variables: true,
},
{
label: 'Start-Time',
key: 'scheduledStartTime',
type: 'string' as const,
type: 'string',
required: true,
description: 'The time the event will start [ISO8601]',
variables: true,
@@ -27,9 +27,10 @@ export default {
{
label: 'End-Time',
key: 'scheduledEndTime',
type: 'string' as const,
type: 'string',
required: true,
description: 'The time the event will end [ISO8601]. This will be omitted if type is NOT EXTERNAL',
description:
'The time the event will end [ISO8601]. This will be omitted if type is NOT EXTERNAL',
variables: true,
},
];
@@ -39,9 +40,10 @@ export default {
{
label: 'Channel',
key: 'channel_id',
type: 'dropdown' as const,
type: 'dropdown',
required: true,
description: 'Pick a voice or stage channel to link the event to. This will be omitted if type is EXTERNAL',
description:
'Pick a voice or stage channel to link the event to. This will be omitted if type is EXTERNAL',
variables: true,
source: {
type: 'query',
@@ -57,15 +59,16 @@ export default {
{
label: 'Location',
key: 'location',
type: 'string' as const,
type: 'string',
required: false,
description: 'The location of the event (1-100 characters). This will be omitted if type is NOT EXTERNAL',
description:
'The location of the event (1-100 characters). This will be omitted if type is NOT EXTERNAL',
variables: true,
},
{
label: 'Start-Time',
key: 'scheduledStartTime',
type: 'string' as const,
type: 'string',
required: true,
description: 'The time the event will start [ISO8601]',
variables: true,
@@ -73,9 +76,10 @@ export default {
{
label: 'End-Time',
key: 'scheduledEndTime',
type: 'string' as const,
type: 'string',
required: false,
description: 'The time the event will end [ISO8601]. This will be omitted if type is NOT EXTERNAL',
description:
'The time the event will end [ISO8601]. This will be omitted if type is NOT EXTERNAL',
variables: true,
},
];