Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Components] mitra #14368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jcortes
Copy link
Collaborator

@jcortes jcortes commented Oct 21, 2024

WHY

Resolves #14274

Summary by CodeRabbit

Release Notes

  • New Features

    • Introduced actions for managing data in the Mitra database: Delete, Get, Insert, and Update records.
    • Added utility functions for handling JSON and array parsing.
  • Enhancements

    • Improved HTTP request handling with new methods for making POST, PUT, and DELETE requests.
  • Bug Fixes

    • Corrected minor typos in method names for improved clarity.

These updates enhance the functionality and usability of the Mitra application, streamlining data management processes for users.

@jcortes jcortes added the action New Action Request label Oct 21, 2024
@jcortes jcortes self-assigned this Oct 21, 2024
Copy link

vercel bot commented Oct 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Oct 21, 2024 4:21pm

Copy link

vercel bot commented Oct 21, 2024

@jcortes is attempting to deploy a commit to the Pipedreamers Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

coderabbitai bot commented Oct 21, 2024

Walkthrough

This pull request introduces several new modules to the Mitra application, each implementing CRUD (Create, Read, Update, Delete) operations for managing records in a database. The modules include functionalities for deleting, fetching, inserting, and updating data. Additionally, a utility module is added for JSON and array parsing. The main application file is updated to support these actions and to handle HTTP requests using Axios.

Changes

File Path Change Summary
components/mitra/actions/delete-data/delete-data.mjs New module for deleting records, with methods deleteData and run.
components/mitra/actions/get-data/get-data.mjs New module for fetching data, with methods fetchData and run.
components/mitra/actions/insert-data/insert-data.mjs New module for inserting records, with methods insertData and run.
components/mitra/actions/update-data/update-data.mjs New module for updating records, with methods updateData and run.
components/mitra/common/utils.mjs New utility functions for JSON and array handling: isJson, valueToObject, parseArray.
components/mitra/mitra.app.mjs Enhanced app file with new properties and methods for handling HTTP requests (GET, POST, PUT, DELETE).

Assessment against linked issues

Objective Addressed Explanation
Fetches data from the specified table (14274)
Inserts one or more records into a table (14274)
Updates one or more records in a table (14274)
Removes a record from a table (14274)

Possibly related PRs

Suggested reviewers

  • michelle0927

🐰 In the land of data, we hop and play,
With CRUD in our toolkit, we work all day.
Deleting, fetching, inserting with glee,
Updating our records, oh what a spree!
So let’s celebrate changes, both big and small,
In the world of Mitra, we’re having a ball! 🎉


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 10

🧹 Outside diff range and nitpick comments (9)
components/mitra/actions/update-data/update-data.mjs (3)

10-24: LGTM: Props are well-defined. Consider adding input validation.

The props cover the necessary inputs for updating data and use propDefinitions from the app object, promoting consistency and reusability.

Consider adding input validation for the records prop to ensure it contains the required fields for updating data (e.g., primary key). This could be done in the run method or by extending the propDefinition.


25-34: LGTM: updateData method is concise and flexible. Consider adding error handling.

The updateData method effectively delegates the update operation to the app object using modern JavaScript features.

Consider adding error handling within the updateData method to catch and handle any errors that might occur during the update operation. This could provide more detailed error messages and improve debugging.


35-50: LGTM: Run function is well-structured. Consider enhancing error handling and summary message.

The run function correctly implements the update operation using async/await and parses the records appropriately.

Consider the following enhancements:

  1. Add error handling to catch and handle any errors that might occur during the update operation.
  2. Provide more specific information in the summary message, such as the number of records updated and the table name.

Example:

async run({ $ }) {
  const { updateData, tableName, records } = this;
  const parsedRecords = utils.parseArray(records);

  try {
    const response = await updateData({
      $,
      tableName,
      data: parsedRecords,
    });

    $.export("$summary", `Successfully updated ${parsedRecords.length} record(s) in the '${tableName}' table.`);
    return response;
  } catch (error) {
    $.export("$summary", `Failed to update records in the '${tableName}' table.`);
    throw error;
  }
}
components/mitra/actions/insert-data/insert-data.mjs (4)

4-9: LGTM: Action metadata is well-defined.

The action metadata provides clear information about the purpose and identity of the action.

Consider adding a changelog property to track version changes, which can be helpful for future maintenance and debugging.


10-24: LGTM: Props are well-defined and utilize app propDefinitions.

The props cover the necessary inputs for the insert operation and promote consistency by using propDefinitions from the app object.

Consider adding input validation for the records prop to ensure it's in the correct format before processing. This could prevent potential runtime errors. For example:

