New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@nacelle/interphase-node

Package Overview
Dependencies
Maintainers
8
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nacelle/interphase-node

Utility for interacting with Shopify's Storefront Metafield Visibilities

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
668
-6.83%
Maintainers
8
Weekly downloads
 
Created
Source

Interphase Node

Interphase is Node abstraction of the Shopify Admin App (Interphase). This utility can be used in one of scripts or other Javascript/Typescript projects.

Table of Contents

  • Built With
  • Installation
  • Directory Structure
  • Serverless and Plugins
  • Test Suite
  • Deployment

Built With

Hail Frequency makes use of the following technology:

  • Node.js
  • TypeScript
  • Mocha

Installation

Pre-Requisites

  • TypeScript with TSC version Version 3.5.3 or greater
  • Node with Version 10.15.3 or greater

Installation

  • npm install @nacelle/interphase-node --save

Usage

Init

import { Interphase } from '@nacelle/interphase-node'

const store = 'starship-furniture' // Shopify Store Name
const accessToken = 'xxxxxxxxxxxxxxxxxxxx'  // Shopify GraphQL Admin API

const interphase = new Interphase(store, accessToken)

Create

const response = interphase.create({
  input: {
    namespace: 'test_namespace',
    key: 'test_key',
    ownerType: 'PRODUCT'
  }
})

Get

const response = interphase.get()

Delete

const response = interphase.delete({
  id: node.id
})

Recharge (creates all recharge metafieldVisibilities)

const response = interphase.Recharge.createAll()

Development

  • Clone repo
  • Run npm install via terminal inside the project directory
  • Run npm run start (will watch for changes in ./src)

Test Suite

This project uses Mocha and Chai. To run tests run npm run test in your terminal.

This project expects a TDD workflow.

Contributions

  • Original Author - Caleb Bodtorf

FAQs

Package last updated on 18 Sep 2020

Did you know?

Socket

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