@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.
Files changed (40) hide show
  1. package/dist/cjs/convertors/node/comment-document.converter.js +4 -4
  2. package/dist/cjs/convertors/web/comment-document.converter.js +4 -4
  3. package/dist/cjs/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts +1 -0
  4. package/dist/cjs/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts.map +1 -1
  5. package/dist/cjs/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts +1 -0
  6. package/dist/cjs/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts.map +1 -1
  7. package/dist/cjs/types/fields/comment/comment.d.ts +1 -1
  8. package/dist/cjs/types/fields/comment/comment.d.ts.map +1 -1
  9. package/dist/cjs/types/fields/comment/node/comment-firestore.d.ts +1 -1
  10. package/dist/cjs/types/fields/comment/node/comment-firestore.d.ts.map +1 -1
  11. package/dist/cjs/types/fields/comment/web/comment-firestore.d.ts +1 -1
  12. package/dist/cjs/types/fields/comment/web/comment-firestore.d.ts.map +1 -1
  13. package/dist/esm/convertors/node/comment-document.converter.js +4 -4
  14. package/dist/esm/convertors/web/comment-document.converter.js +4 -4
  15. package/dist/esm/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts +1 -0
  16. package/dist/esm/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts.map +1 -1
  17. package/dist/esm/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts +1 -0
  18. package/dist/esm/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts.map +1 -1
  19. package/dist/esm/types/fields/comment/comment.d.ts +1 -1
  20. package/dist/esm/types/fields/comment/comment.d.ts.map +1 -1
  21. package/dist/esm/types/fields/comment/node/comment-firestore.d.ts +1 -1
  22. package/dist/esm/types/fields/comment/node/comment-firestore.d.ts.map +1 -1
  23. package/dist/esm/types/fields/comment/web/comment-firestore.d.ts +1 -1
  24. package/dist/esm/types/fields/comment/web/comment-firestore.d.ts.map +1 -1
  25. package/dist/node/convertors/node/comment-document.converter.js +4 -4
  26. package/dist/node/convertors/web/comment-document.converter.js +4 -4
  27. package/dist/node/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts +1 -0
  28. package/dist/node/types/documents/wordle-game-state-document/wordle-game-state-document-firestore-base.d.ts.map +1 -1
  29. package/dist/node/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts +1 -0
  30. package/dist/node/types/documents/wordle-game-state-document/wordle-game-state-document.d.ts.map +1 -1
  31. package/dist/node/types/fields/comment/comment.d.ts +1 -1
  32. package/dist/node/types/fields/comment/comment.d.ts.map +1 -1
  33. package/dist/node/types/fields/comment/node/comment-firestore.d.ts +1 -1
  34. package/dist/node/types/fields/comment/node/comment-firestore.d.ts.map +1 -1
  35. package/dist/node/types/fields/comment/web/comment-firestore.d.ts +1 -1
  36. package/dist/node/types/fields/comment/web/comment-firestore.d.ts.map +1 -1
  37. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  38. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  39. package/dist/tsconfig.node.tsbuildinfo +1 -1
  40. 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
- date: value.date instanceof Date
25
- ? firestore_1.Timestamp.fromDate(value.date)
26
- : value.date, // FieldValue, Timestamp, or undefined passes through
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
- date: value.date.toDate(),
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
- date: value.date instanceof Date
25
- ? firestore_1.Timestamp.fromDate(value.date)
26
- : value.date, // FieldValue, Timestamp, or undefined passes through
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
- date: value.date.toDate(),
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;
@@ -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"}
@@ -6,7 +6,7 @@
6
6
  export type Comment = {
7
7
  author: string;
8
8
  comment: string;
9
- date: Date;
9
+ created_at: Date;
10
10
  };
11
11
  export type PhotoComment = Comment;
12
12
  export type QuoteComment = Comment;
@@ -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,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC"}
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
- date: Timestamp;
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,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
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
- date: Timestamp;
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,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
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
- date: value.date instanceof Date
22
- ? Timestamp.fromDate(value.date)
23
- : value.date, // FieldValue, Timestamp, or undefined passes through
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
- date: value.date.toDate(),
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
- date: value.date instanceof Date
22
- ? Timestamp.fromDate(value.date)
23
- : value.date, // FieldValue, Timestamp, or undefined passes through
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
- date: value.date.toDate(),
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;
@@ -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"}
@@ -6,7 +6,7 @@
6
6
  export type Comment = {
7
7
  author: string;
8
8
  comment: string;
9
- date: Date;
9
+ created_at: Date;
10
10
  };
11
11
  export type PhotoComment = Comment;
12
12
  export type QuoteComment = Comment;
@@ -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,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC"}
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
- date: Timestamp;
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,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
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
- date: Timestamp;
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,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
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
- date: value.date instanceof Date
22
- ? Timestamp.fromDate(value.date)
23
- : value.date, // FieldValue, Timestamp, or undefined passes through
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
- date: value.date.toDate(),
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
- date: value.date instanceof Date
22
- ? Timestamp.fromDate(value.date)
23
- : value.date, // FieldValue, Timestamp, or undefined passes through
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
- date: value.date.toDate(),
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;
@@ -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"}
@@ -6,7 +6,7 @@
6
6
  export type Comment = {
7
7
  author: string;
8
8
  comment: string;
9
- date: Date;
9
+ created_at: Date;
10
10
  };
11
11
  export type PhotoComment = Comment;
12
12
  export type QuoteComment = Comment;
@@ -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,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC;AAEnC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC"}
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
- date: Timestamp;
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,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
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
- date: Timestamp;
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,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC"}
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"}