@glissandoo/lib 1.114.1 → 1.116.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.114.1",
3
+ "version": "1.116.0",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -55,7 +55,7 @@
55
55
  "husky": "^8.0.1",
56
56
  "lint-staged": "^12.4.1",
57
57
  "prettier": "^2.2.1",
58
- "supabase": "^2.54.11",
58
+ "supabase": "^2.104.0",
59
59
  "typescript": "^4.9.4"
60
60
  },
61
61
  "lint-staged": {
@@ -444,6 +444,116 @@ export type Database = {
444
444
  };
445
445
  Relationships: [];
446
446
  };
447
+ group_payment: {
448
+ Row: {
449
+ appliedRules: Json;
450
+ assignedTo: string;
451
+ baseAmount: number | null;
452
+ concept: string;
453
+ conceptNorm: string | null;
454
+ createdAt: string;
455
+ createdBy: string;
456
+ currency: string;
457
+ editedBy: string | null;
458
+ eventId: string | null;
459
+ groupId: string;
460
+ id: string;
461
+ note: string | null;
462
+ paidAt: string | null;
463
+ paidBy: string | null;
464
+ paymentMethod: Database['public']['Enums']['group_payment_method'] | null;
465
+ playerId: string | null;
466
+ status: Database['public']['Enums']['group_payment_status'];
467
+ totalAmount: number | null;
468
+ type: Database['public']['Enums']['group_payment_type'];
469
+ updatedAt: string;
470
+ };
471
+ Insert: {
472
+ appliedRules?: Json;
473
+ assignedTo: string;
474
+ baseAmount?: number | null;
475
+ concept: string;
476
+ conceptNorm?: string | null;
477
+ createdAt?: string;
478
+ createdBy: string;
479
+ currency?: string;
480
+ editedBy?: string | null;
481
+ eventId?: string | null;
482
+ groupId: string;
483
+ id?: string;
484
+ note?: string | null;
485
+ paidAt?: string | null;
486
+ paidBy?: string | null;
487
+ paymentMethod?: Database['public']['Enums']['group_payment_method'] | null;
488
+ playerId?: string | null;
489
+ status: Database['public']['Enums']['group_payment_status'];
490
+ totalAmount?: number | null;
491
+ type: Database['public']['Enums']['group_payment_type'];
492
+ updatedAt?: string;
493
+ };
494
+ Update: {
495
+ appliedRules?: Json;
496
+ assignedTo?: string;
497
+ baseAmount?: number | null;
498
+ concept?: string;
499
+ conceptNorm?: string | null;
500
+ createdAt?: string;
501
+ createdBy?: string;
502
+ currency?: string;
503
+ editedBy?: string | null;
504
+ eventId?: string | null;
505
+ groupId?: string;
506
+ id?: string;
507
+ note?: string | null;
508
+ paidAt?: string | null;
509
+ paidBy?: string | null;
510
+ paymentMethod?: Database['public']['Enums']['group_payment_method'] | null;
511
+ playerId?: string | null;
512
+ status?: Database['public']['Enums']['group_payment_status'];
513
+ totalAmount?: number | null;
514
+ type?: Database['public']['Enums']['group_payment_type'];
515
+ updatedAt?: string;
516
+ };
517
+ Relationships: [];
518
+ };
519
+ group_payment_history: {
520
+ Row: {
521
+ action: Database['public']['Enums']['group_payment_history_action'];
522
+ changed_at: string;
523
+ changed_by: string;
524
+ id: string;
525
+ new_value: string | null;
526
+ old_value: string | null;
527
+ payment_id: string;
528
+ };
529
+ Insert: {
530
+ action: Database['public']['Enums']['group_payment_history_action'];
531
+ changed_at?: string;
532
+ changed_by: string;
533
+ id?: string;
534
+ new_value?: string | null;
535
+ old_value?: string | null;
536
+ payment_id: string;
537
+ };
538
+ Update: {
539
+ action?: Database['public']['Enums']['group_payment_history_action'];
540
+ changed_at?: string;
541
+ changed_by?: string;
542
+ id?: string;
543
+ new_value?: string | null;
544
+ old_value?: string | null;
545
+ payment_id?: string;
546
+ };
547
+ Relationships: [
548
+ {
549
+ foreignKeyName: 'group_payment_history_payment_id_fkey';
550
+ columns: ['payment_id'];
551
+ isOneToOne: false;
552
+ referencedRelation: 'group_payment';
553
+ referencedColumns: ['id'];
554
+ }
555
+ ];
556
+ };
447
557
  offer: {
448
558
  Row: {
449
559
  applicants: Json;
@@ -653,12 +763,37 @@ export type Database = {
653
763
  [_ in never]: never;
654
764
  };
655
765
  Functions: {
656
- [_ in never]: never;
766
+ immutable_unaccent: {
767
+ Args: {
768
+ '': string;
769
+ };
770
+ Returns: string;
771
+ };
772
+ show_limit: {
773
+ Args: never;
774
+ Returns: number;
775
+ };
776
+ show_trgm: {
777
+ Args: {
778
+ '': string;
779
+ };
780
+ Returns: string[];
781
+ };
782
+ unaccent: {
783
+ Args: {
784
+ '': string;
785
+ };
786
+ Returns: string;
787
+ };
657
788
  };
658
789
  Enums: {
659
790
  created_on: 'app' | 'dashboard' | 'auth' | 'web';
660
791
  event_selection_mode: 'open' | 'closed';
661
792
  event_type: 'practice' | 'performance' | 'other';
793
+ group_payment_history_action: 'status' | 'amount' | 'concept' | 'method';
794
+ group_payment_method: 'cash' | 'transfer';
795
+ group_payment_status: 'pending' | 'paid' | 'cancelled';
796
+ group_payment_type: 'income' | 'expense';
662
797
  group_plan: 'piano' | 'mezzopiano' | 'mezzoforte' | 'forte' | 'fortissimo' | 'tutti';
663
798
  group_plan_period: 'yearly' | 'monthly';
664
799
  group_status: 'premium' | 'trial' | 'inactive' | 'deleted';
@@ -728,6 +863,10 @@ export declare const Constants: {
728
863
  readonly created_on: readonly ["app", "dashboard", "auth", "web"];
729
864
  readonly event_selection_mode: readonly ["open", "closed"];
730
865
  readonly event_type: readonly ["practice", "performance", "other"];
866
+ readonly group_payment_history_action: readonly ["status", "amount", "concept", "method"];
867
+ readonly group_payment_method: readonly ["cash", "transfer"];
868
+ readonly group_payment_status: readonly ["pending", "paid", "cancelled"];
869
+ readonly group_payment_type: readonly ["income", "expense"];
731
870
  readonly group_plan: readonly ["piano", "mezzopiano", "mezzoforte", "forte", "fortissimo", "tutti"];
732
871
  readonly group_plan_period: readonly ["yearly", "monthly"];
733
872
  readonly group_status: readonly ["premium", "trial", "inactive", "deleted"];
@@ -7,6 +7,10 @@ exports.Constants = {
7
7
  created_on: ['app', 'dashboard', 'auth', 'web'],
8
8
  event_selection_mode: ['open', 'closed'],
9
9
  event_type: ['practice', 'performance', 'other'],
10
+ group_payment_history_action: ['status', 'amount', 'concept', 'method'],
11
+ group_payment_method: ['cash', 'transfer'],
12
+ group_payment_status: ['pending', 'paid', 'cancelled'],
13
+ group_payment_type: ['income', 'expense'],
10
14
  group_plan: ['piano', 'mezzopiano', 'mezzoforte', 'forte', 'fortissimo', 'tutti'],
11
15
  group_plan_period: ['yearly', 'monthly'],
12
16
  group_status: ['premium', 'trial', 'inactive', 'deleted'],
@@ -445,6 +445,116 @@ export type Database = {
445
445
  };
446
446
  Relationships: [];
447
447
  };
448
+ group_payment: {
449
+ Row: {
450
+ appliedRules: Json;
451
+ assignedTo: string;
452
+ baseAmount: number | null;
453
+ concept: string;
454
+ conceptNorm: string | null;
455
+ createdAt: string;
456
+ createdBy: string;
457
+ currency: string;
458
+ editedBy: string | null;
459
+ eventId: string | null;
460
+ groupId: string;
461
+ id: string;
462
+ note: string | null;
463
+ paidAt: string | null;
464
+ paidBy: string | null;
465
+ paymentMethod: Database['public']['Enums']['group_payment_method'] | null;
466
+ playerId: string | null;
467
+ status: Database['public']['Enums']['group_payment_status'];
468
+ totalAmount: number | null;
469
+ type: Database['public']['Enums']['group_payment_type'];
470
+ updatedAt: string;
471
+ };
472
+ Insert: {
473
+ appliedRules?: Json;
474
+ assignedTo: string;
475
+ baseAmount?: number | null;
476
+ concept: string;
477
+ conceptNorm?: string | null;
478
+ createdAt?: string;
479
+ createdBy: string;
480
+ currency?: string;
481
+ editedBy?: string | null;
482
+ eventId?: string | null;
483
+ groupId: string;
484
+ id?: string;
485
+ note?: string | null;
486
+ paidAt?: string | null;
487
+ paidBy?: string | null;
488
+ paymentMethod?: Database['public']['Enums']['group_payment_method'] | null;
489
+ playerId?: string | null;
490
+ status: Database['public']['Enums']['group_payment_status'];
491
+ totalAmount?: number | null;
492
+ type: Database['public']['Enums']['group_payment_type'];
493
+ updatedAt?: string;
494
+ };
495
+ Update: {
496
+ appliedRules?: Json;
497
+ assignedTo?: string;
498
+ baseAmount?: number | null;
499
+ concept?: string;
500
+ conceptNorm?: string | null;
501
+ createdAt?: string;
502
+ createdBy?: string;
503
+ currency?: string;
504
+ editedBy?: string | null;
505
+ eventId?: string | null;
506
+ groupId?: string;
507
+ id?: string;
508
+ note?: string | null;
509
+ paidAt?: string | null;
510
+ paidBy?: string | null;
511
+ paymentMethod?: Database['public']['Enums']['group_payment_method'] | null;
512
+ playerId?: string | null;
513
+ status?: Database['public']['Enums']['group_payment_status'];
514
+ totalAmount?: number | null;
515
+ type?: Database['public']['Enums']['group_payment_type'];
516
+ updatedAt?: string;
517
+ };
518
+ Relationships: [];
519
+ };
520
+ group_payment_history: {
521
+ Row: {
522
+ action: Database['public']['Enums']['group_payment_history_action'];
523
+ changed_at: string;
524
+ changed_by: string;
525
+ id: string;
526
+ new_value: string | null;
527
+ old_value: string | null;
528
+ payment_id: string;
529
+ };
530
+ Insert: {
531
+ action: Database['public']['Enums']['group_payment_history_action'];
532
+ changed_at?: string;
533
+ changed_by: string;
534
+ id?: string;
535
+ new_value?: string | null;
536
+ old_value?: string | null;
537
+ payment_id: string;
538
+ };
539
+ Update: {
540
+ action?: Database['public']['Enums']['group_payment_history_action'];
541
+ changed_at?: string;
542
+ changed_by?: string;
543
+ id?: string;
544
+ new_value?: string | null;
545
+ old_value?: string | null;
546
+ payment_id?: string;
547
+ };
548
+ Relationships: [
549
+ {
550
+ foreignKeyName: 'group_payment_history_payment_id_fkey';
551
+ columns: ['payment_id'];
552
+ isOneToOne: false;
553
+ referencedRelation: 'group_payment';
554
+ referencedColumns: ['id'];
555
+ }
556
+ ];
557
+ };
448
558
  offer: {
449
559
  Row: {
450
560
  applicants: Json;
@@ -654,12 +764,19 @@ export type Database = {
654
764
  [_ in never]: never;
655
765
  };
656
766
  Functions: {
657
- [_ in never]: never;
767
+ immutable_unaccent: { Args: { '': string }; Returns: string };
768
+ show_limit: { Args: never; Returns: number };
769
+ show_trgm: { Args: { '': string }; Returns: string[] };
770
+ unaccent: { Args: { '': string }; Returns: string };
658
771
  };
659
772
  Enums: {
660
773
  created_on: 'app' | 'dashboard' | 'auth' | 'web';
661
774
  event_selection_mode: 'open' | 'closed';
662
775
  event_type: 'practice' | 'performance' | 'other';
776
+ group_payment_history_action: 'status' | 'amount' | 'concept' | 'method';
777
+ group_payment_method: 'cash' | 'transfer';
778
+ group_payment_status: 'pending' | 'paid' | 'cancelled';
779
+ group_payment_type: 'income' | 'expense';
663
780
  group_plan: 'piano' | 'mezzopiano' | 'mezzoforte' | 'forte' | 'fortissimo' | 'tutti';
664
781
  group_plan_period: 'yearly' | 'monthly';
665
782
  group_status: 'premium' | 'trial' | 'inactive' | 'deleted';
@@ -797,6 +914,10 @@ export const Constants = {
797
914
  created_on: ['app', 'dashboard', 'auth', 'web'],
798
915
  event_selection_mode: ['open', 'closed'],
799
916
  event_type: ['practice', 'performance', 'other'],
917
+ group_payment_history_action: ['status', 'amount', 'concept', 'method'],
918
+ group_payment_method: ['cash', 'transfer'],
919
+ group_payment_status: ['pending', 'paid', 'cancelled'],
920
+ group_payment_type: ['income', 'expense'],
800
921
  group_plan: ['piano', 'mezzopiano', 'mezzoforte', 'forte', 'fortissimo', 'tutti'],
801
922
  group_plan_period: ['yearly', 'monthly'],
802
923
  group_status: ['premium', 'trial', 'inactive', 'deleted'],