@@ -25,7 +25,7 @@ enum ReferentialAction {
2525 * Used with "onUpdate": when updating the identifier of a referenced object, the scalar fields of the referencing objects will be set to NULL.
2626 */
2727 SetNull
28-
28+
2929 /* *
3030 * Used with "onDelete": the scalar field of the referencing object will be set to the fields default value.
3131 * Used with "onUpdate": the scalar field of the referencing object will be set to the fields default value.
@@ -104,7 +104,7 @@ function ulid(): String {
104104} @@@expressionContext([DefaultValue])
105105
106106/* *
107- * Creates a sequence of integers in the underlying database and assign the incremented
107+ * Creates a sequence of integers in the underlying database and assign the incremented
108108 * values to the ID values of the created records based on the sequence.
109109 */
110110function autoincrement(): Int {
@@ -174,9 +174,9 @@ function isEmpty(field: Any[]): Boolean {
174174/* *
175175 * The name of the model for which the policy rule is defined. If the rule is
176176 * inherited to a sub model, this function returns the name of the sub model.
177- *
177+ *
178178 * @param optional parameter to control the casing of the returned value. Valid
179- * values are "original", "upper", "lower", "capitalize", "uncapitalize". Defaults
179+ * values are "original", "upper", "lower", "capitalize", "uncapitalize". Defaults
180180 * to "original".
181181 */
182182function currentModel(casing: String ?): String {
@@ -186,7 +186,7 @@ function currentModel(casing: String?): String {
186186 * The operation for which the policy rule is defined for. Note that a rule with
187187 * "all" operation is expanded to "create", "read", "update", and "delete" rules,
188188 * and the function returns corresponding value for each expanded version.
189- *
189+ *
190190 * @param optional parameter to control the casing of the returned value. Valid
191191 * values are "original", "upper", "lower", "capitalize", "uncapitalize". Defaults
192192 * to "original".
@@ -523,13 +523,13 @@ attribute @@schema(_ name: String) @@@prisma
523523
524524/* *
525525 * Indicates that the field is a password field and needs to be hashed before persistence.
526- *
526+ *
527527 * ZenStack uses `bcryptjs` library to hash password. You can use the `saltLength` parameter
528528 * to configure the cost of hashing, or use `salt` parameter to provide an explicit salt.
529529 * By default, salt length of 12 is used.
530530 *
531531 * @see https://www.npmjs.com/package/bcryptjs for details
532- *
532+ *
533533 * @param saltLength: length of salt to use (cost factor for the hash function)
534534 * @param salt: salt to use (a pregenerated valid salt)
535535 */
@@ -538,8 +538,8 @@ attribute @password(saltLength: Int?, salt: String?) @@@targetField([StringField
538538
539539/* *
540540 * Indicates that the field is encrypted when storing in the DB and should be decrypted when read
541- *
542- * ZenStack uses the Web Crypto API to encrypt and decrypt the field.
541+ *
542+ * ZenStack uses the Web Crypto API to encrypt and decrypt the field.
543543 */
544544attribute @encrypted() @@@targetField([StringField])
545545
@@ -665,9 +665,9 @@ function url(field: String): Boolean {
665665
666666/* *
667667 * Checks if the current user can perform the given operation on the given field.
668- *
668+ *
669669 * @param field: The field to check access for
670- * @param operation: The operation to check access for. Can be "read", "create", "update", or "delete". If the operation is not provided,
670+ * @param operation: The operation to check access for. Can be "read", "create", "update", or "delete". If the operation is not provided,
671671 * it defaults the operation of the containing policy rule.
672672 */
673673function check(field: Any , operation: String ?): Boolean {
0 commit comments