@rebasepro/types 0.21.2-canary.g1ea48be → 0.23.0
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/controllers/client.d.ts +13 -0
- package/dist/controllers/data_driver.d.ts +10 -0
- package/dist/index.es.js +3 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/auth_adapter.d.ts +34 -0
- package/dist/types/backend.d.ts +69 -2
- package/dist/types/cron.d.ts +5 -2
- package/dist/types/database_adapter.d.ts +6 -2
- package/dist/types/entity_callbacks.d.ts +195 -1
- package/dist/types/postgres_introspection.d.ts +10 -0
- package/dist/types/schema_editing.d.ts +2 -2
- package/dist/types/search.d.ts +60 -4
- package/dist/types/security_rules.d.ts +28 -1
- package/package.json +2 -2
|
@@ -98,6 +98,19 @@ export interface AuthClient {
|
|
|
98
98
|
* supply it; treat a missing implementation as "unknown, go ahead and ask".
|
|
99
99
|
*/
|
|
100
100
|
canRestoreSession?: () => boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Resolves once the client has finished restoring a session on its own —
|
|
103
|
+
* from storage, or by a silent refresh on boot.
|
|
104
|
+
*
|
|
105
|
+
* Until then {@link getSession} is provisional: a stored session whose
|
|
106
|
+
* access token has expired is held while its refresh runs, and dropped
|
|
107
|
+
* when that refresh is rejected. A caller that renders from the session
|
|
108
|
+
* waits for this and reads it again.
|
|
109
|
+
*
|
|
110
|
+
* Optional so that alternative {@link AuthClient} implementations need not
|
|
111
|
+
* supply it; without it the first `getSession()` is taken as final.
|
|
112
|
+
*/
|
|
113
|
+
isInitialized?: () => Promise<void>;
|
|
101
114
|
}
|
|
102
115
|
/**
|
|
103
116
|
* User record as returned by the Admin API (`GET /admin/users`, etc.).
|
|
@@ -641,7 +641,17 @@ export interface RestFetchService {
|
|
|
641
641
|
filter?: FilterValues<string>;
|
|
642
642
|
logical?: LogicalCondition;
|
|
643
643
|
searchString?: string;
|
|
644
|
+
/** Groups to return. Applies to a grouped aggregate; one without `groupBy` is one row. */
|
|
644
645
|
limit?: number;
|
|
646
|
+
/** Groups to skip, for paging past `limit`. Grouped aggregates only. */
|
|
647
|
+
offset?: number;
|
|
648
|
+
/**
|
|
649
|
+
* Sort for the groups, by a `groupBy` field or an aggregate's alias
|
|
650
|
+
* (`count`, `sum_total`). Whatever it leaves tied is ordered by the
|
|
651
|
+
* group keys, so the order is total and a page boundary falls in
|
|
652
|
+
* the same place every time. Grouped aggregates only.
|
|
653
|
+
*/
|
|
654
|
+
orderBy?: OrderByTuple[];
|
|
645
655
|
/** See {@link FetchCollectionProps.withDeleted}. */
|
|
646
656
|
withDeleted?: boolean | "only";
|
|
647
657
|
}): Promise<Record<string, unknown>[]>;
|
package/dist/index.es.js
CHANGED
|
@@ -803,6 +803,8 @@ function getDeclaredSubcollections(collection) {
|
|
|
803
803
|
//#region src/types/search.ts
|
|
804
804
|
/** The column name used when {@link SearchConfig.column} is not given. */
|
|
805
805
|
var DEFAULT_SEARCH_COLUMN = "search_vector";
|
|
806
|
+
/** The matching strategy used when {@link SearchConfig.mode} is not given. */
|
|
807
|
+
var DEFAULT_SEARCH_MODE = "fts";
|
|
806
808
|
/** The text search configuration used when {@link SearchConfig.language} is not given. */
|
|
807
809
|
var DEFAULT_SEARCH_LANGUAGE = "simple";
|
|
808
810
|
/** The weight a field carries when it does not name one. */
|
|
@@ -2472,6 +2474,6 @@ function isPublicStoragePath(path) {
|
|
|
2472
2474
|
return p.startsWith("public/") || p.startsWith(`default/public/`);
|
|
2473
2475
|
}
|
|
2474
2476
|
//#endregion
|
|
2475
|
-
export { ADMIN_COLLECTION_KEYS, ADMIN_PROPERTY_KEYS, ALL_WHERE_FILTER_OPS, ANONYMOUS_USER_ID, ANONYMOUS_USER_IDS, BATCH_REF_KEY, BUNDLE_FORMAT_VERSION, CANONICAL_TO_REST, DEFAULT_CAPABILITIES, DEFAULT_COMMIT_PATHS, DEFAULT_DATA_SOURCE_KEY, DEFAULT_FILTERABLE_RELATION_KINDS, DEFAULT_FUZZY_THRESHOLD, DEFAULT_LIST_LIMIT, DEFAULT_RESOURCE_KEY, DEFAULT_SEARCH_COLUMN, DEFAULT_SEARCH_LANGUAGE, DEFAULT_SEARCH_WEIGHT, DEFAULT_STORAGE_SOURCE_KEY, DEFAULT_TENANT_BYPASS_ROLES, DEFAULT_VECTOR_LIST_LIMIT, EntityReference, EntityRelation, FIELD_OPERATORS, FIREBASE_CAPABILITIES, GeoPoint, JUNCTION_PIVOT_KEY, LEGACY_RLS_JWT_SQL, LEGACY_RLS_ROLES_SQL, LEGACY_RLS_SCHEMA, LEGACY_RLS_UID_SQL, LIST_OPS, ListLimitError, MAX_INCLUDE_DEPTH, MAX_LIST_LIMIT, MONGODB_CAPABILITIES, NULL_OPS, POSTGRES_CAPABILITIES, PUBLIC_STORAGE_PREFIX, REBASE_SCHEMA, RELEVANCE_SORT_FIELD, RESERVED_BACKEND_PREFIXES, RESOURCE_GRAPH_VERSION, REST_TO_CANONICAL, RLS_IS_ANONYMOUS_SQL, RLS_JWT_SQL, RLS_ROLES_SQL, RLS_UID_SQL, RUNTIME_CONTRACT_VERSION, RebaseApiError, RebaseClientError, SCHEMA_VERSION_HEADER, Vector, amendResourceKind, bucket, buildResourceGraph, canonicalSchemaPayload, computeSchemaVersion, database, declareCron, declareFunction, declareResource, declaredDataSources, declaredDatabaseExtensions, declaredQueueConsumers, declaredResources, declaredStorageSources, declaredSubscriptions, deserializeCollections, encodeRelationAggregateSort, envBasesForResource, findEnvSuffixCollision, findStorageSuffixCollision, getCollectionDataPath, getDataSourceCapabilities, getDeclaredSubcollections, hasFieldOperation, hasForeignKeyOnTarget, isAnonymousUid, isBranchAdmin, isChannelBusInstance, isDocumentAdmin, isFieldOperation, isFirebaseCollectionConfig, isLazyComponentRef, isManyToMany, isMongoDBCollectionConfig, isPostgresCollectionConfig, isPublicStoragePath, isRelationAggregateSort, isRelationalCollectionConfig, isResourceHandle, isSQLAdmin, isSchemaAdmin, isSchemaEditingAdmin, isSerializedCollectionRef, isTenantClaimSource, isTenantMembershipSource, isToMany, isUnsupported, isValidEngine, nestAdminCollectionKeys, nestAdminKeysOf, nestAdminPropertyKeys, parseEnvBoolean, parseRelationAggregateSort, policy, queue, registerDataSourceCapabilities, registerResourceKind, reservedPrefixFor, resetDeclaredQueueConsumers, resetDeclaredResources, resetDeclaredSubscriptions, resolveClientListLimit, resolveResourceRefs, resourceEnvSuffix, resourceId, resourceKeyOf, resourceKind, resourceKinds, resourceToDataSource, resourceToStorageSource, rewriteLegacyRlsFunctions, serializeCollections, setQueueRuntime, setTopicRuntime, sortKeyToString, storageEnvSuffix, toCanonicalOp, topic, unsupportedMethod, usesLegacyRlsFunctions };
|
|
2477
|
+
export { ADMIN_COLLECTION_KEYS, ADMIN_PROPERTY_KEYS, ALL_WHERE_FILTER_OPS, ANONYMOUS_USER_ID, ANONYMOUS_USER_IDS, BATCH_REF_KEY, BUNDLE_FORMAT_VERSION, CANONICAL_TO_REST, DEFAULT_CAPABILITIES, DEFAULT_COMMIT_PATHS, DEFAULT_DATA_SOURCE_KEY, DEFAULT_FILTERABLE_RELATION_KINDS, DEFAULT_FUZZY_THRESHOLD, DEFAULT_LIST_LIMIT, DEFAULT_RESOURCE_KEY, DEFAULT_SEARCH_COLUMN, DEFAULT_SEARCH_LANGUAGE, DEFAULT_SEARCH_MODE, DEFAULT_SEARCH_WEIGHT, DEFAULT_STORAGE_SOURCE_KEY, DEFAULT_TENANT_BYPASS_ROLES, DEFAULT_VECTOR_LIST_LIMIT, EntityReference, EntityRelation, FIELD_OPERATORS, FIREBASE_CAPABILITIES, GeoPoint, JUNCTION_PIVOT_KEY, LEGACY_RLS_JWT_SQL, LEGACY_RLS_ROLES_SQL, LEGACY_RLS_SCHEMA, LEGACY_RLS_UID_SQL, LIST_OPS, ListLimitError, MAX_INCLUDE_DEPTH, MAX_LIST_LIMIT, MONGODB_CAPABILITIES, NULL_OPS, POSTGRES_CAPABILITIES, PUBLIC_STORAGE_PREFIX, REBASE_SCHEMA, RELEVANCE_SORT_FIELD, RESERVED_BACKEND_PREFIXES, RESOURCE_GRAPH_VERSION, REST_TO_CANONICAL, RLS_IS_ANONYMOUS_SQL, RLS_JWT_SQL, RLS_ROLES_SQL, RLS_UID_SQL, RUNTIME_CONTRACT_VERSION, RebaseApiError, RebaseClientError, SCHEMA_VERSION_HEADER, Vector, amendResourceKind, bucket, buildResourceGraph, canonicalSchemaPayload, computeSchemaVersion, database, declareCron, declareFunction, declareResource, declaredDataSources, declaredDatabaseExtensions, declaredQueueConsumers, declaredResources, declaredStorageSources, declaredSubscriptions, deserializeCollections, encodeRelationAggregateSort, envBasesForResource, findEnvSuffixCollision, findStorageSuffixCollision, getCollectionDataPath, getDataSourceCapabilities, getDeclaredSubcollections, hasFieldOperation, hasForeignKeyOnTarget, isAnonymousUid, isBranchAdmin, isChannelBusInstance, isDocumentAdmin, isFieldOperation, isFirebaseCollectionConfig, isLazyComponentRef, isManyToMany, isMongoDBCollectionConfig, isPostgresCollectionConfig, isPublicStoragePath, isRelationAggregateSort, isRelationalCollectionConfig, isResourceHandle, isSQLAdmin, isSchemaAdmin, isSchemaEditingAdmin, isSerializedCollectionRef, isTenantClaimSource, isTenantMembershipSource, isToMany, isUnsupported, isValidEngine, nestAdminCollectionKeys, nestAdminKeysOf, nestAdminPropertyKeys, parseEnvBoolean, parseRelationAggregateSort, policy, queue, registerDataSourceCapabilities, registerResourceKind, reservedPrefixFor, resetDeclaredQueueConsumers, resetDeclaredResources, resetDeclaredSubscriptions, resolveClientListLimit, resolveResourceRefs, resourceEnvSuffix, resourceId, resourceKeyOf, resourceKind, resourceKinds, resourceToDataSource, resourceToStorageSource, rewriteLegacyRlsFunctions, serializeCollections, setQueueRuntime, setTopicRuntime, sortKeyToString, storageEnvSuffix, toCanonicalOp, topic, unsupportedMethod, usesLegacyRlsFunctions };
|
|
2476
2478
|
|
|
2477
2479
|
//# sourceMappingURL=index.es.js.map
|