@vuetify/one 2.9.2 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -518,6 +518,27 @@ interface OneState {
518
518
  }
519
519
  declare const useOneStore: pinia.StoreDefinition<"one", Pick<OneState, "info" | "access" | "invoices" | "isLoading" | "isOpen">, Pick<OneState, "one" | "interval" | "subscriptionType" | "sessionId" | "subscription" | "monthlyTotal" | "hasBilling" | "isSubscriber" | "github" | "discord" | "shopify">, Pick<OneState, "activate" | "cancel" | "manage" | "modify" | "resetQuery" | "subscribe" | "subscriptionInfo">>;
520
520
 
521
+ type VOnePlay = {
522
+ id: string;
523
+ slug: string;
524
+ createdAt: string;
525
+ updatedAt: string;
526
+ title: string;
527
+ favorite: boolean;
528
+ pinned: boolean;
529
+ locked: boolean;
530
+ owner: Record<string, unknown>;
531
+ visibility: 'private' | 'public';
532
+ };
533
+ interface PlaysState {
534
+ isLoading: ShallowRef<boolean>;
535
+ pinned: ComputedRef<VOnePlay[]>;
536
+ favorites: ComputedRef<VOnePlay[]>;
537
+ all: Ref<VOnePlay[]>;
538
+ index: () => Promise<VOnePlay[]>;
539
+ }
540
+ declare const usePlaysStore: pinia.StoreDefinition<"plays", Pick<PlaysState, "isLoading" | "all">, Pick<PlaysState, "favorites" | "pinned">, Pick<PlaysState, "index">>;
541
+
521
542
  interface ShopifyProduct {
522
543
  id: string;
523
544
  title: string;
@@ -1707,5 +1728,5 @@ declare function createOne(): {
1707
1728
  };
1708
1729
  declare function one(id: string[], url: string): (context: PiniaPluginContext) => void;
1709
1730
 
1710
- export { aliases, createOne, one, useAuthStore, useBannersStore, useBinsStore, useDownloadsStore, useHttpStore, useLinksStore, useNotificationsStore, useOneStore, useProductsStore, usePromotionsStore, useQueueStore, useSettingsStore, useSiteStore, useSponsorsStore, useSpotsStore, useTeamStore, useUserStore };
1711
- export type { CreateLinkOptions, ShopifyProduct, VOneBanner, VOneBin, VOneIdentity, VOneLink, VOneNotification, VOnePromotion, VOneSendowlDownload, VOneSendowlDownloadItem, VOneSponsor, VOneSponsorship, VOneSpot, VOneSuit, VOneTeam, VOneUser };
1731
+ export { aliases, createOne, one, useAuthStore, useBannersStore, useBinsStore, useDownloadsStore, useHttpStore, useLinksStore, useNotificationsStore, useOneStore, usePlaysStore, useProductsStore, usePromotionsStore, useQueueStore, useSettingsStore, useSiteStore, useSponsorsStore, useSpotsStore, useTeamStore, useUserStore };
1732
+ export type { CreateLinkOptions, ShopifyProduct, VOneBanner, VOneBin, VOneIdentity, VOneLink, VOneNotification, VOnePlay, VOnePromotion, VOneSendowlDownload, VOneSendowlDownloadItem, VOneSponsor, VOneSponsorship, VOneSpot, VOneSuit, VOneTeam, VOneUser };