@glissandoo/lib 1.124.2 → 1.125.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/functions/index.d.ts +6 -0
- package/functions/index.js +6 -0
- package/functions/regions.js +6 -0
- package/models/supabase/EventPlayer/types.d.ts +13 -0
- package/models/supabase/EventPlayer/types.js +2 -0
- package/models/supabase/GroupPlayer/types.d.ts +17 -0
- package/models/supabase/GroupPlayer/types.js +2 -0
- package/package.json +1 -1
- package/types/supabase/generated.d.ts +348 -1
- package/types/supabase/generated.ts +348 -1
- package/types/supabase/index.d.ts +82 -1
- package/types/supabase/index.ts +148 -1
- package/types/supabase/overwrites/eventPlayer.d.ts +11 -0
- package/types/supabase/overwrites/eventPlayer.js +2 -0
- package/types/supabase/overwrites/eventPlayer.ts +18 -0
- package/types/supabase/overwrites/groupPlayer.d.ts +20 -0
- package/types/supabase/overwrites/groupPlayer.js +2 -0
- package/types/supabase/overwrites/groupPlayer.ts +30 -0
- package/types/supabase/overwrites/publicApiGroupModel.d.ts +7 -0
- package/types/supabase/overwrites/publicApiGroupModel.js +2 -0
- package/types/supabase/overwrites/publicApiGroupModel.ts +11 -0
- package/types/supabase/publicApi.d.ts +2 -0
- package/types/supabase/publicApi.js +2 -0
- package/types/supabase/publicApi.ts +6 -0
|
@@ -365,6 +365,13 @@ export type Database = {
|
|
|
365
365
|
isOneToOne: false;
|
|
366
366
|
referencedRelation: 'group';
|
|
367
367
|
referencedColumns: ['id'];
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
foreignKeyName: 'event_promoter_group_id_fkey';
|
|
371
|
+
columns: ['promoter'];
|
|
372
|
+
isOneToOne: false;
|
|
373
|
+
referencedRelation: 'publicApiGroupModel';
|
|
374
|
+
referencedColumns: ['id'];
|
|
368
375
|
}
|
|
369
376
|
];
|
|
370
377
|
};
|
|
@@ -401,6 +408,72 @@ export type Database = {
|
|
|
401
408
|
};
|
|
402
409
|
Relationships: [];
|
|
403
410
|
};
|
|
411
|
+
eventPlayer: {
|
|
412
|
+
Row: {
|
|
413
|
+
eventId: string;
|
|
414
|
+
history: Json[];
|
|
415
|
+
interested: boolean | null;
|
|
416
|
+
isGuest: boolean;
|
|
417
|
+
joinedAt: string | null;
|
|
418
|
+
joinedBy: string | null;
|
|
419
|
+
mainInstrument: string | null;
|
|
420
|
+
note: string | null;
|
|
421
|
+
paymentId: string | null;
|
|
422
|
+
questions: Json;
|
|
423
|
+
reason: string | null;
|
|
424
|
+
remarks: string | null;
|
|
425
|
+
rollcall: string | null;
|
|
426
|
+
rollCalledAt: string | null;
|
|
427
|
+
rollCalledVia: string | null;
|
|
428
|
+
selected: boolean | null;
|
|
429
|
+
status: string | null;
|
|
430
|
+
updatedAt: string;
|
|
431
|
+
userId: string;
|
|
432
|
+
};
|
|
433
|
+
Insert: {
|
|
434
|
+
eventId: string;
|
|
435
|
+
history?: Json[];
|
|
436
|
+
interested?: boolean | null;
|
|
437
|
+
isGuest?: boolean;
|
|
438
|
+
joinedAt?: string | null;
|
|
439
|
+
joinedBy?: string | null;
|
|
440
|
+
mainInstrument?: string | null;
|
|
441
|
+
note?: string | null;
|
|
442
|
+
paymentId?: string | null;
|
|
443
|
+
questions?: Json;
|
|
444
|
+
reason?: string | null;
|
|
445
|
+
remarks?: string | null;
|
|
446
|
+
rollcall?: string | null;
|
|
447
|
+
rollCalledAt?: string | null;
|
|
448
|
+
rollCalledVia?: string | null;
|
|
449
|
+
selected?: boolean | null;
|
|
450
|
+
status?: string | null;
|
|
451
|
+
updatedAt?: string;
|
|
452
|
+
userId: string;
|
|
453
|
+
};
|
|
454
|
+
Update: {
|
|
455
|
+
eventId?: string;
|
|
456
|
+
history?: Json[];
|
|
457
|
+
interested?: boolean | null;
|
|
458
|
+
isGuest?: boolean;
|
|
459
|
+
joinedAt?: string | null;
|
|
460
|
+
joinedBy?: string | null;
|
|
461
|
+
mainInstrument?: string | null;
|
|
462
|
+
note?: string | null;
|
|
463
|
+
paymentId?: string | null;
|
|
464
|
+
questions?: Json;
|
|
465
|
+
reason?: string | null;
|
|
466
|
+
remarks?: string | null;
|
|
467
|
+
rollcall?: string | null;
|
|
468
|
+
rollCalledAt?: string | null;
|
|
469
|
+
rollCalledVia?: string | null;
|
|
470
|
+
selected?: boolean | null;
|
|
471
|
+
status?: string | null;
|
|
472
|
+
updatedAt?: string;
|
|
473
|
+
userId?: string;
|
|
474
|
+
};
|
|
475
|
+
Relationships: [];
|
|
476
|
+
};
|
|
404
477
|
group: {
|
|
405
478
|
Row: {
|
|
406
479
|
activeInvitationLink: boolean;
|
|
@@ -676,6 +749,78 @@ export type Database = {
|
|
|
676
749
|
}
|
|
677
750
|
];
|
|
678
751
|
};
|
|
752
|
+
groupPlayer: {
|
|
753
|
+
Row: {
|
|
754
|
+
additionalInfo: Json[];
|
|
755
|
+
badgeAccPerformances: Json;
|
|
756
|
+
badgeAccPractices: Json;
|
|
757
|
+
badgeAnswerEvents: Json;
|
|
758
|
+
badgePlayedWorks: Json;
|
|
759
|
+
badgeStrikePractices: Json;
|
|
760
|
+
customFields: Json;
|
|
761
|
+
groupId: string;
|
|
762
|
+
instruments: string[];
|
|
763
|
+
instrumentsLastUpdatedBy: string | null;
|
|
764
|
+
isAdmin: boolean;
|
|
765
|
+
joinedAt: string | null;
|
|
766
|
+
lastEditAdditionalInfoAt: string | null;
|
|
767
|
+
lastEditAdditionalInfoBy: string | null;
|
|
768
|
+
leavedAt: string | null;
|
|
769
|
+
leavedBy: string | null;
|
|
770
|
+
mainInstrument: string | null;
|
|
771
|
+
permissions: string[];
|
|
772
|
+
role: string;
|
|
773
|
+
updatedAt: string;
|
|
774
|
+
userId: string;
|
|
775
|
+
};
|
|
776
|
+
Insert: {
|
|
777
|
+
additionalInfo?: Json[];
|
|
778
|
+
badgeAccPerformances?: Json;
|
|
779
|
+
badgeAccPractices?: Json;
|
|
780
|
+
badgeAnswerEvents?: Json;
|
|
781
|
+
badgePlayedWorks?: Json;
|
|
782
|
+
badgeStrikePractices?: Json;
|
|
783
|
+
customFields?: Json;
|
|
784
|
+
groupId: string;
|
|
785
|
+
instruments?: string[];
|
|
786
|
+
instrumentsLastUpdatedBy?: string | null;
|
|
787
|
+
isAdmin?: boolean;
|
|
788
|
+
joinedAt?: string | null;
|
|
789
|
+
lastEditAdditionalInfoAt?: string | null;
|
|
790
|
+
lastEditAdditionalInfoBy?: string | null;
|
|
791
|
+
leavedAt?: string | null;
|
|
792
|
+
leavedBy?: string | null;
|
|
793
|
+
mainInstrument?: string | null;
|
|
794
|
+
permissions?: string[];
|
|
795
|
+
role: string;
|
|
796
|
+
updatedAt?: string;
|
|
797
|
+
userId: string;
|
|
798
|
+
};
|
|
799
|
+
Update: {
|
|
800
|
+
additionalInfo?: Json[];
|
|
801
|
+
badgeAccPerformances?: Json;
|
|
802
|
+
badgeAccPractices?: Json;
|
|
803
|
+
badgeAnswerEvents?: Json;
|
|
804
|
+
badgePlayedWorks?: Json;
|
|
805
|
+
badgeStrikePractices?: Json;
|
|
806
|
+
customFields?: Json;
|
|
807
|
+
groupId?: string;
|
|
808
|
+
instruments?: string[];
|
|
809
|
+
instrumentsLastUpdatedBy?: string | null;
|
|
810
|
+
isAdmin?: boolean;
|
|
811
|
+
joinedAt?: string | null;
|
|
812
|
+
lastEditAdditionalInfoAt?: string | null;
|
|
813
|
+
lastEditAdditionalInfoBy?: string | null;
|
|
814
|
+
leavedAt?: string | null;
|
|
815
|
+
leavedBy?: string | null;
|
|
816
|
+
mainInstrument?: string | null;
|
|
817
|
+
permissions?: string[];
|
|
818
|
+
role?: string;
|
|
819
|
+
updatedAt?: string;
|
|
820
|
+
userId?: string;
|
|
821
|
+
};
|
|
822
|
+
Relationships: [];
|
|
823
|
+
};
|
|
679
824
|
offer: {
|
|
680
825
|
Row: {
|
|
681
826
|
applicants: Json;
|
|
@@ -772,6 +917,13 @@ export type Database = {
|
|
|
772
917
|
isOneToOne: false;
|
|
773
918
|
referencedRelation: 'group';
|
|
774
919
|
referencedColumns: ['id'];
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
foreignKeyName: 'public_offer_groupId_fkey';
|
|
923
|
+
columns: ['groupId'];
|
|
924
|
+
isOneToOne: false;
|
|
925
|
+
referencedRelation: 'publicApiGroupModel';
|
|
926
|
+
referencedColumns: ['id'];
|
|
775
927
|
}
|
|
776
928
|
];
|
|
777
929
|
};
|
|
@@ -891,6 +1043,13 @@ export type Database = {
|
|
|
891
1043
|
isOneToOne: false;
|
|
892
1044
|
referencedRelation: 'group';
|
|
893
1045
|
referencedColumns: ['id'];
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
foreignKeyName: 'partnership_group_group_id_fkey';
|
|
1049
|
+
columns: ['groupId'];
|
|
1050
|
+
isOneToOne: false;
|
|
1051
|
+
referencedRelation: 'publicApiGroupModel';
|
|
1052
|
+
referencedColumns: ['id'];
|
|
894
1053
|
}
|
|
895
1054
|
];
|
|
896
1055
|
};
|
|
@@ -1299,6 +1458,27 @@ export type Database = {
|
|
|
1299
1458
|
};
|
|
1300
1459
|
Relationships: [];
|
|
1301
1460
|
};
|
|
1461
|
+
publicApiRateLimit: {
|
|
1462
|
+
Row: {
|
|
1463
|
+
requestCount: number;
|
|
1464
|
+
resetAt: string;
|
|
1465
|
+
updatedAt: string;
|
|
1466
|
+
userId: string;
|
|
1467
|
+
};
|
|
1468
|
+
Insert: {
|
|
1469
|
+
requestCount: number;
|
|
1470
|
+
resetAt: string;
|
|
1471
|
+
updatedAt?: string;
|
|
1472
|
+
userId: string;
|
|
1473
|
+
};
|
|
1474
|
+
Update: {
|
|
1475
|
+
requestCount?: number;
|
|
1476
|
+
resetAt?: string;
|
|
1477
|
+
updatedAt?: string;
|
|
1478
|
+
userId?: string;
|
|
1479
|
+
};
|
|
1480
|
+
Relationships: [];
|
|
1481
|
+
};
|
|
1302
1482
|
repertoire: {
|
|
1303
1483
|
Row: {
|
|
1304
1484
|
compositor: string | null;
|
|
@@ -1308,6 +1488,7 @@ export type Database = {
|
|
|
1308
1488
|
id: string;
|
|
1309
1489
|
last_event_datetime: string | null;
|
|
1310
1490
|
owner_id: string;
|
|
1491
|
+
search_text: string | null;
|
|
1311
1492
|
tags: string[];
|
|
1312
1493
|
title: string;
|
|
1313
1494
|
visibility: string;
|
|
@@ -1320,6 +1501,7 @@ export type Database = {
|
|
|
1320
1501
|
id: string;
|
|
1321
1502
|
last_event_datetime?: string | null;
|
|
1322
1503
|
owner_id: string;
|
|
1504
|
+
search_text?: string | null;
|
|
1323
1505
|
tags: string[];
|
|
1324
1506
|
title: string;
|
|
1325
1507
|
visibility: string;
|
|
@@ -1332,6 +1514,7 @@ export type Database = {
|
|
|
1332
1514
|
id?: string;
|
|
1333
1515
|
last_event_datetime?: string | null;
|
|
1334
1516
|
owner_id?: string;
|
|
1517
|
+
search_text?: string | null;
|
|
1335
1518
|
tags?: string[];
|
|
1336
1519
|
title?: string;
|
|
1337
1520
|
visibility?: string;
|
|
@@ -1375,6 +1558,7 @@ export type Database = {
|
|
|
1375
1558
|
Row: {
|
|
1376
1559
|
analyticsEnabled: boolean;
|
|
1377
1560
|
appConfig: Json;
|
|
1561
|
+
birthDate: string | null;
|
|
1378
1562
|
createdAt: string | null;
|
|
1379
1563
|
customerIds: string[];
|
|
1380
1564
|
dashboardConfig: Json;
|
|
@@ -1395,10 +1579,13 @@ export type Database = {
|
|
|
1395
1579
|
lastname: string | null;
|
|
1396
1580
|
lastWebLoginAt: string | null;
|
|
1397
1581
|
locality: string | null;
|
|
1582
|
+
location: Database['public']['CompositeTypes']['lonlat'] | null;
|
|
1398
1583
|
name: string | null;
|
|
1399
1584
|
notificationSettings: Json;
|
|
1400
1585
|
partnershipIds: string[];
|
|
1401
1586
|
photoURL: string | null;
|
|
1587
|
+
privateSearchText: string | null;
|
|
1588
|
+
publicSearchText: string | null;
|
|
1402
1589
|
rawData: Json;
|
|
1403
1590
|
role: string | null;
|
|
1404
1591
|
updatedAt: string;
|
|
@@ -1409,6 +1596,7 @@ export type Database = {
|
|
|
1409
1596
|
Insert: {
|
|
1410
1597
|
analyticsEnabled?: boolean;
|
|
1411
1598
|
appConfig?: Json;
|
|
1599
|
+
birthDate?: string | null;
|
|
1412
1600
|
createdAt?: string | null;
|
|
1413
1601
|
customerIds?: string[];
|
|
1414
1602
|
dashboardConfig?: Json;
|
|
@@ -1429,10 +1617,13 @@ export type Database = {
|
|
|
1429
1617
|
lastname?: string | null;
|
|
1430
1618
|
lastWebLoginAt?: string | null;
|
|
1431
1619
|
locality?: string | null;
|
|
1620
|
+
location?: Database['public']['CompositeTypes']['lonlat'] | null;
|
|
1432
1621
|
name?: string | null;
|
|
1433
1622
|
notificationSettings?: Json;
|
|
1434
1623
|
partnershipIds?: string[];
|
|
1435
1624
|
photoURL?: string | null;
|
|
1625
|
+
privateSearchText?: string | null;
|
|
1626
|
+
publicSearchText?: string | null;
|
|
1436
1627
|
rawData?: Json;
|
|
1437
1628
|
role?: string | null;
|
|
1438
1629
|
updatedAt?: string;
|
|
@@ -1443,6 +1634,7 @@ export type Database = {
|
|
|
1443
1634
|
Update: {
|
|
1444
1635
|
analyticsEnabled?: boolean;
|
|
1445
1636
|
appConfig?: Json;
|
|
1637
|
+
birthDate?: string | null;
|
|
1446
1638
|
createdAt?: string | null;
|
|
1447
1639
|
customerIds?: string[];
|
|
1448
1640
|
dashboardConfig?: Json;
|
|
@@ -1463,10 +1655,13 @@ export type Database = {
|
|
|
1463
1655
|
lastname?: string | null;
|
|
1464
1656
|
lastWebLoginAt?: string | null;
|
|
1465
1657
|
locality?: string | null;
|
|
1658
|
+
location?: Database['public']['CompositeTypes']['lonlat'] | null;
|
|
1466
1659
|
name?: string | null;
|
|
1467
1660
|
notificationSettings?: Json;
|
|
1468
1661
|
partnershipIds?: string[];
|
|
1469
1662
|
photoURL?: string | null;
|
|
1663
|
+
privateSearchText?: string | null;
|
|
1664
|
+
publicSearchText?: string | null;
|
|
1470
1665
|
rawData?: Json;
|
|
1471
1666
|
role?: string | null;
|
|
1472
1667
|
updatedAt?: string;
|
|
@@ -1478,7 +1673,119 @@ export type Database = {
|
|
|
1478
1673
|
};
|
|
1479
1674
|
};
|
|
1480
1675
|
Views: {
|
|
1481
|
-
|
|
1676
|
+
eventPlayerModel: {
|
|
1677
|
+
Row: {
|
|
1678
|
+
displayName: string | null;
|
|
1679
|
+
eventId: string | null;
|
|
1680
|
+
history: Json[] | null;
|
|
1681
|
+
interested: boolean | null;
|
|
1682
|
+
isGuest: boolean | null;
|
|
1683
|
+
joinedAt: string | null;
|
|
1684
|
+
joinedBy: string | null;
|
|
1685
|
+
mainInstrument: string | null;
|
|
1686
|
+
note: string | null;
|
|
1687
|
+
paymentId: string | null;
|
|
1688
|
+
photoURL: string | null;
|
|
1689
|
+
questions: Json | null;
|
|
1690
|
+
reason: string | null;
|
|
1691
|
+
remarks: string | null;
|
|
1692
|
+
rollcall: string | null;
|
|
1693
|
+
rollCalledAt: string | null;
|
|
1694
|
+
rollCalledVia: string | null;
|
|
1695
|
+
selected: boolean | null;
|
|
1696
|
+
status: string | null;
|
|
1697
|
+
updatedAt: string | null;
|
|
1698
|
+
userId: string | null;
|
|
1699
|
+
username: string | null;
|
|
1700
|
+
};
|
|
1701
|
+
Relationships: [];
|
|
1702
|
+
};
|
|
1703
|
+
groupPlayerModel: {
|
|
1704
|
+
Row: {
|
|
1705
|
+
additionalInfo: Json[] | null;
|
|
1706
|
+
badgeAccPerformances: Json | null;
|
|
1707
|
+
badgeAccPractices: Json | null;
|
|
1708
|
+
badgeAnswerEvents: Json | null;
|
|
1709
|
+
badgePlayedWorks: Json | null;
|
|
1710
|
+
badgeStrikePractices: Json | null;
|
|
1711
|
+
birthDate: string | null;
|
|
1712
|
+
customFields: Json | null;
|
|
1713
|
+
displayName: string | null;
|
|
1714
|
+
email: string | null;
|
|
1715
|
+
fakeUser: boolean | null;
|
|
1716
|
+
groupId: string | null;
|
|
1717
|
+
instruments: string[] | null;
|
|
1718
|
+
instrumentsLastUpdatedBy: string | null;
|
|
1719
|
+
isAdmin: boolean | null;
|
|
1720
|
+
joinedAt: string | null;
|
|
1721
|
+
lastEditAdditionalInfoAt: string | null;
|
|
1722
|
+
lastEditAdditionalInfoBy: string | null;
|
|
1723
|
+
lastname: string | null;
|
|
1724
|
+
leavedAt: string | null;
|
|
1725
|
+
leavedBy: string | null;
|
|
1726
|
+
locality: string | null;
|
|
1727
|
+
location: Database['public']['CompositeTypes']['lonlat'] | null;
|
|
1728
|
+
mainInstrument: string | null;
|
|
1729
|
+
name: string | null;
|
|
1730
|
+
permissions: string[] | null;
|
|
1731
|
+
photoURL: string | null;
|
|
1732
|
+
privateSearchText: string | null;
|
|
1733
|
+
publicSearchText: string | null;
|
|
1734
|
+
role: string | null;
|
|
1735
|
+
updatedAt: string | null;
|
|
1736
|
+
userId: string | null;
|
|
1737
|
+
username: string | null;
|
|
1738
|
+
};
|
|
1739
|
+
Relationships: [];
|
|
1740
|
+
};
|
|
1741
|
+
publicApiGroupModel: {
|
|
1742
|
+
Row: {
|
|
1743
|
+
activeInvitationLink: boolean | null;
|
|
1744
|
+
activePlayersCount: number | null;
|
|
1745
|
+
addresses: Json[] | null;
|
|
1746
|
+
administrators: string[] | null;
|
|
1747
|
+
config: Json | null;
|
|
1748
|
+
configSites: Json | null;
|
|
1749
|
+
country: string | null;
|
|
1750
|
+
createdAt: string | null;
|
|
1751
|
+
createdOn: Database['public']['Enums']['created_on'] | null;
|
|
1752
|
+
customerId: string | null;
|
|
1753
|
+
deletedAt: string | null;
|
|
1754
|
+
deletedBy: string | null;
|
|
1755
|
+
description: string | null;
|
|
1756
|
+
displayName: string | null;
|
|
1757
|
+
id: string | null;
|
|
1758
|
+
instruments: Json | null;
|
|
1759
|
+
intercomId: string | null;
|
|
1760
|
+
invitationEmails: string[] | null;
|
|
1761
|
+
invitationLink: string | null;
|
|
1762
|
+
locality: string | null;
|
|
1763
|
+
location: unknown;
|
|
1764
|
+
location_lonlat: Database['public']['CompositeTypes']['lonlat'] | null;
|
|
1765
|
+
metadata: Json | null;
|
|
1766
|
+
musicStyle: string | null;
|
|
1767
|
+
onboardingMessages: Json[] | null;
|
|
1768
|
+
owner: string | null;
|
|
1769
|
+
partnershipId: string | null;
|
|
1770
|
+
photoURL: string | null;
|
|
1771
|
+
planId: Database['public']['Enums']['group_plan'] | null;
|
|
1772
|
+
playerIds: string[] | null;
|
|
1773
|
+
players: Json | null;
|
|
1774
|
+
repertoireTags: Json | null;
|
|
1775
|
+
rollcallLink: string | null;
|
|
1776
|
+
satisfactionIndex: Json | null;
|
|
1777
|
+
shortDynamicLink: string | null;
|
|
1778
|
+
socialNetworks: Json | null;
|
|
1779
|
+
status: Database['public']['Enums']['group_status'] | null;
|
|
1780
|
+
subscriptionId: string | null;
|
|
1781
|
+
templates: Json | null;
|
|
1782
|
+
trialEndAt: string | null;
|
|
1783
|
+
updatedAt: string | null;
|
|
1784
|
+
username: string | null;
|
|
1785
|
+
visitedDashboardAt: Json | null;
|
|
1786
|
+
};
|
|
1787
|
+
Relationships: [];
|
|
1788
|
+
};
|
|
1482
1789
|
};
|
|
1483
1790
|
Functions: {
|
|
1484
1791
|
backfillEventDatetimeEnds: {
|
|
@@ -1489,6 +1796,18 @@ export type Database = {
|
|
|
1489
1796
|
mismatched: number;
|
|
1490
1797
|
}[];
|
|
1491
1798
|
};
|
|
1799
|
+
consumePublicApiRateLimit: {
|
|
1800
|
+
Args: {
|
|
1801
|
+
p_max_requests: number;
|
|
1802
|
+
p_user_id: string;
|
|
1803
|
+
p_window_seconds: number;
|
|
1804
|
+
};
|
|
1805
|
+
Returns: {
|
|
1806
|
+
allowed: boolean;
|
|
1807
|
+
remaining: number;
|
|
1808
|
+
resetAt: string;
|
|
1809
|
+
}[];
|
|
1810
|
+
};
|
|
1492
1811
|
generate_partnership_recurring_payment: {
|
|
1493
1812
|
Args: {
|
|
1494
1813
|
p_amount: number;
|
|
@@ -1536,6 +1855,34 @@ export type Database = {
|
|
|
1536
1855
|
}[];
|
|
1537
1856
|
};
|
|
1538
1857
|
immutable_unaccent: { Args: { '': string }; Returns: string };
|
|
1858
|
+
listPublicApiRepertoire: {
|
|
1859
|
+
Args: {
|
|
1860
|
+
p_can_manage: boolean;
|
|
1861
|
+
p_event_id?: string;
|
|
1862
|
+
p_group_id: string;
|
|
1863
|
+
p_now?: string;
|
|
1864
|
+
p_user_id: string;
|
|
1865
|
+
};
|
|
1866
|
+
Returns: {
|
|
1867
|
+
compositor: string | null;
|
|
1868
|
+
created_at: string;
|
|
1869
|
+
events: string[];
|
|
1870
|
+
group_id: string;
|
|
1871
|
+
id: string;
|
|
1872
|
+
last_event_datetime: string | null;
|
|
1873
|
+
owner_id: string;
|
|
1874
|
+
search_text: string | null;
|
|
1875
|
+
tags: string[];
|
|
1876
|
+
title: string;
|
|
1877
|
+
visibility: string;
|
|
1878
|
+
}[];
|
|
1879
|
+
SetofOptions: {
|
|
1880
|
+
from: '*';
|
|
1881
|
+
to: 'repertoire';
|
|
1882
|
+
isOneToOne: false;
|
|
1883
|
+
isSetofReturn: true;
|
|
1884
|
+
};
|
|
1885
|
+
};
|
|
1539
1886
|
register_played_works: {
|
|
1540
1887
|
Args: {
|
|
1541
1888
|
p_event_id: string;
|
|
@@ -5,16 +5,45 @@ import { CommOverwrite } from './overwrites/comm';
|
|
|
5
5
|
import { CommHistory } from './overwrites/comm_history';
|
|
6
6
|
import { EventOverwrite } from './overwrites/event';
|
|
7
7
|
import { EventHistory } from './overwrites/event_history';
|
|
8
|
+
import { EventPlayerModelOverwrite, EventPlayerOverwrite } from './overwrites/eventPlayer';
|
|
8
9
|
import { GroupOverwrite } from './overwrites/group';
|
|
9
10
|
import { GroupHistory } from './overwrites/group_history';
|
|
11
|
+
import { GroupPlayerModelOverwrite, GroupPlayerOverwrite } from './overwrites/groupPlayer';
|
|
10
12
|
import { OfferOverwrite } from './overwrites/offer';
|
|
11
13
|
import { OfferHistory } from './overwrites/offer_history';
|
|
14
|
+
import { PublicApiGroupModelOverwrite } from './overwrites/publicApiGroupModel';
|
|
12
15
|
import { RepertoireOverwrite } from './overwrites/repertoire';
|
|
13
16
|
import { RepertoireHistory } from './overwrites/repertoire_history';
|
|
14
|
-
|
|
17
|
+
import { ListPublicApiRepertoireFunction } from './publicApi';
|
|
18
|
+
type SimplifyTableRecord<T extends Record<string, {
|
|
19
|
+
Row: object;
|
|
20
|
+
Insert?: object;
|
|
21
|
+
Update?: object;
|
|
22
|
+
Relationships: unknown;
|
|
23
|
+
}>> = {
|
|
24
|
+
[K in keyof T]: {
|
|
25
|
+
Row: {
|
|
26
|
+
[F in keyof T[K]['Row']]: T[K]['Row'][F];
|
|
27
|
+
};
|
|
28
|
+
Insert: T[K] extends {
|
|
29
|
+
Insert: object;
|
|
30
|
+
} ? {
|
|
31
|
+
[F in keyof T[K]['Insert']]: T[K]['Insert'][F];
|
|
32
|
+
} : never;
|
|
33
|
+
Update: T[K] extends {
|
|
34
|
+
Update: object;
|
|
35
|
+
} ? {
|
|
36
|
+
[F in keyof T[K]['Update']]: T[K]['Update'][F];
|
|
37
|
+
} : never;
|
|
38
|
+
Relationships: T[K]['Relationships'];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type DatabaseMerged = MergeDeep<DatabaseGenerated, {
|
|
15
42
|
public: {
|
|
16
43
|
Tables: {
|
|
17
44
|
group: Overwrite<GroupOverwrite, 'configSites' | 'socialNetworks'>;
|
|
45
|
+
groupPlayer: Overwrite<GroupPlayerOverwrite, 'additionalInfo' | 'customFields' | 'badgeAccPractices' | 'badgeAccPerformances' | 'badgeStrikePractices' | 'badgeAnswerEvents' | 'badgePlayedWorks'>;
|
|
46
|
+
eventPlayer: Overwrite<EventPlayerOverwrite, 'questions' | 'history'>;
|
|
18
47
|
event: Overwrite<EventOverwrite, 'repeat' | 'stage'>;
|
|
19
48
|
offer: Overwrite<OfferOverwrite>;
|
|
20
49
|
repertoire: Overwrite<RepertoireOverwrite>;
|
|
@@ -25,5 +54,57 @@ export type Database = MergeDeep<DatabaseGenerated, {
|
|
|
25
54
|
offer_history: Overwrite<Omit<OfferHistory, 'id'>, 'prev_value' | 'value'>;
|
|
26
55
|
comm_history: Overwrite<Omit<CommHistory, 'id'>, 'prev_value' | 'value'>;
|
|
27
56
|
};
|
|
57
|
+
Views: {
|
|
58
|
+
publicApiGroupModel: Overwrite<PublicApiGroupModelOverwrite>;
|
|
59
|
+
groupPlayerModel: Overwrite<GroupPlayerModelOverwrite, 'additionalInfo' | 'customFields' | 'badgeAccPractices' | 'badgeAccPerformances' | 'badgeStrikePractices' | 'badgeAnswerEvents' | 'badgePlayedWorks'>;
|
|
60
|
+
eventPlayerModel: Overwrite<EventPlayerModelOverwrite, 'questions' | 'history'>;
|
|
61
|
+
};
|
|
62
|
+
Functions: {
|
|
63
|
+
listPublicApiRepertoire: ListPublicApiRepertoireFunction;
|
|
64
|
+
};
|
|
28
65
|
};
|
|
29
66
|
}>;
|
|
67
|
+
export type Database = Omit<DatabaseMerged, 'public'> & {
|
|
68
|
+
public: Omit<DatabaseMerged['public'], 'Tables' | 'Views'> & {
|
|
69
|
+
Tables: SimplifyTableRecord<DatabaseMerged['public']['Tables']>;
|
|
70
|
+
Views: SimplifyTableRecord<DatabaseMerged['public']['Views']>;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>;
|
|
74
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>];
|
|
75
|
+
export type RelationName = keyof (DefaultSchema['Tables'] & DefaultSchema['Views']);
|
|
76
|
+
export type IsRelationName<T extends RelationName> = T;
|
|
77
|
+
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) | {
|
|
78
|
+
schema: keyof DatabaseWithoutInternals;
|
|
79
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
80
|
+
schema: keyof DatabaseWithoutInternals;
|
|
81
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
82
|
+
schema: keyof DatabaseWithoutInternals;
|
|
83
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
84
|
+
Row: infer R;
|
|
85
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) ? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
|
|
86
|
+
Row: infer R;
|
|
87
|
+
} ? R : never : never;
|
|
88
|
+
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] | {
|
|
89
|
+
schema: keyof DatabaseWithoutInternals;
|
|
90
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
91
|
+
schema: keyof DatabaseWithoutInternals;
|
|
92
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
93
|
+
schema: keyof DatabaseWithoutInternals;
|
|
94
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
95
|
+
Insert: infer I;
|
|
96
|
+
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] ? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
|
97
|
+
Insert: infer I;
|
|
98
|
+
} ? I : never : never;
|
|
99
|
+
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] | {
|
|
100
|
+
schema: keyof DatabaseWithoutInternals;
|
|
101
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
102
|
+
schema: keyof DatabaseWithoutInternals;
|
|
103
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
104
|
+
schema: keyof DatabaseWithoutInternals;
|
|
105
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
106
|
+
Update: infer U;
|
|
107
|
+
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] ? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
|
|
108
|
+
Update: infer U;
|
|
109
|
+
} ? U : never : never;
|
|
110
|
+
export {};
|