@vuetify/one 1.1.6 → 1.1.7

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +13 -9
  2. package/dist/index.js +1328 -1263
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -330,7 +330,8 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
330
330
  }, "findIdentity" | "verify" | "login" | "logout" | "lastLoginProvider" | "sync">>;
331
331
 
332
332
  interface Banner {
333
- status: 'published' | 'unpublished';
333
+ id: string;
334
+ status: 'published' | 'draft';
334
335
  created_at: string;
335
336
  modified_at: string;
336
337
  slug: string;
@@ -349,29 +350,31 @@ interface Banner {
349
350
  attributes: Record<string, any>;
350
351
  start_date: string;
351
352
  end_date: string;
352
- theme: {
353
- key: 'light' | 'dark';
354
- value: 'Light' | 'Dark';
355
- };
356
353
  images: {
357
354
  bg: {
358
355
  url: string;
359
- };
356
+ } | null;
360
357
  logo: {
361
358
  url: string;
362
- };
359
+ } | null;
363
360
  };
364
361
  site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server')[];
365
362
  };
366
363
  }
367
364
  interface State {
368
365
  all: Ref<Banner[]>;
366
+ aall: Ref<Banner[]>;
369
367
  isLoading: ShallowRef<boolean>;
370
368
  server: ComputedRef<Banner | undefined>;
371
369
  banner: ComputedRef<Banner | undefined>;
370
+ record: Ref<Banner | undefined>;
371
+ admin: () => Promise<Banner[]>;
372
372
  get: () => Promise<Banner[]>;
373
+ edit: (slug: string) => Promise<Banner>;
374
+ create: (data: FormData) => Promise<Banner>;
375
+ save: (slug: string, data: FormData) => Promise<Banner>;
373
376
  }
374
- declare const useBannersStore: pinia.StoreDefinition<"banners", pinia._UnwrapAll<Pick<State, "isLoading" | "all">>, Pick<State, "banner" | "server">, Pick<State, "get">>;
377
+ declare const useBannersStore: pinia.StoreDefinition<"banners", pinia._UnwrapAll<Pick<State, "isLoading" | "all" | "aall" | "record">>, Pick<State, "banner" | "server">, Pick<State, "get" | "save" | "admin" | "edit" | "create">>;
375
378
 
376
379
  type Bin = {
377
380
  id: string;
@@ -535,7 +538,8 @@ declare const useHttpStore: pinia.StoreDefinition<"http", {
535
538
  }, {}, {
536
539
  fetch<T = any>(url: string, options?: RequestInit): Promise<T>;
537
540
  post<T_1 = any>(url: string, body?: any, options?: RequestInit): Promise<T_1>;
538
- get<T_2 = any>(url: string, options?: RequestInit): Promise<T_2>;
541
+ put<T_2 = any>(url: string, body?: any, options?: RequestInit): Promise<T_2>;
542
+ get<T_3 = any>(url: string, options?: RequestInit): Promise<T_3>;
539
543
  delete(url: string, options?: RequestInit): Promise<Response>;
540
544
  }>;
541
545