@glissandoo/lib 1.26.0 → 1.27.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.
@@ -1,6 +1,6 @@
1
1
  import { Descendant } from '../helpers/slate';
2
2
  import { EventPlayerStatus } from '../models/Evento/Player/types';
3
- import { EventRepeatPeriod, EventStage, EventType } from '../models/Evento/types';
3
+ import { EventCreatedOn, EventRepeatPeriod, EventStage, EventType } from '../models/Evento/types';
4
4
  export declare namespace EventoFbFunctionsTypes {
5
5
  export enum RelationAction {
6
6
  Single = "single",
@@ -32,6 +32,7 @@ export declare namespace EventoFbFunctionsTypes {
32
32
  stage: EventStage | null;
33
33
  stageTemplateId: string | null;
34
34
  images: string[];
35
+ createdOn: EventCreatedOn;
35
36
  }
36
37
  export type PublishResult = string[];
37
38
  interface EditParamsBase {
@@ -25,6 +25,7 @@ export default class Evento extends EventoPromoter<EventData> {
25
25
  get shortDynamicLink(): string | null;
26
26
  get deletedAt(): FirebaseFirestore.Timestamp | null;
27
27
  get createdAt(): FirebaseFirestore.Timestamp;
28
+ get createdOn(): import("./types").EventCreatedOn;
28
29
  get rollCalledAt(): FirebaseFirestore.Timestamp | null;
29
30
  get rollCallReminderAt(): FirebaseFirestore.Timestamp | null;
30
31
  get notifyAt(): FirebaseFirestore.Timestamp;
@@ -83,6 +83,9 @@ class Evento extends promoter_1.default {
83
83
  get createdAt() {
84
84
  return this.data.createdAt;
85
85
  }
86
+ get createdOn() {
87
+ return this.data.createdOn;
88
+ }
86
89
  get rollCalledAt() {
87
90
  return this.data.rollCalledAt;
88
91
  }
@@ -5,6 +5,11 @@ import { GroupBasicData } from '../Group/types';
5
5
  import { PlayerBasicData } from '../Player/types';
6
6
  import { ThemeBasicData } from '../Repertory/types';
7
7
  import { EventPlayerReason, EventPlayerStatus } from './Player/types';
8
+ export declare enum EventCreatedOn {
9
+ App = "app",
10
+ Web = "web",
11
+ Auth = "auth"
12
+ }
8
13
  export declare enum EventFiles {
9
14
  StageThumbnail = "stageThumbnail.png",
10
15
  StagePDF = "stage.pdf",
@@ -92,4 +97,5 @@ export interface EventData extends EventPromoterData {
92
97
  timezone: string;
93
98
  readonly owner: DocumentReference;
94
99
  readonly createdAt: Timestamp;
100
+ readonly createdOn: EventCreatedOn;
95
101
  }
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventStatusByTime = exports.EventRepeatPeriod = exports.EventType = exports.EventFiles = void 0;
3
+ exports.EventStatusByTime = exports.EventRepeatPeriod = exports.EventType = exports.EventFiles = exports.EventCreatedOn = void 0;
4
+ var EventCreatedOn;
5
+ (function (EventCreatedOn) {
6
+ EventCreatedOn["App"] = "app";
7
+ EventCreatedOn["Web"] = "web";
8
+ EventCreatedOn["Auth"] = "auth";
9
+ })(EventCreatedOn = exports.EventCreatedOn || (exports.EventCreatedOn = {}));
4
10
  var EventFiles;
5
11
  (function (EventFiles) {
6
12
  EventFiles["StageThumbnail"] = "stageThumbnail.png";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",