Skip to content

List of inbuilt outcomesLink

An OutCome is one node in the chain of OutFields defined inside an action

Database OutComesLink

GetLink

Get list of rows

Structure:

- Method: GET
  Type: <table_name>/
  Attributes:
    page["number"]: 1
    page["size"]: 10
    query: "[Query]"
    filter: ""
    included_relations: relation_name,

Get By IdLink

Get a single row by reference_id

Structure:

- Method: GET_BY_ID
  Type: <table_name>/
  Attributes:
    reference_id: <reference_id>
    included_relations: <reference_id>

CreateLink

Create a new row

Structure:

- Method: POST
  Type: <table_name>/
  Attributes:
    reference_id: <reference_id>
    ...ColumnNames: ...Values

UpdateLink

Update a row

Structure:

- Method: PUT
  Type: <table_name>/
  Attributes:
    reference_id: <reference_id>
    ...ColumnNames: ...Values

DeleteLink

Delete a row

Structure:

- Method: DELETE
  Type: <table_name>/
  Attributes:
    reference_id: <reference_id>

OpenAPI Specification OutComesLink

Operations defined in any OpenAPI Spec uploaded can be used as an OutCome in the action

Eg:

Upload Stripe OpenAPI Specification to integrartion table

Type: "stripeApi" # as defined when uploading openapi spec
Method: "<operation_id>"
Reference: operationResponseBody
Attributes:
  # ...OperationParameters as defined in request schema
  ParamName: Value

The response can be evaluated on later in further outcomes

Attributes:
  response: $stripeApi.<operationNamee>.response
  statusCode: $stripeApi.<operationNamee>.statusCode
  responseBody: $operationResponseBody 

System outcomesLink

System OutComes are set of independent useful functions to build a variety of workflows

  - Method: EXECUTE
    Type: $network.request
    SkipInResponse: true
    Reference: validation
    Attributes:
      Url: https://ipnpb.sandbox.paypal.com/cgi-bin/webscr
      Method: POST
      Headers:
        Authorization: >
          !'Bearer '  + token[0].access_token
      FormData: >
        !attributes['cmd'] = '_notify-validate'; attributes

cloud_store.files.importLink

- Method: EXECUTE
  Type: cloud_store.files.import
  Attributes:
    table_name: "$.table_name"

integration.installLink

- Method: EXECUTE
  Type: integration.install
  Attributes:
    reference_id: "$.reference_id"

client.file.downloadLink

- Method: ACTIONRESPONSE
  Type: client.file.download
  Attributes:
    content: "!btoa(<file_content>)"
    contentType: <content_mimee_type>
    message: "!'A Message JS'"
    name: "<file_name>"

acme.tls.generateLink

- Method: EXECUTE
  Type: acme.tls.generate
  Attributes:
    certificate: "~subject"
    email: "~email"

self.tls.generateLink

- Method: EXECUTE
  Type: self.tls.generate
  Attributes:
    certificate: "~subject"

otp.generateLink

- Method: EXECUTE
  Type: otp.generate
  Attributes:
    email: "$.email"
    mobile: "~mobile_number"

otp.login.verifyLink

- Method: EXECUTE
  Type: otp.login.verify
  Attributes:
    mobile: "~mobile_number"
    otp: "~otp"

otp.generateLink

- Method: EXECUTE
  Type: otp.generate
  Attributes:
    email: "~email"
    mobile: "~mobile_number"

otp.login.verifyLink

- Method: EXECUTE
  Type: otp.login.verify
  Attributes:
    mobile: "~mobile_number"
    otp: "~otp"

world.column.deleteLink

- Method: EXECUTE
  Type: world.column.delete
  Attributes:
    column_name: "~column_name"
    world_id: "$.reference_id"

world.deleteLink

- Method: EXECUTE
  Type: world.delete
  Attributes:
    world_id: "$.reference_id"

world.column.renameLink

- Method: EXECUTE
  Type: world.column.rename
  Attributes:
    column_name: "~column_name"
    new_column_name: "~new_column_name"
    world_id: "$.reference_id"

site.storage.syncLink

- Method: EXECUTE
  Type: site.storage.sync
  Attributes:
    cloud_store_id: "$.cloud_store_id"
    path: "~path"
    site_id: "$.reference_id"

column.storage.syncLink

- Method: EXECUTE
  Type: column.storage.sync
  Attributes:
    column_name: "~column_name"
    table_name: "~table_name"

mail.servers.syncLink

- Method: EXECUTE
  Type: mail.servers.sync
  Attributes: { }

system_json_schema_updateLink

- Method: EXECUTE
  Type: system_json_schema_update
  Attributes:
    json_schema: '!JSON.parse(''[{"name":"empty.json","file":"data:application/json;base64,e30K","type":"application/json"}]'')'

generate.random.dataLink

- Method: EXECUTE
  Type: generate.random.data
  Attributes:
    count: "~count"
    table_name: "~table_name"
    user_account_id: "$user.id"
    user_reference_id: "$user.reference_id"

__data_exportLink

- Method: EXECUTE
  Type: __data_export
  Attributes:
    table_name: "$.table_name"
    world_reference_id: "$.reference_id"

__csv_data_exportLink

- Method: EXECUTE
  Type: __csv_data_export
  Attributes:
    table_name: "$.table_name"
    world_reference_id: "$.reference_id"

__data_importLink

- Method: EXECUTE
  Type: __data_import
  Attributes:
    dump_file: "~dump_file"
    table_name: "$.table_name"
    truncate_before_insert: "~truncate_before_insert"
    user: "~user"
    world_reference_id: "$.reference_id"

