connectfy-shared 0.0.125 → 0.0.126

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 CHANGED
@@ -9450,7 +9450,6 @@ __export(index_exports, {
9450
9450
  CLS_KEYS: () => CLS_KEYS,
9451
9451
  COLLECTIONS: () => COLLECTIONS,
9452
9452
  COUNTRIES: () => COUNTRIES,
9453
- ChatMessageType: () => ChatMessageType,
9454
9453
  ChatParticiantRole: () => ChatParticiantRole,
9455
9454
  ChatType: () => ChatType,
9456
9455
  DATE_FORMAT: () => DATE_FORMAT,
@@ -9476,6 +9475,7 @@ __export(index_exports, {
9476
9475
  LOCAL_STORAGE_KEYS: () => LOCAL_STORAGE_KEYS,
9477
9476
  MICROSERVICE_NAMES: () => MICROSERVICE_NAMES,
9478
9477
  MODULE_TO_TOPIC_MAP: () => MODULE_TO_TOPIC_MAP,
9478
+ MessageType: () => MessageType,
9479
9479
  NOTIFICATION_CONTENT_MODE: () => NOTIFICATION_CONTENT_MODE,
9480
9480
  NOTIFICATION_SOUND_MODE: () => NOTIFICATION_SOUND_MODE,
9481
9481
  NotificationChannel: () => NotificationChannel,
@@ -10007,16 +10007,16 @@ var ChatParticiantRole = /* @__PURE__ */ ((ChatParticiantRole2) => {
10007
10007
  ChatParticiantRole2["Member"] = "member";
10008
10008
  return ChatParticiantRole2;
10009
10009
  })(ChatParticiantRole || {});
10010
- var ChatMessageType = /* @__PURE__ */ ((ChatMessageType2) => {
10011
- ChatMessageType2["Text"] = "text";
10012
- ChatMessageType2["Image"] = "image";
10013
- ChatMessageType2["Audio"] = "audio";
10014
- ChatMessageType2["Video"] = "video";
10015
- ChatMessageType2["File"] = "file";
10016
- ChatMessageType2["Call"] = "call";
10017
- ChatMessageType2["System"] = "system";
10018
- return ChatMessageType2;
10019
- })(ChatMessageType || {});
10010
+ var MessageType = /* @__PURE__ */ ((MessageType2) => {
10011
+ MessageType2["Text"] = "text";
10012
+ MessageType2["Image"] = "image";
10013
+ MessageType2["Audio"] = "audio";
10014
+ MessageType2["Video"] = "video";
10015
+ MessageType2["File"] = "file";
10016
+ MessageType2["Call"] = "call";
10017
+ MessageType2["System"] = "system";
10018
+ return MessageType2;
10019
+ })(MessageType || {});
10020
10020
 
10021
10021
  // src/constants/server/constants.ts
10022
10022
  var MICROSERVICE_NAMES = {
@@ -10058,6 +10058,16 @@ var COLLECTIONS = {
10058
10058
  NOTIFICATION: {
10059
10059
  NOTIFICATIONS: "notifications",
10060
10060
  DEVICE_TOKENS: "device_tokens"
10061
+ },
10062
+ MESSENGER: {
10063
+ CHAT: {
10064
+ CHATS: "chats",
10065
+ CHAT_PARTICIPANTS: "chat_participants"
10066
+ },
10067
+ MESSAGE: {
10068
+ MESSAGES: "messages",
10069
+ MESSAGE_REACTIONS: "message_reactions"
10070
+ }
10061
10071
  }
10062
10072
  };
10063
10073
  var EXPIRE_DATES = {
@@ -11777,7 +11787,6 @@ var BaseRepository = class {
11777
11787
  CLS_KEYS,
11778
11788
  COLLECTIONS,
11779
11789
  COUNTRIES,
11780
- ChatMessageType,
11781
11790
  ChatParticiantRole,
11782
11791
  ChatType,
11783
11792
  DATE_FORMAT,
@@ -11803,6 +11812,7 @@ var BaseRepository = class {
11803
11812
  LOCAL_STORAGE_KEYS,
11804
11813
  MICROSERVICE_NAMES,
11805
11814
  MODULE_TO_TOPIC_MAP,
11815
+ MessageType,
11806
11816
  NOTIFICATION_CONTENT_MODE,
11807
11817
  NOTIFICATION_SOUND_MODE,
11808
11818
  NotificationChannel,
package/dist/index.d.cts CHANGED
@@ -427,7 +427,7 @@ declare enum ChatParticiantRole {
427
427
  Owner = "owner",
428
428
  Member = "member"
429
429
  }
430
- declare enum ChatMessageType {
430
+ declare enum MessageType {
431
431
  Text = "text",
432
432
  Image = "image",
433
433
  Audio = "audio",
@@ -514,6 +514,16 @@ declare const COLLECTIONS: {
514
514
  NOTIFICATIONS: string;
515
515
  DEVICE_TOKENS: string;
516
516
  };
517
+ MESSENGER: {
518
+ CHAT: {
519
+ CHATS: string;
520
+ CHAT_PARTICIPANTS: string;
521
+ };
522
+ MESSAGE: {
523
+ MESSAGES: string;
524
+ MESSAGE_REACTIONS: string;
525
+ };
526
+ };
517
527
  };
518
528
  declare const EXPIRE_DATES: {
519
529
  JWT: {
@@ -876,4 +886,4 @@ declare abstract class BaseRepository<TDocument extends Document<any, any, any>,
876
886
  aggregate<R = any>(pipeline: PipelineStage[]): Promise<R[]>;
877
887
  }
878
888
 
879
- export { AllExceptionsFilter, AvatarFormats, BROWSER_TYPE, BaseException, BaseFindDto, BaseRemoveAllDto, BaseRemoveDto, BaseRepository, CACHE_KEYS, CHECK_UNIQUE_FIELD, CLS_KEYS, COLLECTIONS, COUNTRIES, ChatMessageType, ChatParticiantRole, ChatType, 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 IEmitTcpWithContextClientParams, 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, NotificationChannel, NotificationResource, NotificationStatus, NotificationType, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, ProfilePhotoUpdateAction, Push_DELIVERY_STATUS, 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, emitWithContextTcp, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, shouldShowField, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
889
+ export { AllExceptionsFilter, AvatarFormats, BROWSER_TYPE, BaseException, BaseFindDto, BaseRemoveAllDto, BaseRemoveDto, BaseRepository, CACHE_KEYS, CHECK_UNIQUE_FIELD, CLS_KEYS, COLLECTIONS, COUNTRIES, ChatParticiantRole, ChatType, 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 IEmitTcpWithContextClientParams, 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, MessageType, NOTIFICATION_CONTENT_MODE, NOTIFICATION_SOUND_MODE, NotificationChannel, NotificationResource, NotificationStatus, NotificationType, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, ProfilePhotoUpdateAction, Push_DELIVERY_STATUS, 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, emitWithContextTcp, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, shouldShowField, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
package/dist/index.d.ts CHANGED
@@ -427,7 +427,7 @@ declare enum ChatParticiantRole {
427
427
  Owner = "owner",
428
428
  Member = "member"
429
429
  }
430
- declare enum ChatMessageType {
430
+ declare enum MessageType {
431
431
  Text = "text",
432
432
  Image = "image",
433
433
  Audio = "audio",
@@ -514,6 +514,16 @@ declare const COLLECTIONS: {
514
514
  NOTIFICATIONS: string;
515
515
  DEVICE_TOKENS: string;
516
516
  };
517
+ MESSENGER: {
518
+ CHAT: {
519
+ CHATS: string;
520
+ CHAT_PARTICIPANTS: string;
521
+ };
522
+ MESSAGE: {
523
+ MESSAGES: string;
524
+ MESSAGE_REACTIONS: string;
525
+ };
526
+ };
517
527
  };
518
528
  declare const EXPIRE_DATES: {
519
529
  JWT: {
@@ -876,4 +886,4 @@ declare abstract class BaseRepository<TDocument extends Document<any, any, any>,
876
886
  aggregate<R = any>(pipeline: PipelineStage[]): Promise<R[]>;
877
887
  }
878
888
 
879
- export { AllExceptionsFilter, AvatarFormats, BROWSER_TYPE, BaseException, BaseFindDto, BaseRemoveAllDto, BaseRemoveDto, BaseRepository, CACHE_KEYS, CHECK_UNIQUE_FIELD, CLS_KEYS, COLLECTIONS, COUNTRIES, ChatMessageType, ChatParticiantRole, ChatType, 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 IEmitTcpWithContextClientParams, 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, NotificationChannel, NotificationResource, NotificationStatus, NotificationType, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, ProfilePhotoUpdateAction, Push_DELIVERY_STATUS, 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, emitWithContextTcp, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, shouldShowField, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
889
+ export { AllExceptionsFilter, AvatarFormats, BROWSER_TYPE, BaseException, BaseFindDto, BaseRemoveAllDto, BaseRemoveDto, BaseRepository, CACHE_KEYS, CHECK_UNIQUE_FIELD, CLS_KEYS, COLLECTIONS, COUNTRIES, ChatParticiantRole, ChatType, 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 IEmitTcpWithContextClientParams, 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, MessageType, NOTIFICATION_CONTENT_MODE, NOTIFICATION_SOUND_MODE, NotificationChannel, NotificationResource, NotificationStatus, NotificationType, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, ProfilePhotoUpdateAction, Push_DELIVERY_STATUS, 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, emitWithContextTcp, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, shouldShowField, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
package/dist/index.mjs CHANGED
@@ -9903,16 +9903,16 @@ var ChatParticiantRole = /* @__PURE__ */ ((ChatParticiantRole2) => {
9903
9903
  ChatParticiantRole2["Member"] = "member";
9904
9904
  return ChatParticiantRole2;
9905
9905
  })(ChatParticiantRole || {});
9906
- var ChatMessageType = /* @__PURE__ */ ((ChatMessageType2) => {
9907
- ChatMessageType2["Text"] = "text";
9908
- ChatMessageType2["Image"] = "image";
9909
- ChatMessageType2["Audio"] = "audio";
9910
- ChatMessageType2["Video"] = "video";
9911
- ChatMessageType2["File"] = "file";
9912
- ChatMessageType2["Call"] = "call";
9913
- ChatMessageType2["System"] = "system";
9914
- return ChatMessageType2;
9915
- })(ChatMessageType || {});
9906
+ var MessageType = /* @__PURE__ */ ((MessageType2) => {
9907
+ MessageType2["Text"] = "text";
9908
+ MessageType2["Image"] = "image";
9909
+ MessageType2["Audio"] = "audio";
9910
+ MessageType2["Video"] = "video";
9911
+ MessageType2["File"] = "file";
9912
+ MessageType2["Call"] = "call";
9913
+ MessageType2["System"] = "system";
9914
+ return MessageType2;
9915
+ })(MessageType || {});
9916
9916
 
9917
9917
  // src/constants/server/constants.ts
9918
9918
  var MICROSERVICE_NAMES = {
@@ -9954,6 +9954,16 @@ var COLLECTIONS = {
9954
9954
  NOTIFICATION: {
9955
9955
  NOTIFICATIONS: "notifications",
9956
9956
  DEVICE_TOKENS: "device_tokens"
9957
+ },
9958
+ MESSENGER: {
9959
+ CHAT: {
9960
+ CHATS: "chats",
9961
+ CHAT_PARTICIPANTS: "chat_participants"
9962
+ },
9963
+ MESSAGE: {
9964
+ MESSAGES: "messages",
9965
+ MESSAGE_REACTIONS: "message_reactions"
9966
+ }
9957
9967
  }
9958
9968
  };
9959
9969
  var EXPIRE_DATES = {
@@ -11714,7 +11724,6 @@ export {
11714
11724
  CLS_KEYS,
11715
11725
  COLLECTIONS,
11716
11726
  COUNTRIES,
11717
- ChatMessageType,
11718
11727
  ChatParticiantRole,
11719
11728
  ChatType,
11720
11729
  DATE_FORMAT,
@@ -11740,6 +11749,7 @@ export {
11740
11749
  LOCAL_STORAGE_KEYS,
11741
11750
  MICROSERVICE_NAMES,
11742
11751
  MODULE_TO_TOPIC_MAP,
11752
+ MessageType,
11743
11753
  NOTIFICATION_CONTENT_MODE,
11744
11754
  NOTIFICATION_SOUND_MODE,
11745
11755
  NotificationChannel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connectfy-shared",
3
- "version": "0.0.125",
3
+ "version": "0.0.126",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {