@vuetify/one 2.1.2 → 2.2.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
@@ -1,11 +1,11 @@
1
1
  import * as vue from 'vue';
2
- import { Ref, ShallowRef, ComputedRef, App } from 'vue';
2
+ import { Ref, ComputedRef, ShallowRef, App } from 'vue';
3
3
  import * as pinia from 'pinia';
4
4
  import { PiniaPluginContext } from 'pinia';
5
5
 
6
6
  declare const aliases: any;
7
7
 
8
- type Team = {
8
+ type VOneTeam = {
9
9
  id: string;
10
10
  name: string;
11
11
  inviteCode: string;
@@ -20,342 +20,169 @@ type Team = {
20
20
  picture: string;
21
21
  };
22
22
  };
23
-
24
- interface Sponsorship {
25
- id: string;
26
- platform: string;
27
- interval: 'month' | 'year' | 'once';
28
- target: string;
29
- tierName: string;
30
- amount: number;
31
- isActive: boolean;
32
- createdAt: Date;
33
- }
34
- interface Identity {
35
- id: string;
36
- emails: string[];
37
- provider: string;
38
- userId: string;
39
- userHandle: string;
40
- primary: boolean;
41
- }
42
- interface User {
43
- id: string;
44
- isAdmin: boolean;
45
- name: string;
46
- picture: string;
47
- settings: Record<string, any> | null;
48
- createdAt: string;
49
- identities: Identity[];
50
- sponsorships: Sponsorship[];
51
- team: Team;
52
- }
53
- declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
54
- user: globalThis.Ref<{
23
+ declare const useTeamStore: pinia.StoreDefinition<"team", Pick<{
24
+ team: Ref<{
55
25
  id: string;
56
- isAdmin: boolean;
57
26
  name: string;
58
- picture: string;
59
- settings: Record<string, any> | null;
60
- createdAt: string;
61
- identities: {
62
- id: string;
63
- emails: string[];
64
- provider: string;
65
- userId: string;
66
- userHandle: string;
67
- primary: boolean;
68
- }[];
69
- sponsorships: {
27
+ inviteCode: string;
28
+ members: {
70
29
  id: string;
71
- platform: string;
72
- interval: "month" | "year" | "once";
73
- target: string;
74
- tierName: string;
75
- amount: number;
76
- isActive: boolean;
77
- createdAt: Date;
30
+ name: string;
31
+ picture: string;
78
32
  }[];
79
- team: {
33
+ owner: {
80
34
  id: string;
81
35
  name: string;
82
- inviteCode: string;
83
- members: {
84
- id: string;
85
- name: string;
86
- picture: string;
87
- }[];
88
- owner: {
89
- id: string;
90
- name: string;
91
- picture: string;
92
- };
36
+ picture: string;
93
37
  };
94
- } | null, User | {
38
+ } | null, VOneTeam | {
95
39
  id: string;
96
- isAdmin: boolean;
97
40
  name: string;
98
- picture: string;
99
- settings: Record<string, any> | null;
100
- createdAt: string;
101
- identities: {
41
+ inviteCode: string;
42
+ members: {
102
43
  id: string;
103
- emails: string[];
104
- provider: string;
105
- userId: string;
106
- userHandle: string;
107
- primary: boolean;
108
- }[];
109
- sponsorships: {
110
- id: string;
111
- platform: string;
112
- interval: "month" | "year" | "once";
113
- target: string;
114
- tierName: string;
115
- amount: number;
116
- isActive: boolean;
117
- createdAt: Date;
44
+ name: string;
45
+ picture: string;
118
46
  }[];
119
- team: {
47
+ owner: {
120
48
  id: string;
121
49
  name: string;
122
- inviteCode: string;
123
- members: {
124
- id: string;
125
- name: string;
126
- picture: string;
127
- }[];
128
- owner: {
129
- id: string;
130
- name: string;
131
- picture: string;
132
- };
50
+ picture: string;
133
51
  };
134
52
  } | null>;
135
- url: string;
136
- dialog: globalThis.Ref<boolean, boolean>;
137
- isLoading: vue.ShallowRef<boolean, boolean>;
138
- findIdentity: (provider: string) => {
139
- id: string;
140
- emails: string[];
141
- provider: string;
142
- userId: string;
143
- userHandle: string;
144
- primary: boolean;
145
- } | undefined;
146
- verify: {
147
- (force?: boolean): Promise<void>;
148
- promise: Promise<void> | null;
149
- };
150
- login: (provider?: "github" | "discord" | "shopify") => Promise<void>;
151
- logout: (identity?: string) => Promise<void>;
152
- lastLoginProvider: () => string | null;
153
- sync: () => Promise<void>;
154
- }, "url" | "user" | "dialog" | "isLoading">, Pick<{
155
- user: globalThis.Ref<{
53
+ teamInviteDialog: Ref<boolean, boolean>;
54
+ teamInviteCode: ComputedRef<string>;
55
+ hasTeamAccess: ComputedRef<boolean>;
56
+ isTeamOwner: ComputedRef<boolean>;
57
+ isLoading: ShallowRef<boolean, boolean>;
58
+ removeFromTeam: (id: string) => Promise<void>;
59
+ leaveTeam: () => Promise<void>;
60
+ joinTeam: () => Promise<void>;
61
+ clearTeamQuery: () => void;
62
+ }, "isLoading" | "team" | "teamInviteDialog">, Pick<{
63
+ team: Ref<{
156
64
  id: string;
157
- isAdmin: boolean;
158
65
  name: string;
159
- picture: string;
160
- settings: Record<string, any> | null;
161
- createdAt: string;
162
- identities: {
66
+ inviteCode: string;
67
+ members: {
163
68
  id: string;
164
- emails: string[];
165
- provider: string;
166
- userId: string;
167
- userHandle: string;
168
- primary: boolean;
169
- }[];
170
- sponsorships: {
171
- id: string;
172
- platform: string;
173
- interval: "month" | "year" | "once";
174
- target: string;
175
- tierName: string;
176
- amount: number;
177
- isActive: boolean;
178
- createdAt: Date;
69
+ name: string;
70
+ picture: string;
179
71
  }[];
180
- team: {
72
+ owner: {
181
73
  id: string;
182
74
  name: string;
183
- inviteCode: string;
184
- members: {
185
- id: string;
186
- name: string;
187
- picture: string;
188
- }[];
189
- owner: {
190
- id: string;
191
- name: string;
192
- picture: string;
193
- };
75
+ picture: string;
194
76
  };
195
- } | null, User | {
77
+ } | null, VOneTeam | {
196
78
  id: string;
197
- isAdmin: boolean;
198
79
  name: string;
199
- picture: string;
200
- settings: Record<string, any> | null;
201
- createdAt: string;
202
- identities: {
203
- id: string;
204
- emails: string[];
205
- provider: string;
206
- userId: string;
207
- userHandle: string;
208
- primary: boolean;
209
- }[];
210
- sponsorships: {
80
+ inviteCode: string;
81
+ members: {
211
82
  id: string;
212
- platform: string;
213
- interval: "month" | "year" | "once";
214
- target: string;
215
- tierName: string;
216
- amount: number;
217
- isActive: boolean;
218
- createdAt: Date;
83
+ name: string;
84
+ picture: string;
219
85
  }[];
220
- team: {
86
+ owner: {
221
87
  id: string;
222
88
  name: string;
223
- inviteCode: string;
224
- members: {
225
- id: string;
226
- name: string;
227
- picture: string;
228
- }[];
229
- owner: {
230
- id: string;
231
- name: string;
232
- picture: string;
233
- };
89
+ picture: string;
234
90
  };
235
91
  } | null>;
236
- url: string;
237
- dialog: globalThis.Ref<boolean, boolean>;
238
- isLoading: vue.ShallowRef<boolean, boolean>;
239
- findIdentity: (provider: string) => {
240
- id: string;
241
- emails: string[];
242
- provider: string;
243
- userId: string;
244
- userHandle: string;
245
- primary: boolean;
246
- } | undefined;
247
- verify: {
248
- (force?: boolean): Promise<void>;
249
- promise: Promise<void> | null;
250
- };
251
- login: (provider?: "github" | "discord" | "shopify") => Promise<void>;
252
- logout: (identity?: string) => Promise<void>;
253
- lastLoginProvider: () => string | null;
254
- sync: () => Promise<void>;
255
- }, never>, Pick<{
256
- user: globalThis.Ref<{
92
+ teamInviteDialog: Ref<boolean, boolean>;
93
+ teamInviteCode: ComputedRef<string>;
94
+ hasTeamAccess: ComputedRef<boolean>;
95
+ isTeamOwner: ComputedRef<boolean>;
96
+ isLoading: ShallowRef<boolean, boolean>;
97
+ removeFromTeam: (id: string) => Promise<void>;
98
+ leaveTeam: () => Promise<void>;
99
+ joinTeam: () => Promise<void>;
100
+ clearTeamQuery: () => void;
101
+ }, "teamInviteCode" | "hasTeamAccess" | "isTeamOwner">, Pick<{
102
+ team: Ref<{
257
103
  id: string;
258
- isAdmin: boolean;
259
104
  name: string;
260
- picture: string;
261
- settings: Record<string, any> | null;
262
- createdAt: string;
263
- identities: {
264
- id: string;
265
- emails: string[];
266
- provider: string;
267
- userId: string;
268
- userHandle: string;
269
- primary: boolean;
270
- }[];
271
- sponsorships: {
105
+ inviteCode: string;
106
+ members: {
272
107
  id: string;
273
- platform: string;
274
- interval: "month" | "year" | "once";
275
- target: string;
276
- tierName: string;
277
- amount: number;
278
- isActive: boolean;
279
- createdAt: Date;
108
+ name: string;
109
+ picture: string;
280
110
  }[];
281
- team: {
111
+ owner: {
282
112
  id: string;
283
113
  name: string;
284
- inviteCode: string;
285
- members: {
286
- id: string;
287
- name: string;
288
- picture: string;
289
- }[];
290
- owner: {
291
- id: string;
292
- name: string;
293
- picture: string;
294
- };
114
+ picture: string;
295
115
  };
296
- } | null, User | {
116
+ } | null, VOneTeam | {
297
117
  id: string;
298
- isAdmin: boolean;
299
118
  name: string;
300
- picture: string;
301
- settings: Record<string, any> | null;
302
- createdAt: string;
303
- identities: {
119
+ inviteCode: string;
120
+ members: {
304
121
  id: string;
305
- emails: string[];
306
- provider: string;
307
- userId: string;
308
- userHandle: string;
309
- primary: boolean;
310
- }[];
311
- sponsorships: {
312
- id: string;
313
- platform: string;
314
- interval: "month" | "year" | "once";
315
- target: string;
316
- tierName: string;
317
- amount: number;
318
- isActive: boolean;
319
- createdAt: Date;
122
+ name: string;
123
+ picture: string;
320
124
  }[];
321
- team: {
125
+ owner: {
322
126
  id: string;
323
127
  name: string;
324
- inviteCode: string;
325
- members: {
326
- id: string;
327
- name: string;
328
- picture: string;
329
- }[];
330
- owner: {
331
- id: string;
332
- name: string;
333
- picture: string;
334
- };
128
+ picture: string;
335
129
  };
336
130
  } | null>;
131
+ teamInviteDialog: Ref<boolean, boolean>;
132
+ teamInviteCode: ComputedRef<string>;
133
+ hasTeamAccess: ComputedRef<boolean>;
134
+ isTeamOwner: ComputedRef<boolean>;
135
+ isLoading: ShallowRef<boolean, boolean>;
136
+ removeFromTeam: (id: string) => Promise<void>;
137
+ leaveTeam: () => Promise<void>;
138
+ joinTeam: () => Promise<void>;
139
+ clearTeamQuery: () => void;
140
+ }, "removeFromTeam" | "leaveTeam" | "joinTeam" | "clearTeamQuery">>;
141
+
142
+ interface VOneSponsorship {
143
+ id: string;
144
+ platform: string;
145
+ interval: 'month' | 'year' | 'once';
146
+ target: string;
147
+ tierName: string;
148
+ amount: number;
149
+ isActive: boolean;
150
+ createdAt: Date;
151
+ }
152
+ interface VOneIdentity {
153
+ id: string;
154
+ emails: string[];
155
+ provider: string;
156
+ userId: string;
157
+ userHandle: string;
158
+ primary: boolean;
159
+ }
160
+ interface VOneUser {
161
+ id: string;
162
+ isAdmin: boolean;
163
+ name: string;
164
+ picture: string;
165
+ settings: Record<string, any> | null;
166
+ createdAt: string;
167
+ identities: VOneIdentity[];
168
+ sponsorships: VOneSponsorship[];
169
+ team: VOneTeam;
170
+ }
171
+ interface AuthState {
172
+ user: Ref<VOneUser | null>;
337
173
  url: string;
338
- dialog: globalThis.Ref<boolean, boolean>;
339
- isLoading: vue.ShallowRef<boolean, boolean>;
340
- findIdentity: (provider: string) => {
341
- id: string;
342
- emails: string[];
343
- provider: string;
344
- userId: string;
345
- userHandle: string;
346
- primary: boolean;
347
- } | undefined;
348
- verify: {
349
- (force?: boolean): Promise<void>;
350
- promise: Promise<void> | null;
351
- };
352
- login: (provider?: "github" | "discord" | "shopify") => Promise<void>;
174
+ dialog: Ref<boolean>;
175
+ isLoading: ShallowRef<boolean>;
176
+ verify: (force?: boolean) => Promise<void>;
177
+ findIdentity: (provider: string) => VOneIdentity | undefined;
178
+ login: (provider?: 'github' | 'discord' | 'shopify') => Promise<void>;
353
179
  logout: (identity?: string) => Promise<void>;
354
180
  lastLoginProvider: () => string | null;
355
181
  sync: () => Promise<void>;
356
- }, "findIdentity" | "verify" | "login" | "logout" | "lastLoginProvider" | "sync">>;
182
+ }
183
+ declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<AuthState, "isLoading" | "user" | "url" | "dialog">, Pick<AuthState, never>, Pick<AuthState, "verify" | "findIdentity" | "login" | "logout" | "lastLoginProvider" | "sync">>;
357
184
 
358
- interface Banner {
185
+ interface VOneBanner {
359
186
  id: string;
360
187
  status: 'published' | 'draft';
361
188
  created_at: string;
@@ -388,23 +215,16 @@ interface Banner {
388
215
  site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server')[];
389
216
  };
390
217
  }
391
- interface State$2 {
392
- all: Ref<Banner[]>;
393
- aall: Ref<Banner[]>;
218
+ interface BannerState {
219
+ all: Ref<VOneBanner[]>;
394
220
  isLoading: ShallowRef<boolean>;
395
- server: ComputedRef<Banner | undefined>;
396
- banner: ComputedRef<Banner | undefined>;
397
- record: Ref<Banner | undefined>;
398
- admin: () => Promise<Banner[]>;
399
- destroy: (slug: string) => Promise<void>;
400
- index: () => Promise<Banner[]>;
401
- show: (slug: string) => Promise<Banner>;
402
- store: (data: FormData) => Promise<Banner>;
403
- update: (slug: string, data: FormData) => Promise<Banner>;
221
+ server: ComputedRef<VOneBanner | undefined>;
222
+ banner: ComputedRef<VOneBanner | undefined>;
223
+ index: () => Promise<VOneBanner[]>;
404
224
  }
405
- declare const useBannersStore: pinia.StoreDefinition<"banners", Pick<State$2, "isLoading" | "all" | "aall" | "record">, Pick<State$2, "server" | "banner">, Pick<State$2, "show" | "admin" | "destroy" | "index" | "store" | "update">>;
225
+ declare const useBannersStore: pinia.StoreDefinition<"banners", Pick<BannerState, "isLoading" | "all">, Pick<BannerState, "server" | "banner">, Pick<BannerState, "index">>;
406
226
 
407
- type Bin = {
227
+ type VOneBin = {
408
228
  id: string;
409
229
  content: string;
410
230
  favorite: boolean;
@@ -412,175 +232,150 @@ type Bin = {
412
232
  owner: Record<string, unknown>;
413
233
  visibility: 'private' | 'public';
414
234
  };
415
- declare const useBinsStore: pinia.StoreDefinition<"bins", Pick<{
416
- isLoading: vue.ShallowRef<boolean, boolean>;
417
- isOwner: globalThis.ComputedRef<boolean>;
418
- pinned: globalThis.ComputedRef<{
419
- id: string;
420
- content: string;
421
- favorite: boolean;
422
- pinned: boolean;
423
- owner: Record<string, unknown>;
424
- visibility: "private" | "public";
425
- }[]>;
426
- favorites: globalThis.ComputedRef<{
427
- id: string;
428
- content: string;
429
- favorite: boolean;
430
- pinned: boolean;
431
- owner: Record<string, unknown>;
432
- visibility: "private" | "public";
433
- }[]>;
434
- all: globalThis.Ref<{
435
- id: string;
436
- content: string;
437
- favorite: boolean;
438
- pinned: boolean;
439
- owner: Record<string, unknown>;
440
- visibility: "private" | "public";
441
- }[], Bin[] | {
442
- id: string;
443
- content: string;
444
- favorite: boolean;
445
- pinned: boolean;
446
- owner: Record<string, unknown>;
447
- visibility: "private" | "public";
448
- }[]>;
449
- create: (bin: Bin) => Promise<{
450
- bin: Bin;
451
- }>;
452
- delete: (id: string) => Promise<boolean>;
453
- current: globalThis.Ref<Bin | undefined, Bin | undefined>;
454
- find: (id: string) => Promise<{
455
- bin: Bin | undefined;
456
- }>;
457
- get: () => Promise<{
458
- id: string;
459
- content: string;
460
- favorite: boolean;
461
- pinned: boolean;
462
- owner: Record<string, unknown>;
463
- visibility: "private" | "public";
464
- }[]>;
465
- update: (bin: Bin, id: string) => Promise<{
466
- bin: Bin;
467
- }>;
468
- updateOrCreate: (bin: Bin, id?: string) => Promise<{
469
- bin: Bin;
470
- }>;
471
- }, "isLoading" | "all" | "current">, Pick<{
472
- isLoading: vue.ShallowRef<boolean, boolean>;
473
- isOwner: globalThis.ComputedRef<boolean>;
474
- pinned: globalThis.ComputedRef<{
475
- id: string;
476
- content: string;
477
- favorite: boolean;
478
- pinned: boolean;
479
- owner: Record<string, unknown>;
480
- visibility: "private" | "public";
481
- }[]>;
482
- favorites: globalThis.ComputedRef<{
483
- id: string;
484
- content: string;
485
- favorite: boolean;
486
- pinned: boolean;
487
- owner: Record<string, unknown>;
488
- visibility: "private" | "public";
489
- }[]>;
490
- all: globalThis.Ref<{
491
- id: string;
492
- content: string;
493
- favorite: boolean;
494
- pinned: boolean;
495
- owner: Record<string, unknown>;
496
- visibility: "private" | "public";
497
- }[], Bin[] | {
498
- id: string;
499
- content: string;
500
- favorite: boolean;
501
- pinned: boolean;
502
- owner: Record<string, unknown>;
503
- visibility: "private" | "public";
235
+ interface BinsState {
236
+ isLoading: ShallowRef<boolean>;
237
+ pinned: ComputedRef<VOneBin[]>;
238
+ favorites: ComputedRef<VOneBin[]>;
239
+ all: Ref<VOneBin[]>;
240
+ index: () => Promise<VOneBin[]>;
241
+ }
242
+ declare const useBinsStore: pinia.StoreDefinition<"bins", Pick<BinsState, "isLoading" | "all">, Pick<BinsState, "pinned" | "favorites">, Pick<BinsState, "index">>;
243
+
244
+ interface VOneSendowlDownloadItem {
245
+ name: string;
246
+ url: string;
247
+ type: 'product';
248
+ accessible: boolean;
249
+ downloadable: boolean;
250
+ }
251
+ interface VOneSendowlDownload {
252
+ id: number;
253
+ download_items: VOneSendowlDownloadItem[];
254
+ order_name: string;
255
+ created_at: string;
256
+ download_url: string;
257
+ }
258
+ declare const useDownloadsStore: pinia.StoreDefinition<"downloads", Pick<{
259
+ all: Ref<{
260
+ id: number;
261
+ download_items: {
262
+ name: string;
263
+ url: string;
264
+ type: "product";
265
+ accessible: boolean;
266
+ downloadable: boolean;
267
+ }[];
268
+ order_name: string;
269
+ created_at: string;
270
+ download_url: string;
271
+ }[], VOneSendowlDownload[] | {
272
+ id: number;
273
+ download_items: {
274
+ name: string;
275
+ url: string;
276
+ type: "product";
277
+ accessible: boolean;
278
+ downloadable: boolean;
279
+ }[];
280
+ order_name: string;
281
+ created_at: string;
282
+ download_url: string;
504
283
  }[]>;
505
- create: (bin: Bin) => Promise<{
506
- bin: Bin;
507
- }>;
508
- delete: (id: string) => Promise<boolean>;
509
- current: globalThis.Ref<Bin | undefined, Bin | undefined>;
510
- find: (id: string) => Promise<{
511
- bin: Bin | undefined;
512
- }>;
513
- get: () => Promise<{
514
- id: string;
515
- content: string;
516
- favorite: boolean;
517
- pinned: boolean;
518
- owner: Record<string, unknown>;
519
- visibility: "private" | "public";
284
+ isLoading: ShallowRef<boolean, boolean>;
285
+ index: () => Promise<{
286
+ id: number;
287
+ download_items: {
288
+ name: string;
289
+ url: string;
290
+ type: "product";
291
+ accessible: boolean;
292
+ downloadable: boolean;
293
+ }[];
294
+ order_name: string;
295
+ created_at: string;
296
+ download_url: string;
520
297
  }[]>;
521
- update: (bin: Bin, id: string) => Promise<{
522
- bin: Bin;
523
- }>;
524
- updateOrCreate: (bin: Bin, id?: string) => Promise<{
525
- bin: Bin;
526
- }>;
527
- }, "pinned" | "isOwner" | "favorites">, Pick<{
528
- isLoading: vue.ShallowRef<boolean, boolean>;
529
- isOwner: globalThis.ComputedRef<boolean>;
530
- pinned: globalThis.ComputedRef<{
531
- id: string;
532
- content: string;
533
- favorite: boolean;
534
- pinned: boolean;
535
- owner: Record<string, unknown>;
536
- visibility: "private" | "public";
298
+ }, "isLoading" | "all">, Pick<{
299
+ all: Ref<{
300
+ id: number;
301
+ download_items: {
302
+ name: string;
303
+ url: string;
304
+ type: "product";
305
+ accessible: boolean;
306
+ downloadable: boolean;
307
+ }[];
308
+ order_name: string;
309
+ created_at: string;
310
+ download_url: string;
311
+ }[], VOneSendowlDownload[] | {
312
+ id: number;
313
+ download_items: {
314
+ name: string;
315
+ url: string;
316
+ type: "product";
317
+ accessible: boolean;
318
+ downloadable: boolean;
319
+ }[];
320
+ order_name: string;
321
+ created_at: string;
322
+ download_url: string;
537
323
  }[]>;
538
- favorites: globalThis.ComputedRef<{
539
- id: string;
540
- content: string;
541
- favorite: boolean;
542
- pinned: boolean;
543
- owner: Record<string, unknown>;
544
- visibility: "private" | "public";
324
+ isLoading: ShallowRef<boolean, boolean>;
325
+ index: () => Promise<{
326
+ id: number;
327
+ download_items: {
328
+ name: string;
329
+ url: string;
330
+ type: "product";
331
+ accessible: boolean;
332
+ downloadable: boolean;
333
+ }[];
334
+ order_name: string;
335
+ created_at: string;
336
+ download_url: string;
545
337
  }[]>;
546
- all: globalThis.Ref<{
547
- id: string;
548
- content: string;
549
- favorite: boolean;
550
- pinned: boolean;
551
- owner: Record<string, unknown>;
552
- visibility: "private" | "public";
553
- }[], Bin[] | {
554
- id: string;
555
- content: string;
556
- favorite: boolean;
557
- pinned: boolean;
558
- owner: Record<string, unknown>;
559
- visibility: "private" | "public";
338
+ }, never>, Pick<{
339
+ all: Ref<{
340
+ id: number;
341
+ download_items: {
342
+ name: string;
343
+ url: string;
344
+ type: "product";
345
+ accessible: boolean;
346
+ downloadable: boolean;
347
+ }[];
348
+ order_name: string;
349
+ created_at: string;
350
+ download_url: string;
351
+ }[], VOneSendowlDownload[] | {
352
+ id: number;
353
+ download_items: {
354
+ name: string;
355
+ url: string;
356
+ type: "product";
357
+ accessible: boolean;
358
+ downloadable: boolean;
359
+ }[];
360
+ order_name: string;
361
+ created_at: string;
362
+ download_url: string;
560
363
  }[]>;
561
- create: (bin: Bin) => Promise<{
562
- bin: Bin;
563
- }>;
564
- delete: (id: string) => Promise<boolean>;
565
- current: globalThis.Ref<Bin | undefined, Bin | undefined>;
566
- find: (id: string) => Promise<{
567
- bin: Bin | undefined;
568
- }>;
569
- get: () => Promise<{
570
- id: string;
571
- content: string;
572
- favorite: boolean;
573
- pinned: boolean;
574
- owner: Record<string, unknown>;
575
- visibility: "private" | "public";
364
+ isLoading: ShallowRef<boolean, boolean>;
365
+ index: () => Promise<{
366
+ id: number;
367
+ download_items: {
368
+ name: string;
369
+ url: string;
370
+ type: "product";
371
+ accessible: boolean;
372
+ downloadable: boolean;
373
+ }[];
374
+ order_name: string;
375
+ created_at: string;
376
+ download_url: string;
576
377
  }[]>;
577
- update: (bin: Bin, id: string) => Promise<{
578
- bin: Bin;
579
- }>;
580
- updateOrCreate: (bin: Bin, id?: string) => Promise<{
581
- bin: Bin;
582
- }>;
583
- }, "find" | "get" | "delete" | "update" | "create" | "updateOrCreate">>;
378
+ }, "index">>;
584
379
 
585
380
  declare const useHttpStore: pinia.StoreDefinition<"http", {
586
381
  url: string;
@@ -592,6 +387,33 @@ declare const useHttpStore: pinia.StoreDefinition<"http", {
592
387
  delete(url: string, options?: RequestInit): Promise<Response>;
593
388
  }>;
594
389
 
390
+ interface VOneNotification {
391
+ id: string;
392
+ slug: string;
393
+ title: string;
394
+ created_at: string;
395
+ metadata: {
396
+ active: boolean;
397
+ text: string;
398
+ emoji: string;
399
+ color: {
400
+ key: string;
401
+ value: string;
402
+ };
403
+ action: string;
404
+ action_text: string;
405
+ attributes: Record<string, any>;
406
+ };
407
+ }
408
+ interface NotificationsState {
409
+ all: Ref<VOneNotification[]>;
410
+ isLoading: ShallowRef<boolean>;
411
+ read: ComputedRef<VOneNotification[]>;
412
+ unread: ComputedRef<VOneNotification[]>;
413
+ index: () => Promise<VOneNotification[]>;
414
+ }
415
+ declare const useNotificationsStore: pinia.StoreDefinition<"notifications", Pick<NotificationsState, "isLoading" | "all">, Pick<NotificationsState, "read" | "unread">, Pick<NotificationsState, "index">>;
416
+
595
417
  interface SubscriptionItemPlan {
596
418
  id: string;
597
419
  amount: number;
@@ -617,271 +439,37 @@ interface Invoice {
617
439
  status: string;
618
440
  pdf: string;
619
441
  }
620
- declare const useOneStore: pinia.StoreDefinition<"one", Pick<{
621
- info: globalThis.Ref<Info | undefined, Info | undefined>;
622
- interval: globalThis.ComputedRef<"month" | "year" | undefined>;
623
- subscriptionType: globalThis.ComputedRef<"solo" | "team" | undefined>;
624
- access: globalThis.Ref<string[], string[]>;
625
- invoices: globalThis.Ref<{
626
- date: number;
627
- amount: number;
628
- status: string;
629
- pdf: string;
630
- }[], Invoice[] | {
631
- date: number;
632
- amount: number;
633
- status: string;
634
- pdf: string;
635
- }[]>;
636
- sessionId: globalThis.ComputedRef<string>;
637
- subscription: globalThis.ComputedRef<{
638
- id: string;
639
- platform: string;
640
- interval: "month" | "year" | "once";
641
- target: string;
642
- tierName: string;
643
- amount: number;
644
- isActive: boolean;
645
- createdAt: Date;
646
- } | undefined>;
647
- monthlyTotal: globalThis.ComputedRef<number>;
648
- hasBilling: globalThis.ComputedRef<boolean>;
649
- isLoading: vue.ShallowRef<boolean, boolean>;
650
- isOpen: vue.ShallowRef<boolean, boolean>;
651
- isSubscriber: globalThis.ComputedRef<boolean>;
652
- github: globalThis.ComputedRef<{
653
- id: string;
654
- platform: string;
655
- interval: "month" | "year" | "once";
656
- target: string;
657
- tierName: string;
658
- amount: number;
659
- isActive: boolean;
660
- createdAt: Date;
661
- } | undefined>;
662
- patreon: globalThis.ComputedRef<{
663
- id: string;
664
- platform: string;
665
- interval: "month" | "year" | "once";
666
- target: string;
667
- tierName: string;
668
- amount: number;
669
- isActive: boolean;
670
- createdAt: Date;
671
- } | undefined>;
672
- discord: globalThis.ComputedRef<{
673
- id: string;
674
- platform: string;
675
- interval: "month" | "year" | "once";
676
- target: string;
677
- tierName: string;
678
- amount: number;
679
- isActive: boolean;
680
- createdAt: Date;
681
- } | undefined>;
682
- shopify: globalThis.ComputedRef<{
683
- id: string;
684
- emails: string[];
685
- provider: string;
686
- userId: string;
687
- userHandle: string;
688
- primary: boolean;
689
- } | undefined>;
690
- one: globalThis.ComputedRef<{
691
- id: string;
692
- platform: string;
693
- interval: "month" | "year" | "once";
694
- target: string;
695
- tierName: string;
696
- amount: number;
697
- isActive: boolean;
698
- createdAt: Date;
699
- } | undefined>;
700
- activate: () => Promise<void>;
701
- cancel: () => Promise<void>;
702
- manage: () => Promise<void>;
703
- modify: (interval: SubscriptionItemPlan["interval"], type: SubscriptionItemPlan["type"]) => Promise<void>;
704
- resetQuery: () => void;
705
- subscribe: (interval: SubscriptionItemPlan["interval"], type: SubscriptionItemPlan["type"]) => Promise<void>;
706
- subscriptionInfo: () => Promise<any>;
707
- verify: () => Promise<void>;
708
- }, "isLoading" | "info" | "access" | "invoices" | "isOpen">, Pick<{
709
- info: globalThis.Ref<Info | undefined, Info | undefined>;
710
- interval: globalThis.ComputedRef<"month" | "year" | undefined>;
711
- subscriptionType: globalThis.ComputedRef<"solo" | "team" | undefined>;
712
- access: globalThis.Ref<string[], string[]>;
713
- invoices: globalThis.Ref<{
714
- date: number;
715
- amount: number;
716
- status: string;
717
- pdf: string;
718
- }[], Invoice[] | {
719
- date: number;
720
- amount: number;
721
- status: string;
722
- pdf: string;
723
- }[]>;
724
- sessionId: globalThis.ComputedRef<string>;
725
- subscription: globalThis.ComputedRef<{
726
- id: string;
727
- platform: string;
728
- interval: "month" | "year" | "once";
729
- target: string;
730
- tierName: string;
731
- amount: number;
732
- isActive: boolean;
733
- createdAt: Date;
734
- } | undefined>;
735
- monthlyTotal: globalThis.ComputedRef<number>;
736
- hasBilling: globalThis.ComputedRef<boolean>;
737
- isLoading: vue.ShallowRef<boolean, boolean>;
738
- isOpen: vue.ShallowRef<boolean, boolean>;
739
- isSubscriber: globalThis.ComputedRef<boolean>;
740
- github: globalThis.ComputedRef<{
741
- id: string;
742
- platform: string;
743
- interval: "month" | "year" | "once";
744
- target: string;
745
- tierName: string;
746
- amount: number;
747
- isActive: boolean;
748
- createdAt: Date;
749
- } | undefined>;
750
- patreon: globalThis.ComputedRef<{
751
- id: string;
752
- platform: string;
753
- interval: "month" | "year" | "once";
754
- target: string;
755
- tierName: string;
756
- amount: number;
757
- isActive: boolean;
758
- createdAt: Date;
759
- } | undefined>;
760
- discord: globalThis.ComputedRef<{
761
- id: string;
762
- platform: string;
763
- interval: "month" | "year" | "once";
764
- target: string;
442
+ interface OneState {
443
+ info: Ref<Info | undefined>;
444
+ interval: ComputedRef<SubscriptionItemPlan['interval'] | undefined>;
445
+ subscriptionType: ComputedRef<SubscriptionItemPlan['type'] | undefined>;
446
+ access: Ref<string[]>;
447
+ invoices: Ref<Invoice[]>;
448
+ sessionId: ComputedRef<string | undefined>;
449
+ subscription: ComputedRef<{
765
450
  tierName: string;
766
- amount: number;
767
451
  isActive: boolean;
768
- createdAt: Date;
769
- } | undefined>;
770
- shopify: globalThis.ComputedRef<{
771
- id: string;
772
- emails: string[];
773
- provider: string;
774
- userId: string;
775
- userHandle: string;
776
- primary: boolean;
777
- } | undefined>;
778
- one: globalThis.ComputedRef<{
779
- id: string;
780
452
  platform: string;
781
- interval: "month" | "year" | "once";
782
- target: string;
783
- tierName: string;
784
- amount: number;
785
- isActive: boolean;
786
- createdAt: Date;
787
- } | undefined>;
788
- activate: () => Promise<void>;
789
- cancel: () => Promise<void>;
790
- manage: () => Promise<void>;
791
- modify: (interval: SubscriptionItemPlan["interval"], type: SubscriptionItemPlan["type"]) => Promise<void>;
792
- resetQuery: () => void;
793
- subscribe: (interval: SubscriptionItemPlan["interval"], type: SubscriptionItemPlan["type"]) => Promise<void>;
794
- subscriptionInfo: () => Promise<any>;
795
- verify: () => Promise<void>;
796
- }, "one" | "interval" | "github" | "discord" | "patreon" | "shopify" | "subscriptionType" | "sessionId" | "subscription" | "monthlyTotal" | "hasBilling" | "isSubscriber">, Pick<{
797
- info: globalThis.Ref<Info | undefined, Info | undefined>;
798
- interval: globalThis.ComputedRef<"month" | "year" | undefined>;
799
- subscriptionType: globalThis.ComputedRef<"solo" | "team" | undefined>;
800
- access: globalThis.Ref<string[], string[]>;
801
- invoices: globalThis.Ref<{
802
- date: number;
803
- amount: number;
804
- status: string;
805
- pdf: string;
806
- }[], Invoice[] | {
807
- date: number;
808
- amount: number;
809
- status: string;
810
- pdf: string;
811
- }[]>;
812
- sessionId: globalThis.ComputedRef<string>;
813
- subscription: globalThis.ComputedRef<{
814
- id: string;
815
- platform: string;
816
- interval: "month" | "year" | "once";
817
- target: string;
818
- tierName: string;
819
- amount: number;
820
- isActive: boolean;
821
- createdAt: Date;
822
- } | undefined>;
823
- monthlyTotal: globalThis.ComputedRef<number>;
824
- hasBilling: globalThis.ComputedRef<boolean>;
825
- isLoading: vue.ShallowRef<boolean, boolean>;
826
- isOpen: vue.ShallowRef<boolean, boolean>;
827
- isSubscriber: globalThis.ComputedRef<boolean>;
828
- github: globalThis.ComputedRef<{
829
- id: string;
830
- platform: string;
831
- interval: "month" | "year" | "once";
832
- target: string;
833
- tierName: string;
834
- amount: number;
835
- isActive: boolean;
836
- createdAt: Date;
837
- } | undefined>;
838
- patreon: globalThis.ComputedRef<{
839
- id: string;
840
- platform: string;
841
- interval: "month" | "year" | "once";
842
- target: string;
843
- tierName: string;
844
- amount: number;
845
- isActive: boolean;
846
- createdAt: Date;
847
- } | undefined>;
848
- discord: globalThis.ComputedRef<{
849
- id: string;
850
- platform: string;
851
- interval: "month" | "year" | "once";
852
- target: string;
853
- tierName: string;
854
- amount: number;
855
- isActive: boolean;
856
- createdAt: Date;
857
- } | undefined>;
858
- shopify: globalThis.ComputedRef<{
859
- id: string;
860
- emails: string[];
861
- provider: string;
862
- userId: string;
863
- userHandle: string;
864
- primary: boolean;
865
- } | undefined>;
866
- one: globalThis.ComputedRef<{
867
- id: string;
868
- platform: string;
869
- interval: "month" | "year" | "once";
870
- target: string;
871
- tierName: string;
872
- amount: number;
873
- isActive: boolean;
874
- createdAt: Date;
875
453
  } | undefined>;
454
+ monthlyTotal: ComputedRef<number>;
455
+ hasBilling: ComputedRef<boolean>;
456
+ isLoading: ShallowRef<boolean>;
457
+ isOpen: ShallowRef<boolean>;
458
+ isSubscriber: ComputedRef<boolean>;
459
+ github: ComputedRef<VOneSponsorship | undefined>;
460
+ discord: ComputedRef<VOneSponsorship | undefined>;
461
+ shopify: ComputedRef<VOneIdentity | undefined>;
462
+ one: ComputedRef<VOneSponsorship | undefined>;
876
463
  activate: () => Promise<void>;
877
464
  cancel: () => Promise<void>;
878
465
  manage: () => Promise<void>;
879
- modify: (interval: SubscriptionItemPlan["interval"], type: SubscriptionItemPlan["type"]) => Promise<void>;
466
+ modify: (interval: SubscriptionItemPlan['interval'], type: SubscriptionItemPlan['type']) => Promise<void>;
880
467
  resetQuery: () => void;
881
- subscribe: (interval: SubscriptionItemPlan["interval"], type: SubscriptionItemPlan["type"]) => Promise<void>;
468
+ subscribe: (interval: SubscriptionItemPlan['interval'], type: SubscriptionItemPlan['type']) => Promise<void>;
882
469
  subscriptionInfo: () => Promise<any>;
883
470
  verify: () => Promise<void>;
884
- }, "verify" | "activate" | "cancel" | "manage" | "modify" | "resetQuery" | "subscribe" | "subscriptionInfo">>;
471
+ }
472
+ 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" | "verify">>;
885
473
 
886
474
  interface ShopifyProduct {
887
475
  id: string;
@@ -893,147 +481,44 @@ interface ShopifyProduct {
893
481
  price: string;
894
482
  image: string;
895
483
  }
896
- interface State$1 {
484
+ interface ProductsState {
897
485
  all: Ref<ShopifyProduct[]>;
898
486
  themes: ComputedRef<ShopifyProduct[]>;
899
487
  index: () => Promise<ShopifyProduct[]>;
900
488
  randomize: (array: ShopifyProduct[]) => ShopifyProduct[];
901
489
  }
902
- declare const useProductsStore: pinia.StoreDefinition<"products", Pick<State$1, "all">, Pick<State$1, "themes">, Pick<State$1, "index" | "randomize">>;
490
+ declare const useProductsStore: pinia.StoreDefinition<"products", Pick<ProductsState, "all">, Pick<ProductsState, "themes">, Pick<ProductsState, "index" | "randomize">>;
903
491
 
904
492
  type CosmicImage = {
905
493
  url: string;
906
494
  } | null;
907
- interface Promotion {
495
+ interface VOnePromotion {
908
496
  id: string;
909
497
  slug: string;
910
- title: string;
911
- metadata: {
912
- active: boolean;
913
- color: string;
914
- text: string;
915
- short_text: string;
916
- images: {
917
- default: CosmicImage;
918
- logolight: CosmicImage;
919
- logodark: CosmicImage;
920
- bgdark: CosmicImage;
921
- bglight: CosmicImage;
922
- };
923
- url: string;
924
- discoverable: boolean;
925
- advertisement: boolean;
926
- startdate: string | null;
927
- enddate: string | null;
928
- price: number;
929
- type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
930
- };
931
- }
932
- declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
933
- all: globalThis.Ref<{
934
- id: string;
935
- slug: string;
936
- title: string;
937
- metadata: {
938
- active: boolean;
939
- color: string;
940
- text: string;
941
- short_text: string;
942
- images: {
943
- default: {
944
- url: string;
945
- } | null;
946
- logolight: {
947
- url: string;
948
- } | null;
949
- logodark: {
950
- url: string;
951
- } | null;
952
- bgdark: {
953
- url: string;
954
- } | null;
955
- bglight: {
956
- url: string;
957
- } | null;
958
- };
959
- url: string;
960
- discoverable: boolean;
961
- advertisement: boolean;
962
- startdate: string | null;
963
- enddate: string | null;
964
- price: number;
965
- type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
966
- };
967
- }[], Promotion[] | {
968
- id: string;
969
- slug: string;
970
- title: string;
971
- metadata: {
972
- active: boolean;
973
- color: string;
974
- text: string;
975
- short_text: string;
976
- images: {
977
- default: {
978
- url: string;
979
- } | null;
980
- logolight: {
981
- url: string;
982
- } | null;
983
- logodark: {
984
- url: string;
985
- } | null;
986
- bgdark: {
987
- url: string;
988
- } | null;
989
- bglight: {
990
- url: string;
991
- } | null;
992
- };
993
- url: string;
994
- discoverable: boolean;
995
- advertisement: boolean;
996
- startdate: string | null;
997
- enddate: string | null;
998
- price: number;
999
- type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1000
- };
1001
- }[]>;
1002
- aall: globalThis.Ref<{
1003
- id: string;
1004
- slug: string;
1005
- title: string;
1006
- metadata: {
1007
- active: boolean;
1008
- color: string;
1009
- text: string;
1010
- short_text: string;
1011
- images: {
1012
- default: {
1013
- url: string;
1014
- } | null;
1015
- logolight: {
1016
- url: string;
1017
- } | null;
1018
- logodark: {
1019
- url: string;
1020
- } | null;
1021
- bgdark: {
1022
- url: string;
1023
- } | null;
1024
- bglight: {
1025
- url: string;
1026
- } | null;
1027
- };
1028
- url: string;
1029
- discoverable: boolean;
1030
- advertisement: boolean;
1031
- startdate: string | null;
1032
- enddate: string | null;
1033
- price: number;
1034
- type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
498
+ title: string;
499
+ metadata: {
500
+ active: boolean;
501
+ color: string;
502
+ text: string;
503
+ short_text: string;
504
+ images: {
505
+ default: CosmicImage;
506
+ logolight: CosmicImage;
507
+ logodark: CosmicImage;
508
+ bgdark: CosmicImage;
509
+ bglight: CosmicImage;
1035
510
  };
1036
- }[], Promotion[] | {
511
+ url: string;
512
+ discoverable: boolean;
513
+ advertisement: boolean;
514
+ startdate: string | null;
515
+ enddate: string | null;
516
+ price: number;
517
+ type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
518
+ };
519
+ }
520
+ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
521
+ all: globalThis.Ref<{
1037
522
  id: string;
1038
523
  slug: string;
1039
524
  title: string;
@@ -1067,10 +552,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
1067
552
  price: number;
1068
553
  type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1069
554
  };
1070
- }[]>;
1071
- isLoading: vue.ShallowRef<boolean, boolean>;
1072
- hasLoaded: vue.ShallowRef<boolean, boolean>;
1073
- discoverable: globalThis.ComputedRef<{
555
+ }[], VOnePromotion[] | {
1074
556
  id: string;
1075
557
  slug: string;
1076
558
  title: string;
@@ -1105,8 +587,9 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
1105
587
  type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1106
588
  };
1107
589
  }[]>;
1108
- record: globalThis.Ref<Promotion | null | undefined, Promotion | null | undefined>;
1109
- admin: () => Promise<{
590
+ isLoading: vue.ShallowRef<boolean, boolean>;
591
+ hasLoaded: vue.ShallowRef<boolean, boolean>;
592
+ discoverable: globalThis.ComputedRef<{
1110
593
  id: string;
1111
594
  slug: string;
1112
595
  title: string;
@@ -1141,7 +624,6 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
1141
624
  type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1142
625
  };
1143
626
  }[]>;
1144
- destroy: () => Promise<void>;
1145
627
  index: () => Promise<{
1146
628
  id: string;
1147
629
  slug: string;
@@ -1177,11 +659,8 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
1177
659
  type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1178
660
  };
1179
661
  }[]>;
1180
- random: (array: Promotion[]) => Promotion;
1181
- show: (id: string) => Promise<Promotion | undefined>;
1182
- store: (data: FormData) => Promise<Promotion | undefined>;
1183
- update: (id: string, data: FormData) => Promise<Promotion | undefined>;
1184
- }, "isLoading" | "all" | "aall" | "record" | "hasLoaded">, Pick<{
662
+ random: (array: VOnePromotion[]) => VOnePromotion;
663
+ }, "isLoading" | "all" | "hasLoaded">, Pick<{
1185
664
  all: globalThis.Ref<{
1186
665
  id: string;
1187
666
  slug: string;
@@ -1216,76 +695,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
1216
695
  price: number;
1217
696
  type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1218
697
  };
1219
- }[], Promotion[] | {
1220
- id: string;
1221
- slug: string;
1222
- title: string;
1223
- metadata: {
1224
- active: boolean;
1225
- color: string;
1226
- text: string;
1227
- short_text: string;
1228
- images: {
1229
- default: {
1230
- url: string;
1231
- } | null;
1232
- logolight: {
1233
- url: string;
1234
- } | null;
1235
- logodark: {
1236
- url: string;
1237
- } | null;
1238
- bgdark: {
1239
- url: string;
1240
- } | null;
1241
- bglight: {
1242
- url: string;
1243
- } | null;
1244
- };
1245
- url: string;
1246
- discoverable: boolean;
1247
- advertisement: boolean;
1248
- startdate: string | null;
1249
- enddate: string | null;
1250
- price: number;
1251
- type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1252
- };
1253
- }[]>;
1254
- aall: globalThis.Ref<{
1255
- id: string;
1256
- slug: string;
1257
- title: string;
1258
- metadata: {
1259
- active: boolean;
1260
- color: string;
1261
- text: string;
1262
- short_text: string;
1263
- images: {
1264
- default: {
1265
- url: string;
1266
- } | null;
1267
- logolight: {
1268
- url: string;
1269
- } | null;
1270
- logodark: {
1271
- url: string;
1272
- } | null;
1273
- bgdark: {
1274
- url: string;
1275
- } | null;
1276
- bglight: {
1277
- url: string;
1278
- } | null;
1279
- };
1280
- url: string;
1281
- discoverable: boolean;
1282
- advertisement: boolean;
1283
- startdate: string | null;
1284
- enddate: string | null;
1285
- price: number;
1286
- type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1287
- };
1288
- }[], Promotion[] | {
698
+ }[], VOnePromotion[] | {
1289
699
  id: string;
1290
700
  slug: string;
1291
701
  title: string;
@@ -1357,43 +767,6 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
1357
767
  type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1358
768
  };
1359
769
  }[]>;
1360
- record: globalThis.Ref<Promotion | null | undefined, Promotion | null | undefined>;
1361
- admin: () => Promise<{
1362
- id: string;
1363
- slug: string;
1364
- title: string;
1365
- metadata: {
1366
- active: boolean;
1367
- color: string;
1368
- text: string;
1369
- short_text: string;
1370
- images: {
1371
- default: {
1372
- url: string;
1373
- } | null;
1374
- logolight: {
1375
- url: string;
1376
- } | null;
1377
- logodark: {
1378
- url: string;
1379
- } | null;
1380
- bgdark: {
1381
- url: string;
1382
- } | null;
1383
- bglight: {
1384
- url: string;
1385
- } | null;
1386
- };
1387
- url: string;
1388
- discoverable: boolean;
1389
- advertisement: boolean;
1390
- startdate: string | null;
1391
- enddate: string | null;
1392
- price: number;
1393
- type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1394
- };
1395
- }[]>;
1396
- destroy: () => Promise<void>;
1397
770
  index: () => Promise<{
1398
771
  id: string;
1399
772
  slug: string;
@@ -1429,10 +802,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
1429
802
  type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1430
803
  };
1431
804
  }[]>;
1432
- random: (array: Promotion[]) => Promotion;
1433
- show: (id: string) => Promise<Promotion | undefined>;
1434
- store: (data: FormData) => Promise<Promotion | undefined>;
1435
- update: (id: string, data: FormData) => Promise<Promotion | undefined>;
805
+ random: (array: VOnePromotion[]) => VOnePromotion;
1436
806
  }, "discoverable">, Pick<{
1437
807
  all: globalThis.Ref<{
1438
808
  id: string;
@@ -1468,76 +838,7 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
1468
838
  price: number;
1469
839
  type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1470
840
  };
1471
- }[], Promotion[] | {
1472
- id: string;
1473
- slug: string;
1474
- title: string;
1475
- metadata: {
1476
- active: boolean;
1477
- color: string;
1478
- text: string;
1479
- short_text: string;
1480
- images: {
1481
- default: {
1482
- url: string;
1483
- } | null;
1484
- logolight: {
1485
- url: string;
1486
- } | null;
1487
- logodark: {
1488
- url: string;
1489
- } | null;
1490
- bgdark: {
1491
- url: string;
1492
- } | null;
1493
- bglight: {
1494
- url: string;
1495
- } | null;
1496
- };
1497
- url: string;
1498
- discoverable: boolean;
1499
- advertisement: boolean;
1500
- startdate: string | null;
1501
- enddate: string | null;
1502
- price: number;
1503
- type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1504
- };
1505
- }[]>;
1506
- aall: globalThis.Ref<{
1507
- id: string;
1508
- slug: string;
1509
- title: string;
1510
- metadata: {
1511
- active: boolean;
1512
- color: string;
1513
- text: string;
1514
- short_text: string;
1515
- images: {
1516
- default: {
1517
- url: string;
1518
- } | null;
1519
- logolight: {
1520
- url: string;
1521
- } | null;
1522
- logodark: {
1523
- url: string;
1524
- } | null;
1525
- bgdark: {
1526
- url: string;
1527
- } | null;
1528
- bglight: {
1529
- url: string;
1530
- } | null;
1531
- };
1532
- url: string;
1533
- discoverable: boolean;
1534
- advertisement: boolean;
1535
- startdate: string | null;
1536
- enddate: string | null;
1537
- price: number;
1538
- type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1539
- };
1540
- }[], Promotion[] | {
841
+ }[], VOnePromotion[] | {
1541
842
  id: string;
1542
843
  slug: string;
1543
844
  title: string;
@@ -1609,43 +910,6 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
1609
910
  type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1610
911
  };
1611
912
  }[]>;
1612
- record: globalThis.Ref<Promotion | null | undefined, Promotion | null | undefined>;
1613
- admin: () => Promise<{
1614
- id: string;
1615
- slug: string;
1616
- title: string;
1617
- metadata: {
1618
- active: boolean;
1619
- color: string;
1620
- text: string;
1621
- short_text: string;
1622
- images: {
1623
- default: {
1624
- url: string;
1625
- } | null;
1626
- logolight: {
1627
- url: string;
1628
- } | null;
1629
- logodark: {
1630
- url: string;
1631
- } | null;
1632
- bgdark: {
1633
- url: string;
1634
- } | null;
1635
- bglight: {
1636
- url: string;
1637
- } | null;
1638
- };
1639
- url: string;
1640
- discoverable: boolean;
1641
- advertisement: boolean;
1642
- startdate: string | null;
1643
- enddate: string | null;
1644
- price: number;
1645
- type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1646
- };
1647
- }[]>;
1648
- destroy: () => Promise<void>;
1649
913
  index: () => Promise<{
1650
914
  id: string;
1651
915
  slug: string;
@@ -1681,37 +945,72 @@ declare const usePromotionsStore: pinia.StoreDefinition<"promotions", Pick<{
1681
945
  type: "theme" | "video" | "book" | "course" | "website" | "job" | "merch" | "digital" | "services" | "documentation";
1682
946
  };
1683
947
  }[]>;
1684
- random: (array: Promotion[]) => Promotion;
1685
- show: (id: string) => Promise<Promotion | undefined>;
1686
- store: (data: FormData) => Promise<Promotion | undefined>;
1687
- update: (id: string, data: FormData) => Promise<Promotion | undefined>;
1688
- }, "show" | "admin" | "destroy" | "index" | "store" | "update" | "random">>;
948
+ random: (array: VOnePromotion[]) => VOnePromotion;
949
+ }, "index" | "random">>;
1689
950
 
1690
- type Snackbar = Record<string, any>;
1691
- interface SnackbarQueueState {
951
+ type Snackbar = string | Record<string, any>;
952
+ interface QueueState {
1692
953
  queue: Ref<Snackbar[]>;
1693
- show: (text: Record<string, any> | string) => void;
1694
- showError: (text: Record<string, any> | string) => void;
954
+ show: (text: Snackbar) => void;
955
+ showError: (text: Snackbar) => void;
1695
956
  }
1696
- declare const useQueueStore: pinia.StoreDefinition<"Queue", Pick<SnackbarQueueState, "queue">, Pick<SnackbarQueueState, never>, Pick<SnackbarQueueState, "show" | "showError">>;
957
+ declare const useQueueStore: pinia.StoreDefinition<"Queue", Pick<QueueState, "queue">, Pick<QueueState, never>, Pick<QueueState, "show" | "showError">>;
1697
958
 
1698
- interface Suit {
959
+ interface VOneSuit {
1699
960
  'app-bar': string;
1700
961
  'drawer': string;
1701
- footer: string;
962
+ 'footer': string;
1702
963
  }
1703
- declare const useSettingsStore: pinia.StoreDefinition<"settings", Pick<{
1704
- suit: ComputedRef<Partial<Suit>>;
964
+ interface SettingsState {
1705
965
  CDN_URL: string;
1706
- }, "CDN_URL">, Pick<{
1707
- suit: ComputedRef<Partial<Suit>>;
1708
- CDN_URL: string;
1709
- }, "suit">, Pick<{
1710
- suit: ComputedRef<Partial<Suit>>;
1711
- CDN_URL: string;
1712
- }, never>>;
966
+ suit: ComputedRef<Partial<VOneSuit>>;
967
+ }
968
+ declare const useSettingsStore: pinia.StoreDefinition<"settings", Pick<SettingsState, "CDN_URL">, Pick<SettingsState, "suit">, Pick<SettingsState, never>>;
969
+
970
+ interface SiteState {
971
+ id: Ref<string[]>;
972
+ url: Ref<string>;
973
+ }
974
+ declare const useSiteStore: pinia.StoreDefinition<"site", Pick<SiteState, keyof SiteState>, Pick<SiteState, never>, Pick<SiteState, never>>;
975
+
976
+ interface VOneSponsor {
977
+ id: string;
978
+ status: 'published' | 'draft';
979
+ modified_at: string;
980
+ created_at: string;
981
+ slug: string;
982
+ title: string;
983
+ metadata: {
984
+ active: boolean;
985
+ href: string;
986
+ start_date: string | null;
987
+ source: string;
988
+ name: string;
989
+ level: {
990
+ key: string;
991
+ value: string;
992
+ } | null;
993
+ tier: string;
994
+ end_date: string | null;
995
+ logodark: {
996
+ url: string;
997
+ } | null;
998
+ logolight: {
999
+ url: string;
1000
+ } | null;
1001
+ };
1002
+ }
1003
+ type SponsorState = {
1004
+ isLoading: Ref<boolean>;
1005
+ all: Ref<VOneSponsor[]>;
1006
+ sponsors: Ref<VOneSponsor[]>;
1007
+ byTier: ComputedRef<Record<string, VOneSponsor[]>>;
1008
+ bySlug: (slug: string) => VOneSponsor | undefined;
1009
+ index: () => Promise<VOneSponsor[]>;
1010
+ };
1011
+ declare const useSponsorsStore: pinia.StoreDefinition<"sponsors", Pick<SponsorState, "isLoading" | "all" | "sponsors">, Pick<SponsorState, "byTier">, Pick<SponsorState, "index" | "bySlug">>;
1713
1012
 
1714
- interface Spot {
1013
+ interface VOneSpot {
1715
1014
  id: string;
1716
1015
  status: 'published' | 'draft';
1717
1016
  modified_at: string;
@@ -1730,20 +1029,13 @@ interface Spot {
1730
1029
  } | null;
1731
1030
  };
1732
1031
  }
1733
- interface State {
1734
- all: Ref<Spot[]>;
1735
- aall: Ref<Spot[]>;
1032
+ interface SpotState {
1033
+ all: Ref<VOneSpot[]>;
1736
1034
  isLoading: ShallowRef<boolean>;
1737
- spot: ComputedRef<Spot | undefined>;
1738
- record: Ref<Spot | undefined>;
1739
- admin: () => Promise<Spot[]>;
1740
- index: () => Promise<Spot[]>;
1741
- show: (slug: string) => Promise<Spot>;
1742
- store: (data: FormData) => Promise<Spot>;
1743
- update: (slug: string, data: FormData) => Promise<Spot>;
1744
- destroy: (slug: string) => Promise<void>;
1035
+ spot: ComputedRef<VOneSpot | undefined>;
1036
+ index: () => Promise<VOneSpot[]>;
1745
1037
  }
1746
- declare const useSpotsStore: pinia.StoreDefinition<"spots", Pick<State, "isLoading" | "all" | "aall" | "record">, Pick<State, "spot">, Pick<State, "show" | "admin" | "destroy" | "index" | "store" | "update">>;
1038
+ declare const useSpotsStore: pinia.StoreDefinition<"spots", Pick<SpotState, "isLoading" | "all">, Pick<SpotState, "spot">, Pick<SpotState, "index">>;
1747
1039
 
1748
1040
  declare const useUserStore: pinia.StoreDefinition<"user", Pick<{
1749
1041
  load: () => void;
@@ -1768,11 +1060,11 @@ declare const useUserStore: pinia.StoreDefinition<"user", Pick<{
1768
1060
  pinned: globalThis.Ref<Record<string, unknown>[], Record<string, unknown>[]>;
1769
1061
  suits: globalThis.Ref<{
1770
1062
  show: boolean;
1771
- elements: (keyof Suit)[];
1063
+ elements: (keyof VOneSuit)[];
1772
1064
  suit: string;
1773
1065
  }, {
1774
1066
  show: boolean;
1775
- elements: (keyof Suit)[];
1067
+ elements: (keyof VOneSuit)[];
1776
1068
  suit: string;
1777
1069
  }>;
1778
1070
  colors: globalThis.Ref<{
@@ -1805,7 +1097,7 @@ declare const useUserStore: pinia.StoreDefinition<"user", Pick<{
1805
1097
  jobs: null | number;
1806
1098
  };
1807
1099
  }>;
1808
- }, "v" | "api" | "avatar" | "dev" | "disableAds" | "composition" | "pwaRefresh" | "slashSearch" | "syncSettings" | "showHouseAds" | "theme" | "mixedTheme" | "direction" | "quickbar" | "railDrawer" | "pins" | "pinned" | "suits" | "colors" | "notifications">, Pick<{
1100
+ }, "theme" | "v" | "api" | "avatar" | "dev" | "disableAds" | "composition" | "pwaRefresh" | "slashSearch" | "syncSettings" | "showHouseAds" | "mixedTheme" | "direction" | "quickbar" | "railDrawer" | "pins" | "pinned" | "suits" | "colors" | "notifications">, Pick<{
1809
1101
  load: () => void;
1810
1102
  save: () => void;
1811
1103
  reset: () => void;
@@ -1828,11 +1120,11 @@ declare const useUserStore: pinia.StoreDefinition<"user", Pick<{
1828
1120
  pinned: globalThis.Ref<Record<string, unknown>[], Record<string, unknown>[]>;
1829
1121
  suits: globalThis.Ref<{
1830
1122
  show: boolean;
1831
- elements: (keyof Suit)[];
1123
+ elements: (keyof VOneSuit)[];
1832
1124
  suit: string;
1833
1125
  }, {
1834
1126
  show: boolean;
1835
- elements: (keyof Suit)[];
1127
+ elements: (keyof VOneSuit)[];
1836
1128
  suit: string;
1837
1129
  }>;
1838
1130
  colors: globalThis.Ref<{
@@ -1888,11 +1180,11 @@ declare const useUserStore: pinia.StoreDefinition<"user", Pick<{
1888
1180
  pinned: globalThis.Ref<Record<string, unknown>[], Record<string, unknown>[]>;
1889
1181
  suits: globalThis.Ref<{
1890
1182
  show: boolean;
1891
- elements: (keyof Suit)[];
1183
+ elements: (keyof VOneSuit)[];
1892
1184
  suit: string;
1893
1185
  }, {
1894
1186
  show: boolean;
1895
- elements: (keyof Suit)[];
1187
+ elements: (keyof VOneSuit)[];
1896
1188
  suit: string;
1897
1189
  }>;
1898
1190
  colors: globalThis.Ref<{
@@ -1932,4 +1224,5 @@ declare function createOne(): {
1932
1224
  };
1933
1225
  declare function one(id: string[], url: string): (context: PiniaPluginContext) => void;
1934
1226
 
1935
- export { aliases, createOne, one, useAuthStore, useBannersStore, useBinsStore, useHttpStore, useOneStore, useProductsStore, usePromotionsStore, useQueueStore, useSettingsStore, useSpotsStore, useUserStore };
1227
+ export { aliases, createOne, one, useAuthStore, useBannersStore, useBinsStore, useDownloadsStore, useHttpStore, useNotificationsStore, useOneStore, useProductsStore, usePromotionsStore, useQueueStore, useSettingsStore, useSiteStore, useSponsorsStore, useSpotsStore, useTeamStore, useUserStore };
1228
+ export type { ShopifyProduct, VOneBanner, VOneBin, VOneIdentity, VOneNotification, VOnePromotion, VOneSendowlDownload, VOneSendowlDownloadItem, VOneSponsor, VOneSponsorship, VOneSpot, VOneSuit, VOneTeam, VOneUser };