Socket
Socket
Sign inDemoInstall

@mivialabs/mivia-api-nodejs

Package Overview
Dependencies
0
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mivialabs/mivia-api-nodejs

``` Status: IN DEVELOPMENT ```


Version published
Weekly downloads
27
decreased by-91.74%
Maintainers
1
Install size
239 kB
Created
Weekly downloads
 

Readme

Source

Mivia API NodeJS Official Package

Status: IN DEVELOPMENT

https://mivia.net - https://api.mivia.net - https://docs.mivia.net

To get access key to API please register account at https://mivia.net.

Rate limits applies - please read more info about it in documentation.

Install

npm install --save @mivialabs/mivia-api-nodejs

Example

import { MiviaApi, MiviaApiOptions } from "@mivialabs/mivia-api-nodejs";

const apiConfig: MiviaApiOptions = {
  api: {
    keyPublic: "PUBLIC_KEY",
    keySecret: "SECRET_KEY",
  },
};

MiviaApi.setConfig(apiConfig);

const res = await MiviaApi.organization.list();

console.log(res);

List of methods

NameDescription
setConfigSet Mivia API config options

Auth

NameDescription
auth.loginByEmailLogin user by email and password
auth.registerByEmailRegister new account by email and password
auth.confirmRegistrationConfirm registration
auth.me.getGet info about current USER.
auth.me.getSettingsGet current USER settings.
auth.me.updateSettingsUpdate current USER settings.
auth.method.listList current USER authentication methods.
auth.method.getGet current USER authentiction method details by id.
auth.method.createAdd additional authentication method for current USER.
auth.method.activateActivate authentication method.
auth.method.deleteDelete authentication method belonging to current USER.
auth.requestPasswordResetRequest password reset.
auth.confirmPasswordResetConfirm password reset change.
API KEYS
auth.api.createAccessKeyCreate api access key assigned to ORGANIZATION or USER
auth.api.getAccessKeyGet API KEY by id
auth.api.updateAccessKeyUpdate API_KEY details
auth.api.deleteAccessKeyDelete API_KEY

Organizations

NameDescription
organization.listList all organization to which current USER / API_KEY has access to.
organization.createCreate new ORGANIZATION.
organization.getGet ORGANIZATION by id
organization.updateUpdate ORGANIZATION details
organization.member.listList all members of ORGANIZATION
organization.member.getGet ORGANIZATION_MEMBER by id
organization.member.updateUpdate ORGANIZATION_MEMBER details in ORGANIZATION
organization.member.deleteDelete ORGANIZATION_MEMBER from ORGANIZATION
organization.requestOwnershipTransferRequest ORGANIZATION ownership transfer to another USER
organization.confirmOwnershipTransferConfirm ORGANIZATION ownership transfer

Projects

NameDescription
project.listList all PROJECTS to which current USER / API_KEY has access to.
project.getGet project details by id
project.createCreate PROJECT assigned to a USER or ORGANIZATION
project.updateUpdate PROJECT details

Files

NameDescription
file.listList all FILES to which current USER / API_KEY has access to.
file.getGet file details by id
file.updateUpdate file details
file.deleteDelete file

Warehouses

NameDescription
warehouse.createCreate WAREHOUSE assigned to a PROJECT
warehouse.listList WAREHOUSE in all PROJECTS or selected ones
warehouse.getGet WAREHOUSE details
warehouse.updateUpdate WAREHOUSE details
warehouse.deleteDelete WAREHOUSE

E-commerce

NameDescription
SETTINGS
ecommerce.settings.getGet PROJECT eccommerce settings
ecommerce.settings.updateUpdate ecommerce settings
SUPPLIER
ecommerce.supplier.getGet SUPPLIER by id
ecommerce.supplier.listList all SUPPLIERS assigned to a PROJECT
ecommerce.supplier.createCreate SUPPLIER entry assigned to a PROJECT
ecommerce.supplier.updateUpdate SUPPLIER details
ecommerce.supplier.deleteDelete SUPPLIER
BRAND
ecommerce.brand.getGet BRAND by id
ecommerce.brand.listList all BRANDS assigned to a PROJECT
ecommerce.brand.createCreate BRAND entry assigned to a PROJECT
ecommerce.brand.updateUpdate BRAND details
ecommerce.brand.deleteDelete BRAND
PRODUCT
ecommerce.product.createCreate PRODUCT assigned to a PROJECT
ecommerce.product.listList all PRODUCTS in a PROJECT
ecommerce.product.getGet PRODUCT details
ecommerce.product.updateUpdate PRODUCT
PRODUCT VARIANTS
ecommerce.product.variant.listList PRODUCT_VARIANTS
ecommerce.product.variant.getGet PRODUCT_VARIANT details
ecommerce.product.variant.updateUpdate PRODUCT_VARIANT
ecommerce.product.variant.deleteUpdate PRODUCT_VARIANT
PRODUCT TRANSLATIONS
ecommerce.product.translation.listList PRODUCT translations
ecommerce.product.translation.updateCreate/Update PRODUCT translation
ecommerce.product.translation.deleteDelete PRODUCT translation
ecommerce.product.translation.getGet PRODUCT translation
PRODUCT PRICES
ecommerce.product.price.listList PRODUCT_PRICES
ecommerce.product.price.getGet PRODUCT_PRICE details
ecommerce.product.price.updateUpdate PRODUCT_PRICE
ecommerce.product.price.deleteUpdate PRODUCT_PRICE
PRODUCT STOCKS
ecommerce.product.stock.listList PRODUCT_STOCKS
ecommerce.product.stock.updateUpdate PRODUCT_STOCK at WAREHOUSE

FAQs

Last updated on 24 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc