@glissandoo/lib 1.1.7 → 1.1.8
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,8 +1,9 @@
|
|
|
1
1
|
import * as firestore from '@google-cloud/firestore';
|
|
2
|
-
import
|
|
2
|
+
import { LanguagesTypes } from '../../../lang';
|
|
3
|
+
import PlayerBasic from '../../Player/basic';
|
|
3
4
|
import { CommunicationCommentData } from './types';
|
|
4
|
-
export default class CommunicationCommment extends
|
|
5
|
-
constructor(doc: firestore.DocumentSnapshot);
|
|
5
|
+
export default class CommunicationCommment extends PlayerBasic<CommunicationCommentData> {
|
|
6
|
+
constructor(doc: firestore.DocumentSnapshot, lang: LanguagesTypes);
|
|
6
7
|
get communicationId(): string;
|
|
7
8
|
get text(): string;
|
|
8
9
|
private get createdBy();
|
|
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const get_1 = __importDefault(require("lodash/get"));
|
|
7
|
-
const
|
|
8
|
-
class CommunicationCommment extends
|
|
9
|
-
constructor(doc) {
|
|
10
|
-
super(doc);
|
|
7
|
+
const basic_1 = __importDefault(require("../../Player/basic"));
|
|
8
|
+
class CommunicationCommment extends basic_1.default {
|
|
9
|
+
constructor(doc, lang) {
|
|
10
|
+
super(doc, lang);
|
|
11
11
|
}
|
|
12
12
|
get communicationId() {
|
|
13
13
|
return get_1.default(this.ref, 'parent.parent.id');
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DocumentReference, Timestamp } from '@google-cloud/firestore';
|
|
2
|
-
|
|
2
|
+
import { PlayerBasicData } from '../../Player/types';
|
|
3
|
+
export interface CommunicationCommentData extends PlayerBasicData {
|
|
3
4
|
text: string;
|
|
4
5
|
editedAt: Timestamp | null;
|
|
5
6
|
readonly createdBy: DocumentReference;
|