@punks/backend-entity-manager 0.0.19 → 0.0.21
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.
- package/dist/cjs/index.js +16 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/adapters.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/decorators/index.d.ts +1 -0
- package/dist/cjs/types/utils/index.d.ts +1 -0
- package/dist/cjs/types/utils/uid.d.ts +1 -0
- package/dist/esm/index.js +15 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/adapters.d.ts +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/platforms/nest/decorators/index.d.ts +1 -0
- package/dist/esm/types/utils/index.d.ts +1 -0
- package/dist/esm/types/utils/uid.d.ts +1 -0
- package/dist/index.d.ts +9 -6
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ export interface IEntityCreateCommandAdapter<TEntity, TEntityCreateData> {
|
|
|
2
2
|
createDataToEntity(data: TEntityCreateData): Partial<TEntity>;
|
|
3
3
|
}
|
|
4
4
|
export interface IEntityUpdateCommandAdapter<TEntity, TEntityUpdateData> {
|
|
5
|
-
updateDataToEntity(
|
|
5
|
+
updateDataToEntity(data: TEntityUpdateData): Partial<TEntity>;
|
|
6
6
|
}
|
|
7
7
|
export interface IEntityAdapter<TEntity, TEntityCreateData, TEntityUpdateData> extends IEntityCreateCommandAdapter<TEntity, TEntityCreateData>, IEntityUpdateCommandAdapter<TEntity, TEntityUpdateData> {
|
|
8
8
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { WpEntityAuthMiddleware, EntityAuthMiddlewareProps, } from "./authorization";
|
|
2
2
|
export { WpEntityActions, EntityActionsProps } from "./actions";
|
|
3
|
+
export { WpEntityAdapter, EntityAdapterProps } from "./adapter";
|
|
3
4
|
export { WpEntityConnector, EntityConnectorProps } from "./connector";
|
|
4
5
|
export { WpEntityConverter, EntityConverterProps } from "./converter";
|
|
5
6
|
export { WpEntity, EntityProps } from "./entity";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { newUuid } from "./uid";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const newUuid: () => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ interface IEntityCreateCommandAdapter<TEntity, TEntityCreateData> {
|
|
|
93
93
|
createDataToEntity(data: TEntityCreateData): Partial<TEntity>;
|
|
94
94
|
}
|
|
95
95
|
interface IEntityUpdateCommandAdapter<TEntity, TEntityUpdateData> {
|
|
96
|
-
updateDataToEntity(
|
|
96
|
+
updateDataToEntity(data: TEntityUpdateData): Partial<TEntity>;
|
|
97
97
|
}
|
|
98
98
|
interface IEntityAdapter<TEntity, TEntityCreateData, TEntityUpdateData> extends IEntityCreateCommandAdapter<TEntity, TEntityCreateData>, IEntityUpdateCommandAdapter<TEntity, TEntityUpdateData> {
|
|
99
99
|
}
|
|
@@ -443,6 +443,11 @@ interface EntityActionsProps {
|
|
|
443
443
|
}
|
|
444
444
|
declare const WpEntityActions: (entityName: string, props?: Omit<EntityActionsProps, "entityName">) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
|
|
445
445
|
|
|
446
|
+
interface EntityAdapterProps {
|
|
447
|
+
entityName: string;
|
|
448
|
+
}
|
|
449
|
+
declare const WpEntityAdapter: (entityName: string, props?: Omit<EntityAdapterProps, "entityName">) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
|
|
450
|
+
|
|
446
451
|
interface EntityConnectorProps {
|
|
447
452
|
entityName: string;
|
|
448
453
|
}
|
|
@@ -571,10 +576,6 @@ declare class CustomDiscoveryService {
|
|
|
571
576
|
private getModuleEntries;
|
|
572
577
|
}
|
|
573
578
|
|
|
574
|
-
interface EntityAdapterProps {
|
|
575
|
-
entityName: string;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
579
|
declare class EntityManagerRegistry {
|
|
579
580
|
private readonly container;
|
|
580
581
|
getContainer(): IEntityManagerServiceRoot;
|
|
@@ -691,4 +692,6 @@ declare class EntityManagerInitializer {
|
|
|
691
692
|
declare class EntityManagerModule {
|
|
692
693
|
}
|
|
693
694
|
|
|
694
|
-
|
|
695
|
+
declare const newUuid: () => string;
|
|
696
|
+
|
|
697
|
+
export { EntityActionsProps, EntityAdapterProps, EntityAuthMiddlewareProps, EntityConnectorProps, EntityConverterProps, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerProps, EntityManagerRegistry, EntityManagerSymbols, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, EntityProps, EntityQueryBuilderProps, EntityRepositoryProps, FilterExpression, IAuthorizationResult, IEntitiesQueryBuilder, IEntitiesSearchAction, IEntitiesSearchQuery, IEntityActions, IEntityAdapter, IEntityAuthorizationMiddleware, IEntityConverter, IEntityCreateAction, IEntityCreateCommand, IEntityDeleteAction, IEntityDeleteCommand, IEntityEventsManager, IEntityGetAction, IEntityGetQuery, IEntityManager, IEntityManagerServiceCollection, IEntityManagerServiceRoot, IEntityMapper, IEntityReplicaDeleteManager, IEntityReplicaSyncManager, IEntityRepository, IEntitySearchParameters, IEntitySearchResults, IEntityUpdateAction, IEntityUpdateCommand, IEntityUpsertAction, IEntityUpsertCommand, IReplicasConfiguration, ISearchFilters, ISearchOptions, ISearchRequestPaging, ISearchResultsPaging, ISearchSorting, ISearchSortingField, ModulesContainerProvider, MultipleEntitiesFoundException, NestEntityActions, NestEntityManager, NestTypeOrmQueryBuilder, NestTypeOrmRepository, QueryBuilderBase, ReplicaConfiguration, ReplicaOptions, ReplicationMode, SortDirection, SortingType, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, newUuid };
|