From a8c00730c7209a71ac12bbb880ce756b13968e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98Swetha?= Date: Mon, 19 Feb 2024 16:26:51 +0100 Subject: [PATCH 1/3] Add metadata to schema --- source/types.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/types.ts b/source/types.ts index 1867f1d..ec7a77a 100644 --- a/source/types.ts +++ b/source/types.ts @@ -207,6 +207,7 @@ export type SchemaProperties = { export type SchemaMixin = { $ref: string; }; +type EntityEvent = { entity_event: boolean }; export interface Schema { properties: SchemaProperties; default_projections: string[]; @@ -219,6 +220,7 @@ export interface Schema { system_projections?: string[]; alias_for?: string | Data; $mixin?: SchemaMixin; + metadata?: EntityEvent; } export interface QueryOptions { abortController?: AbortController; From 1722f557c842ee17d1ae40af2ec1bae7da9cd59c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98Swetha?= Date: Tue, 20 Feb 2024 09:17:21 +0100 Subject: [PATCH 2/3] Rename --- source/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/types.ts b/source/types.ts index ec7a77a..208cd10 100644 --- a/source/types.ts +++ b/source/types.ts @@ -207,7 +207,7 @@ export type SchemaProperties = { export type SchemaMixin = { $ref: string; }; -type EntityEvent = { entity_event: boolean }; +type SchemaMetadata = { entity_event: boolean }; export interface Schema { properties: SchemaProperties; default_projections: string[]; @@ -220,7 +220,7 @@ export interface Schema { system_projections?: string[]; alias_for?: string | Data; $mixin?: SchemaMixin; - metadata?: EntityEvent; + metadata?: SchemaMetadata; } export interface QueryOptions { abortController?: AbortController; From 99ee663cbc533fd0bc6237a8939063f5adf8a1c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98Swetha?= Date: Wed, 21 Feb 2024 11:04:09 +0100 Subject: [PATCH 3/3] export --- source/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/types.ts b/source/types.ts index 208cd10..d880b14 100644 --- a/source/types.ts +++ b/source/types.ts @@ -207,7 +207,7 @@ export type SchemaProperties = { export type SchemaMixin = { $ref: string; }; -type SchemaMetadata = { entity_event: boolean }; +export type SchemaMetadata = { entity_event: boolean }; export interface Schema { properties: SchemaProperties; default_projections: string[];