@vuetify/one 2.13.2 → 3.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/auth-Bgoyy62h.js +703 -0
- package/dist/index.d.ts +394 -151
- package/dist/index.js +1218 -1219
- package/dist/one.css +1 -1
- package/dist/stores/auth.d.ts +300 -57
- package/dist/stores/auth.js +2 -2
- package/package.json +33 -34
- package/README.md +0 -79
- package/dist/auth-Zr1gGj1z.js +0 -589
package/dist/index.d.ts
CHANGED
|
@@ -1,192 +1,319 @@
|
|
|
1
|
-
import { Ref,
|
|
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';
|
|
5
|
+
export { AuthConfig, AuthPluginOptions, DeviceAuthStatus, DeviceCode, VOneAccessToken, VOneIdentity, VOneRole, VOneSponsorship, VOneUser, createAuth, createAuthPlugin, useApiKeyStore, useDeviceStore, useHttpStore } from '@vuetify/auth';
|
|
4
6
|
|
|
5
7
|
declare const aliases: any;
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Extended auth store for @vuetify/one
|
|
11
|
+
* Wraps @vuetify/auth and adds Vuetify One specific integrations
|
|
12
|
+
*/
|
|
13
|
+
declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<{
|
|
14
|
+
user: Readonly<globalThis.Ref<{
|
|
12
15
|
id: string;
|
|
16
|
+
isAdmin: boolean;
|
|
17
|
+
role: VOneRole;
|
|
13
18
|
name: string;
|
|
19
|
+
shortid: string;
|
|
14
20
|
picture: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
name: string;
|
|
19
|
-
picture: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
declare const useTeamStore: pinia.StoreDefinition<"team", Pick<{
|
|
23
|
-
team: Ref<{
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
inviteCode: string;
|
|
27
|
-
members: {
|
|
21
|
+
settings: Record<string, any> | null;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
identities: {
|
|
28
24
|
id: string;
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
emails: string[];
|
|
26
|
+
provider: string;
|
|
27
|
+
userId: string;
|
|
28
|
+
userHandle: string;
|
|
29
|
+
primary: boolean;
|
|
31
30
|
}[];
|
|
32
|
-
|
|
31
|
+
sponsorships: {
|
|
32
|
+
id: string;
|
|
33
|
+
platform: string;
|
|
34
|
+
interval: "month" | "year" | "once";
|
|
35
|
+
target: string;
|
|
36
|
+
tierName: string;
|
|
37
|
+
amount: number;
|
|
38
|
+
isActive: boolean;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
}[];
|
|
41
|
+
team: {
|
|
33
42
|
id: string;
|
|
34
43
|
name: string;
|
|
35
|
-
|
|
44
|
+
inviteCode?: string | undefined;
|
|
45
|
+
members?: {
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
picture: string;
|
|
49
|
+
}[] | undefined;
|
|
50
|
+
owner?: {
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
picture: string;
|
|
54
|
+
} | undefined;
|
|
55
|
+
createdAt?: string | undefined;
|
|
36
56
|
};
|
|
37
|
-
} | null,
|
|
57
|
+
} | null, {
|
|
38
58
|
id: string;
|
|
59
|
+
isAdmin: boolean;
|
|
60
|
+
role: VOneRole;
|
|
39
61
|
name: string;
|
|
40
|
-
|
|
41
|
-
|
|
62
|
+
shortid: string;
|
|
63
|
+
picture: string;
|
|
64
|
+
settings: Record<string, any> | null;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
identities: {
|
|
42
67
|
id: string;
|
|
43
|
-
|
|
44
|
-
|
|
68
|
+
emails: string[];
|
|
69
|
+
provider: string;
|
|
70
|
+
userId: string;
|
|
71
|
+
userHandle: string;
|
|
72
|
+
primary: boolean;
|
|
45
73
|
}[];
|
|
46
|
-
|
|
74
|
+
sponsorships: {
|
|
75
|
+
id: string;
|
|
76
|
+
platform: string;
|
|
77
|
+
interval: "month" | "year" | "once";
|
|
78
|
+
target: string;
|
|
79
|
+
tierName: string;
|
|
80
|
+
amount: number;
|
|
81
|
+
isActive: boolean;
|
|
82
|
+
createdAt: Date;
|
|
83
|
+
}[];
|
|
84
|
+
team: {
|
|
47
85
|
id: string;
|
|
48
86
|
name: string;
|
|
49
|
-
|
|
87
|
+
inviteCode?: string | undefined;
|
|
88
|
+
members?: {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
picture: string;
|
|
92
|
+
}[] | undefined;
|
|
93
|
+
owner?: {
|
|
94
|
+
id: string;
|
|
95
|
+
name: string;
|
|
96
|
+
picture: string;
|
|
97
|
+
} | undefined;
|
|
98
|
+
createdAt?: string | undefined;
|
|
50
99
|
};
|
|
51
|
-
} | null
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
100
|
+
} | null>>;
|
|
101
|
+
url: string;
|
|
102
|
+
dialog: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
103
|
+
isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
104
|
+
isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
105
|
+
isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
106
|
+
isAdmin: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
107
|
+
isEditor: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
108
|
+
verify: (force?: boolean) => Promise<AuthVerifyResponse | null>;
|
|
109
|
+
findIdentity: (provider: string) => globalThis.VOneIdentity | undefined;
|
|
110
|
+
login: (provider?: "github" | "discord" | "shopify" | "google" | "opencollective") => Promise<void>;
|
|
111
|
+
logout: (identity?: string) => Promise<void>;
|
|
112
|
+
lastLoginProvider: () => string | null;
|
|
113
|
+
sync: () => Promise<void>;
|
|
114
|
+
}, "isLoading" | "user" | "dialog" | "isAdmin" | "isAuthenticated" | "isSuper" | "isEditor" | "url">, Pick<{
|
|
115
|
+
user: Readonly<globalThis.Ref<{
|
|
63
116
|
id: string;
|
|
117
|
+
isAdmin: boolean;
|
|
118
|
+
role: VOneRole;
|
|
64
119
|
name: string;
|
|
65
|
-
|
|
66
|
-
|
|
120
|
+
shortid: string;
|
|
121
|
+
picture: string;
|
|
122
|
+
settings: Record<string, any> | null;
|
|
123
|
+
createdAt: string;
|
|
124
|
+
identities: {
|
|
67
125
|
id: string;
|
|
68
|
-
|
|
69
|
-
|
|
126
|
+
emails: string[];
|
|
127
|
+
provider: string;
|
|
128
|
+
userId: string;
|
|
129
|
+
userHandle: string;
|
|
130
|
+
primary: boolean;
|
|
70
131
|
}[];
|
|
71
|
-
|
|
132
|
+
sponsorships: {
|
|
133
|
+
id: string;
|
|
134
|
+
platform: string;
|
|
135
|
+
interval: "month" | "year" | "once";
|
|
136
|
+
target: string;
|
|
137
|
+
tierName: string;
|
|
138
|
+
amount: number;
|
|
139
|
+
isActive: boolean;
|
|
140
|
+
createdAt: Date;
|
|
141
|
+
}[];
|
|
142
|
+
team: {
|
|
72
143
|
id: string;
|
|
73
144
|
name: string;
|
|
74
|
-
|
|
145
|
+
inviteCode?: string | undefined;
|
|
146
|
+
members?: {
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
picture: string;
|
|
150
|
+
}[] | undefined;
|
|
151
|
+
owner?: {
|
|
152
|
+
id: string;
|
|
153
|
+
name: string;
|
|
154
|
+
picture: string;
|
|
155
|
+
} | undefined;
|
|
156
|
+
createdAt?: string | undefined;
|
|
75
157
|
};
|
|
76
|
-
} | null,
|
|
158
|
+
} | null, {
|
|
77
159
|
id: string;
|
|
160
|
+
isAdmin: boolean;
|
|
161
|
+
role: VOneRole;
|
|
78
162
|
name: string;
|
|
79
|
-
|
|
80
|
-
|
|
163
|
+
shortid: string;
|
|
164
|
+
picture: string;
|
|
165
|
+
settings: Record<string, any> | null;
|
|
166
|
+
createdAt: string;
|
|
167
|
+
identities: {
|
|
81
168
|
id: string;
|
|
82
|
-
|
|
83
|
-
|
|
169
|
+
emails: string[];
|
|
170
|
+
provider: string;
|
|
171
|
+
userId: string;
|
|
172
|
+
userHandle: string;
|
|
173
|
+
primary: boolean;
|
|
84
174
|
}[];
|
|
85
|
-
|
|
175
|
+
sponsorships: {
|
|
176
|
+
id: string;
|
|
177
|
+
platform: string;
|
|
178
|
+
interval: "month" | "year" | "once";
|
|
179
|
+
target: string;
|
|
180
|
+
tierName: string;
|
|
181
|
+
amount: number;
|
|
182
|
+
isActive: boolean;
|
|
183
|
+
createdAt: Date;
|
|
184
|
+
}[];
|
|
185
|
+
team: {
|
|
86
186
|
id: string;
|
|
87
187
|
name: string;
|
|
88
|
-
|
|
188
|
+
inviteCode?: string | undefined;
|
|
189
|
+
members?: {
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
picture: string;
|
|
193
|
+
}[] | undefined;
|
|
194
|
+
owner?: {
|
|
195
|
+
id: string;
|
|
196
|
+
name: string;
|
|
197
|
+
picture: string;
|
|
198
|
+
} | undefined;
|
|
199
|
+
createdAt?: string | undefined;
|
|
89
200
|
};
|
|
90
|
-
} | null
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
201
|
+
} | null>>;
|
|
202
|
+
url: string;
|
|
203
|
+
dialog: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
204
|
+
isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
205
|
+
isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
206
|
+
isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
207
|
+
isAdmin: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
208
|
+
isEditor: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
209
|
+
verify: (force?: boolean) => Promise<AuthVerifyResponse | null>;
|
|
210
|
+
findIdentity: (provider: string) => globalThis.VOneIdentity | undefined;
|
|
211
|
+
login: (provider?: "github" | "discord" | "shopify" | "google" | "opencollective") => Promise<void>;
|
|
212
|
+
logout: (identity?: string) => Promise<void>;
|
|
213
|
+
lastLoginProvider: () => string | null;
|
|
214
|
+
sync: () => Promise<void>;
|
|
215
|
+
}, never>, Pick<{
|
|
216
|
+
user: Readonly<globalThis.Ref<{
|
|
102
217
|
id: string;
|
|
218
|
+
isAdmin: boolean;
|
|
219
|
+
role: VOneRole;
|
|
103
220
|
name: string;
|
|
104
|
-
|
|
105
|
-
|
|
221
|
+
shortid: string;
|
|
222
|
+
picture: string;
|
|
223
|
+
settings: Record<string, any> | null;
|
|
224
|
+
createdAt: string;
|
|
225
|
+
identities: {
|
|
106
226
|
id: string;
|
|
107
|
-
|
|
108
|
-
|
|
227
|
+
emails: string[];
|
|
228
|
+
provider: string;
|
|
229
|
+
userId: string;
|
|
230
|
+
userHandle: string;
|
|
231
|
+
primary: boolean;
|
|
109
232
|
}[];
|
|
110
|
-
|
|
233
|
+
sponsorships: {
|
|
234
|
+
id: string;
|
|
235
|
+
platform: string;
|
|
236
|
+
interval: "month" | "year" | "once";
|
|
237
|
+
target: string;
|
|
238
|
+
tierName: string;
|
|
239
|
+
amount: number;
|
|
240
|
+
isActive: boolean;
|
|
241
|
+
createdAt: Date;
|
|
242
|
+
}[];
|
|
243
|
+
team: {
|
|
111
244
|
id: string;
|
|
112
245
|
name: string;
|
|
113
|
-
|
|
246
|
+
inviteCode?: string | undefined;
|
|
247
|
+
members?: {
|
|
248
|
+
id: string;
|
|
249
|
+
name: string;
|
|
250
|
+
picture: string;
|
|
251
|
+
}[] | undefined;
|
|
252
|
+
owner?: {
|
|
253
|
+
id: string;
|
|
254
|
+
name: string;
|
|
255
|
+
picture: string;
|
|
256
|
+
} | undefined;
|
|
257
|
+
createdAt?: string | undefined;
|
|
114
258
|
};
|
|
115
|
-
} | null,
|
|
259
|
+
} | null, {
|
|
116
260
|
id: string;
|
|
261
|
+
isAdmin: boolean;
|
|
262
|
+
role: VOneRole;
|
|
117
263
|
name: string;
|
|
118
|
-
|
|
119
|
-
|
|
264
|
+
shortid: string;
|
|
265
|
+
picture: string;
|
|
266
|
+
settings: Record<string, any> | null;
|
|
267
|
+
createdAt: string;
|
|
268
|
+
identities: {
|
|
120
269
|
id: string;
|
|
121
|
-
|
|
122
|
-
|
|
270
|
+
emails: string[];
|
|
271
|
+
provider: string;
|
|
272
|
+
userId: string;
|
|
273
|
+
userHandle: string;
|
|
274
|
+
primary: boolean;
|
|
123
275
|
}[];
|
|
124
|
-
|
|
276
|
+
sponsorships: {
|
|
277
|
+
id: string;
|
|
278
|
+
platform: string;
|
|
279
|
+
interval: "month" | "year" | "once";
|
|
280
|
+
target: string;
|
|
281
|
+
tierName: string;
|
|
282
|
+
amount: number;
|
|
283
|
+
isActive: boolean;
|
|
284
|
+
createdAt: Date;
|
|
285
|
+
}[];
|
|
286
|
+
team: {
|
|
125
287
|
id: string;
|
|
126
288
|
name: string;
|
|
127
|
-
|
|
289
|
+
inviteCode?: string | undefined;
|
|
290
|
+
members?: {
|
|
291
|
+
id: string;
|
|
292
|
+
name: string;
|
|
293
|
+
picture: string;
|
|
294
|
+
}[] | undefined;
|
|
295
|
+
owner?: {
|
|
296
|
+
id: string;
|
|
297
|
+
name: string;
|
|
298
|
+
picture: string;
|
|
299
|
+
} | undefined;
|
|
300
|
+
createdAt?: string | undefined;
|
|
128
301
|
};
|
|
129
|
-
} | null
|
|
130
|
-
teamInviteDialog: Ref<boolean, boolean>;
|
|
131
|
-
teamInviteCode: ComputedRef<string>;
|
|
132
|
-
hasTeamAccess: ComputedRef<boolean>;
|
|
133
|
-
isTeamOwner: ComputedRef<boolean>;
|
|
134
|
-
isLoading: ShallowRef<boolean>;
|
|
135
|
-
removeFromTeam: (id: string) => Promise<void>;
|
|
136
|
-
leaveTeam: () => Promise<void>;
|
|
137
|
-
joinTeam: () => Promise<void>;
|
|
138
|
-
clearTeamQuery: () => void;
|
|
139
|
-
}, "removeFromTeam" | "leaveTeam" | "joinTeam" | "clearTeamQuery">>;
|
|
140
|
-
|
|
141
|
-
interface VOneSponsorship {
|
|
142
|
-
id: string;
|
|
143
|
-
platform: string;
|
|
144
|
-
interval: 'month' | 'year' | 'once';
|
|
145
|
-
target: string;
|
|
146
|
-
tierName: string;
|
|
147
|
-
amount: number;
|
|
148
|
-
isActive: boolean;
|
|
149
|
-
createdAt: Date;
|
|
150
|
-
}
|
|
151
|
-
interface VOneIdentity {
|
|
152
|
-
id: string;
|
|
153
|
-
emails: string[];
|
|
154
|
-
provider: string;
|
|
155
|
-
userId: string;
|
|
156
|
-
userHandle: string;
|
|
157
|
-
primary: boolean;
|
|
158
|
-
}
|
|
159
|
-
type VOneRole = 'super' | 'admin' | 'editor' | 'user';
|
|
160
|
-
interface VOneUser {
|
|
161
|
-
id: string;
|
|
162
|
-
isAdmin: boolean;
|
|
163
|
-
role: VOneRole;
|
|
164
|
-
name: string;
|
|
165
|
-
shortid: string;
|
|
166
|
-
picture: string;
|
|
167
|
-
settings: Record<string, any> | null;
|
|
168
|
-
createdAt: string;
|
|
169
|
-
identities: VOneIdentity[];
|
|
170
|
-
sponsorships: VOneSponsorship[];
|
|
171
|
-
team: VOneTeam;
|
|
172
|
-
}
|
|
173
|
-
interface AuthState {
|
|
174
|
-
user: Ref<VOneUser | null>;
|
|
302
|
+
} | null>>;
|
|
175
303
|
url: string;
|
|
176
|
-
dialog: Ref<boolean
|
|
177
|
-
isLoading:
|
|
178
|
-
isAuthenticated: Ref<boolean
|
|
179
|
-
isSuper: Ref<boolean
|
|
180
|
-
isAdmin: Ref<boolean
|
|
181
|
-
isEditor: Ref<boolean
|
|
182
|
-
verify: (force?: boolean) => Promise<
|
|
183
|
-
findIdentity: (provider: string) => VOneIdentity | undefined;
|
|
184
|
-
login: (provider?:
|
|
304
|
+
dialog: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
305
|
+
isLoading: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
306
|
+
isAuthenticated: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
307
|
+
isSuper: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
308
|
+
isAdmin: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
309
|
+
isEditor: Readonly<globalThis.Ref<boolean, boolean>>;
|
|
310
|
+
verify: (force?: boolean) => Promise<AuthVerifyResponse | null>;
|
|
311
|
+
findIdentity: (provider: string) => globalThis.VOneIdentity | undefined;
|
|
312
|
+
login: (provider?: "github" | "discord" | "shopify" | "google" | "opencollective") => Promise<void>;
|
|
185
313
|
logout: (identity?: string) => Promise<void>;
|
|
186
314
|
lastLoginProvider: () => string | null;
|
|
187
315
|
sync: () => Promise<void>;
|
|
188
|
-
}
|
|
189
|
-
declare const useAuthStore: pinia.StoreDefinition<"auth", Pick<AuthState, "isLoading" | "user" | "url" | "dialog" | "isAuthenticated" | "isSuper" | "isAdmin" | "isEditor">, Pick<AuthState, never>, Pick<AuthState, "sync" | "verify" | "findIdentity" | "login" | "logout" | "lastLoginProvider">>;
|
|
316
|
+
}, "sync" | "verify" | "login" | "logout" | "findIdentity" | "lastLoginProvider">>;
|
|
190
317
|
|
|
191
318
|
interface VOneBanner {
|
|
192
319
|
id: string;
|
|
@@ -222,7 +349,7 @@ interface VOneBanner {
|
|
|
222
349
|
url: string;
|
|
223
350
|
} | null;
|
|
224
351
|
};
|
|
225
|
-
site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server')[];
|
|
352
|
+
site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server' | 'v3')[];
|
|
226
353
|
};
|
|
227
354
|
}
|
|
228
355
|
interface BannerState {
|
|
@@ -388,16 +515,6 @@ declare const useDownloadsStore: pinia.StoreDefinition<"downloads", Pick<{
|
|
|
388
515
|
}[]>;
|
|
389
516
|
}, "index">>;
|
|
390
517
|
|
|
391
|
-
declare const useHttpStore: pinia.StoreDefinition<"http", {
|
|
392
|
-
url: string;
|
|
393
|
-
}, {}, {
|
|
394
|
-
fetch<T = any>(url: string, options?: RequestInit): Promise<T>;
|
|
395
|
-
post<T = any>(url: string, body?: any, options?: RequestInit): Promise<T>;
|
|
396
|
-
form<T = any>(url: string, body?: any, options?: RequestInit): Promise<T>;
|
|
397
|
-
get<T = any>(url: string, options?: RequestInit): Promise<T>;
|
|
398
|
-
delete(url: string, options?: RequestInit): Promise<Response>;
|
|
399
|
-
}>;
|
|
400
|
-
|
|
401
518
|
interface VOneLink {
|
|
402
519
|
id: string;
|
|
403
520
|
slug: string;
|
|
@@ -1118,7 +1235,7 @@ interface VOneSpot {
|
|
|
1118
1235
|
href: string;
|
|
1119
1236
|
start_date: string;
|
|
1120
1237
|
sponsor: string;
|
|
1121
|
-
site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server')[];
|
|
1238
|
+
site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server' | 'v3')[];
|
|
1122
1239
|
end_date: string;
|
|
1123
1240
|
image: {
|
|
1124
1241
|
url: string;
|
|
@@ -1133,6 +1250,132 @@ interface SpotState {
|
|
|
1133
1250
|
}
|
|
1134
1251
|
declare const useSpotsStore: pinia.StoreDefinition<"spots", Pick<SpotState, "isLoading" | "all">, Pick<SpotState, "spot">, Pick<SpotState, "index">>;
|
|
1135
1252
|
|
|
1253
|
+
type VOneTeam = {
|
|
1254
|
+
id: string;
|
|
1255
|
+
name: string;
|
|
1256
|
+
inviteCode: string;
|
|
1257
|
+
members: VOneTeamMember[];
|
|
1258
|
+
owner: VOneTeamMember;
|
|
1259
|
+
};
|
|
1260
|
+
declare const useTeamStore: pinia.StoreDefinition<"team", Pick<{
|
|
1261
|
+
team: Ref<{
|
|
1262
|
+
id: string;
|
|
1263
|
+
name: string;
|
|
1264
|
+
inviteCode: string;
|
|
1265
|
+
members: {
|
|
1266
|
+
id: string;
|
|
1267
|
+
name: string;
|
|
1268
|
+
picture: string;
|
|
1269
|
+
}[];
|
|
1270
|
+
owner: {
|
|
1271
|
+
id: string;
|
|
1272
|
+
name: string;
|
|
1273
|
+
picture: string;
|
|
1274
|
+
};
|
|
1275
|
+
} | null, VOneTeam | {
|
|
1276
|
+
id: string;
|
|
1277
|
+
name: string;
|
|
1278
|
+
inviteCode: string;
|
|
1279
|
+
members: {
|
|
1280
|
+
id: string;
|
|
1281
|
+
name: string;
|
|
1282
|
+
picture: string;
|
|
1283
|
+
}[];
|
|
1284
|
+
owner: {
|
|
1285
|
+
id: string;
|
|
1286
|
+
name: string;
|
|
1287
|
+
picture: string;
|
|
1288
|
+
};
|
|
1289
|
+
} | null>;
|
|
1290
|
+
teamInviteDialog: Ref<boolean, boolean>;
|
|
1291
|
+
teamInviteCode: ComputedRef<string>;
|
|
1292
|
+
hasTeamAccess: ComputedRef<boolean>;
|
|
1293
|
+
isTeamOwner: ComputedRef<boolean>;
|
|
1294
|
+
isLoading: ShallowRef<boolean>;
|
|
1295
|
+
removeFromTeam: (id: string) => Promise<void>;
|
|
1296
|
+
leaveTeam: () => Promise<void>;
|
|
1297
|
+
joinTeam: () => Promise<void>;
|
|
1298
|
+
clearTeamQuery: () => void;
|
|
1299
|
+
}, "isLoading" | "team" | "teamInviteDialog">, Pick<{
|
|
1300
|
+
team: Ref<{
|
|
1301
|
+
id: string;
|
|
1302
|
+
name: string;
|
|
1303
|
+
inviteCode: string;
|
|
1304
|
+
members: {
|
|
1305
|
+
id: string;
|
|
1306
|
+
name: string;
|
|
1307
|
+
picture: string;
|
|
1308
|
+
}[];
|
|
1309
|
+
owner: {
|
|
1310
|
+
id: string;
|
|
1311
|
+
name: string;
|
|
1312
|
+
picture: string;
|
|
1313
|
+
};
|
|
1314
|
+
} | null, VOneTeam | {
|
|
1315
|
+
id: string;
|
|
1316
|
+
name: string;
|
|
1317
|
+
inviteCode: string;
|
|
1318
|
+
members: {
|
|
1319
|
+
id: string;
|
|
1320
|
+
name: string;
|
|
1321
|
+
picture: string;
|
|
1322
|
+
}[];
|
|
1323
|
+
owner: {
|
|
1324
|
+
id: string;
|
|
1325
|
+
name: string;
|
|
1326
|
+
picture: string;
|
|
1327
|
+
};
|
|
1328
|
+
} | null>;
|
|
1329
|
+
teamInviteDialog: Ref<boolean, boolean>;
|
|
1330
|
+
teamInviteCode: ComputedRef<string>;
|
|
1331
|
+
hasTeamAccess: ComputedRef<boolean>;
|
|
1332
|
+
isTeamOwner: ComputedRef<boolean>;
|
|
1333
|
+
isLoading: ShallowRef<boolean>;
|
|
1334
|
+
removeFromTeam: (id: string) => Promise<void>;
|
|
1335
|
+
leaveTeam: () => Promise<void>;
|
|
1336
|
+
joinTeam: () => Promise<void>;
|
|
1337
|
+
clearTeamQuery: () => void;
|
|
1338
|
+
}, "teamInviteCode" | "hasTeamAccess" | "isTeamOwner">, Pick<{
|
|
1339
|
+
team: Ref<{
|
|
1340
|
+
id: string;
|
|
1341
|
+
name: string;
|
|
1342
|
+
inviteCode: string;
|
|
1343
|
+
members: {
|
|
1344
|
+
id: string;
|
|
1345
|
+
name: string;
|
|
1346
|
+
picture: string;
|
|
1347
|
+
}[];
|
|
1348
|
+
owner: {
|
|
1349
|
+
id: string;
|
|
1350
|
+
name: string;
|
|
1351
|
+
picture: string;
|
|
1352
|
+
};
|
|
1353
|
+
} | null, VOneTeam | {
|
|
1354
|
+
id: string;
|
|
1355
|
+
name: string;
|
|
1356
|
+
inviteCode: string;
|
|
1357
|
+
members: {
|
|
1358
|
+
id: string;
|
|
1359
|
+
name: string;
|
|
1360
|
+
picture: string;
|
|
1361
|
+
}[];
|
|
1362
|
+
owner: {
|
|
1363
|
+
id: string;
|
|
1364
|
+
name: string;
|
|
1365
|
+
picture: string;
|
|
1366
|
+
};
|
|
1367
|
+
} | null>;
|
|
1368
|
+
teamInviteDialog: Ref<boolean, boolean>;
|
|
1369
|
+
teamInviteCode: ComputedRef<string>;
|
|
1370
|
+
hasTeamAccess: ComputedRef<boolean>;
|
|
1371
|
+
isTeamOwner: ComputedRef<boolean>;
|
|
1372
|
+
isLoading: ShallowRef<boolean>;
|
|
1373
|
+
removeFromTeam: (id: string) => Promise<void>;
|
|
1374
|
+
leaveTeam: () => Promise<void>;
|
|
1375
|
+
joinTeam: () => Promise<void>;
|
|
1376
|
+
clearTeamQuery: () => void;
|
|
1377
|
+
}, "removeFromTeam" | "leaveTeam" | "joinTeam" | "clearTeamQuery">>;
|
|
1378
|
+
|
|
1136
1379
|
declare const useUserStore: pinia.StoreDefinition<"user", Pick<{
|
|
1137
1380
|
load: () => void;
|
|
1138
1381
|
save: () => void;
|
|
@@ -1755,5 +1998,5 @@ declare function createOne(): {
|
|
|
1755
1998
|
};
|
|
1756
1999
|
declare function one(id: string[], url: string): (context: PiniaPluginContext) => void;
|
|
1757
2000
|
|
|
1758
|
-
export { aliases, createOne, one, useAuthStore, useBannersStore, useBinsStore, useDownloadsStore,
|
|
1759
|
-
export type { CreateLinkOptions, ShopifyProduct, VOneBanner, VOneBin,
|
|
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 };
|