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
6
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.14.3 to 0.14.5

CHANGELOG.md

15

lib/employee.d.ts

@@ -1,2 +0,1 @@

import { IsoDate } from "fgr-lib-business-logic/lib/common/dateTime/types";
export declare type EmployeeDTO = {

@@ -9,3 +8,3 @@ id: string;

pin?: string;
dateOfBirth?: IsoDate;
dateOfBirth?: string;
gender?: string;

@@ -21,8 +20,8 @@ phoneNumber?: string;

id: string;
line1?: IsoDate;
line2?: IsoDate;
state?: IsoDate;
city?: IsoDate;
zip?: IsoDate;
country?: IsoDate;
line1?: string;
line2?: string;
state?: string;
city?: string;
zip?: string;
country?: string;
};

@@ -1,14 +0,14 @@

import { UserContext } from "./utils";
import { AccountDTO } from "./account";
import { AssignmentDTO } from "./assignments";
import { MatchCategoriesRequestItem, MatchCategoriesResponseItem } from "./category";
import { EmployeeDTO } from "./employee";
import { LocationDTO, LocationPreviewDTO } from "./location";
import { PaymentSettingDTO } from "./payment";
import { PricingDTO } from "./pricing";
import { PhysicalPrinterDTO, PrinterDTO, PrinterType } from "./printers";
import { AssignmentDTO } from "./assignments";
import { PromotionDTO } from "./promotion";
import { SchematizedLayoutDTO, SchematizedLayoutsDTO } from "./schematized";
import { SettingDTO } from "./settings";
import { AccountDTO } from "./account";
import { LocationDTO, LocationPreviewDTO } from "./location";
import { TerminalDTO, TerminalPreviewDTO } from "./terminal";
import { SchematizedLayoutDTO, SchematizedLayoutsDTO } from "./schematized";
import { EmployeeDTO } from "./employee";
import { PromotionDTO } from "./promotion";
import { PricingDTO } from "./pricing";
import { MatchCategoriesRequestItem, MatchCategoriesResponseItem } from "./category";
import { PaymentSettingDTO } from "./payment";
import { UserContext } from "./utils";
declare type BusinessConfigClientConfig = {

@@ -33,2 +33,7 @@ baseUrl: string;

};
export declare type PostPaymentSettingsQueryParams = {
locationId: string;
terminalId: string;
configuration: PaymentSettingDTO;
};
export declare type GetLocationPreviewsQueryParams = {

@@ -75,2 +80,3 @@ locationIds?: string[];

getPaymentSettings(ctx: UserContext, params: GetPaymentSettingsQueryParams): Promise<PaymentSettingDTO>;
postPaymentSettings(ctx: UserContext, params: PostPaymentSettingsQueryParams): Promise<void>;
/** @deprecated in favor of getSchematizedLayouts **/

@@ -77,0 +83,0 @@ getSchematized(ctx: UserContext, params?: GetSchematizedQueryParams): Promise<SchematizedLayoutDTO>;

@@ -213,2 +213,17 @@ "use strict";

}
postPaymentSettings(ctx, params) {
return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default.request({
baseURL: this.config.baseUrl,
method: "POST",
url: "/payment/setting",
headers: this.prepareHeaders(ctx),
params: {
locationId: params.locationId,
terminalId: params.terminalId,
},
data: params.configuration,
});
});
}
/** @deprecated in favor of getSchematizedLayouts **/

@@ -215,0 +230,0 @@ getSchematized(ctx, params) {

{
"name": "@figuredev/business-config-sdk",
"version": "0.14.3",
"license": "ISC",
"files": [
"lib/*"
],
"main": "lib/index.js",
"dependencies": {
"axios": "^0.21.1"
},
"devDependencies": {
"typescript": "^4.3.5"
},
"scripts": {
"prepublish": "yarn build",
"build": "rm -rf lib && tsc"
}
"name": "@figuredev/business-config-sdk",
"version": "0.14.5",
"license": "ISC",
"files": [
"lib/*"
],
"main": "lib/index.js",
"dependencies": {
"axios": "^0.21.1"
},
"devDependencies": {
"typescript": "^4.3.5"
},
"scripts": {
"prepublish": "yarn build",
"build": "rm -rf lib && tsc"
}
}

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