@webiny/api-aco 6.5.2-beta.1 → 6.5.2-beta.2

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.
Files changed (80) hide show
  1. package/createAcoContext.js +2 -0
  2. package/createAcoContext.js.map +1 -1
  3. package/features/cms/decorators/GetEntriesByIdsWithFlpDecorator.d.ts +13 -0
  4. package/features/cms/decorators/GetEntriesByIdsWithFlpDecorator.js +25 -0
  5. package/features/cms/decorators/GetEntriesByIdsWithFlpDecorator.js.map +1 -0
  6. package/features/cms/decorators/GetLatestRevisionByEntryIdWithFlpDecorator.d.ts +16 -0
  7. package/features/cms/decorators/GetLatestRevisionByEntryIdWithFlpDecorator.js +28 -0
  8. package/features/cms/decorators/GetLatestRevisionByEntryIdWithFlpDecorator.js.map +1 -0
  9. package/features/cms/decorators/GetRevisionByIdWithFlpDecorator.d.ts +17 -0
  10. package/features/cms/decorators/GetRevisionByIdWithFlpDecorator.js +28 -0
  11. package/features/cms/decorators/GetRevisionByIdWithFlpDecorator.js.map +1 -0
  12. package/features/cms/decorators/GetRevisionsByEntryIdWithFlpDecorator.d.ts +13 -0
  13. package/features/cms/decorators/GetRevisionsByEntryIdWithFlpDecorator.js +25 -0
  14. package/features/cms/decorators/GetRevisionsByEntryIdWithFlpDecorator.js.map +1 -0
  15. package/features/cms/decorators/GetUniqueFieldValuesWithFlpDecorator.d.ts +16 -0
  16. package/features/cms/decorators/GetUniqueFieldValuesWithFlpDecorator.js +55 -0
  17. package/features/cms/decorators/GetUniqueFieldValuesWithFlpDecorator.js.map +1 -0
  18. package/features/cms/decorators/PublishEntryWithFlpDecorator.d.ts +14 -0
  19. package/features/cms/decorators/PublishEntryWithFlpDecorator.js +30 -0
  20. package/features/cms/decorators/PublishEntryWithFlpDecorator.js.map +1 -0
  21. package/features/cms/decorators/RepublishEntryWithFlpDecorator.d.ts +14 -0
  22. package/features/cms/decorators/RepublishEntryWithFlpDecorator.js +30 -0
  23. package/features/cms/decorators/RepublishEntryWithFlpDecorator.js.map +1 -0
  24. package/features/cms/decorators/RestoreEntryFromBinWithFlpDecorator.d.ts +17 -0
  25. package/features/cms/decorators/RestoreEntryFromBinWithFlpDecorator.js +38 -0
  26. package/features/cms/decorators/RestoreEntryFromBinWithFlpDecorator.js.map +1 -0
  27. package/features/cms/decorators/UnpublishEntryWithFlpDecorator.d.ts +14 -0
  28. package/features/cms/decorators/UnpublishEntryWithFlpDecorator.js +30 -0
  29. package/features/cms/decorators/UnpublishEntryWithFlpDecorator.js.map +1 -0
  30. package/features/cms/decorators/UpdateEntryWithFlpDecorator.d.ts +1 -0
  31. package/features/cms/decorators/UpdateEntryWithFlpDecorator.js +9 -5
  32. package/features/cms/decorators/UpdateEntryWithFlpDecorator.js.map +1 -1
  33. package/features/cms/decorators/UpdateRevisionDescriptionWithFlpDecorator.d.ts +14 -0
  34. package/features/cms/decorators/UpdateRevisionDescriptionWithFlpDecorator.js +30 -0
  35. package/features/cms/decorators/UpdateRevisionDescriptionWithFlpDecorator.js.map +1 -0
  36. package/features/cms/decorators/canAccessEntryFolder.d.ts +21 -0
  37. package/features/cms/decorators/canAccessEntryFolder.js +25 -0
  38. package/features/cms/decorators/canAccessEntryFolder.js.map +1 -0
  39. package/features/cms/feature.js +20 -0
  40. package/features/cms/feature.js.map +1 -1
  41. package/features/flp/CreateFlpOnFolderCreated/CreateFlpOnFolderCreatedHandler.js +4 -1
  42. package/features/flp/CreateFlpOnFolderCreated/CreateFlpOnFolderCreatedHandler.js.map +1 -1
  43. package/features/folder/CreateFolder/CreateFolderRepository.js +3 -1
  44. package/features/folder/CreateFolder/CreateFolderRepository.js.map +1 -1
  45. package/features/folder/CreateFolder/decorators/CreateFolderWithFolderLevelPermissions.d.ts +1 -1
  46. package/features/folder/CreateFolder/decorators/CreateFolderWithFolderLevelPermissions.js +20 -2
  47. package/features/folder/CreateFolder/decorators/CreateFolderWithFolderLevelPermissions.js.map +1 -1
  48. package/features/folder/EnsureFolderIsEmpty/EnsureFolderIsEmpty.d.ts +1 -3
  49. package/features/folder/EnsureFolderIsEmpty/EnsureFolderIsEmpty.js +1 -5
  50. package/features/folder/EnsureFolderIsEmpty/EnsureFolderIsEmpty.js.map +1 -1
  51. package/features/folder/FolderTypePermissions/FolderTypeAccess.d.ts +11 -0
  52. package/features/folder/FolderTypePermissions/FolderTypeAccess.js +28 -0
  53. package/features/folder/FolderTypePermissions/FolderTypeAccess.js.map +1 -0
  54. package/features/folder/FolderTypePermissions/abstractions.d.ts +23 -0
  55. package/features/folder/FolderTypePermissions/abstractions.js +6 -0
  56. package/features/folder/FolderTypePermissions/abstractions.js.map +1 -0
  57. package/features/folder/FolderTypePermissions/decorators.d.ts +67 -0
  58. package/features/folder/FolderTypePermissions/decorators.js +128 -0
  59. package/features/folder/FolderTypePermissions/decorators.js.map +1 -0
  60. package/features/folder/FolderTypePermissions/feature.d.ts +4 -0
  61. package/features/folder/FolderTypePermissions/feature.js +18 -0
  62. package/features/folder/FolderTypePermissions/feature.js.map +1 -0
  63. package/features/folder/FolderTypePermissions/index.d.ts +2 -0
  64. package/features/folder/FolderTypePermissions/index.js +2 -0
  65. package/features/folder/GetFolderHierarchy/GetFolderHierarchyRepository.js +8 -2
  66. package/features/folder/GetFolderHierarchy/GetFolderHierarchyRepository.js.map +1 -1
  67. package/features/folder/GetFolderHierarchy/abstractions.d.ts +3 -1
  68. package/features/folder/GetFolderHierarchy/abstractions.js.map +1 -1
  69. package/features/folder/UpdateFolder/UpdateFolderRepository.d.ts +5 -0
  70. package/features/folder/UpdateFolder/UpdateFolderRepository.js +33 -5
  71. package/features/folder/UpdateFolder/UpdateFolderRepository.js.map +1 -1
  72. package/features/folder/UpdateFolder/decorators/UpdateFolderWithFolderLevelPermissions.d.ts +1 -1
  73. package/features/folder/UpdateFolder/decorators/UpdateFolderWithFolderLevelPermissions.js +21 -5
  74. package/features/folder/UpdateFolder/decorators/UpdateFolderWithFolderLevelPermissions.js.map +1 -1
  75. package/features/folder/shared/validatePermissionsInput.d.ts +7 -0
  76. package/features/folder/shared/validatePermissionsInput.js +12 -0
  77. package/features/folder/shared/validatePermissionsInput.js.map +1 -0
  78. package/filter/filter.so.js +12 -5
  79. package/filter/filter.so.js.map +1 -1
  80. package/package.json +21 -21
