feat: Convert all app files to JS
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import defineAction from '../../../../helpers/define-action';
|
||||
import defineAction from '../../../../helpers/define-action.js';
|
||||
|
||||
export default defineAction({
|
||||
name: 'Create attachment',
|
||||
@@ -9,7 +9,7 @@ export default defineAction({
|
||||
{
|
||||
label: 'Parent ID',
|
||||
key: 'parentId',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: true,
|
||||
variables: true,
|
||||
description:
|
||||
@@ -18,7 +18,7 @@ export default defineAction({
|
||||
{
|
||||
label: 'Name',
|
||||
key: 'name',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: true,
|
||||
variables: true,
|
||||
description: 'Name of the attached file. Maximum size is 255 characters.',
|
||||
@@ -26,7 +26,7 @@ export default defineAction({
|
||||
{
|
||||
label: 'Body',
|
||||
key: 'body',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: true,
|
||||
variables: true,
|
||||
description: 'File data. (Max size is 25MB)',
|
@@ -1,4 +1,4 @@
|
||||
import defineAction from '../../../../helpers/define-action';
|
||||
import defineAction from '../../../../helpers/define-action.js';
|
||||
|
||||
export default defineAction({
|
||||
name: 'Execute query',
|
||||
@@ -8,7 +8,7 @@ export default defineAction({
|
||||
{
|
||||
label: 'Query',
|
||||
key: 'query',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: true,
|
||||
description:
|
||||
'Salesforce query string. For example: SELECT Id, Name FROM Account',
|
||||
@@ -17,7 +17,7 @@ export default defineAction({
|
||||
],
|
||||
|
||||
async run($) {
|
||||
const query = $.step.parameters.query as string;
|
||||
const query = $.step.parameters.query;
|
||||
|
||||
const options = {
|
||||
params: {
|
@@ -1,4 +1,4 @@
|
||||
import defineAction from '../../../../helpers/define-action';
|
||||
import defineAction from '../../../../helpers/define-action.js';
|
||||
|
||||
export default defineAction({
|
||||
name: 'Find record',
|
||||
@@ -8,7 +8,7 @@ export default defineAction({
|
||||
{
|
||||
label: 'Object',
|
||||
key: 'object',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
required: true,
|
||||
variables: true,
|
||||
description: 'Pick which type of object you want to search for.',
|
||||
@@ -26,7 +26,7 @@ export default defineAction({
|
||||
{
|
||||
label: 'Field',
|
||||
key: 'field',
|
||||
type: 'dropdown' as const,
|
||||
type: 'dropdown',
|
||||
description: 'Pick which field to search by',
|
||||
required: true,
|
||||
variables: true,
|
||||
@@ -49,7 +49,7 @@ export default defineAction({
|
||||
{
|
||||
label: 'Search value',
|
||||
key: 'searchValue',
|
||||
type: 'string' as const,
|
||||
type: 'string',
|
||||
required: true,
|
||||
variables: true,
|
||||
},
|
5
packages/backend/src/apps/salesforce/actions/index.js
Normal file
5
packages/backend/src/apps/salesforce/actions/index.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import createAttachment from './create-attachment/index.js';
|
||||
import executeQuery from './execute-query/index.js';
|
||||
import findRecord from './find-record/index.js';
|
||||
|
||||
export default [findRecord, createAttachment, executeQuery];
|
@@ -1,5 +0,0 @@
|
||||
import createAttachment from './create-attachment';
|
||||
import executeQuery from './execute-query';
|
||||
import findRecord from './find-record';
|
||||
|
||||
export default [findRecord, createAttachment, executeQuery];
|
Reference in New Issue
Block a user