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

@figuredev/business-config-sdk

Package Overview
Dependencies
Maintainers
3
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/business-config-sdk - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

account.ts

19

index.ts

@@ -6,2 +6,3 @@ import axios from "axios"

import { SettingDTO } from "./settings"
import { AccountDTO } from "./account"

@@ -16,2 +17,3 @@ type BusinessConfigClientConfig = {

locationIds?: string[]
specialTypes?: string[]
}

@@ -28,2 +30,18 @@

async getAccount(ctx: UserContext, id: string): Promise<AccountDTO | null> {
return await axios
.request({
baseURL: this.config.baseUrl,
method: "GET",
url: `/account/${id}`,
headers: {
"fgr-service-token": this.config.secret,
...(ctx.accountId ? { "twbrds-account-id": ctx.accountId } : null),
...(ctx.locationId ? { "twbrds-location-id": ctx.locationId } : null),
...(ctx.terminalId ? { "twbrds-terminal-id": ctx.terminalId } : null),
},
})
.then((r) => r.data)
}
async getAssignments(ctx: UserContext, params: GetAssignmentsQueryParams): Promise<AssignmentDTO[]> {

@@ -44,2 +62,3 @@ return await axios

locationIds: params.locationIds,
specialTypes: params.specialTypes,
},

@@ -46,0 +65,0 @@ })

2

package.json
{
"name": "@figuredev/business-config-sdk",
"version": "0.7.0",
"version": "0.8.0",
"license": "ISC",

@@ -5,0 +5,0 @@ "dependencies": {

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