@glissandoo/lib 1.104.28 → 1.104.30

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.
@@ -3,6 +3,11 @@ import { Descendant } from '../../helpers/slate';
3
3
  import { CommunicationTemplateType } from '../../helpers/communicationTemplate';
4
4
  import { GroupTinyData } from '../Group/types';
5
5
  import { UserTinyData } from '../User/types';
6
+ export declare enum CommHistoryAction {
7
+ Created = "created",
8
+ Remove = "remove",
9
+ AddComment = "add_comment"
10
+ }
6
11
  export declare enum CommunicationType {
7
12
  Private = "user",
8
13
  Public = "group"
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommunicationReactions = exports.CommunicationType = void 0;
3
+ exports.CommunicationReactions = exports.CommunicationType = exports.CommHistoryAction = void 0;
4
+ var CommHistoryAction;
5
+ (function (CommHistoryAction) {
6
+ CommHistoryAction["Created"] = "created";
7
+ CommHistoryAction["Remove"] = "remove";
8
+ CommHistoryAction["AddComment"] = "add_comment";
9
+ })(CommHistoryAction = exports.CommHistoryAction || (exports.CommHistoryAction = {}));
4
10
  var CommunicationType;
5
11
  (function (CommunicationType) {
6
12
  CommunicationType["Private"] = "user";
@@ -4,6 +4,18 @@ import { Descendant } from '../../helpers/slate';
4
4
  import { CreatedOn } from '../../helpers/types';
5
5
  import { GroupBasicData } from '../Group/types';
6
6
  import { UserBasicData } from '../User/types';
7
+ export declare enum OfferHistoryAction {
8
+ Created = "created",
9
+ Remove = "remove",
10
+ EditLocality = "edit_locality",
11
+ EditDescription = "edit_description",
12
+ EditDeadline = "edit_deadline",
13
+ SelectApplicant = "select_applicant",
14
+ CloseSelection = "close_selection",
15
+ ReopenSelection = "reopen_selection",
16
+ NewApplicant = "new_applicant",
17
+ RemoveApplicant = "remove_applicant"
18
+ }
7
19
  export declare enum OfferType {
8
20
  Group = "group",
9
21
  Event = "event"
@@ -1,6 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OfferType = void 0;
3
+ exports.OfferType = exports.OfferHistoryAction = void 0;
4
+ var OfferHistoryAction;
5
+ (function (OfferHistoryAction) {
6
+ OfferHistoryAction["Created"] = "created";
7
+ OfferHistoryAction["Remove"] = "remove";
8
+ OfferHistoryAction["EditLocality"] = "edit_locality";
9
+ OfferHistoryAction["EditDescription"] = "edit_description";
10
+ OfferHistoryAction["EditDeadline"] = "edit_deadline";
11
+ OfferHistoryAction["SelectApplicant"] = "select_applicant";
12
+ OfferHistoryAction["CloseSelection"] = "close_selection";
13
+ OfferHistoryAction["ReopenSelection"] = "reopen_selection";
14
+ OfferHistoryAction["NewApplicant"] = "new_applicant";
15
+ OfferHistoryAction["RemoveApplicant"] = "remove_applicant";
16
+ })(OfferHistoryAction = exports.OfferHistoryAction || (exports.OfferHistoryAction = {}));
4
17
  var OfferType;
5
18
  (function (OfferType) {
6
19
  OfferType["Group"] = "group";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.104.28",
3
+ "version": "1.104.30",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -7,6 +7,100 @@ export type Database = {
7
7
  };
8
8
  public: {
9
9
  Tables: {
10
+ repertoire: {
11
+ Row: {
12
+ id: string;
13
+ group_id: string;
14
+ title: string;
15
+ compositor: string;
16
+ tags: string[];
17
+ events: string[];
18
+ owner_id: string;
19
+ created_at: string;
20
+ visibility: string;
21
+ last_event_datetime: string | null;
22
+ };
23
+ Insert: {
24
+ id: string;
25
+ group_id: string;
26
+ title: string;
27
+ compositor: string;
28
+ tags: string[];
29
+ events: string[];
30
+ owner_id: string;
31
+ created_at: string;
32
+ visibility: string;
33
+ last_event_datetime?: string | null;
34
+ };
35
+ Update: {
36
+ id?: string;
37
+ group_id?: string;
38
+ title?: string;
39
+ compositor?: string;
40
+ tags?: string[];
41
+ events?: string[];
42
+ owner_id?: string;
43
+ created_at?: string;
44
+ visibility?: string;
45
+ last_event_datetime?: string | null;
46
+ };
47
+ };
48
+ comm: {
49
+ Row: {
50
+ id: string;
51
+ group_id: string;
52
+ owner_id: string;
53
+ title: string;
54
+ type: string;
55
+ comments_count: number;
56
+ block_answers: boolean;
57
+ template_id: string | null;
58
+ server_template: string | null;
59
+ server: boolean;
60
+ recipients: string[];
61
+ deleted_at: string | null;
62
+ deleted_by: string | null;
63
+ edited_at: string | null;
64
+ edited_by: string | null;
65
+ created_at: string;
66
+ };
67
+ Insert: {
68
+ id: string;
69
+ group_id: string;
70
+ owner_id: string;
71
+ title: string;
72
+ type: string;
73
+ comments_count: number;
74
+ block_answers: boolean;
75
+ template_id?: string | null;
76
+ server_template?: string | null;
77
+ server: boolean;
78
+ recipients: string[];
79
+ deleted_at?: string | null;
80
+ deleted_by?: string | null;
81
+ edited_at?: string | null;
82
+ edited_by?: string | null;
83
+ created_at: string;
84
+ };
85
+ Update: {
86
+ id?: string;
87
+ group_id?: string;
88
+ owner_id?: string;
89
+ title?: string;
90
+ type?: string;
91
+ comments_count?: number;
92
+ block_answers?: boolean;
93
+ template_id?: string | null;
94
+ server_template?: string | null;
95
+ server?: boolean;
96
+ recipients?: string[];
97
+ deleted_at?: string | null;
98
+ deleted_by?: string | null;
99
+ edited_at?: string | null;
100
+ edited_by?: string | null;
101
+ created_at?: string;
102
+ };
103
+ };
10
104
  event: {
11
105
  Row: {
12
106
  activeInvitationLink: boolean;
@@ -252,6 +346,72 @@ export type Database = {
252
346
  };
253
347
  Relationships: [];
254
348
  };
349
+ comm_history: {
350
+ Row: {
351
+ action: string;
352
+ created_at: string;
353
+ comm_id: string;
354
+ group_id: string;
355
+ id: number;
356
+ prev_value: Json | null;
357
+ user_id: string;
358
+ value: Json | null;
359
+ };
360
+ Insert: {
361
+ action: string;
362
+ created_at: string;
363
+ comm_id: string;
364
+ group_id: string;
365
+ id?: number;
366
+ prev_value?: Json | null;
367
+ user_id: string;
368
+ value?: Json | null;
369
+ };
370
+ Update: {
371
+ action?: string;
372
+ comm_id?: string;
373
+ created_at?: string;
374
+ group_id?: string;
375
+ id?: number;
376
+ prev_value?: Json | null;
377
+ user_id?: string;
378
+ value?: Json | null;
379
+ };
380
+ Relationships: [];
381
+ };
382
+ offer_history: {
383
+ Row: {
384
+ action: string;
385
+ created_at: string;
386
+ offer_id: string;
387
+ group_id: string;
388
+ id: number;
389
+ prev_value: Json | null;
390
+ user_id: string;
391
+ value: Json | null;
392
+ };
393
+ Insert: {
394
+ action: string;
395
+ created_at: string;
396
+ offer_id: string;
397
+ group_id: string;
398
+ id?: number;
399
+ prev_value?: Json | null;
400
+ user_id: string;
401
+ value?: Json | null;
402
+ };
403
+ Update: {
404
+ action?: string;
405
+ offer_id?: string;
406
+ created_at?: string;
407
+ group_id?: string;
408
+ id?: number;
409
+ prev_value?: Json | null;
410
+ user_id?: string;
411
+ value?: Json | null;
412
+ };
413
+ Relationships: [];
414
+ };
255
415
  group: {
256
416
  Row: {
257
417
  activeInvitationLink: boolean;
@@ -8,6 +8,100 @@ export type Database = {
8
8
  };
9
9
  public: {
10
10
  Tables: {
11
+ repertoire: {
12
+ Row: {
13
+ id: string;
14
+ group_id: string;
15
+ title: string;
16
+ compositor: string;
17
+ tags: string[];
18
+ events: string[];
19
+ owner_id: string;
20
+ created_at: string;
21
+ visibility: string;
22
+ last_event_datetime: string | null;
23
+ };
24
+ Insert: {
25
+ id: string;
26
+ group_id: string;
27
+ title: string;
28
+ compositor: string;
29
+ tags: string[];
30
+ events: string[];
31
+ owner_id: string;
32
+ created_at: string;
33
+ visibility: string;
34
+ last_event_datetime?: string | null;
35
+ };
36
+ Update: {
37
+ id?: string;
38
+ group_id?: string;
39
+ title?: string;
40
+ compositor?: string;
41
+ tags?: string[];
42
+ events?: string[];
43
+ owner_id?: string;
44
+ created_at?: string;
45
+ visibility?: string;
46
+ last_event_datetime?: string | null;
47
+ };
48
+ };
49
+ comm: {
50
+ Row: {
51
+ id: string;
52
+ group_id: string;
53
+ owner_id: string;
54
+ title: string;
55
+ type: string;
56
+ comments_count: number;
57
+ block_answers: boolean;
58
+ template_id: string | null;
59
+ server_template: string | null;
60
+ server: boolean;
61
+ recipients: string[];
62
+ deleted_at: string | null;
63
+ deleted_by: string | null;
64
+ edited_at: string | null;
65
+ edited_by: string | null;
66
+ created_at: string;
67
+ };
68
+ Insert: {
69
+ id: string;
70
+ group_id: string;
71
+ owner_id: string;
72
+ title: string;
73
+ type: string;
74
+ comments_count: number;
75
+ block_answers: boolean;
76
+ template_id?: string | null;
77
+ server_template?: string | null;
78
+ server: boolean;
79
+ recipients: string[];
80
+ deleted_at?: string | null;
81
+ deleted_by?: string | null;
82
+ edited_at?: string | null;
83
+ edited_by?: string | null;
84
+ created_at: string;
85
+ };
86
+ Update: {
87
+ id?: string;
88
+ group_id?: string;
89
+ owner_id?: string;
90
+ title?: string;
91
+ type?: string;
92
+ comments_count?: number;
93
+ block_answers?: boolean;
94
+ template_id?: string | null;
95
+ server_template?: string | null;
96
+ server?: boolean;
97
+ recipients?: string[];
98
+ deleted_at?: string | null;
99
+ deleted_by?: string | null;
100
+ edited_at?: string | null;
101
+ edited_by?: string | null;
102
+ created_at?: string;
103
+ };
104
+ };
11
105
  event: {
12
106
  Row: {
13
107
  activeInvitationLink: boolean;
@@ -253,6 +347,72 @@ export type Database = {
253
347
  };
254
348
  Relationships: [];
255
349
  };
350
+ comm_history: {
351
+ Row: {
352
+ action: string;
353
+ created_at: string;
354
+ comm_id: string;
355
+ group_id: string;
356
+ id: number;
357
+ prev_value: Json | null;
358
+ user_id: string;
359
+ value: Json | null;
360
+ };
361
+ Insert: {
362
+ action: string;
363
+ created_at: string;
364
+ comm_id: string;
365
+ group_id: string;
366
+ id?: number;
367
+ prev_value?: Json | null;
368
+ user_id: string;
369
+ value?: Json | null;
370
+ };
371
+ Update: {
372
+ action?: string;
373
+ comm_id?: string;
374
+ created_at?: string;
375
+ group_id?: string;
376
+ id?: number;
377
+ prev_value?: Json | null;
378
+ user_id?: string;
379
+ value?: Json | null;
380
+ };
381
+ Relationships: [];
382
+ };
383
+ offer_history: {
384
+ Row: {
385
+ action: string;
386
+ created_at: string;
387
+ offer_id: string;
388
+ group_id: string;
389
+ id: number;
390
+ prev_value: Json | null;
391
+ user_id: string;
392
+ value: Json | null;
393
+ };
394
+ Insert: {
395
+ action: string;
396
+ created_at: string;
397
+ offer_id: string;
398
+ group_id: string;
399
+ id?: number;
400
+ prev_value?: Json | null;
401
+ user_id: string;
402
+ value?: Json | null;
403
+ };
404
+ Update: {
405
+ action?: string;
406
+ offer_id?: string;
407
+ created_at?: string;
408
+ group_id?: string;
409
+ id?: number;
410
+ prev_value?: Json | null;
411
+ user_id?: string;
412
+ value?: Json | null;
413
+ };
414
+ Relationships: [];
415
+ };
256
416
  group: {
257
417
  Row: {
258
418
  activeInvitationLink: boolean;
@@ -1,11 +1,15 @@
1
1
  import { MergeDeep } from 'type-fest';
2
2
  import { Database as DatabaseGenerated } from './generated';
3
3
  import { Overwrite } from './overwrites';
4
+ import { CommOverwrite } from './overwrites/comm';
5
+ import { CommHistory } from './overwrites/comm_history';
4
6
  import { EventOverwrite } from './overwrites/event';
5
7
  import { EventHistory } from './overwrites/event_history';
6
8
  import { GroupOverwrite } from './overwrites/group';
7
9
  import { GroupHistory } from './overwrites/group_history';
8
10
  import { OfferOverwrite } from './overwrites/offer';
11
+ import { OfferHistory } from './overwrites/offer_history';
12
+ import { RepertoireOverwrite } from './overwrites/repertoire';
9
13
  import { RepertoireHistory } from './overwrites/repertoire_history';
10
14
  export type Database = MergeDeep<DatabaseGenerated, {
11
15
  public: {
@@ -13,9 +17,13 @@ export type Database = MergeDeep<DatabaseGenerated, {
13
17
  group: Overwrite<GroupOverwrite, 'configSites' | 'socialNetworks'>;
14
18
  event: Overwrite<EventOverwrite, 'repeat' | 'stage'>;
15
19
  offer: Overwrite<OfferOverwrite>;
20
+ repertoire: Overwrite<RepertoireOverwrite>;
21
+ comm: Overwrite<CommOverwrite>;
16
22
  event_history: Overwrite<Omit<EventHistory, 'id'>, 'prev_value' | 'value'>;
17
23
  repertoire_history: Overwrite<Omit<RepertoireHistory, 'id'>, 'prev_value' | 'value'>;
18
24
  group_history: Overwrite<Omit<GroupHistory, 'id'>, 'prev_value' | 'value'>;
25
+ offer_history: Overwrite<Omit<OfferHistory, 'id'>, 'prev_value' | 'value'>;
26
+ comm_history: Overwrite<Omit<CommHistory, 'id'>, 'prev_value' | 'value'>;
19
27
  };
20
28
  };
21
29
  }>;
@@ -1,11 +1,15 @@
1
1
  import { MergeDeep } from 'type-fest';
2
2
  import { Database as DatabaseGenerated } from './generated';
3
3
  import { Overwrite } from './overwrites';
4
+ import { CommOverwrite } from './overwrites/comm';
5
+ import { CommHistory } from './overwrites/comm_history';
4
6
  import { EventOverwrite } from './overwrites/event';
5
7
  import { EventHistory } from './overwrites/event_history';
6
8
  import { GroupOverwrite } from './overwrites/group';
7
9
  import { GroupHistory } from './overwrites/group_history';
8
10
  import { OfferOverwrite } from './overwrites/offer';
11
+ import { OfferHistory } from './overwrites/offer_history';
12
+ import { RepertoireOverwrite } from './overwrites/repertoire';
9
13
  import { RepertoireHistory } from './overwrites/repertoire_history';
10
14
 
11
15
  export type Database = MergeDeep<
@@ -16,12 +20,16 @@ export type Database = MergeDeep<
16
20
  group: Overwrite<GroupOverwrite, 'configSites' | 'socialNetworks'>;
17
21
  event: Overwrite<EventOverwrite, 'repeat' | 'stage'>;
18
22
  offer: Overwrite<OfferOverwrite>;
23
+ repertoire: Overwrite<RepertoireOverwrite>;
24
+ comm: Overwrite<CommOverwrite>;
19
25
  event_history: Overwrite<Omit<EventHistory, 'id'>, 'prev_value' | 'value'>;
20
26
  repertoire_history: Overwrite<
21
27
  Omit<RepertoireHistory, 'id'>,
22
28
  'prev_value' | 'value'
23
29
  >;
24
30
  group_history: Overwrite<Omit<GroupHistory, 'id'>, 'prev_value' | 'value'>;
31
+ offer_history: Overwrite<Omit<OfferHistory, 'id'>, 'prev_value' | 'value'>;
32
+ comm_history: Overwrite<Omit<CommHistory, 'id'>, 'prev_value' | 'value'>;
25
33
  };
26
34
  };
27
35
  }
@@ -0,0 +1,18 @@
1
+ export interface CommOverwrite {
2
+ id: string;
3
+ group_id: string;
4
+ owner_id: string;
5
+ title: string;
6
+ type: string;
7
+ comments_count: number;
8
+ block_answers: boolean;
9
+ template_id: string | null;
10
+ server_template: string | null;
11
+ server: boolean;
12
+ recipients: string[];
13
+ deleted_at: string | null;
14
+ deleted_by: string | null;
15
+ edited_at: string | null;
16
+ edited_by: string | null;
17
+ created_at: string;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ export interface CommOverwrite {
2
+ id: string;
3
+ group_id: string;
4
+ owner_id: string;
5
+ title: string;
6
+ type: string;
7
+ comments_count: number;
8
+ block_answers: boolean;
9
+ template_id: string | null;
10
+ server_template: string | null;
11
+ server: boolean;
12
+ recipients: string[];
13
+ deleted_at: string | null;
14
+ deleted_by: string | null;
15
+ edited_at: string | null;
16
+ edited_by: string | null;
17
+ created_at: string;
18
+ }
@@ -0,0 +1,10 @@
1
+ export interface CommHistory {
2
+ id: string;
3
+ comm_id: string;
4
+ user_id: string;
5
+ group_id: string;
6
+ action: string;
7
+ created_at: string;
8
+ value: Record<string, unknown> | null;
9
+ prev_value: Record<string, unknown> | null;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export interface CommHistory {
2
+ id: string;
3
+ comm_id: string;
4
+ user_id: string;
5
+ group_id: string;
6
+ action: string;
7
+ created_at: string;
8
+ value: Record<string, unknown> | null;
9
+ prev_value: Record<string, unknown> | null;
10
+ }
@@ -0,0 +1,10 @@
1
+ export interface OfferHistory {
2
+ id: string;
3
+ offer_id: string;
4
+ user_id: string;
5
+ group_id: string;
6
+ action: string;
7
+ created_at: string;
8
+ value: Record<string, unknown> | null;
9
+ prev_value: Record<string, unknown> | null;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export interface OfferHistory {
2
+ id: string;
3
+ offer_id: string;
4
+ user_id: string;
5
+ group_id: string;
6
+ action: string;
7
+ created_at: string;
8
+ value: Record<string, unknown> | null;
9
+ prev_value: Record<string, unknown> | null;
10
+ }
@@ -0,0 +1,12 @@
1
+ export interface RepertoireOverwrite {
2
+ id: string;
3
+ group_id: string;
4
+ title: string;
5
+ compositor: string;
6
+ tags: string[];
7
+ events: string[];
8
+ owner_id: string;
9
+ created_at: string;
10
+ visibility: string;
11
+ last_event_datetime: string | null;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ export interface RepertoireOverwrite {
2
+ id: string;
3
+ group_id: string;
4
+ title: string;
5
+ compositor: string;
6
+ tags: string[];
7
+ events: string[];
8
+ owner_id: string;
9
+ created_at: string;
10
+ visibility: string;
11
+ last_event_datetime: string | null;
12
+ }