Skip to content

Commit 6b8d2c0

Browse files
committed
Fixing the JSDoc.
1 parent 3f52014 commit 6b8d2c0

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

lib/plan-builder.js

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ class RdtExpr {
118118
* Controls features such as the length and type of the generated value.
119119
* @method planBuilder#maskDeterministic
120120
* @since 2.7.0
121-
* @param args - Options for redacting.
121+
* @param args - with column and options - Column is the name of the column to be defined.
122+
* This can be either a string or the return value from PlanBuilder.col(), PlanBuilder.viewCol() or PlanBuilder.schemaCol().
123+
* Options is an object with name-value pairs specific to the redaction method.
122124
* @returns { planBuilder.PlanExprCol }
123125
*/
124126
maskDeterministic(...args) {
@@ -128,7 +130,9 @@ class RdtExpr {
128130
* Controls the length of the generated value and type of replacement text (numbers or letters).
129131
* @method planBuilder#maskRandom
130132
* @since 2.7.0
131-
* @param args - Options for redacting.
133+
* @param args - with column and options - Column is the name of the column to be defined.
134+
* This can be either a string or the return value from PlanBuilder.col(), PlanBuilder.viewCol() or PlanBuilder.schemaCol().
135+
* Options is an object with name-value pairs specific to the redaction method.
132136
* @returns { planBuilder.PlanExprCol }
133137
*/
134138
maskRandom(...args) {
@@ -137,7 +141,9 @@ class RdtExpr {
137141
/** This function redacts data that matches the pattern of a dateTime value. Controls the expected input format and the masking dateTime format.
138142
* @method planBuilder#redactDatetime
139143
* @since 2.7.0
140-
* @param args - Options for redacting.
144+
* @param args - with column and options - Column is the name of the column to be defined.
145+
* This can be either a string or the return value from PlanBuilder.col(), PlanBuilder.viewCol() or PlanBuilder.schemaCol().
146+
* Options is an object with name-value pairs specific to the redaction method.
141147
* @returns { planBuilder.PlanExprCol }
142148
*/
143149
redactDatetime(...args) {
@@ -147,7 +153,9 @@ class RdtExpr {
147153
* Controls whether to mask the entire address, only the username, or only the domain name.
148154
* @method planBuilder#redactEmail
149155
* @since 2.7.0
150-
* @param args - Options for redacting.
156+
* @param args - with column and options - Column is the name of the column to be defined.
157+
* This can be either a string or the return value from PlanBuilder.col(), PlanBuilder.viewCol() or PlanBuilder.schemaCol().
158+
* Options is an object with name-value pairs specific to the redaction method.
151159
* @returns { planBuilder.PlanExprCol }
152160
*/
153161
redactEmail(...args) {
@@ -156,7 +164,9 @@ class RdtExpr {
156164
/** This function redacts data that matches the pattern of an IPv4 address. Controls what character to use as a masking character.
157165
* @method planBuilder#redactIpv4
158166
* @since 2.7.0
159-
* @param args - Options for redacting.
167+
* @param args - with column and options - Column is the name of the column to be defined.
168+
* This can be either a string or the return value from PlanBuilder.col(), PlanBuilder.viewCol() or PlanBuilder.schemaCol().
169+
* Options is an object with name-value pairs specific to the redaction method.
160170
* @returns { planBuilder.PlanExprCol }
161171
*/
162172
redactIpv4(...args) {
@@ -165,7 +175,9 @@ class RdtExpr {
165175
/** This function replaces values with random numbers. Controls the data type, range, and format of the masking values.
166176
* @method planBuilder#redactNumber
167177
* @since 2.7.0
168-
* @param args - Options for redacting.
178+
* @param args - with column and options - Column is the name of the column to be defined.
179+
* This can be either a string or the return value from PlanBuilder.col(), PlanBuilder.viewCol() or PlanBuilder.schemaCol().
180+
* Options is an object with name-value pairs specific to the redaction method.
169181
* @returns { planBuilder.PlanExprCol }
170182
*/
171183
redactNumber(...args) {
@@ -174,7 +186,9 @@ class RdtExpr {
174186
/** This function redacts data that matches a given regular expression. You must specify the regular expression and the masking text.
175187
* @method planBuilder#redactRegex
176188
* @since 2.7.0
177-
* @param args - Options for redacting.
189+
* @param args - with column and options - Column is the name of the column to be defined.
190+
* This can be either a string or the return value from PlanBuilder.col(), PlanBuilder.viewCol() or PlanBuilder.schemaCol().
191+
* Options is an object with name-value pairs specific to the redaction method.
178192
* @returns { planBuilder.PlanExprCol }
179193
*/
180194
redactRegex(...args) {
@@ -184,7 +198,9 @@ class RdtExpr {
184198
* Controls whether or not to preserve the last 4 digits and what character to use as a masking character.
185199
* @method planBuilder#redactUsSsn
186200
* @since 2.7.0
187-
* @param args - Options for redacting.
201+
* @param args - with column and options - Column is the name of the column to be defined.
202+
* This can be either a string or the return value from PlanBuilder.col(), PlanBuilder.viewCol() or PlanBuilder.schemaCol().
203+
* Options is an object with name-value pairs specific to the redaction method.
188204
* @returns { planBuilder.PlanExprCol }
189205
*/
190206
redactUsSsn(...args) {
@@ -194,7 +210,9 @@ class RdtExpr {
194210
* Controls whether or not to preserve the last 4 digits and what character to use as a masking character.
195211
* @method planBuilder#redactUsPhone
196212
* @since 2.7.0
197-
* @param args - Options for redacting.
213+
* @param args - with column and options - Column is the name of the column to be defined.
214+
* This can be either a string or the return value from PlanBuilder.col(), PlanBuilder.viewCol() or PlanBuilder.schemaCol().
215+
* Options is an object with name-value pairs specific to the redaction method.
198216
* @returns { planBuilder.PlanExprCol }
199217
*/
200218
redactUsPhone(...args) {

0 commit comments

Comments
 (0)