@@ -0,0 +1,7 @@
1
+ import type { FolderPermission } from "../../../flp/flp.types.js";
2
+ import { FolderValidationError } from "../../../domain/folder/errors.js";
3
+ /**
4
+ * Validates folder permissions sent by the client (create and update).
5
+ * Only user and team targets are allowed, and inherited permissions cannot be set manually.
6
+ */
7
+ export declare const validatePermissionsInput: (permissions: Pick<FolderPermission, "target" | "inheritedFrom">[]) => FolderValidationError | null;
@@ -0,0 +1,12 @@
1
+ import { FolderValidationError } from "../../../domain/folder/errors.js";
2
+ const validatePermissionsInput = (permissions)=>{
3
+ for (const permission of permissions){
4
+ const targetIsValid = "string" == typeof permission.target && (permission.target.startsWith("admin:") || permission.target.startsWith("team:"));
5
+ if (!targetIsValid) return new FolderValidationError(`Permission target "${permission.target}" is not valid.`);
6
+ if (permission.inheritedFrom) return new FolderValidationError('Permission "inheritedFrom" cannot be set manually.');
7
+ }
8
+ return null;
9
+ };
10
+ export { validatePermissionsInput };
11
+
12
+ //# sourceMappingURL=validatePermissionsInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/folder/shared/validatePermissionsInput.js","sources":["../../../../src/features/folder/shared/validatePermissionsInput.ts"],"sourcesContent":["import type { FolderPermission } from \"~/flp/flp.types.js\";\nimport { FolderValidationError } from \"~/domain/folder/errors.js\";\n\n/**\n * Validates folder permissions sent by the client (create and update).\n * Only user and team targets are allowed, and inherited permissions cannot be set manually.\n */\nexport const validatePermissionsInput = (\n permissions: Pick<FolderPermission, \"target\" | \"inheritedFrom\">[]\n): FolderValidationError | null => {\n for (const permission of permissions) {\n const targetIsValid =\n typeof permission.target === \"string\" &&\n (permission.target.startsWith(\"admin:\") || permission.target.startsWith(\"team:\"));\n if (!targetIsValid) {\n return new FolderValidationError(\n `Permission target \"${permission.target}\" is not valid.`\n );\n }\n\n if (permission.inheritedFrom) {\n return new FolderValidationError(`Permission \"inheritedFrom\" cannot be set manually.`);\n }\n }\n\n return null;\n};\n"],"names":["validatePermissionsInput","permissions","permission","targetIsValid","FolderValidationError"],"mappings":";AAOO,MAAMA,2BAA2B,CACpCC;IAEA,KAAK,MAAMC,cAAcD,YAAa;QAClC,MAAME,gBACF,AAA6B,YAA7B,OAAOD,WAAW,MAAM,IACvBA,CAAAA,WAAW,MAAM,CAAC,UAAU,CAAC,aAAaA,WAAW,MAAM,CAAC,UAAU,CAAC,QAAO;QACnF,IAAI,CAACC,eACD,OAAO,IAAIC,sBACP,CAAC,mBAAmB,EAAEF,WAAW,MAAM,CAAC,eAAe,CAAC;QAIhE,IAAIA,WAAW,aAAa,EACxB,OAAO,IAAIE,sBAAsB;IAEzC;IAEA,OAAO;AACX"}
@@ -14,13 +14,17 @@ const createFilterOperations = (params)=>{
14
14
  });
