connectfy-shared 0.0.84 → 0.0.85
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 +9 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.mjs +8 -1
- package/package.json +1 -2
package/dist/index.cjs
CHANGED
|
@@ -9475,6 +9475,7 @@ __export(index_exports, {
|
|
|
9475
9475
|
PRIVACY_SETTINGS_CHOICE: () => PRIVACY_SETTINGS_CHOICE,
|
|
9476
9476
|
PROVIDER: () => PROVIDER,
|
|
9477
9477
|
PopulateOption: () => PopulateOption,
|
|
9478
|
+
REDIS_KEYS: () => REDIS_KEYS,
|
|
9478
9479
|
REDUCER_PATH: () => REDUCER_PATH,
|
|
9479
9480
|
RESOURCE: () => RESOURCE,
|
|
9480
9481
|
ROLE: () => ROLE,
|
|
@@ -9570,7 +9571,8 @@ var EXPIRE_DATES = {
|
|
|
9570
9571
|
}
|
|
9571
9572
|
};
|
|
9572
9573
|
var CACHE_KEYS = {
|
|
9573
|
-
USER: (id) => `user:${id}
|
|
9574
|
+
USER: (id) => `user:${id}`,
|
|
9575
|
+
ACCESS_TOKEN: (token) => `access_token:${token}`
|
|
9574
9576
|
};
|
|
9575
9577
|
var COUNTRIES = [
|
|
9576
9578
|
{
|
|
@@ -10104,6 +10106,11 @@ var HttpStatus = /* @__PURE__ */ ((HttpStatus3) => {
|
|
|
10104
10106
|
HttpStatus3[HttpStatus3["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
10105
10107
|
return HttpStatus3;
|
|
10106
10108
|
})(HttpStatus || {});
|
|
10109
|
+
var REDIS_KEYS = /* @__PURE__ */ ((REDIS_KEYS2) => {
|
|
10110
|
+
REDIS_KEYS2["REDIS_CLIENT"] = "REDIS_CLIENT";
|
|
10111
|
+
REDIS_KEYS2["KEYV_CLIENT"] = "KEYV_CLIENT";
|
|
10112
|
+
return REDIS_KEYS2;
|
|
10113
|
+
})(REDIS_KEYS || {});
|
|
10107
10114
|
|
|
10108
10115
|
// src/constants/server/emial.messages.ts
|
|
10109
10116
|
var supportMail = "connectfy.team@gmail.com";
|
|
@@ -11503,6 +11510,7 @@ var BaseRepository = class {
|
|
|
11503
11510
|
PRIVACY_SETTINGS_CHOICE,
|
|
11504
11511
|
PROVIDER,
|
|
11505
11512
|
PopulateOption,
|
|
11513
|
+
REDIS_KEYS,
|
|
11506
11514
|
REDUCER_PATH,
|
|
11507
11515
|
RESOURCE,
|
|
11508
11516
|
ROLE,
|
package/dist/index.d.cts
CHANGED
|
@@ -94,6 +94,7 @@ declare const EXPIRE_DATES: {
|
|
|
94
94
|
};
|
|
95
95
|
declare const CACHE_KEYS: {
|
|
96
96
|
USER: (id: string) => string;
|
|
97
|
+
ACCESS_TOKEN: (token: string) => string;
|
|
97
98
|
};
|
|
98
99
|
declare const COUNTRIES: ICountry[];
|
|
99
100
|
|
|
@@ -473,6 +474,10 @@ declare enum HttpStatus {
|
|
|
473
474
|
INSUFFICIENT_STORAGE = 507,
|
|
474
475
|
LOOP_DETECTED = 508
|
|
475
476
|
}
|
|
477
|
+
declare enum REDIS_KEYS {
|
|
478
|
+
REDIS_CLIENT = "REDIS_CLIENT",
|
|
479
|
+
KEYV_CLIENT = "KEYV_CLIENT"
|
|
480
|
+
}
|
|
476
481
|
|
|
477
482
|
declare const signupVerifyMessage: (firstName: string, lastName: string, verifyCode: string, lang?: LANGUAGE) => string;
|
|
478
483
|
declare const forgotPasswordMessage: (resetToken: string, lang?: LANGUAGE) => string;
|
|
@@ -732,4 +737,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
732
737
|
count(query: Record<string, any>): Promise<number>;
|
|
733
738
|
}
|
|
734
739
|
|
|
735
|
-
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, 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 IGeneralSettings, type ILoggedUser, type INotificationSettings, type INumberFieldOptions, type IObjectFieldOptions, type IPhoneNumber, type IPrivacySettings, type IRemoveAllResponse, type ISendWithContextClientParams, type IStringFieldOptions, type ITimeZone, type IUser, type IValidateMessageOptions, LANGUAGE, LOCAL_STORAGE_KEYS, MICROSERVICE_NAMES, NOTIFICATION_CONTENT_MODE, NOTIFICATION_SOUND_MODE, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, REDUCER_PATH, RESOURCE, ROLE, SOCIAL_LINK_PLATFORM, STARTUP_PAGE, TAG_TYPES, THEME, TIME_DIFFERENCE_TYPE, TIME_FORMAT, TOKEN_TYPE, USER_STATUS, VALIDATION_TYPE, accountDeletedMessage, arrayTransform, booleanTransform, changeEmailMessage, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
|
740
|
+
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, 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 IGeneralSettings, type ILoggedUser, type INotificationSettings, type INumberFieldOptions, type IObjectFieldOptions, type IPhoneNumber, type IPrivacySettings, type IRemoveAllResponse, type ISendWithContextClientParams, type IStringFieldOptions, type ITimeZone, type IUser, type IValidateMessageOptions, LANGUAGE, LOCAL_STORAGE_KEYS, MICROSERVICE_NAMES, 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, USER_STATUS, VALIDATION_TYPE, accountDeletedMessage, arrayTransform, booleanTransform, changeEmailMessage, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
package/dist/index.d.ts
CHANGED
|
@@ -94,6 +94,7 @@ declare const EXPIRE_DATES: {
|
|
|
94
94
|
};
|
|
95
95
|
declare const CACHE_KEYS: {
|
|
96
96
|
USER: (id: string) => string;
|
|
97
|
+
ACCESS_TOKEN: (token: string) => string;
|
|
97
98
|
};
|
|
98
99
|
declare const COUNTRIES: ICountry[];
|
|
99
100
|
|
|
@@ -473,6 +474,10 @@ declare enum HttpStatus {
|
|
|
473
474
|
INSUFFICIENT_STORAGE = 507,
|
|
474
475
|
LOOP_DETECTED = 508
|
|
475
476
|
}
|
|
477
|
+
declare enum REDIS_KEYS {
|
|
478
|
+
REDIS_CLIENT = "REDIS_CLIENT",
|
|
479
|
+
KEYV_CLIENT = "KEYV_CLIENT"
|
|
480
|
+
}
|
|
476
481
|
|
|
477
482
|
declare const signupVerifyMessage: (firstName: string, lastName: string, verifyCode: string, lang?: LANGUAGE) => string;
|
|
478
483
|
declare const forgotPasswordMessage: (resetToken: string, lang?: LANGUAGE) => string;
|
|
@@ -732,4 +737,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
732
737
|
count(query: Record<string, any>): Promise<number>;
|
|
733
738
|
}
|
|
734
739
|
|
|
735
|
-
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, 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 IGeneralSettings, type ILoggedUser, type INotificationSettings, type INumberFieldOptions, type IObjectFieldOptions, type IPhoneNumber, type IPrivacySettings, type IRemoveAllResponse, type ISendWithContextClientParams, type IStringFieldOptions, type ITimeZone, type IUser, type IValidateMessageOptions, LANGUAGE, LOCAL_STORAGE_KEYS, MICROSERVICE_NAMES, NOTIFICATION_CONTENT_MODE, NOTIFICATION_SOUND_MODE, OS_TYPE, PHONE_NUMBER_ACTION, PRIVACY_SETTINGS_CHOICE, PROVIDER, PopulateOption, REDUCER_PATH, RESOURCE, ROLE, SOCIAL_LINK_PLATFORM, STARTUP_PAGE, TAG_TYPES, THEME, TIME_DIFFERENCE_TYPE, TIME_FORMAT, TOKEN_TYPE, USER_STATUS, VALIDATION_TYPE, accountDeletedMessage, arrayTransform, booleanTransform, changeEmailMessage, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
|
740
|
+
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, 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 IGeneralSettings, type ILoggedUser, type INotificationSettings, type INumberFieldOptions, type IObjectFieldOptions, type IPhoneNumber, type IPrivacySettings, type IRemoveAllResponse, type ISendWithContextClientParams, type IStringFieldOptions, type ITimeZone, type IUser, type IValidateMessageOptions, LANGUAGE, LOCAL_STORAGE_KEYS, MICROSERVICE_NAMES, 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, USER_STATUS, VALIDATION_TYPE, accountDeletedMessage, arrayTransform, booleanTransform, changeEmailMessage, dateTransform, decryptPayload, deleteAccountMessage, emailNotFoundMessage, emitWithContext, encryptPayload, enumTransform, forgotPasswordMessage, getLang, googleSignInMessage, lowerCaseTranform, numberTransform, objectTransform, sendWithContext, signupVerifyMessage, stringTransform, upperCaseTranform, validationMessage, verifyYourselfMessage };
|
package/dist/index.mjs
CHANGED
|
@@ -9486,7 +9486,8 @@ var EXPIRE_DATES = {
|
|
|
9486
9486
|
}
|
|
9487
9487
|
};
|
|
9488
9488
|
var CACHE_KEYS = {
|
|
9489
|
-
USER: (id) => `user:${id}
|
|
9489
|
+
USER: (id) => `user:${id}`,
|
|
9490
|
+
ACCESS_TOKEN: (token) => `access_token:${token}`
|
|
9490
9491
|
};
|
|
9491
9492
|
var COUNTRIES = [
|
|
9492
9493
|
{
|
|
@@ -10020,6 +10021,11 @@ var HttpStatus = /* @__PURE__ */ ((HttpStatus3) => {
|
|
|
10020
10021
|
HttpStatus3[HttpStatus3["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
10021
10022
|
return HttpStatus3;
|
|
10022
10023
|
})(HttpStatus || {});
|
|
10024
|
+
var REDIS_KEYS = /* @__PURE__ */ ((REDIS_KEYS2) => {
|
|
10025
|
+
REDIS_KEYS2["REDIS_CLIENT"] = "REDIS_CLIENT";
|
|
10026
|
+
REDIS_KEYS2["KEYV_CLIENT"] = "KEYV_CLIENT";
|
|
10027
|
+
return REDIS_KEYS2;
|
|
10028
|
+
})(REDIS_KEYS || {});
|
|
10023
10029
|
|
|
10024
10030
|
// src/constants/server/emial.messages.ts
|
|
10025
10031
|
var supportMail = "connectfy.team@gmail.com";
|
|
@@ -11460,6 +11466,7 @@ export {
|
|
|
11460
11466
|
PRIVACY_SETTINGS_CHOICE,
|
|
11461
11467
|
PROVIDER,
|
|
11462
11468
|
PopulateOption,
|
|
11469
|
+
REDIS_KEYS,
|
|
11463
11470
|
REDUCER_PATH,
|
|
11464
11471
|
RESOURCE,
|
|
11465
11472
|
ROLE,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connectfy-shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.85",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"class-transformer": "^0.5.1",
|
|
36
36
|
"class-validator": "^0.14.3",
|
|
37
37
|
"connectfy-i18n": "^0.0.40",
|
|
38
|
-
"connectfy-relationship": "file:../connectfy-relationship",
|
|
39
38
|
"mongoose": "^9.2.1",
|
|
40
39
|
"nestjs-cls": "^6.2.0"
|
|
41
40
|
},
|