UNPKG

react-native-iap

Version:

React Native In-App Purchases module for iOS and Android using Nitro

103 lines (101 loc) 4.5 kB
"use strict"; // ============================================================================ // AUTO-GENERATED TYPES — DO NOT EDIT DIRECTLY // Run `npm run generate` after updating any *.graphql schema file. // ============================================================================ export let ErrorCode = /*#__PURE__*/function (ErrorCode) { ErrorCode["ActivityUnavailable"] = "ACTIVITY_UNAVAILABLE"; ErrorCode["AlreadyOwned"] = "ALREADY_OWNED"; ErrorCode["AlreadyPrepared"] = "ALREADY_PREPARED"; ErrorCode["BillingResponseJsonParseError"] = "BILLING_RESPONSE_JSON_PARSE_ERROR"; ErrorCode["BillingUnavailable"] = "BILLING_UNAVAILABLE"; ErrorCode["ConnectionClosed"] = "CONNECTION_CLOSED"; ErrorCode["DeferredPayment"] = "DEFERRED_PAYMENT"; ErrorCode["DeveloperError"] = "DEVELOPER_ERROR"; ErrorCode["EmptySkuList"] = "EMPTY_SKU_LIST"; ErrorCode["FeatureNotSupported"] = "FEATURE_NOT_SUPPORTED"; ErrorCode["IapNotAvailable"] = "IAP_NOT_AVAILABLE"; ErrorCode["InitConnection"] = "INIT_CONNECTION"; ErrorCode["Interrupted"] = "INTERRUPTED"; ErrorCode["ItemNotOwned"] = "ITEM_NOT_OWNED"; ErrorCode["ItemUnavailable"] = "ITEM_UNAVAILABLE"; ErrorCode["NetworkError"] = "NETWORK_ERROR"; ErrorCode["NotEnded"] = "NOT_ENDED"; ErrorCode["NotPrepared"] = "NOT_PREPARED"; ErrorCode["Pending"] = "PENDING"; ErrorCode["PurchaseError"] = "PURCHASE_ERROR"; ErrorCode["QueryProduct"] = "QUERY_PRODUCT"; ErrorCode["ReceiptFailed"] = "RECEIPT_FAILED"; ErrorCode["ReceiptFinished"] = "RECEIPT_FINISHED"; ErrorCode["ReceiptFinishedFailed"] = "RECEIPT_FINISHED_FAILED"; ErrorCode["RemoteError"] = "REMOTE_ERROR"; ErrorCode["ServiceDisconnected"] = "SERVICE_DISCONNECTED"; ErrorCode["ServiceError"] = "SERVICE_ERROR"; ErrorCode["SkuNotFound"] = "SKU_NOT_FOUND"; ErrorCode["SkuOfferMismatch"] = "SKU_OFFER_MISMATCH"; ErrorCode["SyncError"] = "SYNC_ERROR"; ErrorCode["TransactionValidationFailed"] = "TRANSACTION_VALIDATION_FAILED"; ErrorCode["Unknown"] = "UNKNOWN"; ErrorCode["UserCancelled"] = "USER_CANCELLED"; ErrorCode["UserError"] = "USER_ERROR"; return ErrorCode; }({}); export let IapEvent = /*#__PURE__*/function (IapEvent) { IapEvent["PromotedProductIos"] = "PROMOTED_PRODUCT_IOS"; IapEvent["PurchaseError"] = "PURCHASE_ERROR"; IapEvent["PurchaseUpdated"] = "PURCHASE_UPDATED"; return IapEvent; }({}); export let PaymentModeIOS = /*#__PURE__*/function (PaymentModeIOS) { PaymentModeIOS["Empty"] = "EMPTY"; PaymentModeIOS["FreeTrial"] = "FREE_TRIAL"; PaymentModeIOS["PayAsYouGo"] = "PAY_AS_YOU_GO"; PaymentModeIOS["PayUpFront"] = "PAY_UP_FRONT"; return PaymentModeIOS; }({}); export let Platform = /*#__PURE__*/function (Platform) { Platform["Android"] = "ANDROID"; Platform["Ios"] = "IOS"; return Platform; }({}); export let ProductQueryType = /*#__PURE__*/function (ProductQueryType) { ProductQueryType["All"] = "ALL"; ProductQueryType["InApp"] = "IN_APP"; ProductQueryType["Subs"] = "SUBS"; return ProductQueryType; }({}); export let ProductType = /*#__PURE__*/function (ProductType) { ProductType["InApp"] = "IN_APP"; ProductType["Subs"] = "SUBS"; return ProductType; }({}); export let ProductTypeIOS = /*#__PURE__*/function (ProductTypeIOS) { ProductTypeIOS["AutoRenewableSubscription"] = "AUTO_RENEWABLE_SUBSCRIPTION"; ProductTypeIOS["Consumable"] = "CONSUMABLE"; ProductTypeIOS["NonConsumable"] = "NON_CONSUMABLE"; ProductTypeIOS["NonRenewingSubscription"] = "NON_RENEWING_SUBSCRIPTION"; return ProductTypeIOS; }({}); export let PurchaseState = /*#__PURE__*/function (PurchaseState) { PurchaseState["Deferred"] = "DEFERRED"; PurchaseState["Failed"] = "FAILED"; PurchaseState["Pending"] = "PENDING"; PurchaseState["Purchased"] = "PURCHASED"; PurchaseState["Restored"] = "RESTORED"; PurchaseState["Unknown"] = "UNKNOWN"; return PurchaseState; }({}); export let SubscriptionOfferTypeIOS = /*#__PURE__*/function (SubscriptionOfferTypeIOS) { SubscriptionOfferTypeIOS["Introductory"] = "INTRODUCTORY"; SubscriptionOfferTypeIOS["Promotional"] = "PROMOTIONAL"; return SubscriptionOfferTypeIOS; }({}); export let SubscriptionPeriodIOS = /*#__PURE__*/function (SubscriptionPeriodIOS) { SubscriptionPeriodIOS["Day"] = "DAY"; SubscriptionPeriodIOS["Empty"] = "EMPTY"; SubscriptionPeriodIOS["Month"] = "MONTH"; SubscriptionPeriodIOS["Week"] = "WEEK"; SubscriptionPeriodIOS["Year"] = "YEAR"; return SubscriptionPeriodIOS; }({}); //# sourceMappingURL=types.js.map