connectfy-shared 0.0.84 → 0.0.86
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 +19 -1
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.mjs +18 -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,18 @@ var EXPIRE_DATES = {
|
|
|
9570
9571
|
}
|
|
9571
9572
|
};
|
|
9572
9573
|
var CACHE_KEYS = {
|
|
9573
|
-
|
|
9574
|
+
AUTH: {
|
|
9575
|
+
USER: (id) => `user:${id}`,
|
|
9576
|
+
ACCESS_TOKEN: (token) => `access_token:${token}`
|
|
9577
|
+
},
|
|
9578
|
+
ACCOUNT: {
|
|
9579
|
+
PROFILE: (userId) => `profile:${userId}`,
|
|
9580
|
+
SETTINGS: {
|
|
9581
|
+
GENERAL_SETTINGS: (userId) => `general_settings:${userId}`,
|
|
9582
|
+
NOTIFICATION_SETTINGS: (userId) => `notification_settings:${userId}`,
|
|
9583
|
+
PRIVACY_SETTINGS: (userId) => `privacy_settings:${userId}`
|
|
9584
|
+
}
|
|
9585
|
+
}
|
|
9574
9586
|
};
|
|
9575
9587
|
var COUNTRIES = [
|
|
9576
9588
|
{
|
|
@@ -10104,6 +10116,11 @@ var HttpStatus = /* @__PURE__ */ ((HttpStatus3) => {
|
|
|
10104
10116
|
HttpStatus3[HttpStatus3["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
10105
10117
|
return HttpStatus3;
|
|
10106
10118
|
})(HttpStatus || {});
|
|
10119
|
+
var REDIS_KEYS = /* @__PURE__ */ ((REDIS_KEYS2) => {
|
|
10120
|
+
REDIS_KEYS2["REDIS_CLIENT"] = "REDIS_CLIENT";
|
|
10121
|
+
REDIS_KEYS2["KEYV_CLIENT"] = "KEYV_CLIENT";
|
|
10122
|
+
return REDIS_KEYS2;
|
|
10123
|
+
})(REDIS_KEYS || {});
|
|
10107
10124
|
|
|
10108
10125
|
// src/constants/server/emial.messages.ts
|
|
10109
10126
|
var supportMail = "connectfy.team@gmail.com";
|
|
@@ -11503,6 +11520,7 @@ var BaseRepository = class {
|
|
|
11503
11520
|
PRIVACY_SETTINGS_CHOICE,
|
|
11504
11521
|
PROVIDER,
|
|
11505
11522
|
PopulateOption,
|
|
11523
|
+
REDIS_KEYS,
|
|
11506
11524
|
REDUCER_PATH,
|
|
11507
11525
|
RESOURCE,
|
|
11508
11526
|
ROLE,
|
package/dist/index.d.cts
CHANGED
|
@@ -93,7 +93,18 @@ declare const EXPIRE_DATES: {
|
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
declare const CACHE_KEYS: {
|
|
96
|
-
|
|
96
|
+
AUTH: {
|
|
97
|
+
USER: (id: string) => string;
|
|
98
|
+
ACCESS_TOKEN: (token: string) => string;
|
|
99
|
+
};
|
|
100
|
+
ACCOUNT: {
|
|
101
|
+
PROFILE: (userId: string) => string;
|
|
102
|
+
SETTINGS: {
|
|
103
|
+
GENERAL_SETTINGS: (userId: string) => string;
|
|
104
|
+
NOTIFICATION_SETTINGS: (userId: string) => string;
|
|
105
|
+
PRIVACY_SETTINGS: (userId: string) => string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
97
108
|
};
|
|
98
109
|
declare const COUNTRIES: ICountry[];
|
|
99
110
|
|
|
@@ -473,6 +484,10 @@ declare enum HttpStatus {
|
|
|
473
484
|
INSUFFICIENT_STORAGE = 507,
|
|
474
485
|
LOOP_DETECTED = 508
|
|
475
486
|
}
|
|
487
|
+
declare enum REDIS_KEYS {
|
|
488
|
+
REDIS_CLIENT = "REDIS_CLIENT",
|
|
489
|
+
KEYV_CLIENT = "KEYV_CLIENT"
|
|
490
|
+
}
|
|
476
491
|
|
|
477
492
|
declare const signupVerifyMessage: (firstName: string, lastName: string, verifyCode: string, lang?: LANGUAGE) => string;
|
|
478
493
|
declare const forgotPasswordMessage: (resetToken: string, lang?: LANGUAGE) => string;
|
|
@@ -732,4 +747,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
732
747
|
count(query: Record<string, any>): Promise<number>;
|
|
733
748
|
}
|
|
734
749
|
|
|
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 };
|
|
750
|
+
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
|
@@ -93,7 +93,18 @@ declare const EXPIRE_DATES: {
|
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
declare const CACHE_KEYS: {
|
|
96
|
-
|
|
96
|
+
AUTH: {
|
|
97
|
+
USER: (id: string) => string;
|
|
98
|
+
ACCESS_TOKEN: (token: string) => string;
|
|
99
|
+
};
|
|
100
|
+
ACCOUNT: {
|
|
101
|
+
PROFILE: (userId: string) => string;
|
|
102
|
+
SETTINGS: {
|
|
103
|
+
GENERAL_SETTINGS: (userId: string) => string;
|
|
104
|
+
NOTIFICATION_SETTINGS: (userId: string) => string;
|
|
105
|
+
PRIVACY_SETTINGS: (userId: string) => string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
97
108
|
};
|
|
98
109
|
declare const COUNTRIES: ICountry[];
|
|
99
110
|
|
|
@@ -473,6 +484,10 @@ declare enum HttpStatus {
|
|
|
473
484
|
INSUFFICIENT_STORAGE = 507,
|
|
474
485
|
LOOP_DETECTED = 508
|
|
475
486
|
}
|
|
487
|
+
declare enum REDIS_KEYS {
|
|
488
|
+
REDIS_CLIENT = "REDIS_CLIENT",
|
|
489
|
+
KEYV_CLIENT = "KEYV_CLIENT"
|
|
490
|
+
}
|
|
476
491
|
|
|
477
492
|
declare const signupVerifyMessage: (firstName: string, lastName: string, verifyCode: string, lang?: LANGUAGE) => string;
|
|
478
493
|
declare const forgotPasswordMessage: (resetToken: string, lang?: LANGUAGE) => string;
|
|
@@ -732,4 +747,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
732
747
|
count(query: Record<string, any>): Promise<number>;
|
|
733
748
|
}
|
|
734
749
|
|
|
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 };
|
|
750
|
+
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,18 @@ var EXPIRE_DATES = {
|
|
|
9486
9486
|
}
|
|
9487
9487
|
};
|
|
9488
9488
|
var CACHE_KEYS = {
|
|
9489
|
-
|
|
9489
|
+
AUTH: {
|
|
9490
|
+
USER: (id) => `user:${id}`,
|
|
9491
|
+
ACCESS_TOKEN: (token) => `access_token:${token}`
|
|
9492
|
+
},
|
|
9493
|
+
ACCOUNT: {
|
|
9494
|
+
PROFILE: (userId) => `profile:${userId}`,
|
|
9495
|
+
SETTINGS: {
|
|
9496
|
+
GENERAL_SETTINGS: (userId) => `general_settings:${userId}`,
|
|
9497
|
+
NOTIFICATION_SETTINGS: (userId) => `notification_settings:${userId}`,
|
|
9498
|
+
PRIVACY_SETTINGS: (userId) => `privacy_settings:${userId}`
|
|
9499
|
+
}
|
|
9500
|
+
}
|
|
9490
9501
|
};
|
|
9491
9502
|
var COUNTRIES = [
|
|
9492
9503
|
{
|
|
@@ -10020,6 +10031,11 @@ var HttpStatus = /* @__PURE__ */ ((HttpStatus3) => {
|
|
|
10020
10031
|
HttpStatus3[HttpStatus3["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
10021
10032
|
return HttpStatus3;
|
|
10022
10033
|
})(HttpStatus || {});
|
|
10034
|
+
var REDIS_KEYS = /* @__PURE__ */ ((REDIS_KEYS2) => {
|
|
10035
|
+
REDIS_KEYS2["REDIS_CLIENT"] = "REDIS_CLIENT";
|
|
10036
|
+
REDIS_KEYS2["KEYV_CLIENT"] = "KEYV_CLIENT";
|
|
10037
|
+
return REDIS_KEYS2;
|
|
10038
|
+
})(REDIS_KEYS || {});
|
|
10023
10039
|
|
|
10024
10040
|
// src/constants/server/emial.messages.ts
|
|
10025
10041
|
var supportMail = "connectfy.team@gmail.com";
|
|
@@ -11460,6 +11476,7 @@ export {
|
|
|
11460
11476
|
PRIVACY_SETTINGS_CHOICE,
|
|
11461
11477
|
PROVIDER,
|
|
11462
11478
|
PopulateOption,
|
|
11479
|
+
REDIS_KEYS,
|
|
11463
11480
|
REDUCER_PATH,
|
|
11464
11481
|
RESOURCE,
|
|
11465
11482
|
ROLE,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connectfy-shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.86",
|
|
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
|
},
|