@webiny/api-headless-cms 5.31.0-beta.1 → 5.32.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/graphql/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/package.json +23 -23
- package/plugins/CmsGroupPlugin.d.ts +3 -1
- package/plugins/CmsGroupPlugin.js +8 -2
- package/plugins/CmsGroupPlugin.js.map +1 -1
- package/plugins/CmsModelPlugin.d.ts +3 -1
- package/plugins/CmsModelPlugin.js +8 -2
- package/plugins/CmsModelPlugin.js.map +1 -1
package/graphql/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import { GraphQLSchemaPlugin } from "@webiny/handler-graphql/types";
|
|
|
2
2
|
import { GraphQLHandlerFactoryParams } from "./graphQLHandlerFactory";
|
|
3
3
|
import { CmsContext } from "../types";
|
|
4
4
|
export declare type CreateGraphQLParams = GraphQLHandlerFactoryParams;
|
|
5
|
-
export declare const createGraphQL: (params: CreateGraphQLParams) => (import("@webiny/api").ContextPlugin<CmsContext> | GraphQLSchemaPlugin<CmsContext>
|
|
5
|
+
export declare const createGraphQL: (params: CreateGraphQLParams) => (import("@webiny/plugins/types").PluginCollection | import("@webiny/api").ContextPlugin<CmsContext> | GraphQLSchemaPlugin<CmsContext>)[];
|
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CreateGraphQLParams } from "./graphql";
|
|
|
2
2
|
import { CrudParams } from "./crud";
|
|
3
3
|
import { entryFieldFromStorageTransform, entryFromStorageTransform, entryToStorageTransform } from "./utils/entryStorage";
|
|
4
4
|
export declare type CreateHeadlessCmsGraphQLParams = CreateGraphQLParams;
|
|
5
|
-
export declare const createHeadlessCmsGraphQL: (params?: CreateHeadlessCmsGraphQLParams) => (import("./plugins").CmsParametersPlugin | (import("@webiny/api").ContextPlugin<import("./types").CmsContext> | import("@webiny/handler-graphql/types").GraphQLSchemaPlugin<import("./types").CmsContext>
|
|
5
|
+
export declare const createHeadlessCmsGraphQL: (params?: CreateHeadlessCmsGraphQLParams) => (import("./plugins").CmsParametersPlugin | (import("@webiny/plugins/types").PluginCollection | import("@webiny/api").ContextPlugin<import("./types").CmsContext> | import("@webiny/handler-graphql/types").GraphQLSchemaPlugin<import("./types").CmsContext>)[])[];
|
|
6
6
|
export declare type ContentContextParams = CrudParams;
|
|
7
7
|
export declare const createHeadlessCmsContext: (params: ContentContextParams) => (import("./types").ModelManagerPlugin | import("@webiny/api").ContextPlugin<import("./types").CmsContext> | import("./plugins").StorageTransformPlugin<any, any> | import("./types").CmsModelFieldToGraphQLPlugin[] | (import("./types").CmsModelFieldValidatorPlugin | import("./types").CmsModelFieldPatternValidatorPlugin[])[])[];
|
|
8
8
|
export * from "./graphqlFields";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-headless-cms",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.32.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms:base"
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"@babel/runtime": "7.18.9",
|
|
22
22
|
"@commodo/fields": "1.1.2-beta.20",
|
|
23
23
|
"@graphql-tools/schema": "7.1.5",
|
|
24
|
-
"@webiny/api": "5.
|
|
25
|
-
"@webiny/api-file-manager": "5.
|
|
26
|
-
"@webiny/api-i18n": "5.
|
|
27
|
-
"@webiny/api-i18n-ddb": "5.
|
|
28
|
-
"@webiny/api-security": "5.
|
|
29
|
-
"@webiny/api-tenancy": "5.
|
|
30
|
-
"@webiny/api-upgrade": "5.
|
|
31
|
-
"@webiny/error": "5.
|
|
32
|
-
"@webiny/handler": "5.
|
|
33
|
-
"@webiny/handler-aws": "5.
|
|
34
|
-
"@webiny/handler-db": "5.
|
|
35
|
-
"@webiny/handler-graphql": "5.
|
|
36
|
-
"@webiny/plugins": "5.
|
|
37
|
-
"@webiny/pubsub": "5.
|
|
38
|
-
"@webiny/utils": "5.
|
|
39
|
-
"@webiny/validation": "5.
|
|
24
|
+
"@webiny/api": "5.32.0",
|
|
25
|
+
"@webiny/api-file-manager": "5.32.0",
|
|
26
|
+
"@webiny/api-i18n": "5.32.0",
|
|
27
|
+
"@webiny/api-i18n-ddb": "5.32.0",
|
|
28
|
+
"@webiny/api-security": "5.32.0",
|
|
29
|
+
"@webiny/api-tenancy": "5.32.0",
|
|
30
|
+
"@webiny/api-upgrade": "5.32.0",
|
|
31
|
+
"@webiny/error": "5.32.0",
|
|
32
|
+
"@webiny/handler": "5.32.0",
|
|
33
|
+
"@webiny/handler-aws": "5.32.0",
|
|
34
|
+
"@webiny/handler-db": "5.32.0",
|
|
35
|
+
"@webiny/handler-graphql": "5.32.0",
|
|
36
|
+
"@webiny/plugins": "5.32.0",
|
|
37
|
+
"@webiny/pubsub": "5.32.0",
|
|
38
|
+
"@webiny/utils": "5.32.0",
|
|
39
|
+
"@webiny/validation": "5.32.0",
|
|
40
40
|
"commodo-fields-object": "1.0.6",
|
|
41
41
|
"dataloader": "2.1.0",
|
|
42
42
|
"dot-prop": "6.0.1",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"@babel/core": "^7.16.0",
|
|
54
54
|
"@babel/preset-env": "^7.16.4",
|
|
55
55
|
"@babel/preset-flow": "^7.16.0",
|
|
56
|
-
"@webiny/api-security-so-ddb": "^5.
|
|
57
|
-
"@webiny/api-tenancy-so-ddb": "^5.
|
|
58
|
-
"@webiny/api-wcp": "^5.
|
|
59
|
-
"@webiny/cli": "^5.
|
|
60
|
-
"@webiny/project-utils": "^5.
|
|
56
|
+
"@webiny/api-security-so-ddb": "^5.32.0",
|
|
57
|
+
"@webiny/api-tenancy-so-ddb": "^5.32.0",
|
|
58
|
+
"@webiny/api-wcp": "^5.32.0",
|
|
59
|
+
"@webiny/cli": "^5.32.0",
|
|
60
|
+
"@webiny/project-utils": "^5.32.0",
|
|
61
61
|
"apollo-graphql": "^0.9.5",
|
|
62
62
|
"get-yarn-workspaces": "^1.0.2",
|
|
63
63
|
"graphql": "^15.7.2",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"build": "yarn webiny run build",
|
|
78
78
|
"watch": "yarn webiny run watch"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "1227aa53c68afa4ccd518c8a4344195a2b8e354b"
|
|
81
81
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Plugin } from "@webiny/plugins";
|
|
2
2
|
import { CmsGroup as BaseCmsGroup } from "../types";
|
|
3
|
-
|
|
3
|
+
interface CmsGroup extends Omit<BaseCmsGroup, "locale" | "tenant" | "webinyVersion"> {
|
|
4
4
|
tenant?: string;
|
|
5
5
|
locale?: string;
|
|
6
6
|
}
|
|
@@ -9,3 +9,5 @@ export declare class CmsGroupPlugin extends Plugin {
|
|
|
9
9
|
contentModelGroup: CmsGroup;
|
|
10
10
|
constructor(contentModelGroup: CmsGroup);
|
|
11
11
|
}
|
|
12
|
+
export declare const createCmsGroup: (group: CmsGroup) => CmsGroupPlugin;
|
|
13
|
+
export {};
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.CmsGroupPlugin = void 0;
|
|
8
|
+
exports.createCmsGroup = exports.CmsGroupPlugin = void 0;
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
@@ -21,4 +21,10 @@ class CmsGroupPlugin extends _plugins.Plugin {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
exports.CmsGroupPlugin = CmsGroupPlugin;
|
|
24
|
-
(0, _defineProperty2.default)(CmsGroupPlugin, "type", "cms-content-model-group");
|
|
24
|
+
(0, _defineProperty2.default)(CmsGroupPlugin, "type", "cms-content-model-group");
|
|
25
|
+
|
|
26
|
+
const createCmsGroup = group => {
|
|
27
|
+
return new CmsGroupPlugin(group);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports.createCmsGroup = createCmsGroup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CmsGroupPlugin","Plugin","constructor","contentModelGroup"],"sources":["CmsGroupPlugin.ts"],"sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport { CmsGroup as BaseCmsGroup } from \"~/types\";\n\
|
|
1
|
+
{"version":3,"names":["CmsGroupPlugin","Plugin","constructor","contentModelGroup","createCmsGroup","group"],"sources":["CmsGroupPlugin.ts"],"sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport { CmsGroup as BaseCmsGroup } from \"~/types\";\n\ninterface CmsGroup extends Omit<BaseCmsGroup, \"locale\" | \"tenant\" | \"webinyVersion\"> {\n tenant?: string;\n locale?: string;\n}\nexport class CmsGroupPlugin extends Plugin {\n public static override readonly type: string = \"cms-content-model-group\";\n contentModelGroup: CmsGroup;\n\n constructor(contentModelGroup: CmsGroup) {\n super();\n this.contentModelGroup = contentModelGroup;\n }\n}\n\nexport const createCmsGroup = (group: CmsGroup): CmsGroupPlugin => {\n return new CmsGroupPlugin(group);\n};\n"],"mappings":";;;;;;;;;;;AAAA;;AAOO,MAAMA,cAAN,SAA6BC,eAA7B,CAAoC;EAIvCC,WAAW,CAACC,iBAAD,EAA8B;IACrC;IADqC;IAErC,KAAKA,iBAAL,GAAyBA,iBAAzB;EACH;;AAPsC;;;8BAA9BH,c,UACsC,yB;;AAS5C,MAAMI,cAAc,GAAIC,KAAD,IAAqC;EAC/D,OAAO,IAAIL,cAAJ,CAAmBK,KAAnB,CAAP;AACH,CAFM"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Plugin } from "@webiny/plugins";
|
|
2
2
|
import { CmsModel as CmsModelBase } from "../types";
|
|
3
|
-
|
|
3
|
+
interface CmsModel extends Omit<CmsModelBase, "locale" | "tenant" | "webinyVersion"> {
|
|
4
4
|
locale?: string;
|
|
5
5
|
tenant?: string;
|
|
6
6
|
}
|
|
@@ -9,3 +9,5 @@ export declare class CmsModelPlugin extends Plugin {
|
|
|
9
9
|
contentModel: CmsModel;
|
|
10
10
|
constructor(contentModel: CmsModel);
|
|
11
11
|
}
|
|
12
|
+
export declare const createCmsModel: (model: CmsModel) => CmsModelPlugin;
|
|
13
|
+
export {};
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.CmsModelPlugin = void 0;
|
|
8
|
+
exports.createCmsModel = exports.CmsModelPlugin = void 0;
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
@@ -21,4 +21,10 @@ class CmsModelPlugin extends _plugins.Plugin {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
exports.CmsModelPlugin = CmsModelPlugin;
|
|
24
|
-
(0, _defineProperty2.default)(CmsModelPlugin, "type", "cms-content-model");
|
|
24
|
+
(0, _defineProperty2.default)(CmsModelPlugin, "type", "cms-content-model");
|
|
25
|
+
|
|
26
|
+
const createCmsModel = model => {
|
|
27
|
+
return new CmsModelPlugin(model);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports.createCmsModel = createCmsModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CmsModelPlugin","Plugin","constructor","contentModel"],"sources":["CmsModelPlugin.ts"],"sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport { CmsModel as CmsModelBase } from \"~/types\";\n\
|
|
1
|
+
{"version":3,"names":["CmsModelPlugin","Plugin","constructor","contentModel","createCmsModel","model"],"sources":["CmsModelPlugin.ts"],"sourcesContent":["import { Plugin } from \"@webiny/plugins\";\nimport { CmsModel as CmsModelBase } from \"~/types\";\n\ninterface CmsModel extends Omit<CmsModelBase, \"locale\" | \"tenant\" | \"webinyVersion\"> {\n locale?: string;\n tenant?: string;\n}\n\nexport class CmsModelPlugin extends Plugin {\n public static override readonly type: string = \"cms-content-model\";\n contentModel: CmsModel;\n\n constructor(contentModel: CmsModel) {\n super();\n this.contentModel = contentModel;\n }\n}\n\nexport const createCmsModel = (model: CmsModel): CmsModelPlugin => {\n return new CmsModelPlugin(model);\n};\n"],"mappings":";;;;;;;;;;;AAAA;;AAQO,MAAMA,cAAN,SAA6BC,eAA7B,CAAoC;EAIvCC,WAAW,CAACC,YAAD,EAAyB;IAChC;IADgC;IAEhC,KAAKA,YAAL,GAAoBA,YAApB;EACH;;AAPsC;;;8BAA9BH,c,UACsC,mB;;AAS5C,MAAMI,cAAc,GAAIC,KAAD,IAAqC;EAC/D,OAAO,IAAIL,cAAJ,CAAmBK,KAAnB,CAAP;AACH,CAFM"}
|