@webiny/api-serverless-cms 5.40.6 → 5.41.0-beta.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/index.d.ts CHANGED
@@ -12,8 +12,10 @@ import { AcoContext } from "@webiny/api-aco/types";
12
12
  import { PbAcoContext } from "@webiny/api-page-builder-aco/types";
13
13
  import { ContextPluginCallable } from "@webiny/api";
14
14
  import { GraphQLSchemaPluginConfig } from "@webiny/handler-graphql";
15
+ import { createSecurityRolePlugin, createSecurityTeamPlugin } from "@webiny/api-security";
15
16
  export interface Context extends ClientContext, TenancyContext, SecurityContext, I18NContext, I18NContentContext, PbContext, PrerenderingServiceClientContext, FileManagerContext, FormBuilderContext, AcoContext, PbAcoContext, CmsContext {
16
17
  }
17
18
  export declare const createContextPlugin: <T extends Context = Context>(callable: ContextPluginCallable<T>) => import("@webiny/api").ContextPlugin<T>;
18
19
  export declare const createGraphQLSchemaPlugin: <T extends Context = Context>(config: GraphQLSchemaPluginConfig<T>) => import("@webiny/handler-graphql").GraphQLSchemaPlugin<T>;
20
+ export { createSecurityRolePlugin, createSecurityTeamPlugin };
19
21
  export * from "./tenancy/InstallTenant";
package/index.js CHANGED
@@ -5,11 +5,26 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  var _exportNames = {
7
7
  createContextPlugin: true,
8
- createGraphQLSchemaPlugin: true
8
+ createGraphQLSchemaPlugin: true,
9
+ createSecurityRolePlugin: true,
10
+ createSecurityTeamPlugin: true
9
11
  };
10
12
  exports.createGraphQLSchemaPlugin = exports.createContextPlugin = void 0;
13
+ Object.defineProperty(exports, "createSecurityRolePlugin", {
14
+ enumerable: true,
15
+ get: function () {
16
+ return _apiSecurity.createSecurityRolePlugin;
17
+ }
18
+ });
19
+ Object.defineProperty(exports, "createSecurityTeamPlugin", {
20
+ enumerable: true,
21
+ get: function () {
22
+ return _apiSecurity.createSecurityTeamPlugin;
23
+ }
24
+ });
11
25
  var _api = require("@webiny/api");
12
26
  var _handlerGraphql = require("@webiny/handler-graphql");
27
+ var _apiSecurity = require("@webiny/api-security");
13
28
  var _InstallTenant = require("./tenancy/InstallTenant");
