connectfy-shared 0.0.114 → 0.0.115
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/index.cjs +6 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -11669,6 +11669,12 @@ var BaseRepository = class {
|
|
|
11669
11669
|
async count(query) {
|
|
11670
11670
|
return await this.model.countDocuments(query).exec();
|
|
11671
11671
|
}
|
|
11672
|
+
// ================================================
|
|
11673
|
+
// AGGREGATE FUNCTION
|
|
11674
|
+
// ================================================
|
|
11675
|
+
async aggregate(pipeline) {
|
|
11676
|
+
return await this.model.aggregate(pipeline).exec();
|
|
11677
|
+
}
|
|
11672
11678
|
};
|
|
11673
11679
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11674
11680
|
0 && (module.exports = {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RpcException, ClientKafka, ClientProxy, KafkaContext } from '@nestjs/microservices';
|
|
2
|
-
import { PopulateOptions, Document, Model } from 'mongoose';
|
|
2
|
+
import { PopulateOptions, Document, Model, PipelineStage } from 'mongoose';
|
|
3
3
|
import { ClsService } from 'nestjs-cls';
|
|
4
4
|
import { ValidationArguments, ValidationOptions, IsIpVersion, IsNumberOptions } from 'class-validator';
|
|
5
5
|
import { ClassConstructor } from 'class-transformer';
|
|
@@ -814,6 +814,7 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
814
814
|
findAll(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface[] | TDocument[]>;
|
|
815
815
|
existsByField(query: Record<string, any>): Promise<boolean>;
|
|
816
816
|
count(query: Record<string, any>): Promise<number>;
|
|
817
|
+
aggregate<R = any>(pipeline: PipelineStage[]): Promise<R[]>;
|
|
817
818
|
}
|
|
818
819
|
|
|
819
820
|
export { AllExceptionsFilter, AvatarFormats, BROWSER_TYPE, BaseException, BaseFindDto, BaseRemoveAllDto, BaseRemoveDto, BaseRepository, CACHE_KEYS, CHECK_UNIQUE_FIELD, CLS_KEYS, COLLECTIONS, COUNTRIES, DATE_FORMAT, DELETE_REASON, DELETE_REASON_CODE, DEVICE_TYPE, EXPIRE_DATES, ExceptionMessages, FIELD_TRANSFORMER_REGISTRY, FIELD_TYPE, FIELD_VALIDATOR_REGISTRY, FORGOT_PASSWORD_IDENTIFIER_TYPE, FieldValidator, type FieldValidatorOptions, FileOwnerModule, FileUploadTopic, FriendshipRequestType, FriendshipStatus, GENDER, GOOGLE_AUTH_LOGIN_TYPE, HttpStatus, type IAccount, type IArrayFieldOptions, type IAvatar, type IBaseFieldOptions, type IBaseRepositoryInterface, type IBaseRepositoryOptions, type IBaseRepositoryRemoveOptions, type IBaseRepositoryUpdateOptions, type IBooleanFieldOptions, type ICountry, IDENTIFIER_TYPE, type IDateFieldOptions, type IDefaultAvatar, type IEmitWithContextClientParams, type IEnumFieldOptions, type IFindAllResponse, type IGeneralSettings, type ILoggedUser, type INotificationSettings, type INumberFieldOptions, type IObjectFieldOptions, type IPhoneNumber, type IPrivacySettings, type IRemoveAllResponse, type IResponse, type IReturnedUser, type ISendWithContextClientParams, type IStringFieldOptions, type ITimeZone, type IValidateMessageOptions, LANGUAGE, LOCAL_STORAGE_KEYS, MICROSERVICE_NAMES, MODULE_TO_TOPIC_MAP, NOTIFICATION_CONTENT_MODE, NOTIFICATION_SOUND_MODE, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, ProfilePhotoUpdateAction, REDIS_KEYS, REDUCER_PATH, RESOURCE, ROLE, SOCIAL_LINK_PLATFORM, STARTUP_PAGE, TAG_TYPES, THEME, TIME_DIFFERENCE_TYPE, TIME_FORMAT, TOKEN_TYPE, TWO_FACTOR_ACTION, USER_STATUS, VALIDATION_TYPE, accountDeletedMessage, arrayTransform, booleanTransform, changeEmailMessage, commitKafkaOffset, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, shouldShowField, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RpcException, ClientKafka, ClientProxy, KafkaContext } from '@nestjs/microservices';
|
|
2
|
-
import { PopulateOptions, Document, Model } from 'mongoose';
|
|
2
|
+
import { PopulateOptions, Document, Model, PipelineStage } from 'mongoose';
|
|
3
3
|
import { ClsService } from 'nestjs-cls';
|
|
4
4
|
import { ValidationArguments, ValidationOptions, IsIpVersion, IsNumberOptions } from 'class-validator';
|
|
5
5
|
import { ClassConstructor } from 'class-transformer';
|
|
@@ -814,6 +814,7 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
814
814
|
findAll(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface[] | TDocument[]>;
|
|
815
815
|
existsByField(query: Record<string, any>): Promise<boolean>;
|
|
816
816
|
count(query: Record<string, any>): Promise<number>;
|
|
817
|
+
aggregate<R = any>(pipeline: PipelineStage[]): Promise<R[]>;
|
|
817
818
|
}
|
|
818
819
|
|
|
819
820
|
export { AllExceptionsFilter, AvatarFormats, BROWSER_TYPE, BaseException, BaseFindDto, BaseRemoveAllDto, BaseRemoveDto, BaseRepository, CACHE_KEYS, CHECK_UNIQUE_FIELD, CLS_KEYS, COLLECTIONS, COUNTRIES, DATE_FORMAT, DELETE_REASON, DELETE_REASON_CODE, DEVICE_TYPE, EXPIRE_DATES, ExceptionMessages, FIELD_TRANSFORMER_REGISTRY, FIELD_TYPE, FIELD_VALIDATOR_REGISTRY, FORGOT_PASSWORD_IDENTIFIER_TYPE, FieldValidator, type FieldValidatorOptions, FileOwnerModule, FileUploadTopic, FriendshipRequestType, FriendshipStatus, GENDER, GOOGLE_AUTH_LOGIN_TYPE, HttpStatus, type IAccount, type IArrayFieldOptions, type IAvatar, type IBaseFieldOptions, type IBaseRepositoryInterface, type IBaseRepositoryOptions, type IBaseRepositoryRemoveOptions, type IBaseRepositoryUpdateOptions, type IBooleanFieldOptions, type ICountry, IDENTIFIER_TYPE, type IDateFieldOptions, type IDefaultAvatar, type IEmitWithContextClientParams, type IEnumFieldOptions, type IFindAllResponse, type IGeneralSettings, type ILoggedUser, type INotificationSettings, type INumberFieldOptions, type IObjectFieldOptions, type IPhoneNumber, type IPrivacySettings, type IRemoveAllResponse, type IResponse, type IReturnedUser, type ISendWithContextClientParams, type IStringFieldOptions, type ITimeZone, type IValidateMessageOptions, LANGUAGE, LOCAL_STORAGE_KEYS, MICROSERVICE_NAMES, MODULE_TO_TOPIC_MAP, NOTIFICATION_CONTENT_MODE, NOTIFICATION_SOUND_MODE, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, ProfilePhotoUpdateAction, REDIS_KEYS, REDUCER_PATH, RESOURCE, ROLE, SOCIAL_LINK_PLATFORM, STARTUP_PAGE, TAG_TYPES, THEME, TIME_DIFFERENCE_TYPE, TIME_FORMAT, TOKEN_TYPE, TWO_FACTOR_ACTION, USER_STATUS, VALIDATION_TYPE, accountDeletedMessage, arrayTransform, booleanTransform, changeEmailMessage, commitKafkaOffset, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, shouldShowField, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
package/dist/index.mjs
CHANGED
|
@@ -11616,6 +11616,12 @@ var BaseRepository = class {
|
|
|
11616
11616
|
async count(query) {
|
|
11617
11617
|
return await this.model.countDocuments(query).exec();
|
|
11618
11618
|
}
|
|
11619
|
+
// ================================================
|
|
11620
|
+
// AGGREGATE FUNCTION
|
|
11621
|
+
// ================================================
|
|
11622
|
+
async aggregate(pipeline) {
|
|
11623
|
+
return await this.model.aggregate(pipeline).exec();
|
|
11624
|
+
}
|
|
11619
11625
|
};
|
|
11620
11626
|
export {
|
|
11621
11627
|
AllExceptionsFilter,
|