@data-weave/backend-firestore 0.4.3 → 0.4.6
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/lib/FirestoreDataManager.d.ts +4 -4
- package/lib/FirestoreDataManager.js +1 -1
- package/lib/FirestoreList.d.ts +1 -1
- package/lib/FirestoreList.js +2 -2
- package/lib/FirestoreMetadata.d.ts +1 -1
- package/lib/FirestoreReference.d.ts +1 -1
- package/lib/FirestoreReference.js +2 -2
- package/lib/firestoreTypes.d.ts +2 -2
- package/lib/utils.d.ts +1 -1
- package/lib/version.d.ts +2 -0
- package/lib/version.js +2 -1
- package/package.json +6 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Cache } from '@data-weave/datamanager/
|
|
2
|
-
import { DataManager, WithMetadata } from '@data-weave/datamanager/
|
|
3
|
-
import { List, ListPaginationParams } from '@data-weave/datamanager/
|
|
4
|
-
import { IdentifiableReference, WithoutId } from '@data-weave/datamanager/
|
|
1
|
+
import { Cache } from '@data-weave/datamanager/src/Cache';
|
|
2
|
+
import { DataManager, WithMetadata } from '@data-weave/datamanager/src/DataManager';
|
|
3
|
+
import { List, ListPaginationParams } from '@data-weave/datamanager/src/List';
|
|
4
|
+
import { IdentifiableReference, WithoutId } from '@data-weave/datamanager/src/Reference';
|
|
5
5
|
import { FirestoreList, FirestoreListContext } from './FirestoreList';
|
|
6
6
|
import { FirestoreSerializedMetadata } from './FirestoreMetadata';
|
|
7
7
|
import { FirestoreReference, FirestoreReferenceContext } from './FirestoreReference';
|
|
@@ -49,7 +49,7 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
50
|
exports.FirestoreDataManager = void 0;
|
|
51
51
|
const inversify_1 = require("inversify");
|
|
52
|
-
const Cache_1 = require("@data-weave/datamanager/
|
|
52
|
+
const Cache_1 = require("@data-weave/datamanager/src/Cache");
|
|
53
53
|
const FirestoreList_1 = require("./FirestoreList");
|
|
54
54
|
const FirestoreMetadata_1 = require("./FirestoreMetadata");
|
|
55
55
|
const FirestoreReference_1 = require("./FirestoreReference");
|
package/lib/FirestoreList.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListPaginationParams, LiveList, LiveListOptions } from '@data-weave/datamanager';
|
|
1
|
+
import { ListPaginationParams, LiveList, LiveListOptions } from '@data-weave/datamanager/src';
|
|
2
2
|
import { DocumentData, Firestore, FirestoreReadMode, FirestoreTypes } from './firestoreTypes';
|
|
3
3
|
export interface FirestoreListContext {
|
|
4
4
|
query: FirestoreTypes.Query<unknown>;
|
package/lib/FirestoreList.js
CHANGED
|
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.FirestoreList = void 0;
|
|
13
|
-
const
|
|
14
|
-
class FirestoreList extends
|
|
13
|
+
const src_1 = require("@data-weave/datamanager/src");
|
|
14
|
+
class FirestoreList extends src_1.LiveList {
|
|
15
15
|
constructor(firestore, query, options) {
|
|
16
16
|
super(options);
|
|
17
17
|
this.firestore = firestore;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Metadata, WithoutId } from '@data-weave/datamanager';
|
|
1
|
+
import { Metadata, WithoutId } from '@data-weave/datamanager/src';
|
|
2
2
|
import { DocumentData, FirestoreQuery, FirestoreTypes, FirestoreWhere, InternalFirestoreDataConverter, WithFieldValue } from './firestoreTypes';
|
|
3
3
|
declare enum FIRESTORE_INTERAL_KEYS {
|
|
4
4
|
DELETED = "__deleted",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LiveReference, LiveReferenceOptions } from '@data-weave/datamanager';
|
|
1
|
+
import { LiveReference, LiveReferenceOptions } from '@data-weave/datamanager/src';
|
|
2
2
|
import { DocumentData, Firestore, FirestoreReadMode, FirestoreTypes } from './firestoreTypes';
|
|
3
3
|
export interface FirestoreReferenceContext {
|
|
4
4
|
path: string;
|
|
@@ -10,9 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.FirestoreReference = void 0;
|
|
13
|
-
const
|
|
13
|
+
const src_1 = require("@data-weave/datamanager/src");
|
|
14
14
|
const utils_1 = require("./utils");
|
|
15
|
-
class FirestoreReference extends
|
|
15
|
+
class FirestoreReference extends src_1.LiveReference {
|
|
16
16
|
constructor(firestore, docRef, options) {
|
|
17
17
|
super(options);
|
|
18
18
|
this.firestore = firestore;
|
package/lib/firestoreTypes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WithoutId } from '@data-weave/datamanager';
|
|
2
|
-
import type FirestoreTypes from '@firebase/firestore';
|
|
1
|
+
import { WithoutId } from '@data-weave/datamanager/src';
|
|
2
|
+
import type * as FirestoreTypes from '@firebase/firestore';
|
|
3
3
|
import type { FieldPath, WithFieldValue as FirestoreWithFieldValue, QueryConstraint } from '@firebase/firestore';
|
|
4
4
|
import type { HttpsCallable, HttpsCallableOptions } from '@firebase/functions-types';
|
|
5
5
|
import { FieldValue, Transaction } from '@google-cloud/firestore';
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WithoutId } from '@data-weave/datamanager';
|
|
1
|
+
import { WithoutId } from '@data-weave/datamanager/src';
|
|
2
2
|
import { DocumentData, Firestore, FirestoreTypes, InternalFirestoreDataConverter, Transaction, WithFieldValue } from './firestoreTypes';
|
|
3
3
|
import { Firestore as FirebaseFirestore } from 'firebase/firestore';
|
|
4
4
|
export declare class MergeConverters<T extends DocumentData, SerializedT extends DocumentData, G extends DocumentData, SerializedG extends DocumentData> implements InternalFirestoreDataConverter<T & G, SerializedT & SerializedG> {
|
package/lib/version.d.ts
ADDED
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@data-weave/backend-firestore",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"author": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
"lib/**/*.d.ts"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"
|
|
13
|
-
"build
|
|
12
|
+
"clean": "rm -rf lib",
|
|
13
|
+
"build": "genversion --force --semi src/version.js && tsc",
|
|
14
|
+
"build:clean": "npm run clean && npm run build",
|
|
14
15
|
"prepare": "npm run build"
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
@@ -22,8 +23,8 @@
|
|
|
22
23
|
"registry": "https://registry.npmjs.org/"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {
|
|
25
|
-
"@data-weave/datamanager": "0.4.
|
|
26
|
+
"@data-weave/datamanager": "0.4.5",
|
|
26
27
|
"firebase": ">=11.0.0"
|
|
27
28
|
},
|
|
28
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "2c6e04cf115b898b39b24782c3c2f15a92cc1604"
|
|
29
30
|
}
|