@webiny/api-serverless-cms 6.0.0-alpha.0 → 6.0.0-alpha.1
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 +15 -17
- package/index.js.map +1 -1
- package/package.json +36 -35
- package/tenancy/InstallTenant.d.ts +2 -7
- package/tenancy/InstallTenant.js +0 -21
- package/tenancy/InstallTenant.js.map +1 -1
package/index.d.ts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { ClientContext } from "@webiny/handler-client/types";
|
|
2
|
-
import { TenancyContext } from "@webiny/api-tenancy/types";
|
|
3
|
-
import { SecurityContext } from "@webiny/api-security/types";
|
|
4
|
-
import { I18NContext } from "@webiny/api-i18n/types";
|
|
5
|
-
import { I18NContentContext } from "@webiny/api-i18n-content/types";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { PbAcoContext } from "@webiny/api-page-builder-aco/types";
|
|
13
|
-
import { ContextPluginCallable } from "@webiny/api";
|
|
14
|
-
import { GraphQLSchemaPluginConfig } from "@webiny/handler-graphql";
|
|
1
|
+
import type { ClientContext } from "@webiny/handler-client/types";
|
|
2
|
+
import type { TenancyContext } from "@webiny/api-tenancy/types";
|
|
3
|
+
import type { SecurityContext } from "@webiny/api-security/types";
|
|
4
|
+
import type { I18NContext } from "@webiny/api-i18n/types";
|
|
5
|
+
import type { I18NContentContext } from "@webiny/api-i18n-content/types";
|
|
6
|
+
import type { PrerenderingServiceClientContext } from "@webiny/api-prerendering-service/client/types";
|
|
7
|
+
import type { FileManagerContext } from "@webiny/api-file-manager/types";
|
|
8
|
+
import type { CmsContext } from "@webiny/api-headless-cms/types";
|
|
9
|
+
import type { AcoContext } from "@webiny/api-aco/types";
|
|
10
|
+
import type { ContextPluginCallable } from "@webiny/api";
|
|
11
|
+
import type { GraphQLSchemaPluginConfig } from "@webiny/handler-graphql";
|
|
15
12
|
import { createSecurityRolePlugin, createSecurityTeamPlugin } from "@webiny/api-security";
|
|
16
|
-
import { MailerContext } from "@webiny/api-mailer/types";
|
|
17
|
-
import { Context as LoggerContext } from "@webiny/api-log/types";
|
|
18
|
-
|
|
13
|
+
import type { MailerContext } from "@webiny/api-mailer/types";
|
|
14
|
+
import type { Context as LoggerContext } from "@webiny/api-log/types";
|
|
15
|
+
import type { WebsiteBuilderContext } from "@webiny/api-website-builder";
|
|
16
|
+
export interface Context extends ClientContext, MailerContext, TenancyContext, SecurityContext, I18NContext, I18NContentContext, PrerenderingServiceClientContext, FileManagerContext, AcoContext, LoggerContext, CmsContext, WebsiteBuilderContext {
|
|
19
17
|
}
|
|
20
18
|
export declare const createContextPlugin: <T extends Context = Context>(callable: ContextPluginCallable<T>) => import("@webiny/api").ContextPlugin<T>;
|
|
21
19
|
export declare const createGraphQLSchemaPlugin: <T extends Context = Context>(config: GraphQLSchemaPluginConfig<T>) => import("@webiny/handler-graphql").GraphQLSchemaPlugin<T>;
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_api","require","_handlerGraphql","_apiSecurity","_InstallTenant","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_apiHeadlessCms","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
|
|
1
|
+
{"version":3,"names":["_api","require","_handlerGraphql","_apiSecurity","_InstallTenant","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_apiHeadlessCms","createContextPlugin","callable","baseCreateContextPlugin","createGraphQLSchemaPlugin","config","baseCreateGraphQLSchemaPlugin"],"sources":["index.ts"],"sourcesContent":["import type { ClientContext } from \"@webiny/handler-client/types\";\nimport type { TenancyContext } from \"@webiny/api-tenancy/types\";\nimport type { SecurityContext } from \"@webiny/api-security/types\";\nimport type { I18NContext } from \"@webiny/api-i18n/types\";\nimport type { I18NContentContext } from \"@webiny/api-i18n-content/types\";\nimport type { PrerenderingServiceClientContext } from \"@webiny/api-prerendering-service/client/types\";\nimport type { FileManagerContext } from \"@webiny/api-file-manager/types\";\nimport type { CmsContext } from \"@webiny/api-headless-cms/types\";\nimport type { AcoContext } from \"@webiny/api-aco/types\";\nimport type { ContextPluginCallable } from \"@webiny/api\";\nimport { createContextPlugin as baseCreateContextPlugin } from \"@webiny/api\";\nimport type { GraphQLSchemaPluginConfig } from \"@webiny/handler-graphql\";\nimport { createGraphQLSchemaPlugin as baseCreateGraphQLSchemaPlugin } from \"@webiny/handler-graphql\";\nimport { createSecurityRolePlugin, createSecurityTeamPlugin } from \"@webiny/api-security\";\nimport type { MailerContext } from \"@webiny/api-mailer/types\";\nimport type { Context as LoggerContext } from \"@webiny/api-log/types\";\nimport type { WebsiteBuilderContext } from \"@webiny/api-website-builder\";\n\nexport interface Context\n extends ClientContext,\n MailerContext,\n TenancyContext,\n SecurityContext,\n I18NContext,\n I18NContentContext,\n PrerenderingServiceClientContext,\n FileManagerContext,\n AcoContext,\n LoggerContext,\n CmsContext,\n WebsiteBuilderContext {}\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\nexport {\n // Model groups.\n createModelGroupPlugin,\n\n // Models.\n createModelPlugin,\n createSingleEntryModelPlugin,\n createPrivateModelPlugin,\n createPrivateSingleEntryModelPlugin,\n\n // Model fields (this is not a plugin factory, hence the missing `Plugin` suffix in the name).\n createModelField,\n\n // Other.\n createCmsGraphQLSchemaPlugin,\n createStorageTransformPlugin\n} from \"@webiny/api-headless-cms\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAAA,IAAA,GAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAiCA,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;AAEA,IAAAS,eAAA,GAAAhB,OAAA;AAhBO,MAAMiB,mBAAmB,GAC5BC,QAAkC,IACjC;EACD,OAAO,IAAAC,wBAAuB,EAAID,QAAQ,CAAC;AAC/C,CAAC;AAACN,OAAA,CAAAK,mBAAA,GAAAA,mBAAA;AAEK,MAAMG,yBAAyB,GAClCC,MAAoC,IACnC;EACD,OAAO,IAAAC,yCAA6B,EAAID,MAAM,CAAC;AACnD,CAAC;AAACT,OAAA,CAAAQ,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-serverless-cms",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,41 +9,42 @@
|
|
|
9
9
|
"description": "Core package for all of our API packages.",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@webiny/api": "6.0.0-alpha.
|
|
13
|
-
"@webiny/api-aco": "6.0.0-alpha.
|
|
14
|
-
"@webiny/api-file-manager": "6.0.0-alpha.
|
|
15
|
-
"@webiny/api-
|
|
16
|
-
"@webiny/api-
|
|
17
|
-
"@webiny/api-i18n": "6.0.0-alpha.
|
|
18
|
-
"@webiny/api-
|
|
19
|
-
"@webiny/api-
|
|
20
|
-
"@webiny/api-
|
|
21
|
-
"@webiny/api-
|
|
22
|
-
"@webiny/api-
|
|
23
|
-
"@webiny/
|
|
24
|
-
"@webiny/
|
|
25
|
-
"@webiny/
|
|
26
|
-
"@webiny/error": "6.0.0-alpha.0",
|
|
27
|
-
"@webiny/handler-client": "6.0.0-alpha.0",
|
|
28
|
-
"@webiny/handler-graphql": "6.0.0-alpha.0"
|
|
12
|
+
"@webiny/api": "6.0.0-alpha.1",
|
|
13
|
+
"@webiny/api-aco": "6.0.0-alpha.1",
|
|
14
|
+
"@webiny/api-file-manager": "6.0.0-alpha.1",
|
|
15
|
+
"@webiny/api-headless-cms": "6.0.0-alpha.1",
|
|
16
|
+
"@webiny/api-i18n": "6.0.0-alpha.1",
|
|
17
|
+
"@webiny/api-i18n-content": "6.0.0-alpha.1",
|
|
18
|
+
"@webiny/api-log": "6.0.0-alpha.1",
|
|
19
|
+
"@webiny/api-mailer": "6.0.0-alpha.1",
|
|
20
|
+
"@webiny/api-security": "6.0.0-alpha.1",
|
|
21
|
+
"@webiny/api-tenancy": "6.0.0-alpha.1",
|
|
22
|
+
"@webiny/api-website-builder": "6.0.0-alpha.1",
|
|
23
|
+
"@webiny/error": "6.0.0-alpha.1",
|
|
24
|
+
"@webiny/handler-client": "6.0.0-alpha.1",
|
|
25
|
+
"@webiny/handler-graphql": "6.0.0-alpha.1"
|
|
29
26
|
},
|
|
30
27
|
"devDependencies": {
|
|
31
|
-
"@webiny/api-admin-users": "6.0.0-alpha.
|
|
32
|
-
"@webiny/api-apw": "6.0.0-alpha.
|
|
33
|
-
"@webiny/api-audit-logs": "6.0.0-alpha.
|
|
34
|
-
"@webiny/api-
|
|
35
|
-
"@webiny/api-headless-cms-
|
|
36
|
-
"@webiny/api-
|
|
37
|
-
"@webiny/api-page-builder
|
|
38
|
-
"@webiny/api-
|
|
39
|
-
"@webiny/api-
|
|
40
|
-
"@webiny/api-
|
|
41
|
-
"@webiny/
|
|
42
|
-
"@webiny/
|
|
43
|
-
"@webiny/
|
|
44
|
-
"@webiny/
|
|
45
|
-
"@webiny/
|
|
46
|
-
"@webiny/
|
|
28
|
+
"@webiny/api-admin-users": "6.0.0-alpha.1",
|
|
29
|
+
"@webiny/api-apw": "6.0.0-alpha.1",
|
|
30
|
+
"@webiny/api-audit-logs": "6.0.0-alpha.1",
|
|
31
|
+
"@webiny/api-form-builder": "6.0.0-alpha.1",
|
|
32
|
+
"@webiny/api-headless-cms-aco": "6.0.0-alpha.1",
|
|
33
|
+
"@webiny/api-headless-cms-tasks": "6.0.0-alpha.1",
|
|
34
|
+
"@webiny/api-page-builder": "6.0.0-alpha.1",
|
|
35
|
+
"@webiny/api-page-builder-aco": "6.0.0-alpha.1",
|
|
36
|
+
"@webiny/api-page-builder-import-export": "6.0.0-alpha.1",
|
|
37
|
+
"@webiny/api-page-builder-import-export-so-ddb": "6.0.0-alpha.1",
|
|
38
|
+
"@webiny/api-prerendering-service": "6.0.0-alpha.1",
|
|
39
|
+
"@webiny/api-record-locking": "6.0.0-alpha.1",
|
|
40
|
+
"@webiny/api-wcp": "6.0.0-alpha.1",
|
|
41
|
+
"@webiny/api-websockets": "6.0.0-alpha.1",
|
|
42
|
+
"@webiny/handler": "6.0.0-alpha.1",
|
|
43
|
+
"@webiny/handler-aws": "6.0.0-alpha.1",
|
|
44
|
+
"@webiny/plugins": "6.0.0-alpha.1",
|
|
45
|
+
"@webiny/project-utils": "6.0.0-alpha.1",
|
|
46
|
+
"@webiny/tasks": "6.0.0-alpha.1",
|
|
47
|
+
"@webiny/wcp": "6.0.0-alpha.1",
|
|
47
48
|
"graphql": "15.9.0",
|
|
48
49
|
"rimraf": "6.0.1",
|
|
49
50
|
"typescript": "5.3.3"
|
|
@@ -56,5 +57,5 @@
|
|
|
56
57
|
"build": "node ../cli/bin.js run build",
|
|
57
58
|
"watch": "node ../cli/bin.js run watch"
|
|
58
59
|
},
|
|
59
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "9bd236cf5e689f209a11bec089207dcc2d41a53c"
|
|
60
61
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Tenant } from "@webiny/api-tenancy/types";
|
|
2
|
-
import { Context } from "../index";
|
|
1
|
+
import type { Tenant } from "@webiny/api-tenancy/types";
|
|
2
|
+
import type { Context } from "../index";
|
|
3
3
|
export interface AdminUserInput {
|
|
4
4
|
firstName: string;
|
|
5
5
|
lastName: string;
|
|
@@ -20,15 +20,10 @@ export interface FileManagerInstallationConfig {
|
|
|
20
20
|
*/
|
|
21
21
|
assetDeliveryDomain: string;
|
|
22
22
|
}
|
|
23
|
-
export interface PageBuilderInstallationConfig {
|
|
24
|
-
websiteName: string;
|
|
25
|
-
insertDemoData: boolean;
|
|
26
|
-
}
|
|
27
23
|
export interface TenantConfig {
|
|
28
24
|
i18n: I18nInstallationConfig;
|
|
29
25
|
adminUsers?: AdminUsersInstallationConfig;
|
|
30
26
|
fileManager?: FileManagerInstallationConfig;
|
|
31
|
-
pageBuilder?: PageBuilderInstallationConfig;
|
|
32
27
|
}
|
|
33
28
|
export declare class InstallTenant {
|
|
34
29
|
private readonly context;
|
package/tenancy/InstallTenant.js
CHANGED
|
@@ -75,27 +75,6 @@ class InstallTenant {
|
|
|
75
75
|
srcPrefix: srcPrefix || ""
|
|
76
76
|
});
|
|
77
77
|
}, "FILE_MANAGER_INSTALL");
|
|
78
|
-
|
|
79
|
-
// PAGE BUILDER: Create Page Builder settings.
|
|
80
|
-
await this.runOrThrow(async () => {
|
|
81
|
-
const isInstalled = await this.context.pageBuilder.getSystemVersion();
|
|
82
|
-
if (isInstalled) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
await this.context.pageBuilder.installSystem({
|
|
86
|
-
name: config.pageBuilder?.websiteName ?? tenant.name,
|
|
87
|
-
insertDemoData: config.pageBuilder?.insertDemoData ?? false
|
|
88
|
-
});
|
|
89
|
-
}, "PAGE_BUILDER_INSTALL");
|
|
90
|
-
|
|
91
|
-
// FORM BUILDER
|
|
92
|
-
await this.runOrThrow(async () => {
|
|
93
|
-
const isInstalled = await this.context.formBuilder.getSystemVersion();
|
|
94
|
-
if (isInstalled) {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
await this.context.formBuilder.installSystem({});
|
|
98
|
-
}, "FORM_BUILDER_INSTALL");
|
|
99
78
|
} finally {
|
|
100
79
|
this.context.tenancy.setCurrentTenant(currentTenant);
|
|
101
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_error","_interopRequireDefault","require","InstallTenant","constructor","context","execute","tenant","config","currentTenant","tenancy","getCurrentTenant","fmSettings","fileManager","getSettings","setCurrentTenant","setVersion","WEBINY_VERSION","runOrThrow","isInstalled","security","getVersion","install","adminUsers","i18n","system","getSystemVersion","installSystem","code","defaultLocaleCode","cms","srcPrefix","URL","assetDeliveryDomain","origin","
|
|
1
|
+
{"version":3,"names":["_error","_interopRequireDefault","require","InstallTenant","constructor","context","execute","tenant","config","currentTenant","tenancy","getCurrentTenant","fmSettings","fileManager","getSettings","setCurrentTenant","setVersion","WEBINY_VERSION","runOrThrow","isInstalled","security","getVersion","install","adminUsers","i18n","system","getSystemVersion","installSystem","code","defaultLocaleCode","cms","srcPrefix","URL","assetDeliveryDomain","origin","cb","errorCode","err","Error","message","data","error","exports"],"sources":["InstallTenant.ts"],"sourcesContent":["import type { Tenant } from \"@webiny/api-tenancy/types\";\nimport Error from \"@webiny/error\";\nimport type { Context } from \"~/index\";\n\nexport interface AdminUserInput {\n firstName: string;\n lastName: string;\n email: string;\n password: string;\n group?: string;\n}\n\nexport type AdminUsersInstallationConfig = AdminUserInput | undefined;\n\nexport interface I18nInstallationConfig {\n defaultLocaleCode: string;\n}\n\nexport interface FileManagerInstallationConfig {\n /**\n * Asset delivery origin. This usually points to the main Webiny API origin.\n * E.g., https://some.domain.com/\n *\n * You can change this later in the tenant's File Manager settings.\n */\n assetDeliveryDomain: string;\n}\n\nexport interface TenantConfig {\n i18n: I18nInstallationConfig;\n adminUsers?: AdminUsersInstallationConfig;\n fileManager?: FileManagerInstallationConfig;\n}\n\nexport class InstallTenant {\n private readonly context: Context;\n\n constructor(context: Context) {\n this.context = context;\n }\n\n async execute(tenant: Tenant, config: TenantConfig): Promise<void> {\n const currentTenant = this.context.tenancy.getCurrentTenant();\n\n // Get current tenant's FileManager settings.\n const fmSettings = await this.context.fileManager.getSettings();\n\n // Switch tenant to the one being installed.\n this.context.tenancy.setCurrentTenant(tenant);\n\n try {\n // TENANCY: Set the app version, as the tenant is already created.\n await this.context.tenancy.setVersion(this.context.WEBINY_VERSION);\n\n // SECURITY: Create initial security groups.\n await this.runOrThrow(async () => {\n const isInstalled = await this.context.security.getVersion();\n if (!isInstalled) {\n await this.context.security.install();\n }\n }, \"SECURITY_INSTALL\");\n\n // ADMIN USERS: Optionally, create an admin user for this tenant.\n await this.runOrThrow(async () => {\n const isInstalled = await this.context.adminUsers.getVersion();\n if (isInstalled) {\n return;\n }\n\n if (config.adminUsers) {\n await this.context.adminUsers.install(config.adminUsers);\n } else {\n // We always mark `adminUsers` as installed, regardless of the config.\n await this.context.adminUsers.setVersion(this.context.WEBINY_VERSION);\n }\n }, \"ADMIN_USERS_INSTALL\");\n\n // I18N: Create a default locale.\n await this.runOrThrow(async () => {\n const isInstalled = await this.context.i18n.system.getSystemVersion();\n if (isInstalled) {\n return;\n }\n\n await this.context.i18n.system.installSystem({\n code: config.i18n.defaultLocaleCode\n });\n }, \"I18N_INSTALL\");\n\n // CMS\n await this.runOrThrow(async () => {\n const isInstalled = await this.context.cms.getSystemVersion();\n if (isInstalled) {\n return;\n }\n await this.context.cms.installSystem();\n }, \"CMS_INSTALL\");\n\n // FILE MANAGER: Create File Manager settings.\n const srcPrefix = config.fileManager\n ? `${new URL(config.fileManager.assetDeliveryDomain).origin}/files/`\n : fmSettings?.srcPrefix;\n\n await this.runOrThrow(async () => {\n const isInstalled = await this.context.fileManager.getVersion();\n if (isInstalled) {\n return;\n }\n\n await this.context.fileManager.install({ srcPrefix: srcPrefix || \"\" });\n }, \"FILE_MANAGER_INSTALL\");\n } finally {\n this.context.tenancy.setCurrentTenant(currentTenant);\n }\n }\n\n private async runOrThrow(cb: () => Promise<void>, errorCode: string): Promise<void> {\n try {\n await cb();\n } catch (err) {\n throw new Error({\n message: err.message,\n code: `INSTALL_TENANT:${errorCode}`,\n data: {\n error: err\n }\n });\n }\n }\n}\n"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAiCO,MAAMC,aAAa,CAAC;EAGvBC,WAAWA,CAACC,OAAgB,EAAE;IAC1B,IAAI,CAACA,OAAO,GAAGA,OAAO;EAC1B;EAEA,MAAMC,OAAOA,CAACC,MAAc,EAAEC,MAAoB,EAAiB;IAC/D,MAAMC,aAAa,GAAG,IAAI,CAACJ,OAAO,CAACK,OAAO,CAACC,gBAAgB,CAAC,CAAC;;IAE7D;IACA,MAAMC,UAAU,GAAG,MAAM,IAAI,CAACP,OAAO,CAACQ,WAAW,CAACC,WAAW,CAAC,CAAC;;IAE/D;IACA,IAAI,CAACT,OAAO,CAACK,OAA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