@stoker-platform/types 0.5.37 → 0.5.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/types",
3
- "version": "0.5.37",
3
+ "version": "0.5.39",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
@@ -1,4 +1,4 @@
1
- import { FieldValue } from "firebase-admin/firestore"
1
+ import { Timestamp as AdminTimestamp, FieldValue } from "firebase-admin/firestore"
2
2
  import { Timestamp, WhereFilterOp, WriteBatch } from "firebase/firestore"
3
3
  import { NodeUtilities, WebUtilities } from "./app"
4
4
  import { CalendarOptions } from "@fullcalendar/core"
@@ -7,7 +7,8 @@ import { SearchResult } from "minisearch"
7
7
  export type StokerRole = string
8
8
  export type StokerCollection = string
9
9
 
10
- export type FirebaseTimestamp = Timestamp | FieldValue
10
+ export type FirestoreTimestamp = Timestamp | AdminTimestamp
11
+ export type InputTimestamp = Timestamp | FieldValue
11
12
 
12
13
  /* eslint-disable @typescript-eslint/no-explicit-any */
13
14
 
@@ -21,7 +22,7 @@ export interface StokerRelationObject {
21
22
  }
22
23
  export type StokerRelationArray = string[]
23
24
 
24
- export interface StokerRecord {
25
+ export interface SystemFields {
25
26
  Collection_Path: string[]
26
27
  Last_Write_At: Timestamp | FieldValue
27
28
  Last_Save_At: Timestamp | FieldValue
@@ -32,6 +33,9 @@ export interface StokerRecord {
32
33
  Created_At: Timestamp | FieldValue
33
34
  Saved_At: Timestamp | FieldValue
34
35
  Created_By: string
36
+ }
37
+
38
+ export interface StokerRecord extends SystemFields {
35
39
  [key: string]: any
36
40
  }
37
41
  /* eslint-enable @typescript-eslint/no-explicit-any */