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

@figuredev/orders-sdk

Package Overview
Dependencies
Maintainers
9
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/orders-sdk - npm Package Compare versions

Comparing version 0.12.104 to 0.12.105

CHANGELOG.md

4

lib/index.d.ts
import { Maybe } from "@figurepos/fgr-lib-backend/lib/types";
import { InventoryInfoDTO } from "./inventory";
import { LoyaltyProgramDTO } from "./loyaltyPrograms";
import { LoyaltyProgramDTO, LoyaltyProgramTransactionDTO } from "./loyaltyPrograms";
import { OrderDTO, OrderPreviewDTO } from "./order";

@@ -45,2 +45,4 @@ import { OrderInputDTO } from "./orderInput";

getLoyaltyPrograms(ctx: UserContext): Promise<LoyaltyProgramDTO[]>;
getLoyaltyProgramTransactionsByTransactionIds(ctx: UserContext, transactionIds: string[]): Promise<LoyaltyProgramTransactionDTO[]>;
getLoyaltyProgramTransactionsByCustomerLoyaltyProgramId(ctx: UserContext, customerLoyaltyProgramId: string): Promise<LoyaltyProgramTransactionDTO[]>;
getReportPreparationTimeByItem(ctx: UserContext, params: {

@@ -47,0 +49,0 @@ locationIds: string[];

@@ -119,6 +119,18 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const { data } = yield this.get(ctx, "/loyalty-programs");
const { data } = yield this.get(ctx, "/loyalty-program");
return data;
});
}
getLoyaltyProgramTransactionsByTransactionIds(ctx, transactionIds) {
return __awaiter(this, void 0, void 0, function* () {
const { data } = yield this.get(ctx, "/loyalty-program/transaction", { transactionIds: transactionIds });
return data;
});
}
getLoyaltyProgramTransactionsByCustomerLoyaltyProgramId(ctx, customerLoyaltyProgramId) {
return __awaiter(this, void 0, void 0, function* () {
const { data } = yield this.get(ctx, "/loyalty-program/transaction", { customerLoyaltyProgramId: customerLoyaltyProgramId });
return data;
});
}
getReportPreparationTimeByItem(ctx, params) {

@@ -125,0 +137,0 @@ return __awaiter(this, void 0, void 0, function* () {

@@ -8,1 +8,13 @@ import { IsoDateTime, Maybe } from "./types";

};
export declare type LoyaltyProgramTransactionDTO = {
id: string;
accountId: string;
amount: number;
customerLoyaltyProgramId: string;
transactionId: Maybe<string>;
state: Maybe<LoyaltyProgramTransactionStateDTO>;
};
export declare enum LoyaltyProgramTransactionStateDTO {
Pending = "pending",
Settled = "settled"
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LoyaltyProgramTransactionStateDTO = void 0;
var LoyaltyProgramTransactionStateDTO;
(function (LoyaltyProgramTransactionStateDTO) {
LoyaltyProgramTransactionStateDTO["Pending"] = "pending";
LoyaltyProgramTransactionStateDTO["Settled"] = "settled";
})(LoyaltyProgramTransactionStateDTO = exports.LoyaltyProgramTransactionStateDTO || (exports.LoyaltyProgramTransactionStateDTO = {}));
//# sourceMappingURL=loyaltyPrograms.js.map
{
"name": "@figuredev/orders-sdk",
"version": "0.12.104",
"version": "0.12.105",
"license": "ISC",

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

Sorry, the diff of this file is not supported yet

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