connectfy-shared 0.0.103 → 0.0.105
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 +10 -0
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.mjs +9 -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,
|
|
@@ -9934,6 +9935,14 @@ var ProfilePhotoUpdateAction = /* @__PURE__ */ ((ProfilePhotoUpdateAction2) => {
|
|
|
9934
9935
|
ProfilePhotoUpdateAction2["SetDefault"] = "SetDefault";
|
|
9935
9936
|
return ProfilePhotoUpdateAction2;
|
|
9936
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 || {});
|
|
9937
9946
|
|
|
9938
9947
|
// src/constants/server/constants.ts
|
|
9939
9948
|
var MICROSERVICE_NAMES = {
|
|
@@ -11611,6 +11620,7 @@ var BaseRepository = class {
|
|
|
11611
11620
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11612
11621
|
0 && (module.exports = {
|
|
11613
11622
|
AllExceptionsFilter,
|
|
11623
|
+
AvatarFormats,
|
|
11614
11624
|
BROWSER_TYPE,
|
|
11615
11625
|
BaseException,
|
|
11616
11626
|
BaseFindDto,
|
package/dist/index.d.cts
CHANGED
|
@@ -376,6 +376,13 @@ declare enum ProfilePhotoUpdateAction {
|
|
|
376
376
|
Update = "Update",
|
|
377
377
|
SetDefault = "SetDefault"
|
|
378
378
|
}
|
|
379
|
+
declare enum AvatarFormats {
|
|
380
|
+
Adventurer = "adventurer",
|
|
381
|
+
Avataaars = "avataaars",
|
|
382
|
+
Personas = "personas",
|
|
383
|
+
ToonHead = "toon-head",
|
|
384
|
+
Micah = "micah"
|
|
385
|
+
}
|
|
379
386
|
|
|
380
387
|
interface ICountry {
|
|
381
388
|
key: string;
|
|
@@ -600,6 +607,7 @@ declare function emitWithContext({ client, topic, payload, }: IEmitWithContextCl
|
|
|
600
607
|
interface ILoggedUser extends IReturnedUser {
|
|
601
608
|
language: LANGUAGE;
|
|
602
609
|
avatar: IAvatar | null;
|
|
610
|
+
defaultAvatar: IDefaultAvatar;
|
|
603
611
|
}
|
|
604
612
|
interface IReturnedUser {
|
|
605
613
|
_id: string;
|
|
@@ -617,6 +625,11 @@ interface IAvatar {
|
|
|
617
625
|
url: string;
|
|
618
626
|
isCustom: boolean;
|
|
619
627
|
}
|
|
628
|
+
interface IDefaultAvatar {
|
|
629
|
+
format: AvatarFormats;
|
|
630
|
+
seed: string;
|
|
631
|
+
url: string;
|
|
632
|
+
}
|
|
620
633
|
interface IPhoneNumber {
|
|
621
634
|
countryCode: string | null;
|
|
622
635
|
number: string | null;
|
|
@@ -792,4 +805,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
792
805
|
count(query: Record<string, any>): Promise<number>;
|
|
793
806
|
}
|
|
794
807
|
|
|
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 };
|
|
808
|
+
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 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, 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
|
@@ -376,6 +376,13 @@ declare enum ProfilePhotoUpdateAction {
|
|
|
376
376
|
Update = "Update",
|
|
377
377
|
SetDefault = "SetDefault"
|
|
378
378
|
}
|
|
379
|
+
declare enum AvatarFormats {
|
|
380
|
+
Adventurer = "adventurer",
|
|
381
|
+
Avataaars = "avataaars",
|
|
382
|
+
Personas = "personas",
|
|
383
|
+
ToonHead = "toon-head",
|
|
384
|
+
Micah = "micah"
|
|
385
|
+
}
|
|
379
386
|
|
|
380
387
|
interface ICountry {
|
|
381
388
|
key: string;
|
|
@@ -600,6 +607,7 @@ declare function emitWithContext({ client, topic, payload, }: IEmitWithContextCl
|
|
|
600
607
|
interface ILoggedUser extends IReturnedUser {
|
|
601
608
|
language: LANGUAGE;
|
|
602
609
|
avatar: IAvatar | null;
|
|
610
|
+
defaultAvatar: IDefaultAvatar;
|
|
603
611
|
}
|
|
604
612
|
interface IReturnedUser {
|
|
605
613
|
_id: string;
|
|
@@ -617,6 +625,11 @@ interface IAvatar {
|
|
|
617
625
|
url: string;
|
|
618
626
|
isCustom: boolean;
|
|
619
627
|
}
|
|
628
|
+
interface IDefaultAvatar {
|
|
629
|
+
format: AvatarFormats;
|
|
630
|
+
seed: string;
|
|
631
|
+
url: string;
|
|
632
|
+
}
|
|
620
633
|
interface IPhoneNumber {
|
|
621
634
|
countryCode: string | null;
|
|
622
635
|
number: string | null;
|
|
@@ -792,4 +805,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
792
805
|
count(query: Record<string, any>): Promise<number>;
|
|
793
806
|
}
|
|
794
807
|
|
|
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 };
|
|
808
|
+
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 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, 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
|
@@ -9843,6 +9843,14 @@ var ProfilePhotoUpdateAction = /* @__PURE__ */ ((ProfilePhotoUpdateAction2) => {
|
|
|
9843
9843
|
ProfilePhotoUpdateAction2["SetDefault"] = "SetDefault";
|
|
9844
9844
|
return ProfilePhotoUpdateAction2;
|
|
9845
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 || {});
|
|
9846
9854
|
|
|
9847
9855
|
// src/constants/server/constants.ts
|
|
9848
9856
|
var MICROSERVICE_NAMES = {
|
|
@@ -11561,6 +11569,7 @@ var BaseRepository = class {
|
|
|
11561
11569
|
};
|
|
11562
11570
|
export {
|
|
11563
11571
|
AllExceptionsFilter,
|
|
11572
|
+
AvatarFormats,
|
|
11564
11573
|
BROWSER_TYPE,
|
|
11565
11574
|
BaseException,
|
|
11566
11575
|
BaseFindDto,
|