@common-stack/graphql-api 7.2.1-alpha.0 → 7.2.1-alpha.11
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var commonSchema = "scalar AnyObject\nscalar Date\nscalar Time\nscalar DateTime\nscalar Timestamp\nscalar URI\nscalar URIInput\nscalar Observable\nscalar JSON\nscalar JSONObject\n\n\"\"\"\n An object with an ID.\n\"\"\"\ninterface Node {\n \"\"\"\n The ID of the node.\n \"\"\"\n id: ID!\n}\n\n# Pagination information. See https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo.\ntype PageInfo {\n # Whether there is a next page of nodes in the connection.\n hasNextPage: Boolean!\n}\n\n\"\"\"\n Represents a null return value.\n\"\"\"\ntype EmptyResponse {\n # A dummy null value.\n alwaysNil: String\n}\n\ntype FieldError {\n field: String!\n message: String!\n}\n\ninput Sort{\n key: String!,\n value: SortEnum!,\n}\n\nenum SortEnum{\n ASC,\n DESC\n}\n\ntype Query {\n \"\"\"\n Looks up a node by ID.\n \"\"\"\n node(id: ID!): Node\n}\n\ntype Mutation {\n dummy: Int\n}\n\ntype Subscription {\n dummy: Int\n}\n\ntype AdminIdeSettings {\n dummy: Int\n}\n\nenum
|
|
1
|
+
var commonSchema = "scalar AnyObject\nscalar Date\nscalar Time\nscalar DateTime\nscalar Timestamp\nscalar URI\nscalar URIInput\nscalar Observable\nscalar JSON\nscalar JSONObject\n\n\"\"\"\n An object with an ID.\n\"\"\"\ninterface Node {\n \"\"\"\n The ID of the node.\n \"\"\"\n id: ID!\n}\n\n# Pagination information. See https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo.\ntype PageInfo {\n # Whether there is a next page of nodes in the connection.\n hasNextPage: Boolean!\n}\n\n\"\"\"\n Represents a null return value.\n\"\"\"\ntype EmptyResponse {\n # A dummy null value.\n alwaysNil: String\n}\n\ntype FieldError {\n field: String!\n message: String!\n}\n\ninput Sort{\n key: String!,\n value: SortEnum!,\n}\n\nenum SortEnum{\n ASC,\n DESC\n}\n\ntype Query {\n \"\"\"\n Looks up a node by ID.\n \"\"\"\n node(id: ID!): Node\n}\n\ntype Mutation {\n dummy: Int\n}\n\ntype Subscription {\n dummy: Int\n}\n\ntype AdminIdeSettings {\n dummy: Int\n}\n\nenum ContributionSchemaId {\n dummy\n}\n\nenum ContributionExtensionName {\n dummy\n}\n\n\"\"\" All Moleculer Topic names are extended from this.\"\"\"\nenum MoleculerServiceName {\n dummy\n}\n\nenum MailTemplateId {\n dummy\n}\n\nenum MoleculerCronServiceName {\n dummy\n}\n\n\"\"\"\n Used for Settings passed in the ContainerModule\n\"\"\"\ninterface IResourceUtilizationSettings {\n subTopic: String\n adminApiNamespace: String\n}\n\n\"\"\"\nTo calculate geometry over an Eath-like sphere.\nList the `longitude` first and then `latitude`\n - Validate longitude values are between `-180` and `180`\n - Validate latitude values are between `-90` and `90`\n\"\"\"\ntype GeoLocation {\n coordinates: [Float]\n}\n\"\"\"\nInput geometry of the location.\nList the `longitude` first and then `latitude`\n - Validate longitude values are between `-180` and `180`\n - Validate latitude values are between `-90` and `90`\n\"\"\"\ninput GeoLocationInput {\n type: String = \"Point\"\n coordinates: [Float]\n}\n\nschema {\n query: Query\n mutation: Mutation\n subscription: Subscription\n}\n";
|
|
2
2
|
export{commonSchema as default};//# sourceMappingURL=common-schema.graphql.js.map
|
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.11",
|
|
4
4
|
"description": "graphql api for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@cdm-logger/core": ">=7.0.12",
|
|
31
|
-
"@common-stack/server-core": "7.
|
|
31
|
+
"@common-stack/server-core": "7.2.1-alpha.10",
|
|
32
32
|
"lodash": "^4.17.21"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "d1fafb47a50adba44f36625aad64c0866f24325b",
|
|
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 ContributionSchemaId {
|
|
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
|