@webiny/api-file-manager 6.4.0-beta.3 → 6.4.0-beta.5
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.
|
@@ -14,7 +14,7 @@ class SettingsInstallerImpl {
|
|
|
14
14
|
}
|
|
15
15
|
async install() {
|
|
16
16
|
const manifest = await ServiceDiscovery.load();
|
|
17
|
-
const
|
|
17
|
+
const domain = manifest?.api?.cloudfront.domain;
|
|
18
18
|
await this.updateSettings.execute({
|
|
19
19
|
srcPrefix: `${domain}/files`
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features/settings/SettingsInstaller/SettingsInstaller.js","sources":["../../../../src/features/settings/SettingsInstaller/SettingsInstaller.ts"],"sourcesContent":["import { ServiceDiscovery } from \"@webiny/api\";\nimport { createImplementation } from \"@webiny/feature/api\";\nimport { AppInstaller } from \"@webiny/api-core/features/tenancy/InstallTenant/index.js\";\nimport { FILE_MANAGER_GENERAL_SETTINGS } from \"~/domain/settings/constants.js\";\nimport { UpdateSettingsUseCase } from \"~/features/settings/UpdateSettings/abstractions.js\";\nimport { KeyValueStore } from \"@webiny/api-core/features/keyValueStore/index.js\";\n\nclass SettingsInstallerImpl implements AppInstaller.Interface {\n readonly alwaysRun = true;\n readonly appName = \"FileManager\";\n readonly dependsOn = [];\n\n constructor(\n private updateSettings: UpdateSettingsUseCase.Interface,\n private keyValueStore: KeyValueStore.Interface\n ) {}\n\n async install(): Promise<void> {\n // TODO: move this to api-core with a proper abstraction\n const manifest = await ServiceDiscovery.load();\n const
|
|
1
|
+
{"version":3,"file":"features/settings/SettingsInstaller/SettingsInstaller.js","sources":["../../../../src/features/settings/SettingsInstaller/SettingsInstaller.ts"],"sourcesContent":["import { ServiceDiscovery } from \"@webiny/api\";\nimport { createImplementation } from \"@webiny/feature/api\";\nimport { AppInstaller } from \"@webiny/api-core/features/tenancy/InstallTenant/index.js\";\nimport { FILE_MANAGER_GENERAL_SETTINGS } from \"~/domain/settings/constants.js\";\nimport { UpdateSettingsUseCase } from \"~/features/settings/UpdateSettings/abstractions.js\";\nimport { KeyValueStore } from \"@webiny/api-core/features/keyValueStore/index.js\";\n\nclass SettingsInstallerImpl implements AppInstaller.Interface {\n readonly alwaysRun = true;\n readonly appName = \"FileManager\";\n readonly dependsOn = [];\n\n constructor(\n private updateSettings: UpdateSettingsUseCase.Interface,\n private keyValueStore: KeyValueStore.Interface\n ) {}\n\n async install(): Promise<void> {\n // TODO: move this to api-core with a proper abstraction\n const manifest = await ServiceDiscovery.load();\n\n // If no records in the database, `manifest` object is empty POJO.\n // That's why the heavy `?.` usage.\n const domain = manifest?.api?.cloudfront.domain;\n\n await this.updateSettings.execute({\n srcPrefix: `${domain}/files`\n });\n }\n\n async uninstall(): Promise<void> {\n await this.keyValueStore.delete(FILE_MANAGER_GENERAL_SETTINGS);\n }\n}\n\nexport const SettingsInstaller = createImplementation({\n abstraction: AppInstaller,\n implementation: SettingsInstallerImpl,\n dependencies: [UpdateSettingsUseCase, KeyValueStore]\n});\n"],"names":["SettingsInstallerImpl","updateSettings","keyValueStore","manifest","ServiceDiscovery","domain","FILE_MANAGER_GENERAL_SETTINGS","SettingsInstaller","createImplementation","AppInstaller","UpdateSettingsUseCase","KeyValueStore"],"mappings":";;;;;;AAOA,MAAMA;IAKF,YACYC,cAA+C,EAC/CC,aAAsC,CAChD;aAFUD,cAAc,GAAdA;aACAC,aAAa,GAAbA;aANH,SAAS,GAAG;aACZ,OAAO,GAAG;aACV,SAAS,GAAG,EAAE;IAKpB;IAEH,MAAM,UAAyB;QAE3B,MAAMC,WAAW,MAAMC,iBAAiB,IAAI;QAI5C,MAAMC,SAASF,UAAU,KAAK,WAAW;QAEzC,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;YAC9B,WAAW,GAAGE,OAAO,MAAM,CAAC;QAChC;IACJ;IAEA,MAAM,YAA2B;QAC7B,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAACC;IACpC;AACJ;AAEO,MAAMC,oBAAoBC,qBAAqB;IAClD,aAAaC;IACb,gBAAgBT;IAChB,cAAc;QAACU;QAAuBC;KAAc;AACxD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-file-manager",
|
|
3
|
-
"version": "6.4.0-beta.
|
|
3
|
+
"version": "6.4.0-beta.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -22,32 +22,31 @@
|
|
|
22
22
|
],
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@webiny/api": "6.4.0-beta.
|
|
26
|
-
"@webiny/api-core": "6.4.0-beta.
|
|
27
|
-
"@webiny/api-headless-cms": "6.4.0-beta.
|
|
28
|
-
"@webiny/
|
|
29
|
-
"@webiny/
|
|
30
|
-
"@webiny/
|
|
31
|
-
"@webiny/
|
|
32
|
-
"@webiny/handler
|
|
33
|
-
"@webiny/
|
|
34
|
-
"@webiny/
|
|
35
|
-
"@webiny/wcp": "6.4.0-beta.
|
|
25
|
+
"@webiny/api": "6.4.0-beta.5",
|
|
26
|
+
"@webiny/api-core": "6.4.0-beta.5",
|
|
27
|
+
"@webiny/api-headless-cms": "6.4.0-beta.5",
|
|
28
|
+
"@webiny/background-tasks": "6.4.0-beta.5",
|
|
29
|
+
"@webiny/build-tools": "6.4.0-beta.5",
|
|
30
|
+
"@webiny/error": "6.4.0-beta.5",
|
|
31
|
+
"@webiny/feature": "6.4.0-beta.5",
|
|
32
|
+
"@webiny/handler": "6.4.0-beta.5",
|
|
33
|
+
"@webiny/handler-graphql": "6.4.0-beta.5",
|
|
34
|
+
"@webiny/plugins": "6.4.0-beta.5",
|
|
35
|
+
"@webiny/wcp": "6.4.0-beta.5",
|
|
36
36
|
"cache-control-parser": "2.2.0",
|
|
37
37
|
"zod": "4.4.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/object-hash": "3.0.6",
|
|
41
|
-
"@webiny/handler-aws": "6.4.0-beta.
|
|
42
|
-
"@webiny/project-utils": "6.4.0-beta.
|
|
43
|
-
"@webiny/utils": "6.4.0-beta.
|
|
44
|
-
"@webiny/wcp": "
|
|
41
|
+
"@webiny/handler-aws": "6.4.0-beta.5",
|
|
42
|
+
"@webiny/project-utils": "6.4.0-beta.5",
|
|
43
|
+
"@webiny/utils": "6.4.0-beta.5",
|
|
44
|
+
"@webiny/wcp": "6.4.0-beta.5",
|
|
45
45
|
"rimraf": "6.1.3",
|
|
46
46
|
"typescript": "6.0.3"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
|
-
"access": "public"
|
|
50
|
-
"directory": "dist"
|
|
49
|
+
"access": "public"
|
|
51
50
|
},
|
|
52
51
|
"adio": {
|
|
53
52
|
"ignoreDirs": [
|
|
@@ -62,5 +61,8 @@
|
|
|
62
61
|
]
|
|
63
62
|
}
|
|
64
63
|
},
|
|
65
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "8476da73b653c89cc1474d968baf55c1b0ae0e5f",
|
|
65
|
+
"webiny": {
|
|
66
|
+
"publishFrom": "dist"
|
|
67
|
+
}
|
|
66
68
|
}
|
package/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "@webiny/tasks/features/TaskController/augmentation.js";
|
|
1
|
+
import "@webiny/background-tasks/api/features/TaskController/augmentation.js";
|
|
2
2
|
import type { SecurityPermission } from "@webiny/api-core/types/security.js";
|
|
3
3
|
export interface FilePermission extends SecurityPermission {
|
|
4
4
|
name: "fm.file";
|
package/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "@webiny/tasks/features/TaskController/augmentation.js";
|
|
1
|
+
import "@webiny/background-tasks/api/features/TaskController/augmentation.js";
|