connectfy-shared 0.0.102 → 0.0.104
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 +18 -0
- package/dist/index.d.cts +19 -2
- package/dist/index.d.ts +19 -2
- package/dist/index.mjs +16 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9438,6 +9438,7 @@ var require_cjs = __commonJS({
|
|
|
9438
9438
|
var index_exports = {};
|
|
9439
9439
|
__export(index_exports, {
|
|
9440
9440
|
AllExceptionsFilter: () => AllExceptionsFilter,
|
|
9441
|
+
AvatarFormats: () => AvatarFormats,
|
|
9441
9442
|
BROWSER_TYPE: () => BROWSER_TYPE,
|
|
9442
9443
|
BaseException: () => BaseException,
|
|
9443
9444
|
BaseFindDto: () => BaseFindDto,
|
|
@@ -9478,6 +9479,7 @@ __export(index_exports, {
|
|
|
9478
9479
|
PRIVACY_SETTINGS_CHOICE: () => PRIVACY_SETTINGS_CHOICE,
|
|
9479
9480
|
PROVIDER: () => PROVIDER,
|
|
9480
9481
|
PopulateOption: () => PopulateOption,
|
|
9482
|
+
ProfilePhotoUpdateAction: () => ProfilePhotoUpdateAction,
|
|
9481
9483
|
REDIS_KEYS: () => REDIS_KEYS,
|
|
9482
9484
|
REDUCER_PATH: () => REDUCER_PATH,
|
|
9483
9485
|
RESOURCE: () => RESOURCE,
|
|
@@ -9927,6 +9929,20 @@ var FileUploadTopic = /* @__PURE__ */ ((FileUploadTopic2) => {
|
|
|
9927
9929
|
FileUploadTopic2["PROFILE_PHOTO_UPLOADED"] = "profile.photo.uploaded";
|
|
9928
9930
|
return FileUploadTopic2;
|
|
9929
9931
|
})(FileUploadTopic || {});
|
|
9932
|
+
var ProfilePhotoUpdateAction = /* @__PURE__ */ ((ProfilePhotoUpdateAction2) => {
|
|
9933
|
+
ProfilePhotoUpdateAction2["Remove"] = "Remove";
|
|
9934
|
+
ProfilePhotoUpdateAction2["Update"] = "Update";
|
|
9935
|
+
ProfilePhotoUpdateAction2["SetDefault"] = "SetDefault";
|
|
9936
|
+
return ProfilePhotoUpdateAction2;
|
|
9937
|
+
})(ProfilePhotoUpdateAction || {});
|
|
9938
|
+
var AvatarFormats = /* @__PURE__ */ ((AvatarFormats2) => {
|
|
9939
|
+
AvatarFormats2["Adventurer"] = "adventurer";
|
|
9940
|
+
AvatarFormats2["Avataaars"] = "avataaars";
|
|
9941
|
+
AvatarFormats2["Personas"] = "personas";
|
|
9942
|
+
AvatarFormats2["ToonHead"] = "toon-head";
|
|
9943
|
+
AvatarFormats2["Micah"] = "micah";
|
|
9944
|
+
return AvatarFormats2;
|
|
9945
|
+
})(AvatarFormats || {});
|
|
9930
9946
|
|
|
9931
9947
|
// src/constants/server/constants.ts
|
|
9932
9948
|
var MICROSERVICE_NAMES = {
|
|
@@ -11604,6 +11620,7 @@ var BaseRepository = class {
|
|
|
11604
11620
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11605
11621
|
0 && (module.exports = {
|
|
11606
11622
|
AllExceptionsFilter,
|
|
11623
|
+
AvatarFormats,
|
|
11607
11624
|
BROWSER_TYPE,
|
|
11608
11625
|
BaseException,
|
|
11609
11626
|
BaseFindDto,
|
|
@@ -11644,6 +11661,7 @@ var BaseRepository = class {
|
|
|
11644
11661
|
PRIVACY_SETTINGS_CHOICE,
|
|
11645
11662
|
PROVIDER,
|
|
11646
11663
|
PopulateOption,
|
|
11664
|
+
ProfilePhotoUpdateAction,
|
|
11647
11665
|
REDIS_KEYS,
|
|
11648
11666
|
REDUCER_PATH,
|
|
11649
11667
|
RESOURCE,
|
package/dist/index.d.cts
CHANGED
|
@@ -371,6 +371,18 @@ 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
|
+
}
|
|
379
|
+
declare enum AvatarFormats {
|
|
380
|
+
Adventurer = "adventurer",
|
|
381
|
+
Avataaars = "avataaars",
|
|
382
|
+
Personas = "personas",
|
|
383
|
+
ToonHead = "toon-head",
|
|
384
|
+
Micah = "micah"
|
|
385
|
+
}
|
|
374
386
|
|
|
375
387
|
interface ICountry {
|
|
376
388
|
key: string;
|
|
@@ -594,7 +606,7 @@ declare function emitWithContext({ client, topic, payload, }: IEmitWithContextCl
|
|
|
594
606
|
|
|
595
607
|
interface ILoggedUser extends IReturnedUser {
|
|
596
608
|
language: LANGUAGE;
|
|
597
|
-
avatar:
|
|
609
|
+
avatar: IAvatar | null;
|
|
598
610
|
}
|
|
599
611
|
interface IReturnedUser {
|
|
600
612
|
_id: string;
|
|
@@ -607,6 +619,11 @@ interface IReturnedUser {
|
|
|
607
619
|
createdAt: Date;
|
|
608
620
|
updatedAt: Date;
|
|
609
621
|
}
|
|
622
|
+
interface IAvatar {
|
|
623
|
+
key: string | null;
|
|
624
|
+
url: string;
|
|
625
|
+
isCustom: boolean;
|
|
626
|
+
}
|
|
610
627
|
interface IPhoneNumber {
|
|
611
628
|
countryCode: string | null;
|
|
612
629
|
number: string | null;
|
|
@@ -782,4 +799,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
782
799
|
count(query: Record<string, any>): Promise<number>;
|
|
783
800
|
}
|
|
784
801
|
|
|
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 };
|
|
802
|
+
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, 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,18 @@ 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
|
+
}
|
|
379
|
+
declare enum AvatarFormats {
|
|
380
|
+
Adventurer = "adventurer",
|
|
381
|
+
Avataaars = "avataaars",
|
|
382
|
+
Personas = "personas",
|
|
383
|
+
ToonHead = "toon-head",
|
|
384
|
+
Micah = "micah"
|
|
385
|
+
}
|
|
374
386
|
|
|
375
387
|
interface ICountry {
|
|
376
388
|
key: string;
|
|
@@ -594,7 +606,7 @@ declare function emitWithContext({ client, topic, payload, }: IEmitWithContextCl
|
|
|
594
606
|
|
|
595
607
|
interface ILoggedUser extends IReturnedUser {
|
|
596
608
|
language: LANGUAGE;
|
|
597
|
-
avatar:
|
|
609
|
+
avatar: IAvatar | null;
|
|
598
610
|
}
|
|
599
611
|
interface IReturnedUser {
|
|
600
612
|
_id: string;
|
|
@@ -607,6 +619,11 @@ interface IReturnedUser {
|
|
|
607
619
|
createdAt: Date;
|
|
608
620
|
updatedAt: Date;
|
|
609
621
|
}
|
|
622
|
+
interface IAvatar {
|
|
623
|
+
key: string | null;
|
|
624
|
+
url: string;
|
|
625
|
+
isCustom: boolean;
|
|
626
|
+
}
|
|
610
627
|
interface IPhoneNumber {
|
|
611
628
|
countryCode: string | null;
|
|
612
629
|
number: string | null;
|
|
@@ -782,4 +799,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
782
799
|
count(query: Record<string, any>): Promise<number>;
|
|
783
800
|
}
|
|
784
801
|
|
|
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 };
|
|
802
|
+
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, 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,20 @@ 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 || {});
|
|
9846
|
+
var AvatarFormats = /* @__PURE__ */ ((AvatarFormats2) => {
|
|
9847
|
+
AvatarFormats2["Adventurer"] = "adventurer";
|
|
9848
|
+
AvatarFormats2["Avataaars"] = "avataaars";
|
|
9849
|
+
AvatarFormats2["Personas"] = "personas";
|
|
9850
|
+
AvatarFormats2["ToonHead"] = "toon-head";
|
|
9851
|
+
AvatarFormats2["Micah"] = "micah";
|
|
9852
|
+
return AvatarFormats2;
|
|
9853
|
+
})(AvatarFormats || {});
|
|
9840
9854
|
|
|
9841
9855
|
// src/constants/server/constants.ts
|
|
9842
9856
|
var MICROSERVICE_NAMES = {
|
|
@@ -11555,6 +11569,7 @@ var BaseRepository = class {
|
|
|
11555
11569
|
};
|
|
11556
11570
|
export {
|
|
11557
11571
|
AllExceptionsFilter,
|
|
11572
|
+
AvatarFormats,
|
|
11558
11573
|
BROWSER_TYPE,
|
|
11559
11574
|
BaseException,
|
|
11560
11575
|
BaseFindDto,
|
|
@@ -11595,6 +11610,7 @@ export {
|
|
|
11595
11610
|
PRIVACY_SETTINGS_CHOICE,
|
|
11596
11611
|
PROVIDER,
|
|
11597
11612
|
PopulateOption,
|
|
11613
|
+
ProfilePhotoUpdateAction,
|
|
11598
11614
|
REDIS_KEYS,
|
|
11599
11615
|
REDUCER_PATH,
|
|
11600
11616
|
RESOURCE,
|