Skip to content

Commit 896e391

Browse files
committed
docs(typedoc): hide internal functions
1 parent dd98630 commit 896e391

20 files changed

+176
-15
lines changed

src/dynamo/expression/create-if-not-exists-condition.function.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { hasSortKey, Metadata } from '../../decorator/metadata/metadata'
55
import { attribute } from './logical-operator/public.api'
66
import { ConditionExpressionDefinitionFunction } from './type/condition-expression-definition-function'
77

8+
/**
9+
* @hidden
10+
*/
811
export function createIfNotExistsCondition<T>(metadata: Metadata<T>): ConditionExpressionDefinitionFunction[] {
912
const conditionDefFns: ConditionExpressionDefinitionFunction[] = [
1013
attribute<T>(metadata.getPartitionKey()).attributeNotExists(),

src/dynamo/expression/functions/is-no-param-function-operator.function.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { FunctionOperator } from '../type/function-operator.type'
66

77
/**
88
* @returns {boolean} Returns true for all function operators with no param false otherwise
9+
* @hidden
910
*/
1011
export function isNoParamFunctionOperator(operator: FunctionOperator): boolean {
1112
return NON_PARAM_FUNCTION_OPERATORS.includes(operator)

src/dynamo/expression/functions/operator-parameter-arity.function.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { isNoParamFunctionOperator } from './is-no-param-function-operator.funct
1010
* returns this value
1111
*
1212
* @returns {number} The amount of required method parameters when calling an operator function
13+
* @hidden
1314
*/
1415
export function operatorParameterArity(operator: ConditionOperator): number {
1516
if (isFunctionOperator(operator) && isNoParamFunctionOperator(operator)) {

src/dynamo/expression/logical-operator/and.function.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import { mergeConditions } from './merge-conditions.function'
66

77
/**
88
* function to combine multiple conditions with 'and'
9+
* @example
10+
* ```typescript
11+
* and(attribute('propA').eq('foo'), attribute('propB').eq('bar'))
12+
* ```
913
*/
1014
export function and(
1115
...conditionDefinitionFns: ConditionExpressionDefinitionFunction[]

src/dynamo/expression/logical-operator/attribute.function.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ import {
1010

1111
/**
1212
* Use this method when accessing a top level attribute of a model with strict typing of the value in chained function
13-
*
13+
* @example
1414
* ```typescript
15+
*
1516
* @Model()
1617
* class Person{
1718
*
@@ -39,6 +40,10 @@ export function attribute2<T, K extends keyof T>(
3940

4041
/**
4142
* Use this method when accessing a top level attribute of a model to have type checking of the attributePath
43+
* @example
44+
* ```typescript
45+
* attribute('myProp').eq('foo')
46+
* ```
4247
*/
4348
export function attribute<T>(attributePath: keyof T): ConditionExpressionDefinitionChain
4449

src/dynamo/expression/logical-operator/not.function.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import { Expression } from '../type/expression.type'
77

88
/**
99
* function to negate a condition
10+
* @example
11+
* ```typescript
12+
* not(attribute('propA').eq('foo'))
13+
* ```
1014
*/
1115
export function not(
1216
conditionDefinitionFn: ConditionExpressionDefinitionFunction,

src/dynamo/expression/logical-operator/or.function.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { mergeConditions } from './merge-conditions.function'
66

77
/**
88
* function to combine multiple conditions with or
9-
* @param conditionDefinitionFns
9+
* @example
10+
* ```typescript
11+
* or(attribute('propA').eq('foo'), attribute('propB').eq('bar'))
12+
* ```
1013
*/
1114
export function or(
1215
...conditionDefinitionFns: ConditionExpressionDefinitionFunction[]

src/dynamo/expression/logical-operator/update.function.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010

1111
/**
1212
* Use this method when accessing a top level attribute of a model with strict typing of the value in chained function
13-
*
13+
* @example
1414
* ```typescript
1515
* @Model()
1616
* class Person {
@@ -38,6 +38,10 @@ export function update2<T, K extends keyof T>(
3838

3939
/**
4040
* Use this method when accessing a top level attribute of a model to have type checking for attributePath
41+
* @example
42+
* ```typescript
43+
* update('myProp').set('foo')
44+
* ```
4145
*/
4246
export function update<T>(attributePath: keyof T): UpdateExpressionDefinitionChain
4347

src/dynamo/expression/param-util.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export function addExpression(
5656
}
5757
}
5858

59+
/**
60+
* @hidden
61+
*/
5962
type UpdateExpressionsByKeyword = Record<UpdateActionKeyword, string>
6063

6164
/**

src/dynamo/expression/prepare-and-add-update-expressions.function.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import { UpdateActionKeyword } from './type/update-action-keyword.type'
1010
import { UpdateExpressionDefinitionFunction } from './type/update-expression-definition-function'
1111
import { UpdateExpression } from './type/update-expression.type'
1212

13+
/**
14+
* @hidden
15+
*/
1316
export function prepareAndAddUpdateExpressions(
1417
metadata: Metadata<any>,
1518
params: DynamoDB.UpdateItemInput | DynamoDB.Update,

0 commit comments

Comments
 (0)