@glissandoo/lib 1.62.7 → 1.63.1

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.
@@ -95,6 +95,7 @@ export declare enum FbFunctionName {
95
95
  MiscAddSubscriber = "misc-addSubscriber",
96
96
  MiscScheduledFirestoreExport = "misc-scheduledFirestoreExport",
97
97
  MiscValidateUsername = "misc-validateUsername",
98
+ MiscHandleActiveCampaignAutomationContacts = "misc-handleActiveCampaignAutomationContacts",
98
99
  NotificationMarkAllAsReaded = "notification-markAllAsReaded",
99
100
  PartnershipAddConfirmedAdmin = "partnership-addConfirmedAdmin",
100
101
  PartnershipCreate = "partnership-create",
@@ -99,6 +99,7 @@ var FbFunctionName;
99
99
  FbFunctionName["MiscAddSubscriber"] = "misc-addSubscriber";
100
100
  FbFunctionName["MiscScheduledFirestoreExport"] = "misc-scheduledFirestoreExport";
101
101
  FbFunctionName["MiscValidateUsername"] = "misc-validateUsername";
102
+ FbFunctionName["MiscHandleActiveCampaignAutomationContacts"] = "misc-handleActiveCampaignAutomationContacts";
102
103
  FbFunctionName["NotificationMarkAllAsReaded"] = "notification-markAllAsReaded";
103
104
  FbFunctionName["PartnershipAddConfirmedAdmin"] = "partnership-addConfirmedAdmin";
104
105
  FbFunctionName["PartnershipCreate"] = "partnership-create";
@@ -116,6 +116,7 @@ const regionByFunctions = {
116
116
  [index_1.FbFunctionName.PartnershipGroupAdd]: GCloudRegions.EuropeWest6,
117
117
  [index_1.FbFunctionName.PartnershipGroupRemove]: GCloudRegions.EuropeWest6,
118
118
  [index_1.FbFunctionName.MiscAddSubscriber]: GCloudRegions.EuropeWest6,
119
+ [index_1.FbFunctionName.MiscHandleActiveCampaignAutomationContacts]: GCloudRegions.EuropeWest6,
119
120
  [index_1.FbFunctionName.Auth]: GCloudRegions.UsCentral1,
120
121
  [index_1.FbFunctionName.GroupCronSatistactionIndexWeekly]: GCloudRegions.EuropeWest6,
121
122
  [index_1.FbFunctionName.MetricsDaily]: GCloudRegions.EuropeWest6,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.62.7",
3
+ "version": "1.63.1",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "link": "cp package.json ./lib && cd ./lib && npm link",
22
22
  "translation:upload": "localazy upload",
23
23
  "translation:download": "localazy download",
24
- "supabase:types": "supabase gen types typescript --local > src/types/supabase.gen.ts"
24
+ "supabase:types": "supabase gen types typescript --local > src/types/supabase/generated.ts"
25
25
  },
26
26
  "author": "Glissandoo",
27
27
  "license": "ISC",
@@ -42,9 +42,9 @@
42
42
  "husky": "^8.0.1",
43
43
  "lint-staged": "^12.4.1",
44
44
  "prettier": "^2.2.1",
45
- "type-fest": "^3.12.0",
46
- "typescript": "^4.9.4",
47
- "supabase": "^1.110.3"
45
+ "supabase": "^1.110.3",
46
+ "type-fest": "^3.13.1",
47
+ "typescript": "^4.9.4"
48
48
  },
