a0-purchases
Version:
Lightweight subscription management for AI apps with auto-detecting providers
77 lines • 2.58 kB
JavaScript
/**
* Minimal RevenueCat types for a0-purchases
*
* These types are adapted from @revenuecat/purchases-typescript-internal
* Copyright (c) RevenueCat Inc. - https://revenuecat.com
*
* We include only the essential types needed for our a0-purchases library.
* For the full RevenueCat SDK and complete type definitions, please use the
* official RevenueCat packages: https://github.com/RevenueCat/purchases-typescript
*/
/**
* Enum indicating possible package types.
* @public
*/
export var PACKAGE_TYPE;
(function (PACKAGE_TYPE) {
/**
* A package that was defined with a custom identifier.
*/
PACKAGE_TYPE["UNKNOWN"] = "UNKNOWN";
/**
* A package that was defined with a custom identifier.
*/
PACKAGE_TYPE["CUSTOM"] = "CUSTOM";
/**
* A package configured with the predefined lifetime identifier.
*/
PACKAGE_TYPE["LIFETIME"] = "LIFETIME";
/**
* A package configured with the predefined annual identifier.
*/
PACKAGE_TYPE["ANNUAL"] = "ANNUAL";
/**
* A package configured with the predefined six month identifier.
*/
PACKAGE_TYPE["SIX_MONTH"] = "SIX_MONTH";
/**
* A package configured with the predefined three month identifier.
*/
PACKAGE_TYPE["THREE_MONTH"] = "THREE_MONTH";
/**
* A package configured with the predefined two month identifier.
*/
PACKAGE_TYPE["TWO_MONTH"] = "TWO_MONTH";
/**
* A package configured with the predefined monthly identifier.
*/
PACKAGE_TYPE["MONTHLY"] = "MONTHLY";
/**
* A package configured with the predefined weekly identifier.
*/
PACKAGE_TYPE["WEEKLY"] = "WEEKLY";
})(PACKAGE_TYPE || (PACKAGE_TYPE = {}));
/**
* Product category enum.
* @public
*/
export var PRODUCT_CATEGORY;
(function (PRODUCT_CATEGORY) {
PRODUCT_CATEGORY["NON_SUBSCRIPTION"] = "NON_SUBSCRIPTION";
PRODUCT_CATEGORY["SUBSCRIPTION"] = "SUBSCRIPTION";
PRODUCT_CATEGORY["UNKNOWN"] = "UNKNOWN";
})(PRODUCT_CATEGORY || (PRODUCT_CATEGORY = {}));
/**
* Product type enum.
* @public
*/
export var PRODUCT_TYPE;
(function (PRODUCT_TYPE) {
PRODUCT_TYPE["CONSUMABLE"] = "CONSUMABLE";
PRODUCT_TYPE["NON_CONSUMABLE"] = "NON_CONSUMABLE";
PRODUCT_TYPE["NON_RENEWABLE_SUBSCRIPTION"] = "NON_RENEWABLE_SUBSCRIPTION";
PRODUCT_TYPE["AUTO_RENEWABLE_SUBSCRIPTION"] = "AUTO_RENEWABLE_SUBSCRIPTION";
PRODUCT_TYPE["PREPAID_SUBSCRIPTION"] = "PREPAID_SUBSCRIPTION";
PRODUCT_TYPE["UNKNOWN"] = "UNKNOWN";
})(PRODUCT_TYPE || (PRODUCT_TYPE = {}));
//# sourceMappingURL=revenuecat-types.js.map