@bcfranchise/nexus-sdk (1.0.167)

Published 2026-07-15 15:16:19 +00:00 by dev-admin

Installation

@bcfranchise:registry=
npm install @bcfranchise/nexus-sdk@1.0.167
"@bcfranchise/nexus-sdk": "1.0.167"

About this package

@bcfranchise/nexus-sdk@1.0.167

A TypeScript SDK client for the localhost API.

Usage

First, install the SDK from npm.

npm install @bcfranchise/nexus-sdk --save

Next, try it out.

import {
  Configuration,
  AccountingStoresApi,
} from '@bcfranchise/nexus-sdk';
import type { StoreSalesForMonthRequest } from '@bcfranchise/nexus-sdk';

async function example() {
  console.log("🚀 Testing @bcfranchise/nexus-sdk SDK...");
  const config = new Configuration({ 
    // To configure API key authorization: Bearer
    apiKey: "YOUR API KEY",
  });
  const api = new AccountingStoresApi(config);

  const body = {
    // StoreSalesFilter
    storeSalesFilter: ...,
  } satisfies StoreSalesForMonthRequest;

  try {
    const data = await api.storeSalesForMonth(body);
    console.log(data);
  } catch (error) {
    console.error(error);
  }
}

// Run the test
example().catch(console.error);

Documentation

