connectfy-shared 0.0.82 → 0.0.84
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 +20 -74
- package/dist/index.d.cts +8 -71
- package/dist/index.d.ts +8 -71
- package/dist/index.mjs +20 -73
- package/package.json +1 -1
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,
|
|
@@ -9525,76 +9524,13 @@ var BaseException = class extends import_microservices.RpcException {
|
|
|
9525
9524
|
|
|
9526
9525
|
// src/constants/server/constants.ts
|
|
9527
9526
|
var MICROSERVICE_NAMES = {
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
MESSENGER: {
|
|
9536
|
-
TCP: "MESSENGER_SERVICE_TCP"
|
|
9537
|
-
},
|
|
9538
|
-
RELATIONSHIP: {
|
|
9539
|
-
TCP: "RELATIONSHIP_SERVICE_TCP"
|
|
9540
|
-
},
|
|
9541
|
-
NOTIFICATION_ACTION_HISTORY: {
|
|
9542
|
-
TCP: "NOTIFICATION_ACTION_HISTORY_SERVICE_TCP",
|
|
9543
|
-
KAFKA: "NOTIFICATION_ACTION_HISTORY_SERVICE_KAFKA"
|
|
9544
|
-
}
|
|
9545
|
-
};
|
|
9546
|
-
var ENV = {
|
|
9547
|
-
CORE: {
|
|
9548
|
-
APP: {
|
|
9549
|
-
NODE_ENV: "NODE_ENV",
|
|
9550
|
-
PORT: "PORT"
|
|
9551
|
-
},
|
|
9552
|
-
DATABASE: {
|
|
9553
|
-
MONGO: {
|
|
9554
|
-
URI: "MONGO_URI",
|
|
9555
|
-
DB_NAME: "DB_NAME"
|
|
9556
|
-
}
|
|
9557
|
-
}
|
|
9558
|
-
},
|
|
9559
|
-
GATEWAY: {
|
|
9560
|
-
CLIENT_URL: "CLIENT_URL",
|
|
9561
|
-
SESSION_SECRET: "SESSION_SECRET_KEY"
|
|
9562
|
-
},
|
|
9563
|
-
AUTH: {
|
|
9564
|
-
JWT: {
|
|
9565
|
-
ACCESS: {
|
|
9566
|
-
SECRET: "JWT_ACCESS_SECRET",
|
|
9567
|
-
EXPIRES_IN: "JWT_ACCESS_EXPIRES_IN"
|
|
9568
|
-
},
|
|
9569
|
-
REFRESH: {
|
|
9570
|
-
SECRET: "JWT_REFRESH_SECRET",
|
|
9571
|
-
EXPIRES_IN: "JWT_REFRESH_EXPIRES_IN"
|
|
9572
|
-
},
|
|
9573
|
-
ACTIONS: {
|
|
9574
|
-
FORGOT_PASSWORD: "FORGOT_PASSWORD_SECRET",
|
|
9575
|
-
CHANGE_EMAIL: "CHANGE_EMAIL_SECRET",
|
|
9576
|
-
RESTORE_ACCOUNT: "RESTORE_ACCOUNT_SECRET"
|
|
9577
|
-
}
|
|
9578
|
-
},
|
|
9579
|
-
KEYS: {
|
|
9580
|
-
FACE_DESCRIPTOR: "FACE_DESCRIPTOR_KEY",
|
|
9581
|
-
USER_PRIVATE: "USER_PRIVATE_KEY"
|
|
9582
|
-
}
|
|
9583
|
-
},
|
|
9584
|
-
OAUTH: {
|
|
9585
|
-
GOOGLE: {
|
|
9586
|
-
CLIENT_ID: "GOOGLE_CLIENT_ID",
|
|
9587
|
-
CLIENT_SECRET: "GOOGLE_CLIENT_SECRET",
|
|
9588
|
-
CALLBACK_URL: "GOOGLE_CALLBACK_URL",
|
|
9589
|
-
REDIRECT_URL: "GOOGLE_CLIENT_REDIRECT_URL"
|
|
9590
|
-
}
|
|
9591
|
-
},
|
|
9592
|
-
NOTIFICATION: {
|
|
9593
|
-
EMAIL: {
|
|
9594
|
-
HOST: "EMAIL_HOST",
|
|
9595
|
-
USER: "EMAIL_USER",
|
|
9596
|
-
PASS: "EMAIL_PASS"
|
|
9597
|
-
}
|
|
9527
|
+
KAFKA: "KAFKA_CONNECTIONS",
|
|
9528
|
+
TCP: {
|
|
9529
|
+
ACCOUNT: "ACCOUNT_SERVICE_TCP",
|
|
9530
|
+
AUTH: "AUTH_SERVICE_TCP",
|
|
9531
|
+
MESSENGER: "MESSENGER_SERVICE_TCP",
|
|
9532
|
+
RELATIONSHIP: "RELATIONSHIP_SERVICE_TCP",
|
|
9533
|
+
NOTIFICATION_ACTION_HISTORY: "NOTIFICATION_ACTION_HISTORY_SERVICE_TCP"
|
|
9598
9534
|
}
|
|
9599
9535
|
};
|
|
9600
9536
|
var COLLECTIONS = {
|
|
@@ -10632,6 +10568,18 @@ function FieldValidator(options) {
|
|
|
10632
10568
|
}
|
|
10633
10569
|
const validator = FIELD_VALIDATOR_REGISTRY[options.type];
|
|
10634
10570
|
decorators.push(...validator(options));
|
|
10571
|
+
if (options.type === "array" /* ARRAY */ && options.arrayItemType) {
|
|
10572
|
+
const itemValidatorFactory = FIELD_VALIDATOR_REGISTRY[options.arrayItemType];
|
|
10573
|
+
const itemOptions = {
|
|
10574
|
+
...options,
|
|
10575
|
+
type: options.arrayItemType,
|
|
10576
|
+
validationOptions: {
|
|
10577
|
+
...options.validationOptions,
|
|
10578
|
+
each: true
|
|
10579
|
+
}
|
|
10580
|
+
};
|
|
10581
|
+
decorators.push(...itemValidatorFactory(itemOptions));
|
|
10582
|
+
}
|
|
10635
10583
|
if (!options.isOptional) {
|
|
10636
10584
|
decorators.push(
|
|
10637
10585
|
(0, import_class_validator.IsNotEmpty)({
|
|
@@ -11003,8 +10951,7 @@ __decorateClass([
|
|
|
11003
10951
|
FieldValidator({
|
|
11004
10952
|
type: "array" /* ARRAY */,
|
|
11005
10953
|
minSize: 1,
|
|
11006
|
-
|
|
11007
|
-
validationOptions: { each: true }
|
|
10954
|
+
arrayItemType: "uuid" /* UUID */
|
|
11008
10955
|
})
|
|
11009
10956
|
], BaseRemoveAllDto.prototype, "_ids", 2);
|
|
11010
10957
|
|
|
@@ -11534,7 +11481,6 @@ var BaseRepository = class {
|
|
|
11534
11481
|
DELETE_REASON,
|
|
11535
11482
|
DELETE_REASON_CODE,
|
|
11536
11483
|
DEVICE_TYPE,
|
|
11537
|
-
ENV,
|
|
11538
11484
|
EXPIRE_DATES,
|
|
11539
11485
|
ExceptionMessages,
|
|
11540
11486
|
FIELD_TRANSFORMER_REGISTRY,
|
package/dist/index.d.cts
CHANGED
|
@@ -47,76 +47,13 @@ interface IBaseRepositoryInterface {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
declare const MICROSERVICE_NAMES: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
MESSENGER: {
|
|
58
|
-
TCP: string;
|
|
59
|
-
};
|
|
60
|
-
RELATIONSHIP: {
|
|
61
|
-
TCP: string;
|
|
62
|
-
};
|
|
63
|
-
NOTIFICATION_ACTION_HISTORY: {
|
|
64
|
-
TCP: string;
|
|
65
|
-
KAFKA: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
declare const ENV: {
|
|
69
|
-
CORE: {
|
|
70
|
-
APP: {
|
|
71
|
-
NODE_ENV: string;
|
|
72
|
-
PORT: string;
|
|
73
|
-
};
|
|
74
|
-
DATABASE: {
|
|
75
|
-
MONGO: {
|
|
76
|
-
URI: string;
|
|
77
|
-
DB_NAME: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
GATEWAY: {
|
|
82
|
-
CLIENT_URL: string;
|
|
83
|
-
SESSION_SECRET: string;
|
|
84
|
-
};
|
|
85
|
-
AUTH: {
|
|
86
|
-
JWT: {
|
|
87
|
-
ACCESS: {
|
|
88
|
-
SECRET: string;
|
|
89
|
-
EXPIRES_IN: string;
|
|
90
|
-
};
|
|
91
|
-
REFRESH: {
|
|
92
|
-
SECRET: string;
|
|
93
|
-
EXPIRES_IN: string;
|
|
94
|
-
};
|
|
95
|
-
ACTIONS: {
|
|
96
|
-
FORGOT_PASSWORD: string;
|
|
97
|
-
CHANGE_EMAIL: string;
|
|
98
|
-
RESTORE_ACCOUNT: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
KEYS: {
|
|
102
|
-
FACE_DESCRIPTOR: string;
|
|
103
|
-
USER_PRIVATE: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
OAUTH: {
|
|
107
|
-
GOOGLE: {
|
|
108
|
-
CLIENT_ID: string;
|
|
109
|
-
CLIENT_SECRET: string;
|
|
110
|
-
CALLBACK_URL: string;
|
|
111
|
-
REDIRECT_URL: string;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
NOTIFICATION: {
|
|
115
|
-
EMAIL: {
|
|
116
|
-
HOST: string;
|
|
117
|
-
USER: string;
|
|
118
|
-
PASS: string;
|
|
119
|
-
};
|
|
50
|
+
KAFKA: string;
|
|
51
|
+
TCP: {
|
|
52
|
+
ACCOUNT: string;
|
|
53
|
+
AUTH: string;
|
|
54
|
+
MESSENGER: string;
|
|
55
|
+
RELATIONSHIP: string;
|
|
56
|
+
NOTIFICATION_ACTION_HISTORY: string;
|
|
120
57
|
};
|
|
121
58
|
};
|
|
122
59
|
declare const COLLECTIONS: {
|
|
@@ -795,4 +732,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
795
732
|
count(query: Record<string, any>): Promise<number>;
|
|
796
733
|
}
|
|
797
734
|
|
|
798
|
-
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,
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -47,76 +47,13 @@ interface IBaseRepositoryInterface {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
declare const MICROSERVICE_NAMES: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
MESSENGER: {
|
|
58
|
-
TCP: string;
|
|
59
|
-
};
|
|
60
|
-
RELATIONSHIP: {
|
|
61
|
-
TCP: string;
|
|
62
|
-
};
|
|
63
|
-
NOTIFICATION_ACTION_HISTORY: {
|
|
64
|
-
TCP: string;
|
|
65
|
-
KAFKA: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
declare const ENV: {
|
|
69
|
-
CORE: {
|
|
70
|
-
APP: {
|
|
71
|
-
NODE_ENV: string;
|
|
72
|
-
PORT: string;
|
|
73
|
-
};
|
|
74
|
-
DATABASE: {
|
|
75
|
-
MONGO: {
|
|
76
|
-
URI: string;
|
|
77
|
-
DB_NAME: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
GATEWAY: {
|
|
82
|
-
CLIENT_URL: string;
|
|
83
|
-
SESSION_SECRET: string;
|
|
84
|
-
};
|
|
85
|
-
AUTH: {
|
|
86
|
-
JWT: {
|
|
87
|
-
ACCESS: {
|
|
88
|
-
SECRET: string;
|
|
89
|
-
EXPIRES_IN: string;
|
|
90
|
-
};
|
|
91
|
-
REFRESH: {
|
|
92
|
-
SECRET: string;
|
|
93
|
-
EXPIRES_IN: string;
|
|
94
|
-
};
|
|
95
|
-
ACTIONS: {
|
|
96
|
-
FORGOT_PASSWORD: string;
|
|
97
|
-
CHANGE_EMAIL: string;
|
|
98
|
-
RESTORE_ACCOUNT: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
KEYS: {
|
|
102
|
-
FACE_DESCRIPTOR: string;
|
|
103
|
-
USER_PRIVATE: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
OAUTH: {
|
|
107
|
-
GOOGLE: {
|
|
108
|
-
CLIENT_ID: string;
|
|
109
|
-
CLIENT_SECRET: string;
|
|
110
|
-
CALLBACK_URL: string;
|
|
111
|
-
REDIRECT_URL: string;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
NOTIFICATION: {
|
|
115
|
-
EMAIL: {
|
|
116
|
-
HOST: string;
|
|
117
|
-
USER: string;
|
|
118
|
-
PASS: string;
|
|
119
|
-
};
|
|
50
|
+
KAFKA: string;
|
|
51
|
+
TCP: {
|
|
52
|
+
ACCOUNT: string;
|
|
53
|
+
AUTH: string;
|
|
54
|
+
MESSENGER: string;
|
|
55
|
+
RELATIONSHIP: string;
|
|
56
|
+
NOTIFICATION_ACTION_HISTORY: string;
|
|
120
57
|
};
|
|
121
58
|
};
|
|
122
59
|
declare const COLLECTIONS: {
|
|
@@ -795,4 +732,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
795
732
|
count(query: Record<string, any>): Promise<number>;
|
|
796
733
|
}
|
|
797
734
|
|
|
798
|
-
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,
|
|
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -9440,76 +9440,13 @@ var BaseException = class extends RpcException {
|
|
|
9440
9440
|
|
|
9441
9441
|
// src/constants/server/constants.ts
|
|
9442
9442
|
var MICROSERVICE_NAMES = {
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
MESSENGER: {
|
|
9451
|
-
TCP: "MESSENGER_SERVICE_TCP"
|
|
9452
|
-
},
|
|
9453
|
-
RELATIONSHIP: {
|
|
9454
|
-
TCP: "RELATIONSHIP_SERVICE_TCP"
|
|
9455
|
-
},
|
|
9456
|
-
NOTIFICATION_ACTION_HISTORY: {
|
|
9457
|
-
TCP: "NOTIFICATION_ACTION_HISTORY_SERVICE_TCP",
|
|
9458
|
-
KAFKA: "NOTIFICATION_ACTION_HISTORY_SERVICE_KAFKA"
|
|
9459
|
-
}
|
|
9460
|
-
};
|
|
9461
|
-
var ENV = {
|
|
9462
|
-
CORE: {
|
|
9463
|
-
APP: {
|
|
9464
|
-
NODE_ENV: "NODE_ENV",
|
|
9465
|
-
PORT: "PORT"
|
|
9466
|
-
},
|
|
9467
|
-
DATABASE: {
|
|
9468
|
-
MONGO: {
|
|
9469
|
-
URI: "MONGO_URI",
|
|
9470
|
-
DB_NAME: "DB_NAME"
|
|
9471
|
-
}
|
|
9472
|
-
}
|
|
9473
|
-
},
|
|
9474
|
-
GATEWAY: {
|
|
9475
|
-
CLIENT_URL: "CLIENT_URL",
|
|
9476
|
-
SESSION_SECRET: "SESSION_SECRET_KEY"
|
|
9477
|
-
},
|
|
9478
|
-
AUTH: {
|
|
9479
|
-
JWT: {
|
|
9480
|
-
ACCESS: {
|
|
9481
|
-
SECRET: "JWT_ACCESS_SECRET",
|
|
9482
|
-
EXPIRES_IN: "JWT_ACCESS_EXPIRES_IN"
|
|
9483
|
-
},
|
|
9484
|
-
REFRESH: {
|
|
9485
|
-
SECRET: "JWT_REFRESH_SECRET",
|
|
9486
|
-
EXPIRES_IN: "JWT_REFRESH_EXPIRES_IN"
|
|
9487
|
-
},
|
|
9488
|
-
ACTIONS: {
|
|
9489
|
-
FORGOT_PASSWORD: "FORGOT_PASSWORD_SECRET",
|
|
9490
|
-
CHANGE_EMAIL: "CHANGE_EMAIL_SECRET",
|
|
9491
|
-
RESTORE_ACCOUNT: "RESTORE_ACCOUNT_SECRET"
|
|
9492
|
-
}
|
|
9493
|
-
},
|
|
9494
|
-
KEYS: {
|
|
9495
|
-
FACE_DESCRIPTOR: "FACE_DESCRIPTOR_KEY",
|
|
9496
|
-
USER_PRIVATE: "USER_PRIVATE_KEY"
|
|
9497
|
-
}
|
|
9498
|
-
},
|
|
9499
|
-
OAUTH: {
|
|
9500
|
-
GOOGLE: {
|
|
9501
|
-
CLIENT_ID: "GOOGLE_CLIENT_ID",
|
|
9502
|
-
CLIENT_SECRET: "GOOGLE_CLIENT_SECRET",
|
|
9503
|
-
CALLBACK_URL: "GOOGLE_CALLBACK_URL",
|
|
9504
|
-
REDIRECT_URL: "GOOGLE_CLIENT_REDIRECT_URL"
|
|
9505
|
-
}
|
|
9506
|
-
},
|
|
9507
|
-
NOTIFICATION: {
|
|
9508
|
-
EMAIL: {
|
|
9509
|
-
HOST: "EMAIL_HOST",
|
|
9510
|
-
USER: "EMAIL_USER",
|
|
9511
|
-
PASS: "EMAIL_PASS"
|
|
9512
|
-
}
|
|
9443
|
+
KAFKA: "KAFKA_CONNECTIONS",
|
|
9444
|
+
TCP: {
|
|
9445
|
+
ACCOUNT: "ACCOUNT_SERVICE_TCP",
|
|
9446
|
+
AUTH: "AUTH_SERVICE_TCP",
|
|
9447
|
+
MESSENGER: "MESSENGER_SERVICE_TCP",
|
|
9448
|
+
RELATIONSHIP: "RELATIONSHIP_SERVICE_TCP",
|
|
9449
|
+
NOTIFICATION_ACTION_HISTORY: "NOTIFICATION_ACTION_HISTORY_SERVICE_TCP"
|
|
9513
9450
|
}
|
|
9514
9451
|
};
|
|
9515
9452
|
var COLLECTIONS = {
|
|
@@ -10553,6 +10490,18 @@ function FieldValidator(options) {
|
|
|
10553
10490
|
}
|
|
10554
10491
|
const validator = FIELD_VALIDATOR_REGISTRY[options.type];
|
|
10555
10492
|
decorators.push(...validator(options));
|
|
10493
|
+
if (options.type === "array" /* ARRAY */ && options.arrayItemType) {
|
|
10494
|
+
const itemValidatorFactory = FIELD_VALIDATOR_REGISTRY[options.arrayItemType];
|
|
10495
|
+
const itemOptions = {
|
|
10496
|
+
...options,
|
|
10497
|
+
type: options.arrayItemType,
|
|
10498
|
+
validationOptions: {
|
|
10499
|
+
...options.validationOptions,
|
|
10500
|
+
each: true
|
|
10501
|
+
}
|
|
10502
|
+
};
|
|
10503
|
+
decorators.push(...itemValidatorFactory(itemOptions));
|
|
10504
|
+
}
|
|
10556
10505
|
if (!options.isOptional) {
|
|
10557
10506
|
decorators.push(
|
|
10558
10507
|
IsNotEmpty({
|
|
@@ -10960,8 +10909,7 @@ __decorateClass([
|
|
|
10960
10909
|
FieldValidator({
|
|
10961
10910
|
type: "array" /* ARRAY */,
|
|
10962
10911
|
minSize: 1,
|
|
10963
|
-
|
|
10964
|
-
validationOptions: { each: true }
|
|
10912
|
+
arrayItemType: "uuid" /* UUID */
|
|
10965
10913
|
})
|
|
10966
10914
|
], BaseRemoveAllDto.prototype, "_ids", 2);
|
|
10967
10915
|
|
|
@@ -11490,7 +11438,6 @@ export {
|
|
|
11490
11438
|
DELETE_REASON,
|
|
11491
11439
|
DELETE_REASON_CODE,
|
|
11492
11440
|
DEVICE_TYPE,
|
|
11493
|
-
ENV,
|
|
11494
11441
|
EXPIRE_DATES,
|
|
11495
11442
|
ExceptionMessages,
|
|
11496
11443
|
FIELD_TRANSFORMER_REGISTRY,
|