prices-as-code
Version:
Prices as Code (PaC) - Define your product pricing schemas with type-safe definitions
29 lines (28 loc) • 1.2 kB
TypeScript
import { PaCOptions, SyncResult, PullResult, Config, GenerateOptions } from './types.js';
/**
* Prices as Code (PaC) - Main entry point
* Synchronize products and prices defined in TypeScript or YAML to multiple providers
*/
export declare function pac(options?: Partial<PaCOptions>): Promise<SyncResult>;
export declare namespace pac {
var pull: typeof import("./index.js").pull;
var generate: typeof import("./index.js").generate;
var pullFromProviders: typeof import("./core.js").pullFromProviders;
var loadEnvironment: typeof import("./core.js").loadEnvironment;
var generateTemplate: typeof import("./core.js").generateTemplate;
}
/**
* Prices as Code (PaC) - Pull mode entry point
* Pull products and prices from providers into a local configuration file
*/
export declare function pull(options?: Partial<PaCOptions>): Promise<PullResult>;
/**
* Prices as Code (PaC) - Generate mode entry point
* Generate a template pricing structure
*/
export declare function generate(options: Partial<GenerateOptions>): Promise<Config>;
export * from './types.js';
export * from './loader.js';
export * from './core.js';
export * from './providers/index.js';
export default pac;