records: {
  propDefinition: [
    app,
    "records",
  ],
  validate: (value) => {
    if (!Array.isArray(value)) {
      throw new Error("Records must be an array");
    }
  },
},

25-34: LGTM: The insertData method is well-implemented.

The method correctly uses object destructuring and delegates the insertion to the app.post method, maintaining a good separation of concerns.

Consider adding error handling to the insertData method. This could help in providing more specific error messages and potentially retry logic. For example:

methods: {
  async insertData({
    tableName, ...args
  } = {}) {
    try {
      return await this.app.post({
        tableName,
        ...args,
      });
    } catch (error) {
      console.error(`Error inserting data into ${tableName}:`, error);
      throw error;
    }
  },
},

35-51: LGTM: The run function is well-structured and implements the insert operation correctly.

The function follows a logical flow, uses utils.parseArray for proper record formatting, and provides user feedback through the summary export.

Consider the following improvements:

  1. Add error handling to provide more informative error messages.
  2. Validate the response before exporting the success message.

Here's an example implementation:

async run({ $ }) {
  const {
    insertData,
    tableName,
    records,
  } = this;

  try {
    const parsedRecords = utils.parseArray(records);
    const response = await insertData({
      $,
      tableName,
      data: parsedRecords,
    });

    if (response.success) {
      $.export("$summary", `Successfully inserted ${parsedRecords.length} records into the ${tableName} table.`);
      return response;
    } else {
      throw new Error("Insert operation failed");
    }
  } catch (error) {
    console.error("Error in insert-data action:", error);
    $.export("$summary", `Failed to insert records: ${error.message}`);
    throw error;
  }
},
components/mitra/actions/delete-data/delete-data.mjs (1)

1-8: Add the missing documentation link in the description.

The description mentions "See the documentation", but the link is empty. Please add the correct documentation link to provide users with more information about this action.

components/mitra/common/utils.mjs (1)

48-50: Consider renaming exported functions for clarity

The naming of the exported parseArray function might be confusing since it wraps the parseArray function and maps valueToObject. To improve clarity, consider renaming it to reflect its functionality more accurately, such as parseArrayOfObjects.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 4feefb4 and 1c8e517.

📒 Files selected for processing (6)
  • components/mitra/actions/delete-data/delete-data.mjs (1 hunks)
  • components/mitra/actions/get-data/get-data.mjs (1 hunks)
  • components/mitra/actions/insert-data/insert-data.mjs (1 hunks)
  • components/mitra/actions/update-data/update-data.mjs (1 hunks)
  • components/mitra/common/utils.mjs (1 hunks)
  • components/mitra/mitra.app.mjs (1 hunks)
🧰 Additional context used
🔇 Additional comments (8)
components/mitra/actions/update-data/update-data.mjs (3)

1-2: LGTM: Imports are appropriate and well-structured.

The imports for app and utils are correctly defined and use relative paths, indicating a well-organized project structure.


4-9: LGTM: Metadata is well-defined and informative.

The metadata provides clear information about the action, including a descriptive name, purpose, and appropriate versioning.


1-51: Overall assessment: Well-implemented update action with room for minor enhancements.

The update-data.mjs module successfully implements the update action for the Mitra database, aligning with the PR objectives. The code is well-structured, uses modern JavaScript features, and follows good practices for action implementation.

Key strengths:

  1. Clear and informative metadata
  2. Well-defined props using app's propDefinitions
  3. Concise and flexible updateData method
  4. Proper use of async/await in the run function

Suggested enhancements:

  1. Add input validation for the records prop
  2. Implement error handling in both updateData method and run function
  3. Provide more specific information in the summary message

These enhancements would further improve the robustness and user-friendliness of the module.

components/mitra/actions/insert-data/insert-data.mjs (1)

1-2: LGTM: Imports are appropriate and well-structured.

The imports for utils and the Mitra app are correctly implemented, following good practices for module organization.

components/mitra/actions/delete-data/delete-data.mjs (2)

9-22: Props definition looks good.

The props are well-defined and include all necessary inputs for the delete operation. The use of propDefinition for tableName ensures consistency with other parts of the application.


23-33: Methods implementation looks correct.

The deleteData method is well-implemented. It correctly uses destructuring to extract parameters and properly calls the app's delete method with the required arguments. The use of rest parameters (...args) provides flexibility for additional arguments.

components/mitra/actions/get-data/get-data.mjs (1)

17-21: Ensure secure handling of query parameters.

The params prop allows users to input dynamic filters. Make sure that the backend properly sanitizes and validates these parameters to prevent injection attacks or unauthorized access.

Run the following script to verify if the _makeRequest method securely handles query parameters:

This script locates the _makeRequest function definition to examine how it processes input parameters.

