@glissandoo/lib 1.88.1 → 1.90.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.
@@ -15,14 +15,14 @@ export declare namespace OfferFbFunctionsTypes {
15
15
  };
16
16
  country: string;
17
17
  type: OfferType;
18
- group: string;
19
- event: string | null;
18
+ groupId: string;
19
+ eventId: string | null;
20
20
  deadlineAt: number | null;
21
21
  timezone: string;
22
22
  createdOn: CreatedOn;
23
23
  }
24
24
  type PublishResult = void;
25
- type EditParams = Omit<PublishParams, 'instrument' | 'type' | 'group' | 'event' | 'createdOn'>;
25
+ type EditParams = Omit<PublishParams, 'instrument' | 'type' | 'groupId' | 'eventId' | 'createdOn'>;
26
26
  type EditResult = void;
27
27
  interface SelectApplicantParams {
28
28
  offerId: string;
@@ -60,6 +60,9 @@ export default class Evento extends EventoPromoter<EventData> {
60
60
  get pendingPlayers(): EventoPlayerBasic[];
61
61
  get confirmedRollCallPlayers(): EventoPlayerBasic[];
62
62
  get declinedRollCallPlayers(): EventoPlayerBasic[];
63
+ get selectedPlayers(): EventoPlayerBasic[];
64
+ get discardedPlayers(): EventoPlayerBasic[];
65
+ get pendingSelectedPlayers(): EventoPlayerBasic[];
63
66
  get isRollCalled(): boolean;
64
67
  get isActiveRollCall(): boolean;
65
68
  get templateId(): string | null;
@@ -168,6 +168,15 @@ class Evento extends promoter_1.default {
168
168
  get declinedRollCallPlayers() {
169
169
  return this.playersList().filter((player) => player.isRollCallDeclined);
170
170
  }
171
+ get selectedPlayers() {
172
+ return this.playersList().filter((player) => player.isSelected);
173
+ }
174
+ get discardedPlayers() {
175
+ return this.playersList().filter((player) => player.isSelected);
176
+ }
177
+ get pendingSelectedPlayers() {
178
+ return this.playersList().filter((player) => player.isPendingSelected);
179
+ }
171
180
  get isRollCalled() {
172
181
  return this.rollCalledAt !== null;
173
182
  }
@@ -13,8 +13,9 @@ export default class Offer extends ModelWithLang<OfferData> {
13
13
  get description(): import("../../helpers/slate").Descendant[];
14
14
  get plainDescription(): string;
15
15
  get type(): OfferType;
16
- get group(): string;
17
- get event(): string | null;
16
+ get groupId(): string;
17
+ get group(): import("../Group/types").GroupBasicData;
18
+ get eventId(): string | null;
18
19
  get locality(): string;
19
20
  get location(): FirebaseFirestore.GeoPoint;
20
21
  get country(): string;
@@ -25,13 +25,13 @@ class Offer extends lang_2.default {
25
25
  return this.data.createdOn;
26
26
  }
27
27
  get title() {
28
- return this.data.title || '';
28
+ return this.data.title;
29
29
  }
30
30
  get instrument() {
31
31
  return this.data.instrument || instruments_1.DefaultInstrumentId.Maracas;
32
32
  }
33
33
  get description() {
34
- return this.data.description || '';
34
+ return this.data.description || [];
35
35
  }
36
36
  get plainDescription() {
37
37
  return (0, slate_1.serializeSlateBlock)(this.description);
@@ -39,11 +39,14 @@ class Offer extends lang_2.default {
39
39
  get type() {
40
40
  return this.data.type || types_1.OfferType.Group;
41
41
  }
42
+ get groupId() {
43
+ return this.data.groupId;
44
+ }
42
45
  get group() {
43
- return this.data.group || '';
46
+ return this.data.groupInfo;
44
47
  }
45
- get event() {
46
- return this.data.event || null;
48
+ get eventId() {
49
+ return this.data.eventId || null;
47
50
  }
48
51
  get locality() {
49
52
  return this.data.locality;
@@ -2,12 +2,13 @@ import { GeoPoint, Timestamp } from '@google-cloud/firestore';
2
2
  import { DefaultInstrumentId } from '../../helpers/instruments';
3
3
  import { Descendant } from '../../helpers/slate';
4
4
  import { CreatedOn } from '../../helpers/types';
5
+ import { GroupBasicData } from '../Group/types';
5
6
  import { UserBasicData } from '../User/types';
6
7
  export declare enum OfferType {
7
8
  Group = "group",
8
9
  Event = "event"
9
10
  }
10
- export interface OfferAlgoliaData extends Pick<OfferData, 'country' | 'locality' | 'title' | 'timezone' | 'type' | 'group' | 'event' | 'applicantsIds'> {
11
+ export interface OfferAlgoliaData extends Pick<OfferData, 'country' | 'locality' | 'title' | 'timezone' | 'type' | 'groupId' | 'eventId' | 'applicantsIds' | 'instrument'> {
11
12
  objectID: string;
12
13
  _geoloc: {
13
14
  lat: number;
@@ -16,6 +17,7 @@ export interface OfferAlgoliaData extends Pick<OfferData, 'country' | 'locality'
16
17
  deadlineAt: number | null;
17
18
  createdAt: number;
18
19
  selectionClosedAt: number | null;
20
+ groupInfo: Omit<GroupBasicData, 'location'>;
19
21
  }
20
22
  export interface OfferApplicantBasicData extends UserBasicData {
21
23
  appliedAt: Timestamp;
@@ -35,8 +37,9 @@ export interface OfferData {
35
37
  location: GeoPoint;
36
38
  country: string;
37
39
  type: OfferType;
38
- group: string;
39
- event: string | null;
40
+ groupId: string;
41
+ groupInfo: GroupBasicData;
42
+ eventId: string | null;
40
43
  applicantsIds: string[];
41
44
  applicants: Record<string, OfferApplicantBasicData>;
42
45
  deadlineAt: Timestamp | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.88.1",
3
+ "version": "1.90.0",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "link": "cp package.json ./lib && cd ./lib && npm link",
24
24
  "translation:upload": "localazy upload",
25
25
  "translation:download": "localazy download",
26
- "supabase:types": "supabase gen types typescript --local > src/types/supabase/generated.ts"
26
+ "supabase:types": "supabase gen types typescript --local > src/types/supabase/generated.ts; prettier --write src/types/supabase/generated.ts"
27
27
  },
28
28
  "author": "Glissandoo",
29
29
  "license": "ISC",
@@ -316,18 +316,25 @@ export interface Database {
316
316
  Row: {
317
317
  applicants: Json;
318
318
  applicantsIds: string[];
319
+ country: string;
319
320
  createdAt: string;
320
321
  createdBy: string;
322
+ createdOn: Database['public']['Enums']['created_on'];
321
323
  deadlineAt: string | null;
322
324
  deletedAt: string | null;
323
325
  deletedBy: string | null;
324
326
  description: string;
325
- event: string | null;
326
- group: string;
327
+ eventId: string | null;
328
+ groupId: string;
329
+ groupInfo: Json;
327
330
  id: string;
328
331
  instrument: string;
332
+ locality: string;
333
+ location: unknown;
334
+ location_lonlat: Database['public']['CompositeTypes']['lonlat'];
329
335
  selectionClosedAt: string | null;
330
336
  selectionClosedBy: string | null;
337
+ timezone: string;
331
338
  title: string;
332
339
  type: Database['public']['Enums']['offer_type'];
333
340
  updatedAt: string;
@@ -336,18 +343,25 @@ export interface Database {
336
343
  Insert: {
337
344
  applicants: Json;
338
345
  applicantsIds: string[];
346
+ country: string;
339
347
  createdAt: string;
340
348
  createdBy: string;
349
+ createdOn: Database['public']['Enums']['created_on'];
341
350
  deadlineAt?: string | null;
342
351
  deletedAt?: string | null;
343
352
  deletedBy?: string | null;
344
353
  description: string;
345
- event?: string | null;
346
- group: string;
354
+ eventId?: string | null;
355
+ groupId: string;
356
+ groupInfo?: Json;
347
357
  id: string;
348
358
  instrument: string;
359
+ locality: string;
360
+ location: unknown;
361
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
349
362
  selectionClosedAt?: string | null;
350
363
  selectionClosedBy?: string | null;
364
+ timezone: string;
351
365
  title: string;
352
366
  type: Database['public']['Enums']['offer_type'];
353
367
  updatedAt: string;
@@ -356,18 +370,25 @@ export interface Database {
356
370
  Update: {
357
371
  applicants?: Json;
358
372
  applicantsIds?: string[];
373
+ country?: string;
359
374
  createdAt?: string;
360
375
  createdBy?: string;
376
+ createdOn?: Database['public']['Enums']['created_on'];
361
377
  deadlineAt?: string | null;
362
378
  deletedAt?: string | null;
363
379
  deletedBy?: string | null;
364
380
  description?: string;
365
- event?: string | null;
366
- group?: string;
381
+ eventId?: string | null;
382
+ groupId?: string;
383
+ groupInfo?: Json;
367
384
  id?: string;
368
385
  instrument?: string;
386
+ locality?: string;
387
+ location?: unknown;
388
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
369
389
  selectionClosedAt?: string | null;
370
390
  selectionClosedBy?: string | null;
391
+ timezone?: string;
371
392
  title?: string;
372
393
  type?: Database['public']['Enums']['offer_type'];
373
394
  updatedAt?: string;
@@ -375,14 +396,14 @@ export interface Database {
375
396
  };
376
397
  Relationships: [
377
398
  {
378
- foreignKeyName: 'public_offer_event_fkey';
379
- columns: ['event'];
399
+ foreignKeyName: 'public_offer_eventId_fkey';
400
+ columns: ['eventId'];
380
401
  referencedRelation: 'event';
381
402
  referencedColumns: ['id'];
382
403
  },
383
404
  {
384
- foreignKeyName: 'public_offer_group_fkey';
385
- columns: ['group'];
405
+ foreignKeyName: 'public_offer_groupId_fkey';
406
+ columns: ['groupId'];
386
407
  referencedRelation: 'group';
387
408
  referencedColumns: ['id'];
388
409
  }
@@ -523,6 +544,98 @@ export interface Database {
523
544
  }
524
545
  ];
525
546
  };
547
+ s3_multipart_uploads: {
548
+ Row: {
549
+ bucket_id: string;
550
+ created_at: string;
551
+ id: string;
552
+ in_progress_size: number;
553
+ key: string;
554
+ owner_id: string | null;
555
+ upload_signature: string;
556
+ version: string;
557
+ };
558
+ Insert: {
559
+ bucket_id: string;
560
+ created_at?: string;
561
+ id: string;
562
+ in_progress_size?: number;
563
+ key: string;
564
+ owner_id?: string | null;
565
+ upload_signature: string;
566
+ version: string;
567
+ };
568
+ Update: {
569
+ bucket_id?: string;
570
+ created_at?: string;
571
+ id?: string;
572
+ in_progress_size?: number;
573
+ key?: string;
574
+ owner_id?: string | null;
575
+ upload_signature?: string;
576
+ version?: string;
577
+ };
578
+ Relationships: [
579
+ {
580
+ foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
581
+ columns: ['bucket_id'];
582
+ referencedRelation: 'buckets';
583
+ referencedColumns: ['id'];
584
+ }
585
+ ];
586
+ };
587
+ s3_multipart_uploads_parts: {
588
+ Row: {
589
+ bucket_id: string;
590
+ created_at: string;
591
+ etag: string;
592
+ id: string;
593
+ key: string;
594
+ owner_id: string | null;
595
+ part_number: number;
596
+ size: number;
597
+ upload_id: string;
598
+ version: string;
599
+ };
600
+ Insert: {
601
+ bucket_id: string;
602
+ created_at?: string;
603
+ etag: string;
604
+ id?: string;
605
+ key: string;
606
+ owner_id?: string | null;
607
+ part_number: number;
608
+ size?: number;
609
+ upload_id: string;
610
+ version: string;
611
+ };
612
+ Update: {
613
+ bucket_id?: string;
614
+ created_at?: string;
615
+ etag?: string;
616
+ id?: string;
617
+ key?: string;
618
+ owner_id?: string | null;
619
+ part_number?: number;
620
+ size?: number;
621
+ upload_id?: string;
622
+ version?: string;
623
+ };
624
+ Relationships: [
625
+ {
626
+ foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
627
+ columns: ['bucket_id'];
628
+ referencedRelation: 'buckets';
629
+ referencedColumns: ['id'];
630
+ },
631
+ {
632
+ foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
633
+ columns: ['upload_id'];
634
+ referencedRelation: 's3_multipart_uploads';
635
+ referencedColumns: ['id'];
636
+ }
637
+ ];
638
+ };
526
639
  };
527
640
  Views: {
528
641
  [_ in never]: never;
@@ -562,6 +675,37 @@ export interface Database {
562
675
  bucket_id: string;
563
676
  }[];
564
677
  };
678
+ list_multipart_uploads_with_delimiter: {
679
+ Args: {
680
+ bucket_id: string;
681
+ prefix_param: string;
682
+ delimiter_param: string;
683
+ max_keys?: number;
684
+ next_key_token?: string;
685
+ next_upload_token?: string;
686
+ };
687
+ Returns: {
688
+ key: string;
689
+ id: string;
690
+ created_at: string;
691
+ }[];
692
+ };
693
+ list_objects_with_delimiter: {
694
+ Args: {
695
+ bucket_id: string;
696
+ prefix_param: string;
697
+ delimiter_param: string;
698
+ max_keys?: number;
699
+ start_after?: string;
700
+ next_token?: string;
701
+ };
702
+ Returns: {
703
+ name: string;
704
+ id: string;
705
+ metadata: Json;
706
+ updated_at: string;
707
+ }[];
708
+ };
565
709
  search: {
566
710
  Args: {
567
711
  prefix: string;
@@ -315,18 +315,25 @@ export interface Database {
315
315
  Row: {
316
316
  applicants: Json;
317
317
  applicantsIds: string[];
318
+ country: string;
318
319
  createdAt: string;
319
320
  createdBy: string;
321
+ createdOn: Database['public']['Enums']['created_on'];
320
322
  deadlineAt: string | null;
321
323
  deletedAt: string | null;
322
324
  deletedBy: string | null;
323
325
  description: string;
324
- event: string | null;
325
- group: string;
326
+ eventId: string | null;
327
+ groupId: string;
328
+ groupInfo: Json;
326
329
  id: string;
327
330
  instrument: string;
331
+ locality: string;
332
+ location: unknown;
333
+ location_lonlat: Database['public']['CompositeTypes']['lonlat'];
328
334
  selectionClosedAt: string | null;
329
335
  selectionClosedBy: string | null;
336
+ timezone: string;
330
337
  title: string;
331
338
  type: Database['public']['Enums']['offer_type'];
332
339
  updatedAt: string;
@@ -335,18 +342,25 @@ export interface Database {
335
342
  Insert: {
336
343
  applicants: Json;
337
344
  applicantsIds: string[];
345
+ country: string;
338
346
  createdAt: string;
339
347
  createdBy: string;
348
+ createdOn: Database['public']['Enums']['created_on'];
340
349
  deadlineAt?: string | null;
341
350
  deletedAt?: string | null;
342
351
  deletedBy?: string | null;
343
352
  description: string;
344
- event?: string | null;
345
- group: string;
353
+ eventId?: string | null;
354
+ groupId: string;
355
+ groupInfo?: Json;
346
356
  id: string;
347
357
  instrument: string;
358
+ locality: string;
359
+ location: unknown;
360
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
348
361
  selectionClosedAt?: string | null;
349
362
  selectionClosedBy?: string | null;
363
+ timezone: string;
350
364
  title: string;
351
365
  type: Database['public']['Enums']['offer_type'];
352
366
  updatedAt: string;
@@ -355,18 +369,25 @@ export interface Database {
355
369
  Update: {
356
370
  applicants?: Json;
357
371
  applicantsIds?: string[];
372
+ country?: string;
358
373
  createdAt?: string;
359
374
  createdBy?: string;
375
+ createdOn?: Database['public']['Enums']['created_on'];
360
376
  deadlineAt?: string | null;
361
377
  deletedAt?: string | null;
362
378
  deletedBy?: string | null;
363
379
  description?: string;
364
- event?: string | null;
365
- group?: string;
380
+ eventId?: string | null;
381
+ groupId?: string;
382
+ groupInfo?: Json;
366
383
  id?: string;
367
384
  instrument?: string;
385
+ locality?: string;
386
+ location?: unknown;
387
+ location_lonlat?: Database['public']['CompositeTypes']['lonlat'];
368
388
  selectionClosedAt?: string | null;
369
389
  selectionClosedBy?: string | null;
390
+ timezone?: string;
370
391
  title?: string;
371
392
  type?: Database['public']['Enums']['offer_type'];
372
393
  updatedAt?: string;
@@ -374,14 +395,14 @@ export interface Database {
374
395
  };
375
396
  Relationships: [
376
397
  {
377
- foreignKeyName: 'public_offer_event_fkey';
378
- columns: ['event'];
398
+ foreignKeyName: 'public_offer_eventId_fkey';
399
+ columns: ['eventId'];
379
400
  referencedRelation: 'event';
380
401
  referencedColumns: ['id'];
381
402
  },
382
403
  {
383
- foreignKeyName: 'public_offer_group_fkey';
384
- columns: ['group'];
404
+ foreignKeyName: 'public_offer_groupId_fkey';
405
+ columns: ['groupId'];
385
406
  referencedRelation: 'group';
386
407
  referencedColumns: ['id'];
387
408
  }
@@ -522,6 +543,98 @@ export interface Database {
522
543
  }
523
544
  ];
524
545
  };
546
+ s3_multipart_uploads: {
547
+ Row: {
548
+ bucket_id: string;
549
+ created_at: string;
550
+ id: string;
551
+ in_progress_size: number;
552
+ key: string;
553
+ owner_id: string | null;
554
+ upload_signature: string;
555
+ version: string;
556
+ };
557
+ Insert: {
558
+ bucket_id: string;
559
+ created_at?: string;
560
+ id: string;
561
+ in_progress_size?: number;
562
+ key: string;
563
+ owner_id?: string | null;
564
+ upload_signature: string;
565
+ version: string;
566
+ };
567
+ Update: {
568
+ bucket_id?: string;
569
+ created_at?: string;
570
+ id?: string;
571
+ in_progress_size?: number;
572
+ key?: string;
573
+ owner_id?: string | null;
574
+ upload_signature?: string;
575
+ version?: string;
576
+ };
577
+ Relationships: [
578
+ {
579
+ foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
580
+ columns: ['bucket_id'];
581
+ referencedRelation: 'buckets';
582
+ referencedColumns: ['id'];
583
+ }
584
+ ];
585
+ };
586
+ s3_multipart_uploads_parts: {
587
+ Row: {
588
+ bucket_id: string;
589
+ created_at: string;
590
+ etag: string;
591
+ id: string;
592
+ key: string;
593
+ owner_id: string | null;
594
+ part_number: number;
595
+ size: number;
596
+ upload_id: string;
597
+ version: string;
598
+ };
599
+ Insert: {
600
+ bucket_id: string;
601
+ created_at?: string;
602
+ etag: string;
603
+ id?: string;
604
+ key: string;
605
+ owner_id?: string | null;
606
+ part_number: number;
607
+ size?: number;
608
+ upload_id: string;
609
+ version: string;
610
+ };
611
+ Update: {
612
+ bucket_id?: string;
613
+ created_at?: string;
614
+ etag?: string;
615
+ id?: string;
616
+ key?: string;
617
+ owner_id?: string | null;
618
+ part_number?: number;
619
+ size?: number;
620
+ upload_id?: string;
621
+ version?: string;
622
+ };
623
+ Relationships: [
624
+ {
625
+ foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
626
+ columns: ['bucket_id'];
627
+ referencedRelation: 'buckets';
628
+ referencedColumns: ['id'];
629
+ },
630
+ {
631
+ foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
632
+ columns: ['upload_id'];
633
+ referencedRelation: 's3_multipart_uploads';
634
+ referencedColumns: ['id'];
635
+ }
636
+ ];
637
+ };
525
638
  };
526
639
  Views: {
527
640
  [_ in never]: never;
@@ -561,6 +674,37 @@ export interface Database {
561
674
  bucket_id: string;
562
675
  }[];
563
676
  };
677
+ list_multipart_uploads_with_delimiter: {
678
+ Args: {
679
+ bucket_id: string;
680
+ prefix_param: string;
681
+ delimiter_param: string;
682
+ max_keys?: number;
683
+ next_key_token?: string;
684
+ next_upload_token?: string;
685
+ };
686
+ Returns: {
687
+ key: string;
688
+ id: string;
689
+ created_at: string;
690
+ }[];
691
+ };
692
+ list_objects_with_delimiter: {
693
+ Args: {
694
+ bucket_id: string;
695
+ prefix_param: string;
696
+ delimiter_param: string;
697
+ max_keys?: number;
698
+ start_after?: string;
699
+ next_token?: string;
700
+ };
701
+ Returns: {
702
+ name: string;
703
+ id: string;
704
+ metadata: Json;
705
+ updated_at: string;
706
+ }[];
707
+ };
564
708
  search: {
565
709
  Args: {
566
710
  prefix: string;
@@ -1,9 +1,9 @@
1
1
  import { MergeDeep } from 'type-fest';
2
2
  import { Database as DatabaseGenerated } from './generated';
3
+ import { Overwrite } from './overwrites';
3
4
  import { EventOverwrite } from './overwrites/event';
4
5
  import { GroupOverwrite } from './overwrites/group';
5
6
  import { OfferOverwrite } from './overwrites/offer';
6
- import { Overwrite } from './overwrites';
7
7
  export type Database = MergeDeep<DatabaseGenerated, {
8
8
  public: {
9
9
  Tables: {
@@ -1,9 +1,9 @@
1
1
  import { MergeDeep } from 'type-fest';
2
2
  import { Database as DatabaseGenerated } from './generated';
3
+ import { Overwrite } from './overwrites';
3
4
  import { EventOverwrite } from './overwrites/event';
4
5
  import { GroupOverwrite } from './overwrites/group';
5
6
  import { OfferOverwrite } from './overwrites/offer';
6
- import { Overwrite } from './overwrites';
7
7
 
8
8
  export type Database = MergeDeep<
9
9
  DatabaseGenerated,
@@ -1,10 +1,8 @@
1
- import { GroupData } from '../../../models/Group/types';
1
+ import { GroupBasicData, GroupData } from '../../../models/Group/types';
2
+ import { Location } from './utils';
2
3
  export interface GroupAddress {
3
4
  address: string;
4
- location: {
5
- latitude: number;
6
- longitude: number;
7
- } | null;
5
+ location: Location | null;
8
6
  default: boolean;
9
7
  }
10
8
  export interface GroupOnboardingMessage {
@@ -24,6 +22,9 @@ export interface GroupTemplateData {
24
22
  export type GroupSocialNetworks = NonNullable<GroupData['socialNetworks']> | null;
25
23
  export type GroupTemplates = Record<string, GroupTemplateData>;
26
24
  export type GroupVisitedDashboardAt = Record<string, string>;
25
+ export type GroupBasic = Omit<GroupBasicData, 'location'> & {
26
+ location: Location;
27
+ };
27
28
  export interface GroupOverwrite {
28
29
  addresses: GroupAddress[];
29
30
  config: GroupData['config'];
@@ -1,11 +1,9 @@
1
- import { GroupData } from '../../../models/Group/types';
1
+ import { GroupBasicData, GroupData } from '../../../models/Group/types';
2
+ import { Location } from './utils';
2
3
 
3
4
  export interface GroupAddress {
4
5
  address: string;
5
- location: {
6
- latitude: number;
7
- longitude: number;
8
- } | null;
6
+ location: Location | null;
9
7
  default: boolean;
10
8
  }
11
9
 
@@ -31,6 +29,10 @@ export type GroupTemplates = Record<string, GroupTemplateData>;
31
29
 
32
30
  export type GroupVisitedDashboardAt = Record<string, string>;
33
31
 
32
+ export type GroupBasic = Omit<GroupBasicData, 'location'> & {
33
+ location: Location;
34
+ };
35
+
34
36
  export interface GroupOverwrite {
35
37
  addresses: GroupAddress[];
36
38
  config: GroupData['config'];
@@ -1,4 +1,5 @@
1
- import { InstrumentId } from '../../../helpers/instruments';
1
+ import { DefaultInstrumentId } from '../../../helpers/instruments';
2
+ import { GroupBasic } from './group';
2
3
  export interface OfferApplicantBasicData {
3
4
  appliedAt: string;
4
5
  selectedAt: string | null;
@@ -6,6 +7,7 @@ export interface OfferApplicantBasicData {
6
7
  message: string | null;
7
8
  }
8
9
  export interface OfferOverwrite {
9
- instrument: InstrumentId;
10
+ instrument: DefaultInstrumentId;
10
11
  applicants: Record<string, OfferApplicantBasicData>;
12
+ groupInfo: GroupBasic;
11
13
  }
@@ -1,4 +1,5 @@
1
- import { InstrumentId } from '../../../helpers/instruments';
1
+ import { DefaultInstrumentId } from '../../../helpers/instruments';
2
+ import { GroupBasic } from './group';
2
3
 
3
4
  export interface OfferApplicantBasicData {
4
5
  appliedAt: string;
@@ -8,6 +9,7 @@ export interface OfferApplicantBasicData {
8
9
  }
9
10
 
10
11
  export interface OfferOverwrite {
11
- instrument: InstrumentId;
12
+ instrument: DefaultInstrumentId;
12
13
  applicants: Record<string, OfferApplicantBasicData>;
14
+ groupInfo: GroupBasic;
13
15
  }
@@ -0,0 +1,4 @@
1
+ export type Location = {
2
+ latitude: number;
3
+ longitude: number;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export type Location = {
2
+ latitude: number;
3
+ longitude: number;
4
+ };