@glissandoo/lib 1.104.28 → 1.104.29

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.29",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -252,6 +252,72 @@ export type Database = {
252
252
  };
253
253
  Relationships: [];
254
254
  };
255
+ comm_history: {
256
+ Row: {
257
+ action: string;
258
+ created_at: string;
259
+ comm_id: string;
260
+ group_id: string;
261
+ id: number;
262
+ prev_value: Json | null;
263
+ user_id: string;
264
+ value: Json | null;
265
+ };
266
+ Insert: {
267
+ action: string;
268
+ created_at: string;
269
+ comm_id: string;
270
+ group_id: string;
271
+ id?: number;
272
+ prev_value?: Json | null;
273
+ user_id: string;
274
+ value?: Json | null;
275
+ };
276
+ Update: {
277
+ action?: string;
278
+ comm_id?: string;
279
+ created_at?: string;
280
+ group_id?: string;
281
+ id?: number;
282
+ prev_value?: Json | null;
283
+ user_id?: string;
284
+ value?: Json | null;
285
+ };
286
+ Relationships: [];
287
+ };
288
+ offer_history: {
289
+ Row: {
290
+ action: string;
291
+ created_at: string;
292
+ offer_id: string;
293
+ group_id: string;
294
+ id: number;
295
+ prev_value: Json | null;
296
+ user_id: string;
297
+ value: Json | null;
298
+ };
299
+ Insert: {
300
+ action: string;
301
+ created_at: string;
302
+ offer_id: string;
303
+ group_id: string;
304
+ id?: number;
305
+ prev_value?: Json | null;
306
+ user_id: string;
307
+ value?: Json | null;
308
+ };
309
+ Update: {
310
+ action?: string;
311
+ offer_id?: string;
312
+ created_at?: string;
313
+ group_id?: string;
314
+ id?: number;
315
+ prev_value?: Json | null;
316
+ user_id?: string;
317
+ value?: Json | null;
318
+ };
319
+ Relationships: [];
320
+ };
255
321
  group: {
256
322
  Row: {
257
323
  activeInvitationLink: boolean;
@@ -253,6 +253,72 @@ export type Database = {
253
253
  };
254
254
  Relationships: [];
255
255
  };
256
+ comm_history: {
257
+ Row: {
258
+ action: string;
259
+ created_at: string;
260
+ comm_id: string;
261
+ group_id: string;
262
+ id: number;
263
+ prev_value: Json | null;
264
+ user_id: string;
265
+ value: Json | null;
266
+ };
267
+ Insert: {
268
+ action: string;
269
+ created_at: string;
270
+ comm_id: string;
271
+ group_id: string;
272
+ id?: number;
273
+ prev_value?: Json | null;
274
+ user_id: string;
275
+ value?: Json | null;
276
+ };
277
+ Update: {
278
+ action?: string;
279
+ comm_id?: string;
280
+ created_at?: string;
281
+ group_id?: string;
282
+ id?: number;
283
+ prev_value?: Json | null;
284
+ user_id?: string;
285
+ value?: Json | null;
286
+ };
287
+ Relationships: [];
288
+ };
289
+ offer_history: {
290
+ Row: {
291
+ action: string;
292
+ created_at: string;
293
+ offer_id: string;
294
+ group_id: string;
295
+ id: number;
296
+ prev_value: Json | null;
297
+ user_id: string;
298
+ value: Json | null;
299
+ };
300
+ Insert: {
301
+ action: string;
302
+ created_at: string;
303
+ offer_id: string;
304
+ group_id: string;
305
+ id?: number;
306
+ prev_value?: Json | null;
307
+ user_id: string;
308
+ value?: Json | null;
309
+ };
310
+ Update: {
311
+ action?: string;
312
+ offer_id?: string;
313
+ created_at?: string;
314
+ group_id?: string;
315
+ id?: number;
316
+ prev_value?: Json | null;
317
+ user_id?: string;
318
+ value?: Json | null;
319
+ };
320
+ Relationships: [];
321
+ };
256
322
  group: {
257
323
  Row: {
258
324
  activeInvitationLink: boolean;
@@ -1,11 +1,13 @@
1
1
  import { MergeDeep } from 'type-fest';
2
2
  import { Database as DatabaseGenerated } from './generated';
3
3
  import { Overwrite } from './overwrites';
4
+ import { CommHistory } from './overwrites/comm_history';
4
5
  import { EventOverwrite } from './overwrites/event';
5
6
  import { EventHistory } from './overwrites/event_history';
6
7
  import { GroupOverwrite } from './overwrites/group';
7
8
  import { GroupHistory } from './overwrites/group_history';
8
9
  import { OfferOverwrite } from './overwrites/offer';
10
+ import { OfferHistory } from './overwrites/offer_history';
9
11
  import { RepertoireHistory } from './overwrites/repertoire_history';
10
12
  export type Database = MergeDeep<DatabaseGenerated, {
11
13
  public: {
@@ -16,6 +18,8 @@ export type Database = MergeDeep<DatabaseGenerated, {
16
18
  event_history: Overwrite<Omit<EventHistory, 'id'>, 'prev_value' | 'value'>;
17
19
  repertoire_history: Overwrite<Omit<RepertoireHistory, 'id'>, 'prev_value' | 'value'>;
18
20
  group_history: Overwrite<Omit<GroupHistory, 'id'>, 'prev_value' | 'value'>;
21
+ offer_history: Overwrite<Omit<OfferHistory, 'id'>, 'prev_value' | 'value'>;
22
+ comm_history: Overwrite<Omit<CommHistory, 'id'>, 'prev_value' | 'value'>;
19
23
  };
20
24
  };
21
25
  }>;
@@ -1,11 +1,13 @@
1
1
  import { MergeDeep } from 'type-fest';
2
2
  import { Database as DatabaseGenerated } from './generated';
3
3
  import { Overwrite } from './overwrites';
4
+ import { CommHistory } from './overwrites/comm_history';
4
5
  import { EventOverwrite } from './overwrites/event';
5
6
  import { EventHistory } from './overwrites/event_history';
6
7
  import { GroupOverwrite } from './overwrites/group';
7
8
  import { GroupHistory } from './overwrites/group_history';
8
9
  import { OfferOverwrite } from './overwrites/offer';
10
+ import { OfferHistory } from './overwrites/offer_history';
9
11
  import { RepertoireHistory } from './overwrites/repertoire_history';
10
12
 
11
13
  export type Database = MergeDeep<
@@ -22,6 +24,8 @@ export type Database = MergeDeep<
22
24
  'prev_value' | 'value'
23
25
  >;
24
26
  group_history: Overwrite<Omit<GroupHistory, 'id'>, 'prev_value' | 'value'>;
27
+ offer_history: Overwrite<Omit<OfferHistory, 'id'>, 'prev_value' | 'value'>;
28
+ comm_history: Overwrite<Omit<CommHistory, 'id'>, 'prev_value' | 'value'>;
25
29
  };
26
30
  };
27
31
  }
@@ -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
+ }