diff --git a/clients/.changeset/config.json b/clients/.changeset/config.json index c49ce7f94b..7e89bc0320 100644 --- a/clients/.changeset/config.json +++ b/clients/.changeset/config.json @@ -12,6 +12,6 @@ "@examples/checkout-embed", "eslint-config-custom", "polarkit", - "@polar-sh/sdk" + "@polar-sh/api" ] -} +} \ No newline at end of file diff --git a/clients/apps/web/package.json b/clients/apps/web/package.json index d42a6a078e..7e090039bd 100644 --- a/clients/apps/web/package.json +++ b/clients/apps/web/package.json @@ -31,9 +31,9 @@ "@next/mdx": "^14.2.18", "@next/third-parties": "^15.0.3", "@observablehq/plot": "^0.6.16", + "@polar-sh/api": "workspace:*", "@polar-sh/checkout": "workspace:^", "@polar-sh/mdx": "workspace:*", - "@polar-sh/sdk": "workspace:*", "@radix-ui/react-dropdown-menu": "^2.1.2", "@radix-ui/react-toast": "^1.2.2", "@react-three/drei": "^9.117.3", diff --git a/clients/apps/web/src/app/(main)/(installation)/github/installation/page.tsx b/clients/apps/web/src/app/(main)/(installation)/github/installation/page.tsx index 05bf78d0f9..7e142efceb 100644 --- a/clients/apps/web/src/app/(main)/(installation)/github/installation/page.tsx +++ b/clients/apps/web/src/app/(main)/(installation)/github/installation/page.tsx @@ -13,7 +13,7 @@ import { Organization, ResponseError, ValidationError, -} from '@polar-sh/sdk' +} from '@polar-sh/api' import { usePathname, useRouter, useSearchParams } from 'next/navigation' import Avatar from 'polarkit/components/ui/atoms/avatar' import Button from 'polarkit/components/ui/atoms/button' diff --git a/clients/apps/web/src/app/(main)/(topbar)/(backer)/finance/incoming/ClientPage.tsx b/clients/apps/web/src/app/(main)/(topbar)/(backer)/finance/incoming/ClientPage.tsx index 31df19b402..25f82a1aaa 100644 --- a/clients/apps/web/src/app/(main)/(topbar)/(backer)/finance/incoming/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/(topbar)/(backer)/finance/incoming/ClientPage.tsx @@ -12,7 +12,7 @@ import { getAPIParams, serializeSearchParams, } from '@/utils/datatable' -import { TransactionType } from '@polar-sh/sdk' +import { TransactionType } from '@polar-sh/api' import { usePathname, useRouter, useSearchParams } from 'next/navigation' import { Tabs, diff --git a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/file-downloads/ClientPage.tsx b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/file-downloads/ClientPage.tsx index de0e18b2d6..f4c2336c7d 100644 --- a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/file-downloads/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/file-downloads/ClientPage.tsx @@ -11,7 +11,7 @@ import { } from '@/hooks/queries' import { api } from '@/utils/api' import { FileDownloadOutlined } from '@mui/icons-material' -import { DownloadableRead } from '@polar-sh/sdk' +import { DownloadableRead } from '@polar-sh/api' import Link from 'next/link' import { useSearchParams } from 'next/navigation' import Avatar from 'polarkit/components/ui/atoms/avatar' diff --git a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/license-keys/ClientPage.tsx b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/license-keys/ClientPage.tsx index 1581efd100..8dda86cfbe 100644 --- a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/license-keys/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/license-keys/ClientPage.tsx @@ -12,7 +12,7 @@ import { } from '@/hooks/queries' import { api } from '@/utils/api' import { Key } from '@mui/icons-material' -import { BenefitType, CustomerBenefitGrantLicenseKeys } from '@polar-sh/sdk' +import { BenefitType, CustomerBenefitGrantLicenseKeys } from '@polar-sh/api' import Link from 'next/link' import { useSearchParams } from 'next/navigation' import Avatar from 'polarkit/components/ui/atoms/avatar' diff --git a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/ClientPage.tsx b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/ClientPage.tsx index 46600f5e8e..2d4dbcb16d 100644 --- a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/ClientPage.tsx @@ -8,7 +8,7 @@ import AmountLabel from '@/components/Shared/AmountLabel' import { useCustomerOrders } from '@/hooks/queries' import { api } from '@/utils/api' import { Search, ShoppingBagOutlined } from '@mui/icons-material' -import { CustomerOrder, ProductPriceType } from '@polar-sh/sdk' +import { CustomerOrder, ProductPriceType } from '@polar-sh/api' import Link from 'next/link' import { useSearchParams } from 'next/navigation' import Button from 'polarkit/components/ui/atoms/button' diff --git a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/[id]/ClientPage.tsx b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/[id]/ClientPage.tsx index e48113a3e7..abc1fdf64d 100644 --- a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/[id]/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/[id]/ClientPage.tsx @@ -3,7 +3,7 @@ import CustomerPortalOrder from '@/components/CustomerPortal/CustomerPortalOrder' import { api } from '@/utils/api' import { ArrowBackOutlined } from '@mui/icons-material' -import { CustomerOrder } from '@polar-sh/sdk' +import { CustomerOrder } from '@polar-sh/api' import Link from 'next/link' const ClientPage = ({ order }: { order: CustomerOrder }) => { diff --git a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/[id]/page.tsx b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/[id]/page.tsx index 1f364e0d38..ff5310dbcb 100644 --- a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/[id]/page.tsx +++ b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/products/[id]/page.tsx @@ -1,5 +1,5 @@ import { getServerSideAPI } from '@/utils/api/serverside' -import { CustomerOrder, ResponseError } from '@polar-sh/sdk' +import { CustomerOrder, ResponseError } from '@polar-sh/api' import { notFound } from 'next/navigation' import ClientPage from './ClientPage' diff --git a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/ClientPage.tsx b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/ClientPage.tsx index a9727ace1c..b3ce5873f2 100644 --- a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/ClientPage.tsx @@ -8,7 +8,7 @@ import { SubscriptionStatusLabel } from '@/components/Subscriptions/utils' import { useCustomerSubscriptions } from '@/hooks/queries' import { api } from '@/utils/api' import { Search, ShoppingBagOutlined } from '@mui/icons-material' -import { CustomerSubscription } from '@polar-sh/sdk' +import { CustomerSubscription } from '@polar-sh/api' import Link from 'next/link' import { useSearchParams } from 'next/navigation' import { Switch } from 'polarkit/components/ui/atoms' @@ -201,14 +201,11 @@ const SubscriptionItem = ({ {nextEventTitle} - {nextEventDate.toLocaleDateString( - 'en-US', - { - year: 'numeric', - month: 'long', - day: 'numeric', - }, - )} + {nextEventDate.toLocaleDateString('en-US', { + year: 'numeric', + month: 'long', + day: 'numeric', + })} )} diff --git a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/ClientPage.tsx b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/ClientPage.tsx index 7602086185..0c866418c8 100644 --- a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/ClientPage.tsx @@ -3,7 +3,7 @@ import CustomerPortalSubscription from '@/components/CustomerPortal/CustomerPortalSubscription' import { api } from '@/utils/api' import { ArrowBackOutlined } from '@mui/icons-material' -import { CustomerSubscription } from '@polar-sh/sdk' +import { CustomerSubscription } from '@polar-sh/api' import Link from 'next/link' const ClientPage = ({ @@ -25,5 +25,4 @@ const ClientPage = ({ ) } - export default ClientPage diff --git a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page.tsx b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page.tsx index 0c5f5770e0..1033045182 100644 --- a/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page.tsx +++ b/clients/apps/web/src/app/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page.tsx @@ -1,5 +1,5 @@ import { getServerSideAPI } from '@/utils/api/serverside' -import { CustomerSubscription, ResponseError } from '@polar-sh/sdk' +import { CustomerSubscription, ResponseError } from '@polar-sh/api' import { notFound } from 'next/navigation' import ClientPage from './ClientPage' diff --git a/clients/apps/web/src/app/(main)/[organization]/(header)/ClientPage.tsx b/clients/apps/web/src/app/(main)/[organization]/(header)/ClientPage.tsx index 73ec4af0f6..9b60d9497c 100644 --- a/clients/apps/web/src/app/(main)/[organization]/(header)/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/(header)/ClientPage.tsx @@ -1,7 +1,7 @@ 'use client' import { Storefront } from '@/components/Profile/Storefront' -import { IssueFunding, Organization, ProductStorefront } from '@polar-sh/sdk' +import { IssueFunding, Organization, ProductStorefront } from '@polar-sh/api' const ClientPage = ({ organization, diff --git a/clients/apps/web/src/app/(main)/[organization]/(header)/issues/ClientPage.tsx b/clients/apps/web/src/app/(main)/[organization]/(header)/issues/ClientPage.tsx index d527d7ed92..9c16c85527 100644 --- a/clients/apps/web/src/app/(main)/[organization]/(header)/issues/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/(header)/issues/ClientPage.tsx @@ -2,7 +2,7 @@ import IssuesLookingForFunding from '@/components/Organization/IssuesLookingForFunding' import { organizationPageLink } from '@/utils/nav' -import { ListResourceIssueFunding, Organization } from '@polar-sh/sdk' +import { ListResourceIssueFunding, Organization } from '@polar-sh/api' import { redirect } from 'next/navigation' import { ShadowBoxOnMd } from 'polarkit/components/ui/atoms/shadowbox' diff --git a/clients/apps/web/src/app/(main)/[organization]/(header)/layout.tsx b/clients/apps/web/src/app/(main)/[organization]/(header)/layout.tsx index df9bc90a20..8b1e271843 100644 --- a/clients/apps/web/src/app/(main)/[organization]/(header)/layout.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/(header)/layout.tsx @@ -5,7 +5,7 @@ import { StorefrontNav } from '@/components/Organization/StorefrontNav' import { StorefrontHeader } from '@/components/Profile/StorefrontHeader' import { getServerSideAPI } from '@/utils/api/serverside' import { getStorefrontOrNotFound } from '@/utils/storefront' -import { UserRead } from '@polar-sh/sdk' +import { UserRead } from '@polar-sh/api' import React from 'react' export default async function Layout({ diff --git a/clients/apps/web/src/app/(main)/[organization]/(header)/page.tsx b/clients/apps/web/src/app/(main)/[organization]/(header)/page.tsx index 26a614964a..00830c91d2 100644 --- a/clients/apps/web/src/app/(main)/[organization]/(header)/page.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/(header)/page.tsx @@ -1,5 +1,5 @@ import { getServerSideAPI } from '@/utils/api/serverside' -import { ListResourceIssueFunding } from '@polar-sh/sdk' +import { ListResourceIssueFunding } from '@polar-sh/api' import type { Metadata } from 'next' import { notFound } from 'next/navigation' import ClientPage from './ClientPage' diff --git a/clients/apps/web/src/app/(main)/[organization]/(header)/products/[productId]/ClientPage.tsx b/clients/apps/web/src/app/(main)/[organization]/(header)/products/[productId]/ClientPage.tsx index 43fb48bf2d..b8e7a2941e 100644 --- a/clients/apps/web/src/app/(main)/[organization]/(header)/products/[productId]/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/(header)/products/[productId]/ClientPage.tsx @@ -1,7 +1,7 @@ 'use client' import { Checkout } from '@/components/Checkout/Checkout' -import { CheckoutPublic, Organization } from '@polar-sh/sdk' +import { CheckoutPublic, Organization } from '@polar-sh/api' import { useTheme } from 'next-themes' export default function ClientPage({ diff --git a/clients/apps/web/src/app/(main)/[organization]/(header)/products/[productId]/page.tsx b/clients/apps/web/src/app/(main)/[organization]/(header)/products/[productId]/page.tsx index 52716c0370..970b45512b 100644 --- a/clients/apps/web/src/app/(main)/[organization]/(header)/products/[productId]/page.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/(header)/products/[productId]/page.tsx @@ -2,7 +2,7 @@ import CheckoutProductInfo from '@/components/Checkout/CheckoutProductInfo' import { getServerSideAPI } from '@/utils/api/serverside' import { isCrawler } from '@/utils/crawlers' import { getStorefrontOrNotFound } from '@/utils/storefront' -import { CheckoutPublic } from '@polar-sh/sdk' +import { CheckoutPublic } from '@polar-sh/api' import type { Metadata } from 'next' import { headers } from 'next/headers' import { notFound } from 'next/navigation' diff --git a/clients/apps/web/src/app/(main)/[organization]/[repo]/ClientPage.tsx b/clients/apps/web/src/app/(main)/[organization]/[repo]/ClientPage.tsx index 8066fef373..e19ff62790 100644 --- a/clients/apps/web/src/app/(main)/[organization]/[repo]/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/[repo]/ClientPage.tsx @@ -19,7 +19,7 @@ import { Organization, Repository, RepositoryProfileSettingsUpdate, -} from '@polar-sh/sdk' +} from '@polar-sh/api' import Link from 'next/link' import type { SuccessResult } from 'open-graph-scraper-lite' import Avatar from 'polarkit/components/ui/atoms/avatar' diff --git a/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/(create)/ClientPage.tsx b/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/(create)/ClientPage.tsx index a4975fc6a4..2ca5ac417f 100644 --- a/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/(create)/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/(create)/ClientPage.tsx @@ -6,7 +6,7 @@ import HowItWorks from '@/components/Pledge/HowItWorks' import IssueCard from '@/components/Pledge/IssueCard' import PledgeCheckoutPanel from '@/components/Pledge/PledgeCheckoutPanel' import { usePostHog } from '@/hooks/posthog' -import { Issue, Organization, Pledger, RewardsSummary } from '@polar-sh/sdk' +import { Issue, Organization, Pledger, RewardsSummary } from '@polar-sh/api' import { Banner } from 'polarkit/components/ui/molecules' import { useEffect, useState } from 'react' diff --git a/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/(create)/page.tsx b/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/(create)/page.tsx index 8d54ea57a5..cfdbc85182 100644 --- a/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/(create)/page.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/(create)/page.tsx @@ -1,7 +1,7 @@ import { getServerSideAPI } from '@/utils/api/serverside' import { resolveIssuePath } from '@/utils/issue' import { organizationPageLink } from '@/utils/nav' -import { Pledger, ResponseError, RewardsSummary } from '@polar-sh/sdk' +import { Pledger, ResponseError, RewardsSummary } from '@polar-sh/api' import { Metadata } from 'next' import { notFound, redirect } from 'next/navigation' import ClientPage from './ClientPage' diff --git a/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/status/page.tsx b/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/status/page.tsx index 65f59fd1d5..de3c1ced85 100644 --- a/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/status/page.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/[repo]/issues/[number]/status/page.tsx @@ -1,7 +1,7 @@ import Status from '@/components/Pledge/Status' import { api } from '@/utils/api' import { resolveRepositoryPath } from '@/utils/repository' -import { Pledge, ResponseError } from '@polar-sh/sdk' +import { Pledge, ResponseError } from '@polar-sh/api' import { notFound } from 'next/navigation' const cacheConfig = { diff --git a/clients/apps/web/src/app/(main)/[organization]/[repo]/page.tsx b/clients/apps/web/src/app/(main)/[organization]/[repo]/page.tsx index 8a6aea0e53..0d9b27a5ea 100644 --- a/clients/apps/web/src/app/(main)/[organization]/[repo]/page.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/[repo]/page.tsx @@ -7,7 +7,7 @@ import { getServerSideAPI } from '@/utils/api/serverside' import { organizationPageLink } from '@/utils/nav' import { resolveRepositoryPath } from '@/utils/repository' import { getUserOrganizations } from '@/utils/user' -import { ListResourceIssueFunding, Organization } from '@polar-sh/sdk' +import { ListResourceIssueFunding, Organization } from '@polar-sh/api' import { Metadata } from 'next' import { notFound, redirect } from 'next/navigation' import type { SuccessResult } from 'open-graph-scraper-lite' diff --git a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/authenticate/ClientPage.tsx b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/authenticate/ClientPage.tsx index 48a14ad5e8..f41f7312b2 100644 --- a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/authenticate/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/authenticate/ClientPage.tsx @@ -3,7 +3,7 @@ import { useCustomerPortalSessionAuthenticate } from '@/hooks/queries' import { api } from '@/utils/api' import { setValidationErrors } from '@/utils/api/errors' -import { Organization, ResponseError, ValidationError } from '@polar-sh/sdk' +import { Organization, ResponseError, ValidationError } from '@polar-sh/api' import { useRouter } from 'next/navigation' import Button from 'polarkit/components/ui/atoms/button' diff --git a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/orders/[id]/ClientPage.tsx b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/orders/[id]/ClientPage.tsx index a55e79bc4a..55446fcec2 100644 --- a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/orders/[id]/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/orders/[id]/ClientPage.tsx @@ -2,7 +2,7 @@ import CustomerPortalOrder from '@/components/CustomerPortal/CustomerPortalOrder' import { buildAPI } from '@/utils/api' -import { CustomerOrder, Organization } from '@polar-sh/sdk' +import { CustomerOrder, Organization } from '@polar-sh/api' const ClientPage = ({ order, diff --git a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/orders/[id]/page.tsx b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/orders/[id]/page.tsx index b3f0220838..a31b8262f8 100644 --- a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/orders/[id]/page.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/orders/[id]/page.tsx @@ -1,6 +1,6 @@ import { getServerSideAPI } from '@/utils/api/serverside' import { getOrganizationOrNotFound } from '@/utils/customerPortal' -import { CustomerOrder, ResponseError } from '@polar-sh/sdk' +import { CustomerOrder, ResponseError } from '@polar-sh/api' import type { Metadata } from 'next' import { redirect } from 'next/navigation' import ClientPage from './ClientPage' diff --git a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/request/ClientPage.tsx b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/request/ClientPage.tsx index b04928668e..e6c35c5deb 100644 --- a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/request/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/request/ClientPage.tsx @@ -3,7 +3,7 @@ import { useCustomerPortalSessionRequest } from '@/hooks/queries' import { api } from '@/utils/api' import { setValidationErrors } from '@/utils/api/errors' -import { Organization, ResponseError, ValidationError } from '@polar-sh/sdk' +import { Organization, ResponseError, ValidationError } from '@polar-sh/api' import { useRouter } from 'next/navigation' import Button from 'polarkit/components/ui/atoms/button' import Input from 'polarkit/components/ui/atoms/input' diff --git a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/subscriptions/[id]/ClientPage.tsx b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/subscriptions/[id]/ClientPage.tsx index 8c5c53c542..e20f095efd 100644 --- a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/subscriptions/[id]/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/subscriptions/[id]/ClientPage.tsx @@ -2,7 +2,7 @@ import CustomerPortalSubscription from '@/components/CustomerPortal/CustomerPortalSubscription' import { buildAPI } from '@/utils/api' -import { CustomerSubscription, Organization } from '@polar-sh/sdk' +import { CustomerSubscription, Organization } from '@polar-sh/api' const ClientPage = ({ subscription, diff --git a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/subscriptions/[id]/page.tsx b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/subscriptions/[id]/page.tsx index ef6bb08623..d18c4cfdb9 100644 --- a/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/subscriptions/[id]/page.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/portal/(topbar)/subscriptions/[id]/page.tsx @@ -1,6 +1,6 @@ import { getServerSideAPI } from '@/utils/api/serverside' import { getOrganizationOrNotFound } from '@/utils/customerPortal' -import { CustomerSubscription, ResponseError } from '@polar-sh/sdk' +import { CustomerSubscription, ResponseError } from '@polar-sh/api' import type { Metadata } from 'next' import { redirect } from 'next/navigation' import ClientPage from './ClientPage' diff --git a/clients/apps/web/src/app/(main)/[organization]/portal/ClientPage.tsx b/clients/apps/web/src/app/(main)/[organization]/portal/ClientPage.tsx index 03db4d0142..a09db798bf 100644 --- a/clients/apps/web/src/app/(main)/[organization]/portal/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/portal/ClientPage.tsx @@ -5,7 +5,7 @@ import { ListResourceCustomerOrder, ListResourceCustomerSubscription, Organization, -} from '@polar-sh/sdk' +} from '@polar-sh/api' const ClientPage = ({ organization, diff --git a/clients/apps/web/src/app/(main)/[organization]/portal/page.tsx b/clients/apps/web/src/app/(main)/[organization]/portal/page.tsx index b71a1fc6ed..c927b82cca 100644 --- a/clients/apps/web/src/app/(main)/[organization]/portal/page.tsx +++ b/clients/apps/web/src/app/(main)/[organization]/portal/page.tsx @@ -4,7 +4,7 @@ import { ListResourceCustomerOrder, ListResourceCustomerSubscription, ResponseError, -} from '@polar-sh/sdk' +} from '@polar-sh/api' import type { Metadata } from 'next' import { redirect } from 'next/navigation' import ClientPage from './ClientPage' diff --git a/clients/apps/web/src/app/(main)/dashboard/(create)/create/ClientPage.tsx b/clients/apps/web/src/app/(main)/dashboard/(create)/create/ClientPage.tsx index 30ec2326ae..00e7912bce 100644 --- a/clients/apps/web/src/app/(main)/dashboard/(create)/create/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/dashboard/(create)/create/ClientPage.tsx @@ -9,7 +9,7 @@ import { useCreateOrganization } from '@/hooks/queries' import { setValidationErrors } from '@/utils/api/errors' import { CONFIG } from '@/utils/config' import { FormControl } from '@mui/material' -import { ResponseError, ValidationError } from '@polar-sh/sdk' +import { ResponseError, ValidationError } from '@polar-sh/api' import Link from 'next/link' import { useRouter } from 'next/navigation' import Button from 'polarkit/components/ui/atoms/button' diff --git a/clients/apps/web/src/app/(main)/dashboard/(create)/create/page.tsx b/clients/apps/web/src/app/(main)/dashboard/(create)/create/page.tsx index 7faed4036c..fc819dea93 100644 --- a/clients/apps/web/src/app/(main)/dashboard/(create)/create/page.tsx +++ b/clients/apps/web/src/app/(main)/dashboard/(create)/create/page.tsx @@ -1,7 +1,7 @@ import revalidate from '@/app/actions' import { getServerSideAPI } from '@/utils/api/serverside' import { getAuthenticatedUser } from '@/utils/user' -import { Organization, ResponseError, ValidationError } from '@polar-sh/sdk' +import { Organization, ResponseError, ValidationError } from '@polar-sh/api' import { Metadata } from 'next' import { redirect } from 'next/navigation' import ClientPage from './ClientPage' diff --git a/clients/apps/web/src/app/(main)/dashboard/[organization]/(header)/(home)/ClientPage.tsx b/clients/apps/web/src/app/(main)/dashboard/[organization]/(header)/(home)/ClientPage.tsx index 1d450e32ae..547db8f4c6 100644 --- a/clients/apps/web/src/app/(main)/dashboard/[organization]/(header)/(home)/ClientPage.tsx +++ b/clients/apps/web/src/app/(main)/dashboard/[organization]/(header)/(home)/ClientPage.tsx @@ -14,7 +14,7 @@ import { SubscribersWidget } from '@/components/Widgets/SubscribersWidget' import { useProducts } from '@/hooks/queries' import { MaintainerOrganizationContext } from '@/providers/maintainerOrganization' import { ChevronRight } from '@mui/icons-material' -import { Organization } from '@polar-sh/sdk' +import { Organization } from '@polar-sh/api' import Link from 'next/link' import Button from 'polarkit/components/ui/atoms/button' import { @@ -69,7 +69,7 @@ const IntegrationView = () => {
- pnpm install @polar-sh/sdk + pnpm install @polar-sh/api