{"version":3,"sources":["../../src/shared/shared.actions.ts","../../src/shared/shared.types.ts","../../src/modules/checkout/checkout.action.ts","../../src/modules/customer/customer.action.ts","../../src/modules/discount/discount.action.ts","../../src/modules/file/file.action.ts","../../src/modules/licenseKey/licenseKey.action.ts","../../src/modules/licenseKeyInstance/licenseKeyInstance.action.ts","../../src/modules/order/order.action.ts","../../src/modules/orderItem/orderItem.action.ts","../../src/modules/product/product.action.ts","../../src/modules/store/store.action.ts","../../src/modules/subscription/subscription.action.ts","../../src/modules/subscriptionInvoice/subscriptionInvoice.action.ts","../../src/modules/user/user.action.ts","../../src/modules/variant/variant.action.ts"],"sourcesContent":["import { fetch } from \"undici\";\nimport { join } from \"node:path\";\n\nimport { LemonsqueezyDataType } from \"~/shared\";\n\nimport type {\n  BaseLemonsqueezyResponse,\n  LemonsqueezyOptions,\n  PaginatedBaseLemonsqueezyResponse,\n} from \"~/shared\";\n\nexport async function requestLemonSqueeze<\n  TResponse extends\n    | BaseLemonsqueezyResponse<any>\n    | PaginatedBaseLemonsqueezyResponse<any>,\n  TData extends Record<string, any> = Record<string, any>\n>({\n  apiKey,\n  apiVersion = \"v1\",\n  baseUrl = \"https://api.lemonsqueezy.com\",\n  data,\n  headers,\n  include,\n  method = \"GET\",\n  page,\n  params,\n  path,\n}: LemonsqueezyOptions<TData>): Promise<TResponse> {\n  try {\n    const url = new URL(join(apiVersion, path), baseUrl);\n\n    if (include)\n      url.searchParams.append(\n        \"include\",\n        include.map((i) => LemonsqueezyDataType[i]).join(\",\")\n      );\n\n    if (page) url.searchParams.append(\"page\", page.toString());\n\n    if (params && method === \"GET\")\n      Object.entries(params).forEach(([key, value]) =>\n        url.searchParams.append(key, value)\n      );\n\n    const response = await fetch(url.href, {\n      headers: {\n        Accept: \"application/vnd.api+json\",\n        Authorization: `Bearer ${apiKey}`,\n        \"Content-Type\": \"application/vnd.api+json\",\n        ...headers,\n      },\n      method,\n      ...(data && method !== \"GET\"\n        ? {\n            body: JSON.stringify(data),\n          }\n        : {}),\n    });\n    if (!response.ok) {\n      const errorsJson = (await response.json()) as {\n        errors: Array<{\n          detail: string;\n          status: number;\n          title: string;\n        }>;\n      };\n      throw {\n        status: response.status,\n        message: response.statusText,\n        errors: errorsJson.errors,\n      };\n    }\n\n    const json = (await response.json()) as TResponse;\n    if (json.errors && json.errors.length > 0) throw json;\n\n    return json;\n  } catch (error) {\n    throw error;\n  }\n}\n","import type { RequestInit } from \"undici\";\n\nexport interface SharedModuleOptions {\n  apiKey: string;\n  page?: number;\n  include?: Array<keyof typeof LemonsqueezyDataType>;\n}\n\nexport interface SharedLemonsqueezyOptions {\n  apiVersion?: \"v1\";\n  baseUrl?: string;\n}\n\nexport interface LemonsqueezyOptions<\n  TData extends Record<string, any> = Record<string, any>\n> extends Omit<RequestInit, \"body\">,\n    SharedLemonsqueezyOptions,\n    SharedModuleOptions {\n  data?: TData;\n  params?: Record<string, any>;\n  method?:\n    | \"CONNECT\"\n    | \"DELETE\"\n    | \"GET\"\n    | \"HEAD\"\n    | \"OPTIONS\"\n    | \"PATCH\"\n    | \"POST\"\n    | \"PUT\"\n    | \"TRACE\";\n  path: string;\n}\n\nexport enum LemonsqueezyDataType {\n  checkouts = \"checkouts\",\n  customers = \"customers\",\n  discounts = \"discounts\",\n  files = \"files\",\n  license_key_instances = \"license-key-instances\",\n  license_keys = \"license-keys\",\n  order_items = \"order-items\",\n  orders = \"orders\",\n  products = \"products\",\n  stores = \"stores\",\n  subscriptions = \"subscriptions\",\n  subscription_invoices = \"subscription-invoices\",\n  users = \"users\",\n  variants = \"variants\",\n}\n\nexport interface BaseLemonsqueezyResponse<\n  TData,\n  TLinks = {\n    self: string;\n  }\n> {\n  data: TData;\n  errors?: Array<{\n    detail: string;\n    status: string | number;\n    title: string;\n  }>;\n  jsonapi: {\n    version: string;\n  };\n  links: TLinks;\n}\n\nexport interface PaginatedBaseLemonsqueezyResponse<\n  TData,\n  TLinks = {\n    first: string;\n    last: string;\n  }\n> extends BaseLemonsqueezyResponse<TData, TLinks> {\n  meta: {\n    page: {\n      currentPage: number;\n      from: number;\n      lastPage: number;\n      perPage: number;\n      to: number;\n      total: number;\n    };\n  };\n}\n","import { LemonsqueezyDataType, requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  CreateCheckoutBody,\n  CreateCheckoutOptions,\n  CreateCheckoutResult,\n  ListAllCheckoutsOptions,\n  ListAllCheckoutsResult,\n  RetrieveCheckoutOptions,\n  RetrieveCheckoutResult,\n} from \"./checkout.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * Create checkout\n *\n * @description Create a custom checkout. Use this endpoint to create a unique checkout URL for a specific variant\n *\n * @docs https://docs.lemonsqueezy.com/api/checkouts#create-a-checkout\n *\n * @returns A checkout object\n */\nexport async function createCheckout(\n  options: CreateCheckoutOptions & Pick<SharedModuleOptions, \"apiKey\">\n): Promise<CreateCheckoutResult> {\n  const {\n    checkout_data,\n    checkout_options,\n    custom_price,\n    expires_at,\n    product_options,\n    store,\n    variant,\n    ...rest\n  } = options;\n\n  return requestLemonSqueeze<CreateCheckoutResult, CreateCheckoutBody>({\n    data: {\n      data: {\n        attributes: {\n          checkout_data,\n          checkout_options,\n          custom_price,\n          expires_at,\n          product_options,\n        },\n        relationships: {\n          store: {\n            data: {\n              id: store,\n              type: LemonsqueezyDataType.stores,\n            },\n          },\n          variant: {\n            data: {\n              id: variant,\n              type: LemonsqueezyDataType.variants,\n            },\n          },\n        },\n        type: LemonsqueezyDataType.checkouts,\n      },\n    },\n    path: \"/checkouts\",\n    method: \"POST\",\n    ...rest,\n  });\n}\n\n/**\n * List all checkouts\n *\n * @description Returns a paginated list of checkouts\n *\n * @docs https://docs.lemonsqueezy.com/api/checkouts#list-all-checkouts\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of checkout objects ordered by `created_at` (descending)\n */\nexport async function listAllCheckouts(\n  options: ListAllCheckoutsOptions & SharedModuleOptions\n): Promise<ListAllCheckoutsResult> {\n  const { storeId, variantId, ...rest } = options;\n\n  return requestLemonSqueeze<ListAllCheckoutsResult>({\n    params: {\n      ...(storeId ? { store_id: storeId } : {}),\n      ...(variantId ? { variant_id: variantId } : {}),\n    },\n    path: \"/checkouts\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve checkout\n *\n * @description Retrieves the checkout with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/checkouts#retrieve-a-checkout\n *\n * @param {String} options.id - The ID of the checkout to retrieve\n *\n * @returns A checkout object\n */\nexport async function retrieveCheckout(\n  options: RetrieveCheckoutOptions & SharedModuleOptions\n): Promise<RetrieveCheckoutResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveCheckoutResult>({\n    path: `/checkouts/${id}`,\n    ...rest,\n  });\n}\n","import type {\n  ListAllCustomersOptions,\n  ListAllCustomersResult,\n  RetrieveCustomerOptions,\n  RetrieveCustomerResult,\n} from \"./customer.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\nimport { requestLemonSqueeze } from \"~/shared\";\n\n/**\n * List all customers\n *\n * @description Returns a paginated list of customers\n *\n * @docs https://docs.lemonsqueezy.com/api/customers#list-all-customers\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of customer objects ordered by `created_at` (descending)\n */\nexport async function listAllCustomers(\n  options: ListAllCustomersOptions & SharedModuleOptions\n): Promise<ListAllCustomersResult> {\n  const { storeId, email, ...rest } = options;\n\n  return requestLemonSqueeze<ListAllCustomersResult>({\n    params: {\n      ...(storeId ? { store_id: storeId } : {}),\n      ...(email ? { email: email } : {}),\n    },\n    path: \"/customers\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve customer\n *\n * @description Retrieves the customer with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/customers#retrieve-a-customer\n *\n * @param {String} options.id - The ID of the customer to retrieve\n *\n * @returns A customer object\n */\nexport async function retrieveCustomer(\n  options: RetrieveCustomerOptions & SharedModuleOptions\n): Promise<RetrieveCustomerResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveCustomerResult>({\n    path: `/customers/${id}`,\n    ...rest,\n  });\n}\n","import { requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  ListAllDiscountsOptions,\n  ListAllDiscountsResult,\n  RetrieveDiscountOptions,\n  RetrieveDiscountResult,\n} from \"~/types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * List all discounts\n *\n * @description Returns a paginated list of discounts\n *\n * @docs https://docs.lemonsqueezy.com/api/discounts#list-all-discounts\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of discount objects ordered by `created_at`\n */\nexport async function listAllDiscounts(\n  options: ListAllDiscountsOptions & SharedModuleOptions\n): Promise<ListAllDiscountsResult> {\n  const { storeId, ...rest } = options;\n\n  return await requestLemonSqueeze<ListAllDiscountsResult>({\n    params: {\n      ...(storeId ? { store_id: storeId } : {}),\n    },\n    path: \"/discounts\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve discount\n *\n * @description Retrieves the discount with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/discounts#retrieve-a-discount\n *\n * @param {String} options.id - The ID of the discount to retrieve\n *\n * @returns A discount object\n */\nexport async function retrieveDiscount(\n  options: RetrieveDiscountOptions & SharedModuleOptions\n): Promise<RetrieveDiscountResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveDiscountResult>({\n    path: `/discounts/${id}`,\n    ...rest,\n  });\n}\n","import { requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  ListAllFilesOptions,\n  ListAllFilesResult,\n  RetrieveFileOptions,\n  RetrieveFileResult,\n} from \"./file.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * List all files\n *\n * @description Returns a paginated list of files\n *\n * @docs https://docs.lemonsqueezy.com/api/files#list-all-files\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of file objects ordered by `sort`\n */\nexport async function listAllFiles(\n  options: ListAllFilesOptions & SharedModuleOptions\n): Promise<ListAllFilesResult> {\n  const { variantId, ...rest } = options;\n\n  return requestLemonSqueeze<ListAllFilesResult>({\n    params: {\n      ...(variantId ? { variant_id: variantId } : {}),\n    },\n    path: \"/files\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve file\n *\n * @description Retrieves the file with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/files#retrieve-a-file\n *\n * @param {String} options.id - The ID of the file to retrieve\n *\n * @returns A file object\n */\nexport async function retrieveFile(\n  options: RetrieveFileOptions & SharedModuleOptions\n): Promise<RetrieveFileResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveFileResult>({\n    path: `/files/${id}`,\n    ...rest,\n  });\n}\n","import { requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  ListAllLicenseKeysOptions,\n  ListAllLicenseKeysResult,\n  RetrieveLicenseKeyOptions,\n  RetrieveLicenseKeyResult,\n} from \"./licenseKey.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * List all license keys\n *\n * @description Returns a paginated list of license keys\n *\n * @docs https://docs.lemonsqueezy.com/api/license-keys#list-all-license-keys\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of license key objects ordered by `id`\n */\nexport async function listAllLicenseKeys(\n  options: ListAllLicenseKeysOptions & SharedModuleOptions\n): Promise<ListAllLicenseKeysResult> {\n  const { orderId, orderItemId, productId, storeId, ...rest } = options;\n\n  return requestLemonSqueeze<ListAllLicenseKeysResult>({\n    params: {\n      ...(orderId ? { order_id: orderId } : {}),\n      ...(orderItemId ? { order_item_id: orderItemId } : {}),\n      ...(productId ? { product_id: productId } : {}),\n      ...(storeId ? { store_id: storeId } : {}),\n    },\n    path: \"/license-keys\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve license key\n *\n * @description Retrieves the license key with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/license-keys#retrieve-a-license-key\n *\n * @param {String} options.id - The ID of the license key to retrieve\n *\n * @returns A license key object\n */\nexport async function retrieveLicenseKey(\n  options: RetrieveLicenseKeyOptions & SharedModuleOptions\n): Promise<RetrieveLicenseKeyResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveLicenseKeyResult>({\n    path: `/license-keys/${id}`,\n    ...rest,\n  });\n}\n","import { requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  ListAllLicenseKeyInstancesOptions,\n  ListAllLicenseKeyInstancesResult,\n  RetrieveLicenseKeyInstanceOptions,\n  RetrieveLicenseKeyInstanceResult,\n} from \"./licenseKeyInstance.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * List all license key instances\n *\n * @description Returns a paginated list of license key instances\n *\n * @docs https://docs.lemonsqueezy.com/api/license-key-instances#list-all-license-key-instances\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of license key instance objects ordered by `id`\n */\nexport async function listAllLicenseKeyInstances(\n  options: ListAllLicenseKeyInstancesOptions & SharedModuleOptions\n): Promise<ListAllLicenseKeyInstancesResult> {\n  const { licenseKeyId, ...rest } = options;\n\n  return requestLemonSqueeze<ListAllLicenseKeyInstancesResult>({\n    params: {\n      ...(licenseKeyId ? { license_key_id: licenseKeyId } : {}),\n    },\n    path: \"/license-key-instances\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve license key instance\n *\n * @description Retrieves the license key instance with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/license-key-instances#retrieve-a-license-key-instance\n *\n * @param {String} options.id - The ID of the license key instance to retrieve\n *\n * @returns A license key instance object\n */\nexport async function retrieveLicenseKeyInstance(\n  options: RetrieveLicenseKeyInstanceOptions & SharedModuleOptions\n): Promise<RetrieveLicenseKeyInstanceResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveLicenseKeyInstanceResult>({\n    path: `/license-key-instances/${id}`,\n    ...rest,\n  });\n}\n","import { requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  ListAllOrdersOptions,\n  ListAllOrdersResult,\n  RetrieveOrderOptions,\n  RetrieveOrderResult,\n} from \"./order.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * List all files\n *\n * @description Returns a paginated list of files\n *\n * @docs https://docs.lemonsqueezy.com/api/files#list-all-files\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of file objects ordered by `sort`\n */\nexport async function listAllOrders(\n  options: ListAllOrdersOptions & SharedModuleOptions\n): Promise<ListAllOrdersResult> {\n  const { storeId, userEmail, ...rest } = options;\n\n  return requestLemonSqueeze<ListAllOrdersResult>({\n    params: {\n      ...(storeId ? { store_id: storeId } : {}),\n      ...(userEmail ? { user_email: userEmail } : {}),\n    },\n    path: \"/orders\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve order\n *\n * @description Retrieves the order with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/orders#retrieve-an-order\n *\n * @param {String} options.id - The ID of the order to retrieve\n *\n * @returns A order object\n */\nexport async function retrieveOrder(\n  options: RetrieveOrderOptions & SharedModuleOptions\n): Promise<RetrieveOrderResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveOrderResult>({\n    path: `/orders/${id}`,\n    ...rest,\n  });\n}\n","import { requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  ListAllOrderItemsOptions,\n  ListAllOrderItemsResult,\n  RetrieveOrderItemOptions,\n  RetrieveOrderItemResult,\n} from \"./orderItem.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * List all order items\n *\n * @description Returns a paginated list of order items\n *\n * @docs https://docs.lemonsqueezy.com/api/order-items#list-all-order-items\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of order item objects ordered by `id`\n */\nexport async function listAllOrderItems(\n  options: ListAllOrderItemsOptions & SharedModuleOptions\n): Promise<ListAllOrderItemsResult> {\n  const { orderId, productId, variantId, ...rest } = options;\n\n  return requestLemonSqueeze<ListAllOrderItemsResult>({\n    params: {\n      ...(orderId ? { order_id: orderId } : {}),\n      ...(productId ? { product_id: productId } : {}),\n      ...(variantId ? { variant_id: variantId } : {}),\n    },\n    path: \"/order-items\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve order item\n *\n * @description Retrieves the order item with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/order-items#retrieve-an-order-item\n *\n * @param {String} options.id - The ID of the order item to retrieve\n *\n * @returns A order item object\n */\nexport async function retrieveOrderItem(\n  options: RetrieveOrderItemOptions & SharedModuleOptions\n): Promise<RetrieveOrderItemResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveOrderItemResult>({\n    path: `/order-items/${id}`,\n    ...rest,\n  });\n}\n","import { requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  ListAllProductsOptions,\n  ListAllProductsResult,\n  RetrieveProductOptions,\n  RetrieveProductResult,\n} from \"./product.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * List all products\n *\n * @description Returns a paginated list of products\n *\n * @docs https://docs.lemonsqueezy.com/api/products#list-all-products\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of product objects ordered by `name`\n */\nexport async function listAllProducts(\n  options: ListAllProductsOptions & SharedModuleOptions\n): Promise<ListAllProductsResult> {\n  const { storeId, ...rest } = options;\n\n  return requestLemonSqueeze<ListAllProductsResult>({\n    params: {\n      ...(storeId ? { store_id: storeId } : {}),\n    },\n    path: \"/products\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve product\n *\n * @description Retrieves the product with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/products#retrieve-a-product\n *\n * @param {String} options.id - The ID of the product to retrieve\n *\n * @returns A product object\n */\nexport async function retrieveProduct(\n  options: RetrieveProductOptions & SharedModuleOptions\n): Promise<RetrieveProductResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveProductResult>({\n    path: `/products/${id}`,\n    ...rest,\n  });\n}\n","import { requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  ListAllStoresOptions,\n  ListAllStoresResult,\n  RetrieveStoreOptions,\n  RetrieveStoreResult,\n} from \"./store.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * List all stores\n *\n * @description Returns a paginated list of stores\n *\n * @docs https://docs.lemonsqueezy.com/api/stores#list-all-stores\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of `store` objects ordered by name\n */\nexport async function listAllStores(\n  options: ListAllStoresOptions & SharedModuleOptions\n): Promise<ListAllStoresResult> {\n  return requestLemonSqueeze<ListAllStoresResult>({\n    path: \"/stores\",\n    ...options,\n  });\n}\n\n/**\n * Retrieve store\n *\n * @description Retrieves the store with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/stores#retrieve-a-store\n *\n * @param {String} options.id - The ID of the store to retrieve\n *\n * @returns A store object\n */\nexport async function retrieveStore(\n  options: RetrieveStoreOptions & SharedModuleOptions\n): Promise<RetrieveStoreResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveStoreResult>({\n    path: `/stores/${id}`,\n    ...rest,\n  });\n}\n","import { LemonsqueezyDataType } from \"~/shared\";\nimport { requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  ListAllSubscriptionsOptions,\n  ListAllSubscriptionsResult,\n  RetrieveSubscriptionOptions,\n  RetrieveSubscriptionResult,\n  UpdateSubscriptionOptions,\n  UpdateSubscriptionResult,\n} from \"./subscription.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * List all subscriptions\n *\n * @description Returns a paginated list of subscriptions\n *\n * @docs https://docs.lemonsqueezy.com/api/subscriptions#list-all-subscriptions\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of subscription objects ordered by `created_at` (descending)\n */\nexport async function listAllSubscriptions(\n  options: ListAllSubscriptionsOptions & SharedModuleOptions\n): Promise<ListAllSubscriptionsResult> {\n  const { orderId, orderItemId, productId, storeId, variantId, ...rest } =\n    options;\n\n  return requestLemonSqueeze<ListAllSubscriptionsResult>({\n    params: {\n      ...(orderId ? { order_id: orderId } : {}),\n      ...(orderItemId ? { order_item_id: orderItemId } : {}),\n      ...(productId ? { product_id: productId } : {}),\n      ...(storeId ? { store_id: storeId } : {}),\n      ...(variantId ? { variant_id: variantId } : {}),\n    },\n    path: \"/subscriptions\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve subscription\n *\n * @description Retrieves the subscription with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/subscriptions#retrieve-a-subscription\n *\n * @param {String} options.id - The ID of the subscription to retrieve\n *\n * @returns A subscription object\n */\nexport async function retrieveSubscription(\n  options: RetrieveSubscriptionOptions & SharedModuleOptions\n): Promise<RetrieveSubscriptionResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveSubscriptionResult>({\n    path: `/subscriptions/${id}`,\n    ...rest,\n  });\n}\n\n/**\n * Update subscription\n *\n * @description Update an existing subscription to specific parameters. With this endpoint, you can:\n *\n *  - Upgrade & Downgrade a subscripion to a different Product or Variant\n *  - Change payment pause collection behaviour\n *  - Update the billing date for when payments are collected\n *\n * When changing the plan of a subscription, we prorate the charge for the next billing cycle.\n * For example, if a customer buys your product on April 1st for $50, they'll be charged $50 immediately.\n * If on April 15th they upgrade to your $100 product, on May 1st they'll be charged $125.\n * This is made up of $100 for renewing, $50 of used time on your upgraded $100 plan from April 15th - May 1st, and then a credited -$25 for unused time on your $50 plan.\n *\n * If downgrading a subscription, we'll issue a credit which is then applied on the next invoice.\n *\n * Changing a subscription plan may change the billing date or charge immediately if:\n *\n *  - The variant has a different billing cycle (from monthly to yearly, etc)\n *  - The subscription is no longer free, or is now free\n *  - A trial starts or ends\n *\n * @docs https://docs.lemonsqueezy.com/api/subscriptions#update-a-subscription\n *\n * @param {String} options.id - The ID of the subscription to retrieve\n *\n * @returns A subscription object\n */\nexport async function updateSubscription(\n  options: UpdateSubscriptionOptions & SharedModuleOptions\n): Promise<UpdateSubscriptionResult> {\n  const { billingAnchor, cancelled, id, pause, productId, variantId, invoiceImmediately, disableProrations,  ...rest } =\n    options;\n\n  return requestLemonSqueeze<UpdateSubscriptionResult>({\n    data: {\n      data: {\n        attributes: {\n          billing_anchor: billingAnchor,\n          cancelled,\n          pause,\n          product_id: productId,\n          variant_id: variantId,\n          invoice_immediately: invoiceImmediately,\n          disable_prorations: disableProrations\n        },\n        id,\n        type: LemonsqueezyDataType.subscriptions,\n      },\n    },\n    path: `/subscriptions/${id}`,\n    method: \"PATCH\",\n    ...rest,\n  });\n}\n","import { requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  ListAllSubscriptionInvoicesOptions,\n  ListAllSubscriptionInvoicesResult,\n  RetrieveSubscriptionInvoiceOptions,\n  RetrieveSubscriptionInvoiceResult,\n} from \"./subscriptionInvoice.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * List all subscription invoices\n *\n * @description Returns a paginated list of subscriptions\n *\n * @docs https://docs.lemonsqueezy.com/api/subscription-invoices#list-all-subscription-invoices\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of subscription invoice objects.\n */\nexport async function listAllSubscriptionInvoices(\n  options: ListAllSubscriptionInvoicesOptions & SharedModuleOptions\n): Promise<ListAllSubscriptionInvoicesResult> {\n  const { refunded, status, storeId, ...rest } = options;\n\n  return requestLemonSqueeze<ListAllSubscriptionInvoicesResult>({\n    params: {\n      ...(refunded ? { refunded } : {}),\n      ...(status ? { status } : {}),\n      ...(storeId ? { store_id: storeId } : {}),\n    },\n    path: \"/subscription-invoices\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve subscription invoice\n *\n * @description Retrieves a subscription invoice with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/subscription-invoices#retrieve-a-subscription-invoice\n *\n * @param {String} options.id - The ID of the subscription invoice to retrieve\n *\n * @returns A subscription invoice object\n */\nexport async function retrieveSubscriptionInvoice(\n  options: RetrieveSubscriptionInvoiceOptions & SharedModuleOptions\n): Promise<RetrieveSubscriptionInvoiceResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveSubscriptionInvoiceResult>({\n    path: `/subscription-invoices/${id}`,\n    ...rest,\n  });\n}\n","import { requestLemonSqueeze } from \"~/shared\";\n\nimport type { GetUserOptions, GetUserResult } from \"./user.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * Get User\n *\n * @description Retrieves the currently authenticated user\n *\n * @docs https://docs.lemonsqueezy.com/api/users#retrieve-the-authenticated-user\n *\n * @param {Object} [options]\n *\n * @returns A user object\n */\nexport async function getUser(\n  options: GetUserOptions & SharedModuleOptions\n): Promise<GetUserResult> {\n  return requestLemonSqueeze<GetUserResult>({\n    path: \"/users/me\",\n    ...options,\n  });\n}\n","import { requestLemonSqueeze } from \"~/shared\";\n\nimport type {\n  ListAllVariantsOptions,\n  ListAllVariantsResult,\n  RetrieveVariantOptions,\n  RetrieveVariantResult,\n} from \"./variant.types\";\nimport type { SharedModuleOptions } from \"~/shared\";\n\n/**\n * List all variants\n *\n * @description Returns a paginated list of variants\n *\n * @docs https://docs.lemonsqueezy.com/api/variants#list-all-variants\n *\n * @param {Object} [options]\n *\n * @returns Returns a paginated list of variant objects ordered by sort\n */\nexport async function listAllVariants(\n  options: ListAllVariantsOptions & SharedModuleOptions\n): Promise<ListAllVariantsResult> {\n  const { productId, ...rest } = options;\n\n  return requestLemonSqueeze<ListAllVariantsResult>({\n    params: {\n      ...(productId ? { product_id: productId } : {}),\n    },\n    path: \"/variants\",\n    ...rest,\n  });\n}\n\n/**\n * Retrieve variant\n *\n * @description Retrieves the variant with the given ID\n *\n * @docs https://docs.lemonsqueezy.com/api/variants#retrieve-a-variant\n *\n * @param {String} options.id - The ID of the variant to retrieve\n *\n * @returns A variant object\n */\nexport async function retrieveVariant(\n  options: RetrieveVariantOptions & SharedModuleOptions\n): Promise<RetrieveVariantResult> {\n  const { id, ...rest } = options;\n\n  return requestLemonSqueeze<RetrieveVariantResult>({\n    path: `/variants/${id}`,\n    ...rest,\n  });\n}\n"],"mappings":"AAAA,OA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AC4C,CAC5C,GAAM,CAAE,GAAAO,EAAI,GAAGH,CAAK,EAAIJ,EAExB,OAAOK,EAAuD,CAC5D,KAAM,0BAA0BE,CAAE,GAClC,GAAGH,CACL,CAAC,CACH,CCzCA,eAAsBI,EACpBC,EACwB,CACxB,OAAOC,EAAmC,CACxC,KAAM,YACN,GAAGD,CACL,CAAC,CACH,CCFA,eAAsBE,EACpBC,EACgC,CAChC,GAAM,CAAE,UAAAC,EAAW,GAAGC,CAAK,EAAIF,EAE/B,OAAOG,EAA2C,CAChD,OAAQ,CACN,GAAIF,EAAY,CAAE,WAAYA,CAAU,EAAI,CAAC,CAC/C,EACA,KAAM,YACN,GAAGC,CACL,CAAC,CACH,CAaA,eAAsBE,EACpBJ,EACgC,CAChC,GAAM,CAAE,GAAAK,EAAI,GAAGH,CAAK,EAAIF,EAExB,OAAOG,EAA2C,CAChD,KAAM,aAAaE,CAAE,GACrB,GAAGH,CACL,CAAC,CACH","names":["fetch","join","requestLemonSqueeze","apiKey","apiVersion","baseUrl","data","headers","include","method","page","params","path","url","join","i","LemonsqueezyDataType","key","value","response","fetch","errorsJson","json","error","LemonsqueezyDataType","createCheckout","options","checkout_data","checkout_options","custom_price","expires_at","product_options","store","variant","rest","requestLemonSqueeze","listAllCheckouts","storeId","variantId","retrieveCheckout","id","listAllCustomers","options","storeId","email","rest","requestLemonSqueeze","retrieveCustomer","id","listAllDiscounts","options","storeId","rest","requestLemonSqueeze","retrieveDiscount","id","listAllFiles","options","variantId","rest","requestLemonSqueeze","retrieveFile","id","listAllLicenseKeys","options","orderId","orderItemId","productId","storeId","rest","requestLemonSqueeze","retrieveLicenseKey","id","listAllLicenseKeyInstances","options","licenseKeyId","rest","requestLemonSqueeze","retrieveLicenseKeyInstance","id","listAllOrders","options","storeId","userEmail","rest","requestLemonSqueeze","retrieveOrder","id","listAllOrderItems","options","orderId","productId","variantId","rest","requestLemonSqueeze","retrieveOrderItem","id","listAllProducts","options","storeId","rest","requestLemonSqueeze","retrieveProduct","id","listAllStores","options","requestLemonSqueeze","retrieveStore","id","rest","listAllSubscriptions","options","orderId","orderItemId","productId","storeId","variantId","rest","requestLemonSqueeze","retrieveSubscription","id","updateSubscription","billingAnchor","cancelled","pause","invoiceImmediately","disableProrations","listAllSubscriptionInvoices","options","refunded","status","storeId","rest","requestLemonSqueeze","retrieveSubscriptionInvoice","id","getUser","options","requestLemonSqueeze","listAllVariants","options","productId","rest","requestLemonSqueeze","retrieveVariant","id"]}