From 01b53828d62ea4bb360aafdade04be9b8617fb16 Mon Sep 17 00:00:00 2001 From: Convly Date: Mon, 11 Dec 2023 11:40:16 +0100 Subject: [PATCH] chore: rename mocks to literals for clarity --- .../entity-service/params/attributes/index.ts | 14 +++++++------- .../params/attributes/{mocks.ts => literals.ts} | 0 2 files changed, 7 insertions(+), 7 deletions(-) rename packages/core/types/src/modules/entity-service/params/attributes/{mocks.ts => literals.ts} (100%) diff --git a/packages/core/types/src/modules/entity-service/params/attributes/index.ts b/packages/core/types/src/modules/entity-service/params/attributes/index.ts index 16cf7343af..970fd9d28e 100644 --- a/packages/core/types/src/modules/entity-service/params/attributes/index.ts +++ b/packages/core/types/src/modules/entity-service/params/attributes/index.ts @@ -1,11 +1,11 @@ import type { Attribute, Common, Utils } from '../../../../types'; import type { OmitRelationsWithoutTarget, RelationInputValue } from './relation'; import type { ID } from './id'; -import type * as Mocks from './mocks'; +import type * as Literals from './literals'; export * from './id'; export * from './utils'; -export * from './mocks'; +export * from './literals'; /** * List of possible values for the scalar attributes @@ -94,21 +94,21 @@ export type GetValue = Utils.Expression. : never ], // Boolean - [Utils.Expression.Extends, Mocks.BooleanValue], + [Utils.Expression.Extends, Literals.BooleanValue], // Number [ Utils.Expression.Extends< TAttribute, Attribute.Integer | Attribute.BigInteger | Attribute.Float | Attribute.Decimal >, - Mocks.NumberValue + Literals.NumberValue ], // Date / Time - [Utils.Expression.Extends, Mocks.TimeValue], - [Utils.Expression.Extends, Mocks.DateValue], + [Utils.Expression.Extends, Literals.TimeValue], + [Utils.Expression.Extends, Literals.DateValue], [ Utils.Expression.Extends, - Mocks.DateTimeValue + Literals.DateTimeValue ], // Fallback // If none of the above attribute type, fallback to the original Attribute.GetValue (while making sure it's an attribute) diff --git a/packages/core/types/src/modules/entity-service/params/attributes/mocks.ts b/packages/core/types/src/modules/entity-service/params/attributes/literals.ts similarity index 100% rename from packages/core/types/src/modules/entity-service/params/attributes/mocks.ts rename to packages/core/types/src/modules/entity-service/params/attributes/literals.ts