@vuetify/one 3.1.1 → 4.0.0

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
@@ -1,7 +1,7 @@
1
1
  import { Ref, ShallowRef, ComputedRef, App } from 'vue';
2
2
  import * as pinia from 'pinia';
3
3
  import { PiniaPluginContext } from 'pinia';
4
- import { AuthVerifyResponse, VOneSponsorship, VOneIdentity, VOneTeamMember } from '@vuetify/auth';
4
+ import { AuthVerifyResponse, VOneSponsorship, VOneTeamMember } from '@vuetify/auth';
5
5
  export { AuthConfig, AuthPluginOptions, DeviceAuthStatus, DeviceCode, VOneAccessToken, VOneIdentity, VOneRole, VOneSponsorship, VOneUser, createAuth, createAuthPlugin, useApiKeyStore, useDeviceStore, useHttpStore } from '@vuetify/auth';
6
6
 
7
7
  declare const aliases: any;
@@ -107,7 +107,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
107
107
  isEditor: Readonly<globalThis.Ref<boolean, boolean>>;
108
108
  verify: (force?: boolean) => Promise<AuthVerifyResponse | null>;
109
109
  findIdentity: (provider: string) => globalThis.VOneIdentity | undefined;
110
- login: (provider?: "github" | "discord" | "shopify" | "google" | "opencollective") => Promise<void>;
110
+ login: (provider?: "github" | "discord" | "google" | "opencollective") => Promise<void>;
111
111
  logout: (identity?: string) => Promise<void>;
112
112
  lastLoginProvider: () => string | null;
113
113
  sync: () => Promise<void>;
@@ -208,7 +208,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
208
208
  isEditor: Readonly<globalThis.Ref<boolean, boolean>>;
209
209
  verify: (force?: boolean) => Promise<AuthVerifyResponse | null>;
210
210
  findIdentity: (provider: string) => globalThis.VOneIdentity | undefined;
211
- login: (provider?: "github" | "discord" | "shopify" | "google" | "opencollective") => Promise<void>;
211
+ login: (provider?: "github" | "discord" | "google" | "opencollective") => Promise<void>;
212
212
  logout: (identity?: string) => Promise<void>;
213
213
  lastLoginProvider: () => string | null;
214
214
  sync: () => Promise<void>;
@@ -309,7 +309,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
309
309
  isEditor: Readonly<globalThis.Ref<boolean, boolean>>;
310
310
  verify: (force?: boolean) => Promise<AuthVerifyResponse | null>;
311
311
  findIdentity: (provider: string) => globalThis.VOneIdentity | undefined;
312
- login: (provider?: "github" | "discord" | "shopify" | "google" | "opencollective") => Promise<void>;
312
+ login: (provider?: "github" | "discord" | "google" | "opencollective") => Promise<void>;
313
313
  logout: (identity?: string) => Promise<void>;
314
314
  lastLoginProvider: () => string | null;
315
315
  sync: () => Promise<void>;
@@ -379,142 +379,6 @@ interface BinsState {
379
379
  }
380
380
  declare const useBinsStore: pinia.StoreDefinition<"bins", Pick<BinsState, "isLoading" | "all">, Pick<BinsState, "favorites" | "pinned">, Pick<BinsState, "index">>;
381
381
 
