@rebasepro/types 0.10.1-canary.6f89f77 → 0.10.1-canary.7609565

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/index.es.js CHANGED
@@ -416,6 +416,19 @@ function isBranchAdmin(admin) {
416
416
  return !!admin && typeof admin.createBranch === "function";
417
417
  }
418
418
  //#endregion
419
+ //#region src/types/channel_bus.ts
420
+ /**
421
+ * Whether `setting` is an already-constructed transport rather than a request
422
+ * for a built-in one.
423
+ *
424
+ * Structural rather than nominal so that an instance from a *different copy* of
425
+ * `@rebasepro/types` — an entirely normal outcome of a separately versioned
426
+ * transport package — is still recognised.
427
+ */
428
+ function isChannelBusInstance(setting) {
429
+ return typeof setting?.publish === "function";
430
+ }
431
+ //#endregion
419
432
  //#region src/types/data_source.ts
420
433
  /**
421
434
  * The default data-source key, used when a collection does not name a
@@ -595,6 +608,6 @@ function isPublicStoragePath(path) {
595
608
  return p.startsWith("public/") || p.startsWith(`default/public/`);
596
609
  }
597
610
  //#endregion
598
- export { ALL_WHERE_FILTER_OPS, ANONYMOUS_USER_ID, CANONICAL_TO_REST, DEFAULT_CAPABILITIES, DEFAULT_DATA_SOURCE_KEY, DEFAULT_LIST_LIMIT, DEFAULT_STORAGE_SOURCE_KEY, DEFAULT_VECTOR_LIST_LIMIT, EntityReference, EntityRelation, FIREBASE_CAPABILITIES, GeoPoint, MAX_LIST_LIMIT, MONGODB_CAPABILITIES, NULL_OPS, POSTGRES_CAPABILITIES, PUBLIC_STORAGE_PREFIX, REST_TO_CANONICAL, RebaseApiError, RebaseClientError, Vector, getCollectionDataPath, getDataSourceCapabilities, getDeclaredSubcollections, isBranchAdmin, isDocumentAdmin, isFirebaseCollectionConfig, isLazyComponentRef, isMongoDBCollectionConfig, isPostgresCollectionConfig, isPublicStoragePath, isSQLAdmin, isSchemaAdmin, policy, registerDataSourceCapabilities, resolveClientListLimit, toCanonicalOp };
611
+ export { ALL_WHERE_FILTER_OPS, ANONYMOUS_USER_ID, CANONICAL_TO_REST, DEFAULT_CAPABILITIES, DEFAULT_DATA_SOURCE_KEY, DEFAULT_LIST_LIMIT, DEFAULT_STORAGE_SOURCE_KEY, DEFAULT_VECTOR_LIST_LIMIT, EntityReference, EntityRelation, FIREBASE_CAPABILITIES, GeoPoint, MAX_LIST_LIMIT, MONGODB_CAPABILITIES, NULL_OPS, POSTGRES_CAPABILITIES, PUBLIC_STORAGE_PREFIX, REST_TO_CANONICAL, RebaseApiError, RebaseClientError, Vector, getCollectionDataPath, getDataSourceCapabilities, getDeclaredSubcollections, isBranchAdmin, isChannelBusInstance, isDocumentAdmin, isFirebaseCollectionConfig, isLazyComponentRef, isMongoDBCollectionConfig, isPostgresCollectionConfig, isPublicStoragePath, isSQLAdmin, isSchemaAdmin, policy, registerDataSourceCapabilities, resolveClientListLimit, toCanonicalOp };
599
612
 
600
613
  //# sourceMappingURL=index.es.js.map