14
29
  Object.keys(_InstallTenant).forEach(function (key) {
15
30
  if (key === "default" || key === "__esModule") return;
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_api","require","_handlerGraphql","_InstallTenant","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","createContextPlugin","callable","baseCreateContextPlugin","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\nexport * from \"./tenancy/InstallTenant\";\n"],"mappings":";;;;;;;;;;AAYA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AA+BA,IAAAE,cAAA,GAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAF,cAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,cAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,cAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAZO,MAAMS,mBAAmB,GAC5BC,QAAkC,IACjC;EACD,OAAO,IAAAC,wBAAuB,EAAID,QAAQ,CAAC;AAC/C,CAAC;AAACL,OAAA,CAAAI,mBAAA,GAAAA,mBAAA;AAEK,MAAMG,yBAAyB,GAClCC,MAAoC,IACnC;EACD,OAAO,IAAAC,yCAA6B,EAAID,MAAM,CAAC;AACnD,CAAC;AAACR,OAAA,CAAAO,yBAAA,GAAAA,yBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_api","require","_handlerGraphql","_apiSecurity","_InstallTenant","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","createContextPlugin","callable","baseCreateContextPlugin","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\";\nimport { createSecurityRolePlugin, createSecurityTeamPlugin } from \"@webiny/api-security\";\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\nexport { createSecurityRolePlugin, createSecurityTeamPlugin };\n\nexport * from \"./tenancy/InstallTenant\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAYA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AAIA,IAAAE,YAAA,GAAAF,OAAA;AA8BA,IAAAG,cAAA,GAAAH,OAAA;AAAAI,MAAA,CAAAC,IAAA,CAAAF,cAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,cAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,cAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAdO,MAAMS,mBAAmB,GAC5BC,QAAkC,IACjC;EACD,OAAO,IAAAC,wBAAuB,EAAID,QAAQ,CAAC;AAC/C,CAAC;AAACL,OAAA,CAAAI,mBAAA,GAAAA,mBAAA;AAEK,MAAMG,yBAAyB,GAClCC,MAAoC,IACnC;EACD,OAAO,IAAAC,yCAA6B,EAAID,MAAM,CAAC;AACnD,CAAC;AAACR,OAAA,CAAAO,yBAAA,GAAAA,yBAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-serverless-cms",
3
- "version": "5.40.6",
3
+ "version": "5.41.0-beta.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,32 +9,32 @@
9
9
  "description": "Core package for all of our API packages.",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@webiny/api": "5.40.6",
13
- "@webiny/api-aco": "5.40.6",
14
- "@webiny/api-file-manager": "5.40.6",
15
- "@webiny/api-form-builder": "5.40.6",
16
- "@webiny/api-headless-cms": "5.40.6",
17
- "@webiny/api-i18n": "5.40.6",
18
- "@webiny/api-i18n-content": "5.40.6",
19
- "@webiny/api-page-builder": "5.40.6",
20
- "@webiny/api-page-builder-aco": "5.40.6",
21
- "@webiny/api-prerendering-service": "5.40.6",
22
- "@webiny/api-security": "5.40.6",
23
- "@webiny/api-tenancy": "5.40.6",
24
- "@webiny/error": "5.40.6",
25
- "@webiny/handler-client": "5.40.6",
26
- "@webiny/handler-graphql": "5.40.6"
12
+ "@webiny/api": "5.41.0-beta.0",
13
+ "@webiny/api-aco": "5.41.0-beta.0",
14
+ "@webiny/api-file-manager": "5.41.0-beta.0",
15
+ "@webiny/api-form-builder": "5.41.0-beta.0",
16
+ "@webiny/api-headless-cms": "5.41.0-beta.0",
17
+ "@webiny/api-i18n": "5.41.0-beta.0",
18
+ "@webiny/api-i18n-content": "5.41.0-beta.0",
19
+ "@webiny/api-page-builder": "5.41.0-beta.0",
20
+ "@webiny/api-page-builder-aco": "5.41.0-beta.0",
21
+ "@webiny/api-prerendering-service": "5.41.0-beta.0",
22
+ "@webiny/api-security": "5.41.0-beta.0",
23
+ "@webiny/api-tenancy": "5.41.0-beta.0",
24
+ "@webiny/error": "5.41.0-beta.0",
25
+ "@webiny/handler-client": "5.41.0-beta.0",
26
+ "@webiny/handler-graphql": "5.41.0-beta.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/cli": "7.24.1",
30
30
  "@babel/core": "7.24.3",
31
31
  "@babel/preset-env": "7.24.3",
32
32
  "@babel/preset-typescript": "7.24.1",
33
- "@webiny/cli": "5.40.6",
34
- "@webiny/project-utils": "5.40.6",
33
+ "@webiny/cli": "5.41.0-beta.0",
34
+ "@webiny/project-utils": "5.41.0-beta.0",
35
35
  "rimraf": "5.0.5",
36
36
  "ttypescript": "1.5.15",
37
- "typescript": "4.7.4"
37
+ "typescript": "4.9.5"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",
@@ -44,5 +44,5 @@
44
44
  "build": "yarn webiny run build",
45
45
  "watch": "yarn webiny run watch"
46
46
  },
47
- "gitHead": "f9da84b373e62f9f269599c4301e5e4418a98d51"
47
+ "gitHead": "9ce5e75fc577aa4de2cf08d5ca734b3c98fe65b6"
48
48
  }
@@ -7,7 +7,7 @@ export interface AdminUserInput {
7
7
  password: string;
8
8
  group?: string;
9
9
  }
10
- export declare type AdminUsersInstallationConfig = AdminUserInput | undefined;
10
+ export type AdminUsersInstallationConfig = AdminUserInput | undefined;
11
11
  export interface I18nInstallationConfig {
12
12
  defaultLocaleCode: string;
13
13
  }