49
49
  "lint-staged": {
50
50
  "*.ts": [
@@ -0,0 +1,20 @@
1
+ import { MergeDeep, SetOptional } from 'type-fest';
2
+ import { Database as DatabaseGenerated } from './generated';
3
+ import { EventOverwrite } from './overwrites/event';
4
+ import { GroupOverwrite } from './overwrites/group';
5
+ export type Database = MergeDeep<DatabaseGenerated, {
6
+ public: {
7
+ Tables: {
8
+ group: {
9
+ Row: GroupOverwrite;
10
+ Insert: SetOptional<GroupOverwrite, 'configSites' | 'socialNetworks'>;
11
+ Update: Partial<GroupOverwrite>;
12
+ };
13
+ event: {
14
+ Row: EventOverwrite;
15
+ Insert: SetOptional<EventOverwrite, 'repeat' | 'stage'>;
16
+ Update: Partial<EventOverwrite>;
17
+ };
18
+ };
19
+ };
20
+ }>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import { MergeDeep, SetOptional } from 'type-fest';
2
+ import { Database as DatabaseGenerated } from './generated';
3
+ import { EventOverwrite } from './overwrites/event';
4
+ import { GroupOverwrite } from './overwrites/group';
5
+
6
+ export type Database = MergeDeep<
7
+ DatabaseGenerated,
8
+ {
9
+ public: {
10
+ Tables: {
11
+ group: {
12
+ Row: GroupOverwrite;
13
+ Insert: SetOptional<GroupOverwrite, 'configSites' | 'socialNetworks'>;
14
+ Update: Partial<GroupOverwrite>;
15
+ };
16
+ event: {
17
+ Row: EventOverwrite;
18
+ Insert: SetOptional<EventOverwrite, 'repeat' | 'stage'>;
19
+ Update: Partial<EventOverwrite>;
20
+ };
21
+ };
22
+ };
23
+ }
24
+ >;
@@ -0,0 +1,23 @@
1
+ import { EventData } from '../../../models/Evento/types';
2
+ export interface EventRepeatType {
3
+ period: NonNullable<EventData['repeat']>['period'];
4
+ untilAt: string;
5
+ }
6
+ export type EventRepeat = EventRepeatType | null;
7
+ export interface EventResponseDeadline {
8
+ option: EventData['responseDeadline']['option'];
9
+ customAt: string | null;
10
+ }
11
+ export interface EventRollcallHistory {
12
+ changedAt: string;
13
+ changedBy: string;
14
+ }
15
+ export interface EventOverwrite {
16
+ descriptionSlate: EventData['descriptionSlate'];
17
+ players: EventData['players'];
18
+ repeat: EventRepeat;
19
+ repertory: EventData['repertory'];
20
+ responseDeadline: EventResponseDeadline;
21
+ rollCallHistory: EventRollcallHistory[];
22
+ stage: EventData['stage'];
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ import { EventData } from '../../../models/Evento/types';
2
+
3
+ export interface EventRepeatType {
4
+ period: NonNullable<EventData['repeat']>['period'];
5
+ untilAt: string;
6
+ }
7
+
8
+ export type EventRepeat = EventRepeatType | null;
9
+
10
+ export interface EventResponseDeadline {
11
+ option: EventData['responseDeadline']['option'];
12
+ customAt: string | null;
13
+ }
14
+
15
+ export interface EventRollcallHistory {
16
+ changedAt: string;
17
+ changedBy: string;
18
+ }
19
+
20
+ export interface EventOverwrite {
21
+ descriptionSlate: EventData['descriptionSlate'];
22
+ players: EventData['players'];
23
+ repeat: EventRepeat;
24
+ repertory: EventData['repertory'];
25
+ responseDeadline: EventResponseDeadline;
26
+ rollCallHistory: EventRollcallHistory[];
27
+ stage: EventData['stage'];
28
+ }
@@ -0,0 +1,40 @@
1
+ import { GroupData } from '../../../models/Group/types';
2
+ export interface GroupAddress {
3
+ address: string;
4
+ location: {
5
+ latitude: number;
6
+ longitude: number;
7
+ } | null;
8
+ default: boolean;
9
+ }
10
+ export interface GroupOnboardingMessage {
11
+ type: string;
12
+ createdAt: string;
13
+ via: string;
14
+ to: string[];
15
+ }
16
+ export interface GroupTemplateData {
17
+ title: string;
18
+ playerIds: string[];
19
+ updatedAt?: string;
20
+ updatedBy?: string;
21
+ createdAt: string;
22
+ owner: string;
23
+ }
24
+ export type GroupSocialNetworks = NonNullable<GroupData['socialNetworks']> | null;
25
+ export type GroupTemplates = Record<string, GroupTemplateData>;
26
+ export type GroupVisitedDashboardAt = Record<string, string>;
27
+ export interface GroupOverwrite {
28
+ addresses: GroupAddress[];
29
+ config: GroupData['config'];
30
+ configSites: GroupData['configSites'];
31
+ instruments: GroupData['instruments'];
32
+ metadata: GroupData['metadata'];
33
+ onboardingMessages: GroupOnboardingMessage[];
34
+ players: GroupData['players'];
35
+ repertoireTags: GroupData['repertoireTags'];
36
+ satisfactionIndex: GroupData['satisfactionIndex'];
37
+ socialNetworks: GroupSocialNetworks;
38
+ templates: GroupTemplates;
39
+ visitedDashboardAt: GroupVisitedDashboardAt;
40
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,47 @@
1
+ import { GroupData } from '../../../models/Group/types';
2
+
3
+ export interface GroupAddress {
4
+ address: string;
5
+ location: {
6
+ latitude: number;
7
+ longitude: number;
8
+ } | null;
9
+ default: boolean;
10
+ }
11
+
12
+ export interface GroupOnboardingMessage {
13
+ type: string;
14
+ createdAt: string;
15
+ via: string;
16
+ to: string[];
17
+ }
18
+
19
+ export interface GroupTemplateData {
20
+ title: string;
21
+ playerIds: string[];
22
+ updatedAt?: string;
23
+ updatedBy?: string;
24
+ createdAt: string;
25
+ owner: string;
26
+ }
27
+
28
+ export type GroupSocialNetworks = NonNullable<GroupData['socialNetworks']> | null;
29
+
30
+ export type GroupTemplates = Record<string, GroupTemplateData>;
31
+
32
+ export type GroupVisitedDashboardAt = Record<string, string>;
33
+
34
+ export interface GroupOverwrite {
35
+ addresses: GroupAddress[];
36
+ config: GroupData['config'];
37
+ configSites: GroupData['configSites'];
38
+ instruments: GroupData['instruments'];
39
+ metadata: GroupData['metadata'];
40
+ onboardingMessages: GroupOnboardingMessage[];
41
+ players: GroupData['players'];
42
+ repertoireTags: GroupData['repertoireTags'];
43
+ satisfactionIndex: GroupData['satisfactionIndex'];
44
+ socialNetworks: GroupSocialNetworks;
45
+ templates: GroupTemplates;
46
+ visitedDashboardAt: GroupVisitedDashboardAt;
47
+ }