@punks/backend-entity-manager 0.0.63 → 0.0.65
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 +43 -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 +5 -1
- package/dist/cjs/types/platforms/nest/dto/facets.d.ts +17 -5
- package/dist/cjs/types/platforms/nest/dto/index.d.ts +1 -1
- package/dist/esm/index.js +41 -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 +5 -1
- package/dist/esm/types/platforms/nest/dto/facets.d.ts +17 -5
- package/dist/esm/types/platforms/nest/dto/index.d.ts +1 -1
- package/dist/index.d.ts +22 -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,9 +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
|
+
count?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface IEntityFacet<T> {
|
|
11
|
+
items: IEntityFacetItem<T>[];
|
|
8
12
|
}
|
|
9
13
|
export interface IEntityFacets {
|
|
10
14
|
}
|
|
@@ -1,13 +1,25 @@
|
|
|
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
|
+
count?: number;
|
|
5
6
|
}
|
|
6
7
|
export declare class NumericFacet implements IEntityFacet<number> {
|
|
7
|
-
|
|
8
|
+
items: NumericFacetItem[];
|
|
9
|
+
}
|
|
10
|
+
export declare class BooleanFacetItem implements IEntityFacetItem<boolean> {
|
|
11
|
+
value: boolean;
|
|
8
12
|
name?: string;
|
|
13
|
+
count?: number;
|
|
9
14
|
}
|
|
10
15
|
export declare class BooleanFacet implements IEntityFacet<boolean> {
|
|
11
|
-
|
|
16
|
+
items: BooleanFacetItem[];
|
|
17
|
+
}
|
|
18
|
+
export declare class StringFacetItem implements IEntityFacetItem<string> {
|
|
19
|
+
value: string;
|
|
12
20
|
name?: string;
|
|
21
|
+
count?: number;
|
|
22
|
+
}
|
|
23
|
+
export declare class StringFacet implements IEntityFacet<string> {
|
|
24
|
+
items: StringFacetItem[];
|
|
13
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { BooleanFacet, BooleanFacetItem, NumericFacet, NumericFacetItem, StringFacet, StringFacetItem, } from "./facets";
|
package/dist/esm/index.js
CHANGED
|
@@ -249,36 +249,66 @@ 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
|
+
__decorate([
|
|
263
|
+
ApiProperty({ nullable: true }),
|
|
264
|
+
__metadata("design:type", Number)
|
|
265
|
+
], NumericFacetItem.prototype, "count", void 0);
|
|
262
266
|
class NumericFacet {
|
|
263
267
|
}
|
|
268
|
+
__decorate([
|
|
269
|
+
ApiProperty({ type: [NumericFacetItem] }),
|
|
270
|
+
__metadata("design:type", Array)
|
|
271
|
+
], NumericFacet.prototype, "items", void 0);
|
|
272
|
+
class BooleanFacetItem {
|
|
273
|
+
}
|
|
264
274
|
__decorate([
|
|
265
275
|
ApiProperty(),
|
|
266
|
-
__metadata("design:type",
|
|
267
|
-
],
|
|
276
|
+
__metadata("design:type", Boolean)
|
|
277
|
+
], BooleanFacetItem.prototype, "value", void 0);
|
|
268
278
|
__decorate([
|
|
269
279
|
ApiProperty({ nullable: true }),
|
|
270
280
|
__metadata("design:type", String)
|
|
271
|
-
],
|
|
281
|
+
], BooleanFacetItem.prototype, "name", void 0);
|
|
282
|
+
__decorate([
|
|
283
|
+
ApiProperty({ nullable: true }),
|
|
284
|
+
__metadata("design:type", Number)
|
|
285
|
+
], BooleanFacetItem.prototype, "count", void 0);
|
|
272
286
|
class BooleanFacet {
|
|
273
287
|
}
|
|
288
|
+
__decorate([
|
|
289
|
+
ApiProperty({ type: [BooleanFacetItem] }),
|
|
290
|
+
__metadata("design:type", Array)
|
|
291
|
+
], BooleanFacet.prototype, "items", void 0);
|
|
292
|
+
class StringFacetItem {
|
|
293
|
+
}
|
|
274
294
|
__decorate([
|
|
275
295
|
ApiProperty(),
|
|
276
|
-
__metadata("design:type",
|
|
277
|
-
],
|
|
296
|
+
__metadata("design:type", String)
|
|
297
|
+
], StringFacetItem.prototype, "value", void 0);
|
|
278
298
|
__decorate([
|
|
279
299
|
ApiProperty({ nullable: true }),
|
|
280
300
|
__metadata("design:type", String)
|
|
281
|
-
],
|
|
301
|
+
], StringFacetItem.prototype, "name", void 0);
|
|
302
|
+
__decorate([
|
|
303
|
+
ApiProperty({ nullable: true }),
|
|
304
|
+
__metadata("design:type", Number)
|
|
305
|
+
], StringFacetItem.prototype, "count", void 0);
|
|
306
|
+
class StringFacet {
|
|
307
|
+
}
|
|
308
|
+
__decorate([
|
|
309
|
+
ApiProperty({ type: [StringFacetItem] }),
|
|
310
|
+
__metadata("design:type", Array)
|
|
311
|
+
], StringFacet.prototype, "items", void 0);
|
|
282
312
|
|
|
283
313
|
const AuthenticationExtensionSymbols = {
|
|
284
314
|
UserService: Symbol.for("WP.EXT:AUTHENTICATION.USER_SERVICE"),
|
|
@@ -25397,5 +25427,5 @@ AppSessionMiddleware = __decorate([
|
|
|
25397
25427
|
Injectable()
|
|
25398
25428
|
], AppSessionMiddleware);
|
|
25399
25429
|
|
|
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 };
|
|
25430
|
+
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
25431
|
//# sourceMappingURL=index.js.map
|