@naturalcycles/datastore-lib 3.23.2 → 3.23.3
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 type { DatastoreOptions, Key, Transaction } from '@google-cloud/datastore';
|
|
2
2
|
import { CommonDBOptions, CommonDBSaveOptions } from '@naturalcycles/db-lib';
|
|
3
|
-
import {
|
|
3
|
+
import { CommonLogger, ObjectWithId } from '@naturalcycles/js-lib';
|
|
4
4
|
export interface DatastorePayload<T = any> {
|
|
5
5
|
key: Key;
|
|
6
6
|
data: T;
|
|
@@ -99,7 +99,7 @@ export interface DatastoreDBStreamOptions extends DatastoreDBOptions {
|
|
|
99
99
|
export interface DatastoreDBOptions extends CommonDBOptions {
|
|
100
100
|
tx?: Transaction;
|
|
101
101
|
}
|
|
102
|
-
export interface DatastoreDBSaveOptions<ROW extends Partial<ObjectWithId> =
|
|
102
|
+
export interface DatastoreDBSaveOptions<ROW extends Partial<ObjectWithId> = any> extends CommonDBSaveOptions<ROW> {
|
|
103
103
|
tx?: Transaction;
|
|
104
104
|
}
|
|
105
105
|
export interface DatastoreStats {
|
package/package.json
CHANGED
package/src/datastore.model.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DatastoreOptions, Key, Transaction } from '@google-cloud/datastore'
|
|
2
2
|
import { CommonDBOptions, CommonDBSaveOptions } from '@naturalcycles/db-lib'
|
|
3
|
-
import {
|
|
3
|
+
import { CommonLogger, ObjectWithId } from '@naturalcycles/js-lib'
|
|
4
4
|
|
|
5
5
|
export interface DatastorePayload<T = any> {
|
|
6
6
|
key: Key
|
|
@@ -114,7 +114,7 @@ export interface DatastoreDBStreamOptions extends DatastoreDBOptions {
|
|
|
114
114
|
export interface DatastoreDBOptions extends CommonDBOptions {
|
|
115
115
|
tx?: Transaction
|
|
116
116
|
}
|
|
117
|
-
export interface DatastoreDBSaveOptions<ROW extends Partial<ObjectWithId> =
|
|
117
|
+
export interface DatastoreDBSaveOptions<ROW extends Partial<ObjectWithId> = any>
|
|
118
118
|
extends CommonDBSaveOptions<ROW> {
|
|
119
119
|
tx?: Transaction
|
|
120
120
|
}
|