@opvious/api-operations
Advanced tools
+4
-4
| { | ||
| "name": "@opvious/api-operations", | ||
| "version": "0.9.1", | ||
| "version": "0.10.0", | ||
| "repository": "github:opvious/api-gateway", | ||
@@ -37,5 +37,5 @@ "description": "API GraphQL schema and operations resources", | ||
| "@graphql-codegen/typescript-operations": "^2.5.6", | ||
| "@opvious/account-graph": "^0.8.5", | ||
| "@opvious/attempt-graph": "^0.12.4", | ||
| "@opvious/formulation-graph": "^0.15.1", | ||
| "@opvious/account-graph": "^0.9.1", | ||
| "@opvious/attempt-graph": "^0.12.9", | ||
| "@opvious/formulation-graph": "^0.15.2", | ||
| "graphql-tag": "^2.12.6", | ||
@@ -42,0 +42,0 @@ "ts-loader": "^9.3.1", |
| query FetchMyAccount { | ||
| me { | ||
| __typename | ||
| id | ||
| ...MyAccount | ||
@@ -9,8 +7,8 @@ } | ||
| fragment MyAccount on Account { | ||
| holder { | ||
| ... on Member { | ||
| } | ||
| } | ||
| fragment MyAccount on Member { | ||
| registeredAt | ||
| emailVerifiedAt | ||
| productTier | ||
| creditBalance | ||
| } |
| query ListMyAuthorizations { | ||
| me { | ||
| holder { | ||
| ... on Member { | ||
| authorizations { | ||
| ...ListedAuthorization | ||
| } | ||
| } | ||
| authorizations { | ||
| ...ListedAuthorization | ||
| } | ||
@@ -10,0 +6,0 @@ } |
@@ -5,9 +5,5 @@ """An opaque access token to emit API requests""" | ||
| type Account implements Node { | ||
| createdAt: DateTime! | ||
| holder: AccountHolder! | ||
| id: ID! | ||
| } | ||
| union AccountHolder = Member | ||
| type Attempt implements Node { | ||
@@ -484,10 +480,11 @@ constraintSummaries: [ConstraintSummary!]! | ||
| """A human account holder""" | ||
| type Member implements Node { | ||
| account: Account! | ||
| activeSessions: [Session!]! | ||
| authorizations: [Authorization!]! | ||
| creditBalance: Int! | ||
| email: String! | ||
| emailVerifiedAt: DateTime | ||
| id: ID! | ||
| productTier: ProductTier! | ||
| registeredAt: DateTime! | ||
| } | ||
@@ -644,2 +641,7 @@ | ||
| enum ProductTier { | ||
| PREMIUM | ||
| STARTER | ||
| } | ||
| type Query { | ||
@@ -663,3 +665,3 @@ """Fetches an attempt by UUID.""" | ||
| formulations(after: Cursor, before: Cursor, filter: FormulationFilter, first: Limit, last: Limit, orderBy: FormulationOrderBy): FormulationConnection! | ||
| me: Account! | ||
| me: Member! | ||
| node(id: ID!): Node! | ||
@@ -666,0 +668,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
553885
-0.09%5683
-0.09%