File tree Expand file tree Collapse file tree 3 files changed +42
-1
lines changed
packages/app/src/cli/models/extensions Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {PrivacyComplianceWebhooksSpecIdentifier} from './specifications/app_conf
1111import { WebhooksSpecIdentifier } from './specifications/app_config_webhook.js'
1212import { WebhookSubscriptionSpecIdentifier } from './specifications/app_config_webhook_subscription.js'
1313import { EventsSpecIdentifier } from './specifications/app_config_events.js'
14+ import { AdminSpecIdentifier } from './specifications/admin.js'
1415import { ExtensionBuildOptions , bundleFunctionExtension } from '../../services/build/extension.js'
1516import { bundleThemeExtension } from '../../services/extensions/bundle.js'
1617import { Identifiers } from '../app/identifiers.js'
@@ -41,9 +42,9 @@ export const CONFIG_EXTENSION_IDS: string[] = [
4142 WebhookSubscriptionSpecIdentifier ,
4243 WebhooksSpecIdentifier ,
4344 EventsSpecIdentifier ,
45+ AdminSpecIdentifier ,
4446 // Hardcoded identifiers that don't exist locally.
4547 'data' ,
46- 'admin' ,
4748]
4849
4950/**
@@ -541,6 +542,8 @@ export class ExtensionInstance<TConfiguration extends BaseConfigType = BaseConfi
541542 } else {
542543 return nonRandomUUID ( JSON . stringify ( this . configuration ) )
543544 }
545+ default :
546+ return this . specification . identifier
544547 }
545548 }
546549
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import uiExtensionSpec from './specifications/ui_extension.js'
2727import webPixelSpec from './specifications/web_pixel_extension.js'
2828import editorExtensionCollectionSpecification from './specifications/editor_extension_collection.js'
2929import channelSpecificationSpec from './specifications/channel.js'
30+ import adminSpecificationSpec from './specifications/admin.js'
3031
3132const SORTED_CONFIGURATION_SPEC_IDENTIFIERS = [
3233 BrandingSpecIdentifier ,
@@ -61,6 +62,7 @@ function loadSpecifications() {
6162 appWebhooksSpec ,
6263 appWebhookSubscriptionSpec ,
6364 appEventsSpec ,
65+ adminSpecificationSpec ,
6466 ]
6567 const moduleSpecs = [
6668 checkoutPostPurchaseSpec ,
Original file line number Diff line number Diff line change 1+ import { createContractBasedModuleSpecification } from '../specification.js'
2+
3+ export const AdminSpecIdentifier = 'admin'
4+
5+ const adminSpecificationSpec = createContractBasedModuleSpecification ( {
6+ identifier : 'admin' ,
7+ uidStrategy : 'single' ,
8+ buildConfig : {
9+ mode : 'copy_files' ,
10+ filePatterns : [ ] ,
11+ } ,
12+ clientSteps : [
13+ {
14+ lifecycle : 'deploy' ,
15+ steps : [
16+ {
17+ id : 'hosted_app_copy_files' ,
18+ name : 'Hosted App Copy Files' ,
19+ type : 'include_assets' ,
20+ config : {
21+ generateManifest : true ,
22+ inclusions : [
23+ {
24+ type : 'configKey' ,
25+ key : 'admin.static_root' ,
26+ } ,
27+ ] ,
28+ } ,
29+ } ,
30+ ] ,
31+ } ,
32+ ] ,
33+ appModuleFeatures : ( ) => [ ] ,
34+ } )
35+
36+ export default adminSpecificationSpec
You can’t perform that action at this time.
0 commit comments