components/mitra/mitra.app.mjs (1)

1-63: Overall implementation enhances functionality effectively

The added properties and methods extend the app's capabilities, allowing it to perform CRUD operations with the Mitra API efficiently. The use of helper methods like _makeRequest, getUrl, and getHeaders promotes code reuse and maintainability. The structure aligns well with best practices for modular design.

Comment on lines +34 to +49
async run({ $ }) {
const {
deleteData,
tableName,
dimensionContentId,
} = this;

const response = await deleteData({
tableName,
dimensionContentId,
});

$.export("$summary", "Succesfully deleted record from the Mitra database.");
return response;
},
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix typo and consider adding error handling.

  1. There's a typo in the success message. Change "Succesfully" to "Successfully" on line 46.

  2. Consider adding error handling to the run method. This will make the action more robust and provide better feedback in case of failures.

Here's a suggested implementation with error handling:

async run({ $ }) {
  const {
    deleteData,
    tableName,
    dimensionContentId,
  } = this;

  try {
    const response = await deleteData({
      tableName,
      dimensionContentId,
    });

    $.export("$summary", `Successfully deleted record from the Mitra database.`);
    return response;
  } catch (error) {
    $.export("$summary", `Failed to delete record: ${error.message}`);
    throw error;
  }
}

Comment on lines +25 to +46
function parseArray(value) {
try {
if (!value) {
return [];
}

if (Array.isArray(value)) {
return value;
}

const parsedValue = JSON.parse(value);

if (!Array.isArray(parsedValue)) {
throw new Error("Not an array");
}

return parsedValue;

} catch (e) {
throw new ConfigurationError("Make sure the custom expression contains a valid array object");
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Include original error message in ConfigurationError for better debugging

When catching exceptions in the parseArray function, the original error message is not included in the ConfigurationError, which might make debugging harder. Consider appending the original error message to provide more context.

Apply this diff to improve error messages:

   } catch (e) {
-    throw new ConfigurationError("Make sure the custom expression contains a valid array object");
+    throw new ConfigurationError(`Make sure the custom expression contains a valid array object. Error: ${e.message}`);
   }
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
function parseArray(value) {
try {
if (!value) {
return [];
}
if (Array.isArray(value)) {
return value;
}
const parsedValue = JSON.parse(value);
if (!Array.isArray(parsedValue)) {
throw new Error("Not an array");
}
return parsedValue;
} catch (e) {
throw new ConfigurationError("Make sure the custom expression contains a valid array object");
}
}
function parseArray(value) {
try {
if (!value) {
return [];
}
if (Array.isArray(value)) {
return value;
}
const parsedValue = JSON.parse(value);
if (!Array.isArray(parsedValue)) {
throw new Error("Not an array");
}
return parsedValue;
} catch (e) {
throw new ConfigurationError(`Make sure the custom expression contains a valid array object. Error: ${e.message}`);
}
}

Comment on lines +13 to +23
function valueToObject(value) {
if (typeof(value) === "object") {
return value;
}

if (!isJson(value)) {
throw new ConfigurationError(`Make sure the custom expression contains a valid JSON object: \`${value}\``);
}

return JSON.parse(value);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Handle null values explicitly in valueToObject function

In the valueToObject function, typeof null returns "object", which means null values are returned as-is. This might lead to unexpected behavior if null is not an acceptable object in your context. Consider adding a check to handle null values explicitly.

Apply this diff to address the issue:

 function valueToObject(value) {
-  if (typeof(value) === "object") {
+  if (typeof value === "object" && value !== null) {
     return value;
   }
 
   if (!isJson(value)) {
     throw new ConfigurationError(`Make sure the custom expression contains a valid JSON object: \`${value}\``);
   }
 
   return JSON.parse(value);
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
function valueToObject(value) {
if (typeof(value) === "object") {
return value;
}
if (!isJson(value)) {
throw new ConfigurationError(`Make sure the custom expression contains a valid JSON object: \`${value}\``);
}
return JSON.parse(value);
}
function valueToObject(value) {
if (typeof value === "object" && value !== null) {
return value;
}
if (!isJson(value)) {
throw new ConfigurationError(`Make sure the custom expression contains a valid JSON object: \`${value}\``);
}
return JSON.parse(value);
}

Comment on lines +3 to +11
function isJson(value) {
try {
JSON.parse(value);
} catch (e) {
return false;
}

return true;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Ensure correct handling of non-string inputs in isJson function

The isJson function may not correctly handle non-string inputs like objects or numbers since JSON.parse expects a string input. Passing a non-string value will result in a TypeError. To improve robustness, consider adding a type check to ensure that the value is a string before attempting to parse it.

Apply this diff to fix the issue:

 function isJson(value) {
+  if (typeof value !== "string") {
+    return false;
+  }
   try {
     JSON.parse(value);
   } catch (e) {
     return false;
   }
   return true;
 }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
function isJson(value) {
try {
JSON.parse(value);
} catch (e) {
return false;
}
return true;
}
function isJson(value) {
if (typeof value !== "string") {
return false;
}
try {
JSON.parse(value);
} catch (e) {
return false;
}
return true;
}

Comment on lines +35 to +41
const parsedValue = JSON.parse(value);

if (!Array.isArray(parsedValue)) {
throw new Error("Not an array");
}

return parsedValue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Optimize parsing logic in parseArray function

Currently, the code attempts to parse the value with JSON.parse without checking if it's a string. If value is a non-string (e.g., number, object), JSON.parse might throw an error. To enhance the function's robustness, check if value is a string before parsing.

Apply this diff to optimize the parsing logic:

     if (Array.isArray(value)) {
       return value;
     }

+    if (typeof value !== "string") {
+      throw new Error("Provided value is not a string or an array");
+    }
+
     const parsedValue = JSON.parse(value);

     if (!Array.isArray(parsedValue)) {
       throw new Error("Not an array");
     }

Committable suggestion was skipped due to low confidence.

Comment on lines +40 to +45
const response = await fetchData({
tableName,
params,
});
$.export("$summary", "Succesfully fetched data from the database.");
return response;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Add error handling for the data fetching process.

Currently, the code does not handle potential errors from the fetchData call. To improve robustness, consider adding error handling to manage exceptions that may occur during data retrieval.

Example:

async run({ $ }) {
  const {
    fetchData,
    tableName,
    params,
  } = this;

  try {
    const response = await fetchData({
      tableName,
      params,
    });
    $.export("$summary", "Successfully fetched data from the database.");
    return response;
  } catch (error) {
    $.export("$summary", `Failed to fetch data: ${error.message}`);
    throw error;
  }
}

tableName,
params,
});
$.export("$summary", "Succesfully fetched data from the database.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Correct the typo in the summary message.

There is a typo in the summary message on line 44. The word "Succesfully" should be spelled "Successfully".

Apply this diff to fix the typo:

-    $.export("$summary", "Succesfully fetched data from the database.");
+    $.export("$summary", "Successfully fetched data from the database.");
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
$.export("$summary", "Succesfully fetched data from the database.");
$.export("$summary", "Successfully fetched data from the database.");

},
delete(args = {}) {
return this._makeRequest({
methot: "DELETE",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix typo in 'methot' key to 'method'

There is a typo in the _makeRequest call within the delete method. The key 'methot' should be corrected to 'method' to ensure that the HTTP DELETE request is sent correctly.

Apply this diff to fix the typo:

return this._makeRequest({
-  methot: "DELETE",
+  method: "DELETE",
   ...args,
});
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
methot: "DELETE",
method: "DELETE",

Comment on lines +14 to +17
type: "string[]",
label: "Records",
description: "An array of records to insert or update, in JSON format.",
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Consider changing records type to object[] for JSON records

The records property is currently defined with the type string[], but the description indicates it should be "An array of records to insert or update, in JSON format." To accurately represent JSON objects and to ensure proper handling of the data, consider changing the type to object[]. This change will allow for better validation and manipulation of the records as JSON objects.

Apply this diff to update the type:

  records: {
-   type: "string[]",
+   type: "object[]",
    label: "Records",
    description: "An array of records to insert or update, in JSON format.",
  },
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
type: "string[]",
label: "Records",
description: "An array of records to insert or update, in JSON format.",
},
type: "object[]",
label: "Records",
description: "An array of records to insert or update, in JSON format.",
},

Comment on lines +59 to +63
delete(args = {}) {
return this._makeRequest({
methot: "DELETE",
...args,
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Consider renaming the delete method to avoid using a reserved keyword

While naming a method delete is allowed in JavaScript object literals, it can lead to confusion or potential issues because delete is a reserved keyword. To improve code readability and maintainability, consider renaming the method to something like deleteRecord or remove.

Apply this diff to rename the method:

- delete(args = {}) {
+ deleteRecord(args = {}) {
    return this._makeRequest({
      method: "DELETE",
      ...args,
    });
  },

Remember to update all references to this method accordingly.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
delete(args = {}) {
return this._makeRequest({
methot: "DELETE",
...args,
});
deleteRecord(args = {}) {
return this._makeRequest({
methot: "DELETE",
...args,
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action New Action Request
Development

Successfully merging this pull request may close these issues.

[Components] mitra
1 participant