connectfy-shared 0.0.116 → 0.0.118
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 +45 -36
- package/dist/index.d.cts +17 -11
- package/dist/index.d.ts +17 -11
- package/dist/index.mjs +40 -32
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -9473,18 +9473,19 @@ __export(index_exports, {
|
|
|
9473
9473
|
LOCAL_STORAGE_KEYS: () => LOCAL_STORAGE_KEYS,
|
|
9474
9474
|
MICROSERVICE_NAMES: () => MICROSERVICE_NAMES,
|
|
9475
9475
|
MODULE_TO_TOPIC_MAP: () => MODULE_TO_TOPIC_MAP,
|
|
9476
|
-
NOTIFICATION_CHANNEL: () => NOTIFICATION_CHANNEL,
|
|
9477
9476
|
NOTIFICATION_CONTENT_MODE: () => NOTIFICATION_CONTENT_MODE,
|
|
9478
9477
|
NOTIFICATION_SOUND_MODE: () => NOTIFICATION_SOUND_MODE,
|
|
9479
|
-
|
|
9480
|
-
|
|
9478
|
+
NotificationChannel: () => NotificationChannel,
|
|
9479
|
+
NotificationResource: () => NotificationResource,
|
|
9480
|
+
NotificationStatus: () => NotificationStatus,
|
|
9481
|
+
NotificationType: () => NotificationType,
|
|
9481
9482
|
OS_TYPE: () => OS_TYPE,
|
|
9482
9483
|
PHONE_NUMBER_ACTION: () => PHONE_NUMBER_ACTION,
|
|
9483
9484
|
PRIVACY_SETTINGS_CHOICE: () => PRIVACY_SETTINGS_CHOICE,
|
|
9484
9485
|
PROVIDER: () => PROVIDER,
|
|
9485
|
-
PUSH_DELIVERY_STATUS: () => PUSH_DELIVERY_STATUS,
|
|
9486
9486
|
PopulateOption: () => PopulateOption,
|
|
9487
9487
|
ProfilePhotoUpdateAction: () => ProfilePhotoUpdateAction,
|
|
9488
|
+
Push_DELIVERY_STATUS: () => Push_DELIVERY_STATUS,
|
|
9488
9489
|
REDIS_KEYS: () => REDIS_KEYS,
|
|
9489
9490
|
REDUCER_PATH: () => REDUCER_PATH,
|
|
9490
9491
|
RESOURCE: () => RESOURCE,
|
|
@@ -9952,34 +9953,41 @@ var FriendshipRequestType = /* @__PURE__ */ ((FriendshipRequestType2) => {
|
|
|
9952
9953
|
FriendshipRequestType2["Sent"] = "Sent";
|
|
9953
9954
|
return FriendshipRequestType2;
|
|
9954
9955
|
})(FriendshipRequestType || {});
|
|
9955
|
-
var
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
return
|
|
9963
|
-
})(
|
|
9964
|
-
var
|
|
9965
|
-
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
return
|
|
9969
|
-
})(
|
|
9970
|
-
var
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
return
|
|
9975
|
-
})(
|
|
9976
|
-
var
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
return
|
|
9982
|
-
})(
|
|
9956
|
+
var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
9957
|
+
NotificationType2["FRIENDSHIP_REQUEST_SENT"] = "friendship.request.sent";
|
|
9958
|
+
NotificationType2["FRIENDSHIP_REQUEST_ACCEPTED"] = "friendship.request.accepted";
|
|
9959
|
+
NotificationType2["FRIENDSHIP_REQUEST_DECLINED"] = "friendship.request.declined";
|
|
9960
|
+
NotificationType2["NEW_MESSAGE"] = "message.new";
|
|
9961
|
+
NotificationType2["SYSTEM_ALERT"] = "system.alert";
|
|
9962
|
+
NotificationType2["ACCOUNT_WARNING"] = "account.warning";
|
|
9963
|
+
return NotificationType2;
|
|
9964
|
+
})(NotificationType || {});
|
|
9965
|
+
var NotificationStatus = /* @__PURE__ */ ((NotificationStatus2) => {
|
|
9966
|
+
NotificationStatus2["Unread"] = "unread";
|
|
9967
|
+
NotificationStatus2["Read"] = "read";
|
|
9968
|
+
NotificationStatus2["Archived"] = "archived";
|
|
9969
|
+
return NotificationStatus2;
|
|
9970
|
+
})(NotificationStatus || {});
|
|
9971
|
+
var NotificationChannel = /* @__PURE__ */ ((NotificationChannel2) => {
|
|
9972
|
+
NotificationChannel2["InApp"] = "in_app";
|
|
9973
|
+
NotificationChannel2["Push"] = "push";
|
|
9974
|
+
NotificationChannel2["Both"] = "both";
|
|
9975
|
+
return NotificationChannel2;
|
|
9976
|
+
})(NotificationChannel || {});
|
|
9977
|
+
var Push_DELIVERY_STATUS = /* @__PURE__ */ ((Push_DELIVERY_STATUS2) => {
|
|
9978
|
+
Push_DELIVERY_STATUS2["PENDING"] = "pending";
|
|
9979
|
+
Push_DELIVERY_STATUS2["DELIVERED"] = "delivered";
|
|
9980
|
+
Push_DELIVERY_STATUS2["FAILED"] = "failed";
|
|
9981
|
+
Push_DELIVERY_STATUS2["SKIPPED"] = "skipped";
|
|
9982
|
+
return Push_DELIVERY_STATUS2;
|
|
9983
|
+
})(Push_DELIVERY_STATUS || {});
|
|
9984
|
+
var NotificationResource = /* @__PURE__ */ ((NotificationResource2) => {
|
|
9985
|
+
NotificationResource2["Friendship"] = "friendship";
|
|
9986
|
+
NotificationResource2["Message"] = "message";
|
|
9987
|
+
NotificationResource2["System"] = "system";
|
|
9988
|
+
NotificationResource2["Account"] = "account";
|
|
9989
|
+
return NotificationResource2;
|
|
9990
|
+
})(NotificationResource || {});
|
|
9983
9991
|
|
|
9984
9992
|
// src/constants/server/constants.ts
|
|
9985
9993
|
var MICROSERVICE_NAMES = {
|
|
@@ -11750,18 +11758,19 @@ var BaseRepository = class {
|
|
|
11750
11758
|
LOCAL_STORAGE_KEYS,
|
|
11751
11759
|
MICROSERVICE_NAMES,
|
|
11752
11760
|
MODULE_TO_TOPIC_MAP,
|
|
11753
|
-
NOTIFICATION_CHANNEL,
|
|
11754
11761
|
NOTIFICATION_CONTENT_MODE,
|
|
11755
11762
|
NOTIFICATION_SOUND_MODE,
|
|
11756
|
-
|
|
11757
|
-
|
|
11763
|
+
NotificationChannel,
|
|
11764
|
+
NotificationResource,
|
|
11765
|
+
NotificationStatus,
|
|
11766
|
+
NotificationType,
|
|
11758
11767
|
OS_TYPE,
|
|
11759
11768
|
PHONE_NUMBER_ACTION,
|
|
11760
11769
|
PRIVACY_SETTINGS_CHOICE,
|
|
11761
11770
|
PROVIDER,
|
|
11762
|
-
PUSH_DELIVERY_STATUS,
|
|
11763
11771
|
PopulateOption,
|
|
11764
11772
|
ProfilePhotoUpdateAction,
|
|
11773
|
+
Push_DELIVERY_STATUS,
|
|
11765
11774
|
REDIS_KEYS,
|
|
11766
11775
|
REDUCER_PATH,
|
|
11767
11776
|
RESOURCE,
|
package/dist/index.d.cts
CHANGED
|
@@ -384,7 +384,7 @@ declare enum FriendshipRequestType {
|
|
|
384
384
|
Received = "Received",
|
|
385
385
|
Sent = "Sent"
|
|
386
386
|
}
|
|
387
|
-
declare enum
|
|
387
|
+
declare enum NotificationType {
|
|
388
388
|
FRIENDSHIP_REQUEST_SENT = "friendship.request.sent",
|
|
389
389
|
FRIENDSHIP_REQUEST_ACCEPTED = "friendship.request.accepted",
|
|
390
390
|
FRIENDSHIP_REQUEST_DECLINED = "friendship.request.declined",
|
|
@@ -392,22 +392,28 @@ declare enum NOTIFICATION_TYPE {
|
|
|
392
392
|
SYSTEM_ALERT = "system.alert",
|
|
393
393
|
ACCOUNT_WARNING = "account.warning"
|
|
394
394
|
}
|
|
395
|
-
declare enum
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
395
|
+
declare enum NotificationStatus {
|
|
396
|
+
Unread = "unread",
|
|
397
|
+
Read = "read",
|
|
398
|
+
Archived = "archived"
|
|
399
399
|
}
|
|
400
|
-
declare enum
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
400
|
+
declare enum NotificationChannel {
|
|
401
|
+
InApp = "in_app",
|
|
402
|
+
Push = "push",
|
|
403
|
+
Both = "both"
|
|
404
404
|
}
|
|
405
|
-
declare enum
|
|
405
|
+
declare enum Push_DELIVERY_STATUS {
|
|
406
406
|
PENDING = "pending",
|
|
407
407
|
DELIVERED = "delivered",
|
|
408
408
|
FAILED = "failed",
|
|
409
409
|
SKIPPED = "skipped"
|
|
410
410
|
}
|
|
411
|
+
declare enum NotificationResource {
|
|
412
|
+
Friendship = "friendship",
|
|
413
|
+
Message = "message",
|
|
414
|
+
System = "system",
|
|
415
|
+
Account = "account"
|
|
416
|
+
}
|
|
411
417
|
|
|
412
418
|
interface ICountry {
|
|
413
419
|
key: string;
|
|
@@ -845,4 +851,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
845
851
|
aggregate<R = any>(pipeline: PipelineStage[]): Promise<R[]>;
|
|
846
852
|
}
|
|
847
853
|
|
|
848
|
-
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,
|
|
854
|
+
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, 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, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, shouldShowField, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
package/dist/index.d.ts
CHANGED
|
@@ -384,7 +384,7 @@ declare enum FriendshipRequestType {
|
|
|
384
384
|
Received = "Received",
|
|
385
385
|
Sent = "Sent"
|
|
386
386
|
}
|
|
387
|
-
declare enum
|
|
387
|
+
declare enum NotificationType {
|
|
388
388
|
FRIENDSHIP_REQUEST_SENT = "friendship.request.sent",
|
|
389
389
|
FRIENDSHIP_REQUEST_ACCEPTED = "friendship.request.accepted",
|
|
390
390
|
FRIENDSHIP_REQUEST_DECLINED = "friendship.request.declined",
|
|
@@ -392,22 +392,28 @@ declare enum NOTIFICATION_TYPE {
|
|
|
392
392
|
SYSTEM_ALERT = "system.alert",
|
|
393
393
|
ACCOUNT_WARNING = "account.warning"
|
|
394
394
|
}
|
|
395
|
-
declare enum
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
395
|
+
declare enum NotificationStatus {
|
|
396
|
+
Unread = "unread",
|
|
397
|
+
Read = "read",
|
|
398
|
+
Archived = "archived"
|
|
399
399
|
}
|
|
400
|
-
declare enum
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
400
|
+
declare enum NotificationChannel {
|
|
401
|
+
InApp = "in_app",
|
|
402
|
+
Push = "push",
|
|
403
|
+
Both = "both"
|
|
404
404
|
}
|
|
405
|
-
declare enum
|
|
405
|
+
declare enum Push_DELIVERY_STATUS {
|
|
406
406
|
PENDING = "pending",
|
|
407
407
|
DELIVERED = "delivered",
|
|
408
408
|
FAILED = "failed",
|
|
409
409
|
SKIPPED = "skipped"
|
|
410
410
|
}
|
|
411
|
+
declare enum NotificationResource {
|
|
412
|
+
Friendship = "friendship",
|
|
413
|
+
Message = "message",
|
|
414
|
+
System = "system",
|
|
415
|
+
Account = "account"
|
|
416
|
+
}
|
|
411
417
|
|
|
412
418
|
interface ICountry {
|
|
413
419
|
key: string;
|
|
@@ -845,4 +851,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
845
851
|
aggregate<R = any>(pipeline: PipelineStage[]): Promise<R[]>;
|
|
846
852
|
}
|
|
847
853
|
|
|
848
|
-
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,
|
|
854
|
+
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, 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, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, shouldShowField, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
package/dist/index.mjs
CHANGED
|
@@ -9853,34 +9853,41 @@ var FriendshipRequestType = /* @__PURE__ */ ((FriendshipRequestType2) => {
|
|
|
9853
9853
|
FriendshipRequestType2["Sent"] = "Sent";
|
|
9854
9854
|
return FriendshipRequestType2;
|
|
9855
9855
|
})(FriendshipRequestType || {});
|
|
9856
|
-
var
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
return
|
|
9864
|
-
})(
|
|
9865
|
-
var
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
return
|
|
9870
|
-
})(
|
|
9871
|
-
var
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
return
|
|
9876
|
-
})(
|
|
9877
|
-
var
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
return
|
|
9883
|
-
})(
|
|
9856
|
+
var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
9857
|
+
NotificationType2["FRIENDSHIP_REQUEST_SENT"] = "friendship.request.sent";
|
|
9858
|
+
NotificationType2["FRIENDSHIP_REQUEST_ACCEPTED"] = "friendship.request.accepted";
|
|
9859
|
+
NotificationType2["FRIENDSHIP_REQUEST_DECLINED"] = "friendship.request.declined";
|
|
9860
|
+
NotificationType2["NEW_MESSAGE"] = "message.new";
|
|
9861
|
+
NotificationType2["SYSTEM_ALERT"] = "system.alert";
|
|
9862
|
+
NotificationType2["ACCOUNT_WARNING"] = "account.warning";
|
|
9863
|
+
return NotificationType2;
|
|
9864
|
+
})(NotificationType || {});
|
|
9865
|
+
var NotificationStatus = /* @__PURE__ */ ((NotificationStatus2) => {
|
|
9866
|
+
NotificationStatus2["Unread"] = "unread";
|
|
9867
|
+
NotificationStatus2["Read"] = "read";
|
|
9868
|
+
NotificationStatus2["Archived"] = "archived";
|
|
9869
|
+
return NotificationStatus2;
|
|
9870
|
+
})(NotificationStatus || {});
|
|
9871
|
+
var NotificationChannel = /* @__PURE__ */ ((NotificationChannel2) => {
|
|
9872
|
+
NotificationChannel2["InApp"] = "in_app";
|
|
9873
|
+
NotificationChannel2["Push"] = "push";
|
|
9874
|
+
NotificationChannel2["Both"] = "both";
|
|
9875
|
+
return NotificationChannel2;
|
|
9876
|
+
})(NotificationChannel || {});
|
|
9877
|
+
var Push_DELIVERY_STATUS = /* @__PURE__ */ ((Push_DELIVERY_STATUS2) => {
|
|
9878
|
+
Push_DELIVERY_STATUS2["PENDING"] = "pending";
|
|
9879
|
+
Push_DELIVERY_STATUS2["DELIVERED"] = "delivered";
|
|
9880
|
+
Push_DELIVERY_STATUS2["FAILED"] = "failed";
|
|
9881
|
+
Push_DELIVERY_STATUS2["SKIPPED"] = "skipped";
|
|
9882
|
+
return Push_DELIVERY_STATUS2;
|
|
9883
|
+
})(Push_DELIVERY_STATUS || {});
|
|
9884
|
+
var NotificationResource = /* @__PURE__ */ ((NotificationResource2) => {
|
|
9885
|
+
NotificationResource2["Friendship"] = "friendship";
|
|
9886
|
+
NotificationResource2["Message"] = "message";
|
|
9887
|
+
NotificationResource2["System"] = "system";
|
|
9888
|
+
NotificationResource2["Account"] = "account";
|
|
9889
|
+
return NotificationResource2;
|
|
9890
|
+
})(NotificationResource || {});
|
|
9884
9891
|
|
|
9885
9892
|
// src/constants/server/constants.ts
|
|
9886
9893
|
var MICROSERVICE_NAMES = {
|
|
@@ -11692,18 +11699,19 @@ export {
|
|
|
11692
11699
|
LOCAL_STORAGE_KEYS,
|
|
11693
11700
|
MICROSERVICE_NAMES,
|
|
11694
11701
|
MODULE_TO_TOPIC_MAP,
|
|
11695
|
-
NOTIFICATION_CHANNEL,
|
|
11696
11702
|
NOTIFICATION_CONTENT_MODE,
|
|
11697
11703
|
NOTIFICATION_SOUND_MODE,
|
|
11698
|
-
|
|
11699
|
-
|
|
11704
|
+
NotificationChannel,
|
|
11705
|
+
NotificationResource,
|
|
11706
|
+
NotificationStatus,
|
|
11707
|
+
NotificationType,
|
|
11700
11708
|
OS_TYPE,
|
|
11701
11709
|
PHONE_NUMBER_ACTION,
|
|
11702
11710
|
PRIVACY_SETTINGS_CHOICE,
|
|
11703
11711
|
PROVIDER,
|
|
11704
|
-
PUSH_DELIVERY_STATUS,
|
|
11705
11712
|
PopulateOption,
|
|
11706
11713
|
ProfilePhotoUpdateAction,
|
|
11714
|
+
Push_DELIVERY_STATUS,
|
|
11707
11715
|
REDIS_KEYS,
|
|
11708
11716
|
REDUCER_PATH,
|
|
11709
11717
|
RESOURCE,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connectfy-shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.118",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"class-transformer": "^0.5.1",
|
|
36
36
|
"class-validator": "^0.14.3",
|
|
37
37
|
"connectfy-i18n": "^0.0.45",
|
|
38
|
-
"mongoose": "^
|
|
38
|
+
"mongoose": "^8.18.1",
|
|
39
39
|
"nestjs-cls": "^6.2.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|