-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
590 additions
and
504 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
lib |
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,3 @@ | ||
{ | ||
"singleQuote": true | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import {Model} from '../model'; | ||
import {ExtractModelAttributesType} from '../types/extractModelAttributesType'; | ||
import {ExtractModelPersistedAttributesType} from '../types/extractModelPersistedAttributesType'; | ||
import {ExtractModelRelationsType} from '../types/extractModelRelationsType'; | ||
import {ExtractModelKeyType} from "../types/extractModelKeyType"; | ||
import { Model } from '../model'; | ||
import { ExtractModelAttributesType } from '../types/extractModelAttributesType'; | ||
import { ExtractModelPersistedAttributesType } from '../types/extractModelPersistedAttributesType'; | ||
import { ExtractModelRelationsType } from '../types/extractModelRelationsType'; | ||
import { ExtractModelKeyType } from '../types/extractModelKeyType'; | ||
|
||
export interface ModelConstructor<M extends Model, | ||
export interface ModelConstructor< | ||
M extends Model, | ||
Attributes = ExtractModelAttributesType<M>, | ||
PersistedAttributes = ExtractModelPersistedAttributesType<M>, | ||
Relations = ExtractModelRelationsType<M>, | ||
Key = ExtractModelKeyType<M>, | ||
AllAttributes = Attributes & PersistedAttributes, | ||
> { | ||
new(attributes?: AllAttributes, relations?: Relations): M; | ||
AllAttributes = Attributes & PersistedAttributes | ||
> { | ||
new (attributes?: AllAttributes, relations?: Relations): M; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export enum AuthDriver { | ||
Default = 'default', | ||
Passport = 'passport', | ||
Sanctum = 'sanctum' | ||
Sanctum = 'sanctum', | ||
} |
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 |
---|---|---|
|
@@ -8,5 +8,5 @@ export enum FilterOperator { | |
Like = 'like', | ||
NotLike = 'not like', | ||
In = 'in', | ||
NotIn = 'not in' | ||
NotIn = 'not in', | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export enum FilterType { | ||
And = 'and', | ||
Or = 'or' | ||
Or = 'or', | ||
} |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ export enum HttpMethod { | |
POST = 'post', | ||
PATCH = 'patch', | ||
PUT = 'put', | ||
DELETE = 'delete' | ||
DELETE = 'delete', | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export enum SortDirection { | ||
Asc = 'asc', | ||
Desc = 'desc' | ||
Desc = 'desc', | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import {Model} from '../../../model'; | ||
import {RelationQueryBuilder} from '../builders/relationQueryBuilder'; | ||
import {ExtractModelAttributesType} from '../../../types/extractModelAttributesType'; | ||
import {ExtractModelPersistedAttributesType} from '../../../types/extractModelPersistedAttributesType'; | ||
import {ExtractModelRelationsType} from '../../../types/extractModelRelationsType'; | ||
import { Model } from '../../../model'; | ||
import { RelationQueryBuilder } from '../builders/relationQueryBuilder'; | ||
import { ExtractModelAttributesType } from '../../../types/extractModelAttributesType'; | ||
import { ExtractModelPersistedAttributesType } from '../../../types/extractModelPersistedAttributesType'; | ||
import { ExtractModelRelationsType } from '../../../types/extractModelRelationsType'; | ||
|
||
export class BelongsTo<Relation extends Model, | ||
export class BelongsTo< | ||
Relation extends Model, | ||
Attributes = ExtractModelAttributesType<Relation>, | ||
PersistedAttributes = ExtractModelPersistedAttributesType<Attributes>, | ||
Relations = ExtractModelRelationsType<Relation> | ||
> extends RelationQueryBuilder<Relation, Attributes, PersistedAttributes, Relations> { | ||
} | ||
> extends RelationQueryBuilder<Relation, Attributes, PersistedAttributes, Relations> {} |
Oops, something went wrong.