@webiny/api-aco 0.0.0-unstable.7f63ea0744 → 0.0.0-unstable.99666aeb00
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/README.md +6 -6
- package/apps/AcoApp.d.ts +16 -0
- package/apps/AcoApp.js +108 -0
- package/apps/AcoApp.js.map +1 -0
- package/apps/AcoApps.d.ts +10 -0
- package/apps/AcoApps.js +76 -0
- package/apps/AcoApps.js.map +1 -0
- package/apps/app.gql.d.ts +3 -0
- package/apps/app.gql.js +58 -0
- package/apps/app.gql.js.map +1 -0
- package/apps/index.d.ts +2 -0
- package/apps/index.js +27 -0
- package/apps/index.js.map +1 -0
- package/createAcoContext.js +50 -13
- package/createAcoContext.js.map +1 -1
- package/createAcoGraphQL.d.ts +2 -2
- package/createAcoGraphQL.js +44 -14
- package/createAcoGraphQL.js.map +1 -1
- package/createAcoModels.js +0 -25
- package/createAcoModels.js.map +1 -1
- package/{createAcoFields.d.ts → fields/index.d.ts} +1 -1
- package/fields/index.js +12 -0
- package/fields/index.js.map +1 -0
- package/fields/location.d.ts +2 -0
- package/fields/location.js +44 -0
- package/fields/location.js.map +1 -0
- package/folder/folder.crud.js +18 -0
- package/folder/folder.crud.js.map +1 -1
- package/folder/folder.gql.js +20 -5
- package/folder/folder.gql.js.map +1 -1
- package/folder/folder.model.d.ts +3 -3
- package/folder/folder.model.js +3 -25
- package/folder/folder.model.js.map +1 -1
- package/folder/folder.so.d.ts +1 -6
- package/folder/folder.so.js +103 -108
- package/folder/folder.so.js.map +1 -1
- package/folder/folder.types.d.ts +9 -3
- package/folder/folder.types.js.map +1 -1
- package/folder/onFolderBeforeDelete.hook.js +40 -27
- package/folder/onFolderBeforeDelete.hook.js.map +1 -1
- package/index.d.ts +5 -1
- package/index.js +48 -6
- package/index.js.map +1 -1
- package/package.json +34 -31
- package/plugins/AcoAppModifierPlugin.d.ts +43 -0
- package/plugins/AcoAppModifierPlugin.js +59 -0
- package/plugins/AcoAppModifierPlugin.js.map +1 -0
- package/plugins/AcoAppRegisterPlugin.d.ts +8 -0
- package/plugins/AcoAppRegisterPlugin.js +22 -0
- package/plugins/AcoAppRegisterPlugin.js.map +1 -0
- package/plugins/index.d.ts +2 -0
- package/plugins/index.js +27 -0
- package/plugins/index.js.map +1 -0
- package/record/graphql/createAppResolvers.d.ts +14 -0
- package/record/graphql/createAppResolvers.js +108 -0
- package/record/graphql/createAppResolvers.js.map +1 -0
- package/record/graphql/createAppSchema.d.ts +9 -0
- package/record/graphql/createAppSchema.js +142 -0
- package/record/graphql/createAppSchema.js.map +1 -0
- package/record/record.crud.js +46 -12
- package/record/record.crud.js.map +1 -1
- package/record/record.gql.d.ts +8 -3
- package/record/record.gql.js +36 -113
- package/record/record.gql.js.map +1 -1
- package/record/record.model.d.ts +10 -4
- package/record/record.model.js +39 -28
- package/record/record.model.js.map +1 -1
- package/record/record.so.d.ts +1 -6
- package/record/record.so.js +112 -62
- package/record/record.so.js.map +1 -1
- package/record/record.types.d.ts +66 -15
- package/record/record.types.js.map +1 -1
- package/types.d.ts +56 -3
- package/types.js +35 -1
- package/types.js.map +1 -1
- package/utils/acoRecordId.d.ts +6 -0
- package/utils/acoRecordId.js +33 -0
- package/utils/acoRecordId.js.map +1 -0
- package/utils/checkPermissions.d.ts +2 -0
- package/utils/checkPermissions.js +14 -0
- package/utils/checkPermissions.js.map +1 -0
- package/utils/createListSort.d.ts +2 -0
- package/utils/createListSort.js +13 -0
- package/utils/createListSort.js.map +1 -0
- package/utils/createModelField.d.ts +0 -1
- package/utils/createModelField.js +2 -4
- package/utils/createModelField.js.map +1 -1
- package/utils/createOperationsWrapper.d.ts +9 -0
- package/utils/createOperationsWrapper.js +29 -0
- package/utils/createOperationsWrapper.js.map +1 -0
- package/utils/getFieldValues.d.ts +4 -1
- package/utils/getFieldValues.js +6 -2
- package/utils/getFieldValues.js.map +1 -1
- package/utils/getFolderAndItsAncestors.d.ts +7 -0
- package/utils/getFolderAndItsAncestors.js +48 -0
- package/utils/getFolderAndItsAncestors.js.map +1 -0
- package/utils/modelFactory.d.ts +3 -3
- package/utils/modelFactory.js +4 -2
- package/utils/modelFactory.js.map +1 -1
- package/utils/resolve.d.ts +2 -1
- package/utils/resolve.js +11 -2
- package/utils/resolve.js.map +1 -1
- package/createAcoCrud.d.ts +0 -2
- package/createAcoCrud.js +0 -17
- package/createAcoCrud.js.map +0 -1
- package/createAcoFields.js +0 -40
- package/createAcoFields.js.map +0 -1
package/folder/folder.so.js
CHANGED
|
@@ -9,147 +9,142 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
|
9
9
|
var _error = _interopRequireDefault(require("@webiny/error"));
|
|
10
10
|
var _folder = require("./folder.model");
|
|
11
11
|
var _createAcoStorageOperations = require("../createAcoStorageOperations");
|
|
12
|
+
var _createListSort = require("../utils/createListSort");
|
|
13
|
+
var _createOperationsWrapper = require("../utils/createOperationsWrapper");
|
|
12
14
|
var _getFieldValues = require("../utils/getFieldValues");
|
|
13
15
|
const createFolderOperations = params => {
|
|
14
16
|
const {
|
|
15
|
-
cms
|
|
16
|
-
security
|
|
17
|
+
cms
|
|
17
18
|
} = params;
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
return model;
|
|
26
|
-
};
|
|
27
|
-
const getFolder = async ({
|
|
19
|
+
const {
|
|
20
|
+
withModel
|
|
21
|
+
} = (0, _createOperationsWrapper.createOperationsWrapper)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, params), {}, {
|
|
22
|
+
modelName: _folder.FOLDER_MODEL_ID
|
|
23
|
+
}));
|
|
24
|
+
const getFolder = ({
|
|
28
25
|
id,
|
|
29
26
|
slug,
|
|
30
27
|
type,
|
|
31
28
|
parentId
|
|
32
29
|
}) => {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
return withModel(async model => {
|
|
31
|
+
let entry;
|
|
32
|
+
if (id) {
|
|
33
|
+
entry = await cms.getEntryById(model, id);
|
|
34
|
+
} else if (slug && type) {
|
|
35
|
+
entry = await cms.getEntry(model, {
|
|
36
|
+
where: {
|
|
37
|
+
slug,
|
|
38
|
+
type,
|
|
39
|
+
parentId,
|
|
40
|
+
latest: true
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
if (!entry) {
|
|
45
|
+
throw new _error.default("Could not load folder.", "GET_FOLDER_ERROR", {
|
|
46
|
+
id,
|
|
41
47
|
slug,
|
|
42
48
|
type,
|
|
43
|
-
parentId
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
if (!entry) {
|
|
49
|
-
throw new _error.default("Could not load folder.", "GET_FOLDER_ERROR", {
|
|
50
|
-
id,
|
|
51
|
-
slug,
|
|
52
|
-
type,
|
|
53
|
-
parentId
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
security.enableAuthorization();
|
|
57
|
-
return (0, _getFieldValues.getFieldValues)(entry, _createAcoStorageOperations.baseFields);
|
|
49
|
+
parentId
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return (0, _getFieldValues.getFolderFieldValues)(entry, _createAcoStorageOperations.baseFields);
|
|
53
|
+
});
|
|
58
54
|
};
|
|
59
|
-
const checkExistingFolder =
|
|
55
|
+
const checkExistingFolder = ({
|
|
60
56
|
id,
|
|
61
57
|
params
|
|
62
58
|
}) => {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
const {
|
|
66
|
-
type,
|
|
67
|
-
slug,
|
|
68
|
-
parentId
|
|
69
|
-
} = params;
|
|
70
|
-
const [existings] = await cms.listLatestEntries(model, {
|
|
71
|
-
where: {
|
|
59
|
+
return withModel(async model => {
|
|
60
|
+
const {
|
|
72
61
|
type,
|
|
73
62
|
slug,
|
|
74
|
-
parentId
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
63
|
+
parentId
|
|
64
|
+
} = params;
|
|
65
|
+
const [existings] = await cms.listLatestEntries(model, {
|
|
66
|
+
where: {
|
|
67
|
+
type,
|
|
68
|
+
slug,
|
|
69
|
+
parentId,
|
|
70
|
+
id_not: id
|
|
71
|
+
},
|
|
72
|
+
limit: 1
|
|
83
73
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
74
|
+
if (existings.length > 0) {
|
|
75
|
+
throw new _error.default(`Folder with slug "${slug}" already exists at this level.`, "FOLDER_ALREADY_EXISTS", {
|
|
76
|
+
id,
|
|
77
|
+
params
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return;
|
|
81
|
+
});
|
|
87
82
|
};
|
|
88
83
|
return {
|
|
89
|
-
getFolderModel,
|
|
90
84
|
getFolder,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
85
|
+
listFolders(params) {
|
|
86
|
+
return withModel(async model => {
|
|
87
|
+
const {
|
|
88
|
+
sort,
|
|
89
|
+
where
|
|
90
|
+
} = params;
|
|
91
|
+
const [entries, meta] = await cms.listLatestEntries(model, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params), {}, {
|
|
92
|
+
sort: (0, _createListSort.createListSort)(sort),
|
|
93
|
+
where: (0, _objectSpread2.default)({}, where || {})
|
|
94
|
+
}));
|
|
95
|
+
return [entries.map(entry => (0, _getFieldValues.getFolderFieldValues)(entry, _createAcoStorageOperations.baseFields)), meta];
|
|
96
|
+
});
|
|
99
97
|
},
|
|
100
|
-
|
|
98
|
+
createFolder({
|
|
101
99
|
data
|
|
102
100
|
}) {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
101
|
+
return withModel(async model => {
|
|
102
|
+
await checkExistingFolder({
|
|
103
|
+
params: {
|
|
104
|
+
type: data.type,
|
|
105
|
+
slug: data.slug,
|
|
106
|
+
parentId: data.parentId
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
const entry = await cms.createEntry(model, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
|
|
110
|
+
parentId: data.parentId || null
|
|
111
|
+
}));
|
|
112
|
+
return (0, _getFieldValues.getFolderFieldValues)(entry, _createAcoStorageOperations.baseFields);
|
|
111
113
|
});
|
|
112
|
-
const entry = await cms.createEntry(model, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
|
|
113
|
-
parentId: data.parentId || null
|
|
114
|
-
}));
|
|
115
|
-
security.enableAuthorization();
|
|
116
|
-
return (0, _getFieldValues.getFieldValues)(entry, _createAcoStorageOperations.baseFields);
|
|
117
114
|
},
|
|
118
|
-
|
|
115
|
+
updateFolder({
|
|
119
116
|
id,
|
|
120
117
|
data
|
|
121
118
|
}) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
});
|
|
119
|
+
return withModel(async model => {
|
|
120
|
+
const {
|
|
121
|
+
slug,
|
|
122
|
+
parentId
|
|
123
|
+
} = data;
|
|
124
|
+
const original = await getFolder({
|
|
125
|
+
id
|
|
126
|
+
});
|
|
127
|
+
await checkExistingFolder({
|
|
128
|
+
id,
|
|
129
|
+
params: {
|
|
130
|
+
type: original.type,
|
|
131
|
+
slug: slug || original.slug,
|
|
132
|
+
parentId: parentId !== undefined ? parentId : original.parentId // parentId can be `null`
|
|
133
|
+
}
|
|
134
|
+
});
|
|
139
135
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
136
|
+
const input = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, original), data);
|
|
137
|
+
const entry = await cms.updateEntry(model, id, input);
|
|
138
|
+
return (0, _getFieldValues.getFolderFieldValues)(entry, _createAcoStorageOperations.baseFields);
|
|
139
|
+
});
|
|
144
140
|
},
|
|
145
|
-
|
|
141
|
+
deleteFolder({
|
|
146
142
|
id
|
|
147
143
|
}) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
return true;
|
|
144
|
+
return withModel(async model => {
|
|
145
|
+
await cms.deleteEntry(model, id);
|
|
146
|
+
return true;
|
|
147
|
+
});
|
|
153
148
|
}
|
|
154
149
|
};
|
|
155
150
|
};
|
package/folder/folder.so.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createFolderOperations","params","cms","
|
|
1
|
+
{"version":3,"names":["createFolderOperations","params","cms","withModel","createOperationsWrapper","modelName","FOLDER_MODEL_ID","getFolder","id","slug","type","parentId","model","entry","getEntryById","getEntry","where","latest","WebinyError","getFolderFieldValues","baseFields","checkExistingFolder","existings","listLatestEntries","id_not","limit","length","listFolders","sort","entries","meta","createListSort","map","createFolder","data","createEntry","updateFolder","original","undefined","input","updateEntry","deleteFolder","deleteEntry"],"sources":["folder.so.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\n\nimport { FOLDER_MODEL_ID } from \"./folder.model\";\nimport { baseFields, CreateAcoStorageOperationsParams } from \"~/createAcoStorageOperations\";\nimport { createListSort } from \"~/utils/createListSort\";\nimport { createOperationsWrapper } from \"~/utils/createOperationsWrapper\";\nimport { getFolderFieldValues } from \"~/utils/getFieldValues\";\n\nimport { AcoFolderStorageOperations } from \"./folder.types\";\n\ninterface AcoCheckExistingFolderParams {\n params: {\n type: string;\n slug: string;\n parentId?: string | null;\n };\n id?: string;\n}\n\nexport const createFolderOperations = (\n params: CreateAcoStorageOperationsParams\n): AcoFolderStorageOperations => {\n const { cms } = params;\n\n const { withModel } = createOperationsWrapper({\n ...params,\n modelName: FOLDER_MODEL_ID\n });\n\n const getFolder: AcoFolderStorageOperations[\"getFolder\"] = ({ id, slug, type, parentId }) => {\n return withModel(async model => {\n let entry;\n\n if (id) {\n entry = await cms.getEntryById(model, id);\n } else if (slug && type) {\n entry = await cms.getEntry(model, {\n where: { slug, type, parentId, latest: true }\n });\n }\n\n if (!entry) {\n throw new WebinyError(\"Could not load folder.\", \"GET_FOLDER_ERROR\", {\n id,\n slug,\n type,\n parentId\n });\n }\n\n return getFolderFieldValues(entry, baseFields);\n });\n };\n\n const checkExistingFolder = ({ id, params }: AcoCheckExistingFolderParams) => {\n return withModel(async model => {\n const { type, slug, parentId } = params;\n\n const [existings] = await cms.listLatestEntries(model, {\n where: {\n type,\n slug,\n parentId,\n id_not: id\n },\n limit: 1\n });\n\n if (existings.length > 0) {\n throw new WebinyError(\n `Folder with slug \"${slug}\" already exists at this level.`,\n \"FOLDER_ALREADY_EXISTS\",\n {\n id,\n params\n }\n );\n }\n\n return;\n });\n };\n\n return {\n getFolder,\n listFolders(params) {\n return withModel(async model => {\n const { sort, where } = params;\n\n const [entries, meta] = await cms.listLatestEntries(model, {\n ...params,\n sort: createListSort(sort),\n where: {\n ...(where || {})\n }\n });\n\n return [entries.map(entry => getFolderFieldValues(entry, baseFields)), meta];\n });\n },\n createFolder({ data }) {\n return withModel(async model => {\n await checkExistingFolder({\n params: {\n type: data.type,\n slug: data.slug,\n parentId: data.parentId\n }\n });\n\n const entry = await cms.createEntry(model, {\n ...data,\n parentId: data.parentId || null\n });\n\n return getFolderFieldValues(entry, baseFields);\n });\n },\n updateFolder({ id, data }) {\n return withModel(async model => {\n const { slug, parentId } = data;\n\n const original = await getFolder({ id });\n\n await checkExistingFolder({\n id,\n params: {\n type: original.type,\n slug: slug || original.slug,\n parentId: parentId !== undefined ? parentId : original.parentId // parentId can be `null`\n }\n });\n\n const input = {\n ...original,\n ...data\n };\n\n const entry = await cms.updateEntry(model, id, input);\n return getFolderFieldValues(entry, baseFields);\n });\n },\n deleteFolder({ id }) {\n return withModel(async model => {\n await cms.deleteEntry(model, id);\n return true;\n });\n }\n };\n};\n"],"mappings":"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"}
|
package/folder/folder.types.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ListMeta, ListSort, User } from "../types";
|
|
2
2
|
import { Topic } from "@webiny/pubsub/types";
|
|
3
|
-
export interface Folder
|
|
3
|
+
export interface Folder {
|
|
4
|
+
id: string;
|
|
5
|
+
entryId: string;
|
|
6
|
+
createdOn: string;
|
|
7
|
+
createdBy: User;
|
|
8
|
+
savedOn: string;
|
|
4
9
|
title: string;
|
|
5
10
|
slug: string;
|
|
6
11
|
type: string;
|
|
@@ -12,7 +17,7 @@ export interface ListFoldersWhere {
|
|
|
12
17
|
}
|
|
13
18
|
export interface ListFoldersParams {
|
|
14
19
|
where: ListFoldersWhere;
|
|
15
|
-
sort?:
|
|
20
|
+
sort?: ListSort;
|
|
16
21
|
limit?: number;
|
|
17
22
|
after?: string | null;
|
|
18
23
|
}
|
|
@@ -67,6 +72,7 @@ export interface AcoFolderCrud {
|
|
|
67
72
|
create(data: CreateFolderParams): Promise<Folder>;
|
|
68
73
|
update(id: string, data: UpdateFolderParams): Promise<Folder>;
|
|
69
74
|
delete(id: string): Promise<Boolean>;
|
|
75
|
+
getFolderWithAncestors(id: string): Promise<Folder[]>;
|
|
70
76
|
onFolderBeforeCreate: Topic<OnFolderBeforeCreateTopicParams>;
|
|
71
77
|
onFolderAfterCreate: Topic<OnFolderAfterCreateTopicParams>;
|
|
72
78
|
onFolderBeforeUpdate: Topic<OnFolderBeforeUpdateTopicParams>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["folder.types.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":[],"sources":["folder.types.ts"],"sourcesContent":["import { ListMeta, ListSort, User } from \"~/types\";\nimport { Topic } from \"@webiny/pubsub/types\";\n\nexport interface Folder {\n id: string;\n entryId: string;\n createdOn: string;\n createdBy: User;\n savedOn: string;\n title: string;\n slug: string;\n type: string;\n parentId?: string | null;\n}\n\nexport interface ListFoldersWhere {\n type: string;\n parentId?: string | null;\n}\n\nexport interface ListFoldersParams {\n where: ListFoldersWhere;\n sort?: ListSort;\n limit?: number;\n after?: string | null;\n}\n\nexport type CreateFolderParams = Pick<Folder, \"title\" | \"slug\" | \"type\" | \"parentId\">;\n\nexport interface UpdateFolderParams {\n title?: string;\n slug?: string;\n parentId?: string;\n}\n\nexport interface DeleteFolderParams {\n id: string;\n}\n\nexport interface StorageOperationsGetFolderParams {\n id?: string;\n slug?: string;\n type?: string;\n parentId?: string | null;\n}\n\nexport type StorageOperationsListFoldersParams = ListFoldersParams;\n\nexport interface StorageOperationsCreateFolderParams {\n data: CreateFolderParams;\n}\n\nexport interface StorageOperationsUpdateFolderParams {\n id: string;\n data: UpdateFolderParams;\n}\n\nexport type StorageOperationsDeleteFolderParams = DeleteFolderParams;\n\nexport interface OnFolderBeforeCreateTopicParams {\n input: CreateFolderParams;\n}\n\nexport interface OnFolderAfterCreateTopicParams {\n folder: Folder;\n}\n\nexport interface OnFolderBeforeUpdateTopicParams {\n original: Folder;\n input: Record<string, any>;\n}\n\nexport interface OnFolderAfterUpdateTopicParams {\n original: Folder;\n folder: Folder;\n input: Record<string, any>;\n}\n\nexport interface OnFolderBeforeDeleteTopicParams {\n folder: Folder;\n}\n\nexport interface OnFolderAfterDeleteTopicParams {\n folder: Folder;\n}\n\nexport interface AcoFolderCrud {\n get(id: string): Promise<Folder>;\n list(params: ListFoldersParams): Promise<[Folder[], ListMeta]>;\n create(data: CreateFolderParams): Promise<Folder>;\n update(id: string, data: UpdateFolderParams): Promise<Folder>;\n delete(id: string): Promise<Boolean>;\n getFolderWithAncestors(id: string): Promise<Folder[]>;\n onFolderBeforeCreate: Topic<OnFolderBeforeCreateTopicParams>;\n onFolderAfterCreate: Topic<OnFolderAfterCreateTopicParams>;\n onFolderBeforeUpdate: Topic<OnFolderBeforeUpdateTopicParams>;\n onFolderAfterUpdate: Topic<OnFolderAfterUpdateTopicParams>;\n onFolderBeforeDelete: Topic<OnFolderBeforeDeleteTopicParams>;\n onFolderAfterDelete: Topic<OnFolderAfterDeleteTopicParams>;\n}\n\nexport interface AcoFolderStorageOperations {\n getFolder(params: StorageOperationsGetFolderParams): Promise<Folder>;\n listFolders(params: StorageOperationsListFoldersParams): Promise<[Folder[], ListMeta]>;\n createFolder(params: StorageOperationsCreateFolderParams): Promise<Folder>;\n updateFolder(params: StorageOperationsUpdateFolderParams): Promise<Folder>;\n deleteFolder(params: StorageOperationsDeleteFolderParams): Promise<boolean>;\n}\n"],"mappings":""}
|
|
@@ -6,19 +6,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.onFolderBeforeDeleteHook = void 0;
|
|
8
8
|
var _error = _interopRequireDefault(require("@webiny/error"));
|
|
9
|
+
const throwDeleteError = folder => {
|
|
10
|
+
throw new _error.default("Error: delete all child folders and entries before proceeding.", "DELETE_FOLDER_WITH_CHILDREN", {
|
|
11
|
+
folder
|
|
12
|
+
});
|
|
13
|
+
};
|
|
9
14
|
const onFolderBeforeDeleteHook = ({
|
|
10
15
|
aco
|
|
11
16
|
}) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
aco.folder.onFolderBeforeDelete.subscribe(async ({
|
|
18
|
+
folder
|
|
19
|
+
}) => {
|
|
20
|
+
try {
|
|
16
21
|
const {
|
|
17
22
|
id,
|
|
18
23
|
type
|
|
19
24
|
} = folder;
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
/**
|
|
26
|
+
* First we check for the child folders.
|
|
27
|
+
*/
|
|
22
28
|
const [children] = await aco.folder.list({
|
|
23
29
|
where: {
|
|
24
30
|
type,
|
|
@@ -26,28 +32,35 @@ const onFolderBeforeDeleteHook = ({
|
|
|
26
32
|
},
|
|
27
33
|
limit: 1
|
|
28
34
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
if (children.length > 0) {
|
|
36
|
+
throwDeleteError(folder);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Then for entries in each of the apps.
|
|
40
|
+
* Because we split the apps we must do it like this.
|
|
41
|
+
*/
|
|
42
|
+
const apps = aco.listApps();
|
|
43
|
+
for (const app of apps) {
|
|
44
|
+
const [records] = await app.search.list({
|
|
45
|
+
where: {
|
|
46
|
+
type,
|
|
47
|
+
location: {
|
|
48
|
+
folderId: id
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
limit: 1
|
|
43
52
|
});
|
|
53
|
+
if (records.length === 0) {
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
throwDeleteError(folder);
|
|
44
57
|
}
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
}
|
|
58
|
+
} catch (error) {
|
|
59
|
+
throw _error.default.from(error, {
|
|
60
|
+
message: "Error while executing onFolderBeforeDelete hook",
|
|
61
|
+
code: "ACO_BEFORE_FOLDER_DELETE_HOOK"
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
});
|
|
52
65
|
};
|
|
53
66
|
exports.onFolderBeforeDeleteHook = onFolderBeforeDeleteHook;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["throwDeleteError","folder","WebinyError","onFolderBeforeDeleteHook","aco","onFolderBeforeDelete","subscribe","id","type","children","list","where","parentId","limit","length","apps","listApps","app","records","search","location","folderId","error","from","message","code"],"sources":["onFolderBeforeDelete.hook.ts"],"sourcesContent":["import WebinyError from \"@webiny/error\";\nimport { AcoContext, Folder } from \"~/types\";\n\nconst throwDeleteError = (folder: Folder) => {\n throw new WebinyError(\n \"Error: delete all child folders and entries before proceeding.\",\n \"DELETE_FOLDER_WITH_CHILDREN\",\n {\n folder\n }\n );\n};\n\nexport const onFolderBeforeDeleteHook = ({ aco }: AcoContext) => {\n aco.folder.onFolderBeforeDelete.subscribe(async ({ folder }) => {\n try {\n const { id, type } = folder;\n /**\n * First we check for the child folders.\n */\n const [children] = await aco.folder.list({\n where: {\n type,\n parentId: id\n },\n limit: 1\n });\n if (children.length > 0) {\n throwDeleteError(folder);\n }\n /**\n * Then for entries in each of the apps.\n * Because we split the apps we must do it like this.\n */\n const apps = aco.listApps();\n for (const app of apps) {\n const [records] = await app.search.list({\n where: {\n type,\n location: {\n folderId: id\n }\n },\n limit: 1\n });\n if (records.length === 0) {\n continue;\n }\n throwDeleteError(folder);\n }\n } catch (error) {\n throw WebinyError.from(error, {\n message: \"Error while executing onFolderBeforeDelete hook\",\n code: \"ACO_BEFORE_FOLDER_DELETE_HOOK\"\n });\n }\n });\n};\n"],"mappings":";;;;;;;AAAA;AAGA,MAAMA,gBAAgB,GAAIC,MAAc,IAAK;EACzC,MAAM,IAAIC,cAAW,CACjB,gEAAgE,EAChE,6BAA6B,EAC7B;IACID;EACJ,CAAC,CACJ;AACL,CAAC;AAEM,MAAME,wBAAwB,GAAG,CAAC;EAAEC;AAAgB,CAAC,KAAK;EAC7DA,GAAG,CAACH,MAAM,CAACI,oBAAoB,CAACC,SAAS,CAAC,OAAO;IAAEL;EAAO,CAAC,KAAK;IAC5D,IAAI;MACA,MAAM;QAAEM,EAAE;QAAEC;MAAK,CAAC,GAAGP,MAAM;MAC3B;AACZ;AACA;MACY,MAAM,CAACQ,QAAQ,CAAC,GAAG,MAAML,GAAG,CAACH,MAAM,CAACS,IAAI,CAAC;QACrCC,KAAK,EAAE;UACHH,IAAI;UACJI,QAAQ,EAAEL;QACd,CAAC;QACDM,KAAK,EAAE;MACX,CAAC,CAAC;MACF,IAAIJ,QAAQ,CAACK,MAAM,GAAG,CAAC,EAAE;QACrBd,gBAAgB,CAACC,MAAM,CAAC;MAC5B;MACA;AACZ;AACA;AACA;MACY,MAAMc,IAAI,GAAGX,GAAG,CAACY,QAAQ,EAAE;MAC3B,KAAK,MAAMC,GAAG,IAAIF,IAAI,EAAE;QACpB,MAAM,CAACG,OAAO,CAAC,GAAG,MAAMD,GAAG,CAACE,MAAM,CAACT,IAAI,CAAC;UACpCC,KAAK,EAAE;YACHH,IAAI;YACJY,QAAQ,EAAE;cACNC,QAAQ,EAAEd;YACd;UACJ,CAAC;UACDM,KAAK,EAAE;QACX,CAAC,CAAC;QACF,IAAIK,OAAO,CAACJ,MAAM,KAAK,CAAC,EAAE;UACtB;QACJ;QACAd,gBAAgB,CAACC,MAAM,CAAC;MAC5B;IACJ,CAAC,CAAC,OAAOqB,KAAK,EAAE;MACZ,MAAMpB,cAAW,CAACqB,IAAI,CAACD,KAAK,EAAE;QAC1BE,OAAO,EAAE,iDAAiD;QAC1DC,IAAI,EAAE;MACV,CAAC,CAAC;IACN;EACJ,CAAC,CAAC;AACN,CAAC;AAAC"}
|
package/index.d.ts
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { SEARCH_RECORD_MODEL_ID } from "./record/record.model";
|
|
2
|
+
export { FOLDER_MODEL_ID } from "./folder/folder.model";
|
|
3
|
+
export * from "./apps";
|
|
4
|
+
export * from "./plugins";
|
|
5
|
+
export declare const createAco: () => (import("@webiny/api-headless-cms/types").CmsModelFieldToGraphQLPlugin<import("@webiny/api-headless-cms/types").CmsModelField> | import("@webiny/api").ContextPlugin<import("./types").AcoContext> | import("@webiny/handler-graphql").GraphQLSchemaPlugin<import("./types").AcoContext>)[];
|
package/index.js
CHANGED
|
@@ -3,12 +3,54 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
createAco: true,
|
|
8
|
+
SEARCH_RECORD_MODEL_ID: true,
|
|
9
|
+
FOLDER_MODEL_ID: true
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "FOLDER_MODEL_ID", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return _folder.FOLDER_MODEL_ID;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "SEARCH_RECORD_MODEL_ID", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return _record.SEARCH_RECORD_MODEL_ID;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
exports.createAco = void 0;
|
|
8
24
|
var _createAcoContext = require("./createAcoContext");
|
|
9
|
-
var _createAcoFields = require("./createAcoFields");
|
|
10
25
|
var _createAcoGraphQL = require("./createAcoGraphQL");
|
|
11
|
-
|
|
12
|
-
|
|
26
|
+
var _fields = require("./fields");
|
|
27
|
+
var _record = require("./record/record.model");
|
|
28
|
+
var _folder = require("./folder/folder.model");
|
|
29
|
+
var _apps = require("./apps");
|
|
30
|
+
Object.keys(_apps).forEach(function (key) {
|
|
31
|
+
if (key === "default" || key === "__esModule") return;
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
33
|
+
if (key in exports && exports[key] === _apps[key]) return;
|
|
34
|
+
Object.defineProperty(exports, key, {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () {
|
|
37
|
+
return _apps[key];
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
var _plugins = require("./plugins");
|
|
42
|
+
Object.keys(_plugins).forEach(function (key) {
|
|
43
|
+
if (key === "default" || key === "__esModule") return;
|
|
44
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
45
|
+
if (key in exports && exports[key] === _plugins[key]) return;
|
|
46
|
+
Object.defineProperty(exports, key, {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () {
|
|
49
|
+
return _plugins[key];
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
const createAco = () => {
|
|
54
|
+
return [...(0, _fields.createFields)(), (0, _createAcoContext.createAcoContext)(), ...(0, _createAcoGraphQL.createAcoGraphQL)()];
|
|
13
55
|
};
|
|
14
|
-
exports.
|
|
56
|
+
exports.createAco = createAco;
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["createAco","createFields","createAcoContext","createAcoGraphQL"],"sources":["index.ts"],"sourcesContent":["import { createAcoContext } from \"~/createAcoContext\";\nimport { createAcoGraphQL } from \"~/createAcoGraphQL\";\nimport { createFields } from \"~/fields\";\n\nexport { SEARCH_RECORD_MODEL_ID } from \"./record/record.model\";\nexport { FOLDER_MODEL_ID } from \"./folder/folder.model\";\nexport * from \"./apps\";\nexport * from \"./plugins\";\n\nexport const createAco = () => {\n return [...createFields(), createAcoContext(), ...createAcoGraphQL()];\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AAEA;AACA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AAEO,MAAMA,SAAS,GAAG,MAAM;EAC3B,OAAO,CAAC,GAAG,IAAAC,oBAAY,GAAE,EAAE,IAAAC,kCAAgB,GAAE,EAAE,GAAG,IAAAC,kCAAgB,GAAE,CAAC;AACzE,CAAC;AAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-aco",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.99666aeb00",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aco:base"
|
|
@@ -21,37 +21,40 @@
|
|
|
21
21
|
"access": "public",
|
|
22
22
|
"directory": "dist"
|
|
23
23
|
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@babel/cli": "^7.19.3",
|
|
26
|
-
"@babel/core": "^7.19.3",
|
|
27
|
-
"@babel/preset-env": "^7.19.4",
|
|
28
|
-
"@babel/preset-typescript": "^7.18.6",
|
|
29
|
-
"@babel/runtime": "^7.19.0",
|
|
30
|
-
"@webiny/api-headless-cms-ddb": "^0.0.0-unstable.7f63ea0744",
|
|
31
|
-
"@webiny/api-i18n-ddb": "^0.0.0-unstable.7f63ea0744",
|
|
32
|
-
"@webiny/api-security-so-ddb": "^0.0.0-unstable.7f63ea0744",
|
|
33
|
-
"@webiny/api-tenancy-so-ddb": "^0.0.0-unstable.7f63ea0744",
|
|
34
|
-
"@webiny/api-wcp": "^0.0.0-unstable.7f63ea0744",
|
|
35
|
-
"@webiny/cli": "^0.0.0-unstable.7f63ea0744",
|
|
36
|
-
"@webiny/handler-aws": "^0.0.0-unstable.7f63ea0744",
|
|
37
|
-
"@webiny/plugins": "^0.0.0-unstable.7f63ea0744",
|
|
38
|
-
"@webiny/project-utils": "^0.0.0-unstable.7f63ea0744",
|
|
39
|
-
"rimraf": "^3.0.2",
|
|
40
|
-
"ttypescript": "^1.5.13",
|
|
41
|
-
"typescript": "^4.7.4"
|
|
42
|
-
},
|
|
43
24
|
"dependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@webiny/api
|
|
46
|
-
"@webiny/api-headless-cms": "0.0.0-unstable.
|
|
47
|
-
"@webiny/api-i18n": "0.0.0-unstable.
|
|
48
|
-
"@webiny/api-security": "0.0.0-unstable.
|
|
49
|
-
"@webiny/api-tenancy": "0.0.0-unstable.
|
|
50
|
-
"@webiny/error": "0.0.0-unstable.
|
|
51
|
-
"@webiny/handler": "0.0.0-unstable.
|
|
52
|
-
"@webiny/handler-graphql": "0.0.0-unstable.
|
|
53
|
-
"@webiny/pubsub": "0.0.0-unstable.
|
|
25
|
+
"@ungap/structured-clone": "1.2.0",
|
|
26
|
+
"@webiny/api": "0.0.0-unstable.99666aeb00",
|
|
27
|
+
"@webiny/api-headless-cms": "0.0.0-unstable.99666aeb00",
|
|
28
|
+
"@webiny/api-i18n": "0.0.0-unstable.99666aeb00",
|
|
29
|
+
"@webiny/api-security": "0.0.0-unstable.99666aeb00",
|
|
30
|
+
"@webiny/api-tenancy": "0.0.0-unstable.99666aeb00",
|
|
31
|
+
"@webiny/error": "0.0.0-unstable.99666aeb00",
|
|
32
|
+
"@webiny/handler": "0.0.0-unstable.99666aeb00",
|
|
33
|
+
"@webiny/handler-graphql": "0.0.0-unstable.99666aeb00",
|
|
34
|
+
"@webiny/pubsub": "0.0.0-unstable.99666aeb00",
|
|
35
|
+
"@webiny/utils": "0.0.0-unstable.99666aeb00",
|
|
54
36
|
"lodash": "4.17.21"
|
|
55
37
|
},
|
|
56
|
-
"
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@babel/cli": "7.20.7",
|
|
40
|
+
"@babel/core": "7.20.12",
|
|
41
|
+
"@babel/preset-env": "7.20.2",
|
|
42
|
+
"@babel/preset-typescript": "7.18.6",
|
|
43
|
+
"@babel/runtime": "7.20.13",
|
|
44
|
+
"@types/ungap__structured-clone": "0.3.0",
|
|
45
|
+
"@webiny/api-i18n-ddb": "0.0.0-unstable.99666aeb00",
|
|
46
|
+
"@webiny/api-security-so-ddb": "0.0.0-unstable.99666aeb00",
|
|
47
|
+
"@webiny/api-tenancy-so-ddb": "0.0.0-unstable.99666aeb00",
|
|
48
|
+
"@webiny/api-wcp": "0.0.0-unstable.99666aeb00",
|
|
49
|
+
"@webiny/cli": "0.0.0-unstable.99666aeb00",
|
|
50
|
+
"@webiny/handler-aws": "0.0.0-unstable.99666aeb00",
|
|
51
|
+
"@webiny/plugins": "0.0.0-unstable.99666aeb00",
|
|
52
|
+
"@webiny/project-utils": "0.0.0-unstable.99666aeb00",
|
|
53
|
+
"graphql": "16.6.0",
|
|
54
|
+
"prettier": "2.8.8",
|
|
55
|
+
"rimraf": "3.0.2",
|
|
56
|
+
"ttypescript": "1.5.15",
|
|
57
|
+
"typescript": "4.7.4"
|
|
58
|
+
},
|
|
59
|
+
"gitHead": "99666aeb00056c56292eeb5dbb6aba7fda2439e2"
|
|
57
60
|
}
|