@lpdjs/firestore-repo-service 3.0.11 → 3.0.12
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/{create-servers-KRf2J2fi.d.ts → create-servers-BaCe3x4U.d.ts} +4 -4
- package/dist/{create-servers-DQBvtkBM.d.cts → create-servers-C_UOfc_Z.d.cts} +4 -4
- package/dist/index.cjs +31 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +31 -31
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/{openapi-CzrvqcOE.d.ts → openapi-BJdsB8kh.d.ts} +1 -1
- package/dist/{openapi-DK7pS1zN.d.cts → openapi-D4xT2ilq.d.cts} +1 -1
- package/dist/{queue-HoGBozpD.d.ts → queue-CVnFz30E.d.ts} +1 -1
- package/dist/{queue-CdmBSUNN.d.cts → queue-z04IR_Jq.d.cts} +1 -1
- package/dist/{rules-Bu2WJoLI.d.cts → rules-CEYrlE4J.d.cts} +1 -1
- package/dist/{rules-gKR5VFhO.d.ts → rules-Dw-Pz8p3.d.ts} +1 -1
- package/dist/servers/admin/index.d.cts +1 -1
- package/dist/servers/admin/index.d.ts +1 -1
- package/dist/servers/crud/index.cjs +2 -2
- package/dist/servers/crud/index.cjs.map +1 -1
- package/dist/servers/crud/index.d.cts +6 -6
- package/dist/servers/crud/index.d.ts +6 -6
- package/dist/servers/crud/index.js +2 -2
- package/dist/servers/crud/index.js.map +1 -1
- package/dist/servers/hono/index.cjs +12 -12
- package/dist/servers/hono/index.cjs.map +1 -1
- package/dist/servers/hono/index.js +12 -12
- package/dist/servers/hono/index.js.map +1 -1
- package/dist/servers/index.cjs +59 -59
- package/dist/servers/index.cjs.map +1 -1
- package/dist/servers/index.d.cts +8 -8
- package/dist/servers/index.d.ts +8 -8
- package/dist/servers/index.js +59 -59
- package/dist/servers/index.js.map +1 -1
- package/dist/sync/bigquery.d.cts +1 -1
- package/dist/sync/bigquery.d.ts +1 -1
- package/dist/sync/index.d.cts +5 -5
- package/dist/sync/index.d.ts +5 -5
- package/dist/sync/meilisearch.d.cts +1 -1
- package/dist/sync/meilisearch.d.ts +1 -1
- package/dist/{types-DZoEAKT7.d.cts → types-BFbzLuFf.d.cts} +10 -2
- package/dist/{types-DiGFAWPA.d.ts → types-Ds9DUc21.d.ts} +10 -2
- package/dist/{types-8Yoacm2k.d.cts → types-DsTJZOfr.d.cts} +1 -1
- package/dist/{types-DRKB8gTA.d.ts → types-YP53OtiU.d.ts} +1 -1
- package/dist/{types-KEVZXCF4.d.cts → types-_lql12Ez.d.cts} +1 -1
- package/dist/{types-DzJ9WrcY.d.ts → types-fY1XOBeT.d.ts} +1 -1
- package/package.json +3 -2
package/dist/sync/bigquery.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import '../firebase-auth-nG3prKoj.cjs';
|
|
|
5
5
|
import 'firebase-functions/v2/firestore';
|
|
6
6
|
import 'firebase-functions/v2/https';
|
|
7
7
|
import 'firebase-functions/v2/pubsub';
|
|
8
|
-
import '../types-
|
|
8
|
+
import '../types-BFbzLuFf.cjs';
|
|
9
9
|
import '../types--RamYGF1.cjs';
|
|
10
10
|
import 'firebase-admin/firestore';
|
|
11
11
|
|
package/dist/sync/bigquery.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import '../firebase-auth-nG3prKoj.js';
|
|
|
5
5
|
import 'firebase-functions/v2/firestore';
|
|
6
6
|
import 'firebase-functions/v2/https';
|
|
7
7
|
import 'firebase-functions/v2/pubsub';
|
|
8
|
-
import '../types-
|
|
8
|
+
import '../types-Ds9DUc21.js';
|
|
9
9
|
import '../types--RamYGF1.js';
|
|
10
10
|
import 'firebase-admin/firestore';
|
|
11
11
|
|
package/dist/sync/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-
|
|
2
|
-
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, j as ExtractRepoModel, k as FirestoreTriggersDep, O as OrFactory, l as PubSubHandlerDep, m as SyncDeps, d as SyncHealthResult, n as SyncOperation, o as SyncTriggerOptions, p as SyncWorkerOptions, T as TriggerOptions, q as adminsyncBasicAuth, r as adminsyncFeaturesFlag } from '../types-
|
|
3
|
-
import { S as SyncQueue } from '../queue-
|
|
4
|
-
export { a as SyncQueueOptions } from '../queue-
|
|
1
|
+
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-_lql12Ez.cjs';
|
|
2
|
+
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, j as ExtractRepoModel, k as FirestoreTriggersDep, O as OrFactory, l as PubSubHandlerDep, m as SyncDeps, d as SyncHealthResult, n as SyncOperation, o as SyncTriggerOptions, p as SyncWorkerOptions, T as TriggerOptions, q as adminsyncBasicAuth, r as adminsyncFeaturesFlag } from '../types-_lql12Ez.cjs';
|
|
3
|
+
import { S as SyncQueue } from '../queue-z04IR_Jq.cjs';
|
|
4
|
+
export { a as SyncQueueOptions } from '../queue-z04IR_Jq.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as firebase_functions_core from 'firebase-functions/core';
|
|
7
7
|
import * as firebase_functions_pubsub from 'firebase-functions/pubsub';
|
|
@@ -11,7 +11,7 @@ import '../firebase-auth-nG3prKoj.cjs';
|
|
|
11
11
|
import 'firebase-functions/v2/firestore';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
13
|
import 'firebase-functions/v2/pubsub';
|
|
14
|
-
import '../types-
|
|
14
|
+
import '../types-BFbzLuFf.cjs';
|
|
15
15
|
import '../types--RamYGF1.cjs';
|
|
16
16
|
import 'firebase-admin/firestore';
|
|
17
17
|
import '@google-cloud/bigquery';
|
package/dist/sync/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-
|
|
2
|
-
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, j as ExtractRepoModel, k as FirestoreTriggersDep, O as OrFactory, l as PubSubHandlerDep, m as SyncDeps, d as SyncHealthResult, n as SyncOperation, o as SyncTriggerOptions, p as SyncWorkerOptions, T as TriggerOptions, q as adminsyncBasicAuth, r as adminsyncFeaturesFlag } from '../types-
|
|
3
|
-
import { S as SyncQueue } from '../queue-
|
|
4
|
-
export { a as SyncQueueOptions } from '../queue-
|
|
1
|
+
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-fY1XOBeT.js';
|
|
2
|
+
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, j as ExtractRepoModel, k as FirestoreTriggersDep, O as OrFactory, l as PubSubHandlerDep, m as SyncDeps, d as SyncHealthResult, n as SyncOperation, o as SyncTriggerOptions, p as SyncWorkerOptions, T as TriggerOptions, q as adminsyncBasicAuth, r as adminsyncFeaturesFlag } from '../types-fY1XOBeT.js';
|
|
3
|
+
import { S as SyncQueue } from '../queue-CVnFz30E.js';
|
|
4
|
+
export { a as SyncQueueOptions } from '../queue-CVnFz30E.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as firebase_functions_core from 'firebase-functions/core';
|
|
7
7
|
import * as firebase_functions_pubsub from 'firebase-functions/pubsub';
|
|
@@ -11,7 +11,7 @@ import '../firebase-auth-nG3prKoj.js';
|
|
|
11
11
|
import 'firebase-functions/v2/firestore';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
13
|
import 'firebase-functions/v2/pubsub';
|
|
14
|
-
import '../types-
|
|
14
|
+
import '../types-Ds9DUc21.js';
|
|
15
15
|
import '../types--RamYGF1.js';
|
|
16
16
|
import 'firebase-admin/firestore';
|
|
17
17
|
import '@google-cloud/bigquery';
|
|
@@ -4,7 +4,7 @@ import '../firebase-auth-nG3prKoj.cjs';
|
|
|
4
4
|
import 'firebase-functions/v2/firestore';
|
|
5
5
|
import 'firebase-functions/v2/https';
|
|
6
6
|
import 'firebase-functions/v2/pubsub';
|
|
7
|
-
import '../types-
|
|
7
|
+
import '../types-BFbzLuFf.cjs';
|
|
8
8
|
import '../types--RamYGF1.cjs';
|
|
9
9
|
import 'firebase-admin/firestore';
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ import '../firebase-auth-nG3prKoj.js';
|
|
|
4
4
|
import 'firebase-functions/v2/firestore';
|
|
5
5
|
import 'firebase-functions/v2/https';
|
|
6
6
|
import 'firebase-functions/v2/pubsub';
|
|
7
|
-
import '../types-
|
|
7
|
+
import '../types-Ds9DUc21.js';
|
|
8
8
|
import '../types--RamYGF1.js';
|
|
9
9
|
import 'firebase-admin/firestore';
|
|
10
10
|
|
|
@@ -18,10 +18,18 @@ type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
|
18
18
|
*/
|
|
19
19
|
type ExtractUpdateSignature<T, TType> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: [...P, DeepPartial<TType> & DotNotationUpdate<TType>]) => Promise<TType> : never;
|
|
20
20
|
/**
|
|
21
|
-
* Check if
|
|
21
|
+
* Check if an object type has any method properties (e.g. Timestamp.toDate, GeoPoint.isEqual)
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
|
-
type
|
|
24
|
+
type HasMethod<T> = {
|
|
25
|
+
[K in keyof T]-?: NonNullable<T[K]> extends (...args: any[]) => any ? K : never;
|
|
26
|
+
}[keyof T] extends never ? false : true;
|
|
27
|
+
/**
|
|
28
|
+
* Check if a type is a plain data object with known static keys
|
|
29
|
+
* (excludes Date, Timestamp, GeoPoint, DocumentReference, Array, Function, Map, Set, RegExp, and Record<string, V>)
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
type IsPlainObject<T> = IsAny<T> extends true ? false : NonNullable<T> extends Date | Array<any> | ReadonlyArray<any> | Function | RegExp | Map<any, any> | Set<any> | Promise<any> ? false : NonNullable<T> extends object ? string extends keyof NonNullable<T> ? false : HasMethod<NonNullable<T>> extends true ? false : true : false;
|
|
25
33
|
/**
|
|
26
34
|
* Recursively generates dot-notation paths for nested plain objects only
|
|
27
35
|
* Stops at primitives, Date, Array, Function, etc.
|
|
@@ -18,10 +18,18 @@ type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
|
18
18
|
*/
|
|
19
19
|
type ExtractUpdateSignature<T, TType> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: [...P, DeepPartial<TType> & DotNotationUpdate<TType>]) => Promise<TType> : never;
|
|
20
20
|
/**
|
|
21
|
-
* Check if
|
|
21
|
+
* Check if an object type has any method properties (e.g. Timestamp.toDate, GeoPoint.isEqual)
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
|
-
type
|
|
24
|
+
type HasMethod<T> = {
|
|
25
|
+
[K in keyof T]-?: NonNullable<T[K]> extends (...args: any[]) => any ? K : never;
|
|
26
|
+
}[keyof T] extends never ? false : true;
|
|
27
|
+
/**
|
|
28
|
+
* Check if a type is a plain data object with known static keys
|
|
29
|
+
* (excludes Date, Timestamp, GeoPoint, DocumentReference, Array, Function, Map, Set, RegExp, and Record<string, V>)
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
type IsPlainObject<T> = IsAny<T> extends true ? false : NonNullable<T> extends Date | Array<any> | ReadonlyArray<any> | Function | RegExp | Map<any, any> | Set<any> | Promise<any> ? false : NonNullable<T> extends object ? string extends keyof NonNullable<T> ? false : HasMethod<NonNullable<T>> extends true ? false : true : false;
|
|
25
33
|
/**
|
|
26
34
|
* Recursively generates dot-notation paths for nested plain objects only
|
|
27
35
|
* Stops at primitives, Date, Array, Function, etc.
|
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
5
5
|
import { H as HistoryMethods } from './read-B15YaPyR.cjs';
|
|
6
6
|
import { DocumentSnapshot, Query, CollectionReference, WriteBatch, Transaction, DocumentReference } from 'firebase-admin/firestore';
|
|
7
|
-
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions, d as GetResult, f as ExtractReturnDoc, a as RelationConfig, D as DeepPartial, b as DotNotationUpdate, F as FieldPath } from './types-
|
|
7
|
+
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions, d as GetResult, f as ExtractReturnDoc, a as RelationConfig, D as DeepPartial, b as DotNotationUpdate, F as FieldPath } from './types-BFbzLuFf.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Pagination result with data and cursor information
|
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
5
5
|
import { H as HistoryMethods } from './read-15-TcgCz.js';
|
|
6
6
|
import { DocumentSnapshot, Query, CollectionReference, WriteBatch, Transaction, DocumentReference } from 'firebase-admin/firestore';
|
|
7
|
-
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions, d as GetResult, f as ExtractReturnDoc, a as RelationConfig, D as DeepPartial, b as DotNotationUpdate, F as FieldPath } from './types-
|
|
7
|
+
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions, d as GetResult, f as ExtractReturnDoc, a as RelationConfig, D as DeepPartial, b as DotNotationUpdate, F as FieldPath } from './types-Ds9DUc21.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Pagination result with data and cursor information
|
|
@@ -3,7 +3,7 @@ import { onDocumentWritten, DocumentOptions } from 'firebase-functions/v2/firest
|
|
|
3
3
|
import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
|
|
4
4
|
import { onMessagePublished, PubSubOptions } from 'firebase-functions/v2/pubsub';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { F as FieldPath } from './types-
|
|
6
|
+
import { F as FieldPath } from './types-BFbzLuFf.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
|
|
@@ -3,7 +3,7 @@ import { onDocumentWritten, DocumentOptions } from 'firebase-functions/v2/firest
|
|
|
3
3
|
import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
|
|
4
4
|
import { onMessagePublished, PubSubOptions } from 'firebase-functions/v2/pubsub';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { F as FieldPath } from './types-
|
|
6
|
+
import { F as FieldPath } from './types-Ds9DUc21.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lpdjs/firestore-repo-service",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"workspaces": [
|
|
5
5
|
"test/functions"
|
|
6
6
|
],
|
|
@@ -208,6 +208,7 @@
|
|
|
208
208
|
},
|
|
209
209
|
"homepage": "https://frs.lpdjs.fr",
|
|
210
210
|
"peerDependencies": {
|
|
211
|
+
"@asteasolutions/zod-to-openapi": "^8.0.0 || ^9.0.0",
|
|
211
212
|
"@google-cloud/bigquery": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
212
213
|
"@google-cloud/bigquery-storage": "^4.0.0 || ^5.0.0 || ^6.0.0",
|
|
213
214
|
"@google-cloud/pubsub": "^4.0.0 || ^5.0.0 || ^6.0.0",
|
|
@@ -239,6 +240,7 @@
|
|
|
239
240
|
}
|
|
240
241
|
},
|
|
241
242
|
"devDependencies": {
|
|
243
|
+
"@asteasolutions/zod-to-openapi": "^9.1.0",
|
|
242
244
|
"@google-cloud/bigquery": "^9.3.0",
|
|
243
245
|
"@google-cloud/bigquery-storage": "^6.2.0",
|
|
244
246
|
"@google-cloud/pubsub": "^6.3.0",
|
|
@@ -254,7 +256,6 @@
|
|
|
254
256
|
"zod": "^4.6.7"
|
|
255
257
|
},
|
|
256
258
|
"dependencies": {
|
|
257
|
-
"@asteasolutions/zod-to-openapi": "^9.1.0",
|
|
258
259
|
"@hono/node-server": "^2.1.5",
|
|
259
260
|
"hono": "^4.13.13"
|
|
260
261
|
}
|