pricing4ts
Version:
 Pricing4TS is a TypeScript-based toolkit designed to enhance the server-side functionality of a pricing-driven SaaS by enabling the seamless integration of pricing plans into the application logic. T
49 lines (48 loc) • 4.2 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NodePricingDrivenFeaturesProvider = exports.PricingContext = exports.PricingAware = exports.PricingJwtUtils = exports.evaluateFeature = exports.generateUserPricingToken = exports.checkFeature = exports.writePricingToYaml = exports.retrievePricingFromText = exports.retrievePricingFromPath = exports.PricingService = exports.PricingOperation = exports.saveDZNfile = exports.pricing2DZN = exports.PricingContextManager = void 0;
var pricing_service_1 = __importDefault(require("./services/pricing.service"));
exports.PricingService = pricing_service_1.default;
var PricingContextManager_1 = require("./configuration/PricingContextManager");
Object.defineProperty(exports, "PricingContextManager", { enumerable: true, get: function () { return PricingContextManager_1.PricingContextManager; } });
var pricing_dzn_exporter_1 = require("./utils/dzn-exporter/pricing-dzn-exporter");
Object.defineProperty(exports, "pricing2DZN", { enumerable: true, get: function () { return pricing_dzn_exporter_1.pricing2DZN; } });
var dzn_exporter_1 = require("./utils/dzn-exporter");
Object.defineProperty(exports, "saveDZNfile", { enumerable: true, get: function () { return dzn_exporter_1.saveDZNfile; } });
var minizinc_1 = require("./models/minizinc/minizinc");
Object.defineProperty(exports, "PricingOperation", { enumerable: true, get: function () { return minizinc_1.PricingOperation; } });
var yaml_utils_1 = require("./utils/yaml-utils");
Object.defineProperty(exports, "retrievePricingFromPath", { enumerable: true, get: function () { return yaml_utils_1.retrievePricingFromPath; } });
Object.defineProperty(exports, "retrievePricingFromText", { enumerable: true, get: function () { return yaml_utils_1.retrievePricingFromText; } });
Object.defineProperty(exports, "writePricingToYaml", { enumerable: true, get: function () { return yaml_utils_1.writePricingToYaml; } });
var feature_checker_1 = require("./middleware/feature-checker");
Object.defineProperty(exports, "checkFeature", { enumerable: true, get: function () { return feature_checker_1.checkFeature; } });
var pricing_evaluator_1 = require("./utils/pricing-evaluator");
Object.defineProperty(exports, "generateUserPricingToken", { enumerable: true, get: function () { return pricing_evaluator_1.generateUserPricingToken; } });
Object.defineProperty(exports, "evaluateFeature", { enumerable: true, get: function () { return pricing_evaluator_1.evaluateFeature; } });
var pricing_jwt_utils_1 = require("./utils/pricing-jwt-utils");
Object.defineProperty(exports, "PricingJwtUtils", { enumerable: true, get: function () { return pricing_jwt_utils_1.PricingJwtUtils; } });
var PricingAware_1 = require("./decorators/PricingAware");
Object.defineProperty(exports, "PricingAware", { enumerable: true, get: function () { return PricingAware_1.PricingAware; } });
var PricingContext_1 = require("./configuration/PricingContext");
Object.defineProperty(exports, "PricingContext", { enumerable: true, get: function () { return PricingContext_1.PricingContext; } });
var OpenFeatureProvider_1 = require("./provider/OpenFeatureProvider");
Object.defineProperty(exports, "NodePricingDrivenFeaturesProvider", { enumerable: true, get: function () { return OpenFeatureProvider_1.NodePricingDrivenFeaturesProvider; } });
__exportStar(require("./types"), exports);