@adminide-stack/marketplace-module-server 10.0.1-alpha.0 → 10.0.1-alpha.2

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.
@@ -0,0 +1,297 @@
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminide-stack/marketplace-module-server",
3
- "version": "10.0.1-alpha.0",
3
+ "version": "10.0.1-alpha.2",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -21,9 +21,9 @@
21
21
  "watch": "yarn build:lib:watch"
22
22
  },
23
23
  "dependencies": {
24
- "@adminide-stack/extension-api": "10.0.1-alpha.0",
24
+ "@adminide-stack/extension-api": "10.0.1-alpha.2",
25
25
  "@adminide-stack/marketplace-module-core": "link:../core",
26
- "common": "10.0.1-alpha.0",
26
+ "common": "10.0.1-alpha.2",
27
27
  "nanoid": "^5.0.7"
28
28
  },
29
29
  "peerDependencies": {
@@ -35,5 +35,5 @@
35
35
  "typescript": {
36
36
  "definition": "lib/index.d.ts"
37
37
  },
38
- "gitHead": "e962317f6f6dde3996d285d3307dc1a29c47edc7"
38
+ "gitHead": "48fa8208e5d098ed971a78a30ab4bbf9bc2a4ed9"
39
39
  }