@rebasepro/types 0.32.0 → 0.33.1
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
|
@@ -5260,6 +5260,7 @@ function isViewDef(value) {
|
|
|
5260
5260
|
var TABLE_OPTION_KEYS = [
|
|
5261
5261
|
"description",
|
|
5262
5262
|
"defaultPolicies",
|
|
5263
|
+
"rlsRequired",
|
|
5263
5264
|
"tenant",
|
|
5264
5265
|
"softDelete",
|
|
5265
5266
|
"history",
|
|
@@ -5498,7 +5499,8 @@ function optionProblems(option, value, where) {
|
|
|
5498
5499
|
switch (option) {
|
|
5499
5500
|
case "description": return typeof value === "string" ? [] : [`${where} must be a string.`];
|
|
5500
5501
|
case "history": return typeof value === "boolean" ? [] : [`${where} must be a boolean.`];
|
|
5501
|
-
case "defaultPolicies":
|
|
5502
|
+
case "defaultPolicies":
|
|
5503
|
+
case "rlsRequired": return typeof value === "boolean" ? [] : [`${where} must be a boolean (or \`null\` to remove it).`];
|
|
5502
5504
|
case "strictWrites": return value === false ? [] : [`${where} can only be \`false\` (or \`null\` to remove it).`];
|
|
5503
5505
|
case "softDelete": return typeof value === "boolean" || isRecord(value) ? [] : [`${where} must be a boolean or \`{ field }\`.`];
|
|
5504
5506
|
case "tenant": return isRecord(value) && typeof value.field === "string" && isRecord(value.from) ? [] : [`${where} must be \`{ field, from }\`.`];
|