@squidcloud/client 1.0.240 → 1.0.242
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.
|
@@ -33,7 +33,7 @@ export interface TriggerRequest<T extends DocumentData = any> {
|
|
|
33
33
|
docAfter?: T;
|
|
34
34
|
}
|
|
35
35
|
export type SchedulerAction = () => void | Promise<void>;
|
|
36
|
-
export type LimitedAction = () => any | Promise<any>;
|
|
36
|
+
export type LimitedAction = (...args: any[]) => any | Promise<any>;
|
|
37
37
|
export type LimiterScope = 'ip' | 'user' | 'global';
|
|
38
38
|
export type QuotaRenewPeriod = 'hourly' | 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'annually';
|
|
39
39
|
/**
|
|
@@ -77,7 +77,7 @@ export declare class JoinQueryBuilder<Aliases extends Record<Alias, Alias[]>, Re
|
|
|
77
77
|
* @param asc Whether to sort in ascending order. Defaults to true.
|
|
78
78
|
* @returns The query builder
|
|
79
79
|
*/
|
|
80
|
-
sortBy(fieldName: keyof ReturnType[RootAlias] & FieldName, asc?: boolean): this;
|
|
80
|
+
sortBy(fieldName: (keyof ReturnType[RootAlias] & FieldName) | string, asc?: boolean): this;
|
|
81
81
|
/**
|
|
82
82
|
* Joins this query with another join query and return a new query builder that can be used to query the joined
|
|
83
83
|
* documents.
|
|
@@ -159,7 +159,7 @@ export declare class QueryBuilder<DocumentType extends DocumentData> extends Bas
|
|
|
159
159
|
getLimit(): number;
|
|
160
160
|
limitBy(limit: number, ...fields: FieldName[]): this;
|
|
161
161
|
/** @inheritDoc */
|
|
162
|
-
sortBy(fieldName: keyof DocumentType & FieldName, asc?: boolean): this;
|
|
162
|
+
sortBy(fieldName: (keyof DocumentType & FieldName) | string, asc?: boolean): this;
|
|
163
163
|
private mergeConditions;
|
|
164
164
|
getSortOrder(): FieldSort<DocumentType>[];
|
|
165
165
|
/**
|