UNPKG

@paritydeals/node-sdk

Version:

Node.js SDK for interacting with the ParityDeals API.

62 lines 2.58 kB
"use strict"; // src/constants.ts Object.defineProperty(exports, "__esModule", { value: true }); exports.SUBSCRIPTION_MODULE_PREFIX = exports.CUSTOMERS_MODULE_PREFIX = exports.ENTITLEMENTS_MODULE_PREFIX = exports.CHECKOUT_MODULE_PREFIX = exports.REPORT_MODULE_PREFIX = exports.PROBATION_BEHAVIOURS = exports.CANCELLATION_TYPES = exports.CHARGE_PERIOD_CHOICES = exports.BEHAVIOUR_CHOICES = exports.SANDBOX_EDGE_API_URL = exports.SANDBOX_API_URL = exports.EDGE_API_URL = exports.DEFAULT_TIMEOUT_MS = exports.API_BASE_PATH_PREFIX = exports.DEFAULT_API_VERSION = exports.DEFAULT_API_URL = void 0; /** Default base URL for the ParityDeals API. */ exports.DEFAULT_API_URL = "https://api.paritydeals.com"; /** Default API version. */ exports.DEFAULT_API_VERSION = "v1"; /** Fixed base path prefix for all API calls (e.g., /api). */ exports.API_BASE_PATH_PREFIX = "/api"; /** Default timeout for API requests in milliseconds. */ exports.DEFAULT_TIMEOUT_MS = 10000; // 10 seconds /** Base URL for Edge services like the Entitlements API. */ exports.EDGE_API_URL = "https://edge.api.paritydeals.com"; exports.SANDBOX_API_URL = "https://sandboxapi.paritydeals.com"; exports.SANDBOX_EDGE_API_URL = "https://edge.sandboxapi.paritydeals.com"; /** * Behaviour choices for usage reporting. */ exports.BEHAVIOUR_CHOICES = { SET: "SET", DELTA: "DELTA", }; /** * Charge period choices for subscriptions and checkouts. */ exports.CHARGE_PERIOD_CHOICES = { ONE_TIME: "ONE_TIME", MONTHLY: "MONTHLY", YEARLY: "YEARLY", WEEKLY: "WEEKLY", DAILY: "DAILY", THREE_MONTHS: "THREE_MONTHS", SIX_MONTHS: "SIX_MONTHS", }; /** * Cancellation types for subscriptions. */ exports.CANCELLATION_TYPES = { IMMEDIATE: "IMMEDIATE", CURRENT_PERIOD_ENDS: "CURRENT_PERIOD_ENDS", SPECIFIC_DATE: "SPECIFIC_DATE", }; /** * Probation behaviour types for subscription updates. */ exports.PROBATION_BEHAVIOURS = { IMMEDIATE_CHARGE: "IMMEDIATE_CHARGE", NEXT_BILLING_CYCLE: "NEXT_BILLING_CYCLE", PRO_RATA: "PRO_RATA", }; /** Module path prefix for reporting endpoints. */ exports.REPORT_MODULE_PREFIX = "/report"; /** Module path prefix for checkout endpoints. */ exports.CHECKOUT_MODULE_PREFIX = "/checkout"; /** Module path prefix for entitlements endpoints. */ exports.ENTITLEMENTS_MODULE_PREFIX = "/entitlements"; /** Module path prefix for customer endpoints. */ exports.CUSTOMERS_MODULE_PREFIX = "/customers"; /** Module path prefix for subscription endpoints. */ exports.SUBSCRIPTION_MODULE_PREFIX = "/subscriptions"; //# sourceMappingURL=constants.js.map