@glissandoo/lib 1.62.0 → 1.62.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.62.0",
3
+ "version": "1.62.1",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -20,7 +20,8 @@
20
20
  "publish:beta": "npm publish --tag beta",
21
21
  "link": "cp package.json ./lib && cd ./lib && npm link",
22
22
  "translation:upload": "localazy upload",
23
- "translation:download": "localazy download"
23
+ "translation:download": "localazy download",
24
+ "supabase:types": "supabase gen types typescript --local > src/types/supabase.gen.ts"
24
25
  },
25
26
  "author": "Glissandoo",
26
27
  "license": "ISC",
@@ -42,7 +43,8 @@
42
43
  "lint-staged": "^12.4.1",
43
44
  "prettier": "^2.2.1",
44
45
  "type-fest": "^3.12.0",
45
- "typescript": "^4.9.4"
46
+ "typescript": "^4.9.4",
47
+ "supabase": "^1.110.3"
46
48
  },
47
49
  "lint-staged": {
48
50
  "*.ts": [
@@ -0,0 +1,503 @@
1
+ export type Json = string | number | boolean | null | {
2
+ [key: string]: Json | undefined;
3
+ } | Json[];
4
+ export interface Database {
5
+ graphql_public: {
6
+ Tables: {
7
+ [_ in never]: never;
8
+ };
9
+ Views: {
10
+ [_ in never]: never;
11
+ };
12
+ Functions: {
13
+ graphql: {
14
+ Args: {
15
+ operationName?: string;
16
+ query?: string;
17
+ variables?: Json;
18
+ extensions?: Json;
19
+ };
20
+ Returns: Json;
21
+ };
22
+ };
23
+ Enums: {
24
+ [_ in never]: never;
25
+ };
26
+ CompositeTypes: {
27
+ [_ in never]: never;
28
+ };
29
+ };
30
+ public: {
31
+ Tables: {
32
+ event: {
33
+ Row: {
34
+ activeInvitationLink: boolean;
35
+ coverURL: string | null;
36
+ createdAt: string;
37
+ createdOn: Database['public']['Enums']['event_created_on'];
38
+ datetime: string;
39
+ datetimeEnd: string;
40
+ deletedAt: string | null;
41
+ description: string | null;
42
+ descriptionSlate: Json[];
43
+ displayName: string | null;
44
+ id: string;
45
+ invitationLink: string | null;
46
+ locality: string | null;
47
+ location: unknown;
48
+ location_lonlat: Database['public']['CompositeTypes']['lonlat'];
49
+ maxAttendance: number | null;
50
+ notifyAt: string;
51
+ online: boolean;
52
+ owner: string | null;
53
+ playerIds: string[];
54
+ players: Json;
55
+ promoter: string;
56
+ relEvents: string[];
57
+ repeat: Json | null;
58
+ repertory: Json;
59
+ repertoryIds: string[];
60
+ responseDeadline: Json;
61
+ responseDeadlineAt: string;
62
+ rollCalledAt: string | null;
63
+ rollCalledBy: string | null;
64
+ rollCallHistory: Json[];
65
+ rollCallReminderAt: string | null;
66
+ selectionMode: Database['public']['Enums']['event_selection_mode'] | null;
67
+ selectionModeClosedAt: string | null;
68
+ shortDynamicLink: string | null;
69
+ sites: boolean;
70
+ stage: Json | null;
71
+ stageTemplateId: string | null;
72
+ templateId: string | null;
73
+ timezone: string;
74
+ type: Database['public']['Enums']['event_type'];
75
+ updatedAt: string;
76
+ videoURL: string | null;
77
+ };
78
+ Insert: {
79
+ activeInvitationLink: boolean;
80
+ coverURL?: string | null;
81
+ createdAt?: string;
82
+ createdOn: Database['public']['Enums']['event_created_on'];
83
+ datetime: string;
84
+ datetimeEnd: string;
85
+ deletedAt?: string | null;
86
+ description?: string | null;
87
+ descriptionSlate: Json[];
88
+ displayName?: string | null;
89
+ id: string;
90
+ invitationLink?: string | null;
91
+ locality?: string | null;
92
+ location: unknown;
93
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
94
+ maxAttendance?: number | null;
95
+ notifyAt: string;
96
+ online: boolean;
97
+ owner?: string | null;
98
+ playerIds: string[];
99
+ players: Json;
100
+ promoter: string;
101
+ relEvents: string[];
102
+ repeat?: Json | null;
103
+ repertory: Json;
104
+ repertoryIds: string[];
105
+ responseDeadline: Json;
106
+ responseDeadlineAt: string;
107
+ rollCalledAt?: string | null;
108
+ rollCalledBy?: string | null;
109
+ rollCallHistory: Json[];
110
+ rollCallReminderAt?: string | null;
111
+ selectionMode?: Database['public']['Enums']['event_selection_mode'] | null;
112
+ selectionModeClosedAt?: string | null;
113
+ shortDynamicLink?: string | null;
114
+ sites?: boolean;
115
+ stage?: Json | null;
116
+ stageTemplateId?: string | null;
117
+ templateId?: string | null;
118
+ timezone: string;
119
+ type: Database['public']['Enums']['event_type'];
120
+ updatedAt?: string;
121
+ videoURL?: string | null;
122
+ };
123
+ Update: {
124
+ activeInvitationLink?: boolean;
125
+ coverURL?: string | null;
126
+ createdAt?: string;
127
+ createdOn?: Database['public']['Enums']['event_created_on'];
128
+ datetime?: string;
129
+ datetimeEnd?: string;
130
+ deletedAt?: string | null;
131
+ description?: string | null;
132
+ descriptionSlate?: Json[];
133
+ displayName?: string | null;
134
+ id?: string;
135
+ invitationLink?: string | null;
136
+ locality?: string | null;
137
+ location?: unknown;
138
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
139
+ maxAttendance?: number | null;
140
+ notifyAt?: string;
141
+ online?: boolean;
142
+ owner?: string | null;
143
+ playerIds?: string[];
144
+ players?: Json;
145
+ promoter?: string;
146
+ relEvents?: string[];
147
+ repeat?: Json | null;
148
+ repertory?: Json;
149
+ repertoryIds?: string[];
150
+ responseDeadline?: Json;
151
+ responseDeadlineAt?: string;
152
+ rollCalledAt?: string | null;
153
+ rollCalledBy?: string | null;
154
+ rollCallHistory?: Json[];
155
+ rollCallReminderAt?: string | null;
156
+ selectionMode?: Database['public']['Enums']['event_selection_mode'] | null;
157
+ selectionModeClosedAt?: string | null;
158
+ shortDynamicLink?: string | null;
159
+ sites?: boolean;
160
+ stage?: Json | null;
161
+ stageTemplateId?: string | null;
162
+ templateId?: string | null;
163
+ timezone?: string;
164
+ type?: Database['public']['Enums']['event_type'];
165
+ updatedAt?: string;
166
+ videoURL?: string | null;
167
+ };
168
+ Relationships: [
169
+ {
170
+ foreignKeyName: 'event_promoter_fkey';
171
+ columns: ['promoter'];
172
+ referencedRelation: 'group';
173
+ referencedColumns: ['id'];
174
+ }
175
+ ];
176
+ };
177
+ group: {
178
+ Row: {
179
+ activeInvitationLink: boolean;
180
+ addresses: Json[];
181
+ administrators: string[];
182
+ config: Json;
183
+ configSites: Json;
184
+ country: string;
185
+ createdAt: string;
186
+ createdOn: Database['public']['Enums']['group_created_on'];
187
+ customerId: string | null;
188
+ deletedAt: string | null;
189
+ description: string | null;
190
+ displayName: string;
191
+ id: string;
192
+ instruments: Json;
193
+ intercomId: string | null;
194
+ invitationEmails: string[];
195
+ invitationLink: string | null;
196
+ locality: string;
197
+ location: unknown;
198
+ metadata: Json;
199
+ musicStyle: string;
200
+ onboardingMessages: Json[];
201
+ owner: string | null;
202
+ partnershipId: string | null;
203
+ photoURL: string;
204
+ planId: Database['public']['Enums']['group_plan'];
205
+ playerIds: string[];
206
+ players: Json;
207
+ repertoireTags: Json;
208
+ satisfactionIndex: Json;
209
+ shortDynamicLink: string | null;
210
+ socialNetworks: Json | null;
211
+ status: Database['public']['Enums']['group_status'];
212
+ templates: Json;
213
+ trialEndAt: string | null;
214
+ updatedAt: string;
215
+ username: string;
216
+ visitedDashboardAt: Json;
217
+ };
218
+ Insert: {
219
+ activeInvitationLink: boolean;
220
+ addresses: Json[];
221
+ administrators: string[];
222
+ config: Json;
223
+ configSites?: Json;
224
+ country: string;
225
+ createdAt?: string;
226
+ createdOn: Database['public']['Enums']['group_created_on'];
227
+ customerId?: string | null;
228
+ deletedAt?: string | null;
229
+ description?: string | null;
230
+ displayName: string;
231
+ id: string;
232
+ instruments: Json;
233
+ intercomId?: string | null;
234
+ invitationEmails: string[];
235
+ invitationLink?: string | null;
236
+ locality: string;
237
+ location: unknown;
238
+ metadata: Json;
239
+ musicStyle: string;
240
+ onboardingMessages: Json[];
241
+ owner?: string | null;
242
+ partnershipId?: string | null;
243
+ photoURL: string;
244
+ planId: Database['public']['Enums']['group_plan'];
245
+ playerIds: string[];
246
+ players: Json;
247
+ repertoireTags: Json;
248
+ satisfactionIndex: Json;
249
+ shortDynamicLink?: string | null;
250
+ socialNetworks?: Json | null;
251
+ status: Database['public']['Enums']['group_status'];
252
+ templates: Json;
253
+ trialEndAt?: string | null;
254
+ updatedAt?: string;
255
+ username: string;
256
+ visitedDashboardAt: Json;
257
+ };
258
+ Update: {
259
+ activeInvitationLink?: boolean;
260
+ addresses?: Json[];
261
+ administrators?: string[];
262
+ config?: Json;
263
+ configSites?: Json;
264
+ country?: string;
265
+ createdAt?: string;
266
+ createdOn?: Database['public']['Enums']['group_created_on'];
267
+ customerId?: string | null;
268
+ deletedAt?: string | null;
269
+ description?: string | null;
270
+ displayName?: string;
271
+ id?: string;
272
+ instruments?: Json;
273
+ intercomId?: string | null;
274
+ invitationEmails?: string[];
275
+ invitationLink?: string | null;
276
+ locality?: string;
277
+ location?: unknown;
278
+ metadata?: Json;
279
+ musicStyle?: string;
280
+ onboardingMessages?: Json[];
281
+ owner?: string | null;
282
+ partnershipId?: string | null;
283
+ photoURL?: string;
284
+ planId?: Database['public']['Enums']['group_plan'];
285
+ playerIds?: string[];
286
+ players?: Json;
287
+ repertoireTags?: Json;
288
+ satisfactionIndex?: Json;
289
+ shortDynamicLink?: string | null;
290
+ socialNetworks?: Json | null;
291
+ status?: Database['public']['Enums']['group_status'];
292
+ templates?: Json;
293
+ trialEndAt?: string | null;
294
+ updatedAt?: string;
295
+ username?: string;
296
+ visitedDashboardAt?: Json;
297
+ };
298
+ Relationships: [];
299
+ };
300
+ };
301
+ Views: {
302
+ [_ in never]: never;
303
+ };
304
+ Functions: {
305
+ [_ in never]: never;
306
+ };
307
+ Enums: {
308
+ event_created_on: 'app' | 'dashboard' | 'auth';
309
+ event_selection_mode: 'open' | 'closed';
310
+ event_type: 'practice' | 'performance';
311
+ group_created_on: 'web' | 'app' | 'dashboard';
312
+ group_plan: 'piano' | 'mezzopiano' | 'mezzoforte' | 'forte' | 'fortissimo' | 'tutti';
313
+ group_plan_period: 'yearly' | 'monthly';
314
+ group_status: 'premium' | 'trial' | 'inactive' | 'deleted';
315
+ social_network: 'facebook' | 'twitter' | 'instagram' | 'youtube';
316
+ };
317
+ CompositeTypes: {
318
+ lonlat: {
319
+ longitude: number;
320
+ latitude: number;
321
+ };
322
+ };
323
+ };
324
+ storage: {
325
+ Tables: {
326
+ buckets: {
327
+ Row: {
328
+ allowed_mime_types: string[] | null;
329
+ avif_autodetection: boolean | null;
330
+ created_at: string | null;
331
+ file_size_limit: number | null;
332
+ id: string;
333
+ name: string;
334
+ owner: string | null;
335
+ public: boolean | null;
336
+ updated_at: string | null;
337
+ };
338
+ Insert: {
339
+ allowed_mime_types?: string[] | null;
340
+ avif_autodetection?: boolean | null;
341
+ created_at?: string | null;
342
+ file_size_limit?: number | null;
343
+ id: string;
344
+ name: string;
345
+ owner?: string | null;
346
+ public?: boolean | null;
347
+ updated_at?: string | null;
348
+ };
349
+ Update: {
350
+ allowed_mime_types?: string[] | null;
351
+ avif_autodetection?: boolean | null;
352
+ created_at?: string | null;
353
+ file_size_limit?: number | null;
354
+ id?: string;
355
+ name?: string;
356
+ owner?: string | null;
357
+ public?: boolean | null;
358
+ updated_at?: string | null;
359
+ };
360
+ Relationships: [
361
+ {
362
+ foreignKeyName: 'buckets_owner_fkey';
363
+ columns: ['owner'];
364
+ referencedRelation: 'users';
365
+ referencedColumns: ['id'];
366
+ }
367
+ ];
368
+ };
369
+ migrations: {
370
+ Row: {
371
+ executed_at: string | null;
372
+ hash: string;
373
+ id: number;
374
+ name: string;
375
+ };
376
+ Insert: {
377
+ executed_at?: string | null;
378
+ hash: string;
379
+ id: number;
380
+ name: string;
381
+ };
382
+ Update: {
383
+ executed_at?: string | null;
384
+ hash?: string;
385
+ id?: number;
386
+ name?: string;
387
+ };
388
+ Relationships: [];
389
+ };
390
+ objects: {
391
+ Row: {
392
+ bucket_id: string | null;
393
+ created_at: string | null;
394
+ id: string;
395
+ last_accessed_at: string | null;
396
+ metadata: Json | null;
397
+ name: string | null;
398
+ owner: string | null;
399
+ path_tokens: string[] | null;
400
+ updated_at: string | null;
401
+ version: string | null;
402
+ };
403
+ Insert: {
404
+ bucket_id?: string | null;
405
+ created_at?: string | null;
406
+ id?: string;
407
+ last_accessed_at?: string | null;
408
+ metadata?: Json | null;
409
+ name?: string | null;
410
+ owner?: string | null;
411
+ path_tokens?: string[] | null;
412
+ updated_at?: string | null;
413
+ version?: string | null;
414
+ };
415
+ Update: {
416
+ bucket_id?: string | null;
417
+ created_at?: string | null;
418
+ id?: string;
419
+ last_accessed_at?: string | null;
420
+ metadata?: Json | null;
421
+ name?: string | null;
422
+ owner?: string | null;
423
+ path_tokens?: string[] | null;
424
+ updated_at?: string | null;
425
+ version?: string | null;
426
+ };
427
+ Relationships: [
428
+ {
429
+ foreignKeyName: 'objects_bucketId_fkey';
430
+ columns: ['bucket_id'];
431
+ referencedRelation: 'buckets';
432
+ referencedColumns: ['id'];
433
+ }
434
+ ];
435
+ };
436
+ };
437
+ Views: {
438
+ [_ in never]: never;
439
+ };
440
+ Functions: {
441
+ can_insert_object: {
442
+ Args: {
443
+ bucketid: string;
444
+ name: string;
445
+ owner: string;
446
+ metadata: Json;
447
+ };
448
+ Returns: undefined;
449
+ };
450
+ extension: {
451
+ Args: {
452
+ name: string;
453
+ };
454
+ Returns: string;
455
+ };
456
+ filename: {
457
+ Args: {
458
+ name: string;
459
+ };
460
+ Returns: string;
461
+ };
462
+ foldername: {
463
+ Args: {
464
+ name: string;
465
+ };
466
+ Returns: unknown;
467
+ };
468
+ get_size_by_bucket: {
469
+ Args: Record<PropertyKey, never>;
470
+ Returns: {
471
+ size: number;
472
+ bucket_id: string;
473
+ }[];
474
+ };
475
+ search: {
476
+ Args: {
477
+ prefix: string;
478
+ bucketname: string;
479
+ limits?: number;
480
+ levels?: number;
481
+ offsets?: number;
482
+ search?: string;
483
+ sortcolumn?: string;
484
+ sortorder?: string;
485
+ };
486
+ Returns: {
487
+ name: string;
488
+ id: string;
489
+ updated_at: string;
490
+ created_at: string;
491
+ last_accessed_at: string;
492
+ metadata: Json;
493
+ }[];
494
+ };
495
+ };
496
+ Enums: {
497
+ [_ in never]: never;
498
+ };
499
+ CompositeTypes: {
500
+ [_ in never]: never;
501
+ };
502
+ };
503
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,502 @@
1
+ export type Json = string | number | boolean | null | { [key: string]: Json | undefined } | Json[];
2
+
3
+ export interface Database {
4
+ graphql_public: {
5
+ Tables: {
6
+ [_ in never]: never;
7
+ };
8
+ Views: {
9
+ [_ in never]: never;
10
+ };
11
+ Functions: {
12
+ graphql: {
13
+ Args: {
14
+ operationName?: string;
15
+ query?: string;
16
+ variables?: Json;
17
+ extensions?: Json;
18
+ };
19
+ Returns: Json;
20
+ };
21
+ };
22
+ Enums: {
23
+ [_ in never]: never;
24
+ };
25
+ CompositeTypes: {
26
+ [_ in never]: never;
27
+ };
28
+ };
29
+ public: {
30
+ Tables: {
31
+ event: {
32
+ Row: {
33
+ activeInvitationLink: boolean;
34
+ coverURL: string | null;
35
+ createdAt: string;
36
+ createdOn: Database['public']['Enums']['event_created_on'];
37
+ datetime: string;
38
+ datetimeEnd: string;
39
+ deletedAt: string | null;
40
+ description: string | null;
41
+ descriptionSlate: Json[];
42
+ displayName: string | null;
43
+ id: string;
44
+ invitationLink: string | null;
45
+ locality: string | null;
46
+ location: unknown;
47
+ location_lonlat: Database['public']['CompositeTypes']['lonlat'];
48
+ maxAttendance: number | null;
49
+ notifyAt: string;
50
+ online: boolean;
51
+ owner: string | null;
52
+ playerIds: string[];
53
+ players: Json;
54
+ promoter: string;
55
+ relEvents: string[];
56
+ repeat: Json | null;
57
+ repertory: Json;
58
+ repertoryIds: string[];
59
+ responseDeadline: Json;
60
+ responseDeadlineAt: string;
61
+ rollCalledAt: string | null;
62
+ rollCalledBy: string | null;
63
+ rollCallHistory: Json[];
64
+ rollCallReminderAt: string | null;
65
+ selectionMode: Database['public']['Enums']['event_selection_mode'] | null;
66
+ selectionModeClosedAt: string | null;
67
+ shortDynamicLink: string | null;
68
+ sites: boolean;
69
+ stage: Json | null;
70
+ stageTemplateId: string | null;
71
+ templateId: string | null;
72
+ timezone: string;
73
+ type: Database['public']['Enums']['event_type'];
74
+ updatedAt: string;
75
+ videoURL: string | null;
76
+ };
77
+ Insert: {
78
+ activeInvitationLink: boolean;
79
+ coverURL?: string | null;
80
+ createdAt?: string;
81
+ createdOn: Database['public']['Enums']['event_created_on'];
82
+ datetime: string;
83
+ datetimeEnd: string;
84
+ deletedAt?: string | null;
85
+ description?: string | null;
86
+ descriptionSlate: Json[];
87
+ displayName?: string | null;
88
+ id: string;
89
+ invitationLink?: string | null;
90
+ locality?: string | null;
91
+ location: unknown;
92
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
93
+ maxAttendance?: number | null;
94
+ notifyAt: string;
95
+ online: boolean;
96
+ owner?: string | null;
97
+ playerIds: string[];
98
+ players: Json;
99
+ promoter: string;
100
+ relEvents: string[];
101
+ repeat?: Json | null;
102
+ repertory: Json;
103
+ repertoryIds: string[];
104
+ responseDeadline: Json;
105
+ responseDeadlineAt: string;
106
+ rollCalledAt?: string | null;
107
+ rollCalledBy?: string | null;
108
+ rollCallHistory: Json[];
109
+ rollCallReminderAt?: string | null;
110
+ selectionMode?: Database['public']['Enums']['event_selection_mode'] | null;
111
+ selectionModeClosedAt?: string | null;
112
+ shortDynamicLink?: string | null;
113
+ sites?: boolean;
114
+ stage?: Json | null;
115
+ stageTemplateId?: string | null;
116
+ templateId?: string | null;
117
+ timezone: string;
118
+ type: Database['public']['Enums']['event_type'];
119
+ updatedAt?: string;
120
+ videoURL?: string | null;
121
+ };
122
+ Update: {
123
+ activeInvitationLink?: boolean;
124
+ coverURL?: string | null;
125
+ createdAt?: string;
126
+ createdOn?: Database['public']['Enums']['event_created_on'];
127
+ datetime?: string;
128
+ datetimeEnd?: string;
129
+ deletedAt?: string | null;
130
+ description?: string | null;
131
+ descriptionSlate?: Json[];
132
+ displayName?: string | null;
133
+ id?: string;
134
+ invitationLink?: string | null;
135
+ locality?: string | null;
136
+ location?: unknown;
137
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
138
+ maxAttendance?: number | null;
139
+ notifyAt?: string;
140
+ online?: boolean;
141
+ owner?: string | null;
142
+ playerIds?: string[];
143
+ players?: Json;
144
+ promoter?: string;
145
+ relEvents?: string[];
146
+ repeat?: Json | null;
147
+ repertory?: Json;
148
+ repertoryIds?: string[];
149
+ responseDeadline?: Json;
150
+ responseDeadlineAt?: string;
151
+ rollCalledAt?: string | null;
152
+ rollCalledBy?: string | null;
153
+ rollCallHistory?: Json[];
154
+ rollCallReminderAt?: string | null;
155
+ selectionMode?: Database['public']['Enums']['event_selection_mode'] | null;
156
+ selectionModeClosedAt?: string | null;
157
+ shortDynamicLink?: string | null;
158
+ sites?: boolean;
159
+ stage?: Json | null;
160
+ stageTemplateId?: string | null;
161
+ templateId?: string | null;
162
+ timezone?: string;
163
+ type?: Database['public']['Enums']['event_type'];
164
+ updatedAt?: string;
165
+ videoURL?: string | null;
166
+ };
167
+ Relationships: [
168
+ {
169
+ foreignKeyName: 'event_promoter_fkey';
170
+ columns: ['promoter'];
171
+ referencedRelation: 'group';
172
+ referencedColumns: ['id'];
173
+ }
174
+ ];
175
+ };
176
+ group: {
177
+ Row: {
178
+ activeInvitationLink: boolean;
179
+ addresses: Json[];
180
+ administrators: string[];
181
+ config: Json;
182
+ configSites: Json;
183
+ country: string;
184
+ createdAt: string;
185
+ createdOn: Database['public']['Enums']['group_created_on'];
186
+ customerId: string | null;
187
+ deletedAt: string | null;
188
+ description: string | null;
189
+ displayName: string;
190
+ id: string;
191
+ instruments: Json;
192
+ intercomId: string | null;
193
+ invitationEmails: string[];
194
+ invitationLink: string | null;
195
+ locality: string;
196
+ location: unknown;
197
+ metadata: Json;
198
+ musicStyle: string;
199
+ onboardingMessages: Json[];
200
+ owner: string | null;
201
+ partnershipId: string | null;
202
+ photoURL: string;
203
+ planId: Database['public']['Enums']['group_plan'];
204
+ playerIds: string[];
205
+ players: Json;
206
+ repertoireTags: Json;
207
+ satisfactionIndex: Json;
208
+ shortDynamicLink: string | null;
209
+ socialNetworks: Json | null;
210
+ status: Database['public']['Enums']['group_status'];
211
+ templates: Json;
212
+ trialEndAt: string | null;
213
+ updatedAt: string;
214
+ username: string;
215
+ visitedDashboardAt: Json;
216
+ };
217
+ Insert: {
218
+ activeInvitationLink: boolean;
219
+ addresses: Json[];
220
+ administrators: string[];
221
+ config: Json;
222
+ configSites?: Json;
223
+ country: string;
224
+ createdAt?: string;
225
+ createdOn: Database['public']['Enums']['group_created_on'];
226
+ customerId?: string | null;
227
+ deletedAt?: string | null;
228
+ description?: string | null;
229
+ displayName: string;
230
+ id: string;
231
+ instruments: Json;
232
+ intercomId?: string | null;
233
+ invitationEmails: string[];
234
+ invitationLink?: string | null;
235
+ locality: string;
236
+ location: unknown;
237
+ metadata: Json;
238
+ musicStyle: string;
239
+ onboardingMessages: Json[];
240
+ owner?: string | null;
241
+ partnershipId?: string | null;
242
+ photoURL: string;
243
+ planId: Database['public']['Enums']['group_plan'];
244
+ playerIds: string[];
245
+ players: Json;
246
+ repertoireTags: Json;
247
+ satisfactionIndex: Json;
248
+ shortDynamicLink?: string | null;
249
+ socialNetworks?: Json | null;
250
+ status: Database['public']['Enums']['group_status'];
251
+ templates: Json;
252
+ trialEndAt?: string | null;
253
+ updatedAt?: string;
254
+ username: string;
255
+ visitedDashboardAt: Json;
256
+ };
257
+ Update: {
258
+ activeInvitationLink?: boolean;
259
+ addresses?: Json[];
260
+ administrators?: string[];
261
+ config?: Json;
262
+ configSites?: Json;
263
+ country?: string;
264
+ createdAt?: string;
265
+ createdOn?: Database['public']['Enums']['group_created_on'];
266
+ customerId?: string | null;
267
+ deletedAt?: string | null;
268
+ description?: string | null;
269
+ displayName?: string;
270
+ id?: string;
271
+ instruments?: Json;
272
+ intercomId?: string | null;
273
+ invitationEmails?: string[];
274
+ invitationLink?: string | null;
275
+ locality?: string;
276
+ location?: unknown;
277
+ metadata?: Json;
278
+ musicStyle?: string;
279
+ onboardingMessages?: Json[];
280
+ owner?: string | null;
281
+ partnershipId?: string | null;
282
+ photoURL?: string;
283
+ planId?: Database['public']['Enums']['group_plan'];
284
+ playerIds?: string[];
285
+ players?: Json;
286
+ repertoireTags?: Json;
287
+ satisfactionIndex?: Json;
288
+ shortDynamicLink?: string | null;
289
+ socialNetworks?: Json | null;
290
+ status?: Database['public']['Enums']['group_status'];
291
+ templates?: Json;
292
+ trialEndAt?: string | null;
293
+ updatedAt?: string;
294
+ username?: string;
295
+ visitedDashboardAt?: Json;
296
+ };
297
+ Relationships: [];
298
+ };
299
+ };
300
+ Views: {
301
+ [_ in never]: never;
302
+ };
303
+ Functions: {
304
+ [_ in never]: never;
305
+ };
306
+ Enums: {
307
+ event_created_on: 'app' | 'dashboard' | 'auth';
308
+ event_selection_mode: 'open' | 'closed';
309
+ event_type: 'practice' | 'performance';
310
+ group_created_on: 'web' | 'app' | 'dashboard';
311
+ group_plan: 'piano' | 'mezzopiano' | 'mezzoforte' | 'forte' | 'fortissimo' | 'tutti';
312
+ group_plan_period: 'yearly' | 'monthly';
313
+ group_status: 'premium' | 'trial' | 'inactive' | 'deleted';
314
+ social_network: 'facebook' | 'twitter' | 'instagram' | 'youtube';
315
+ };
316
+ CompositeTypes: {
317
+ lonlat: {
318
+ longitude: number;
319
+ latitude: number;
320
+ };
321
+ };
322
+ };
323
+ storage: {
324
+ Tables: {
325
+ buckets: {
326
+ Row: {
327
+ allowed_mime_types: string[] | null;
328
+ avif_autodetection: boolean | null;
329
+ created_at: string | null;
330
+ file_size_limit: number | null;
331
+ id: string;
332
+ name: string;
333
+ owner: string | null;
334
+ public: boolean | null;
335
+ updated_at: string | null;
336
+ };
337
+ Insert: {
338
+ allowed_mime_types?: string[] | null;
339
+ avif_autodetection?: boolean | null;
340
+ created_at?: string | null;
341
+ file_size_limit?: number | null;
342
+ id: string;
343
+ name: string;
344
+ owner?: string | null;
345
+ public?: boolean | null;
346
+ updated_at?: string | null;
347
+ };
348
+ Update: {
349
+ allowed_mime_types?: string[] | null;
350
+ avif_autodetection?: boolean | null;
351
+ created_at?: string | null;
352
+ file_size_limit?: number | null;
353
+ id?: string;
354
+ name?: string;
355
+ owner?: string | null;
356
+ public?: boolean | null;
357
+ updated_at?: string | null;
358
+ };
359
+ Relationships: [
360
+ {
361
+ foreignKeyName: 'buckets_owner_fkey';
362
+ columns: ['owner'];
363
+ referencedRelation: 'users';
364
+ referencedColumns: ['id'];
365
+ }
366
+ ];
367
+ };
368
+ migrations: {
369
+ Row: {
370
+ executed_at: string | null;
371
+ hash: string;
372
+ id: number;
373
+ name: string;
374
+ };
375
+ Insert: {
376
+ executed_at?: string | null;
377
+ hash: string;
378
+ id: number;
379
+ name: string;
380
+ };
381
+ Update: {
382
+ executed_at?: string | null;
383
+ hash?: string;
384
+ id?: number;
385
+ name?: string;
386
+ };
387
+ Relationships: [];
388
+ };
389
+ objects: {
390
+ Row: {
391
+ bucket_id: string | null;
392
+ created_at: string | null;
393
+ id: string;
394
+ last_accessed_at: string | null;
395
+ metadata: Json | null;
396
+ name: string | null;
397
+ owner: string | null;
398
+ path_tokens: string[] | null;
399
+ updated_at: string | null;
400
+ version: string | null;
401
+ };
402
+ Insert: {
403
+ bucket_id?: string | null;
404
+ created_at?: string | null;
405
+ id?: string;
406
+ last_accessed_at?: string | null;
407
+ metadata?: Json | null;
408
+ name?: string | null;
409
+ owner?: string | null;
410
+ path_tokens?: string[] | null;
411
+ updated_at?: string | null;
412
+ version?: string | null;
413
+ };
414
+ Update: {
415
+ bucket_id?: string | null;
416
+ created_at?: string | null;
417
+ id?: string;
418
+ last_accessed_at?: string | null;
419
+ metadata?: Json | null;
420
+ name?: string | null;
421
+ owner?: string | null;
422
+ path_tokens?: string[] | null;
423
+ updated_at?: string | null;
424
+ version?: string | null;
425
+ };
426
+ Relationships: [
427
+ {
428
+ foreignKeyName: 'objects_bucketId_fkey';
429
+ columns: ['bucket_id'];
430
+ referencedRelation: 'buckets';
431
+ referencedColumns: ['id'];
432
+ }
433
+ ];
434
+ };
435
+ };
436
+ Views: {
437
+ [_ in never]: never;
438
+ };
439
+ Functions: {
440
+ can_insert_object: {
441
+ Args: {
442
+ bucketid: string;
443
+ name: string;
444
+ owner: string;
445
+ metadata: Json;
446
+ };
447
+ Returns: undefined;
448
+ };
449
+ extension: {
450
+ Args: {
451
+ name: string;
452
+ };
453
+ Returns: string;
454
+ };
455
+ filename: {
456
+ Args: {
457
+ name: string;
458
+ };
459
+ Returns: string;
460
+ };
461
+ foldername: {
462
+ Args: {
463
+ name: string;
464
+ };
465
+ Returns: unknown;
466
+ };
467
+ get_size_by_bucket: {
468
+ Args: Record<PropertyKey, never>;
469
+ Returns: {
470
+ size: number;
471
+ bucket_id: string;
472
+ }[];
473
+ };
474
+ search: {
475
+ Args: {
476
+ prefix: string;
477
+ bucketname: string;
478
+ limits?: number;
479
+ levels?: number;
480
+ offsets?: number;
481
+ search?: string;
482
+ sortcolumn?: string;
483
+ sortorder?: string;
484
+ };
485
+ Returns: {
486
+ name: string;
487
+ id: string;
488
+ updated_at: string;
489
+ created_at: string;
490
+ last_accessed_at: string;
491
+ metadata: Json;
492
+ }[];
493
+ };
494
+ };
495
+ Enums: {
496
+ [_ in never]: never;
497
+ };
498
+ CompositeTypes: {
499
+ [_ in never]: never;
500
+ };
501
+ };
502
+ }