@punks/backend-entity-manager 0.0.457 → 0.0.458
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,6 +19,11 @@ export interface IEntitiesDeleteAction<TEntity, TEntitiesDeleteParameters extend
|
|
|
19
19
|
export interface IEntityGetAction<TEntity, TEntityId, TEntityDto> {
|
|
20
20
|
execute(id: TEntityId): Promise<TEntityDto | undefined>;
|
|
21
21
|
}
|
|
22
|
+
export interface IEntityGetAction<TEntity, TEntityId, TEntityDto> {
|
|
23
|
+
execute(id: TEntityId, options?: {
|
|
24
|
+
relations?: string[];
|
|
25
|
+
}): Promise<TEntityDto | undefined>;
|
|
26
|
+
}
|
|
22
27
|
export interface IEntityExistsAction<TEntity, TEntityFilters extends ISearchFilters> {
|
|
23
28
|
execute(filters: TEntityFilters): Promise<boolean>;
|
|
24
29
|
}
|
|
@@ -49,7 +49,7 @@ export interface IEntitiesSampleDownloadCommand<TEntity> {
|
|
|
49
49
|
}
|
|
50
50
|
export interface IEntityUpsertByParameters<TEntity, TEntityFilters extends ISearchFilters> {
|
|
51
51
|
filter: TEntityFilters;
|
|
52
|
-
data: Partial<
|
|
52
|
+
data: Partial<TEntity>;
|
|
53
53
|
}
|
|
54
54
|
export interface IEntityUpsertByResult {
|
|
55
55
|
id: string;
|
|
@@ -19,6 +19,11 @@ export interface IEntitiesDeleteAction<TEntity, TEntitiesDeleteParameters extend
|
|
|
19
19
|
export interface IEntityGetAction<TEntity, TEntityId, TEntityDto> {
|
|
20
20
|
execute(id: TEntityId): Promise<TEntityDto | undefined>;
|
|
21
21
|
}
|
|
22
|
+
export interface IEntityGetAction<TEntity, TEntityId, TEntityDto> {
|
|
23
|
+
execute(id: TEntityId, options?: {
|
|
24
|
+
relations?: string[];
|
|
25
|
+
}): Promise<TEntityDto | undefined>;
|
|
26
|
+
}
|
|
22
27
|
export interface IEntityExistsAction<TEntity, TEntityFilters extends ISearchFilters> {
|
|
23
28
|
execute(filters: TEntityFilters): Promise<boolean>;
|
|
24
29
|
}
|
|
@@ -49,7 +49,7 @@ export interface IEntitiesSampleDownloadCommand<TEntity> {
|
|
|
49
49
|
}
|
|
50
50
|
export interface IEntityUpsertByParameters<TEntity, TEntityFilters extends ISearchFilters> {
|
|
51
51
|
filter: TEntityFilters;
|
|
52
|
-
data: Partial<
|
|
52
|
+
data: Partial<TEntity>;
|
|
53
53
|
}
|
|
54
54
|
export interface IEntityUpsertByResult {
|
|
55
55
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -383,7 +383,7 @@ interface IEntitiesSampleDownloadCommand<TEntity> {
|
|
|
383
383
|
}
|
|
384
384
|
interface IEntityUpsertByParameters<TEntity, TEntityFilters extends ISearchFilters> {
|
|
385
385
|
filter: TEntityFilters;
|
|
386
|
-
data: Partial<
|
|
386
|
+
data: Partial<TEntity>;
|
|
387
387
|
}
|
|
388
388
|
interface IEntityUpsertByResult {
|
|
389
389
|
id: string;
|
|
@@ -429,6 +429,11 @@ interface IEntitiesDeleteAction<TEntity, TEntitiesDeleteParameters extends IEnti
|
|
|
429
429
|
interface IEntityGetAction<TEntity, TEntityId, TEntityDto> {
|
|
430
430
|
execute(id: TEntityId): Promise<TEntityDto | undefined>;
|
|
431
431
|
}
|
|
432
|
+
interface IEntityGetAction<TEntity, TEntityId, TEntityDto> {
|
|
433
|
+
execute(id: TEntityId, options?: {
|
|
434
|
+
relations?: string[];
|
|
435
|
+
}): Promise<TEntityDto | undefined>;
|
|
436
|
+
}
|
|
432
437
|
interface IEntityExistsAction<TEntity, TEntityFilters extends ISearchFilters> {
|
|
433
438
|
execute(filters: TEntityFilters): Promise<boolean>;
|
|
434
439
|
}
|