@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
package/functions/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare enum FbFunctionName {
|
|
2
|
+
PublicApi = "api",
|
|
2
3
|
AuthGetToken = "authGetToken",
|
|
3
4
|
AuthLogin = "authLogin",
|
|
4
5
|
AuthLogout = "authLogout",
|
|
@@ -40,6 +41,9 @@ export declare enum FbFunctionName {
|
|
|
40
41
|
EventOnCreate = "event-onCreate",
|
|
41
42
|
EventOnUpdate = "event-onUpdate",
|
|
42
43
|
EventPlayerEdit = "eventPlayer-edit",
|
|
44
|
+
EventPlayerOnCreate = "eventPlayer-onCreate",
|
|
45
|
+
EventPlayerOnDelete = "eventPlayer-onDelete",
|
|
46
|
+
EventPlayerOnUpdate = "eventPlayer-onUpdate",
|
|
43
47
|
EventPlayerEditPlayerAttendance = "eventPlayer-editPlayerAttendance",
|
|
44
48
|
EventPlayerEditPlayerInterest = "eventPlayer-editPlayerInterest",
|
|
45
49
|
EventPlayerSetReasonAttendance = "eventPlayer-setReasonAttendance",
|
|
@@ -91,6 +95,8 @@ export declare enum FbFunctionName {
|
|
|
91
95
|
GroupOnUpdate = "group-onUpdate",
|
|
92
96
|
GroupPlayerAdd = "groupPlayer-add",
|
|
93
97
|
GroupPlayerAddPlayer = "groupPlayer-addPlayer",
|
|
98
|
+
GroupPlayerOnCreate = "groupPlayer-onCreate",
|
|
99
|
+
GroupPlayerOnDelete = "groupPlayer-onDelete",
|
|
94
100
|
GroupPlayerEventOnUpdate = "groupPlayerEvent-onUpdate",
|
|
95
101
|
GroupPlayerJoin = "groupPlayer-joinGroup",
|
|
96
102
|
GroupPlayerLeave = "groupPlayer-leave",
|
package/functions/index.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FbFunctionName = void 0;
|
|
4
4
|
var FbFunctionName;
|
|
5
5
|
(function (FbFunctionName) {
|
|
6
|
+
FbFunctionName["PublicApi"] = "api";
|
|
6
7
|
FbFunctionName["AuthGetToken"] = "authGetToken";
|
|
7
8
|
FbFunctionName["AuthLogin"] = "authLogin";
|
|
8
9
|
FbFunctionName["AuthLogout"] = "authLogout";
|
|
@@ -44,6 +45,9 @@ var FbFunctionName;
|
|
|
44
45
|
FbFunctionName["EventOnCreate"] = "event-onCreate";
|
|
45
46
|
FbFunctionName["EventOnUpdate"] = "event-onUpdate";
|
|
46
47
|
FbFunctionName["EventPlayerEdit"] = "eventPlayer-edit";
|
|
48
|
+
FbFunctionName["EventPlayerOnCreate"] = "eventPlayer-onCreate";
|
|
49
|
+
FbFunctionName["EventPlayerOnDelete"] = "eventPlayer-onDelete";
|
|
50
|
+
FbFunctionName["EventPlayerOnUpdate"] = "eventPlayer-onUpdate";
|
|
47
51
|
FbFunctionName["EventPlayerEditPlayerAttendance"] = "eventPlayer-editPlayerAttendance";
|
|
48
52
|
FbFunctionName["EventPlayerEditPlayerInterest"] = "eventPlayer-editPlayerInterest";
|
|
49
53
|
FbFunctionName["EventPlayerSetReasonAttendance"] = "eventPlayer-setReasonAttendance";
|
|
@@ -95,6 +99,8 @@ var FbFunctionName;
|
|
|
95
99
|
FbFunctionName["GroupOnUpdate"] = "group-onUpdate";
|
|
96
100
|
FbFunctionName["GroupPlayerAdd"] = "groupPlayer-add";
|
|
97
101
|
FbFunctionName["GroupPlayerAddPlayer"] = "groupPlayer-addPlayer";
|
|
102
|
+
FbFunctionName["GroupPlayerOnCreate"] = "groupPlayer-onCreate";
|
|
103
|
+
FbFunctionName["GroupPlayerOnDelete"] = "groupPlayer-onDelete";
|
|
98
104
|
FbFunctionName["GroupPlayerEventOnUpdate"] = "groupPlayerEvent-onUpdate";
|
|
99
105
|
FbFunctionName["GroupPlayerJoin"] = "groupPlayer-joinGroup";
|
|
100
106
|
FbFunctionName["GroupPlayerLeave"] = "groupPlayer-leave";
|
package/functions/regions.js
CHANGED
|
@@ -10,6 +10,7 @@ var GCloudRegions;
|
|
|
10
10
|
})(GCloudRegions = exports.GCloudRegions || (exports.GCloudRegions = {}));
|
|
11
11
|
const defaultRegion = GCloudRegions.UsCentral1;
|
|
12
12
|
const regionByFunctions = {
|
|
13
|
+
[index_1.FbFunctionName.PublicApi]: GCloudRegions.EuropeWest6,
|
|
13
14
|
[index_1.FbFunctionName.AuthGetToken]: GCloudRegions.EuropeWest6,
|
|
14
15
|
[index_1.FbFunctionName.AuthLogin]: GCloudRegions.EuropeWest6,
|
|
15
16
|
[index_1.FbFunctionName.AuthLogout]: GCloudRegions.EuropeWest6,
|
|
@@ -51,6 +52,9 @@ const regionByFunctions = {
|
|
|
51
52
|
[index_1.FbFunctionName.EventOnCreate]: GCloudRegions.UsCentral1,
|
|
52
53
|
[index_1.FbFunctionName.EventOnUpdate]: GCloudRegions.UsCentral1,
|
|
53
54
|
[index_1.FbFunctionName.EventPlayerEdit]: GCloudRegions.UsCentral1,
|
|
55
|
+
[index_1.FbFunctionName.EventPlayerOnCreate]: GCloudRegions.UsCentral1,
|
|
56
|
+
[index_1.FbFunctionName.EventPlayerOnDelete]: GCloudRegions.UsCentral1,
|
|
57
|
+
[index_1.FbFunctionName.EventPlayerOnUpdate]: GCloudRegions.UsCentral1,
|
|
54
58
|
[index_1.FbFunctionName.EventPlayerEditPlayerAttendance]: GCloudRegions.EuropeWest6,
|
|
55
59
|
[index_1.FbFunctionName.EventPlayerEditPlayerInterest]: GCloudRegions.EuropeWest6,
|
|
56
60
|
[index_1.FbFunctionName.EventPlayerSetReasonAttendance]: GCloudRegions.EuropeWest6,
|
|
@@ -102,6 +106,8 @@ const regionByFunctions = {
|
|
|
102
106
|
[index_1.FbFunctionName.GroupOnUpdate]: GCloudRegions.UsCentral1,
|
|
103
107
|
[index_1.FbFunctionName.GroupPlayerAdd]: GCloudRegions.UsCentral1,
|
|
104
108
|
[index_1.FbFunctionName.GroupPlayerAddPlayer]: GCloudRegions.EuropeWest6,
|
|
109
|
+
[index_1.FbFunctionName.GroupPlayerOnCreate]: GCloudRegions.UsCentral1,
|
|
110
|
+
[index_1.FbFunctionName.GroupPlayerOnDelete]: GCloudRegions.UsCentral1,
|
|
105
111
|
[index_1.FbFunctionName.GroupPlayerEventOnUpdate]: GCloudRegions.UsCentral1,
|
|
106
112
|
[index_1.FbFunctionName.GroupPlayerEditFakeInfo]: GCloudRegions.EuropeWest6,
|
|
107
113
|
[index_1.FbFunctionName.GroupPlayerLinkFakeAccount]: GCloudRegions.EuropeWest6,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventPlayerAnswers, EventPlayerHistory } from '../../Evento/Player/types';
|
|
2
|
+
import { IsRelationName, Tables, TablesInsert, TablesUpdate } from '../../../types/supabase';
|
|
3
|
+
export interface EventPlayerJsonHistory extends Omit<EventPlayerHistory, 'changedAt'> {
|
|
4
|
+
changedAt: string;
|
|
5
|
+
}
|
|
6
|
+
export type EventPlayerJsonQuestions = EventPlayerAnswers[];
|
|
7
|
+
type tableName = IsRelationName<'eventPlayer'>;
|
|
8
|
+
type modelName = IsRelationName<'eventPlayerModel'>;
|
|
9
|
+
export type EventPlayerData = Tables<tableName>;
|
|
10
|
+
export type EventPlayerModelData = Tables<modelName>;
|
|
11
|
+
export type EventPlayerInsertData = TablesInsert<tableName>;
|
|
12
|
+
export type EventPlayerUpdateData = TablesUpdate<tableName>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Descendant } from '../../../helpers/slate';
|
|
2
|
+
import { GroupPlayerCustomFieldValue } from '../../Group/Player/types';
|
|
3
|
+
import { IsRelationName, Tables, TablesInsert, TablesUpdate } from '../../../types/supabase';
|
|
4
|
+
export interface GroupPlayerJsonCustomFieldValue extends Omit<GroupPlayerCustomFieldValue, 'value' | 'updatedAt'> {
|
|
5
|
+
value: string | number | boolean | null;
|
|
6
|
+
updatedAt: string | null;
|
|
7
|
+
}
|
|
8
|
+
export type GroupPlayerJsonBadgeLevels = Record<string, string>;
|
|
9
|
+
export type GroupPlayerAdditionalInfo = Descendant[];
|
|
10
|
+
export type GroupPlayerJsonCustomFields = Record<string, GroupPlayerJsonCustomFieldValue>;
|
|
11
|
+
type tableName = IsRelationName<'groupPlayer'>;
|
|
12
|
+
type modelName = IsRelationName<'groupPlayerModel'>;
|
|
13
|
+
export type GroupPlayerData = Tables<tableName>;
|
|
14
|
+
export type GroupPlayerModelData = Tables<modelName>;
|
|
15
|
+
export type GroupPlayerInsertData = TablesInsert<tableName>;
|
|
16
|
+
export type GroupPlayerUpdateData = TablesUpdate<tableName>;
|
|
17
|
+
export {};
|
package/package.json
CHANGED
|
@@ -364,6 +364,13 @@ export type Database = {
|
|
|
364
364
|
isOneToOne: false;
|
|
365
365
|
referencedRelation: 'group';
|
|
366
366
|
referencedColumns: ['id'];
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
foreignKeyName: 'event_promoter_group_id_fkey';
|
|
370
|
+
columns: ['promoter'];
|
|
371
|
+
isOneToOne: false;
|
|
372
|
+
referencedRelation: 'publicApiGroupModel';
|
|
373
|
+
referencedColumns: ['id'];
|
|
367
374
|
}
|
|
368
375
|
];
|
|
369
376
|
};
|
|
@@ -400,6 +407,72 @@ export type Database = {
|
|
|
400
407
|
};
|
|
401
408
|
Relationships: [];
|
|
402
409
|
};
|
|
410
|
+
eventPlayer: {
|
|
411
|
+
Row: {
|
|
412
|
+
eventId: string;
|
|
413
|
+
history: Json[];
|
|
414
|
+
interested: boolean | null;
|
|
415
|
+
isGuest: boolean;
|
|
416
|
+
joinedAt: string | null;
|
|
417
|
+
joinedBy: string | null;
|
|
418
|
+
mainInstrument: string | null;
|
|
419
|
+
note: string | null;
|
|
420
|
+
paymentId: string | null;
|
|
421
|
+
questions: Json;
|
|
422
|
+
reason: string | null;
|
|
423
|
+
remarks: string | null;
|
|
424
|
+
rollcall: string | null;
|
|
425
|
+
rollCalledAt: string | null;
|
|
426
|
+
rollCalledVia: string | null;
|
|
427
|
+
selected: boolean | null;
|
|
428
|
+
status: string | null;
|
|
429
|
+
updatedAt: string;
|
|
430
|
+
userId: string;
|
|
431
|
+
};
|
|
432
|
+
Insert: {
|
|
433
|
+
eventId: string;
|
|
434
|
+
history?: Json[];
|
|
435
|
+
interested?: boolean | null;
|
|
436
|
+
isGuest?: boolean;
|
|
437
|
+
joinedAt?: string | null;
|
|
438
|
+
joinedBy?: string | null;
|
|
439
|
+
mainInstrument?: string | null;
|
|
440
|
+
note?: string | null;
|
|
441
|
+
paymentId?: string | null;
|
|
442
|
+
questions?: Json;
|
|
443
|
+
reason?: string | null;
|
|
444
|
+
remarks?: string | null;
|
|
445
|
+
rollcall?: string | null;
|
|
446
|
+
rollCalledAt?: string | null;
|
|
447
|
+
rollCalledVia?: string | null;
|
|
448
|
+
selected?: boolean | null;
|
|
449
|
+
status?: string | null;
|
|
450
|
+
updatedAt?: string;
|
|
451
|
+
userId: string;
|
|
452
|
+
};
|
|
453
|
+
Update: {
|
|
454
|
+
eventId?: string;
|
|
455
|
+
history?: Json[];
|
|
456
|
+
interested?: boolean | null;
|
|
457
|
+
isGuest?: boolean;
|
|
458
|
+
joinedAt?: string | null;
|
|
459
|
+
joinedBy?: string | null;
|
|
460
|
+
mainInstrument?: string | null;
|
|
461
|
+
note?: string | null;
|
|
462
|
+
paymentId?: string | null;
|
|
463
|
+
questions?: Json;
|
|
464
|
+
reason?: string | null;
|
|
465
|
+
remarks?: string | null;
|
|
466
|
+
rollcall?: string | null;
|
|
467
|
+
rollCalledAt?: string | null;
|
|
468
|
+
rollCalledVia?: string | null;
|
|
469
|
+
selected?: boolean | null;
|
|
470
|
+
status?: string | null;
|
|
471
|
+
updatedAt?: string;
|
|
472
|
+
userId?: string;
|
|
473
|
+
};
|
|
474
|
+
Relationships: [];
|
|
475
|
+
};
|
|
403
476
|
group: {
|
|
404
477
|
Row: {
|
|
405
478
|
activeInvitationLink: boolean;
|
|
@@ -675,6 +748,78 @@ export type Database = {
|
|
|
675
748
|
}
|
|
676
749
|
];
|
|
677
750
|
};
|
|
751
|
+
groupPlayer: {
|
|
752
|
+
Row: {
|
|
753
|
+
additionalInfo: Json[];
|
|
754
|
+
badgeAccPerformances: Json;
|
|
755
|
+
badgeAccPractices: Json;
|
|
756
|
+
badgeAnswerEvents: Json;
|
|
757
|
+
badgePlayedWorks: Json;
|
|
758
|
+
badgeStrikePractices: Json;
|
|
759
|
+
customFields: Json;
|
|
760
|
+
groupId: string;
|
|
761
|
+
instruments: string[];
|
|
762
|
+
instrumentsLastUpdatedBy: string | null;
|
|
763
|
+
isAdmin: boolean;
|
|
764
|
+
joinedAt: string | null;
|
|
765
|
+
lastEditAdditionalInfoAt: string | null;
|
|
766
|
+
lastEditAdditionalInfoBy: string | null;
|
|
767
|
+
leavedAt: string | null;
|
|
768
|
+
leavedBy: string | null;
|
|
769
|
+
mainInstrument: string | null;
|
|
770
|
+
permissions: string[];
|
|
771
|
+
role: string;
|
|
772
|
+
updatedAt: string;
|
|
773
|
+
userId: string;
|
|
774
|
+
};
|
|
775
|
+
Insert: {
|
|
776
|
+
additionalInfo?: Json[];
|
|
777
|
+
badgeAccPerformances?: Json;
|
|
778
|
+
badgeAccPractices?: Json;
|
|
779
|
+
badgeAnswerEvents?: Json;
|
|
780
|
+
badgePlayedWorks?: Json;
|
|
781
|
+
badgeStrikePractices?: Json;
|
|
782
|
+
customFields?: Json;
|
|
783
|
+
groupId: string;
|
|
784
|
+
instruments?: string[];
|
|
785
|
+
instrumentsLastUpdatedBy?: string | null;
|
|
786
|
+
isAdmin?: boolean;
|
|
787
|
+
joinedAt?: string | null;
|
|
788
|
+
lastEditAdditionalInfoAt?: string | null;
|
|
789
|
+
lastEditAdditionalInfoBy?: string | null;
|
|
790
|
+
leavedAt?: string | null;
|
|
791
|
+
leavedBy?: string | null;
|
|
792
|
+
mainInstrument?: string | null;
|
|
793
|
+
permissions?: string[];
|
|
794
|
+
role: string;
|
|
795
|
+
updatedAt?: string;
|
|
796
|
+
userId: string;
|
|
797
|
+
};
|
|
798
|
+
Update: {
|
|
799
|
+
additionalInfo?: Json[];
|
|
800
|
+
badgeAccPerformances?: Json;
|
|
801
|
+
badgeAccPractices?: Json;
|
|
802
|
+
badgeAnswerEvents?: Json;
|
|
803
|
+
badgePlayedWorks?: Json;
|
|
804
|
+
badgeStrikePractices?: Json;
|
|
805
|
+
customFields?: Json;
|
|
806
|
+
groupId?: string;
|
|
807
|
+
instruments?: string[];
|
|
808
|
+
instrumentsLastUpdatedBy?: string | null;
|
|
809
|
+
isAdmin?: boolean;
|
|
810
|
+
joinedAt?: string | null;
|
|
811
|
+
lastEditAdditionalInfoAt?: string | null;
|
|
812
|
+
lastEditAdditionalInfoBy?: string | null;
|
|
813
|
+
leavedAt?: string | null;
|
|
814
|
+
leavedBy?: string | null;
|
|
815
|
+
mainInstrument?: string | null;
|
|
816
|
+
permissions?: string[];
|
|
817
|
+
role?: string;
|
|
818
|
+
updatedAt?: string;
|
|
819
|
+
userId?: string;
|
|
820
|
+
};
|
|
821
|
+
Relationships: [];
|
|
822
|
+
};
|
|
678
823
|
offer: {
|
|
679
824
|
Row: {
|
|
680
825
|
applicants: Json;
|
|
@@ -771,6 +916,13 @@ export type Database = {
|
|
|
771
916
|
isOneToOne: false;
|
|
772
917
|
referencedRelation: 'group';
|
|
773
918
|
referencedColumns: ['id'];
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
foreignKeyName: 'public_offer_groupId_fkey';
|
|
922
|
+
columns: ['groupId'];
|
|
923
|
+
isOneToOne: false;
|
|
924
|
+
referencedRelation: 'publicApiGroupModel';
|
|
925
|
+
referencedColumns: ['id'];
|
|
774
926
|
}
|
|
775
927
|
];
|
|
776
928
|
};
|
|
@@ -890,6 +1042,13 @@ export type Database = {
|
|
|
890
1042
|
isOneToOne: false;
|
|
891
1043
|
referencedRelation: 'group';
|
|
892
1044
|
referencedColumns: ['id'];
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
foreignKeyName: 'partnership_group_group_id_fkey';
|
|
1048
|
+
columns: ['groupId'];
|
|
1049
|
+
isOneToOne: false;
|
|
1050
|
+
referencedRelation: 'publicApiGroupModel';
|
|
1051
|
+
referencedColumns: ['id'];
|
|
893
1052
|
}
|
|
894
1053
|
];
|
|
895
1054
|
};
|
|
@@ -1290,6 +1449,27 @@ export type Database = {
|
|
|
1290
1449
|
};
|
|
1291
1450
|
Relationships: [];
|
|
1292
1451
|
};
|
|
1452
|
+
publicApiRateLimit: {
|
|
1453
|
+
Row: {
|
|
1454
|
+
requestCount: number;
|
|
1455
|
+
resetAt: string;
|
|
1456
|
+
updatedAt: string;
|
|
1457
|
+
userId: string;
|
|
1458
|
+
};
|
|
1459
|
+
Insert: {
|
|
1460
|
+
requestCount: number;
|
|
1461
|
+
resetAt: string;
|
|
1462
|
+
updatedAt?: string;
|
|
1463
|
+
userId: string;
|
|
1464
|
+
};
|
|
1465
|
+
Update: {
|
|
1466
|
+
requestCount?: number;
|
|
1467
|
+
resetAt?: string;
|
|
1468
|
+
updatedAt?: string;
|
|
1469
|
+
userId?: string;
|
|
1470
|
+
};
|
|
1471
|
+
Relationships: [];
|
|
1472
|
+
};
|
|
1293
1473
|
repertoire: {
|
|
1294
1474
|
Row: {
|
|
1295
1475
|
compositor: string | null;
|
|
@@ -1299,6 +1479,7 @@ export type Database = {
|
|
|
1299
1479
|
id: string;
|
|
1300
1480
|
last_event_datetime: string | null;
|
|
1301
1481
|
owner_id: string;
|
|
1482
|
+
search_text: string | null;
|
|
1302
1483
|
tags: string[];
|
|
1303
1484
|
title: string;
|
|
1304
1485
|
visibility: string;
|
|
@@ -1311,6 +1492,7 @@ export type Database = {
|
|
|
1311
1492
|
id: string;
|
|
1312
1493
|
last_event_datetime?: string | null;
|
|
1313
1494
|
owner_id: string;
|
|
1495
|
+
search_text?: string | null;
|
|
1314
1496
|
tags: string[];
|
|
1315
1497
|
title: string;
|
|
1316
1498
|
visibility: string;
|
|
@@ -1323,6 +1505,7 @@ export type Database = {
|
|
|
1323
1505
|
id?: string;
|
|
1324
1506
|
last_event_datetime?: string | null;
|
|
1325
1507
|
owner_id?: string;
|
|
1508
|
+
search_text?: string | null;
|
|
1326
1509
|
tags?: string[];
|
|
1327
1510
|
title?: string;
|
|
1328
1511
|
visibility?: string;
|
|
@@ -1366,6 +1549,7 @@ export type Database = {
|
|
|
1366
1549
|
Row: {
|
|
1367
1550
|
analyticsEnabled: boolean;
|
|
1368
1551
|
appConfig: Json;
|
|
1552
|
+
birthDate: string | null;
|
|
1369
1553
|
createdAt: string | null;
|
|
1370
1554
|
customerIds: string[];
|
|
1371
1555
|
dashboardConfig: Json;
|
|
@@ -1386,10 +1570,13 @@ export type Database = {
|
|
|
1386
1570
|
lastname: string | null;
|
|
1387
1571
|
lastWebLoginAt: string | null;
|
|
1388
1572
|
locality: string | null;
|
|
1573
|
+
location: Database['public']['CompositeTypes']['lonlat'] | null;
|
|
1389
1574
|
name: string | null;
|
|
1390
1575
|
notificationSettings: Json;
|
|
1391
1576
|
partnershipIds: string[];
|
|
1392
1577
|
photoURL: string | null;
|
|
1578
|
+
privateSearchText: string | null;
|
|
1579
|
+
publicSearchText: string | null;
|
|
1393
1580
|
rawData: Json;
|
|
1394
1581
|
role: string | null;
|
|
1395
1582
|
updatedAt: string;
|
|
@@ -1400,6 +1587,7 @@ export type Database = {
|
|
|
1400
1587
|
Insert: {
|
|
1401
1588
|
analyticsEnabled?: boolean;
|
|
1402
1589
|
appConfig?: Json;
|
|
1590
|
+
birthDate?: string | null;
|
|
1403
1591
|
createdAt?: string | null;
|
|
1404
1592
|
customerIds?: string[];
|
|
1405
1593
|
dashboardConfig?: Json;
|
|
@@ -1420,10 +1608,13 @@ export type Database = {
|
|
|
1420
1608
|
lastname?: string | null;
|
|
1421
1609
|
lastWebLoginAt?: string | null;
|
|
1422
1610
|
locality?: string | null;
|
|
1611
|
+
location?: Database['public']['CompositeTypes']['lonlat'] | null;
|
|
1423
1612
|
name?: string | null;
|
|
1424
1613
|
notificationSettings?: Json;
|
|
1425
1614
|
partnershipIds?: string[];
|
|
1426
1615
|
photoURL?: string | null;
|
|
1616
|
+
privateSearchText?: string | null;
|
|
1617
|
+
publicSearchText?: string | null;
|
|
1427
1618
|
rawData?: Json;
|
|
1428
1619
|
role?: string | null;
|
|
1429
1620
|
updatedAt?: string;
|
|
@@ -1434,6 +1625,7 @@ export type Database = {
|
|
|
1434
1625
|
Update: {
|
|
1435
1626
|
analyticsEnabled?: boolean;
|
|
1436
1627
|
appConfig?: Json;
|
|
1628
|
+
birthDate?: string | null;
|
|
1437
1629
|
createdAt?: string | null;
|
|
1438
1630
|
customerIds?: string[];
|
|
1439
1631
|
dashboardConfig?: Json;
|
|
@@ -1454,10 +1646,13 @@ export type Database = {
|
|
|
1454
1646
|
lastname?: string | null;
|
|
1455
1647
|
lastWebLoginAt?: string | null;
|
|
1456
1648
|
locality?: string | null;
|
|
1649
|
+
location?: Database['public']['CompositeTypes']['lonlat'] | null;
|
|
1457
1650
|
name?: string | null;
|
|
1458
1651
|
notificationSettings?: Json;
|
|
1459
1652
|
partnershipIds?: string[];
|
|
1460
1653
|
photoURL?: string | null;
|
|
1654
|
+
privateSearchText?: string | null;
|
|
1655
|
+
publicSearchText?: string | null;
|
|
1461
1656
|
rawData?: Json;
|
|
1462
1657
|
role?: string | null;
|
|
1463
1658
|
updatedAt?: string;
|
|
@@ -1469,7 +1664,119 @@ export type Database = {
|
|
|
1469
1664
|
};
|
|
1470
1665
|
};
|
|
1471
1666
|
Views: {
|
|
1472
|
-
|
|
1667
|
+
eventPlayerModel: {
|
|
1668
|
+
Row: {
|
|
1669
|
+
displayName: string | null;
|
|
1670
|
+
eventId: string | null;
|
|
1671
|
+
history: Json[] | null;
|
|
1672
|
+
interested: boolean | null;
|
|
1673
|
+
isGuest: boolean | null;
|
|
1674
|
+
joinedAt: string | null;
|
|
1675
|
+
joinedBy: string | null;
|
|
1676
|
+
mainInstrument: string | null;
|
|
1677
|
+
note: string | null;
|
|
1678
|
+
paymentId: string | null;
|
|
1679
|
+
photoURL: string | null;
|
|
1680
|
+
questions: Json | null;
|
|
1681
|
+
reason: string | null;
|
|
1682
|
+
remarks: string | null;
|
|
1683
|
+
rollcall: string | null;
|
|
1684
|
+
rollCalledAt: string | null;
|
|
1685
|
+
rollCalledVia: string | null;
|
|
1686
|
+
selected: boolean | null;
|
|
1687
|
+
status: string | null;
|
|
1688
|
+
updatedAt: string | null;
|
|
1689
|
+
userId: string | null;
|
|
1690
|
+
username: string | null;
|
|
1691
|
+
};
|
|
1692
|
+
Relationships: [];
|
|
1693
|
+
};
|
|
1694
|
+
groupPlayerModel: {
|
|
1695
|
+
Row: {
|
|
1696
|
+
additionalInfo: Json[] | null;
|
|
1697
|
+
badgeAccPerformances: Json | null;
|
|
1698
|
+
badgeAccPractices: Json | null;
|
|
1699
|
+
badgeAnswerEvents: Json | null;
|
|
1700
|
+
badgePlayedWorks: Json | null;
|
|
1701
|
+
badgeStrikePractices: Json | null;
|
|
1702
|
+
birthDate: string | null;
|
|
1703
|
+
customFields: Json | null;
|
|
1704
|
+
displayName: string | null;
|
|
1705
|
+
email: string | null;
|
|
1706
|
+
fakeUser: boolean | null;
|
|
1707
|
+
groupId: string | null;
|
|
1708
|
+
instruments: string[] | null;
|
|
1709
|
+
instrumentsLastUpdatedBy: string | null;
|
|
1710
|
+
isAdmin: boolean | null;
|
|
1711
|
+
joinedAt: string | null;
|
|
1712
|
+
lastEditAdditionalInfoAt: string | null;
|
|
1713
|
+
lastEditAdditionalInfoBy: string | null;
|
|
1714
|
+
lastname: string | null;
|
|
1715
|
+
leavedAt: string | null;
|
|
1716
|
+
leavedBy: string | null;
|
|
1717
|
+
locality: string | null;
|
|
1718
|
+
location: Database['public']['CompositeTypes']['lonlat'] | null;
|
|
1719
|
+
mainInstrument: string | null;
|
|
1720
|
+
name: string | null;
|
|
1721
|
+
permissions: string[] | null;
|
|
1722
|
+
photoURL: string | null;
|
|
1723
|
+
privateSearchText: string | null;
|
|
1724
|
+
publicSearchText: string | null;
|
|
1725
|
+
role: string | null;
|
|
1726
|
+
updatedAt: string | null;
|
|
1727
|
+
userId: string | null;
|
|
1728
|
+
username: string | null;
|
|
1729
|
+
};
|
|
1730
|
+
Relationships: [];
|
|
1731
|
+
};
|
|
1732
|
+
publicApiGroupModel: {
|
|
1733
|
+
Row: {
|
|
1734
|
+
activeInvitationLink: boolean | null;
|
|
1735
|
+
activePlayersCount: number | null;
|
|
1736
|
+
addresses: Json[] | null;
|
|
1737
|
+
administrators: string[] | null;
|
|
1738
|
+
config: Json | null;
|
|
1739
|
+
configSites: Json | null;
|
|
1740
|
+
country: string | null;
|
|
1741
|
+
createdAt: string | null;
|
|
1742
|
+
createdOn: Database['public']['Enums']['created_on'] | null;
|
|
1743
|
+
customerId: string | null;
|
|
1744
|
+
deletedAt: string | null;
|
|
1745
|
+
deletedBy: string | null;
|
|
1746
|
+
description: string | null;
|
|
1747
|
+
displayName: string | null;
|
|
1748
|
+
id: string | null;
|
|
1749
|
+
instruments: Json | null;
|
|
1750
|
+
intercomId: string | null;
|
|
1751
|
+
invitationEmails: string[] | null;
|
|
1752
|
+
invitationLink: string | null;
|
|
1753
|
+
locality: string | null;
|
|
1754
|
+
location: unknown;
|
|
1755
|
+
location_lonlat: Database['public']['CompositeTypes']['lonlat'] | null;
|
|
1756
|
+
metadata: Json | null;
|
|
1757
|
+
musicStyle: string | null;
|
|
1758
|
+
onboardingMessages: Json[] | null;
|
|
1759
|
+
owner: string | null;
|
|
1760
|
+
partnershipId: string | null;
|
|
1761
|
+
photoURL: string | null;
|
|
1762
|
+
planId: Database['public']['Enums']['group_plan'] | null;
|
|
1763
|
+
playerIds: string[] | null;
|
|
1764
|
+
players: Json | null;
|
|
1765
|
+
repertoireTags: Json | null;
|
|
1766
|
+
rollcallLink: string | null;
|
|
1767
|
+
satisfactionIndex: Json | null;
|
|
1768
|
+
shortDynamicLink: string | null;
|
|
1769
|
+
socialNetworks: Json | null;
|
|
1770
|
+
status: Database['public']['Enums']['group_status'] | null;
|
|
1771
|
+
subscriptionId: string | null;
|
|
1772
|
+
templates: Json | null;
|
|
1773
|
+
trialEndAt: string | null;
|
|
1774
|
+
updatedAt: string | null;
|
|
1775
|
+
username: string | null;
|
|
1776
|
+
visitedDashboardAt: Json | null;
|
|
1777
|
+
};
|
|
1778
|
+
Relationships: [];
|
|
1779
|
+
};
|
|
1473
1780
|
};
|
|
1474
1781
|
Functions: {
|
|
1475
1782
|
backfillEventDatetimeEnds: {
|
|
@@ -1483,6 +1790,18 @@ export type Database = {
|
|
|
1483
1790
|
mismatched: number;
|
|
1484
1791
|
}[];
|
|
1485
1792
|
};
|
|
1793
|
+
consumePublicApiRateLimit: {
|
|
1794
|
+
Args: {
|
|
1795
|
+
p_max_requests: number;
|
|
1796
|
+
p_user_id: string;
|
|
1797
|
+
p_window_seconds: number;
|
|
1798
|
+
};
|
|
1799
|
+
Returns: {
|
|
1800
|
+
allowed: boolean;
|
|
1801
|
+
remaining: number;
|
|
1802
|
+
resetAt: string;
|
|
1803
|
+
}[];
|
|
1804
|
+
};
|
|
1486
1805
|
generate_partnership_recurring_payment: {
|
|
1487
1806
|
Args: {
|
|
1488
1807
|
p_amount: number;
|
|
@@ -1535,6 +1854,34 @@ export type Database = {
|
|
|
1535
1854
|
};
|
|
1536
1855
|
Returns: string;
|
|
1537
1856
|
};
|
|
1857
|
+
listPublicApiRepertoire: {
|
|
1858
|
+
Args: {
|
|
1859
|
+
p_can_manage: boolean;
|
|
1860
|
+
p_event_id?: string;
|
|
1861
|
+
p_group_id: string;
|
|
1862
|
+
p_now?: string;
|
|
1863
|
+
p_user_id: string;
|
|
1864
|
+
};
|
|
1865
|
+
Returns: {
|
|
1866
|
+
compositor: string | null;
|
|
1867
|
+
created_at: string;
|
|
1868
|
+
events: string[];
|
|
1869
|
+
group_id: string;
|
|
1870
|
+
id: string;
|
|
1871
|
+
last_event_datetime: string | null;
|
|
1872
|
+
owner_id: string;
|
|
1873
|
+
search_text: string | null;
|
|
1874
|
+
tags: string[];
|
|
1875
|
+
title: string;
|
|
1876
|
+
visibility: string;
|
|
1877
|
+
}[];
|
|
1878
|
+
SetofOptions: {
|
|
1879
|
+
from: '*';
|
|
1880
|
+
to: 'repertoire';
|
|
1881
|
+
isOneToOne: false;
|
|
1882
|
+
isSetofReturn: true;
|
|
1883
|
+
};
|
|
1884
|
+
};
|
|
1538
1885
|
register_played_works: {
|
|
1539
1886
|
Args: {
|
|
1540
1887
|
p_event_id: string;
|