@glissandoo/lib 1.117.0 → 1.119.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 +2 -0
- package/functions/index.js +2 -0
- package/functions/partnershipPartner.d.ts +15 -1
- package/functions/partnershipSepaPaymentGroup.d.ts +4 -1
- package/functions/regions.js +2 -0
- package/helpers/errors.d.ts +3 -0
- package/helpers/errors.js +3 -0
- package/helpers/types.d.ts +1 -0
- package/helpers/types.js +13 -1
- package/models/Evento/Player/basic.d.ts +1 -0
- package/models/Evento/Player/basic.js +3 -0
- package/models/Evento/types.d.ts +1 -0
- package/models/Partnership/Communication/index.d.ts +13 -5
- package/models/Partnership/Communication/index.js +27 -20
- package/models/Partnership/Communication/supabase.d.ts +7 -0
- package/models/Partnership/Communication/supabase.js +24 -0
- package/models/Partnership/Communication/types.d.ts +5 -4
- package/models/Partnership/Group/index.d.ts +25 -7
- package/models/Partnership/Group/index.js +51 -13
- package/models/Partnership/Group/supabase.d.ts +13 -0
- package/models/Partnership/Group/supabase.js +25 -0
- package/models/Partnership/Group/types.d.ts +9 -3
- package/models/Partnership/Partner/index.d.ts +18 -7
- package/models/Partnership/Partner/index.js +47 -33
- package/models/Partnership/Partner/supabase.d.ts +7 -0
- package/models/Partnership/Partner/supabase.js +38 -0
- package/models/Partnership/Partner/types.d.ts +9 -8
- package/models/Partnership/Payment/index.d.ts +22 -5
- package/models/Partnership/Payment/index.js +44 -22
- package/models/Partnership/Payment/supabase.d.ts +15 -0
- package/models/Partnership/Payment/supabase.js +40 -0
- package/models/Partnership/Payment/types.d.ts +14 -6
- package/models/Partnership/Payment/types.js +1 -0
- package/models/Partnership/Plan/index.d.ts +14 -5
- package/models/Partnership/Plan/index.js +26 -18
- package/models/Partnership/Plan/supabase.d.ts +7 -0
- package/models/Partnership/Plan/supabase.js +22 -0
- package/models/Partnership/Plan/types.d.ts +5 -4
- package/models/Partnership/SepaPaymentGroup/index.d.ts +12 -4
- package/models/Partnership/SepaPaymentGroup/index.js +21 -14
- package/models/Partnership/SepaPaymentGroup/supabase.d.ts +7 -0
- package/models/Partnership/SepaPaymentGroup/supabase.js +18 -0
- package/models/Partnership/SepaPaymentGroup/types.d.ts +4 -3
- package/models/Partnership/Subscription/index.d.ts +15 -7
- package/models/Partnership/Subscription/index.js +27 -20
- package/models/Partnership/Subscription/supabase.d.ts +7 -0
- package/models/Partnership/Subscription/supabase.js +23 -0
- package/models/Partnership/Subscription/types.d.ts +7 -6
- package/models/Partnership/types.d.ts +5 -0
- package/package.json +1 -1
- package/types/supabase/generated.d.ts +487 -0
- package/types/supabase/generated.js +4 -0
- package/types/supabase/generated.ts +497 -0
|
@@ -687,6 +687,461 @@ export type Database = {
|
|
|
687
687
|
};
|
|
688
688
|
Relationships: [];
|
|
689
689
|
};
|
|
690
|
+
partnership_communication: {
|
|
691
|
+
Row: {
|
|
692
|
+
createdAt: string;
|
|
693
|
+
deletedAt: string | null;
|
|
694
|
+
id: string;
|
|
695
|
+
imagesPath: string[];
|
|
696
|
+
imageURL: string | null;
|
|
697
|
+
message: Json;
|
|
698
|
+
messageHtml: string;
|
|
699
|
+
ownerId: string;
|
|
700
|
+
ownerName: string;
|
|
701
|
+
partnershipId: string;
|
|
702
|
+
recipients: string[];
|
|
703
|
+
recipientsCount: number;
|
|
704
|
+
scheduledAt: string | null;
|
|
705
|
+
status: Database['public']['Enums']['partnership_communication_status'];
|
|
706
|
+
title: string;
|
|
707
|
+
};
|
|
708
|
+
Insert: {
|
|
709
|
+
createdAt?: string;
|
|
710
|
+
deletedAt?: string | null;
|
|
711
|
+
id?: string;
|
|
712
|
+
imagesPath?: string[];
|
|
713
|
+
imageURL?: string | null;
|
|
714
|
+
message?: Json;
|
|
715
|
+
messageHtml?: string;
|
|
716
|
+
ownerId: string;
|
|
717
|
+
ownerName: string;
|
|
718
|
+
partnershipId: string;
|
|
719
|
+
recipients?: string[];
|
|
720
|
+
recipientsCount?: number;
|
|
721
|
+
scheduledAt?: string | null;
|
|
722
|
+
status: Database['public']['Enums']['partnership_communication_status'];
|
|
723
|
+
title: string;
|
|
724
|
+
};
|
|
725
|
+
Update: {
|
|
726
|
+
createdAt?: string;
|
|
727
|
+
deletedAt?: string | null;
|
|
728
|
+
id?: string;
|
|
729
|
+
imagesPath?: string[];
|
|
730
|
+
imageURL?: string | null;
|
|
731
|
+
message?: Json;
|
|
732
|
+
messageHtml?: string;
|
|
733
|
+
ownerId?: string;
|
|
734
|
+
ownerName?: string;
|
|
735
|
+
partnershipId?: string;
|
|
736
|
+
recipients?: string[];
|
|
737
|
+
recipientsCount?: number;
|
|
738
|
+
scheduledAt?: string | null;
|
|
739
|
+
status?: Database['public']['Enums']['partnership_communication_status'];
|
|
740
|
+
title?: string;
|
|
741
|
+
};
|
|
742
|
+
Relationships: [];
|
|
743
|
+
};
|
|
744
|
+
partnership_group: {
|
|
745
|
+
Row: {
|
|
746
|
+
groupId: string;
|
|
747
|
+
linkedAt: string;
|
|
748
|
+
linkedBy: string | null;
|
|
749
|
+
partnershipId: string;
|
|
750
|
+
};
|
|
751
|
+
Insert: {
|
|
752
|
+
groupId: string;
|
|
753
|
+
linkedAt?: string;
|
|
754
|
+
linkedBy?: string | null;
|
|
755
|
+
partnershipId: string;
|
|
756
|
+
};
|
|
757
|
+
Update: {
|
|
758
|
+
groupId?: string;
|
|
759
|
+
linkedAt?: string;
|
|
760
|
+
linkedBy?: string | null;
|
|
761
|
+
partnershipId?: string;
|
|
762
|
+
};
|
|
763
|
+
Relationships: [
|
|
764
|
+
{
|
|
765
|
+
foreignKeyName: 'partnership_group_group_id_fkey';
|
|
766
|
+
columns: ['groupId'];
|
|
767
|
+
isOneToOne: false;
|
|
768
|
+
referencedRelation: 'group';
|
|
769
|
+
referencedColumns: ['id'];
|
|
770
|
+
}
|
|
771
|
+
];
|
|
772
|
+
};
|
|
773
|
+
partnership_partner: {
|
|
774
|
+
Row: {
|
|
775
|
+
acceptedAt: string | null;
|
|
776
|
+
acceptedBy: string | null;
|
|
777
|
+
acceptsCommunications: boolean;
|
|
778
|
+
address: Json | null;
|
|
779
|
+
birthDate: string | null;
|
|
780
|
+
createdAt: string;
|
|
781
|
+
createdBy: string;
|
|
782
|
+
customFields: Json;
|
|
783
|
+
deletedAt: string | null;
|
|
784
|
+
deletedBy: string | null;
|
|
785
|
+
editedBy: string | null;
|
|
786
|
+
email: string | null;
|
|
787
|
+
groupIds: string[];
|
|
788
|
+
id: string;
|
|
789
|
+
lastname: string;
|
|
790
|
+
name: string;
|
|
791
|
+
NIF: string | null;
|
|
792
|
+
partnerNumber: number;
|
|
793
|
+
partnershipId: string;
|
|
794
|
+
payerId: string | null;
|
|
795
|
+
paymentMethod: Database['public']['Enums']['partnership_payment_method'] | null;
|
|
796
|
+
phone: string | null;
|
|
797
|
+
photoURL: string;
|
|
798
|
+
sepaMandate: Json | null;
|
|
799
|
+
status: Database['public']['Enums']['partnership_partner_status'];
|
|
800
|
+
subscriptionIds: string[];
|
|
801
|
+
subscriptions: Json;
|
|
802
|
+
tagIds: string[];
|
|
803
|
+
updatedAt: string;
|
|
804
|
+
userId: string | null;
|
|
805
|
+
};
|
|
806
|
+
Insert: {
|
|
807
|
+
acceptedAt?: string | null;
|
|
808
|
+
acceptedBy?: string | null;
|
|
809
|
+
acceptsCommunications?: boolean;
|
|
810
|
+
address?: Json | null;
|
|
811
|
+
birthDate?: string | null;
|
|
812
|
+
createdAt?: string;
|
|
813
|
+
createdBy: string;
|
|
814
|
+
customFields?: Json;
|
|
815
|
+
deletedAt?: string | null;
|
|
816
|
+
deletedBy?: string | null;
|
|
817
|
+
editedBy?: string | null;
|
|
818
|
+
email?: string | null;
|
|
819
|
+
groupIds?: string[];
|
|
820
|
+
id?: string;
|
|
821
|
+
lastname?: string;
|
|
822
|
+
name: string;
|
|
823
|
+
NIF?: string | null;
|
|
824
|
+
partnerNumber: number;
|
|
825
|
+
partnershipId: string;
|
|
826
|
+
payerId?: string | null;
|
|
827
|
+
paymentMethod?:
|
|
828
|
+
| Database['public']['Enums']['partnership_payment_method']
|
|
829
|
+
| null;
|
|
830
|
+
phone?: string | null;
|
|
831
|
+
photoURL?: string;
|
|
832
|
+
sepaMandate?: Json | null;
|
|
833
|
+
status?: Database['public']['Enums']['partnership_partner_status'];
|
|
834
|
+
subscriptionIds?: string[];
|
|
835
|
+
subscriptions?: Json;
|
|
836
|
+
tagIds?: string[];
|
|
837
|
+
updatedAt?: string;
|
|
838
|
+
userId?: string | null;
|
|
839
|
+
};
|
|
840
|
+
Update: {
|
|
841
|
+
acceptedAt?: string | null;
|
|
842
|
+
acceptedBy?: string | null;
|
|
843
|
+
acceptsCommunications?: boolean;
|
|
844
|
+
address?: Json | null;
|
|
845
|
+
birthDate?: string | null;
|
|
846
|
+
createdAt?: string;
|
|
847
|
+
createdBy?: string;
|
|
848
|
+
customFields?: Json;
|
|
849
|
+
deletedAt?: string | null;
|
|
850
|
+
deletedBy?: string | null;
|
|
851
|
+
editedBy?: string | null;
|
|
852
|
+
email?: string | null;
|
|
853
|
+
groupIds?: string[];
|
|
854
|
+
id?: string;
|
|
855
|
+
lastname?: string;
|
|
856
|
+
name?: string;
|
|
857
|
+
NIF?: string | null;
|
|
858
|
+
partnerNumber?: number;
|
|
859
|
+
partnershipId?: string;
|
|
860
|
+
payerId?: string | null;
|
|
861
|
+
paymentMethod?:
|
|
862
|
+
| Database['public']['Enums']['partnership_payment_method']
|
|
863
|
+
| null;
|
|
864
|
+
phone?: string | null;
|
|
865
|
+
photoURL?: string;
|
|
866
|
+
sepaMandate?: Json | null;
|
|
867
|
+
status?: Database['public']['Enums']['partnership_partner_status'];
|
|
868
|
+
subscriptionIds?: string[];
|
|
869
|
+
subscriptions?: Json;
|
|
870
|
+
tagIds?: string[];
|
|
871
|
+
updatedAt?: string;
|
|
872
|
+
userId?: string | null;
|
|
873
|
+
};
|
|
874
|
+
Relationships: [
|
|
875
|
+
{
|
|
876
|
+
foreignKeyName: 'partnership_partner_payer_id_fkey';
|
|
877
|
+
columns: ['payerId'];
|
|
878
|
+
isOneToOne: false;
|
|
879
|
+
referencedRelation: 'partnership_partner';
|
|
880
|
+
referencedColumns: ['id'];
|
|
881
|
+
}
|
|
882
|
+
];
|
|
883
|
+
};
|
|
884
|
+
partnership_payment: {
|
|
885
|
+
Row: {
|
|
886
|
+
amount: number;
|
|
887
|
+
createdAt: string;
|
|
888
|
+
createdBy: string | null;
|
|
889
|
+
dueDate: string;
|
|
890
|
+
editedBy: string | null;
|
|
891
|
+
id: string;
|
|
892
|
+
partnerId: string;
|
|
893
|
+
partnershipId: string;
|
|
894
|
+
payerId: string | null;
|
|
895
|
+
paymentMethod: Database['public']['Enums']['partnership_payment_method'] | null;
|
|
896
|
+
receiptFilePath: string | null;
|
|
897
|
+
sepaEndToEndId: string | null;
|
|
898
|
+
sepaPaymentGroupId: string | null;
|
|
899
|
+
status: Database['public']['Enums']['partnership_payment_status'];
|
|
900
|
+
subscriptionId: string | null;
|
|
901
|
+
title: string;
|
|
902
|
+
updatedAt: string;
|
|
903
|
+
};
|
|
904
|
+
Insert: {
|
|
905
|
+
amount: number;
|
|
906
|
+
createdAt?: string;
|
|
907
|
+
createdBy?: string | null;
|
|
908
|
+
dueDate: string;
|
|
909
|
+
editedBy?: string | null;
|
|
910
|
+
id?: string;
|
|
911
|
+
partnerId: string;
|
|
912
|
+
partnershipId: string;
|
|
913
|
+
payerId?: string | null;
|
|
914
|
+
paymentMethod?:
|
|
915
|
+
| Database['public']['Enums']['partnership_payment_method']
|
|
916
|
+
| null;
|
|
917
|
+
receiptFilePath?: string | null;
|
|
918
|
+
sepaEndToEndId?: string | null;
|
|
919
|
+
sepaPaymentGroupId?: string | null;
|
|
920
|
+
status?: Database['public']['Enums']['partnership_payment_status'];
|
|
921
|
+
subscriptionId?: string | null;
|
|
922
|
+
title: string;
|
|
923
|
+
updatedAt?: string;
|
|
924
|
+
};
|
|
925
|
+
Update: {
|
|
926
|
+
amount?: number;
|
|
927
|
+
createdAt?: string;
|
|
928
|
+
createdBy?: string | null;
|
|
929
|
+
dueDate?: string;
|
|
930
|
+
editedBy?: string | null;
|
|
931
|
+
id?: string;
|
|
932
|
+
partnerId?: string;
|
|
933
|
+
partnershipId?: string;
|
|
934
|
+
payerId?: string | null;
|
|
935
|
+
paymentMethod?:
|
|
936
|
+
| Database['public']['Enums']['partnership_payment_method']
|
|
937
|
+
| null;
|
|
938
|
+
receiptFilePath?: string | null;
|
|
939
|
+
sepaEndToEndId?: string | null;
|
|
940
|
+
sepaPaymentGroupId?: string | null;
|
|
941
|
+
status?: Database['public']['Enums']['partnership_payment_status'];
|
|
942
|
+
subscriptionId?: string | null;
|
|
943
|
+
title?: string;
|
|
944
|
+
updatedAt?: string;
|
|
945
|
+
};
|
|
946
|
+
Relationships: [
|
|
947
|
+
{
|
|
948
|
+
foreignKeyName: 'partnership_payment_payer_id_fkey';
|
|
949
|
+
columns: ['payerId'];
|
|
950
|
+
isOneToOne: false;
|
|
951
|
+
referencedRelation: 'partnership_partner';
|
|
952
|
+
referencedColumns: ['id'];
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
foreignKeyName: 'partnership_payment_sepa_group_id_fkey';
|
|
956
|
+
columns: ['sepaPaymentGroupId'];
|
|
957
|
+
isOneToOne: false;
|
|
958
|
+
referencedRelation: 'partnership_sepa_payment_group';
|
|
959
|
+
referencedColumns: ['id'];
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
foreignKeyName: 'partnership_payment_subscription_id_fkey';
|
|
963
|
+
columns: ['subscriptionId'];
|
|
964
|
+
isOneToOne: false;
|
|
965
|
+
referencedRelation: 'partnership_subscription';
|
|
966
|
+
referencedColumns: ['id'];
|
|
967
|
+
}
|
|
968
|
+
];
|
|
969
|
+
};
|
|
970
|
+
partnership_payment_history: {
|
|
971
|
+
Row: {
|
|
972
|
+
changed_at: string;
|
|
973
|
+
changed_by: string;
|
|
974
|
+
id: string;
|
|
975
|
+
payment_id: string;
|
|
976
|
+
status: Database['public']['Enums']['partnership_payment_status'];
|
|
977
|
+
};
|
|
978
|
+
Insert: {
|
|
979
|
+
changed_at?: string;
|
|
980
|
+
changed_by: string;
|
|
981
|
+
id?: string;
|
|
982
|
+
payment_id: string;
|
|
983
|
+
status: Database['public']['Enums']['partnership_payment_status'];
|
|
984
|
+
};
|
|
985
|
+
Update: {
|
|
986
|
+
changed_at?: string;
|
|
987
|
+
changed_by?: string;
|
|
988
|
+
id?: string;
|
|
989
|
+
payment_id?: string;
|
|
990
|
+
status?: Database['public']['Enums']['partnership_payment_status'];
|
|
991
|
+
};
|
|
992
|
+
Relationships: [
|
|
993
|
+
{
|
|
994
|
+
foreignKeyName: 'partnership_payment_history_payment_id_fkey';
|
|
995
|
+
columns: ['payment_id'];
|
|
996
|
+
isOneToOne: false;
|
|
997
|
+
referencedRelation: 'partnership_payment';
|
|
998
|
+
referencedColumns: ['id'];
|
|
999
|
+
}
|
|
1000
|
+
];
|
|
1001
|
+
};
|
|
1002
|
+
partnership_plan: {
|
|
1003
|
+
Row: {
|
|
1004
|
+
createdAt: string;
|
|
1005
|
+
createdBy: string;
|
|
1006
|
+
deletedAt: string | null;
|
|
1007
|
+
deletedBy: string | null;
|
|
1008
|
+
description: string;
|
|
1009
|
+
editedBy: string | null;
|
|
1010
|
+
id: string;
|
|
1011
|
+
name: string;
|
|
1012
|
+
partnershipId: string;
|
|
1013
|
+
price: number;
|
|
1014
|
+
schedule: Json;
|
|
1015
|
+
subscriptionsCount: number;
|
|
1016
|
+
updatedAt: string;
|
|
1017
|
+
};
|
|
1018
|
+
Insert: {
|
|
1019
|
+
createdAt?: string;
|
|
1020
|
+
createdBy: string;
|
|
1021
|
+
deletedAt?: string | null;
|
|
1022
|
+
deletedBy?: string | null;
|
|
1023
|
+
description?: string;
|
|
1024
|
+
editedBy?: string | null;
|
|
1025
|
+
id?: string;
|
|
1026
|
+
name: string;
|
|
1027
|
+
partnershipId: string;
|
|
1028
|
+
price: number;
|
|
1029
|
+
schedule: Json;
|
|
1030
|
+
subscriptionsCount?: number;
|
|
1031
|
+
updatedAt?: string;
|
|
1032
|
+
};
|
|
1033
|
+
Update: {
|
|
1034
|
+
createdAt?: string;
|
|
1035
|
+
createdBy?: string;
|
|
1036
|
+
deletedAt?: string | null;
|
|
1037
|
+
deletedBy?: string | null;
|
|
1038
|
+
description?: string;
|
|
1039
|
+
editedBy?: string | null;
|
|
1040
|
+
id?: string;
|
|
1041
|
+
name?: string;
|
|
1042
|
+
partnershipId?: string;
|
|
1043
|
+
price?: number;
|
|
1044
|
+
schedule?: Json;
|
|
1045
|
+
subscriptionsCount?: number;
|
|
1046
|
+
updatedAt?: string;
|
|
1047
|
+
};
|
|
1048
|
+
Relationships: [];
|
|
1049
|
+
};
|
|
1050
|
+
partnership_sepa_payment_group: {
|
|
1051
|
+
Row: {
|
|
1052
|
+
createdAt: string;
|
|
1053
|
+
createdBy: string;
|
|
1054
|
+
creditorInfo: Json;
|
|
1055
|
+
editedBy: string | null;
|
|
1056
|
+
filePath: string | null;
|
|
1057
|
+
id: string;
|
|
1058
|
+
partnershipId: string;
|
|
1059
|
+
paymentsIds: string[];
|
|
1060
|
+
updatedAt: string;
|
|
1061
|
+
};
|
|
1062
|
+
Insert: {
|
|
1063
|
+
createdAt?: string;
|
|
1064
|
+
createdBy: string;
|
|
1065
|
+
creditorInfo: Json;
|
|
1066
|
+
editedBy?: string | null;
|
|
1067
|
+
filePath?: string | null;
|
|
1068
|
+
id?: string;
|
|
1069
|
+
partnershipId: string;
|
|
1070
|
+
paymentsIds?: string[];
|
|
1071
|
+
updatedAt?: string;
|
|
1072
|
+
};
|
|
1073
|
+
Update: {
|
|
1074
|
+
createdAt?: string;
|
|
1075
|
+
createdBy?: string;
|
|
1076
|
+
creditorInfo?: Json;
|
|
1077
|
+
editedBy?: string | null;
|
|
1078
|
+
filePath?: string | null;
|
|
1079
|
+
id?: string;
|
|
1080
|
+
partnershipId?: string;
|
|
1081
|
+
paymentsIds?: string[];
|
|
1082
|
+
updatedAt?: string;
|
|
1083
|
+
};
|
|
1084
|
+
Relationships: [];
|
|
1085
|
+
};
|
|
1086
|
+
partnership_subscription: {
|
|
1087
|
+
Row: {
|
|
1088
|
+
createdAt: string;
|
|
1089
|
+
createdBy: string;
|
|
1090
|
+
deletedAt: string | null;
|
|
1091
|
+
deletedBy: string | null;
|
|
1092
|
+
editedBy: string | null;
|
|
1093
|
+
endDate: string | null;
|
|
1094
|
+
id: string;
|
|
1095
|
+
nextPaymentDate: string | null;
|
|
1096
|
+
partnerId: string;
|
|
1097
|
+
partnerInfo: Json;
|
|
1098
|
+
partnershipId: string;
|
|
1099
|
+
planId: string;
|
|
1100
|
+
planInfo: Json;
|
|
1101
|
+
updatedAt: string;
|
|
1102
|
+
};
|
|
1103
|
+
Insert: {
|
|
1104
|
+
createdAt?: string;
|
|
1105
|
+
createdBy: string;
|
|
1106
|
+
deletedAt?: string | null;
|
|
1107
|
+
deletedBy?: string | null;
|
|
1108
|
+
editedBy?: string | null;
|
|
1109
|
+
endDate?: string | null;
|
|
1110
|
+
id?: string;
|
|
1111
|
+
nextPaymentDate?: string | null;
|
|
1112
|
+
partnerId: string;
|
|
1113
|
+
partnerInfo: Json;
|
|
1114
|
+
partnershipId: string;
|
|
1115
|
+
planId: string;
|
|
1116
|
+
planInfo: Json;
|
|
1117
|
+
updatedAt?: string;
|
|
1118
|
+
};
|
|
1119
|
+
Update: {
|
|
1120
|
+
createdAt?: string;
|
|
1121
|
+
createdBy?: string;
|
|
1122
|
+
deletedAt?: string | null;
|
|
1123
|
+
deletedBy?: string | null;
|
|
1124
|
+
editedBy?: string | null;
|
|
1125
|
+
endDate?: string | null;
|
|
1126
|
+
id?: string;
|
|
1127
|
+
nextPaymentDate?: string | null;
|
|
1128
|
+
partnerId?: string;
|
|
1129
|
+
partnerInfo?: Json;
|
|
1130
|
+
partnershipId?: string;
|
|
1131
|
+
planId?: string;
|
|
1132
|
+
planInfo?: Json;
|
|
1133
|
+
updatedAt?: string;
|
|
1134
|
+
};
|
|
1135
|
+
Relationships: [
|
|
1136
|
+
{
|
|
1137
|
+
foreignKeyName: 'partnership_subscription_plan_id_fkey';
|
|
1138
|
+
columns: ['planId'];
|
|
1139
|
+
isOneToOne: false;
|
|
1140
|
+
referencedRelation: 'partnership_plan';
|
|
1141
|
+
referencedColumns: ['id'];
|
|
1142
|
+
}
|
|
1143
|
+
];
|
|
1144
|
+
};
|
|
690
1145
|
repertoire: {
|
|
691
1146
|
Row: {
|
|
692
1147
|
compositor: string | null;
|
|
@@ -764,6 +1219,40 @@ export type Database = {
|
|
|
764
1219
|
[_ in never]: never;
|
|
765
1220
|
};
|
|
766
1221
|
Functions: {
|
|
1222
|
+
generate_partnership_recurring_payment:
|
|
1223
|
+
| {
|
|
1224
|
+
Args: {
|
|
1225
|
+
p_amount: number;
|
|
1226
|
+
p_due_date: string;
|
|
1227
|
+
p_next_payment_date: string;
|
|
1228
|
+
p_partner_id: string;
|
|
1229
|
+
p_partnership_id: string;
|
|
1230
|
+
p_payment_method: Database['public']['Enums']['partnership_payment_method'];
|
|
1231
|
+
p_subscription_id: string;
|
|
1232
|
+
p_title: string;
|
|
1233
|
+
};
|
|
1234
|
+
Returns: {
|
|
1235
|
+
created: boolean;
|
|
1236
|
+
payment_id: string;
|
|
1237
|
+
}[];
|
|
1238
|
+
}
|
|
1239
|
+
| {
|
|
1240
|
+
Args: {
|
|
1241
|
+
p_amount: number;
|
|
1242
|
+
p_due_date: string;
|
|
1243
|
+
p_next_payment_date: string;
|
|
1244
|
+
p_partner_id: string;
|
|
1245
|
+
p_partnership_id: string;
|
|
1246
|
+
p_payer_id?: string;
|
|
1247
|
+
p_payment_method: Database['public']['Enums']['partnership_payment_method'];
|
|
1248
|
+
p_subscription_id: string;
|
|
1249
|
+
p_title: string;
|
|
1250
|
+
};
|
|
1251
|
+
Returns: {
|
|
1252
|
+
created: boolean;
|
|
1253
|
+
payment_id: string;
|
|
1254
|
+
}[];
|
|
1255
|
+
};
|
|
767
1256
|
immutable_unaccent: { Args: { '': string }; Returns: string };
|
|
768
1257
|
show_limit: { Args: never; Returns: number };
|
|
769
1258
|
show_trgm: { Args: { '': string }; Returns: string[] };
|
|
@@ -781,6 +1270,10 @@ export type Database = {
|
|
|
781
1270
|
group_plan_period: 'yearly' | 'monthly';
|
|
782
1271
|
group_status: 'premium' | 'trial' | 'inactive' | 'deleted';
|
|
783
1272
|
offer_type: 'group' | 'event';
|
|
1273
|
+
partnership_communication_status: 'sent' | 'scheduled';
|
|
1274
|
+
partnership_partner_status: 'active' | 'pending' | 'inactive';
|
|
1275
|
+
partnership_payment_method: 'CASH' | 'TRANSFER' | 'SEPA' | 'BIZUM';
|
|
1276
|
+
partnership_payment_status: 'pending' | 'charged' | 'returned' | 'canceled';
|
|
784
1277
|
social_network: 'facebook' | 'twitter' | 'instagram' | 'youtube';
|
|
785
1278
|
};
|
|
786
1279
|
CompositeTypes: {
|
|
@@ -922,6 +1415,10 @@ export const Constants = {
|
|
|
922
1415
|
group_plan_period: ['yearly', 'monthly'],
|
|
923
1416
|
group_status: ['premium', 'trial', 'inactive', 'deleted'],
|
|
924
1417
|
offer_type: ['group', 'event'],
|
|
1418
|
+
partnership_communication_status: ['sent', 'scheduled'],
|
|
1419
|
+
partnership_partner_status: ['active', 'pending', 'inactive'],
|
|
1420
|
+
partnership_payment_method: ['CASH', 'TRANSFER', 'SEPA', 'BIZUM'],
|
|
1421
|
+
partnership_payment_status: ['pending', 'charged', 'returned', 'canceled'],
|
|
925
1422
|
social_network: ['facebook', 'twitter', 'instagram', 'youtube'],
|
|
926
1423
|
},
|
|
927
1424
|
},
|