382
- interface VOneSendowlDownloadItem {
383
- name: string;
384
- url: string;
385
- type: 'product';
386
- accessible: boolean;
387
- downloadable: boolean;
388
- }
389
- interface VOneSendowlDownload {
390
- id: number;
391
- download_items: VOneSendowlDownloadItem[];
392
- order_name: string;
393
- created_at: string;
394
- download_url: string;
395
- }
396
- declare const useDownloadsStore: pinia.StoreDefinition<"downloads", Pick<{
397
- all: Ref<{
398
- id: number;
399
- download_items: {
400
- name: string;
401
- url: string;
402
- type: "product";
403
- accessible: boolean;
404
- downloadable: boolean;
405
- }[];
406
- order_name: string;
407
- created_at: string;
408
- download_url: string;
409
- }[], VOneSendowlDownload[] | {
410
- id: number;
411
- download_items: {
412
- name: string;
413
- url: string;
414
- type: "product";
415
- accessible: boolean;
416
- downloadable: boolean;
417
- }[];
418
- order_name: string;
419
- created_at: string;
420
- download_url: string;
421
- }[]>;
422
- isLoading: ShallowRef<boolean>;
423
- index: () => Promise<{
424
- id: number;
425
- download_items: {
426
- name: string;
427
- url: string;
428
- type: "product";
429
- accessible: boolean;
430
- downloadable: boolean;
431
- }[];
432
- order_name: string;
433
- created_at: string;
434
- download_url: string;
435
- }[]>;
436
- }, "isLoading" | "all">, Pick<{
437
- all: Ref<{
438
- id: number;
439
- download_items: {
440
- name: string;
441
- url: string;
442
- type: "product";
443
- accessible: boolean;
444
- downloadable: boolean;
445
- }[];
446
- order_name: string;
447
- created_at: string;
448
- download_url: string;
449
- }[], VOneSendowlDownload[] | {
450
- id: number;
451
- download_items: {
452
- name: string;
453
- url: string;
454
- type: "product";
455
- accessible: boolean;
456
- downloadable: boolean;
457
- }[];
458
- order_name: string;
459
- created_at: string;
460
- download_url: string;
461
- }[]>;
462
- isLoading: ShallowRef<boolean>;
463
- index: () => Promise<{
464
- id: number;
465
- download_items: {
466
- name: string;
467
- url: string;
468
- type: "product";
469
- accessible: boolean;
470
- downloadable: boolean;
471
- }[];
472
- order_name: string;
473
- created_at: string;
474
- download_url: string;
475
- }[]>;
476
- }, never>, Pick<{
477
- all: Ref<{
478
- id: number;
479
- download_items: {
480
- name: string;
481
- url: string;
482
- type: "product";
483
- accessible: boolean;
484
- downloadable: boolean;
485
- }[];
486
- order_name: string;
487
- created_at: string;
488
- download_url: string;
489
- }[], VOneSendowlDownload[] | {
490
- id: number;
491
- download_items: {
492
- name: string;
493
- url: string;
494
- type: "product";
495
- accessible: boolean;
496
- downloadable: boolean;
497
- }[];
498
- order_name: string;
499
- created_at: string;
500
- download_url: string;
501
- }[]>;
502
- isLoading: ShallowRef<boolean>;
503
- index: () => Promise<{
504
- id: number;
505
- download_items: {
506
- name: string;
507
- url: string;
508
- type: "product";
509
- accessible: boolean;
510
- downloadable: boolean;
511
- }[];
512
- order_name: string;
513
- created_at: string;
514
- download_url: string;
515
- }[]>;
516
- }, "index">>;
517
-
518
382
  interface VOneLink {
519
383
  id: string;
520
384
  slug: string;
@@ -648,7 +512,6 @@ interface OneState {
648
512
  isSubscriber: ComputedRef<boolean>;
649
513
  github: ComputedRef<VOneSponsorship | undefined>;
650
514
  discord: ComputedRef<VOneSponsorship | undefined>;
651
- shopify: ComputedRef<VOneIdentity | undefined>;
652
515
  opencollective: ComputedRef<VOneSponsorship | undefined>;
653
516
  one: ComputedRef<VOneSponsorship | undefined>;
654
517
  activate: () => Promise<void>;
@@ -660,7 +523,7 @@ interface OneState {
660
523
  subscriptionInfo: () => Promise<any>;
661
524
  recentActivity: () => Promise<Activity[]>;
662
525
  }
663
- 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" | "opencollective">, Pick<OneState, "activate" | "cancel" | "manage" | "modify" | "resetQuery" | "subscribe" | "subscriptionInfo" | "recentActivity">>;
526
+ 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" | "opencollective">, Pick<OneState, "activate" | "cancel" | "manage" | "modify" | "resetQuery" | "subscribe" | "subscriptionInfo" | "recentActivity">>;
664
527
 
665
528
  type VOnePlay = {
666
529
  id: string;
@@ -683,24 +546,6 @@ interface PlaysState {
683
546
  }
684
547
  declare const usePlaysStore: pinia.StoreDefinition<"plays", Pick<PlaysState, "isLoading" | "all">, Pick<PlaysState, "favorites" | "pinned">, Pick<PlaysState, "index">>;
685
548
 
686
- interface ShopifyProduct {
687
- id: string;
688
- title: string;
689
- vendor: string;
690
- product_type: string;
691
- tags: string[];
692
- handle: string;
693
- price: string;
694
- image: string;
695
- }
696
- interface ProductsState {
697
- all: Ref<ShopifyProduct[]>;
698
- themes: ComputedRef<ShopifyProduct[]>;
699
- index: () => Promise<ShopifyProduct[]>;
700
- randomize: (array: ShopifyProduct[]) => ShopifyProduct[];
701
- }
702
- declare const useProductsStore: pinia.StoreDefinition<"products", Pick<ProductsState, "all">, Pick<ProductsState, "themes">, Pick<ProductsState, "index" | "randomize">>;
703
-
704
549
  type CosmicImage = {
705
550
  url: string;
706
551
  } | null;
@@ -1998,5 +1843,5 @@ declare function createOne(): {
1998
1843
  };
1999
1844
  declare function one(id: string[], url: string): (context: PiniaPluginContext) => void;
2000
1845
 
2001
- export { aliases, createOne, one, useAuthStore, useBannersStore, useBinsStore, useDownloadsStore, useLinksStore, useNotificationsStore, useOneStore, usePlaysStore, useProductsStore, usePromotionsStore, useQueueStore, useSettingsStore, useSiteStore, useSponsorsStore, useSpotsStore, useTeamStore, useUserStore };
2002
- export type { CreateLinkOptions, ShopifyProduct, VOneBanner, VOneBin, VOneLink, VOneNotification, VOnePlay, VOnePromotion, VOneSendowlDownload, VOneSendowlDownloadItem, VOneSponsor, VOneSpot, VOneSuit, VOneTeam };
1846
+ export { aliases, createOne, one, useAuthStore, useBannersStore, useBinsStore, useLinksStore, useNotificationsStore, useOneStore, usePlaysStore, usePromotionsStore, useQueueStore, useSettingsStore, useSiteStore, useSponsorsStore, useSpotsStore, useTeamStore, useUserStore };
1847
+ export type { CreateLinkOptions, VOneBanner, VOneBin, VOneLink, VOneNotification, VOnePlay, VOnePromotion, VOneSponsor, VOneSpot, VOneSuit, VOneTeam };