15
15
  const cmsWhereMapper = container.resolve(CmsWhereMapper);
16
16
  const cmsSortMapper = container.resolve(CmsSortMapper);
17
+ const getOwnFilterEntry = async (model, id)=>{
18
+ const entry = await cms.getEntryById(model, id);
19
+ if (!entry || entry.createdBy?.id !== security.getIdentity()?.id) throw new error("Could not load filter.", "GET_FILTER_ERROR", {
20
+ id
21
+ });
22
+ return entry;
23
+ };
17
24
  return {
18
25
  getFilter ({ id }) {
19
26
  return withModel(async (model)=>{
20
- const entry = await cms.getEntryById(model, id);
21
- if (!entry) throw new error("Could not load filter.", "GET_FILTER_ERROR", {
22
- id
23
- });
27
+ const entry = await getOwnFilterEntry(model, id);
24
28
  return pickEntryFieldValues(entry);
25
29
  });
26
30
  },
@@ -53,13 +57,15 @@ const createFilterOperations = (params)=>{
53
57
  const entry = await cms.createEntry(model, {
54
58
  id: data.id,
55
59
  values: data
60
+ }, {
61
+ failIfExists: true
56
62
  });
57
63
  return pickEntryFieldValues(entry);
58
64
  });
59
65
  },
