connectfy-shared 0.0.83 → 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 +13 -58
- package/dist/index.d.cts +1 -55
- package/dist/index.d.ts +1 -55
- package/dist/index.mjs +13 -57
- 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,
|
|
@@ -9534,60 +9533,6 @@ var MICROSERVICE_NAMES = {
|
|
|
9534
9533
|
NOTIFICATION_ACTION_HISTORY: "NOTIFICATION_ACTION_HISTORY_SERVICE_TCP"
|
|
9535
9534
|
}
|
|
9536
9535
|
};
|
|
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
9536
|
var COLLECTIONS = {
|
|
9592
9537
|
AUTH: {
|
|
9593
9538
|
USER: {
|
|
@@ -10623,6 +10568,18 @@ function FieldValidator(options) {
|
|
|
10623
10568
|
}
|
|
10624
10569
|
const validator = FIELD_VALIDATOR_REGISTRY[options.type];
|
|
10625
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
|
+
}
|
|
10626
10583
|
if (!options.isOptional) {
|
|
10627
10584
|
decorators.push(
|
|
10628
10585
|
(0, import_class_validator.IsNotEmpty)({
|
|
@@ -10994,8 +10951,7 @@ __decorateClass([
|
|
|
10994
10951
|
FieldValidator({
|
|
10995
10952
|
type: "array" /* ARRAY */,
|
|
10996
10953
|
minSize: 1,
|
|
10997
|
-
|
|
10998
|
-
validationOptions: { each: true }
|
|
10954
|
+
arrayItemType: "uuid" /* UUID */
|
|
10999
10955
|
})
|
|
11000
10956
|
], BaseRemoveAllDto.prototype, "_ids", 2);
|
|
11001
10957
|
|
|
@@ -11525,7 +11481,6 @@ var BaseRepository = class {
|
|
|
11525
11481
|
DELETE_REASON,
|
|
11526
11482
|
DELETE_REASON_CODE,
|
|
11527
11483
|
DEVICE_TYPE,
|
|
11528
|
-
ENV,
|
|
11529
11484
|
EXPIRE_DATES,
|
|
11530
11485
|
ExceptionMessages,
|
|
11531
11486
|
FIELD_TRANSFORMER_REGISTRY,
|
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: {
|
|
@@ -786,4 +732,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
786
732
|
count(query: Record<string, any>): Promise<number>;
|
|
787
733
|
}
|
|
788
734
|
|
|
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,
|
|
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
|
@@ -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: {
|
|
@@ -786,4 +732,4 @@ declare abstract class BaseRepository<TDocument extends Document, TInterface ext
|
|
|
786
732
|
count(query: Record<string, any>): Promise<number>;
|
|
787
733
|
}
|
|
788
734
|
|
|
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,
|
|
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
|
@@ -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: {
|
|
@@ -10544,6 +10490,18 @@ function FieldValidator(options) {
|
|
|
10544
10490
|
}
|
|
10545
10491
|
const validator = FIELD_VALIDATOR_REGISTRY[options.type];
|
|
10546
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
|
+
}
|
|
10547
10505
|
if (!options.isOptional) {
|
|
10548
10506
|
decorators.push(
|
|
10549
10507
|
IsNotEmpty({
|
|
@@ -10951,8 +10909,7 @@ __decorateClass([
|
|
|
10951
10909
|
FieldValidator({
|
|
10952
10910
|
type: "array" /* ARRAY */,
|
|
10953
10911
|
minSize: 1,
|
|
10954
|
-
|
|
10955
|
-
validationOptions: { each: true }
|
|
10912
|
+
arrayItemType: "uuid" /* UUID */
|
|
10956
10913
|
})
|
|
10957
10914
|
], BaseRemoveAllDto.prototype, "_ids", 2);
|
|
10958
10915
|
|
|
@@ -11481,7 +11438,6 @@ export {
|
|
|
11481
11438
|
DELETE_REASON,
|
|
11482
11439
|
DELETE_REASON_CODE,
|
|
11483
11440
|
DEVICE_TYPE,
|
|
11484
|
-
ENV,
|
|
11485
11441
|
EXPIRE_DATES,
|
|
11486
11442
|
ExceptionMessages,
|
|
11487
11443
|
FIELD_TRANSFORMER_REGISTRY,
|