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
5
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.9.18 to 0.9.19

lib/common.d.ts

3

lib/index.d.ts

@@ -10,2 +10,3 @@ import { UserContext } from "./utils";

import { PromotionDTO } from "./promotion";
import { PricingDTO } from "./pricing";
declare type BusinessConfigClientConfig = {

@@ -55,2 +56,4 @@ baseUrl: string;

getAssignments(ctx: UserContext, params: GetAssignmentsQueryParams): Promise<AssignmentDTO[]>;
retrievePricingForPromoCode(ctx: UserContext, promoCode: string): Promise<PricingDTO | null>;
getPricing(ctx: UserContext, id: string): Promise<PricingDTO | null>;
getPrinters(ctx: UserContext, params?: GetPrintersQueryParams): Promise<PrinterDTO[]>;

@@ -57,0 +60,0 @@ getPhysicalPrinters(ctx: UserContext): Promise<PhysicalPrinterDTO[]>;

@@ -104,2 +104,29 @@ "use strict";

}
retrievePricingForPromoCode(ctx, promoCode) {
return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
baseURL: this.config.baseUrl,
method: "POST",
url: "/pricing/promo-code",
headers: this.prepareHeaders(ctx),
data: {
promoCode: promoCode,
},
})
.then((r) => r.data);
});
}
getPricing(ctx, id) {
return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
baseURL: this.config.baseUrl,
method: "GET",
url: `/pricing/${id}`,
headers: this.prepareHeaders(ctx),
})
.then((r) => r.data);
});
}
getPrinters(ctx, params = {}) {

@@ -106,0 +133,0 @@ return __awaiter(this, void 0, void 0, function* () {

2

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

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

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