From 33c80ee33680d24c4bf3692d25c23caebc7e24d5 Mon Sep 17 00:00:00 2001 From: Alejo Thomas Ortega Date: Tue, 16 Jul 2024 15:35:47 -0300 Subject: [PATCH] feat: expose CatalystDeployment type --- report/schemas.api.md | 10 ++++++++++ src/platform/events/base.ts | 3 ++- src/platform/events/catalyst.ts | 7 +++++++ src/platform/events/index.ts | 1 + 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/platform/events/catalyst.ts diff --git a/report/schemas.api.md b/report/schemas.api.md index fb30f87..9693b6d 100644 --- a/report/schemas.api.md +++ b/report/schemas.api.md @@ -366,6 +366,14 @@ export enum CatalogSortDirection { DESC = "desc" } +// Warning: (ae-missing-release-tag) "CatalystDeployment" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export type CatalystDeployment = BaseEvent & { + type: EventType.CATALYST_DEPLOYMENT; + entity: Entity; +}; + // @alpha export enum ChainId { // (undocumented) @@ -832,6 +840,8 @@ export enum EventType { // (undocumented) BID_RECEIVED = "bid-received", // (undocumented) + CATALYST_DEPLOYMENT = "catalyst-deployment", + // (undocumented) ITEM_SOLD = "item-sold", // (undocumented) RENTAL_ENDED = "land-rental-ended", diff --git a/src/platform/events/base.ts b/src/platform/events/base.ts index 7d99ffb..f48e251 100644 --- a/src/platform/events/base.ts +++ b/src/platform/events/base.ts @@ -13,7 +13,8 @@ export enum EventType { ITEM_SOLD = 'item-sold', RENTAL_ENDED = 'land-rental-ended', RENTAL_STARTED = 'land-rental-started', - ROYALTIES_EARNED = 'royalties-earned' + ROYALTIES_EARNED = 'royalties-earned', + CATALYST_DEPLOYMENT = 'catalyst-deployment' } export type BaseEvent = { diff --git a/src/platform/events/catalyst.ts b/src/platform/events/catalyst.ts new file mode 100644 index 0000000..a178d61 --- /dev/null +++ b/src/platform/events/catalyst.ts @@ -0,0 +1,7 @@ +import { Entity } from '../entity' +import { BaseEvent, EventType } from './base' + +export type CatalystDeployment = BaseEvent & { + type: EventType.CATALYST_DEPLOYMENT + entity: Entity +} diff --git a/src/platform/events/index.ts b/src/platform/events/index.ts index 8d4fdb3..1547e4b 100644 --- a/src/platform/events/index.ts +++ b/src/platform/events/index.ts @@ -1,2 +1,3 @@ export * from './base' export * from './blockchain' +export * from './catalyst'