@adminide-stack/marketplace-module-server 10.0.2-alpha.4 → 10.0.6-alpha.0
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/lib/graphql/schemas/index.d.ts +0 -2
- package/lib/graphql/schemas/index.d.ts.map +1 -1
- package/lib/module.d.ts.map +1 -1
- package/lib/module.js +1 -2
- package/lib/module.js.map +1 -1
- package/lib/services/extension-service.d.ts.map +1 -1
- package/lib/services/extension-service.js.map +1 -1
- package/package.json +5 -5
- package/lib/graphql/schemas/schema.graphql +0 -297
- package/lib/graphql/schemas/schema.graphql.js +0 -2
- package/lib/graphql/schemas/schema.graphql.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/schemas/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graphql/schemas/index.ts"],"names":[],"mappings":""}
|
package/lib/module.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;;
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;;AAWpD,wBAsBG"}
|
package/lib/module.js
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
import {find,get}from'lodash-es';import {Feature}from'@common-stack/server-core';import {TYPES}from'./constants/types.js';import
|
1
|
+
import {find,get}from'lodash-es';import {Feature}from'@common-stack/server-core';import {TYPES}from'./constants/types.js';import {resolver}from'./graphql/resolvers/resolvers.js';import {extensionModule}from'./containers/module.js';const extensionServiceGen = container => {
|
2
2
|
container.get('Environment');
|
3
3
|
return {
|
4
4
|
registryExtensionService: container.get(TYPES.IRegistryExtensionService)
|
5
5
|
};
|
6
6
|
};
|
7
7
|
var module = new Feature({
|
8
|
-
schema,
|
9
8
|
createResolversFunc: resolver,
|
10
9
|
createContainerFunc: [extensionModule],
|
11
10
|
createServiceFunc: extensionServiceGen,
|
package/lib/module.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"module.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"module.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extension-service.d.ts","sourceRoot":"","sources":["../../src/services/extension-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAG5G,qBACa,wBAAyB,YAAW,yBAAyB;IAKlE,OAAO,CAAC,mBAAmB;IAJ/B,OAAO,CAAC,MAAM,CAAoB;gBAItB,mBAAmB,EAAE,4BAA4B,EAGzD,MAAM,EAAE,SAAS,CAAC,OAAO;IAKhB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;+
|
1
|
+
{"version":3,"file":"extension-service.d.ts","sourceRoot":"","sources":["../../src/services/extension-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAG5G,qBACa,wBAAyB,YAAW,yBAAyB;IAKlE,OAAO,CAAC,mBAAmB;IAJ/B,OAAO,CAAC,MAAM,CAAoB;gBAItB,mBAAmB,EAAE,4BAA4B,EAGzD,MAAM,EAAE,SAAS,CAAC,OAAO;IAKhB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;+EAoC+61S,kCAAiB;6CAA4R,kCAAiB;4DAA4G,kCAAiB;YAAoP,8BAAc;yCAA8G,mCAAkB;;cAAwM,kCAAkB;;;2CAAud,kCAAiB;2CAA8G,kCAAiB;qCAAwF,kCAAiB;cAA+L,kCAAkB;yCAAsE,kCAAiB;qDAA6H,mCAAkB;;IAhC9n6S,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAKrD,iBAAiB,CAAC,WAAW,EAAE,MAAM;IAKrC,eAAe,CAAC,WAAW,EAAE,MAAM;IAInC,gBAAgB,CAAC,OAAO,KAAA;IAIxB,cAAc,CACvB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,OAAO,EACf,MAAM,CAAC,EAAE,OAAO,EAChB,sBAAsB,CAAC,EAAE,MAAM,EAAE;IAKxB,aAAa,CAAC,WAAW,EAAE,MAAM;CAGjD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extension-service.js","sources":["../../src/services/extension-service.ts"],"sourcesContent":[null],"names":[],"mappings":"+JACA,IAAA;AAUgB,IAAA,wBAAA,GAAA,0BAAiD,GAAA,MAAA,wBAGhC,CAAA;AAKhB,EAAA,mBAA2B;;;
|
1
|
+
{"version":3,"file":"extension-service.js","sources":["../../src/services/extension-service.ts"],"sourcesContent":[null],"names":[],"mappings":"+JACA,IAAA;AAUgB,IAAA,wBAAA,GAAA,0BAAiD,GAAA,MAAA,wBAGhC,CAAA;AAKhB,EAAA,mBAA2B;;;kDAoCmw2S;;eAA+X,EAAA,0BAAA,CAAA;;;uBAA0V,CAAA,WAAA,EAAA,IAAA,EAAA;;;6CAAwe,EAAA;uDAA+H,CAAA,WAAA,EAAA,IAAA,CAAA;;;;0DAAgiB,CAAA,CAAA,CAAA;;AAhC9n6S;QAKiB,eAAY,CAAA,WAAE,EAAM;IAKrC,OAAe,IAAA,CAAA,mBAAoB,CAAA,eAAA,CAAA,WAAA,CAAA;;QAQrB,gBAClB,CAAE,OAAM,EACb;IAQS,OAAa,IAAA,CAAA,mBAAoB,CAAA,gBAAA,CAAA,OAAA,CAAA;AAGjD;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@adminide-stack/marketplace-module-server",
|
3
|
-
"version": "10.0.
|
3
|
+
"version": "10.0.6-alpha.0",
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
5
5
|
"license": "ISC",
|
6
6
|
"author": "CDMBase LLC",
|
@@ -21,8 +21,8 @@
|
|
21
21
|
"watch": "yarn build:lib:watch"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@adminide-stack/extension-api": "10.0.
|
25
|
-
"common": "
|
24
|
+
"@adminide-stack/extension-api": "10.0.6-alpha.0",
|
25
|
+
"common": "3.1.1-alpha.7",
|
26
26
|
"nanoid": "^5.0.7"
|
27
27
|
},
|
28
28
|
"peerDependencies": {
|
@@ -31,8 +31,8 @@
|
|
31
31
|
"publishConfig": {
|
32
32
|
"access": "public"
|
33
33
|
},
|
34
|
+
"gitHead": "3ed6244a67615226972d65a4332d997d420ad519",
|
34
35
|
"typescript": {
|
35
36
|
"definition": "lib/index.d.ts"
|
36
|
-
}
|
37
|
-
"gitHead": "707b2601a30f7ac9d18cbbc01cf9d015870fbf0f"
|
37
|
+
}
|
38
38
|
}
|
@@ -1,297 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
""" A publisher of a registry extension."""
|
4
|
-
# TODO: union RegistryPublisher = User | String
|
5
|
-
type RegistryPublisher {
|
6
|
-
UserId: String
|
7
|
-
}
|
8
|
-
|
9
|
-
|
10
|
-
""" A list of publishers of extensions in the registry."""
|
11
|
-
type RegistryPublisherConnection {
|
12
|
-
""" A list of publishers."""
|
13
|
-
nodes: [RegistryPublisher!]!
|
14
|
-
"""
|
15
|
-
The total count of publishers in the connection. This total count may be larger than the number of
|
16
|
-
nodes in the object when result is paginated.
|
17
|
-
"""
|
18
|
-
totalCount: Int!
|
19
|
-
""" Pagination information."""
|
20
|
-
pageInfo: PageInfo!
|
21
|
-
}
|
22
|
-
|
23
|
-
""" The result of Mutation.extensionRegistry.createExtension."""
|
24
|
-
type ExtensionRegistryCreateExtensionResult {
|
25
|
-
""" The newly created extension."""
|
26
|
-
extension: RegistryExtension!
|
27
|
-
}
|
28
|
-
|
29
|
-
""" The result of Mutation.extensionRegistry.updateExtension."""
|
30
|
-
type ExtensionRegistryUpdateExtensionResult {
|
31
|
-
""" The newly updated extension."""
|
32
|
-
extension: RegistryExtension!
|
33
|
-
}
|
34
|
-
|
35
|
-
""" The result of Mutation.extensionRegistry.publishExtension."""
|
36
|
-
type ExtensionRegistryPublishExtensionResult {
|
37
|
-
""" The extension that was just published."""
|
38
|
-
extension: RegistryExtension!
|
39
|
-
}
|
40
|
-
|
41
|
-
""" An extenion's listing in the extension registry."""
|
42
|
-
type RegistryExtension implements Node {
|
43
|
-
""" The unique, opaque, permanent ID of the extension. Do not display this ID to the user; display
|
44
|
-
RegistryExtension.extensionID instead (it is friendlier and still unique, but it can be renamed)."""
|
45
|
-
id: ID!
|
46
|
-
"""
|
47
|
-
The UUID of the extension. This identifies the extension externally (along with the origin). The UUID maps
|
48
|
-
1-t0-1 to RegistryExtension.id.
|
49
|
-
"""
|
50
|
-
uuid: String!
|
51
|
-
""" The publisher of the extension. If this extension is from a remote registry, the publisher may be null."""
|
52
|
-
publisher: RegistryPublisher
|
53
|
-
""" The qualified, unique name that refers to this extension, consisting of the registry name (if non-default),
|
54
|
-
publisher's name, and the extension's name, all joined by "/" (for example, "cdecode/my-extension-name")."""
|
55
|
-
extensionID: String
|
56
|
-
""" The extension ID without the registry name."""
|
57
|
-
extensionIDWithoutRegistry: String
|
58
|
-
""" The name of the extension (not including the publisher's name)."""
|
59
|
-
name: String!
|
60
|
-
""" Latest Published version """
|
61
|
-
version: String
|
62
|
-
|
63
|
-
# DEPRECATED use the one under Manifest
|
64
|
-
activationEvents: [String]
|
65
|
-
|
66
|
-
""" The extension manifest, or null if none is set."""
|
67
|
-
manifest: ExtensionManifest
|
68
|
-
""" The date when this extension was last updated on the registry."""
|
69
|
-
updatedAt: String
|
70
|
-
""" The URL to the extension on this CDECode site."""
|
71
|
-
url: String
|
72
|
-
""" The URL to the extension on the extension registry where it lives (if this is a remote
|
73
|
-
extension). If this extension is local, then this field's value is null."""
|
74
|
-
remoteURL: String
|
75
|
-
""" Whether the registry extension is published on this CDECode site."""
|
76
|
-
isLocal: Boolean
|
77
|
-
""" Whether the viewer has admin privileges on this registry extension."""
|
78
|
-
viewerCanAdminister: Boolean
|
79
|
-
""" Extension Releases """
|
80
|
-
releases: [ExtensionRelease]
|
81
|
-
}
|
82
|
-
|
83
|
-
""" A list of registry extensions."""
|
84
|
-
type RegistryExtensionConnection {
|
85
|
-
""" A list of registry extensions."""
|
86
|
-
nodes: [RegistryExtension!]!
|
87
|
-
"""
|
88
|
-
The total count of registry extensions in the connection. This total cound may be larger than the number of
|
89
|
-
nodes in this object when the result is paginated.
|
90
|
-
"""
|
91
|
-
totalCount: Int!
|
92
|
-
""" Pagination information """
|
93
|
-
pageInfo: PageInfo!
|
94
|
-
""" location of the extension path for example: /extensions/<extension_user>/<extension_name> """
|
95
|
-
url: String
|
96
|
-
"""
|
97
|
-
Errors that occured while communicating with remote registries to obtain the list of extensions.
|
98
|
-
|
99
|
-
In order to be able to return local extensions even when the remote registry is unreachable, errors are
|
100
|
-
recorded here instead of in the top-level GraphQL errors list.
|
101
|
-
"""
|
102
|
-
error: String
|
103
|
-
}
|
104
|
-
|
105
|
-
# An extension registry.
|
106
|
-
type ExtensionRegistry {
|
107
|
-
""" To find an extension by its GraphQL ID, use Query.node """
|
108
|
-
extension(extensionID: String!): RegistryExtension
|
109
|
-
"""
|
110
|
-
Find an extension by its extension ID (which is the concatenation of the publisher naem, a slash ("/"), and the extension name).
|
111
|
-
|
112
|
-
To find an extension by its GraphQL ID, use Query.node
|
113
|
-
extension(extensionID: String!): RegistryExtension
|
114
|
-
A list of extensions published in the extension registry.
|
115
|
-
"""
|
116
|
-
extensions(
|
117
|
-
""" Returns the first n extensions from the list."""
|
118
|
-
first: Int
|
119
|
-
""" Returns only extensions from this publisher. """
|
120
|
-
publisher: ID
|
121
|
-
"""
|
122
|
-
Returns only extensions matching the query.
|
123
|
-
|
124
|
-
The following keywords are supported:
|
125
|
-
|
126
|
-
- category:"C" - includes only extensions in the given category.
|
127
|
-
- tag:"T" - includes only extensions in the given tag.
|
128
|
-
|
129
|
-
The following keywords are ignored by the server (so that the frontend can psot-process the result set to
|
130
|
-
implement the keywords):
|
131
|
-
|
132
|
-
- #installed - include only installed extensions.
|
133
|
-
- #enabled - include only enabled extensions.
|
134
|
-
- #disabled - include only disabled extensions.
|
135
|
-
"""
|
136
|
-
query: String
|
137
|
-
""" Include extensions from the local-registry. """
|
138
|
-
local: Boolean = true
|
139
|
-
""" Include extensions from remote registries. """
|
140
|
-
remote: Boolean = true
|
141
|
-
"""
|
142
|
-
Sorts the list of extensions results such that the extensions with these IDs are first in the result set.
|
143
|
-
|
144
|
-
Typically, the client passes the list of added and enabled extension IDs in this parameter so that the
|
145
|
-
results include those extensions first (which is typically what the user prefers).
|
146
|
-
"""
|
147
|
-
prioritizeExtensionIDs: [String!]
|
148
|
-
""" Include WIP (work-in-progress) extensions. """
|
149
|
-
includeWIP: Boolean = true
|
150
|
-
): RegistryExtensionConnection!
|
151
|
-
""" List of extension releases """
|
152
|
-
releases(extensionID: String!): [ExtensionRelease]
|
153
|
-
""" A list of publishers with at least 1 extension in the registry. """
|
154
|
-
publishers(
|
155
|
-
""" Return the first n publishers from the list. """
|
156
|
-
first: Int
|
157
|
-
): RegistryPublisherConnection!
|
158
|
-
""" A list of publishers that the viewer may publish extensions as. """
|
159
|
-
viewerPublishers: [RegistryPublisher!]!
|
160
|
-
"""
|
161
|
-
The extension ID prefix for extensions that are published in the local extension registry. This is the
|
162
|
-
hostname ( and port, if non-default HTTP/HTTPS) of the CDEBase "appURL" site configuration property.
|
163
|
-
|
164
|
-
It is null if extensions published on this CDEBase site do not have an extension ID prefix.
|
165
|
-
|
166
|
-
Examples: "cdebase.example.com/", "cdebase.example.com:1234/"
|
167
|
-
"""
|
168
|
-
localExtensionIDPrefix: String
|
169
|
-
}
|
170
|
-
|
171
|
-
""" A CDECode product documentation page."""
|
172
|
-
type DocSitePage {
|
173
|
-
""" The title of this page."""
|
174
|
-
title: String!
|
175
|
-
""" The content, as Markdown-rendered HTML."""
|
176
|
-
contentHTML: String!
|
177
|
-
""" The page index, as rendered HTML."""
|
178
|
-
indexHTML: String!
|
179
|
-
""" The filename of the file containing this page's content."""
|
180
|
-
filePath: String!
|
181
|
-
}
|
182
|
-
|
183
|
-
type ExtensionRelease {
|
184
|
-
id: ID
|
185
|
-
bundle: String
|
186
|
-
bundleURL: String
|
187
|
-
version: String
|
188
|
-
manifest: String!
|
189
|
-
sourceMap: String
|
190
|
-
extensionID: String
|
191
|
-
creatorUserId: String
|
192
|
-
releaseVersion: String
|
193
|
-
activationEvents: [String]
|
194
|
-
}
|
195
|
-
|
196
|
-
extend type Mutation {
|
197
|
-
""" Create a new extension in the extension registry."""
|
198
|
-
createExtension(
|
199
|
-
""" The ID of the extension's publisher (a user or organization)."""
|
200
|
-
publisher: ID!
|
201
|
-
""" The name of the extension."""
|
202
|
-
name: String!
|
203
|
-
): RegistryExtension!
|
204
|
-
"""
|
205
|
-
Update an extension in the extension registry.
|
206
|
-
|
207
|
-
Only authorized extension publishers may perform this mutation.
|
208
|
-
"""
|
209
|
-
updateExtension(
|
210
|
-
""" The extension to update."""
|
211
|
-
extension: ID!
|
212
|
-
""" The new name of the extension, or null or leave unchanged."""
|
213
|
-
name: String
|
214
|
-
): RegistryExtension!
|
215
|
-
"""
|
216
|
-
Delete an extension from the extension registry.
|
217
|
-
|
218
|
-
Only authorized extension publishers may perform this mutation.
|
219
|
-
"""
|
220
|
-
deleteExtension(
|
221
|
-
""" The ID of the extension to delete."""
|
222
|
-
extension: ID!
|
223
|
-
): EmptyResponse!
|
224
|
-
"""
|
225
|
-
Publish an extension in the extension registry, creating it (if it doesn't yet exist) or updating it (if it
|
226
|
-
does).
|
227
|
-
|
228
|
-
This is a helper that wraps multiple other GraphQL mutations to expose a single API for publishing an
|
229
|
-
extension.
|
230
|
-
"""
|
231
|
-
publishExtension(
|
232
|
-
"""
|
233
|
-
The extension ID of the extension to publish. If a host prefix (ex., "cdebase.example.com/") is
|
234
|
-
needed and it is not included, it is automatically prepended.
|
235
|
-
|
236
|
-
Examples: "alice/myextension", "acmecorp/myextension"
|
237
|
-
"""
|
238
|
-
name: String
|
239
|
-
""" The extension version """
|
240
|
-
version: String
|
241
|
-
extensionID: String!
|
242
|
-
""" The extension manifest (as JSON)."""
|
243
|
-
manifest: String!
|
244
|
-
""" The bundled JavaScript source of the extension."""
|
245
|
-
bundle: String
|
246
|
-
"""
|
247
|
-
The source map of the extension's JavaScript bundle, if any
|
248
|
-
The JavaScript bunle's "//#sourceMappingURL=" directive, if any, is ignored. When the bundle is served,
|
249
|
-
the source map provided here is referenced instead.
|
250
|
-
"""
|
251
|
-
sourceMap: String
|
252
|
-
""" Force publish even if there are warnings (such as invalid JSON warnings)."""
|
253
|
-
force: Boolean = false
|
254
|
-
): ExtensionRegistryPublishExtensionResult!
|
255
|
-
}
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
extend type Query {
|
260
|
-
############## DEPRECATED: use ExtensionRegistry ######################
|
261
|
-
# Find an extension by its extension ID (which is the concatenation of the publisher naem, a slash ("/"), and the extension name).
|
262
|
-
#
|
263
|
-
# To find an extension by its GraphQL ID, use Query.node
|
264
|
-
extension(extensionID: String!): RegistryExtension
|
265
|
-
# A list of extensions published in the extension registry.
|
266
|
-
extensions(
|
267
|
-
# Returns the first n extensions from the list.
|
268
|
-
first: Int
|
269
|
-
# Returns only extensions from this publisher.
|
270
|
-
query: String
|
271
|
-
# Include extensions from the local-registry.
|
272
|
-
local: Boolean = true
|
273
|
-
# Include extensions from remote registries.
|
274
|
-
remote: Boolean = true
|
275
|
-
# Sorts the list of extensions results such that the extensions with these IDs are first in the result set.
|
276
|
-
#
|
277
|
-
# Typically, the client passes the list of added and enabled extension IDs in this parameter so that the
|
278
|
-
# results include those extensions first (which is typically what the user prefers).
|
279
|
-
prioritizeExtensionIDs: [String!]
|
280
|
-
# Include WIP (work-in-progress) extensions.
|
281
|
-
includeWIP: Boolean = true
|
282
|
-
): RegistryExtensionConnection!
|
283
|
-
# List of extension releases
|
284
|
-
releases(extensionID: String!): [ExtensionRelease]
|
285
|
-
#################### DEPRECATED CODE END ##############################
|
286
|
-
""" The extension registry. """
|
287
|
-
extensionRegistry: ExtensionRegistry!
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
"""
|
292
|
-
The CDECode documentation page for the given path, used to serve the content for help
|
293
|
-
pages under the URL path /help on the CDECode instance. If no page exists at the path,
|
294
|
-
null is returned.
|
295
|
-
"""
|
296
|
-
docSitePage(path: String!): DocSitePage
|
297
|
-
}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
var schema = "\n\n\"\"\" A publisher of a registry extension.\"\"\"\n# TODO: union RegistryPublisher = User | String\ntype RegistryPublisher {\n UserId: String\n}\n\n\n\"\"\" A list of publishers of extensions in the registry.\"\"\"\ntype RegistryPublisherConnection {\n \"\"\" A list of publishers.\"\"\"\n nodes: [RegistryPublisher!]!\n \"\"\" \n The total count of publishers in the connection. This total count may be larger than the number of\n nodes in the object when result is paginated.\n \"\"\"\n totalCount: Int!\n \"\"\" Pagination information.\"\"\"\n pageInfo: PageInfo!\n}\n\n\"\"\" The result of Mutation.extensionRegistry.createExtension.\"\"\"\ntype ExtensionRegistryCreateExtensionResult {\n \"\"\" The newly created extension.\"\"\"\n extension: RegistryExtension!\n}\n\n\"\"\" The result of Mutation.extensionRegistry.updateExtension.\"\"\"\ntype ExtensionRegistryUpdateExtensionResult {\n \"\"\" The newly updated extension.\"\"\"\n extension: RegistryExtension!\n}\n\n\"\"\" The result of Mutation.extensionRegistry.publishExtension.\"\"\"\ntype ExtensionRegistryPublishExtensionResult {\n \"\"\" The extension that was just published.\"\"\"\n extension: RegistryExtension!\n}\n\n\"\"\" An extenion's listing in the extension registry.\"\"\"\ntype RegistryExtension implements Node {\n \"\"\" The unique, opaque, permanent ID of the extension. Do not display this ID to the user; display\n RegistryExtension.extensionID instead (it is friendlier and still unique, but it can be renamed).\"\"\"\n id: ID!\n \"\"\" \n The UUID of the extension. This identifies the extension externally (along with the origin). The UUID maps\n 1-t0-1 to RegistryExtension.id.\n \"\"\"\n uuid: String!\n \"\"\" The publisher of the extension. If this extension is from a remote registry, the publisher may be null.\"\"\"\n publisher: RegistryPublisher\n \"\"\" The qualified, unique name that refers to this extension, consisting of the registry name (if non-default),\n publisher's name, and the extension's name, all joined by \"/\" (for example, \"cdecode/my-extension-name\").\"\"\"\n extensionID: String\n \"\"\" The extension ID without the registry name.\"\"\"\n extensionIDWithoutRegistry: String\n \"\"\" The name of the extension (not including the publisher's name).\"\"\"\n name: String!\n \"\"\" Latest Published version \"\"\"\n version: String\n\n # DEPRECATED use the one under Manifest\n activationEvents: [String]\n\n \"\"\" The extension manifest, or null if none is set.\"\"\"\n manifest: ExtensionManifest\n \"\"\" The date when this extension was last updated on the registry.\"\"\"\n updatedAt: String\n \"\"\" The URL to the extension on this CDECode site.\"\"\"\n url: String\n \"\"\" The URL to the extension on the extension registry where it lives (if this is a remote\n extension). If this extension is local, then this field's value is null.\"\"\"\n remoteURL: String\n \"\"\" Whether the registry extension is published on this CDECode site.\"\"\"\n isLocal: Boolean\n \"\"\" Whether the viewer has admin privileges on this registry extension.\"\"\"\n viewerCanAdminister: Boolean\n \"\"\" Extension Releases \"\"\"\n releases: [ExtensionRelease]\n}\n\n\"\"\" A list of registry extensions.\"\"\"\ntype RegistryExtensionConnection {\n \"\"\" A list of registry extensions.\"\"\"\n nodes: [RegistryExtension!]!\n \"\"\" \n The total count of registry extensions in the connection. This total cound may be larger than the number of\n nodes in this object when the result is paginated.\n \"\"\"\n totalCount: Int!\n \"\"\" Pagination information \"\"\"\n pageInfo: PageInfo!\n \"\"\" location of the extension path for example: /extensions/<extension_user>/<extension_name> \"\"\"\n url: String\n \"\"\" \n Errors that occured while communicating with remote registries to obtain the list of extensions.\n \n In order to be able to return local extensions even when the remote registry is unreachable, errors are\n recorded here instead of in the top-level GraphQL errors list.\n \"\"\"\n error: String\n}\n\n# An extension registry.\ntype ExtensionRegistry {\n \"\"\" To find an extension by its GraphQL ID, use Query.node \"\"\"\n extension(extensionID: String!): RegistryExtension\n \"\"\" \n Find an extension by its extension ID (which is the concatenation of the publisher naem, a slash (\"/\"), and the extension name).\n \n To find an extension by its GraphQL ID, use Query.node\n extension(extensionID: String!): RegistryExtension\n A list of extensions published in the extension registry. \n \"\"\"\n extensions(\n \"\"\" Returns the first n extensions from the list.\"\"\"\n first: Int\n \"\"\" Returns only extensions from this publisher. \"\"\"\n publisher: ID\n \"\"\"\n Returns only extensions matching the query.\n\n The following keywords are supported:\n\n - category:\"C\" - includes only extensions in the given category.\n - tag:\"T\" - includes only extensions in the given tag.\n\n The following keywords are ignored by the server (so that the frontend can psot-process the result set to\n implement the keywords):\n\n - #installed - include only installed extensions.\n - #enabled - include only enabled extensions.\n - #disabled - include only disabled extensions.\n \"\"\"\n query: String\n \"\"\" Include extensions from the local-registry. \"\"\"\n local: Boolean = true\n \"\"\" Include extensions from remote registries. \"\"\"\n remote: Boolean = true\n \"\"\" \n Sorts the list of extensions results such that the extensions with these IDs are first in the result set.\n \n Typically, the client passes the list of added and enabled extension IDs in this parameter so that the\n results include those extensions first (which is typically what the user prefers).\n \"\"\"\n prioritizeExtensionIDs: [String!]\n \"\"\" Include WIP (work-in-progress) extensions. \"\"\" \n includeWIP: Boolean = true\n ): RegistryExtensionConnection!\n \"\"\" List of extension releases \"\"\"\n releases(extensionID: String!): [ExtensionRelease]\n \"\"\" A list of publishers with at least 1 extension in the registry. \"\"\"\n publishers(\n \"\"\" Return the first n publishers from the list. \"\"\"\n first: Int\n ): RegistryPublisherConnection!\n \"\"\" A list of publishers that the viewer may publish extensions as. \"\"\"\n viewerPublishers: [RegistryPublisher!]!\n \"\"\" \n The extension ID prefix for extensions that are published in the local extension registry. This is the\n hostname ( and port, if non-default HTTP/HTTPS) of the CDEBase \"appURL\" site configuration property.\n \n It is null if extensions published on this CDEBase site do not have an extension ID prefix.\n \n Examples: \"cdebase.example.com/\", \"cdebase.example.com:1234/\" \n \"\"\"\n localExtensionIDPrefix: String \n}\n\n\"\"\" A CDECode product documentation page.\"\"\"\ntype DocSitePage {\n \"\"\" The title of this page.\"\"\"\n title: String!\n \"\"\" The content, as Markdown-rendered HTML.\"\"\"\n contentHTML: String!\n \"\"\" The page index, as rendered HTML.\"\"\"\n indexHTML: String!\n \"\"\" The filename of the file containing this page's content.\"\"\"\n filePath: String!\n}\n\ntype ExtensionRelease {\n id: ID\n bundle: String\n bundleURL: String\n version: String\n manifest: String!\n sourceMap: String\n extensionID: String\n creatorUserId: String\n releaseVersion: String\n activationEvents: [String]\n}\n\nextend type Mutation {\n \"\"\" Create a new extension in the extension registry.\"\"\"\n createExtension(\n \"\"\" The ID of the extension's publisher (a user or organization).\"\"\"\n publisher: ID!\n \"\"\" The name of the extension.\"\"\"\n name: String!\n ): RegistryExtension!\n \"\"\"\n Update an extension in the extension registry.\n \n Only authorized extension publishers may perform this mutation.\n \"\"\"\n updateExtension(\n \"\"\" The extension to update.\"\"\"\n extension: ID!\n \"\"\" The new name of the extension, or null or leave unchanged.\"\"\"\n name: String\n ): RegistryExtension!\n \"\"\"\n Delete an extension from the extension registry.\n \n Only authorized extension publishers may perform this mutation.\n \"\"\"\n deleteExtension(\n \"\"\" The ID of the extension to delete.\"\"\"\n extension: ID!\n ): EmptyResponse!\n \"\"\"\n Publish an extension in the extension registry, creating it (if it doesn't yet exist) or updating it (if it \n does).\n \n This is a helper that wraps multiple other GraphQL mutations to expose a single API for publishing an\n extension.\n \"\"\"\n publishExtension(\n \"\"\" \n The extension ID of the extension to publish. If a host prefix (ex., \"cdebase.example.com/\") is\n needed and it is not included, it is automatically prepended.\n \n Examples: \"alice/myextension\", \"acmecorp/myextension\" \n \"\"\"\n name: String\n \"\"\" The extension version \"\"\"\n version: String\n extensionID: String!\n \"\"\" The extension manifest (as JSON).\"\"\"\n manifest: String!\n \"\"\" The bundled JavaScript source of the extension.\"\"\"\n bundle: String\n \"\"\" \n The source map of the extension's JavaScript bundle, if any\n The JavaScript bunle's \"//#sourceMappingURL=\" directive, if any, is ignored. When the bundle is served,\n the source map provided here is referenced instead.\n \"\"\"\n sourceMap: String\n \"\"\" Force publish even if there are warnings (such as invalid JSON warnings).\"\"\"\n force: Boolean = false\n ): ExtensionRegistryPublishExtensionResult!\n}\n\n\n\nextend type Query {\n ############## DEPRECATED: use ExtensionRegistry ######################\n # Find an extension by its extension ID (which is the concatenation of the publisher naem, a slash (\"/\"), and the extension name).\n #\n # To find an extension by its GraphQL ID, use Query.node\n extension(extensionID: String!): RegistryExtension\n # A list of extensions published in the extension registry.\n extensions(\n # Returns the first n extensions from the list.\n first: Int\n # Returns only extensions from this publisher.\n query: String\n # Include extensions from the local-registry.\n local: Boolean = true\n # Include extensions from remote registries.\n remote: Boolean = true\n # Sorts the list of extensions results such that the extensions with these IDs are first in the result set.\n #\n # Typically, the client passes the list of added and enabled extension IDs in this parameter so that the\n # results include those extensions first (which is typically what the user prefers).\n prioritizeExtensionIDs: [String!]\n # Include WIP (work-in-progress) extensions.\n includeWIP: Boolean = true\n ): RegistryExtensionConnection!\n # List of extension releases\n releases(extensionID: String!): [ExtensionRelease]\n #################### DEPRECATED CODE END ##############################\n \"\"\" The extension registry. \"\"\"\n extensionRegistry: ExtensionRegistry!\n\n\n\n \"\"\" \n The CDECode documentation page for the given path, used to serve the content for help\n pages under the URL path /help on the CDECode instance. If no page exists at the path,\n null is returned. \n \"\"\"\n docSitePage(path: String!): DocSitePage\n}";
|
2
|
-
export{schema as default};//# sourceMappingURL=schema.graphql.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"schema.graphql.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|