Strictly type encryption rotation key site maps constants through entity type derivation (#21085)
# Introduction Followup https://github.com/twentyhq/twenty/pull/21001 Now that the typeorm entities provide grains over their `encryptedString` value, we can strictly type the sitemaps of the encrypted string to rotate in case of encryption key rotation and also the integration tests tests cases
This commit is contained in:
+1
-3
@@ -1,11 +1,9 @@
|
||||
import { type Equal, type Expect } from 'twenty-shared/testing';
|
||||
import { type EmptyObject } from 'twenty-shared/types';
|
||||
|
||||
import { type ExtractJsonbProperties } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/extract-jsonb-properties.type';
|
||||
import { type JsonbProperty } from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/jsonb-property.type';
|
||||
|
||||
// oxlint-disable-next-line @typescripttypescript/no-empty-object-type
|
||||
type EmptyObject = {};
|
||||
|
||||
type TestedRecord = {
|
||||
// Non-JsonbProperty fields
|
||||
plainString: string;
|
||||
|
||||
+1
-3
@@ -1,13 +1,11 @@
|
||||
import { type Equal, type Expect } from 'twenty-shared/testing';
|
||||
import { type EmptyObject } from 'twenty-shared/types';
|
||||
|
||||
import {
|
||||
type JSONB_PROPERTY_BRAND,
|
||||
type JsonbProperty,
|
||||
} from 'src/engine/workspace-manager/workspace-migration/universal-flat-entity/types/jsonb-property.type';
|
||||
|
||||
// oxlint-disable-next-line @typescripttypescript/no-empty-object-type
|
||||
type EmptyObject = {};
|
||||
|
||||
type SimpleObject = { value: string };
|
||||
|
||||
type NestedObject = { nested: { deep: number } };
|
||||
|
||||
Reference in New Issue
Block a user