connectfy-shared 0.0.102 → 0.0.103
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 +8 -0
- package/dist/index.d.cts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.mjs +7 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9478,6 +9478,7 @@ __export(index_exports, {
|
|
|
9478
9478
|
PRIVACY_SETTINGS_CHOICE: () => PRIVACY_SETTINGS_CHOICE,
|
|
9479
9479
|
PROVIDER: () => PROVIDER,
|
|
9480
9480
|
PopulateOption: () => PopulateOption,
|
|
9481
|
+
ProfilePhotoUpdateAction: () => ProfilePhotoUpdateAction,
|
|
9481
9482
|
REDIS_KEYS: () => REDIS_KEYS,
|
|
9482
9483
|
REDUCER_PATH: () => REDUCER_PATH,
|
|
9483
9484
|
RESOURCE: () => RESOURCE,
|
|
@@ -9927,6 +9928,12 @@ var FileUploadTopic = /* @__PURE__ */ ((FileUploadTopic2) => {
|
|
|
9927
9928
|
FileUploadTopic2["PROFILE_PHOTO_UPLOADED"] = "profile.photo.uploaded";
|
|
9928
9929
|
return FileUploadTopic2;
|
|
9929
9930
|
})(FileUploadTopic || {});
|
|
9931
|
+
var ProfilePhotoUpdateAction = /* @__PURE__ */ ((ProfilePhotoUpdateAction2) => {
|
|
9932
|
+
ProfilePhotoUpdateAction2["Remove"] = "Remove";
|
|
9933
|
+
ProfilePhotoUpdateAction2["Update"] = "Update";
|
|
9934
|
+
ProfilePhotoUpdateAction2["SetDefault"] = "SetDefault";
|
|
9935
|
+
return ProfilePhotoUpdateAction2;
|
|
9936
|
+
})(ProfilePhotoUpdateAction || {});
|
|
9930
9937
|
|
|
9931
9938
|
// src/constants/server/constants.ts
|
|
9932
9939
|
var MICROSERVICE_NAMES = {
|
|
@@ -11644,6 +11651,7 @@ var BaseRepository = class {
|
|
|
11644
11651
|
PRIVACY_SETTINGS_CHOICE,
|
|
11645
11652
|
PROVIDER,
|
|
11646
11653
|
PopulateOption,
|
|
11654
|
+
ProfilePhotoUpdateAction,
|
|
11647
11655
|
REDIS_KEYS,
|
|
11648
11656
|
REDUCER_PATH,
|
|
11649
11657
|
RESOURCE,
|
package/dist/index.d.cts
CHANGED
|
@@ -371,6 +371,11 @@ declare enum FileOwnerModule {
|
|
|
371
371
|
declare enum FileUploadTopic {
|
|
372
372
|
PROFILE_PHOTO_UPLOADED = "profile.photo.uploaded"
|
|
373
373
|
}
|
|
374
|
+
declare enum ProfilePhotoUpdateAction {
|
|
375
|
+
Remove = "Remove",
|
|
376
|
+
Update = "Update",
|
|
377
|
+
SetDefault = "SetDefault"
|
|
378
|
+
}
|
|
374
379
|
|
|
375
380
|
interface ICountry {
|
|
376
381
|
key: string;
|
|
@@ -594,7 +599,7 @@ declare function emitWithContext({ client, topic, payload, }: IEmitWithContextCl
|
|
|
594
599
|
|
|
595
600
|
interface ILoggedUser extends IReturnedUser {
|
|
596
601
|
language: LANGUAGE;
|
|
597
|
-
avatar:
|
|
602
|
+
avatar: IAvatar | null;
|
|
598
603
|
}
|
|
599
604
|
interface IReturnedUser {
|
|
600
605
|
_id: string;
|
|
@@ -607,6 +612,11 @@ interface IReturnedUser {
|
|
|
607
612
|
createdAt: Date;
|
|
608
613
|
updatedAt: Date;
|
|
609
614
|
}
|
|
615
|
+
interface IAvatar {
|
|
616
|
+
key: string | null;
|
|
617
|
+
url: string;
|
|
618
|
+
isCustom: boolean;
|
|
619
|
+
}
|
|
610
620
|
interface IPhoneNumber {
|
|
611
621
|
countryCode: string | null;
|
|
612
622
|
number: string | null;
|
|
@@ -782,4 +792,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
782
792
|
count(query: Record<string, any>): Promise<number>;
|
|
783
793
|
}
|
|
784
794
|
|
|
785
|
-
export { AllExceptionsFilter, 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, FRIENDSHIP_STATUS, FieldValidator, type FieldValidatorOptions, FileOwnerModule, FileUploadTopic, GENDER, GOOGLE_AUTH_LOGIN_TYPE, HttpStatus, type IAccount, type IArrayFieldOptions, type IBaseFieldOptions, type IBaseRepositoryInterface, type IBaseRepositoryOptions, type IBaseRepositoryRemoveOptions, type IBaseRepositoryUpdateOptions, type IBooleanFieldOptions, type ICountry, IDENTIFIER_TYPE, type IDateFieldOptions, 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, 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, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
|
795
|
+
export { AllExceptionsFilter, 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, FRIENDSHIP_STATUS, FieldValidator, type FieldValidatorOptions, FileOwnerModule, FileUploadTopic, 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 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, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
package/dist/index.d.ts
CHANGED
|
@@ -371,6 +371,11 @@ declare enum FileOwnerModule {
|
|
|
371
371
|
declare enum FileUploadTopic {
|
|
372
372
|
PROFILE_PHOTO_UPLOADED = "profile.photo.uploaded"
|
|
373
373
|
}
|
|
374
|
+
declare enum ProfilePhotoUpdateAction {
|
|
375
|
+
Remove = "Remove",
|
|
376
|
+
Update = "Update",
|
|
377
|
+
SetDefault = "SetDefault"
|
|
378
|
+
}
|
|
374
379
|
|
|
375
380
|
interface ICountry {
|
|
376
381
|
key: string;
|
|
@@ -594,7 +599,7 @@ declare function emitWithContext({ client, topic, payload, }: IEmitWithContextCl
|
|
|
594
599
|
|
|
595
600
|
interface ILoggedUser extends IReturnedUser {
|
|
596
601
|
language: LANGUAGE;
|
|
597
|
-
avatar:
|
|
602
|
+
avatar: IAvatar | null;
|
|
598
603
|
}
|
|
599
604
|
interface IReturnedUser {
|
|
600
605
|
_id: string;
|
|
@@ -607,6 +612,11 @@ interface IReturnedUser {
|
|
|
607
612
|
createdAt: Date;
|
|
608
613
|
updatedAt: Date;
|
|
609
614
|
}
|
|
615
|
+
interface IAvatar {
|
|
616
|
+
key: string | null;
|
|
617
|
+
url: string;
|
|
618
|
+
isCustom: boolean;
|
|
619
|
+
}
|
|
610
620
|
interface IPhoneNumber {
|
|
611
621
|
countryCode: string | null;
|
|
612
622
|
number: string | null;
|
|
@@ -782,4 +792,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
782
792
|
count(query: Record<string, any>): Promise<number>;
|
|
783
793
|
}
|
|
784
794
|
|
|
785
|
-
export { AllExceptionsFilter, 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, FRIENDSHIP_STATUS, FieldValidator, type FieldValidatorOptions, FileOwnerModule, FileUploadTopic, GENDER, GOOGLE_AUTH_LOGIN_TYPE, HttpStatus, type IAccount, type IArrayFieldOptions, type IBaseFieldOptions, type IBaseRepositoryInterface, type IBaseRepositoryOptions, type IBaseRepositoryRemoveOptions, type IBaseRepositoryUpdateOptions, type IBooleanFieldOptions, type ICountry, IDENTIFIER_TYPE, type IDateFieldOptions, 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, 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, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
|
795
|
+
export { AllExceptionsFilter, 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, FRIENDSHIP_STATUS, FieldValidator, type FieldValidatorOptions, FileOwnerModule, FileUploadTopic, 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 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, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, twoFactorVerifyMessage, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
package/dist/index.mjs
CHANGED
|
@@ -9837,6 +9837,12 @@ var FileUploadTopic = /* @__PURE__ */ ((FileUploadTopic2) => {
|
|
|
9837
9837
|
FileUploadTopic2["PROFILE_PHOTO_UPLOADED"] = "profile.photo.uploaded";
|
|
9838
9838
|
return FileUploadTopic2;
|
|
9839
9839
|
})(FileUploadTopic || {});
|
|
9840
|
+
var ProfilePhotoUpdateAction = /* @__PURE__ */ ((ProfilePhotoUpdateAction2) => {
|
|
9841
|
+
ProfilePhotoUpdateAction2["Remove"] = "Remove";
|
|
9842
|
+
ProfilePhotoUpdateAction2["Update"] = "Update";
|
|
9843
|
+
ProfilePhotoUpdateAction2["SetDefault"] = "SetDefault";
|
|
9844
|
+
return ProfilePhotoUpdateAction2;
|
|
9845
|
+
})(ProfilePhotoUpdateAction || {});
|
|
9840
9846
|
|
|
9841
9847
|
// src/constants/server/constants.ts
|
|
9842
9848
|
var MICROSERVICE_NAMES = {
|
|
@@ -11595,6 +11601,7 @@ export {
|
|
|
11595
11601
|
PRIVACY_SETTINGS_CHOICE,
|
|
11596
11602
|
PROVIDER,
|
|
11597
11603
|
PopulateOption,
|
|
11604
|
+
ProfilePhotoUpdateAction,
|
|
11598
11605
|
REDIS_KEYS,
|
|
11599
11606
|
REDUCER_PATH,
|
|
11600
11607
|
RESOURCE,
|