@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.
- package/dist/deps/sequelize/index.d.ts +10 -0
- package/dist/http/utils.js +2 -0
- package/package.json +1 -1
|
@@ -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
|
*/
|
package/dist/http/utils.js
CHANGED
|
@@ -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;
|