@adminide-stack/marketplace-module-server 10.0.2-alpha.16 → 10.0.2-alpha.18
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/package.json +3 -3
- package/lib/graphql/schemas/schema.graphql +0 -120
- 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,wBAuBG"}
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@adminide-stack/marketplace-module-server",
|
3
|
-
"version": "10.0.2-alpha.
|
3
|
+
"version": "10.0.2-alpha.18",
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
5
5
|
"license": "ISC",
|
6
6
|
"author": "CDMBase LLC",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"watch": "yarn build:lib:watch"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@adminide-stack/extension-api": "10.0.2-alpha.
|
24
|
+
"@adminide-stack/extension-api": "10.0.2-alpha.17",
|
25
25
|
"common": "10.0.2-alpha.4",
|
26
26
|
"nanoid": "^5.0.7"
|
27
27
|
},
|
@@ -34,5 +34,5 @@
|
|
34
34
|
"typescript": {
|
35
35
|
"definition": "lib/index.d.ts"
|
36
36
|
},
|
37
|
-
"gitHead": "
|
37
|
+
"gitHead": "777bd40e6d6ab280ed16a1882260b17c9586b309"
|
38
38
|
}
|
@@ -1,120 +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
|
-
|
24
|
-
|
25
|
-
""" A CDECode product documentation page."""
|
26
|
-
type DocSitePage {
|
27
|
-
""" The title of this page."""
|
28
|
-
title: String!
|
29
|
-
""" The content, as Markdown-rendered HTML."""
|
30
|
-
contentHTML: String!
|
31
|
-
""" The page index, as rendered HTML."""
|
32
|
-
indexHTML: String!
|
33
|
-
""" The filename of the file containing this page's content."""
|
34
|
-
filePath: String!
|
35
|
-
}
|
36
|
-
|
37
|
-
type ExtensionRelease {
|
38
|
-
id: ID
|
39
|
-
bundle: String
|
40
|
-
bundleURL: String
|
41
|
-
version: String
|
42
|
-
manifest: String!
|
43
|
-
sourceMap: String
|
44
|
-
extensionID: String
|
45
|
-
creatorUserId: String
|
46
|
-
releaseVersion: String
|
47
|
-
activationEvents: [String]
|
48
|
-
}
|
49
|
-
|
50
|
-
extend type Mutation {
|
51
|
-
""" Create a new extension in the extension registry."""
|
52
|
-
createExtension(
|
53
|
-
""" The ID of the extension's publisher (a user or organization)."""
|
54
|
-
publisher: ID!
|
55
|
-
""" The name of the extension."""
|
56
|
-
name: String!
|
57
|
-
): RegistryExtension!
|
58
|
-
"""
|
59
|
-
Update an extension in the extension registry.
|
60
|
-
|
61
|
-
Only authorized extension publishers may perform this mutation.
|
62
|
-
"""
|
63
|
-
updateExtension(
|
64
|
-
""" The extension to update."""
|
65
|
-
extension: ID!
|
66
|
-
""" The new name of the extension, or null or leave unchanged."""
|
67
|
-
name: String
|
68
|
-
): RegistryExtension!
|
69
|
-
"""
|
70
|
-
Delete an extension from the extension registry.
|
71
|
-
|
72
|
-
Only authorized extension publishers may perform this mutation.
|
73
|
-
"""
|
74
|
-
deleteExtension(
|
75
|
-
""" The ID of the extension to delete."""
|
76
|
-
extension: ID!
|
77
|
-
): EmptyResponse!
|
78
|
-
"""
|
79
|
-
Publish an extension in the extension registry, creating it (if it doesn't yet exist) or updating it (if it
|
80
|
-
does).
|
81
|
-
|
82
|
-
This is a helper that wraps multiple other GraphQL mutations to expose a single API for publishing an
|
83
|
-
extension.
|
84
|
-
"""
|
85
|
-
publishExtension(
|
86
|
-
"""
|
87
|
-
The extension ID of the extension to publish. If a host prefix (ex., "cdebase.example.com/") is
|
88
|
-
needed and it is not included, it is automatically prepended.
|
89
|
-
|
90
|
-
Examples: "alice/myextension", "acmecorp/myextension"
|
91
|
-
"""
|
92
|
-
name: String
|
93
|
-
""" The extension version """
|
94
|
-
version: String
|
95
|
-
extensionID: String!
|
96
|
-
""" The extension manifest (as JSON)."""
|
97
|
-
manifest: String!
|
98
|
-
""" The bundled JavaScript source of the extension."""
|
99
|
-
bundle: String
|
100
|
-
"""
|
101
|
-
The source map of the extension's JavaScript bundle, if any
|
102
|
-
The JavaScript bunle's "//#sourceMappingURL=" directive, if any, is ignored. When the bundle is served,
|
103
|
-
the source map provided here is referenced instead.
|
104
|
-
"""
|
105
|
-
sourceMap: String
|
106
|
-
""" Force publish even if there are warnings (such as invalid JSON warnings)."""
|
107
|
-
force: Boolean = false
|
108
|
-
): ExtensionRegistryPublishExtensionResult!
|
109
|
-
}
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
extend type Query {
|
114
|
-
"""
|
115
|
-
The CDECode documentation page for the given path, used to serve the content for help
|
116
|
-
pages under the URL path /help on the CDECode instance. If no page exists at the path,
|
117
|
-
null is returned.
|
118
|
-
"""
|
119
|
-
docSitePage(path: String!): DocSitePage
|
120
|
-
}
|
@@ -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\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 \"\"\" \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":";"}
|