Rename uniqueIdentifier to universalIdentifier (#14201)

This commit is contained in:
Weiko
2025-09-01 12:33:59 +02:00
committed by GitHub
parent 58a38769bd
commit 80347b7b38
76 changed files with 556 additions and 552 deletions
@@ -10,12 +10,12 @@ export type CustomDeletedCreatedUpdatedMatrix<TLabel extends string, TInput> = {
[P in keyof DeletedCreatedUpdatedMatrix<TInput> as `${P}${Capitalize<TLabel>}`]: DeletedCreatedUpdatedMatrix<TInput>[P];
};
export type UniqueIdentifierItem = {
uniqueIdentifier: string;
export type UniversalIdentifierItem = {
universalIdentifier: string;
};
export const deletedCreatedUpdatedMatrixDispatcher = <
T extends UniqueIdentifierItem,
T extends UniversalIdentifierItem,
>({
from,
to,
@@ -26,8 +26,8 @@ export const deletedCreatedUpdatedMatrixDispatcher = <
deleted: [],
};
const fromMap = new Map(from.map((obj) => [obj.uniqueIdentifier, obj]));
const toMap = new Map(to.map((obj) => [obj.uniqueIdentifier, obj]));
const fromMap = new Map(from.map((obj) => [obj.universalIdentifier, obj]));
const toMap = new Map(to.map((obj) => [obj.universalIdentifier, obj]));
for (const [identifier, fromObj] of fromMap) {
if (!toMap.has(identifier)) {