@kekkle/shared 2.0.0-next.3 → 2.0.0-next.5
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.
- package/dist/cjs/convertors/node/comment-document.converter.js +4 -4
- package/dist/cjs/convertors/web/comment-document.converter.js +4 -4
- package/dist/cjs/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts +1 -0
- package/dist/cjs/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts.map +1 -1
- package/dist/cjs/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts +1 -0
- package/dist/cjs/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts.map +1 -1
- package/dist/cjs/types/fields/comment/comment.d.ts +1 -1
- package/dist/cjs/types/fields/comment/comment.d.ts.map +1 -1
- package/dist/cjs/types/fields/comment/node/comment-firestore.d.ts +1 -1
- package/dist/cjs/types/fields/comment/node/comment-firestore.d.ts.map +1 -1
- package/dist/cjs/types/fields/comment/web/comment-firestore.d.ts +1 -1
- package/dist/cjs/types/fields/comment/web/comment-firestore.d.ts.map +1 -1
- package/dist/esm/convertors/node/comment-document.converter.js +4 -4
- package/dist/esm/convertors/web/comment-document.converter.js +4 -4
- package/dist/esm/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts +1 -0
- package/dist/esm/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts.map +1 -1
- package/dist/esm/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts +1 -0
- package/dist/esm/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts.map +1 -1
- package/dist/esm/types/fields/comment/comment.d.ts +1 -1
- package/dist/esm/types/fields/comment/comment.d.ts.map +1 -1
- package/dist/esm/types/fields/comment/node/comment-firestore.d.ts +1 -1
- package/dist/esm/types/fields/comment/node/comment-firestore.d.ts.map +1 -1
- package/dist/esm/types/fields/comment/web/comment-firestore.d.ts +1 -1
- package/dist/esm/types/fields/comment/web/comment-firestore.d.ts.map +1 -1
- package/dist/node/convertors/node/comment-document.converter.js +4 -4
- package/dist/node/convertors/web/comment-document.converter.js +4 -4
- package/dist/node/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts +1 -0
- package/dist/node/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts.map +1 -1
- package/dist/node/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts +1 -0
- package/dist/node/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts.map +1 -1
- package/dist/node/types/fields/comment/comment.d.ts +1 -1
- package/dist/node/types/fields/comment/comment.d.ts.map +1 -1
- package/dist/node/types/fields/comment/node/comment-firestore.d.ts +1 -1
- package/dist/node/types/fields/comment/node/comment-firestore.d.ts.map +1 -1
- package/dist/node/types/fields/comment/web/comment-firestore.d.ts +1 -1
- package/dist/node/types/fields/comment/web/comment-firestore.d.ts.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.node.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -21,9 +21,9 @@ const createCommentDocumentConverter = () => ({
|
|
|
21
21
|
if (typeof value === "object" && value !== null && "date" in value) {
|
|
22
22
|
convertedComments[key] = {
|
|
23
23
|
...value,
|
|
24
|
-
|
|
25
|
-
? firestore_1.Timestamp.fromDate(value.
|
|
26
|
-
: value.
|
|
24
|
+
created_at: value.created_at instanceof Date
|
|
25
|
+
? firestore_1.Timestamp.fromDate(value.created_at)
|
|
26
|
+
: value.created_at, // FieldValue, Timestamp, or undefined passes through
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -46,7 +46,7 @@ const createCommentDocumentConverter = () => ({
|
|
|
46
46
|
convertedComments[key] = {
|
|
47
47
|
author: value.author,
|
|
48
48
|
comment: value.comment,
|
|
49
|
-
|
|
49
|
+
created_at: value.created_at.toDate(),
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -21,9 +21,9 @@ const createCommentDocumentConverter = () => ({
|
|
|
21
21
|
if (typeof value === "object" && value !== null && "date" in value) {
|
|
22
22
|
convertedComments[key] = {
|
|
23
23
|
...value,
|
|
24
|
-
|
|
25
|
-
? firestore_1.Timestamp.fromDate(value.
|
|
26
|
-
: value.
|
|
24
|
+
created_at: value.created_at instanceof Date
|
|
25
|
+
? firestore_1.Timestamp.fromDate(value.created_at)
|
|
26
|
+
: value.created_at, // FieldValue, Timestamp, or undefined passes through
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -46,7 +46,7 @@ const createCommentDocumentConverter = () => ({
|
|
|
46
46
|
convertedComments[key] = {
|
|
47
47
|
author: value.author,
|
|
48
48
|
comment: value.comment,
|
|
49
|
-
|
|
49
|
+
created_at: value.created_at.toDate(),
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -4,6 +4,7 @@ import type { StringifiedWordleGameState } from "../../../types/fields/wordle-ga
|
|
|
4
4
|
* Timestamp-dependent fields are added in web/node specific document types
|
|
5
5
|
*/
|
|
6
6
|
export type WordleGameStateDocumentFirestoreBase = {
|
|
7
|
+
new_calculated_score: number;
|
|
7
8
|
calculated_score: number;
|
|
8
9
|
game_state: StringifiedWordleGameState;
|
|
9
10
|
has_finished: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wordle-game-state-document-firestore-base.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"wordle-game-state-document-firestore-base.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -6,6 +6,7 @@ import type { StringifiedWordleGameState } from "../../../types/fields/wordle-ga
|
|
|
6
6
|
export type WordleGameStateDocument = {
|
|
7
7
|
_id: string;
|
|
8
8
|
calculated_score: number;
|
|
9
|
+
new_calculated_score: number;
|
|
9
10
|
game_state: StringifiedWordleGameState;
|
|
10
11
|
has_finished: boolean;
|
|
11
12
|
has_lost: boolean;
|
package/dist/cjs/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wordle-game-state-document.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,IAAI,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"wordle-game-state-document.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,IAAI,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/comment/comment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/comment/comment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC"}
|
|
@@ -5,7 +5,7 @@ import type { CommentFirestoreBase } from "../../../../types/fields/comment/comm
|
|
|
5
5
|
* Uses Timestamp from firebase-admin/firestore
|
|
6
6
|
*/
|
|
7
7
|
export type CommentFirestore = CommentFirestoreBase & {
|
|
8
|
-
|
|
8
|
+
created_at: Timestamp;
|
|
9
9
|
};
|
|
10
10
|
export type PhotoCommentFirestore = CommentFirestore;
|
|
11
11
|
export type QuoteCommentFirestore = CommentFirestore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/node/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,
|
|
1
|
+
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/node/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,UAAU,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import type { CommentFirestoreBase } from "../../../../types/fields/comment/comm
|
|
|
5
5
|
* Uses Timestamp from firebase/firestore
|
|
6
6
|
*/
|
|
7
7
|
export type CommentFirestore = CommentFirestoreBase & {
|
|
8
|
-
|
|
8
|
+
created_at: Timestamp;
|
|
9
9
|
};
|
|
10
10
|
export type PhotoCommentFirestore = CommentFirestore;
|
|
11
11
|
export type QuoteCommentFirestore = CommentFirestore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/web/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,
|
|
1
|
+
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/web/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,UAAU,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
|
|
@@ -18,9 +18,9 @@ const createCommentDocumentConverter = () => ({
|
|
|
18
18
|
if (typeof value === "object" && value !== null && "date" in value) {
|
|
19
19
|
convertedComments[key] = {
|
|
20
20
|
...value,
|
|
21
|
-
|
|
22
|
-
? Timestamp.fromDate(value.
|
|
23
|
-
: value.
|
|
21
|
+
created_at: value.created_at instanceof Date
|
|
22
|
+
? Timestamp.fromDate(value.created_at)
|
|
23
|
+
: value.created_at, // FieldValue, Timestamp, or undefined passes through
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -43,7 +43,7 @@ const createCommentDocumentConverter = () => ({
|
|
|
43
43
|
convertedComments[key] = {
|
|
44
44
|
author: value.author,
|
|
45
45
|
comment: value.comment,
|
|
46
|
-
|
|
46
|
+
created_at: value.created_at.toDate(),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -18,9 +18,9 @@ const createCommentDocumentConverter = () => ({
|
|
|
18
18
|
if (typeof value === "object" && value !== null && "date" in value) {
|
|
19
19
|
convertedComments[key] = {
|
|
20
20
|
...value,
|
|
21
|
-
|
|
22
|
-
? Timestamp.fromDate(value.
|
|
23
|
-
: value.
|
|
21
|
+
created_at: value.created_at instanceof Date
|
|
22
|
+
? Timestamp.fromDate(value.created_at)
|
|
23
|
+
: value.created_at, // FieldValue, Timestamp, or undefined passes through
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -43,7 +43,7 @@ const createCommentDocumentConverter = () => ({
|
|
|
43
43
|
convertedComments[key] = {
|
|
44
44
|
author: value.author,
|
|
45
45
|
comment: value.comment,
|
|
46
|
-
|
|
46
|
+
created_at: value.created_at.toDate(),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -4,6 +4,7 @@ import type { StringifiedWordleGameState } from "../../../types/fields/wordle-ga
|
|
|
4
4
|
* Timestamp-dependent fields are added in web/node specific document types
|
|
5
5
|
*/
|
|
6
6
|
export type WordleGameStateDocumentFirestoreBase = {
|
|
7
|
+
new_calculated_score: number;
|
|
7
8
|
calculated_score: number;
|
|
8
9
|
game_state: StringifiedWordleGameState;
|
|
9
10
|
has_finished: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wordle-game-state-document-firestore-base.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"wordle-game-state-document-firestore-base.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -6,6 +6,7 @@ import type { StringifiedWordleGameState } from "../../../types/fields/wordle-ga
|
|
|
6
6
|
export type WordleGameStateDocument = {
|
|
7
7
|
_id: string;
|
|
8
8
|
calculated_score: number;
|
|
9
|
+
new_calculated_score: number;
|
|
9
10
|
game_state: StringifiedWordleGameState;
|
|
10
11
|
has_finished: boolean;
|
|
11
12
|
has_lost: boolean;
|
package/dist/esm/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wordle-game-state-document.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,IAAI,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"wordle-game-state-document.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,IAAI,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/comment/comment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/comment/comment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC"}
|
|
@@ -5,7 +5,7 @@ import type { CommentFirestoreBase } from "../../../../types/fields/comment/comm
|
|
|
5
5
|
* Uses Timestamp from firebase-admin/firestore
|
|
6
6
|
*/
|
|
7
7
|
export type CommentFirestore = CommentFirestoreBase & {
|
|
8
|
-
|
|
8
|
+
created_at: Timestamp;
|
|
9
9
|
};
|
|
10
10
|
export type PhotoCommentFirestore = CommentFirestore;
|
|
11
11
|
export type QuoteCommentFirestore = CommentFirestore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/node/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,
|
|
1
|
+
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/node/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,UAAU,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import type { CommentFirestoreBase } from "../../../../types/fields/comment/comm
|
|
|
5
5
|
* Uses Timestamp from firebase/firestore
|
|
6
6
|
*/
|
|
7
7
|
export type CommentFirestore = CommentFirestoreBase & {
|
|
8
|
-
|
|
8
|
+
created_at: Timestamp;
|
|
9
9
|
};
|
|
10
10
|
export type PhotoCommentFirestore = CommentFirestore;
|
|
11
11
|
export type QuoteCommentFirestore = CommentFirestore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/web/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,
|
|
1
|
+
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/web/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,UAAU,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
|
|
@@ -18,9 +18,9 @@ const createCommentDocumentConverter = () => ({
|
|
|
18
18
|
if (typeof value === "object" && value !== null && "date" in value) {
|
|
19
19
|
convertedComments[key] = {
|
|
20
20
|
...value,
|
|
21
|
-
|
|
22
|
-
? Timestamp.fromDate(value.
|
|
23
|
-
: value.
|
|
21
|
+
created_at: value.created_at instanceof Date
|
|
22
|
+
? Timestamp.fromDate(value.created_at)
|
|
23
|
+
: value.created_at, // FieldValue, Timestamp, or undefined passes through
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -43,7 +43,7 @@ const createCommentDocumentConverter = () => ({
|
|
|
43
43
|
convertedComments[key] = {
|
|
44
44
|
author: value.author,
|
|
45
45
|
comment: value.comment,
|
|
46
|
-
|
|
46
|
+
created_at: value.created_at.toDate(),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -18,9 +18,9 @@ const createCommentDocumentConverter = () => ({
|
|
|
18
18
|
if (typeof value === "object" && value !== null && "date" in value) {
|
|
19
19
|
convertedComments[key] = {
|
|
20
20
|
...value,
|
|
21
|
-
|
|
22
|
-
? Timestamp.fromDate(value.
|
|
23
|
-
: value.
|
|
21
|
+
created_at: value.created_at instanceof Date
|
|
22
|
+
? Timestamp.fromDate(value.created_at)
|
|
23
|
+
: value.created_at, // FieldValue, Timestamp, or undefined passes through
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -43,7 +43,7 @@ const createCommentDocumentConverter = () => ({
|
|
|
43
43
|
convertedComments[key] = {
|
|
44
44
|
author: value.author,
|
|
45
45
|
comment: value.comment,
|
|
46
|
-
|
|
46
|
+
created_at: value.created_at.toDate(),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -4,6 +4,7 @@ import type { StringifiedWordleGameState } from "../../../types/fields/wordle-ga
|
|
|
4
4
|
* Timestamp-dependent fields are added in web/node specific document types
|
|
5
5
|
*/
|
|
6
6
|
export type WordleGameStateDocumentFirestoreBase = {
|
|
7
|
+
new_calculated_score: number;
|
|
7
8
|
calculated_score: number;
|
|
8
9
|
game_state: StringifiedWordleGameState;
|
|
9
10
|
has_finished: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wordle-game-state-document-firestore-base.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"wordle-game-state-document-firestore-base.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
package/dist/node/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type { StringifiedWordleGameState } from "../../../types/fields/wordle-ga
|
|
|
6
6
|
export type WordleGameStateDocument = {
|
|
7
7
|
_id: string;
|
|
8
8
|
calculated_score: number;
|
|
9
|
+
new_calculated_score: number;
|
|
9
10
|
game_state: StringifiedWordleGameState;
|
|
10
11
|
has_finished: boolean;
|
|
11
12
|
has_lost: boolean;
|
package/dist/node/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wordle-game-state-document.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,IAAI,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"wordle-game-state-document.d.ts","sourceRoot":"","sources":["../../../../../src/types/documents/wordle-game-state-document/wordle-game-state-document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAC;AAExG;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,IAAI,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/comment/comment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../../../src/types/fields/comment/comment.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC"}
|
|
@@ -5,7 +5,7 @@ import type { CommentFirestoreBase } from "../../../../types/fields/comment/comm
|
|
|
5
5
|
* Uses Timestamp from firebase-admin/firestore
|
|
6
6
|
*/
|
|
7
7
|
export type CommentFirestore = CommentFirestoreBase & {
|
|
8
|
-
|
|
8
|
+
created_at: Timestamp;
|
|
9
9
|
};
|
|
10
10
|
export type PhotoCommentFirestore = CommentFirestore;
|
|
11
11
|
export type QuoteCommentFirestore = CommentFirestore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/node/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,
|
|
1
|
+
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/node/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,UAAU,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import type { CommentFirestoreBase } from "../../../../types/fields/comment/comm
|
|
|
5
5
|
* Uses Timestamp from firebase/firestore
|
|
6
6
|
*/
|
|
7
7
|
export type CommentFirestore = CommentFirestoreBase & {
|
|
8
|
-
|
|
8
|
+
created_at: Timestamp;
|
|
9
9
|
};
|
|
10
10
|
export type PhotoCommentFirestore = CommentFirestore;
|
|
11
11
|
export type QuoteCommentFirestore = CommentFirestore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/web/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,
|
|
1
|
+
{"version":3,"file":"comment-firestore.d.ts","sourceRoot":"","sources":["../../../../../../src/types/fields/comment/web/comment-firestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAE7F;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,UAAU,EAAE,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
|