Skip to content

Commit a403cde

Browse files
refactor(rename): update imports
1 parent 11fd22b commit a403cde

File tree

4 files changed

+6
-22
lines changed

4 files changed

+6
-22
lines changed

src/dynamo/expression/request-expression-builder.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { ConditionOperator } from './type/condition-operator.type'
1212
import { ExpressionType } from './type/expression-type.type'
1313
import { Expression } from './type/expression.type'
1414
import { RequestConditionFunction } from './type/request-condition-function'
15-
import { RequestSortKeyConditionFunction } from './type/sort-key-condition-function'
15+
import { SortKeyConditionFunction } from './type/sort-key-condition-function'
1616
import { UpdateActionDef } from './type/update-action-def'
1717
import { UPDATE_ACTION_DEFS } from './type/update-action-defs.const'
1818
import {
@@ -44,19 +44,19 @@ export function addCondition<R extends ConditionalParamsHost>(
4444
export function addSortKeyCondition<R extends ConditionalParamsHost>(
4545
keyName: keyof any,
4646
request: R,
47-
): RequestSortKeyConditionFunction<R>
47+
): SortKeyConditionFunction<R>
4848

4949
export function addSortKeyCondition<T, R extends ConditionalParamsHost>(
5050
keyName: keyof T,
5151
request: R,
5252
metadata: Metadata<T>,
53-
): RequestSortKeyConditionFunction<R>
53+
): SortKeyConditionFunction<R>
5454

5555
export function addSortKeyCondition<T, R extends ConditionalParamsHost>(
5656
keyName: keyof T,
5757
request: R,
5858
metadata?: Metadata<T>,
59-
): RequestSortKeyConditionFunction<R> {
59+
): SortKeyConditionFunction<R> {
6060
const f = (operator: ConditionOperator) => {
6161
return (...values: any[]): R => {
6262
return doAddCondition('KeyConditionExpression', <string>keyName, request, metadata, operator, ...values)

src/dynamo/expression/type/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export * from './expression-type.type'
1010
export * from './function-operator.type'
1111
export * from './request-condition-function'
1212
export * from './sort-key-condition-function'
13-
export * from './sort-key-condition-function.type'
1413
export * from './update-action.type'
1514
export * from './update-action-def'
1615
export * from './update-action-defs.const'

src/dynamo/expression/type/sort-key-condition-function.type.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/dynamo/request/query/query.request.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Attributes, fromDb } from '../../../mapper'
66
import { ModelConstructor } from '../../../model'
77
import { DynamoRx } from '../../dynamo-rx'
88
import { addSortKeyCondition } from '../../expression/request-expression-builder'
9-
import { RequestSortKeyConditionFunction } from '../../expression/type'
9+
import { SortKeyConditionFunction } from '../../expression/type'
1010
import { Request } from '../request.model'
1111
import { QueryResponse } from './query.response'
1212

@@ -41,7 +41,7 @@ export class QueryRequest<T> extends Request<T, QueryRequest<T>, QueryInput, Que
4141
* used to define some condition for the sort key, use the secondary index to query based on a custom index
4242
* @returns {RequestConditionFunction<T>}
4343
*/
44-
whereSortKey(): RequestSortKeyConditionFunction<QueryRequest<T>> {
44+
whereSortKey(): SortKeyConditionFunction<QueryRequest<T>> {
4545
let sortKey: keyof T | null
4646
if (this.params.IndexName) {
4747
const index = this.metadata.getIndex(this.params.IndexName)

0 commit comments

Comments
 (0)