API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
AccountingStoresApi storeSalesForMonth POST /accounting/stores/sales-for-month
AccountingStoresApi updateAccountingStoreDetails POST /accounting/stores/{storeId}/details
AdminApi getRoleNames GET /core/admin/roles
AdminApi getUsers GET /core/admin/users
AdminApi updateUserRoles POST /core/admin/users/{userId}/roles
CheckinAppApi createCustomer POST /v{version}/checkin/app/customer
CheckinAppApi getCheckinClientStoreInfo GET /v{version}/checkin/app/store
CheckinAppApi getCustomerByPhoneNumber GET /v{version}/checkin/app/customer
CheckinAppApi getUpdateCustomerToken GET /v{version}/checkin/app/update-customer-token
CheckinAppApi startShopCheckin POST /v{version}/checkin/app/shop-checkin
CheckinAppApi startUpdateCustomerVerification POST /v{version}/checkin/app/start-update-customer-verification
CheckinAppApi startVendCheckin POST /v{version}/checkin/app/vend-checkin
CheckinAppApi updateCustomer PUT /v{version}/checkin/app/customer
ClientAdoptionApi adoptCheckinClient POST /v{version}/checkin/adopt Use a Checkin adoption token to create a CheckinClient and return its authentication key.
CustomerApi getCustomerCount GET /store-data/customers/count
CustomerApi getCustomerProfile GET /store-data/customers/{customerId}/profile
CustomerApi queryCustomers POST /store-data/customers/query
DeploymentApi cancelDeployment POST /development/deployments/cancel/{id}
DeploymentApi getAvailableFleets GET /development/deployments/available-fleets
DeploymentApi getDeployment GET /development/deployments/{id}
DeploymentApi getDeployments GET /development/deployments
DeploymentApi getReleasesByTagKey GET /development/deployments/versioned-releases/{fleetId}
DeploymentApi scheduleDeployment POST /development/deployments/schedule
IdentityApi getGoogleClientId GET /core/identity/google-client-id Returns the Google ClientID needed to initiate the Google OAuth flow.
IdentityApi refreshAccessToken POST /core/identity/refresh-access-token
IdentityApi verifyGoogleAuth POST /core/identity/google-auth Verify the google authentication from the provided idToken. If successful, an access token will be issued allowing the client to communicate with the Nexus API.
JobApi getJobState GET /core/jobs/{jobId}/state
PriceCalculationApi createPriceVariables POST /store-data/price-calculations/price-variables
PriceCalculationApi enqueuePriceCalculation POST /store-data/price-calculations
PriceCalculationApi getDefaultPriceVariables GET /store-data/price-calculations/default-price-variables
PriceCalculationApi getPriceCalculations GET /store-data/price-calculations
PriceSetApi activatePriceSets POST /store-data/price-sets/activate
PriceSetApi beginCreatePriceSetGroup POST /store-data/price-sets/begin-create-group
PriceSetApi finalizeCreatePriceSetGroup POST /store-data/price-sets/finalize-create-group/{id}
PriceSetApi getPriceSetDownloadUrl GET /store-data/price-sets/download-url/{id}
PriceSetApi getPriceSetGroups GET /store-data/price-sets/groups
PriceSetApi listPriceSets POST /store-data/price-sets/list
PriceSetApi queryPriceSets POST /store-data/price-sets/query
QuickbooksApi credentialsCheck GET /accounting/quickbooks/credentials-check
QuickbooksApi deleteInvoices POST /accounting/quickbooks/delete-invoices/{id}
QuickbooksApi getAuthorizationUrl GET /accounting/quickbooks/authorization-url
QuickbooksApi getSettings GET /accounting/quickbooks/settings
QuickbooksApi oAuthCallback POST /accounting/quickbooks/oauth-callback
QuickbooksApi publishInvoices POST /accounting/quickbooks/publish-invoices/{id}
QuickbooksApi updateInvoice POST /accounting/quickbooks/update-invoice/{id}
QuickbooksApi upsertSettings PUT /accounting/quickbooks/settings
RevCycleApi createRevCycle POST /accounting/rev-cycles
RevCycleApi generateRevCycleACH GET /accounting/rev-cycles/generate-ach/{id}
RevCycleApi getRevCycleById GET /accounting/rev-cycles/{id}
RevCycleApi getRevCycleConfig GET /accounting/rev-cycles/config
RevCycleApi getRevCycleDetailsList GET /accounting/rev-cycles/details
RevCycleApi updateRevCycle PUT /accounting/rev-cycles/{id}
RevCycleApi updateRevCycleDetails PUT /accounting/rev-cycles/details/{id}
RevCycleApi uploadACHReport POST /accounting/rev-cycles/upload-ach/{id}
RevCycleFeeApi createFee POST /accounting/rev-cycle-fees
RevCycleFeeApi getFeeById GET /accounting/rev-cycle-fees/{id}
RevCycleFeeApi getFees GET /accounting/rev-cycle-fees
RevCycleFeeApi updateFee PUT /accounting/rev-cycle-fees/{id}
StoreApi getCountries GET /core/stores/countries
StoreApi getRegions GET /core/stores/regions
StoreApi getStoreById GET /core/stores/{id}
StoreApi getStores GET /core/stores
StoreConnectionEventApi getConnectionEventsForStore GET /store-data/store-connection-events/{storeId}/{hours} Retrieve the StoreConnectionEvents for the specified store.
StoreConnectionEventApi getStoreConnectionStatuses GET /store-data/store-connection-events
StoreDataApi getCustomersByStoreRecords POST /v{version}/store-data/stores/sync-baseline-customer-ids
StoreDataApi getPriceSetDownloadUrlForStore GET /v{version}/store-data/stores/price-set-download-url/{id}
StoreDataApi getTargetSyncState GET /v{version}/store-data/stores/target-sync-state
StoreDataApi issueCheckinClientAdoptionToken POST /v{version}/store-data/stores/issue-checkin-client-adoption-token
StoreDataApi queryCustomersByPhoneNumber GET /v{version}/store-data/stores/customers
StoreDataApi whoAmI GET /v{version}/store-data/stores/whoami

Models

Authorization

Authentication schemes defined for the API:

Bearer

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

StoreDataKey

  • Type: API key
  • API key parameter name: X-STORE-DATA-KEY
  • Location: HTTP header

CheckinKey

  • Type: API key
  • API key parameter name: X-CHECKIN-KEY
  • Location: HTTP header

About

This TypeScript SDK client supports the Fetch API and is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.167
  • Generator version: 7.23.0
  • Build package: org.openapitools.codegen.languages.TypeScriptFetchClientCodegen

The generated npm module supports the following:

  • Environments
    • Node.js
    • Webpack
    • Browserify
  • Language levels
    • ES5 - you must have a Promises/A+ library installed
    • ES6
  • Module systems
    • CommonJS
    • ES6 module system

Development

Building

To build the TypeScript source code, you need to have Node.js and npm installed. After cloning the repository, navigate to the project directory and run:

npm install
npm run build

Publishing

Once you've built the package, you can publish it to npm:

npm publish

License

Dependencies

Development dependencies

ID Version
typescript ^4.0 || ^5.0