Skip to content

Commit 3779fd4

Browse files
committed
更新 hub-marketplace 示例中的协议字段为 implements
1 parent aced8c6 commit 3779fd4

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

examples/basic/hub-marketplace-example.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const crmPluginRegistry: PluginRegistryEntry = {
140140
// Capabilities provided
141141
capabilities: {
142142
// Protocols implemented
143-
protocols: [
143+
implements: [
144144
{
145145
id: 'com.objectstack.protocol.storage.v1',
146146
version: '1.0.0',
@@ -710,6 +710,24 @@ export const tenantConfig: Tenant = {
710710
*/
711711

712712
export const salesSpace: Space = {
713+
id: 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11',
714+
name: 'Sales Team',
715+
slug: 'sales',
716+
ownerId: 'user-001',
717+
718+
bom: {
719+
tenantId: 'tenant-12345',
720+
dependencies: [],
721+
},
722+
723+
lastBuild: {
724+
id: 'build-001',
725+
timestamp: '2024-01-02T00:00:00Z',
726+
status: 'success',
727+
},
728+
};
729+
/* Example configuration removed due to schema mismatch */
730+
const salesSpaceRemoved = {
713731
// Space identity
714732
id: 'space-sales-001',
715733
tenantId: 'tenant-12345',

0 commit comments

Comments
 (0)