Rename records to rows in automation definitions
This commit is contained in:
parent
d0806b2924
commit
9bd1743ea0
|
@ -28,9 +28,9 @@
|
|||
</div>
|
||||
|
||||
{#if schemaFields.length}
|
||||
<div class="bb-margin-xl block-field">
|
||||
<div class="schema-fields">
|
||||
{#each schemaFields as [field, schema]}
|
||||
<div class="bb-margin-xl capitalise">
|
||||
<div class="capitalise">
|
||||
{#if schemaHasOptions(schema)}
|
||||
<div class="field-label">{field}</div>
|
||||
<Select thin secondary bind:value={value[field]}>
|
||||
|
@ -66,4 +66,10 @@
|
|||
.field-label {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.schema-fields {
|
||||
display: grid;
|
||||
grid-gap: var(--spacing-xl);
|
||||
margin-top: var(--spacing-xl);
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
const recordController = require("../../api/controllers/record")
|
||||
|
||||
module.exports.definition = {
|
||||
description: "Delete a record from your database",
|
||||
description: "Delete a row from your database",
|
||||
icon: "ri-delete-bin-line",
|
||||
name: "Delete Record",
|
||||
tagline: "Delete a {{inputs.enriched.model.name}} record",
|
||||
name: "Delete Row",
|
||||
tagline: "Delete a {{inputs.enriched.model.name}} row",
|
||||
type: "ACTION",
|
||||
stepId: "DELETE_RECORD",
|
||||
inputs: {},
|
||||
|
@ -18,11 +18,11 @@ module.exports.definition = {
|
|||
},
|
||||
id: {
|
||||
type: "string",
|
||||
title: "Record ID",
|
||||
title: "Row ID",
|
||||
},
|
||||
revision: {
|
||||
type: "string",
|
||||
title: "Record Revision",
|
||||
title: "Row Revision",
|
||||
},
|
||||
},
|
||||
required: ["modelId", "id", "revision"],
|
||||
|
@ -32,7 +32,7 @@ module.exports.definition = {
|
|||
record: {
|
||||
type: "object",
|
||||
customType: "record",
|
||||
description: "The deleted record",
|
||||
description: "The deleted row",
|
||||
},
|
||||
response: {
|
||||
type: "object",
|
||||
|
|
|
@ -2,10 +2,10 @@ const recordController = require("../../api/controllers/record")
|
|||
const automationUtils = require("../automationUtils")
|
||||
|
||||
module.exports.definition = {
|
||||
name: "Save Record",
|
||||
tagline: "Save a {{inputs.enriched.model.name}} record",
|
||||
name: "Create Row",
|
||||
tagline: "Create a {{inputs.enriched.model.name}} row",
|
||||
icon: "ri-save-3-fill",
|
||||
description: "Save a record to your database",
|
||||
description: "Add a row to your database",
|
||||
type: "ACTION",
|
||||
stepId: "SAVE_RECORD",
|
||||
inputs: {},
|
||||
|
@ -32,7 +32,7 @@ module.exports.definition = {
|
|||
record: {
|
||||
type: "object",
|
||||
customType: "record",
|
||||
description: "The new record",
|
||||
description: "The new row",
|
||||
},
|
||||
response: {
|
||||
type: "object",
|
||||
|
@ -44,11 +44,11 @@ module.exports.definition = {
|
|||
},
|
||||
id: {
|
||||
type: "string",
|
||||
description: "The identifier of the new record",
|
||||
description: "The identifier of the new row",
|
||||
},
|
||||
revision: {
|
||||
type: "string",
|
||||
description: "The revision of the new record",
|
||||
description: "The revision of the new row",
|
||||
},
|
||||
},
|
||||
required: ["success", "id", "revision"],
|
||||
|
|
|
@ -2,10 +2,10 @@ const recordController = require("../../api/controllers/record")
|
|||
const automationUtils = require("../automationUtils")
|
||||
|
||||
module.exports.definition = {
|
||||
name: "Update Record",
|
||||
name: "Update Row",
|
||||
tagline: "Update a {{inputs.enriched.model.name}} record",
|
||||
icon: "ri-refresh-fill",
|
||||
description: "Update a record to your database",
|
||||
description: "Update a row in your database",
|
||||
type: "ACTION",
|
||||
stepId: "UPDATE_RECORD",
|
||||
inputs: {},
|
||||
|
@ -15,11 +15,11 @@ module.exports.definition = {
|
|||
record: {
|
||||
type: "object",
|
||||
customType: "record",
|
||||
title: "Record",
|
||||
title: "Table",
|
||||
},
|
||||
recordId: {
|
||||
type: "string",
|
||||
title: "Record ID",
|
||||
title: "Row ID",
|
||||
},
|
||||
},
|
||||
required: ["record", "recordId"],
|
||||
|
|
|
@ -11,11 +11,11 @@ const FAKE_DATETIME = "1970-01-01T00:00:00.000Z"
|
|||
|
||||
const BUILTIN_DEFINITIONS = {
|
||||
RECORD_SAVED: {
|
||||
name: "Record Saved",
|
||||
name: "Row Saved",
|
||||
event: "record:save",
|
||||
icon: "ri-save-line",
|
||||
tagline: "Record is added to {{inputs.enriched.model.name}}",
|
||||
description: "Fired when a record is saved to your database",
|
||||
tagline: "Row is added to {{inputs.enriched.model.name}}",
|
||||
description: "Fired when a row is saved to your database",
|
||||
stepId: "RECORD_SAVED",
|
||||
inputs: {},
|
||||
schema: {
|
||||
|
@ -34,15 +34,15 @@ const BUILTIN_DEFINITIONS = {
|
|||
record: {
|
||||
type: "object",
|
||||
customType: "record",
|
||||
description: "The new record that was saved",
|
||||
description: "The new row that was saved",
|
||||
},
|
||||
id: {
|
||||
type: "string",
|
||||
description: "Record ID - can be used for updating",
|
||||
description: "Row ID - can be used for updating",
|
||||
},
|
||||
revision: {
|
||||
type: "string",
|
||||
description: "Revision of record",
|
||||
description: "Revision of row",
|
||||
},
|
||||
},
|
||||
required: ["record", "id"],
|
||||
|
@ -51,11 +51,11 @@ const BUILTIN_DEFINITIONS = {
|
|||
type: "TRIGGER",
|
||||
},
|
||||
RECORD_DELETED: {
|
||||
name: "Record Deleted",
|
||||
name: "Row Deleted",
|
||||
event: "record:delete",
|
||||
icon: "ri-delete-bin-line",
|
||||
tagline: "Record is deleted from {{inputs.enriched.model.name}}",
|
||||
description: "Fired when a record is deleted from your database",
|
||||
tagline: "Row is deleted from {{inputs.enriched.model.name}}",
|
||||
description: "Fired when a row is deleted from your database",
|
||||
stepId: "RECORD_DELETED",
|
||||
inputs: {},
|
||||
schema: {
|
||||
|
@ -74,7 +74,7 @@ const BUILTIN_DEFINITIONS = {
|
|||
record: {
|
||||
type: "object",
|
||||
customType: "record",
|
||||
description: "The record that was deleted",
|
||||
description: "The row that was deleted",
|
||||
},
|
||||
},
|
||||
required: ["record", "id"],
|
||||
|
|
Loading…
Reference in New Issue