@webiny/api-serverless-cms 5.40.0-beta.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Webiny
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # @webiny/api-serverless-cms
2
+ [![](https://img.shields.io/npm/dw/@webiny/api-serverless-cms.svg)](https://www.npmjs.com/package/@webiny/api-serverless-cms)
3
+ [![](https://img.shields.io/npm/v/@webiny/api-serverless-cms.svg)](https://www.npmjs.com/package/@webiny/api-serverless-cms)
4
+ [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
5
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
6
+
7
+ ## Install
8
+ ```
9
+ npm install --save @webiny/api-serverless-cms
10
+ ```
11
+
12
+ Or if you prefer yarn:
13
+ ```
14
+ yarn add @webiny/api-serverless-cms
15
+ ```
package/index.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ import { ClientContext } from "@webiny/handler-client/types";
2
+ import { TenancyContext } from "@webiny/api-tenancy/types";
3
+ import { SecurityContext } from "@webiny/api-security/types";
4
+ import { I18NContext } from "@webiny/api-i18n/types";
5
+ import { I18NContentContext } from "@webiny/api-i18n-content/types";
6
+ import { PbContext } from "@webiny/api-page-builder/graphql/types";
7
+ import { PrerenderingServiceClientContext } from "@webiny/api-prerendering-service/client/types";
8
+ import { FileManagerContext } from "@webiny/api-file-manager/types";
9
+ import { FormBuilderContext } from "@webiny/api-form-builder/types";
10
+ import { CmsContext } from "@webiny/api-headless-cms/types";
11
+ import { AcoContext } from "@webiny/api-aco/types";
12
+ import { PbAcoContext } from "@webiny/api-page-builder-aco/types";
13
+ import { ContextPluginCallable } from "@webiny/api";
14
+ import { GraphQLSchemaPluginConfig } from "@webiny/handler-graphql";
15
+ export interface Context extends ClientContext, TenancyContext, SecurityContext, I18NContext, I18NContentContext, PbContext, PrerenderingServiceClientContext, FileManagerContext, FormBuilderContext, AcoContext, PbAcoContext, CmsContext {
16
+ }
17
+ export declare const createContextPlugin: <T extends Context = Context>(callable: ContextPluginCallable<T>) => import("@webiny/api").ContextPlugin<T>;
18
+ export declare const createGraphQLSchemaPlugin: <T extends Context = Context>(config: GraphQLSchemaPluginConfig<T>) => import("@webiny/handler-graphql").GraphQLSchemaPlugin<T>;
package/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createGraphQLSchemaPlugin = exports.createContextPlugin = void 0;
7
+ var _api = require("@webiny/api");
8
+ var _handlerGraphql = require("@webiny/handler-graphql");
9
+ const createContextPlugin = callable => {
10
+ return (0, _api.createContextPlugin)(callable);
11
+ };
12
+ exports.createContextPlugin = createContextPlugin;
13
+ const createGraphQLSchemaPlugin = config => {
14
+ return (0, _handlerGraphql.createGraphQLSchemaPlugin)(config);
15
+ };
16
+ exports.createGraphQLSchemaPlugin = createGraphQLSchemaPlugin;
17
+
18
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_api","require","_handlerGraphql","createContextPlugin","callable","baseCreateContextPlugin","exports","createGraphQLSchemaPlugin","config","baseCreateGraphQLSchemaPlugin"],"sources":["index.ts"],"sourcesContent":["import { ClientContext } from \"@webiny/handler-client/types\";\nimport { TenancyContext } from \"@webiny/api-tenancy/types\";\nimport { SecurityContext } from \"@webiny/api-security/types\";\nimport { I18NContext } from \"@webiny/api-i18n/types\";\nimport { I18NContentContext } from \"@webiny/api-i18n-content/types\";\nimport { PbContext } from \"@webiny/api-page-builder/graphql/types\";\nimport { PrerenderingServiceClientContext } from \"@webiny/api-prerendering-service/client/types\";\nimport { FileManagerContext } from \"@webiny/api-file-manager/types\";\nimport { FormBuilderContext } from \"@webiny/api-form-builder/types\";\nimport { CmsContext } from \"@webiny/api-headless-cms/types\";\nimport { AcoContext } from \"@webiny/api-aco/types\";\nimport { PbAcoContext } from \"@webiny/api-page-builder-aco/types\";\nimport { createContextPlugin as baseCreateContextPlugin, ContextPluginCallable } from \"@webiny/api\";\nimport {\n createGraphQLSchemaPlugin as baseCreateGraphQLSchemaPlugin,\n GraphQLSchemaPluginConfig\n} from \"@webiny/handler-graphql\";\n\nexport interface Context\n extends ClientContext,\n TenancyContext,\n SecurityContext,\n I18NContext,\n I18NContentContext,\n PbContext,\n PrerenderingServiceClientContext,\n FileManagerContext,\n FormBuilderContext,\n AcoContext,\n PbAcoContext,\n CmsContext {}\n\nexport const createContextPlugin = <T extends Context = Context>(\n callable: ContextPluginCallable<T>\n) => {\n return baseCreateContextPlugin<T>(callable);\n};\n\nexport const createGraphQLSchemaPlugin = <T extends Context = Context>(\n config: GraphQLSchemaPluginConfig<T>\n) => {\n return baseCreateGraphQLSchemaPlugin<T>(config);\n};\n"],"mappings":";;;;;;AAYA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AAmBO,MAAME,mBAAmB,GAC5BC,QAAkC,IACjC;EACD,OAAO,IAAAC,wBAAuB,EAAID,QAAQ,CAAC;AAC/C,CAAC;AAACE,OAAA,CAAAH,mBAAA,GAAAA,mBAAA;AAEK,MAAMI,yBAAyB,GAClCC,MAAoC,IACnC;EACD,OAAO,IAAAC,yCAA6B,EAAID,MAAM,CAAC;AACnD,CAAC;AAACF,OAAA,CAAAC,yBAAA,GAAAA,yBAAA","ignoreList":[]}
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@webiny/api-serverless-cms",
3
+ "version": "5.40.0-beta.3",
4
+ "main": "index.js",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/webiny/webiny-js.git"
8
+ },
9
+ "description": "Core package for all of our API packages.",
10
+ "license": "MIT",
11
+ "dependencies": {
12
+ "@webiny/api": "5.40.0-beta.3",
13
+ "@webiny/api-aco": "5.40.0-beta.3",
14
+ "@webiny/api-file-manager": "5.40.0-beta.3",
15
+ "@webiny/api-form-builder": "5.40.0-beta.3",
16
+ "@webiny/api-headless-cms": "5.40.0-beta.3",
17
+ "@webiny/api-i18n": "5.40.0-beta.3",
18
+ "@webiny/api-i18n-content": "5.40.0-beta.3",
19
+ "@webiny/api-page-builder": "5.40.0-beta.3",
20
+ "@webiny/api-page-builder-aco": "5.40.0-beta.3",
21
+ "@webiny/api-prerendering-service": "5.40.0-beta.3",
22
+ "@webiny/api-security": "5.40.0-beta.3",
23
+ "@webiny/api-tenancy": "5.40.0-beta.3",
24
+ "@webiny/handler-client": "5.40.0-beta.3",
25
+ "@webiny/handler-graphql": "5.40.0-beta.3"
26
+ },
27
+ "devDependencies": {
28
+ "@babel/cli": "7.24.1",
29
+ "@babel/core": "7.24.3",
30
+ "@babel/preset-env": "7.24.3",
31
+ "@babel/preset-typescript": "7.24.1",
32
+ "@webiny/cli": "5.40.0-beta.3",
33
+ "@webiny/project-utils": "5.40.0-beta.3",
34
+ "rimraf": "5.0.5",
35
+ "ttypescript": "1.5.15",
36
+ "typescript": "4.7.4"
37
+ },
38
+ "publishConfig": {
39
+ "access": "public",
40
+ "directory": "dist"
41
+ },
42
+ "scripts": {
43
+ "build": "yarn webiny run build",
44
+ "watch": "yarn webiny run watch"
45
+ },
46
+ "gitHead": "638d8b84063906cd1aa979ed6e0487ad26fbcf2f"
47
+ }