@glissandoo/lib 1.104.26 → 1.104.28

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.
@@ -6,6 +6,24 @@ import { CreatedOn } from '../../helpers/types';
6
6
  import { EventPlayerStatus } from '../Evento/Player/types';
7
7
  import { EventType } from '../Evento/types';
8
8
  import { PlayerBasicData } from '../Player/types';
9
+ export declare enum GroupHistoryAction {
10
+ Created = "created",
11
+ Deleted = "deleted",
12
+ MemberJoin = "member_join",
13
+ MemberLeave = "member_leave",
14
+ MemberRemove = "member_remove",
15
+ MemberInstrumentChange = "member_instrument_change",
16
+ MemberPermissionsChange = "member_permissions_change",
17
+ TemplateCreated = "template_created",
18
+ TemplateDeleted = "template_deleted",
19
+ TemplateEdited = "template_edited",
20
+ EditInstruments = "edit_instruments",
21
+ EditName = "edit_name",
22
+ EditLocation = "edit_location",
23
+ EditMusicStyle = "edit_music_style",
24
+ EditUsername = "edit_username",
25
+ EditPhoto = "edit_photo"
26
+ }
9
27
  export declare enum GroupCustomFieldType {
10
28
  TEXT = "text",
11
29
  NUMBER = "number",
@@ -1,6 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GroupRepertoireTagDefault = exports.GroupRepertoireTagReserved = exports.SocialNetwork = exports.GroupStatus = exports.GroupConfigShowAttendanceToMembers = exports.GroupConfigSitesKey = exports.GroupConfigKey = exports.AdminPermissions = exports.GroupCustomFieldType = void 0;
3
+ exports.GroupRepertoireTagDefault = exports.GroupRepertoireTagReserved = exports.SocialNetwork = exports.GroupStatus = exports.GroupConfigShowAttendanceToMembers = exports.GroupConfigSitesKey = exports.GroupConfigKey = exports.AdminPermissions = exports.GroupCustomFieldType = exports.GroupHistoryAction = void 0;
4
+ var GroupHistoryAction;
5
+ (function (GroupHistoryAction) {
6
+ GroupHistoryAction["Created"] = "created";
7
+ GroupHistoryAction["Deleted"] = "deleted";
8
+ GroupHistoryAction["MemberJoin"] = "member_join";
9
+ GroupHistoryAction["MemberLeave"] = "member_leave";
10
+ GroupHistoryAction["MemberRemove"] = "member_remove";
11
+ GroupHistoryAction["MemberInstrumentChange"] = "member_instrument_change";
12
+ GroupHistoryAction["MemberPermissionsChange"] = "member_permissions_change";
13
+ GroupHistoryAction["TemplateCreated"] = "template_created";
14
+ GroupHistoryAction["TemplateDeleted"] = "template_deleted";
15
+ GroupHistoryAction["TemplateEdited"] = "template_edited";
16
+ GroupHistoryAction["EditInstruments"] = "edit_instruments";
17
+ GroupHistoryAction["EditName"] = "edit_name";
18
+ GroupHistoryAction["EditLocation"] = "edit_location";
19
+ GroupHistoryAction["EditMusicStyle"] = "edit_music_style";
20
+ GroupHistoryAction["EditUsername"] = "edit_username";
21
+ GroupHistoryAction["EditPhoto"] = "edit_photo";
22
+ })(GroupHistoryAction = exports.GroupHistoryAction || (exports.GroupHistoryAction = {}));
4
23
  // types/CustomFields.ts
5
24
  var GroupCustomFieldType;
6
25
  (function (GroupCustomFieldType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.104.26",
3
+ "version": "1.104.28",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -222,6 +222,36 @@ export type Database = {
222
222
  };
223
223
  Relationships: [];
224
224
  };
225
+ group_history: {
226
+ Row: {
227
+ action: string;
228
+ created_at: string;
229
+ group_id: string;
230
+ id: number;
231
+ prev_value: Json | null;
232
+ user_id: string;
233
+ value: Json | null;
234
+ };
235
+ Insert: {
236
+ action: string;
237
+ created_at: string;
238
+ group_id: string;
239
+ id?: number;
240
+ prev_value?: Json | null;
241
+ user_id: string;
242
+ value?: Json | null;
243
+ };
244
+ Update: {
245
+ action?: string;
246
+ created_at?: string;
247
+ group_id?: string;
248
+ id?: number;
249
+ prev_value?: Json | null;
250
+ user_id?: string;
251
+ value?: Json | null;
252
+ };
253
+ Relationships: [];
254
+ };
225
255
  group: {
226
256
  Row: {
227
257
  activeInvitationLink: boolean;
@@ -223,6 +223,36 @@ export type Database = {
223
223
  };
224
224
  Relationships: [];
225
225
  };
226
+ group_history: {
227
+ Row: {
228
+ action: string;
229
+ created_at: string;
230
+ group_id: string;
231
+ id: number;
232
+ prev_value: Json | null;
233
+ user_id: string;
234
+ value: Json | null;
235
+ };
236
+ Insert: {
237
+ action: string;
238
+ created_at: string;
239
+ group_id: string;
240
+ id?: number;
241
+ prev_value?: Json | null;
242
+ user_id: string;
243
+ value?: Json | null;
244
+ };
245
+ Update: {
246
+ action?: string;
247
+ created_at?: string;
248
+ group_id?: string;
249
+ id?: number;
250
+ prev_value?: Json | null;
251
+ user_id?: string;
252
+ value?: Json | null;
253
+ };
254
+ Relationships: [];
255
+ };
226
256
  group: {
227
257
  Row: {
228
258
  activeInvitationLink: boolean;
@@ -4,6 +4,7 @@ import { Overwrite } from './overwrites';
4
4
  import { EventOverwrite } from './overwrites/event';
5
5
  import { EventHistory } from './overwrites/event_history';
6
6
  import { GroupOverwrite } from './overwrites/group';
7
+ import { GroupHistory } from './overwrites/group_history';
7
8
  import { OfferOverwrite } from './overwrites/offer';
8
9
  import { RepertoireHistory } from './overwrites/repertoire_history';
9
10
  export type Database = MergeDeep<DatabaseGenerated, {
@@ -14,6 +15,7 @@ export type Database = MergeDeep<DatabaseGenerated, {
14
15
  offer: Overwrite<OfferOverwrite>;
15
16
  event_history: Overwrite<Omit<EventHistory, 'id'>, 'prev_value' | 'value'>;
16
17
  repertoire_history: Overwrite<Omit<RepertoireHistory, 'id'>, 'prev_value' | 'value'>;
18
+ group_history: Overwrite<Omit<GroupHistory, 'id'>, 'prev_value' | 'value'>;
17
19
  };
18
20
  };
19
21
  }>;
@@ -4,6 +4,7 @@ import { Overwrite } from './overwrites';
4
4
  import { EventOverwrite } from './overwrites/event';
5
5
  import { EventHistory } from './overwrites/event_history';
6
6
  import { GroupOverwrite } from './overwrites/group';
7
+ import { GroupHistory } from './overwrites/group_history';
7
8
  import { OfferOverwrite } from './overwrites/offer';
8
9
  import { RepertoireHistory } from './overwrites/repertoire_history';
9
10
 
@@ -20,6 +21,7 @@ export type Database = MergeDeep<
20
21
  Omit<RepertoireHistory, 'id'>,
21
22
  'prev_value' | 'value'
22
23
  >;
24
+ group_history: Overwrite<Omit<GroupHistory, 'id'>, 'prev_value' | 'value'>;
23
25
  };
24
26
  };
25
27
  }
@@ -0,0 +1,9 @@
1
+ export interface GroupHistory {
2
+ id: string;
3
+ user_id: string;
4
+ group_id: string;
5
+ action: string;
6
+ created_at: string;
7
+ value: Record<string, unknown> | null;
8
+ prev_value: Record<string, unknown> | null;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface GroupHistory {
2
+ id: string;
3
+ user_id: string;
4
+ group_id: string;
5
+ action: string;
6
+ created_at: string;
7
+ value: Record<string, unknown> | null;
8
+ prev_value: Record<string, unknown> | null;
9
+ }