@common-stack/graphql-api 7.2.1-alpha.0 → 7.2.1-alpha.1
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.
- package/package.json +2 -2
- package/root-schema.graphqls +136 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/graphql-api",
|
|
3
|
-
"version": "7.2.1-alpha.
|
|
3
|
+
"version": "7.2.1-alpha.1",
|
|
4
4
|
"description": "graphql api for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "0b78f22c7fae61b45f4781762bf1c5377c89b041",
|
|
38
38
|
"typescript": {
|
|
39
39
|
"definition": "lib/index.d.ts"
|
|
40
40
|
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
scalar AnyObject
|
|
2
|
+
scalar Date
|
|
3
|
+
scalar Time
|
|
4
|
+
scalar DateTime
|
|
5
|
+
scalar Timestamp
|
|
6
|
+
scalar URI
|
|
7
|
+
scalar URIInput
|
|
8
|
+
scalar Observable
|
|
9
|
+
scalar JSON
|
|
10
|
+
scalar JSONObject
|
|
11
|
+
|
|
12
|
+
"""
|
|
13
|
+
An object with an ID.
|
|
14
|
+
"""
|
|
15
|
+
interface Node {
|
|
16
|
+
"""
|
|
17
|
+
The ID of the node.
|
|
18
|
+
"""
|
|
19
|
+
id: ID!
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
# Pagination information. See https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo.
|
|
23
|
+
type PageInfo {
|
|
24
|
+
# Whether there is a next page of nodes in the connection.
|
|
25
|
+
hasNextPage: Boolean!
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Represents a null return value.
|
|
30
|
+
"""
|
|
31
|
+
type EmptyResponse {
|
|
32
|
+
# A dummy null value.
|
|
33
|
+
alwaysNil: String
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
type FieldError {
|
|
37
|
+
field: String!
|
|
38
|
+
message: String!
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
input Sort{
|
|
42
|
+
key: String!,
|
|
43
|
+
value: SortEnum!,
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
enum SortEnum{
|
|
47
|
+
ASC,
|
|
48
|
+
DESC
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
type Query {
|
|
52
|
+
"""
|
|
53
|
+
Looks up a node by ID.
|
|
54
|
+
"""
|
|
55
|
+
node(id: ID!): Node
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type Mutation {
|
|
59
|
+
dummy: Int
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type Subscription {
|
|
63
|
+
dummy: Int
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
type AdminIdeSettings {
|
|
67
|
+
dummy: Int
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
enum ContributionSechemaId {
|
|
71
|
+
dummy
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
enum ContributionExtensionName {
|
|
75
|
+
dummy
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
""" All Moleculer Topic names are extended from this."""
|
|
79
|
+
enum MoleculerServiceName {
|
|
80
|
+
dummy
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
enum MailTemplateId {
|
|
84
|
+
dummy
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
enum MoleculerCronServiceName {
|
|
88
|
+
dummy
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
"""
|
|
92
|
+
Used for Settings passed in the ContainerModule
|
|
93
|
+
"""
|
|
94
|
+
interface IResourceUtilizationSettings {
|
|
95
|
+
subTopic: String
|
|
96
|
+
adminApiNamespace: String
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
"""
|
|
100
|
+
To calculate geometry over an Eath-like sphere.
|
|
101
|
+
List the `longitude` first and then `latitude`
|
|
102
|
+
- Validate longitude values are between `-180` and `180`
|
|
103
|
+
- Validate latitude values are between `-90` and `90`
|
|
104
|
+
"""
|
|
105
|
+
type GeoLocation {
|
|
106
|
+
coordinates: [Float]
|
|
107
|
+
}
|
|
108
|
+
"""
|
|
109
|
+
Input geometry of the location.
|
|
110
|
+
List the `longitude` first and then `latitude`
|
|
111
|
+
- Validate longitude values are between `-180` and `180`
|
|
112
|
+
- Validate latitude values are between `-90` and `90`
|
|
113
|
+
"""
|
|
114
|
+
input GeoLocationInput {
|
|
115
|
+
type: String = "Point"
|
|
116
|
+
coordinates: [Float]
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
schema {
|
|
120
|
+
query: Query
|
|
121
|
+
mutation: Mutation
|
|
122
|
+
subscription: Subscription
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
directive @invalidateCache(queries:[String!]!) on MUTATION | FIELD_DEFINITION
|
|
126
|
+
|
|
127
|
+
enum CacheControlScope {
|
|
128
|
+
PUBLIC
|
|
129
|
+
PRIVATE
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
directive @cacheControl(
|
|
133
|
+
maxAge: Int
|
|
134
|
+
scope: CacheControlScope
|
|
135
|
+
inheritMaxAge: Boolean
|
|
136
|
+
) on FIELD_DEFINITION | OBJECT | INTERFACE | UNION
|