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.
@@ -45,7 +45,7 @@ export interface IAdminNotificationCreationProps {
45
45
  targetIcon?: string;
46
46
  targetName?: string;
47
47
  hideCheckNow?: boolean;
48
- additionalData?: Map<string, any>;
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?: Map<string, any>;
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: Map<string, any> | undefined;
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?: Map<string, any>;
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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin",
3
- "version": "1.28.11",
3
+ "version": "1.28.13",
4
4
  "description": "",
5
5
  "main": "lib/Dashboard.js",
6
6
  "types": "lib/Dashbord.d.ts",