@webiny/api-page-builder-import-export 5.19.1 → 5.20.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.
@@ -74,7 +74,7 @@ var _default = ({
74
74
  rwd: "r"
75
75
  });
76
76
  const tenant = context.tenancy.getCurrentTenant();
77
- const locale = context.i18nContent.getLocale();
77
+ const locale = context.i18nContent.getCurrentLocale();
78
78
  const params = {
79
79
  where: {
80
80
  tenant: tenant.id,
@@ -106,7 +106,7 @@ var _default = ({
106
106
  rwd: "r"
107
107
  });
108
108
  const tenant = context.tenancy.getCurrentTenant();
109
- const locale = context.i18nContent.getLocale();
109
+ const locale = context.i18nContent.getCurrentLocale();
110
110
  const {
111
111
  sort,
112
112
  limit
@@ -147,7 +147,7 @@ var _default = ({
147
147
 
148
148
  const pageImportExportTask = _objectSpread(_objectSpread({}, data), {}, {
149
149
  tenant: context.tenancy.getCurrentTenant().id,
150
- locale: context.i18nContent.getLocale().code,
150
+ locale: context.i18nContent.getCurrentLocale().code,
151
151
  id,
152
152
  createdOn: new Date().toISOString(),
153
153
  createdBy: {
@@ -263,7 +263,7 @@ var _default = ({
263
263
 
264
264
  const pageImportExportSubTask = _objectSpread(_objectSpread({}, data), {}, {
265
265
  tenant: context.tenancy.getCurrentTenant().id,
266
- locale: context.i18nContent.getLocale().code,
266
+ locale: context.i18nContent.getCurrentLocale().code,
267
267
  id: id,
268
268
  parent: parent,
269
269
  createdOn: new Date().toISOString(),
@@ -325,7 +325,7 @@ var _default = ({
325
325
  rwd: "r"
326
326
  });
327
327
  const tenant = context.tenancy.getCurrentTenant();
328
- const locale = context.i18nContent.getLocale();
328
+ const locale = context.i18nContent.getCurrentLocale();
329
329
  const params = {
330
330
  where: {
331
331
  tenant: tenant.id,
@@ -358,7 +358,7 @@ var _default = ({
358
358
  rwd: "r"
359
359
  });
360
360
  const tenant = context.tenancy.getCurrentTenant();
361
- const locale = context.i18nContent.getLocale();
361
+ const locale = context.i18nContent.getCurrentLocale();
362
362
  const listParams = {
363
363
  where: {
364
364
  tenant: tenant.id,
@@ -1,3 +1,3 @@
1
1
  import { Response, ErrorResponse } from "@webiny/handler-graphql";
2
- declare const _default: (fn: any) => Promise<ErrorResponse | Response<any>>;
2
+ declare const _default: (fn: any) => Promise<Response<any> | ErrorResponse>;
3
3
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-page-builder-import-export",
3
- "version": "5.19.1",
3
+ "version": "5.20.0-beta.0",
4
4
  "main": "index.js",
5
5
  "keywords": [
6
6
  "pbie:base"
@@ -16,15 +16,15 @@
16
16
  "dependencies": {
17
17
  "@babel/runtime": "7.16.3",
18
18
  "@commodo/fields": "1.1.2-beta.20",
19
- "@webiny/api-file-manager": "5.19.1",
20
- "@webiny/api-page-builder": "5.19.1",
21
- "@webiny/api-security": "5.19.1",
22
- "@webiny/error": "5.19.1",
23
- "@webiny/handler": "5.19.1",
24
- "@webiny/handler-args": "5.19.1",
25
- "@webiny/handler-aws": "5.19.1",
26
- "@webiny/handler-graphql": "5.19.1",
27
- "@webiny/validation": "5.19.1",
19
+ "@webiny/api-file-manager": "5.20.0-beta.0",
20
+ "@webiny/api-page-builder": "5.20.0-beta.0",
21
+ "@webiny/api-security": "5.20.0-beta.0",
22
+ "@webiny/error": "5.20.0-beta.0",
23
+ "@webiny/handler": "5.20.0-beta.0",
24
+ "@webiny/handler-args": "5.20.0-beta.0",
25
+ "@webiny/handler-aws": "5.20.0-beta.0",
26
+ "@webiny/handler-graphql": "5.20.0-beta.0",
27
+ "@webiny/validation": "5.20.0-beta.0",
28
28
  "archiver": "5.3.0",
29
29
  "commodo-fields-object": "1.0.6",
30
30
  "dot-prop-immutable": "2.1.1",
@@ -46,15 +46,15 @@
46
46
  "@elastic/elasticsearch": "7.12.0",
47
47
  "@shelf/jest-elasticsearch": "^1.0.0",
48
48
  "@types/puppeteer": "^5.4.2",
49
- "@webiny/api-dynamodb-to-elasticsearch": "^5.19.1",
50
- "@webiny/api-file-manager-ddb-es": "^5.19.1",
51
- "@webiny/api-i18n-ddb": "^5.19.1",
52
- "@webiny/api-security-so-ddb": "^5.19.1",
53
- "@webiny/api-tenancy": "^5.19.1",
54
- "@webiny/api-tenancy-so-ddb": "^5.19.1",
55
- "@webiny/cli": "^5.19.1",
56
- "@webiny/db": "^5.19.1",
57
- "@webiny/project-utils": "^5.19.1",
49
+ "@webiny/api-dynamodb-to-elasticsearch": "^5.20.0-beta.0",
50
+ "@webiny/api-file-manager-ddb-es": "^5.20.0-beta.0",
51
+ "@webiny/api-i18n-ddb": "^5.20.0-beta.0",
52
+ "@webiny/api-security-so-ddb": "^5.20.0-beta.0",
53
+ "@webiny/api-tenancy": "^5.20.0-beta.0",
54
+ "@webiny/api-tenancy-so-ddb": "^5.20.0-beta.0",
55
+ "@webiny/cli": "^5.20.0-beta.0",
56
+ "@webiny/db": "^5.20.0-beta.0",
57
+ "@webiny/project-utils": "^5.20.0-beta.0",
58
58
  "jest": "^26.6.3",
59
59
  "jest-dynalite": "^3.2.0",
60
60
  "rimraf": "^3.0.2",
@@ -76,5 +76,5 @@
76
76
  ]
77
77
  }
78
78
  },
79
- "gitHead": "1424145d10add470e70fba9c44225656894e0028"
79
+ "gitHead": "2de02bc113e15e3ffa8e1d82deb9d27417787188"
80
80
  }