Skip to content

Commit

Permalink
feat: add properties to AssetBundleConvertedEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Dec 11, 2024
1 parent 9105c6b commit 33d20b7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions report/schemas.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ export type AssetBundleConvertedEvent = BaseEvent & {
metadata: {
entityId: string;
platform: 'windows' | 'mac' | 'webglb';
statusCode: number;
isLods: boolean;
};
};

Expand Down
8 changes: 6 additions & 2 deletions src/platform/events/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export type AssetBundleConvertedEvent = BaseEvent & {
metadata: {
entityId: string
platform: 'windows' | 'mac' | 'webglb'
statusCode: number
isLods: boolean
}
}

Expand All @@ -61,9 +63,11 @@ export namespace AssetBundleConvertedEvent {
type: 'object',
properties: {
entityId: { type: 'string' },
platform: { type: 'string', enum: ['windows', 'mac', 'webglb'] }
platform: { type: 'string', enum: ['windows', 'mac', 'webglb'] },
statusCode: { type: 'number' },
isLods: { type: 'boolean' }
},
required: ['entityId', 'platform']
required: ['entityId', 'platform', 'statusCode', 'isLods']
}
},
required: ['type', 'subType', 'key', 'timestamp', 'metadata'],
Expand Down
4 changes: 3 additions & 1 deletion test/platform/events/asset-bundle-converted.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ describe('AssetBundleConverted Events tests', () => {
timestamp: 1,
metadata: {
entityId: 'baf',
platform: 'mac'
platform: 'mac',
statusCode: 1,
isLods: false
}
}

Expand Down

0 comments on commit 33d20b7

Please sign in to comment.