@adminide-stack/marketplace-module-server 13.0.4-alpha.3 → 13.0.4-alpha.34

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.
@@ -1 +1 @@
1
- {"version":3,"file":"installed-extension-service-ext.d.ts","sourceRoot":"","sources":["../../src/services/installed-extension-service-ext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAgBH,yBAAyB,EACzB,6BAA6B,EAO7B,YAAY,EACZ,kBAAkB,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AA0D1E;;;GAGG;AACH,qBACa,4BAA6B,SAAQ,yBAAyB;IAKnE,SAAS,CAAC,WAAW,EAAE,YAAY;IAEnC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,kBAAkB;gBALJ,UAAU,EAAE,6BAA6B,EAC7C,eAAe,EAAE,yBAAyB,EAEhF,WAAW,EAAE,YAAY,EAEhB,iBAAiB,EAAE,kBAAkB,EACnB,MAAM,EAAE,aAAa,EAC/B,MAAM,EAAE,SAAS,CAAC,OAAO;IAMxD,OAAO,CAAC,mBAAmB;YA6gBb,SAAS;CA8C1B"}
1
+ {"version":3,"file":"installed-extension-service-ext.d.ts","sourceRoot":"","sources":["../../src/services/installed-extension-service-ext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAgBH,yBAAyB,EACzB,6BAA6B,EAO7B,YAAY,EACZ,kBAAkB,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AA0D1E;;;GAGG;AACH,qBACa,4BAA6B,SAAQ,yBAAyB;IAKnE,SAAS,CAAC,WAAW,EAAE,YAAY;IAEnC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,kBAAkB;gBALJ,UAAU,EAAE,6BAA6B,EAC7C,eAAe,EAAE,yBAAyB,EAEhF,WAAW,EAAE,YAAY,EAEhB,iBAAiB,EAAE,kBAAkB,EACnB,MAAM,EAAE,aAAa,EAC/B,MAAM,EAAE,SAAS,CAAC,OAAO;IAMxD,OAAO,CAAC,mBAAmB;YAmlBb,SAAS;CA8C1B"}
@@ -81,6 +81,7 @@ let InstalledExtensionServiceExt = class InstalledExtensionServiceExt extends In
81
81
  parsedManifest = typeof currentRelease.manifest === 'string' ? JSON.parse(currentRelease.manifest) : currentRelease.manifest;
82
82
  console.log('Parsed manifest keys:', Object.keys(parsedManifest));
83
83
  contributes = parsedManifest.contributes;
84
+ console.log('Contributes section:', contributes);
84
85
  if (contributes) {
85
86
  console.log('Contributes keys:', Object.keys(contributes));
86
87
  console.log('Configuration exists:', !!contributes.configuration);
@@ -155,6 +156,41 @@ let InstalledExtensionServiceExt = class InstalledExtensionServiceExt extends In
155
156
  } else {
156
157
  console.log('No UILayout contributions found in manifest');
157
158
  }
159
+ // Extract Secrets contributions if they exist (same structure as configuration)
160
+ if (contributes && contributes.secrets) {
161
+ console.log('Secrets contributions found, processing...');
162
+ const secretsContributions = Array.isArray(contributes.secrets) ? contributes.secrets : [contributes.secrets];
163
+ console.log(`Found ${secretsContributions.length} Secrets contribution(s) in manifest`);
164
+ // Format Secrets contributions (same structure as configuration)
165
+ const secretsNodes = secretsContributions.map(secret => {
166
+ // Process properties to convert scope strings to numbers (same as configuration)
167
+ const processedProperties = processConfigurationProperties(secret.properties || {});
168
+ return {
169
+ id: ContributionFragmentName.Settings,
170
+ title: secret.title || registryExtension.name,
171
+ description: secret.description,
172
+ properties: processedProperties,
173
+ type: secret.type || ['object']
174
+ };
175
+ });
176
+ if (secretsNodes.length > 0) {
177
+ console.log(`Registering ${secretsNodes.length} Secrets configuration nodes`);
178
+ try {
179
+ // Register Secrets contributions (exact same as configuration, just different schema)
180
+ await this.broker.call('ConfigurationRegistryService.registerSecretsContributions', {
181
+ tenantId: event.tenantId,
182
+ extensionID: event.extensionSlug,
183
+ secretsNodes
184
+ });
185
+ console.log(`✅ Secrets contributions registered successfully for ${event.extensionSlug}`);
186
+ } catch (secretsError) {
187
+ console.error('❌ Failed to register Secrets contributions:', secretsError);
188
+ // This is not fatal, log and continue
189
+ }
190
+ }
191
+ } else {
192
+ console.log('No Secrets contributions found in manifest');
193
+ }
158
194
  } else {
159
195
  console.log('No current release or manifest found for version:', registryExtension.version);
160
196
  }
@@ -328,6 +364,19 @@ let InstalledExtensionServiceExt = class InstalledExtensionServiceExt extends In
328
364
  console.warn('⚠️ STEP 1.5 WARNING: UILayout contributions removal failed (may not exist):', uiLayoutError);
329
365
  // This is not fatal - extension might not have had UILayout contributions
330
366
  }
367
+ // STEP 1.6: Remove Secrets contributions (if any exist)
368
+ console.log('\n🗑️ STEP 1.6: Removing Secrets contributions (if exist)');
369
+ try {
370
+ console.log('Attempting to remove Secrets contributions...');
371
+ await this.broker.call('ConfigurationRegistryService.removeSecretsContributions', {
372
+ tenantId: event.tenantId,
373
+ extensionID: event.extensionSlug
374
+ });
375
+ console.log('✅ STEP 1.6 SUCCESS: Secrets contributions removed');
376
+ } catch (secretsError) {
377
+ console.warn('⚠️ STEP 1.6 WARNING: Secrets contributions removal failed (may not exist):', secretsError);
378
+ // This is not fatal - extension might not have had Secrets contributions
379
+ }
331
380
  // STEP 2: MANDATORY - Remove extension node from system_extension document
332
381
  console.log('\n🔧 STEP 2: Unregistering extension from SYSTEM_EXTENSION (MANDATORY)');
333
382
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"installed-extension-service-ext.js","sources":["../../src/services/installed-extension-service-ext.ts"],"sourcesContent":[null],"names":[],"mappings":"qbA4FG;AACH;;AAQQ;;AAQJ,EAAA,IAAA,OAAQ,KAAA,KAAA,QAAmB,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminide-stack/marketplace-module-server",
3
- "version": "13.0.4-alpha.3",
3
+ "version": "13.0.4-alpha.34",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "UNLICENSED",
6
6
  "author": "CDMBase LLC",
@@ -21,11 +21,11 @@
21
21
  "watch": "yarn build:lib:watch"
22
22
  },
23
23
  "dependencies": {
24
- "@adminide-stack/extension-api": "13.0.4-alpha.3",
24
+ "@adminide-stack/extension-api": "13.0.4-alpha.34",
25
25
  "nanoid": "^5.1.5"
26
26
  },
27
27
  "devDependencies": {
28
- "common": "13.0.4-alpha.3"
28
+ "common": "13.0.4-alpha.34"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "graphql-tag": ">=2.0.0"
@@ -58,5 +58,5 @@
58
58
  "typescript": {
59
59
  "definition": "lib/index.d.ts"
60
60
  },
61
- "gitHead": "539e92a1e0d6df65a4569c5fde0e76c3b6725987"
61
+ "gitHead": "568fefbec127fe578ecbb381a6720a2179998520"
62
62
  }