-
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.
- Loading branch information
Showing
145 changed files
with
4,756 additions
and
870 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# ------------------------------------------------------ | ||
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY) | ||
# ------------------------------------------------------ | ||
|
||
""" | ||
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. | ||
""" | ||
scalar DateTime | ||
|
||
type IntercomMessage { | ||
payload: JSON | ||
scope: String | ||
type: String | ||
} | ||
|
||
""" | ||
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). | ||
""" | ||
scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf") | ||
|
||
input LoginInput { | ||
email: String! | ||
password: String! | ||
} | ||
|
||
type MetaField { | ||
id: String | ||
required: Boolean | ||
type: MetaFieldType | ||
} | ||
|
||
type MetaFieldType { | ||
id: String | ||
} | ||
|
||
type MetaModel { | ||
fields: [MetaField!] | ||
id: String | ||
} | ||
|
||
type Mutation { | ||
intercomPub(payload: JSON, scope: String, type: String!): IntercomMessage | ||
login(input: LoginInput!): UserToken | ||
logout: Boolean | ||
register(input: RegisterInput!): UserToken | ||
} | ||
|
||
type Query { | ||
me: User | ||
metaModels: [MetaModel!] | ||
uptime: Float | ||
} | ||
|
||
input RegisterInput { | ||
avatarUrl: String | ||
email: String! | ||
firstName: String | ||
lastName: String | ||
password: String! | ||
phone: String | ||
username: String | ||
} | ||
|
||
"""User role""" | ||
enum Role { | ||
Admin | ||
User | ||
} | ||
|
||
type Subscription { | ||
intercomSub(scope: String, type: String): IntercomMessage | ||
} | ||
|
||
type User { | ||
avatarUrl: String | ||
bio: String | ||
createdAt: DateTime | ||
email: String | ||
firstName: String | ||
id: String | ||
lastName: String | ||
location: String | ||
phone: String | ||
role: Role | ||
updatedAt: DateTime | ||
username: String | ||
} | ||
|
||
type UserToken { | ||
"""JWT Bearer token""" | ||
token: String! | ||
user: User! | ||
} |
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,8 +1,9 @@ | ||
import { Module } from '@nestjs/common' | ||
import { ApiAuthFeatureModule } from '@nx-prisma-admin/api/auth/feature' | ||
import { ApiCoreFeatureModule } from '@nx-prisma-admin/api/core/feature' | ||
import { Module } from '@nestjs/common' | ||
import { ApiMetaFeatureModule } from '@nx-prisma-admin/api/meta/feature' | ||
|
||
@Module({ | ||
imports: [ApiAuthFeatureModule, ApiCoreFeatureModule], | ||
imports: [ApiAuthFeatureModule, ApiCoreFeatureModule, ApiMetaFeatureModule], | ||
}) | ||
export class AppModule {} |
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
Oops, something went wrong.