connectfy-shared 0.0.112 → 0.0.114
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 +13 -0
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.mjs +12 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9463,6 +9463,7 @@ __export(index_exports, {
|
|
|
9463
9463
|
FieldValidator: () => FieldValidator,
|
|
9464
9464
|
FileOwnerModule: () => FileOwnerModule,
|
|
9465
9465
|
FileUploadTopic: () => FileUploadTopic,
|
|
9466
|
+
FriendshipRequestType: () => FriendshipRequestType,
|
|
9466
9467
|
FriendshipStatus: () => FriendshipStatus,
|
|
9467
9468
|
GENDER: () => GENDER,
|
|
9468
9469
|
GOOGLE_AUTH_LOGIN_TYPE: () => GOOGLE_AUTH_LOGIN_TYPE,
|
|
@@ -9942,6 +9943,11 @@ var AvatarFormats = /* @__PURE__ */ ((AvatarFormats2) => {
|
|
|
9942
9943
|
AvatarFormats2["Micah"] = "micah";
|
|
9943
9944
|
return AvatarFormats2;
|
|
9944
9945
|
})(AvatarFormats || {});
|
|
9946
|
+
var FriendshipRequestType = /* @__PURE__ */ ((FriendshipRequestType2) => {
|
|
9947
|
+
FriendshipRequestType2["Received"] = "Received";
|
|
9948
|
+
FriendshipRequestType2["Sent"] = "Sent";
|
|
9949
|
+
return FriendshipRequestType2;
|
|
9950
|
+
})(FriendshipRequestType || {});
|
|
9945
9951
|
|
|
9946
9952
|
// src/constants/server/constants.ts
|
|
9947
9953
|
var MICROSERVICE_NAMES = {
|
|
@@ -11587,6 +11593,12 @@ var BaseRepository = class {
|
|
|
11587
11593
|
}
|
|
11588
11594
|
return await this.model.deleteMany({ _id: { $in: data._ids } }).exec();
|
|
11589
11595
|
}
|
|
11596
|
+
async removeManyByQuery(query, opts) {
|
|
11597
|
+
if (opts?.lean) {
|
|
11598
|
+
return await this.model.deleteMany(query).lean().exec();
|
|
11599
|
+
}
|
|
11600
|
+
return await this.model.deleteMany(query).exec();
|
|
11601
|
+
}
|
|
11590
11602
|
// ================================================
|
|
11591
11603
|
// FINE ONE AND FIND MANY FUNCTIONS
|
|
11592
11604
|
// ================================================
|
|
@@ -11686,6 +11698,7 @@ var BaseRepository = class {
|
|
|
11686
11698
|
FieldValidator,
|
|
11687
11699
|
FileOwnerModule,
|
|
11688
11700
|
FileUploadTopic,
|
|
11701
|
+
FriendshipRequestType,
|
|
11689
11702
|
FriendshipStatus,
|
|
11690
11703
|
GENDER,
|
|
11691
11704
|
GOOGLE_AUTH_LOGIN_TYPE,
|
package/dist/index.d.cts
CHANGED
|
@@ -380,6 +380,10 @@ declare enum AvatarFormats {
|
|
|
380
380
|
ToonHead = "toon-head",
|
|
381
381
|
Micah = "micah"
|
|
382
382
|
}
|
|
383
|
+
declare enum FriendshipRequestType {
|
|
384
|
+
Received = "Received",
|
|
385
|
+
Sent = "Sent"
|
|
386
|
+
}
|
|
383
387
|
|
|
384
388
|
interface ICountry {
|
|
385
389
|
key: string;
|
|
@@ -802,6 +806,7 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
802
806
|
remove(data: BaseRemoveDto, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface>;
|
|
803
807
|
removeOne(query: Record<string, any>, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface>;
|
|
804
808
|
removeMany(data: BaseRemoveAllDto, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface[]>;
|
|
809
|
+
removeManyByQuery(query: Record<string, any>, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface[]>;
|
|
805
810
|
findOne(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
806
811
|
findOneById(_id: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
807
812
|
findOneByUserId(userId: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
@@ -811,4 +816,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
811
816
|
count(query: Record<string, any>): Promise<number>;
|
|
812
817
|
}
|
|
813
818
|
|
|
814
|
-
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, 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 };
|
|
819
|
+
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
|
@@ -380,6 +380,10 @@ declare enum AvatarFormats {
|
|
|
380
380
|
ToonHead = "toon-head",
|
|
381
381
|
Micah = "micah"
|
|
382
382
|
}
|
|
383
|
+
declare enum FriendshipRequestType {
|
|
384
|
+
Received = "Received",
|
|
385
|
+
Sent = "Sent"
|
|
386
|
+
}
|
|
383
387
|
|
|
384
388
|
interface ICountry {
|
|
385
389
|
key: string;
|
|
@@ -802,6 +806,7 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
802
806
|
remove(data: BaseRemoveDto, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface>;
|
|
803
807
|
removeOne(query: Record<string, any>, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface>;
|
|
804
808
|
removeMany(data: BaseRemoveAllDto, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface[]>;
|
|
809
|
+
removeManyByQuery(query: Record<string, any>, opts?: IBaseRepositoryRemoveOptions): Promise<TInterface[]>;
|
|
805
810
|
findOne(params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
806
811
|
findOneById(_id: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
807
812
|
findOneByUserId(userId: string, params?: BaseFindDto, opts?: IBaseRepositoryOptions): Promise<TInterface | TDocument | null>;
|
|
@@ -811,4 +816,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
811
816
|
count(query: Record<string, any>): Promise<number>;
|
|
812
817
|
}
|
|
813
818
|
|
|
814
|
-
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, 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 };
|
|
819
|
+
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
|
@@ -9848,6 +9848,11 @@ var AvatarFormats = /* @__PURE__ */ ((AvatarFormats2) => {
|
|
|
9848
9848
|
AvatarFormats2["Micah"] = "micah";
|
|
9849
9849
|
return AvatarFormats2;
|
|
9850
9850
|
})(AvatarFormats || {});
|
|
9851
|
+
var FriendshipRequestType = /* @__PURE__ */ ((FriendshipRequestType2) => {
|
|
9852
|
+
FriendshipRequestType2["Received"] = "Received";
|
|
9853
|
+
FriendshipRequestType2["Sent"] = "Sent";
|
|
9854
|
+
return FriendshipRequestType2;
|
|
9855
|
+
})(FriendshipRequestType || {});
|
|
9851
9856
|
|
|
9852
9857
|
// src/constants/server/constants.ts
|
|
9853
9858
|
var MICROSERVICE_NAMES = {
|
|
@@ -11535,6 +11540,12 @@ var BaseRepository = class {
|
|
|
11535
11540
|
}
|
|
11536
11541
|
return await this.model.deleteMany({ _id: { $in: data._ids } }).exec();
|
|
11537
11542
|
}
|
|
11543
|
+
async removeManyByQuery(query, opts) {
|
|
11544
|
+
if (opts?.lean) {
|
|
11545
|
+
return await this.model.deleteMany(query).lean().exec();
|
|
11546
|
+
}
|
|
11547
|
+
return await this.model.deleteMany(query).exec();
|
|
11548
|
+
}
|
|
11538
11549
|
// ================================================
|
|
11539
11550
|
// FINE ONE AND FIND MANY FUNCTIONS
|
|
11540
11551
|
// ================================================
|
|
@@ -11633,6 +11644,7 @@ export {
|
|
|
11633
11644
|
FieldValidator,
|
|
11634
11645
|
FileOwnerModule,
|
|
11635
11646
|
FileUploadTopic,
|
|
11647
|
+
FriendshipRequestType,
|
|
11636
11648
|
FriendshipStatus,
|
|
11637
11649
|
GENDER,
|
|
11638
11650
|
GOOGLE_AUTH_LOGIN_TYPE,
|