connectfy-shared 0.0.83 → 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 CHANGED
@@ -9453,7 +9453,6 @@ __export(index_exports, {
9453
9453
  DELETE_REASON: () => DELETE_REASON,
9454
9454
  DELETE_REASON_CODE: () => DELETE_REASON_CODE,
9455
9455
  DEVICE_TYPE: () => DEVICE_TYPE,
9456
- ENV: () => ENV,
9457
9456
  EXPIRE_DATES: () => EXPIRE_DATES,
9458
9457
  ExceptionMessages: () => ExceptionMessages,
9459
9458
  FIELD_TRANSFORMER_REGISTRY: () => FIELD_TRANSFORMER_REGISTRY,
@@ -9476,6 +9475,7 @@ __export(index_exports, {
9476
9475
  PRIVACY_SETTINGS_CHOICE: () => PRIVACY_SETTINGS_CHOICE,
9477
9476
  PROVIDER: () => PROVIDER,
9478
9477
  PopulateOption: () => PopulateOption,
9478
+ REDIS_KEYS: () => REDIS_KEYS,
9479
9479
  REDUCER_PATH: () => REDUCER_PATH,
9480
9480
  RESOURCE: () => RESOURCE,
9481
9481
  ROLE: () => ROLE,
@@ -9534,60 +9534,6 @@ var MICROSERVICE_NAMES = {
9534
9534
  NOTIFICATION_ACTION_HISTORY: "NOTIFICATION_ACTION_HISTORY_SERVICE_TCP"
9535
9535
  }
9536
9536
  };
9537
- var ENV = {
9538
- CORE: {
9539
- APP: {
9540
- NODE_ENV: "NODE_ENV",
9541
- PORT: "PORT"
9542
- },
9543
- DATABASE: {
9544
- MONGO: {
9545
- URI: "MONGO_URI",
9546
- DB_NAME: "DB_NAME"
9547
- }
9548
- }
9549
- },
9550
- GATEWAY: {
9551
- CLIENT_URL: "CLIENT_URL",
9552
- SESSION_SECRET: "SESSION_SECRET_KEY"
9553
- },
9554
- AUTH: {
9555
- JWT: {
9556
- ACCESS: {
9557
- SECRET: "JWT_ACCESS_SECRET",
9558
- EXPIRES_IN: "JWT_ACCESS_EXPIRES_IN"
9559
- },
9560
- REFRESH: {
9561
- SECRET: "JWT_REFRESH_SECRET",
9562
- EXPIRES_IN: "JWT_REFRESH_EXPIRES_IN"
9563
- },
9564
- ACTIONS: {
9565
- FORGOT_PASSWORD: "FORGOT_PASSWORD_SECRET",
9566
- CHANGE_EMAIL: "CHANGE_EMAIL_SECRET",
9567
- RESTORE_ACCOUNT: "RESTORE_ACCOUNT_SECRET"
9568
- }
9569
- },
9570
- KEYS: {
9571
- FACE_DESCRIPTOR: "FACE_DESCRIPTOR_KEY",
9572
- USER_PRIVATE: "USER_PRIVATE_KEY"
9573
- }
9574
- },
9575
- OAUTH: {
9576
- GOOGLE: {
9577
- CLIENT_ID: "GOOGLE_CLIENT_ID",
9578
- CLIENT_SECRET: "GOOGLE_CLIENT_SECRET",
9579
- CALLBACK_URL: "GOOGLE_CALLBACK_URL",
9580
- REDIRECT_URL: "GOOGLE_CLIENT_REDIRECT_URL"
9581
- }
9582
- },
9583
- NOTIFICATION: {
9584
- EMAIL: {
9585
- HOST: "EMAIL_HOST",
9586
- USER: "EMAIL_USER",
9587
- PASS: "EMAIL_PASS"
9588
- }
9589
- }
9590
- };
9591
9537
  var COLLECTIONS = {
9592
9538
  AUTH: {
9593
9539
  USER: {
@@ -9625,7 +9571,8 @@ var EXPIRE_DATES = {
9625
9571
  }
9626
9572
  };
9627
9573
  var CACHE_KEYS = {
9628
- USER: (id) => `user:${id}`
9574
+ USER: (id) => `user:${id}`,
9575
+ ACCESS_TOKEN: (token) => `access_token:${token}`
9629
9576
  };
9630
9577
  var COUNTRIES = [
9631
9578
  {
@@ -10159,6 +10106,11 @@ var HttpStatus = /* @__PURE__ */ ((HttpStatus3) => {
10159
10106
  HttpStatus3[HttpStatus3["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
10160
10107
  return HttpStatus3;
10161
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 || {});
10162
10114
 
10163
10115
  // src/constants/server/emial.messages.ts
10164
10116
  var supportMail = "connectfy.team@gmail.com";
@@ -10623,6 +10575,18 @@ function FieldValidator(options) {
10623
10575
  }
10624
10576
  const validator = FIELD_VALIDATOR_REGISTRY[options.type];
10625
10577
  decorators.push(...validator(options));
10578
+ if (options.type === "array" /* ARRAY */ && options.arrayItemType) {
10579
+ const itemValidatorFactory = FIELD_VALIDATOR_REGISTRY[options.arrayItemType];
10580
+ const itemOptions = {
10581
+ ...options,
10582
+ type: options.arrayItemType,
10583
+ validationOptions: {
10584
+ ...options.validationOptions,
10585
+ each: true
10586
+ }
10587
+ };
10588
+ decorators.push(...itemValidatorFactory(itemOptions));
10589
+ }
10626
10590
  if (!options.isOptional) {
10627
10591
  decorators.push(
10628
10592
  (0, import_class_validator.IsNotEmpty)({
@@ -10994,8 +10958,7 @@ __decorateClass([
10994
10958
  FieldValidator({
10995
10959
  type: "array" /* ARRAY */,
10996
10960
  minSize: 1,
10997
- classType: String,
10998
- validationOptions: { each: true }
10961
+ arrayItemType: "uuid" /* UUID */
10999
10962
  })
11000
10963
  ], BaseRemoveAllDto.prototype, "_ids", 2);
11001
10964
 
@@ -11525,7 +11488,6 @@ var BaseRepository = class {
11525
11488
  DELETE_REASON,
11526
11489
  DELETE_REASON_CODE,
11527
11490
  DEVICE_TYPE,
11528
- ENV,
11529
11491
  EXPIRE_DATES,
11530
11492
  ExceptionMessages,
11531
11493
  FIELD_TRANSFORMER_REGISTRY,
@@ -11548,6 +11510,7 @@ var BaseRepository = class {
11548
11510
  PRIVACY_SETTINGS_CHOICE,
11549
11511
  PROVIDER,
11550
11512
  PopulateOption,
11513
+ REDIS_KEYS,
11551
11514
  REDUCER_PATH,
11552
11515
  RESOURCE,
11553
11516
  ROLE,
package/dist/index.d.cts CHANGED
@@ -56,60 +56,6 @@ declare const MICROSERVICE_NAMES: {
56
56
  NOTIFICATION_ACTION_HISTORY: string;
57
57
  };
58
58
  };
59
- declare const ENV: {
60
- CORE: {
61
- APP: {
62
- NODE_ENV: string;
63
- PORT: string;
64
- };
65
- DATABASE: {
66
- MONGO: {
67
- URI: string;
68
- DB_NAME: string;
69
- };
70
- };
71
- };
72
- GATEWAY: {
73
- CLIENT_URL: string;
74
- SESSION_SECRET: string;
75
- };
76
- AUTH: {
77
- JWT: {
78
- ACCESS: {
79
- SECRET: string;
80
- EXPIRES_IN: string;
81
- };
82
- REFRESH: {
83
- SECRET: string;
84
- EXPIRES_IN: string;
85
- };
86
- ACTIONS: {
87
- FORGOT_PASSWORD: string;
88
- CHANGE_EMAIL: string;
89
- RESTORE_ACCOUNT: string;
90
- };
91
- };
92
- KEYS: {
93
- FACE_DESCRIPTOR: string;
94
- USER_PRIVATE: string;
95
- };
96
- };
97
- OAUTH: {
98
- GOOGLE: {
99
- CLIENT_ID: string;
100
- CLIENT_SECRET: string;
101
- CALLBACK_URL: string;
102
- REDIRECT_URL: string;
103
- };
104
- };
105
- NOTIFICATION: {
106
- EMAIL: {
107
- HOST: string;
108
- USER: string;
109
- PASS: string;
110
- };
111
- };
112
- };
113
59
  declare const COLLECTIONS: {
114
60
  AUTH: {
115
61
  USER: {
@@ -148,6 +94,7 @@ declare const EXPIRE_DATES: {
148
94
  };
149
95
  declare const CACHE_KEYS: {
150
96
  USER: (id: string) => string;
97
+ ACCESS_TOKEN: (token: string) => string;
151
98
  };
152
99
  declare const COUNTRIES: ICountry[];
153
100
 
@@ -527,6 +474,10 @@ declare enum HttpStatus {
527
474
  INSUFFICIENT_STORAGE = 507,
528
475
  LOOP_DETECTED = 508
529
476
  }
477
+ declare enum REDIS_KEYS {
478
+ REDIS_CLIENT = "REDIS_CLIENT",
479
+ KEYV_CLIENT = "KEYV_CLIENT"
480
+ }
530
481
 
531
482
  declare const signupVerifyMessage: (firstName: string, lastName: string, verifyCode: string, lang?: LANGUAGE) => string;
532
483
  declare const forgotPasswordMessage: (resetToken: string, lang?: LANGUAGE) => string;
@@ -786,4 +737,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
786
737
  count(query: Record<string, any>): Promise<number>;
787
738
  }
788
739
 
789
- 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, ENV, 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
@@ -56,60 +56,6 @@ declare const MICROSERVICE_NAMES: {
56
56
  NOTIFICATION_ACTION_HISTORY: string;
57
57
  };
58
58
  };
59
- declare const ENV: {
60
- CORE: {
61
- APP: {
62
- NODE_ENV: string;
63
- PORT: string;
64
- };
65
- DATABASE: {
66
- MONGO: {
67
- URI: string;
68
- DB_NAME: string;
69
- };
70
- };
71
- };
72
- GATEWAY: {
73
- CLIENT_URL: string;
74
- SESSION_SECRET: string;
75
- };
76
- AUTH: {
77
- JWT: {
78
- ACCESS: {
79
- SECRET: string;
80
- EXPIRES_IN: string;
81
- };
82
- REFRESH: {
83
- SECRET: string;
84
- EXPIRES_IN: string;
85
- };
86
- ACTIONS: {
87
- FORGOT_PASSWORD: string;
88
- CHANGE_EMAIL: string;
89
- RESTORE_ACCOUNT: string;
90
- };
91
- };
92
- KEYS: {
93
- FACE_DESCRIPTOR: string;
94
- USER_PRIVATE: string;
95
- };
96
- };
97
- OAUTH: {
98
- GOOGLE: {
99
- CLIENT_ID: string;
100
- CLIENT_SECRET: string;
101
- CALLBACK_URL: string;
102
- REDIRECT_URL: string;
103
- };
104
- };
105
- NOTIFICATION: {
106
- EMAIL: {
107
- HOST: string;
108
- USER: string;
109
- PASS: string;
110
- };
111
- };
112
- };
113
59
  declare const COLLECTIONS: {
114
60
  AUTH: {
115
61
  USER: {
@@ -148,6 +94,7 @@ declare const EXPIRE_DATES: {
148
94
  };
149
95
  declare const CACHE_KEYS: {
150
96
  USER: (id: string) => string;
97
+ ACCESS_TOKEN: (token: string) => string;
151
98
  };
152
99
  declare const COUNTRIES: ICountry[];
153
100
 
@@ -527,6 +474,10 @@ declare enum HttpStatus {
527
474
  INSUFFICIENT_STORAGE = 507,
528
475
  LOOP_DETECTED = 508
529
476
  }
477
+ declare enum REDIS_KEYS {
478
+ REDIS_CLIENT = "REDIS_CLIENT",
479
+ KEYV_CLIENT = "KEYV_CLIENT"
480
+ }
530
481
 
531
482
  declare const signupVerifyMessage: (firstName: string, lastName: string, verifyCode: string, lang?: LANGUAGE) => string;
532
483
  declare const forgotPasswordMessage: (resetToken: string, lang?: LANGUAGE) => string;
@@ -786,4 +737,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
786
737
  count(query: Record<string, any>): Promise<number>;
787
738
  }
788
739
 
789
- 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, ENV, 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
@@ -9449,60 +9449,6 @@ var MICROSERVICE_NAMES = {
9449
9449
  NOTIFICATION_ACTION_HISTORY: "NOTIFICATION_ACTION_HISTORY_SERVICE_TCP"
9450
9450
  }
9451
9451
  };
9452
- var ENV = {
9453
- CORE: {
9454
- APP: {
9455
- NODE_ENV: "NODE_ENV",
9456
- PORT: "PORT"
9457
- },
9458
- DATABASE: {
9459
- MONGO: {
9460
- URI: "MONGO_URI",
9461
- DB_NAME: "DB_NAME"
9462
- }
9463
- }
9464
- },
9465
- GATEWAY: {
9466
- CLIENT_URL: "CLIENT_URL",
9467
- SESSION_SECRET: "SESSION_SECRET_KEY"
9468
- },
9469
- AUTH: {
9470
- JWT: {
9471
- ACCESS: {
9472
- SECRET: "JWT_ACCESS_SECRET",
9473
- EXPIRES_IN: "JWT_ACCESS_EXPIRES_IN"
9474
- },
9475
- REFRESH: {
9476
- SECRET: "JWT_REFRESH_SECRET",
9477
- EXPIRES_IN: "JWT_REFRESH_EXPIRES_IN"
9478
- },
9479
- ACTIONS: {
9480
- FORGOT_PASSWORD: "FORGOT_PASSWORD_SECRET",
9481
- CHANGE_EMAIL: "CHANGE_EMAIL_SECRET",
9482
- RESTORE_ACCOUNT: "RESTORE_ACCOUNT_SECRET"
9483
- }
9484
- },
9485
- KEYS: {
9486
- FACE_DESCRIPTOR: "FACE_DESCRIPTOR_KEY",
9487
- USER_PRIVATE: "USER_PRIVATE_KEY"
9488
- }
9489
- },
9490
- OAUTH: {
9491
- GOOGLE: {
9492
- CLIENT_ID: "GOOGLE_CLIENT_ID",
9493
- CLIENT_SECRET: "GOOGLE_CLIENT_SECRET",
9494
- CALLBACK_URL: "GOOGLE_CALLBACK_URL",
9495
- REDIRECT_URL: "GOOGLE_CLIENT_REDIRECT_URL"
9496
- }
9497
- },
9498
- NOTIFICATION: {
9499
- EMAIL: {
9500
- HOST: "EMAIL_HOST",
9501
- USER: "EMAIL_USER",
9502
- PASS: "EMAIL_PASS"
9503
- }
9504
- }
9505
- };
9506
9452
  var COLLECTIONS = {
9507
9453
  AUTH: {
9508
9454
  USER: {
@@ -9540,7 +9486,8 @@ var EXPIRE_DATES = {
9540
9486
  }
9541
9487
  };
9542
9488
  var CACHE_KEYS = {
9543
- USER: (id) => `user:${id}`
9489
+ USER: (id) => `user:${id}`,
9490
+ ACCESS_TOKEN: (token) => `access_token:${token}`
9544
9491
  };
9545
9492
  var COUNTRIES = [
9546
9493
  {
@@ -10074,6 +10021,11 @@ var HttpStatus = /* @__PURE__ */ ((HttpStatus3) => {
10074
10021
  HttpStatus3[HttpStatus3["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
10075
10022
  return HttpStatus3;
10076
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 || {});
10077
10029
 
10078
10030
  // src/constants/server/emial.messages.ts
10079
10031
  var supportMail = "connectfy.team@gmail.com";
@@ -10544,6 +10496,18 @@ function FieldValidator(options) {
10544
10496
  }
10545
10497
  const validator = FIELD_VALIDATOR_REGISTRY[options.type];
10546
10498
  decorators.push(...validator(options));
10499
+ if (options.type === "array" /* ARRAY */ && options.arrayItemType) {
10500
+ const itemValidatorFactory = FIELD_VALIDATOR_REGISTRY[options.arrayItemType];
10501
+ const itemOptions = {
10502
+ ...options,
10503
+ type: options.arrayItemType,
10504
+ validationOptions: {
10505
+ ...options.validationOptions,
10506
+ each: true
10507
+ }
10508
+ };
10509
+ decorators.push(...itemValidatorFactory(itemOptions));
10510
+ }
10547
10511
  if (!options.isOptional) {
10548
10512
  decorators.push(
10549
10513
  IsNotEmpty({
@@ -10951,8 +10915,7 @@ __decorateClass([
10951
10915
  FieldValidator({
10952
10916
  type: "array" /* ARRAY */,
10953
10917
  minSize: 1,
10954
- classType: String,
10955
- validationOptions: { each: true }
10918
+ arrayItemType: "uuid" /* UUID */
10956
10919
  })
10957
10920
  ], BaseRemoveAllDto.prototype, "_ids", 2);
10958
10921
 
@@ -11481,7 +11444,6 @@ export {
11481
11444
  DELETE_REASON,
11482
11445
  DELETE_REASON_CODE,
11483
11446
  DEVICE_TYPE,
11484
- ENV,
11485
11447
  EXPIRE_DATES,
11486
11448
  ExceptionMessages,
11487
11449
  FIELD_TRANSFORMER_REGISTRY,
@@ -11504,6 +11466,7 @@ export {
11504
11466
  PRIVACY_SETTINGS_CHOICE,
11505
11467
  PROVIDER,
11506
11468
  PopulateOption,
11469
+ REDIS_KEYS,
11507
11470
  REDUCER_PATH,
11508
11471
  RESOURCE,
11509
11472
  ROLE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connectfy-shared",
3
- "version": "0.0.83",
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
  },