@domain.js/main 0.3.20 → 0.3.21

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.
@@ -24,6 +24,16 @@ export interface ModelSort<Fields extends string> {
24
24
  allow: Fields[];
25
25
  defaultDirection?: "DESC" | "ASC";
26
26
  }
27
+ /** Model 上的 stats 设定类型 */
28
+ export interface ModelStats<Fields extends string> {
29
+ dimensions?: Record<Fields, string>;
30
+ metrics: Record<string, string>;
31
+ pagination?: {
32
+ maxResults: number;
33
+ maxStartIndex: number;
34
+ maxResultsLimit: number;
35
+ };
36
+ }
27
37
  /**
28
38
  * Model 基类
29
39
  */
@@ -122,6 +122,8 @@ function Utils(cnf) {
122
122
  if (params[k] && lodash_1.default.isString(params[k]))
123
123
  params[k] = params[k].split(",");
124
124
  }
125
+ if (params.__files)
126
+ throw Error("Params.__files disallow assignment");
125
127
  if (lodash_1.default.size(req.files))
126
128
  params.__files = req.files;
127
129
  return params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domain.js/main",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "description": "DDD framework",
5
5
  "main": "dist/index.js",
6
6
  "bin": {