@lpdjs/firestore-repo-service 3.0.1 → 3.0.2
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-aWdDTcSu.d.ts → create-servers-2Hw0pkyz.d.ts} +2 -2
- package/dist/{create-servers-Cbvzs_ou.d.cts → create-servers-ASLcxpiS.d.cts} +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/{queue-CMiKvIW1.d.cts → queue-B9jCT62h.d.cts} +1 -1
- package/dist/{queue-BQxyuEXb.d.ts → queue-BWi6TBmf.d.ts} +1 -1
- package/dist/servers/index.d.cts +3 -3
- package/dist/servers/index.d.ts +3 -3
- package/dist/sync/bigquery.d.cts +1 -1
- package/dist/sync/bigquery.d.ts +1 -1
- package/dist/sync/index.d.cts +4 -4
- package/dist/sync/index.d.ts +4 -4
- package/dist/sync/meilisearch.d.cts +1 -1
- package/dist/sync/meilisearch.d.ts +1 -1
- package/dist/{types-BbFZ57eK.d.ts → types-BRPhmKFW.d.ts} +6 -4
- package/dist/{types-zFrp8RnM.d.cts → types-LZ8dyfBz.d.cts} +6 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SyncQueue } from './queue-
|
|
2
|
-
import { F as FirestoreSyncConfig, S as SyncEvent } from './types-
|
|
1
|
+
import { S as SyncQueue } from './queue-BWi6TBmf.js';
|
|
2
|
+
import { F as FirestoreSyncConfig, S as SyncEvent } from './types-BRPhmKFW.js';
|
|
3
3
|
import { O as OpenAPIDocument } from './openapi-BTu_1vSc.js';
|
|
4
4
|
import * as firebase_functions_v2_https from 'firebase-functions/v2/https';
|
|
5
5
|
import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SyncQueue } from './queue-
|
|
2
|
-
import { F as FirestoreSyncConfig, S as SyncEvent } from './types-
|
|
1
|
+
import { S as SyncQueue } from './queue-B9jCT62h.cjs';
|
|
2
|
+
import { F as FirestoreSyncConfig, S as SyncEvent } from './types-LZ8dyfBz.cjs';
|
|
3
3
|
import { O as OpenAPIDocument } from './openapi-CoKsSOIU.cjs';
|
|
4
4
|
import * as firebase_functions_v2_https from 'firebase-functions/v2/https';
|
|
5
5
|
import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
|
package/dist/index.d.cts
CHANGED
|
@@ -3,15 +3,15 @@ import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { u as QueryOptions, v as PaginationOptions, l as RepositoryConfig, w as RelationConfig, C as ConfiguredRepository } from './types-B2e-T8EM.cjs';
|
|
5
5
|
export { A as ApiResponse, b as CrudRepoConfig, a as CrudServerOptions, E as ExtractDocumentRefSignature, x as ExtractUpdateSignature, n as FieldPath, F as FieldRole, T as GenerateGetMethods, V as GenerateQueryMethods, G as GetOptions, y as GetResult, X as IncludeConfigTyped, L as ListResponseData, J as PaginationResult, Y as PaginationWithIncludeOptionsTyped, Z as PopulateOptionsTyped, Q as QueryRequestBody, z as RelationalKeys, R as RepoFieldPath, h as RepoRelationKeys, K as SystemBackfillFailure, M as SystemBackfillOptions, N as SystemBackfillResult, U as UserFieldPath, W as WhereClause, B as createPaginationIterator, H as executePaginatedQuery } from './types-B2e-T8EM.cjs';
|
|
6
|
-
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from './create-servers-
|
|
6
|
+
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from './create-servers-ASLcxpiS.cjs';
|
|
7
7
|
export { AdminRepoConfig, AdminRepoEntry, AdminServerOptions, BasicAuthConfig } from './servers/admin/index.cjs';
|
|
8
8
|
export { h as MiniRouter } from './firebase-auth-Ds5P0kXT.cjs';
|
|
9
9
|
import 'firebase-functions/v2/firestore';
|
|
10
10
|
import './types-BIZz3sxN.cjs';
|
|
11
11
|
import 'hono';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
|
-
import './queue-
|
|
14
|
-
import './types-
|
|
13
|
+
import './queue-B9jCT62h.cjs';
|
|
14
|
+
import './types-LZ8dyfBz.cjs';
|
|
15
15
|
import 'firebase-functions/v2/pubsub';
|
|
16
16
|
import './openapi-CoKsSOIU.cjs';
|
|
17
17
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,15 +3,15 @@ import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { u as QueryOptions, v as PaginationOptions, l as RepositoryConfig, w as RelationConfig, C as ConfiguredRepository } from './types-XRjVKN9r.js';
|
|
5
5
|
export { A as ApiResponse, b as CrudRepoConfig, a as CrudServerOptions, E as ExtractDocumentRefSignature, x as ExtractUpdateSignature, n as FieldPath, F as FieldRole, T as GenerateGetMethods, V as GenerateQueryMethods, G as GetOptions, y as GetResult, X as IncludeConfigTyped, L as ListResponseData, J as PaginationResult, Y as PaginationWithIncludeOptionsTyped, Z as PopulateOptionsTyped, Q as QueryRequestBody, z as RelationalKeys, R as RepoFieldPath, h as RepoRelationKeys, K as SystemBackfillFailure, M as SystemBackfillOptions, N as SystemBackfillResult, U as UserFieldPath, W as WhereClause, B as createPaginationIterator, H as executePaginatedQuery } from './types-XRjVKN9r.js';
|
|
6
|
-
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from './create-servers-
|
|
6
|
+
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from './create-servers-2Hw0pkyz.js';
|
|
7
7
|
export { AdminRepoConfig, AdminRepoEntry, AdminServerOptions, BasicAuthConfig } from './servers/admin/index.js';
|
|
8
8
|
export { h as MiniRouter } from './firebase-auth-Ds5P0kXT.js';
|
|
9
9
|
import 'firebase-functions/v2/firestore';
|
|
10
10
|
import './types-DSMiiOrU.js';
|
|
11
11
|
import 'hono';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
|
-
import './queue-
|
|
14
|
-
import './types-
|
|
13
|
+
import './queue-BWi6TBmf.js';
|
|
14
|
+
import './types-BRPhmKFW.js';
|
|
15
15
|
import 'firebase-functions/v2/pubsub';
|
|
16
16
|
import './openapi-BTu_1vSc.js';
|
|
17
17
|
|
package/dist/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @lpdjs/firestore-repo-service (v3.0.
|
|
1
|
+
# @lpdjs/firestore-repo-service (v3.0.2) — full documentation
|
|
2
2
|
|
|
3
3
|
> ⚡ Type-safe Firestore ORM with auto-generated repositories, advanced queries, relations with typed select, pagination with include, batch/bulk operations, aggregations and transactions.
|
|
4
4
|
|
package/dist/llms.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @lpdjs/firestore-repo-service (v3.0.
|
|
1
|
+
# @lpdjs/firestore-repo-service (v3.0.2)
|
|
2
2
|
|
|
3
3
|
> ⚡ Type-safe Firestore ORM with auto-generated repositories, advanced queries, relations with typed select, pagination with include, batch/bulk operations, aggregations and transactions.
|
|
4
4
|
|
package/dist/servers/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from '../create-servers-
|
|
1
|
+
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from '../create-servers-ASLcxpiS.cjs';
|
|
2
2
|
export { AdminRepoConfig, AdminRepoEntry, AdminServerOptions, BasicAuthConfig, RepoRegistry } from './admin/index.cjs';
|
|
3
3
|
import { P as PageOptions, o as ColumnMeta, p as FilterState, m as RelationalFieldMeta, q as SortState, r as QueryError } from '../types-B2e-T8EM.cjs';
|
|
4
4
|
export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, e as CrudRules, a as CrudServerOptions, f as CrudUpdateRuleContext, s as DEFAULT_HTML_CSP, D as DeepDiffReturn, F as FieldRole, I as IndexErrorCallback, g as IndexErrorContext, L as ListResponseData, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, i as Rule, j as RuleResult, k as RulesMap, S as SecurityHeadersOptions, U as UserFieldPath, t as securityHeaders } from '../types-B2e-T8EM.cjs';
|
|
@@ -6,8 +6,8 @@ export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as cre
|
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
export { M as Middleware, h as MiniRouter, R as RouteHandler } from '../firebase-auth-Ds5P0kXT.cjs';
|
|
8
8
|
import * as hono_jsx_jsx_dev_runtime from 'hono/jsx/jsx-dev-runtime';
|
|
9
|
-
import '../queue-
|
|
10
|
-
import '../types-
|
|
9
|
+
import '../queue-B9jCT62h.cjs';
|
|
10
|
+
import '../types-LZ8dyfBz.cjs';
|
|
11
11
|
import 'firebase-functions/v2/firestore';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
13
|
import 'firebase-functions/v2/pubsub';
|
package/dist/servers/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from '../create-servers-
|
|
1
|
+
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from '../create-servers-2Hw0pkyz.js';
|
|
2
2
|
export { AdminRepoConfig, AdminRepoEntry, AdminServerOptions, BasicAuthConfig, RepoRegistry } from './admin/index.js';
|
|
3
3
|
import { P as PageOptions, o as ColumnMeta, p as FilterState, m as RelationalFieldMeta, q as SortState, r as QueryError } from '../types-XRjVKN9r.js';
|
|
4
4
|
export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, e as CrudRules, a as CrudServerOptions, f as CrudUpdateRuleContext, s as DEFAULT_HTML_CSP, D as DeepDiffReturn, F as FieldRole, I as IndexErrorCallback, g as IndexErrorContext, L as ListResponseData, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, i as Rule, j as RuleResult, k as RulesMap, S as SecurityHeadersOptions, U as UserFieldPath, t as securityHeaders } from '../types-XRjVKN9r.js';
|
|
@@ -6,8 +6,8 @@ export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as cre
|
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
export { M as Middleware, h as MiniRouter, R as RouteHandler } from '../firebase-auth-Ds5P0kXT.js';
|
|
8
8
|
import * as hono_jsx_jsx_dev_runtime from 'hono/jsx/jsx-dev-runtime';
|
|
9
|
-
import '../queue-
|
|
10
|
-
import '../types-
|
|
9
|
+
import '../queue-BWi6TBmf.js';
|
|
10
|
+
import '../types-BRPhmKFW.js';
|
|
11
11
|
import 'firebase-functions/v2/firestore';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
13
|
import 'firebase-functions/v2/pubsub';
|
package/dist/sync/bigquery.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BigQuery } from '@google-cloud/bigquery';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { b as SqlAdapter, c as SqlDialect, R as RepoSyncConfig, d as SyncHealthResult, e as SqlTableDef, f as SqlColumn } from '../types-
|
|
3
|
+
import { b as SqlAdapter, c as SqlDialect, R as RepoSyncConfig, d as SyncHealthResult, e as SqlTableDef, f as SqlColumn } from '../types-LZ8dyfBz.cjs';
|
|
4
4
|
import '../firebase-auth-Ds5P0kXT.cjs';
|
|
5
5
|
import 'firebase-functions/v2/firestore';
|
|
6
6
|
import 'firebase-functions/v2/https';
|
package/dist/sync/bigquery.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BigQuery } from '@google-cloud/bigquery';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { b as SqlAdapter, c as SqlDialect, R as RepoSyncConfig, d as SyncHealthResult, e as SqlTableDef, f as SqlColumn } from '../types-
|
|
3
|
+
import { b as SqlAdapter, c as SqlDialect, R as RepoSyncConfig, d as SyncHealthResult, e as SqlTableDef, f as SqlColumn } from '../types-BRPhmKFW.js';
|
|
4
4
|
import '../firebase-auth-Ds5P0kXT.js';
|
|
5
5
|
import 'firebase-functions/v2/firestore';
|
|
6
6
|
import 'firebase-functions/v2/https';
|
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, j as FirestoreTriggersDep, O as OrFactory, k as PubSubHandlerDep, l as SyncDeps, d as SyncHealthResult, m as SyncOperation, n as SyncWorkerOptions, o as adminsyncBasicAuth, p 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-LZ8dyfBz.cjs';
|
|
2
|
+
export { A as AdminHttpsOptions, j as FirestoreTriggersDep, O as OrFactory, k as PubSubHandlerDep, l as SyncDeps, d as SyncHealthResult, m as SyncOperation, n as SyncWorkerOptions, o as adminsyncBasicAuth, p as adminsyncFeaturesFlag } from '../types-LZ8dyfBz.cjs';
|
|
3
|
+
import { S as SyncQueue } from '../queue-B9jCT62h.cjs';
|
|
4
|
+
export { a as SyncQueueOptions } from '../queue-B9jCT62h.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';
|
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, j as FirestoreTriggersDep, O as OrFactory, k as PubSubHandlerDep, l as SyncDeps, d as SyncHealthResult, m as SyncOperation, n as SyncWorkerOptions, o as adminsyncBasicAuth, p 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-BRPhmKFW.js';
|
|
2
|
+
export { A as AdminHttpsOptions, j as FirestoreTriggersDep, O as OrFactory, k as PubSubHandlerDep, l as SyncDeps, d as SyncHealthResult, m as SyncOperation, n as SyncWorkerOptions, o as adminsyncBasicAuth, p as adminsyncFeaturesFlag } from '../types-BRPhmKFW.js';
|
|
3
|
+
import { S as SyncQueue } from '../queue-BWi6TBmf.js';
|
|
4
|
+
export { a as SyncQueueOptions } from '../queue-BWi6TBmf.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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as SyncAdapter, R as RepoSyncConfig, d as SyncHealthResult } from '../types-
|
|
2
|
+
import { a as SyncAdapter, R as RepoSyncConfig, d as SyncHealthResult } from '../types-LZ8dyfBz.cjs';
|
|
3
3
|
import '../firebase-auth-Ds5P0kXT.cjs';
|
|
4
4
|
import 'firebase-functions/v2/firestore';
|
|
5
5
|
import 'firebase-functions/v2/https';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as SyncAdapter, R as RepoSyncConfig, d as SyncHealthResult } from '../types-
|
|
2
|
+
import { a as SyncAdapter, R as RepoSyncConfig, d as SyncHealthResult } from '../types-BRPhmKFW.js';
|
|
3
3
|
import '../firebase-auth-Ds5P0kXT.js';
|
|
4
4
|
import 'firebase-functions/v2/firestore';
|
|
5
5
|
import 'firebase-functions/v2/https';
|
|
@@ -234,22 +234,24 @@ type ExtractRepoFields<R> = R extends {
|
|
|
234
234
|
} ? string & keyof S : R extends {
|
|
235
235
|
type: infer T;
|
|
236
236
|
} ? string & keyof T : string;
|
|
237
|
-
/** Keys of repos where `_isGroup` is `true`. */
|
|
237
|
+
/** Keys of repos where `_isGroup` or `isGroup` is `true`. */
|
|
238
238
|
type GroupRepoKeys<M> = {
|
|
239
239
|
[K in string & keyof M]: M[K] extends {
|
|
240
240
|
_isGroup: true;
|
|
241
|
+
} ? K : M[K] extends {
|
|
242
|
+
isGroup: true;
|
|
241
243
|
} ? K : never;
|
|
242
244
|
}[string & keyof M];
|
|
243
245
|
/** Keys of repos where `_isGroup` is NOT `true`. */
|
|
244
246
|
type NonGroupRepoKeys<M> = Exclude<string & keyof M, GroupRepoKeys<M>>;
|
|
245
247
|
/**
|
|
246
248
|
* Typed per-repo sync config map.
|
|
247
|
-
* - Collection-group repos (`isGroup: true`): entry is
|
|
248
|
-
* `triggerPath` is mandatory.
|
|
249
|
+
* - Collection-group repos (`isGroup: true`): entry is optional, but if provided,
|
|
250
|
+
* `triggerPath` is mandatory (since collection groups span multiple paths).
|
|
249
251
|
* - Regular repos: entry is optional, all fields optional.
|
|
250
252
|
*/
|
|
251
253
|
type TypedRepoSyncConfigs<M> = {
|
|
252
|
-
[K in GroupRepoKeys<M>]
|
|
254
|
+
[K in GroupRepoKeys<M>]?: RepoSyncConfig<ExtractRepoFields<M[K]>> & {
|
|
253
255
|
triggerPath: string;
|
|
254
256
|
};
|
|
255
257
|
} & {
|
|
@@ -234,22 +234,24 @@ type ExtractRepoFields<R> = R extends {
|
|
|
234
234
|
} ? string & keyof S : R extends {
|
|
235
235
|
type: infer T;
|
|
236
236
|
} ? string & keyof T : string;
|
|
237
|
-
/** Keys of repos where `_isGroup` is `true`. */
|
|
237
|
+
/** Keys of repos where `_isGroup` or `isGroup` is `true`. */
|
|
238
238
|
type GroupRepoKeys<M> = {
|
|
239
239
|
[K in string & keyof M]: M[K] extends {
|
|
240
240
|
_isGroup: true;
|
|
241
|
+
} ? K : M[K] extends {
|
|
242
|
+
isGroup: true;
|
|
241
243
|
} ? K : never;
|
|
242
244
|
}[string & keyof M];
|
|
243
245
|
/** Keys of repos where `_isGroup` is NOT `true`. */
|
|
244
246
|
type NonGroupRepoKeys<M> = Exclude<string & keyof M, GroupRepoKeys<M>>;
|
|
245
247
|
/**
|
|
246
248
|
* Typed per-repo sync config map.
|
|
247
|
-
* - Collection-group repos (`isGroup: true`): entry is
|
|
248
|
-
* `triggerPath` is mandatory.
|
|
249
|
+
* - Collection-group repos (`isGroup: true`): entry is optional, but if provided,
|
|
250
|
+
* `triggerPath` is mandatory (since collection groups span multiple paths).
|
|
249
251
|
* - Regular repos: entry is optional, all fields optional.
|
|
250
252
|
*/
|
|
251
253
|
type TypedRepoSyncConfigs<M> = {
|
|
252
|
-
[K in GroupRepoKeys<M>]
|
|
254
|
+
[K in GroupRepoKeys<M>]?: RepoSyncConfig<ExtractRepoFields<M[K]>> & {
|
|
253
255
|
triggerPath: string;
|
|
254
256
|
};
|
|
255
257
|
} & {
|