identity-admin 1.22.1 → 1.22.3

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.
@@ -126,7 +126,7 @@ class ResourceGenerator {
126
126
  if (!resource.properties.defaultrowsPerPage) {
127
127
  modifiedResource.properties.defaultrowsPerPage =
128
128
  modelConfiguration && modelConfiguration.defaultrowsPerPage
129
- ? modelConfiguration.defaultrowsPerPage
129
+ ? +modelConfiguration.defaultrowsPerPage
130
130
  : configurations && configurations.defaultRowsPerPage
131
131
  ? configurations.defaultRowsPerPage
132
132
  : 10;
@@ -4,10 +4,10 @@ export declare enum RowArrangeType {
4
4
  DESCENDING = "desc"
5
5
  }
6
6
  export declare enum RowsPerPageOptions {
7
- FIVE = 5,
8
- TEN = 10,
9
- TWENTY_FIVE = 25,
10
- FIFTY = 50,
11
- ONE_HUNDRED = 100
7
+ FIVE = "5",
8
+ TEN = "10",
9
+ TWENTY_FIVE = "25",
10
+ FIFTY = "50",
11
+ ONE_HUNDRED = "100"
12
12
  }
13
13
  export declare function getModelConfiguartionSchema(schemaOptions: SchemaOptions): Schema;
@@ -9,11 +9,11 @@ var RowArrangeType;
9
9
  })(RowArrangeType = exports.RowArrangeType || (exports.RowArrangeType = {}));
10
10
  var RowsPerPageOptions;
11
11
  (function (RowsPerPageOptions) {
12
- RowsPerPageOptions[RowsPerPageOptions["FIVE"] = 5] = "FIVE";
13
- RowsPerPageOptions[RowsPerPageOptions["TEN"] = 10] = "TEN";
14
- RowsPerPageOptions[RowsPerPageOptions["TWENTY_FIVE"] = 25] = "TWENTY_FIVE";
15
- RowsPerPageOptions[RowsPerPageOptions["FIFTY"] = 50] = "FIFTY";
16
- RowsPerPageOptions[RowsPerPageOptions["ONE_HUNDRED"] = 100] = "ONE_HUNDRED";
12
+ RowsPerPageOptions["FIVE"] = "5";
13
+ RowsPerPageOptions["TEN"] = "10";
14
+ RowsPerPageOptions["TWENTY_FIVE"] = "25";
15
+ RowsPerPageOptions["FIFTY"] = "50";
16
+ RowsPerPageOptions["ONE_HUNDRED"] = "100";
17
17
  })(RowsPerPageOptions = exports.RowsPerPageOptions || (exports.RowsPerPageOptions = {}));
18
18
  function getModelConfiguartionSchema(schemaOptions) {
19
19
  return new mongoose_1.Schema({
@@ -36,7 +36,7 @@ function getModelConfiguartionSchema(schemaOptions) {
36
36
  required: false,
37
37
  },
38
38
  defaultrowsPerPage: {
39
- type: Number,
39
+ type: String,
40
40
  enum: Object.values(RowsPerPageOptions),
41
41
  required: false,
42
42
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin",
3
- "version": "1.22.1",
3
+ "version": "1.22.3",
4
4
  "description": "",
5
5
  "main": "lib/Dashboard.js",
6
6
  "types": "lib/Dashbord.d.ts",