identity-admin 1.28.11 → 1.28.13
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/lib/helpers/AdminNotifications/AdminNotificationCreation.d.ts +1 -1
- package/lib/helpers/AdminNotifications/AdminNotificationFetcher.d.ts +2 -2
- package/lib/helpers/ResourceHelper.js +2 -0
- package/lib/models/adminNotification/IAdminNotification.d.ts +1 -1
- package/lib/types/IResourceFile.d.ts +5 -0
- package/package.json +1 -1
|
@@ -45,7 +45,7 @@ export interface IAdminNotificationCreationProps {
|
|
|
45
45
|
targetIcon?: string;
|
|
46
46
|
targetName?: string;
|
|
47
47
|
hideCheckNow?: boolean;
|
|
48
|
-
additionalData?:
|
|
48
|
+
additionalData?: Record<string, any>;
|
|
49
49
|
}
|
|
50
50
|
export declare class AdminNotificationCreation {
|
|
51
51
|
static insert(notification: IAdminNotificationCreationProps): Promise<import("../../models/adminNotification/IAdminNotification").IAdminNotificationDocument & Required<{
|
|
@@ -40,7 +40,7 @@ export interface IMappedAdminNotification {
|
|
|
40
40
|
targetName?: string;
|
|
41
41
|
hideCheckNow?: boolean;
|
|
42
42
|
message?: string;
|
|
43
|
-
additionalData?:
|
|
43
|
+
additionalData?: Record<string, any>;
|
|
44
44
|
}
|
|
45
45
|
export declare class AdminNotificationFetcher {
|
|
46
46
|
static fetchNotifications(): Promise<{
|
|
@@ -58,6 +58,6 @@ export declare class AdminNotificationFetcher {
|
|
|
58
58
|
targetName: string | undefined;
|
|
59
59
|
hideCheckNow: boolean | undefined;
|
|
60
60
|
message: string | undefined;
|
|
61
|
-
additionalData:
|
|
61
|
+
additionalData: Record<string, any> | undefined;
|
|
62
62
|
}[]>;
|
|
63
63
|
}
|
|
@@ -53,6 +53,8 @@ class ResourcesHelper {
|
|
|
53
53
|
static prepareProperties(properties, modelName, model, resource) {
|
|
54
54
|
var preparedProperties = [];
|
|
55
55
|
properties.forEach((key) => {
|
|
56
|
+
if (!key)
|
|
57
|
+
return;
|
|
56
58
|
if (model[key]) {
|
|
57
59
|
// const refCheck = model[key].type === FieldTypes.REFERENCE
|
|
58
60
|
// var path = undefined
|
|
@@ -24,7 +24,7 @@ export interface IAdminNotificationProps {
|
|
|
24
24
|
targetIcon?: string;
|
|
25
25
|
targetName?: string;
|
|
26
26
|
hideCheckNow?: boolean;
|
|
27
|
-
additionalData?:
|
|
27
|
+
additionalData?: Record<string, any>;
|
|
28
28
|
}
|
|
29
29
|
export interface IAdminNotificationDocument extends IAdminNotificationProps, Document {
|
|
30
30
|
_id: Types.ObjectId;
|
|
@@ -376,6 +376,11 @@ export interface IFieldValue {
|
|
|
376
376
|
* @default undefined
|
|
377
377
|
*/
|
|
378
378
|
relatedFields?: string[];
|
|
379
|
+
/**
|
|
380
|
+
* Used to add the disableImageOptimization option in the field. Only used when the type of the field is image
|
|
381
|
+
* @default false
|
|
382
|
+
*/
|
|
383
|
+
disableImageOptimization?: boolean;
|
|
379
384
|
/**
|
|
380
385
|
* Only used if the field type is REFERENCE. Used to filter the list of referenced items.
|
|
381
386
|
*/
|