60
66
  updateFilter ({ id, data }) {
61
67
  return withModel(async (model)=>{
62
- const original = await cms.getEntryById(model, id);
68
+ const original = await getOwnFilterEntry(model, id);
63
69
  const input = {
64
70
  ...omit(original, ENTRY_META_FIELDS),
65
71
  values: {
@@ -73,6 +79,7 @@ const createFilterOperations = (params)=>{
73
79
  },
74
80
  deleteFilter ({ id }) {
75
81
  return withModel(async (model)=>{
82
+ await getOwnFilterEntry(model, id);
76
83
  await cms.deleteEntry(model, id);
77
84
  return true;
78
85
  });
@@ -1 +1 @@
1
- {"version":3,"file":"filter/filter.so.js","sources":["../../src/filter/filter.so.ts"],"sourcesContent":["import omit from \"lodash/omit.js\";\nimport WebinyError from \"@webiny/error\";\nimport { FILTER_MODEL_ID } from \"./filter.model.js\";\nimport type { HeadlessCms } from \"@webiny/api-headless-cms/types/index.js\";\nimport type { Security } from \"@webiny/api-core/types/security.js\";\nimport type { Container } from \"@webiny/di\";\n\ninterface CreateFilterOperationsParams {\n cms: HeadlessCms;\n security: Security;\n container: Container;\n}\nimport { createListSort } from \"~/utils/createListSort.js\";\nimport { createOperationsWrapper } from \"~/utils/createOperationsWrapper.js\";\nimport { pickEntryFieldValues } from \"~/utils/pickEntryFieldValues.js\";\nimport type { AcoFilterStorageOperations, Filter } from \"./filter.types.js\";\nimport { ENTRY_META_FIELDS } from \"@webiny/api-headless-cms/constants.js\";\nimport { CmsSortMapper, CmsWhereMapper } from \"@webiny/api-headless-cms\";\n\nexport const createFilterOperations = (\n params: CreateFilterOperationsParams\n): AcoFilterStorageOperations => {\n const { cms, security, container } = params;\n\n const { withModel } = createOperationsWrapper({\n ...params,\n modelName: FILTER_MODEL_ID\n });\n\n const cmsWhereMapper = container.resolve(CmsWhereMapper);\n const cmsSortMapper = container.resolve(CmsSortMapper);\n\n return {\n getFilter({ id }) {\n return withModel(async model => {\n const entry = await cms.getEntryById(model, id);\n\n if (!entry) {\n throw new WebinyError(\"Could not load filter.\", \"GET_FILTER_ERROR\", {\n id\n });\n }\n\n return pickEntryFieldValues(entry);\n });\n },\n listFilters(params) {\n return withModel(async model => {\n const { sort, where } = params;\n const createdBy = security.getIdentity().id;\n\n const [entries, meta] = await cms.listLatestEntries(model, {\n ...params,\n sort: cmsSortMapper.map({\n input: createListSort(sort),\n fields: model.fields\n }),\n where: cmsWhereMapper.map({\n input: {\n ...where,\n createdBy\n },\n fields: model.fields\n })\n });\n\n return [entries.map(pickEntryFieldValues<Filter>), meta];\n });\n },\n createFilter({ data }) {\n return withModel(async model => {\n const entry = await cms.createEntry(model, {\n id: data.id,\n values: data\n });\n return pickEntryFieldValues(entry);\n });\n },\n updateFilter({ id, data }) {\n return withModel(async model => {\n const original = await cms.getEntryById(model, id);\n\n const input = {\n /**\n * We are omitting the standard entry meta fields:\n * we don't want to override them with the ones coming from the `original` entry.\n */\n ...omit(original, ENTRY_META_FIELDS),\n values: {\n ...original.values,\n ...data\n }\n };\n\n const entry = await cms.updateEntry(model, original.id, input);\n return pickEntryFieldValues(entry);\n });\n },\n deleteFilter({ id }) {\n return withModel(async model => {\n await cms.deleteEntry(model, id);\n return true;\n });\n }\n };\n};\n"],"names":["createFilterOperations","params","cms","security","container","withModel","createOperationsWrapper","FILTER_MODEL_ID","cmsWhereMapper","CmsWhereMapper","cmsSortMapper","CmsSortMapper","id","model","entry","WebinyError","pickEntryFieldValues","sort","where","createdBy","entries","meta","createListSort","data","original","input","omit","ENTRY_META_FIELDS"],"mappings":";;;;;;;;AAmBO,MAAMA,yBAAyB,CAClCC;IAEA,MAAM,EAAEC,GAAG,EAAEC,QAAQ,EAAEC,SAAS,EAAE,GAAGH;IAErC,MAAM,EAAEI,SAAS,EAAE,GAAGC,wBAAwB;QAC1C,GAAGL,MAAM;QACT,WAAWM;IACf;IAEA,MAAMC,iBAAiBJ,UAAU,OAAO,CAACK;IACzC,MAAMC,gBAAgBN,UAAU,OAAO,CAACO;IAExC,OAAO;QACH,WAAU,EAAEC,EAAE,EAAE;YACZ,OAAOP,UAAU,OAAMQ;gBACnB,MAAMC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AChC;QACJ;QACA,cAAa,EAAEF,EAAE,EAAE;YACf,OAAOP,UAAU,OAAMQ;gBACnB,MAAMX,IAAI,WAAW,CAACW,OAAOD;gBAC7B,OAAO;YACX;QACJ;IACJ;AACJ"}
1
+ {"version":3,"file":"filter/filter.so.js","sources":["../../src/filter/filter.so.ts"],"sourcesContent":["import omit from \"lodash/omit.js\";\nimport WebinyError from \"@webiny/error\";\nimport { FILTER_MODEL_ID } from \"./filter.model.js\";\nimport type { HeadlessCms } from \"@webiny/api-headless-cms/types/index.js\";\nimport type { Security } from \"@webiny/api-core/types/security.js\";\nimport type { Container } from \"@webiny/di\";\n\ninterface CreateFilterOperationsParams {\n cms: HeadlessCms;\n security: Security;\n container: Container;\n}\nimport { createListSort } from \"~/utils/createListSort.js\";\nimport { createOperationsWrapper } from \"~/utils/createOperationsWrapper.js\";\nimport { pickEntryFieldValues } from \"~/utils/pickEntryFieldValues.js\";\nimport type { AcoFilterStorageOperations, Filter } from \"./filter.types.js\";\nimport { ENTRY_META_FIELDS } from \"@webiny/api-headless-cms/constants.js\";\nimport { CmsSortMapper, CmsWhereMapper } from \"@webiny/api-headless-cms\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\n\nexport const createFilterOperations = (\n params: CreateFilterOperationsParams\n): AcoFilterStorageOperations => {\n const { cms, security, container } = params;\n\n const { withModel } = createOperationsWrapper({\n ...params,\n modelName: FILTER_MODEL_ID\n });\n\n const cmsWhereMapper = container.resolve(CmsWhereMapper);\n const cmsSortMapper = container.resolve(CmsSortMapper);\n\n /**\n * Saved filters are personal. The filter model is private, so CMS authorization doesn't\n * apply: only the identity that created a filter may read, update or delete it.\n */\n const getOwnFilterEntry = async (model: CmsModel, id: string) => {\n const entry = await cms.getEntryById(model, id);\n if (!entry || entry.createdBy?.id !== security.getIdentity()?.id) {\n throw new WebinyError(\"Could not load filter.\", \"GET_FILTER_ERROR\", {\n id\n });\n }\n return entry;\n };\n\n return {\n getFilter({ id }) {\n return withModel(async model => {\n const entry = await getOwnFilterEntry(model, id);\n\n return pickEntryFieldValues(entry);\n });\n },\n listFilters(params) {\n return withModel(async model => {\n const { sort, where } = params;\n const createdBy = security.getIdentity().id;\n\n const [entries, meta] = await cms.listLatestEntries(model, {\n ...params,\n sort: cmsSortMapper.map({\n input: createListSort(sort),\n fields: model.fields\n }),\n where: cmsWhereMapper.map({\n input: {\n ...where,\n createdBy\n },\n fields: model.fields\n })\n });\n\n return [entries.map(pickEntryFieldValues<Filter>), meta];\n });\n },\n createFilter({ data }) {\n return withModel(async model => {\n // A client may choose the filter id; it must not replace someone else's filter.\n const entry = await cms.createEntry(\n model,\n {\n id: data.id,\n values: data\n },\n { failIfExists: true }\n );\n return pickEntryFieldValues(entry);\n });\n },\n updateFilter({ id, data }) {\n return withModel(async model => {\n const original = await getOwnFilterEntry(model, id);\n\n const input = {\n /**\n * We are omitting the standard entry meta fields:\n * we don't want to override them with the ones coming from the `original` entry.\n */\n ...omit(original, ENTRY_META_FIELDS),\n values: {\n ...original.values,\n ...data\n }\n };\n\n const entry = await cms.updateEntry(model, original.id, input);\n return pickEntryFieldValues(entry);\n });\n },\n deleteFilter({ id }) {\n return withModel(async model => {\n await getOwnFilterEntry(model, id);\n await cms.deleteEntry(model, id);\n return true;\n });\n }\n };\n};\n"],"names":["createFilterOperations","params","cms","security","container","withModel","createOperationsWrapper","FILTER_MODEL_ID","cmsWhereMapper","CmsWhereMapper","cmsSortMapper","CmsSortMapper","getOwnFilterEntry","model","id","entry","WebinyError","pickEntryFieldValues","sort","where","createdBy","entries","meta","createListSort","data","original","input","omit","ENTRY_META_FIELDS"],"mappings":";;;;;;;;AAoBO,MAAMA,yBAAyB,CAClCC;IAEA,MAAM,EAAEC,GAAG,EAAEC,QAAQ,EAAEC,SAAS,EAAE,GAAGH;IAErC,MAAM,EAAEI,SAAS,EAAE,GAAGC,wBAAwB;QAC1C,GAAGL,MAAM;QACT,WAAWM;IACf;IAEA,MAAMC,iBAAiBJ,UAAU,O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AOnB,UAAU,OAAMQ;gBACnB,MAAMY,WAAW,MAAMb,kBAAkBC,OAAOC;gBAEhD,MAAMY,QAAQ;oBAKV,GAAGC,KAAKF,UAAUG,kBAAkB;oBACpC,QAAQ;wBACJ,GAAGH,SAAS,MAAM;wBAClB,GAAGD,IAAI;oBACX;gBACJ;gBAEA,MAAMT,QAAQ,MAAMb,IAAI,WAAW,CAACW,OAAOY,SAAS,EAAE,EAAEC;gBACxD,OAAOT,qBAAqBF;YAChC;QACJ;QACA,cAAa,EAAED,EAAE,EAAE;YACf,OAAOT,UAAU,OAAMQ;gBACnB,MAAMD,kBAAkBC,OAAOC;gBAC/B,MAAMZ,IAAI,WAAW,CAACW,OAAOC;gBAC7B,OAAO;YACX;QACJ;IACJ;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/api-aco",
3
- "version": "6.5.2-beta.1",
3
+ "version": "6.5.2-beta.2",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "aco:base"
@@ -21,31 +21,31 @@
21
21
  ".": "./index.js"
22
22
  },
23
23
  "dependencies": {
24
- "@webiny/api": "6.5.2-beta.1",
25
- "@webiny/api-core": "6.5.2-beta.1",
26
- "@webiny/api-headless-cms": "6.5.2-beta.1",
27
- "@webiny/background-tasks": "6.5.2-beta.1",
24
+ "@webiny/api": "6.5.2-beta.2",
25
+ "@webiny/api-core": "6.5.2-beta.2",
26
+ "@webiny/api-headless-cms": "6.5.2-beta.2",
27
+ "@webiny/background-tasks": "6.5.2-beta.2",
28
28
  "@webiny/di": "1.1.0",
29
- "@webiny/error": "6.5.2-beta.1",
30
- "@webiny/feature": "6.5.2-beta.1",
31
- "@webiny/handler": "6.5.2-beta.1",
32
- "@webiny/handler-graphql": "6.5.2-beta.1",
33
- "@webiny/shared-aco": "6.5.2-beta.1",
34
- "@webiny/utils": "6.5.2-beta.1",
35
- "@webiny/validation": "6.5.2-beta.1",
29
+ "@webiny/error": "6.5.2-beta.2",
30
+ "@webiny/feature": "6.5.2-beta.2",
31
+ "@webiny/handler": "6.5.2-beta.2",
32
+ "@webiny/handler-graphql": "6.5.2-beta.2",
33
+ "@webiny/shared-aco": "6.5.2-beta.2",
34
+ "@webiny/utils": "6.5.2-beta.2",
35
+ "@webiny/validation": "6.5.2-beta.2",
36
36
  "lodash": "4.18.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@webiny/api-file-manager": "6.5.2-beta.1",
40
- "@webiny/build-tools": "6.5.2-beta.1",
41
- "@webiny/handler-aws": "6.5.2-beta.1",
42
- "@webiny/plugins": "6.5.2-beta.1",
43
- "@webiny/project-utils": "6.5.2-beta.1",
44
- "@webiny/wcp": "6.5.2-beta.1",
45
- "graphql": "16.14.2",
46
- "rimraf": "6.1.3",
39
+ "@webiny/api-file-manager": "6.5.2-beta.2",
40
+ "@webiny/build-tools": "6.5.2-beta.2",
41
+ "@webiny/handler-aws": "6.5.2-beta.2",
42
+ "@webiny/plugins": "6.5.2-beta.2",
43
+ "@webiny/project-utils": "6.5.2-beta.2",
44
+ "@webiny/wcp": "6.5.2-beta.2",
45
+ "graphql": "16.15.0",
46
+ "rimraf": "6.1.4",
47
47
  "typescript": "7.0.2",
48
- "vitest": "5.0.5"
48
+ "vitest": "5.1.0"
49
49
  },
50
50
  "webiny": {
51
51
  "publishFrom": "dist"