@steedos/standard-object-database 2.5.17-beta.2 → 2.5.17-beta.4

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.
@@ -60,9 +60,7 @@ fields:
60
60
  is_wide: true
61
61
  required: true
62
62
  defaultValue: |-
63
- // _ : lodash
64
- // moment: moment
65
- // validator: validator
63
+ // global: {_:lodash, moment, validator, filters}
66
64
  // ctx
67
65
  // objects
68
66
  // services
@@ -36,10 +36,8 @@ module.exports = {
36
36
  objectsTypes = objectsTypes + '}'
37
37
 
38
38
  return `
39
- declare var _: any;
40
- declare var moment: any;
41
- declare var validator: any;
42
- declare var Filters: any;
39
+
40
+ declare var global = {_: any, moment: any, validator: any, filters: any};
43
41
 
44
42
  declare type TriggerParams = {
45
43
  isInsert?: boolean;
@@ -76,7 +74,7 @@ module.exports = {
76
74
  logger: any;
77
75
  metadata: any;
78
76
  },
79
- getObject(objectName: string): any;
77
+ getObject(objectName: string): SteedosObjectType;
80
78
  getUser(userId: string, spaceId: string): Promise<SteedosUserSession>;
81
79
  makeNewID(): string;
82
80
  };
@@ -125,6 +123,7 @@ module.exports = {
125
123
  directUpdate(id: SteedosIDType, doc: Dictionary<any>, userSession?: SteedosUserSession): Promise<any>;
126
124
  directDelete(id: SteedosIDType, userSession?: SteedosUserSession): Promise<any>;
127
125
  count(query: SteedosQueryOptions, userSession?: SteedosUserSession): Promise<any>;
126
+ _makeNewID(): Promise<any>;
128
127
  }
129
128
  ${objectsTypes}
130
129
  ${servicesTypes}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.5.17-beta.2",
3
+ "version": "2.5.17-beta.4",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -15,5 +15,5 @@
15
15
  },
16
16
  "repository": {},
17
17
  "license": "MIT",
18
- "gitHead": "e66767a9214d49a229341a37f1d9b18737b25bd9"
18
+ "gitHead": "627c7718c27a375320941bdb1cb774c280991f54"
19
19
  }