@punks/backend-entity-manager 0.0.63 → 0.0.64
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 +31 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/index.d.ts +1 -1
- package/dist/cjs/types/abstractions/queries.d.ts +4 -1
- package/dist/cjs/types/platforms/nest/dto/facets.d.ts +14 -5
- package/dist/cjs/types/platforms/nest/dto/index.d.ts +1 -1
- package/dist/esm/index.js +29 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/index.d.ts +1 -1
- package/dist/esm/types/abstractions/queries.d.ts +4 -1
- package/dist/esm/types/platforms/nest/dto/facets.d.ts +14 -5
- package/dist/esm/types/platforms/nest/dto/index.d.ts +1 -1
- package/dist/index.d.ts +18 -6
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export * from "./filters";
|
|
|
13
13
|
export * from "./localization";
|
|
14
14
|
export { IEntityManager } from "./manager";
|
|
15
15
|
export { IEntityMapper } from "./mappers";
|
|
16
|
-
export { IEntitiesSearchQuery, IEntityGetQuery, IEntitiesQueryBuilder, IEntityFacet, IEntityFacets, } from "./queries";
|
|
16
|
+
export { IEntitiesSearchQuery, IEntityGetQuery, IEntitiesQueryBuilder, IEntityFacet, IEntityFacets, IEntityFacetItem, } from "./queries";
|
|
17
17
|
export { IReplicasConfiguration, ReplicationMode, ReplicaOptions, ReplicaConfiguration, IEntityReplicaDeleteManager, IEntityReplicaSyncManager, } from "./replication";
|
|
18
18
|
export { IEntityRepository } from "./repository";
|
|
19
19
|
export * from "./searchParameters";
|
|
@@ -2,10 +2,13 @@ import { IEntitiesSearchResults } from "../models";
|
|
|
2
2
|
import { IAuthenticationContext } from "./authentication";
|
|
3
3
|
import { SortingType } from "./common";
|
|
4
4
|
import { IEntitySearchParameters } from "./searchParameters";
|
|
5
|
-
export interface
|
|
5
|
+
export interface IEntityFacetItem<T> {
|
|
6
6
|
value: T;
|
|
7
7
|
name?: string;
|
|
8
8
|
}
|
|
9
|
+
export interface IEntityFacet<T> {
|
|
10
|
+
items: IEntityFacetItem<T>[];
|
|
11
|
+
}
|
|
9
12
|
export interface IEntityFacets {
|
|
10
13
|
}
|
|
11
14
|
export interface IEntitiesSearchQuery<TEntity, TEntitySearchParameters extends IEntitySearchParameters<TSorting, TCursor>, TSorting extends SortingType, TCursor, TFacets extends IEntityFacets> {
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import { IEntityFacet } from "../../../abstractions";
|
|
2
|
-
export declare class
|
|
3
|
-
value:
|
|
1
|
+
import { IEntityFacet, IEntityFacetItem } from "../../../abstractions";
|
|
2
|
+
export declare class NumericFacetItem implements IEntityFacetItem<number> {
|
|
3
|
+
value: number;
|
|
4
4
|
name?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare class NumericFacet implements IEntityFacet<number> {
|
|
7
|
-
|
|
7
|
+
items: NumericFacetItem[];
|
|
8
|
+
}
|
|
9
|
+
export declare class BooleanFacetItem implements IEntityFacetItem<boolean> {
|
|
10
|
+
value: boolean;
|
|
8
11
|
name?: string;
|
|
9
12
|
}
|
|
10
13
|
export declare class BooleanFacet implements IEntityFacet<boolean> {
|
|
11
|
-
|
|
14
|
+
items: BooleanFacetItem[];
|
|
15
|
+
}
|
|
16
|
+
export declare class StringFacetItem implements IEntityFacetItem<string> {
|
|
17
|
+
value: string;
|
|
12
18
|
name?: string;
|
|
13
19
|
}
|
|
20
|
+
export declare class StringFacet implements IEntityFacet<string> {
|
|
21
|
+
items: StringFacetItem[];
|
|
22
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { BooleanFacet, BooleanFacetItem, NumericFacet, NumericFacetItem, StringFacet, StringFacetItem, } from "./facets";
|
package/dist/esm/index.js
CHANGED
|
@@ -249,36 +249,54 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
249
249
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
250
250
|
};
|
|
251
251
|
|
|
252
|
-
class
|
|
252
|
+
class NumericFacetItem {
|
|
253
253
|
}
|
|
254
254
|
__decorate([
|
|
255
255
|
ApiProperty(),
|
|
256
|
-
__metadata("design:type",
|
|
257
|
-
],
|
|
256
|
+
__metadata("design:type", Number)
|
|
257
|
+
], NumericFacetItem.prototype, "value", void 0);
|
|
258
258
|
__decorate([
|
|
259
259
|
ApiProperty({ nullable: true }),
|
|
260
260
|
__metadata("design:type", String)
|
|
261
|
-
],
|
|
261
|
+
], NumericFacetItem.prototype, "name", void 0);
|
|
262
262
|
class NumericFacet {
|
|
263
263
|
}
|
|
264
|
+
__decorate([
|
|
265
|
+
ApiProperty({ type: [NumericFacetItem] }),
|
|
266
|
+
__metadata("design:type", Array)
|
|
267
|
+
], NumericFacet.prototype, "items", void 0);
|
|
268
|
+
class BooleanFacetItem {
|
|
269
|
+
}
|
|
264
270
|
__decorate([
|
|
265
271
|
ApiProperty(),
|
|
266
|
-
__metadata("design:type",
|
|
267
|
-
],
|
|
272
|
+
__metadata("design:type", Boolean)
|
|
273
|
+
], BooleanFacetItem.prototype, "value", void 0);
|
|
268
274
|
__decorate([
|
|
269
275
|
ApiProperty({ nullable: true }),
|
|
270
276
|
__metadata("design:type", String)
|
|
271
|
-
],
|
|
277
|
+
], BooleanFacetItem.prototype, "name", void 0);
|
|
272
278
|
class BooleanFacet {
|
|
273
279
|
}
|
|
280
|
+
__decorate([
|
|
281
|
+
ApiProperty({ type: [BooleanFacetItem] }),
|
|
282
|
+
__metadata("design:type", Array)
|
|
283
|
+
], BooleanFacet.prototype, "items", void 0);
|
|
284
|
+
class StringFacetItem {
|
|
285
|
+
}
|
|
274
286
|
__decorate([
|
|
275
287
|
ApiProperty(),
|
|
276
|
-
__metadata("design:type",
|
|
277
|
-
],
|
|
288
|
+
__metadata("design:type", String)
|
|
289
|
+
], StringFacetItem.prototype, "value", void 0);
|
|
278
290
|
__decorate([
|
|
279
291
|
ApiProperty({ nullable: true }),
|
|
280
292
|
__metadata("design:type", String)
|
|
281
|
-
],
|
|
293
|
+
], StringFacetItem.prototype, "name", void 0);
|
|
294
|
+
class StringFacet {
|
|
295
|
+
}
|
|
296
|
+
__decorate([
|
|
297
|
+
ApiProperty({ type: [StringFacetItem] }),
|
|
298
|
+
__metadata("design:type", Array)
|
|
299
|
+
], StringFacet.prototype, "items", void 0);
|
|
282
300
|
|
|
283
301
|
const AuthenticationExtensionSymbols = {
|
|
284
302
|
UserService: Symbol.for("WP.EXT:AUTHENTICATION.USER_SERVICE"),
|
|
@@ -25397,5 +25415,5 @@ AppSessionMiddleware = __decorate([
|
|
|
25397
25415
|
Injectable()
|
|
25398
25416
|
], AppSessionMiddleware);
|
|
25399
25417
|
|
|
25400
|
-
export { AUTHENTICATION_EVENTS_NAMESPACE, AppExceptionsFilterBase, AppHashingService, AppInMemorySettings, AppSessionMiddleware, AppSessionService, AuthenticationEmailTemplates, AuthenticationError, AuthenticationEvents, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationService, AwsEmailModule, AwsSesEmailTemplate, BooleanFacet, EmailService, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, EntitySeeder, EventsService, InvalidCredentialsError, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestTypeOrmEntitySeeder, NestTypeOrmQueryBuilder, NestTypeOrmRepository, NumericFacet, OperationTokenMismatchError, PLATFORM_EVENT_NAMESPACE, PlatformEvents, QueryBuilderBase, ReplicationMode, SendgridEmailModule, SendgridEmailTemplate, SortDirection, StringFacet, TrackingService, UserRegistrationError, WpAppInitializer, WpAwsSesEmailTemplate, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpEntitySeeder, WpEventsTracker, WpSendgridEmailTemplate, WpUserService, getLocalizedText, newUuid, renderHandlebarsTemplate };
|
|
25418
|
+
export { AUTHENTICATION_EVENTS_NAMESPACE, AppExceptionsFilterBase, AppHashingService, AppInMemorySettings, AppSessionMiddleware, AppSessionService, AuthenticationEmailTemplates, AuthenticationError, AuthenticationEvents, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationService, AwsEmailModule, AwsSesEmailTemplate, BooleanFacet, BooleanFacetItem, EmailService, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, EntitySeeder, EventsService, InvalidCredentialsError, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestTypeOrmEntitySeeder, NestTypeOrmQueryBuilder, NestTypeOrmRepository, NumericFacet, NumericFacetItem, OperationTokenMismatchError, PLATFORM_EVENT_NAMESPACE, PlatformEvents, QueryBuilderBase, ReplicationMode, SendgridEmailModule, SendgridEmailTemplate, SortDirection, StringFacet, StringFacetItem, TrackingService, UserRegistrationError, WpAppInitializer, WpAwsSesEmailTemplate, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpEntitySeeder, WpEventsTracker, WpSendgridEmailTemplate, WpUserService, getLocalizedText, newUuid, renderHandlebarsTemplate };
|
|
25401
25419
|
//# sourceMappingURL=index.js.map
|