Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bizzy-phoenix/utils

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bizzy-phoenix/utils

Helper collections for Bizzy Phoenix projects - Part of Bizzy Common Web

  • 1.0.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

@bizzy-phoenix/utils

Helper collections for Bizzy Phoenix projects

version downloads lerna

How to install

$ yarn add @bizzy-phoenix/utils
# or
$ npm i @bizzy-phoenix/utils

Sample Usage

import { __apiGet } from '@bizzy-phoenix/utils/dist/api'

Or used untranspiled version:

import { __apiGet } from '@bizzy-phoenix/utils/src/api'

For Test

If you decied using untranspiled version you need to add ignore pattern like this:

transformIgnorePatterns: ['node_modules/(?!(@bizzy-phoenix/utils)/)'],

Available Utils/Helpers

api.js

MethodParam
__apiGet$store, URL, params
__apiGetNonAuthURL, params
__apiGetCustomHeaderheaders, URL, params
__apiPost$store, URL, data, onUploadProgress
__apiPostNonAuthURL, data, onUploadProgress
__apiPostCustomHeaderheaders, URL, data, onUploadProgress
__apiPut$store, URL, data
__apiPutNonAuthURL, data
__apiDelete$store, URL, data
__apiDeleteNonAuthURL, data

auth.js

MethodParam
getToken$store
getTokenDirectFromStore$store
getAddons$store
getUsername$store
getUserFirstName$store
getUserLastName$store
getUserFullName$store
getUserDefaultGroupIduser
getCustomerRoles$store
getCustomerChannelType$store
getCustomerTopDays$store
getCustomerOrganizationID$store
getCustomerPersonID$store
getCustomerUsername$store
getCustomerOrganizationName$store
isCustomerSuperAdmin$store
isPunchOutUser$store
isPunchOut$store
isContract$store
getActiveGroupId$store
getGroups$store
getSelectedGroup$store
isSalesAdmin$store
getCustomerInformation$store
getCustomerVendorInformation$store
isVendor$store
isLoggedIn$store
loggedAsSellerOnly$store
isCustomerHaveRole$store
isAccountCompanySwitched$store

common.js

MethodNotes
__isNotNull-
__isNotEmptyString-
__isNotEmptyArray-
__isFunction-
__slugify-

date.js

MethodNotes
__isValidDate-
__toDatetimeformat: DD-MMM-YYYY, HH:mm:ss
__toDatetimeToMinutesformat: DD MMM YYYY, HH:mm
__toDatetimeWithSeparatorformat: `DD MMMM YYYY
__toDateEnformat: YYYY-MM-DD
__toCompleteDateFormatformat: DD MMMM YYYY
__checkDiff-

notification.js

MethodNotes
__showNotification-
__showErrorNotif-
__showSuccessNotif-
__type-

price.js

MethodNotes
__formatPrice-

product.js

MethodNotes
__getProductUrl-

storage.js

MethodNotes
__getData-
__setData-

window.js

MethodNotes
__goToPage-
__hideModal-
__showModal-

Script for Development

# run eslint
$ yarn run lint

# run test
$ yarn run test

# run build
$ yarn run build

Bizzy Indonesia

Copyright © 2018 by Bizzy Engineering Team

FAQs

Package last updated on 14 Mar 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc