-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated dependencies to latest Use Auto Built Headless Chrome docker image Declare mongoose-paginate related interfaces instead of using library @types/mongoose-paginate caused warning message during TypeDoc generation calculate at_hash for angular-oauth2-oidc 5.0.3 to work show deprecation warning karma-runner/karma-jasmine#221
- Loading branch information
Showing
30 changed files
with
1,914 additions
and
1,775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/authorization-server/src/server/models/client/client.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/authorization-server/src/server/models/role/role.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/authorization-server/src/server/models/scope/scope.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
apps/authorization-server/src/server/typings/mongoose.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { Model, Schema, Document } from 'mongoose'; | ||
|
||
export interface PaginateOptions { | ||
select?: object | string; | ||
sort?: object | string; | ||
populate?: Array<object> | Array<string> | object | string; | ||
lean?: boolean; | ||
leanWithId?: boolean; | ||
offset?: number; | ||
page?: number; | ||
limit?: number; | ||
} | ||
|
||
export interface PaginateResult<T> { | ||
docs: Array<T>; | ||
total: number; | ||
limit: number; | ||
page?: number; | ||
pages?: number; | ||
offset?: number; | ||
} | ||
|
||
export interface PaginateModel<T extends Document> extends Model<T> { | ||
paginate( | ||
query?: object, | ||
options?: PaginateOptions, | ||
callback?: (err: any, result: PaginateResult<T>) => void, | ||
): Promise<PaginateResult<T>>; | ||
} | ||
|
||
export function model<T extends Document>( | ||
name: string, | ||
schema?: Schema, | ||
collection?: string, | ||
skipInit?: boolean, | ||
): PaginateModel<T>; | ||
|
||
export function model<T extends Document, U extends PaginateModel<T>>( | ||
name: string, | ||
schema?: Schema, | ||
collection?: string, | ||
skipInit?: boolean, | ||
): U; |
Oops, something went wrong.