cloudstore.file.uploadLink

- Method: EXECUTE
  Type: cloudstore.file.upload
  Attributes:
    file: "~file"
    oauth_token_id: "$.oauth_token_id"
    path: "~path"
    root_path: "$.root_path"
    store_provider: "$.store_provider"

cloudstore.site.createLink

- Method: EXECUTE
  Type: cloudstore.site.create
  Attributes:
    cloud_store_id: "$.reference_id"
    hostname: "~hostname"
    oauth_token_id: "$.oauth_token_id"
    path: "~path"
    root_path: "$.root_path"
    site_type: "~site_type"
    store_provider: "$.store_provider"
    user_account_id: "$user.reference_id"

cloudstore.file.deleteLink

- Method: EXECUTE
  Type: cloudstore.file.delete
  Attributes:
    oauth_token_id: "$.oauth_token_id"
    path: "~path"
    root_path: "$.root_path"
    store_provider: "$.store_provider"

cloudstore.folder.createLink

- Method: EXECUTE
  Type: cloudstore.folder.create
  Attributes:
    name: "~name"
    oauth_token_id: "$.oauth_token_id"
    path: "~path"
    root_path: "$.root_path"
    store_provider: "$.store_provider"

cloudstore.path.moveLink

- Method: EXECUTE
  Type: cloudstore.path.move
  Attributes:
    destination: "~destination"
    oauth_token_id: "$.oauth_token_id"
    root_path: "$.root_path"
    source: "~source"
    store_provider: "$.store_provider"

site.file.listLink

- Method: EXECUTE
  Type: site.file.list
  Attributes:
    path: "~path"
    site_id: "$.reference_id"

site.file.getLink

- Method: EXECUTE
  Type: site.file.get
  Attributes:
    path: "~path"
    site_id: "$.reference_id"

site.file.deleteLink

- Method: EXECUTE
  Type: site.file.delete
  Attributes:
    path: "~path"
    site_id: "$.reference_id"

system_json_schema_updateLink

- Method: EXECUTE
  Type: system_json_schema_update
  Attributes:
    json_schema: "~schema_file"

__upload_xlsx_file_to_entityLink

- Method: EXECUTE
  Type: __upload_xlsx_file_to_entity
  Attributes:
    add_missing_columns: "~add_missing_columns"
    create_if_not_exists: "~create_if_not_exists"
    data_xls_file: "~data_xls_file"
    entity_name: "~entity_name"

__upload_csv_file_to_entityLink

- Method: EXECUTE
  Type: __upload_csv_file_to_entity
  Attributes:
    add_missing_columns: "~add_missing_columns"
    create_if_not_exists: "~create_if_not_exists"
    data_csv_file: "~data_csv_file"
    entity_name: "~entity_name"

__download_cms_configLink

- Method: EXECUTE
  Type: __download_cms_config
  Attributes: { }

__become_adminLink

- Method: EXECUTE
  Type: __become_admin
  Attributes:
    user: "~user"
    user_account_id: "$user.id"

otp.generateLink

- Method: EXECUTE
  Type: otp.generate
  Attributes:
    email: "~email"
    mobile: "~mobile"

client.notifyLink

- Method: ACTIONRESPONSE
  Type: client.notify
  Attributes:
    message: Sign-up successful. Redirecting to sign in
    ### Success
    type: success

client.redirectLink

- Method: ACTIONRESPONSE
  Type: client.redirect
  Attributes:
    delay: 2000
    location: "/auth/signin"
    window: self

otp.generateLink

- Method: EXECUTE
  Type: otp.generate
  Attributes:
    email: "$email"

mail.sendLink

- Method: EXECUTE
  Type: mail.send
  Attributes:
    body: 'Your verification code is: $otp.otp'
    from: no-reply@localhost
    subject: Request for password reset
    to: "~email"

otp.login.verifyLink

- Method: EXECUTE
  Type: otp.login.verify
  Attributes:
    email: "~email"
    otp: "~otp"

random.generateLink

- Method: EXECUTE
  Type: random.generate
  Attributes:
    type: password

user_accountLink

- Method: EXECUTE
  Type: user_account
  Attributes:
    password: "!newPassword.value"
    reference_id: "$user[0].reference_id"

mail.sendLink

- Method: EXECUTE
  Type: mail.send
  Attributes:
    body: 'Your new password is: $newPassword.value'
    from: no-reply@localhost
    subject: Request for password reset
    to: "~email"

jwt.tokenLink

- Method: EXECUTE
  Type: jwt.token
  Attributes:
    email: "~email"
    password: "~password"

oauth.client.redirectLink

- Method: EXECUTE
  Type: oauth.client.redirect
  Attributes:
    authenticator: "$.name"
    scope: "$.scope"

oauth.login.responseLink

- Method: EXECUTE
  Type: oauth.login.response
  Attributes:
    authenticator: "~authenticator"
    code: "~code"
    state: "~state"
    user_account_id: "~user.id"
    user_reference_id: "~user.reference_id"

oauth.profile.exchangeLink

- Method: EXECUTE
  Type: oauth.profile.exchange
  Attributes:
    authenticator: "~authenticator"
    profileUrl: "$connection[0].profile_url"
    token: "$auth.access_token"
    tokenInfoUrl: "$connection[0].token_url"

jwt.tokenLink

- Method: EXECUTE
  Type: jwt.token
  Attributes:
    email: "!profile.email || profile.emailAddress"
    skipPasswordCheck: true

Comments