@steedos/objectql 1.23.42 → 1.23.43

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos/objectql",
3
3
  "private": false,
4
- "version": "1.23.42",
4
+ "version": "1.23.43",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "scripts": {
@@ -18,11 +18,11 @@
18
18
  "@salesforce/dev-config": "^1.4.4",
19
19
  "@salesforce/kit": "^1.0.4",
20
20
  "@salesforce/ts-types": "^1.1.1",
21
- "@steedos/filters": "^1.23.42",
22
- "@steedos/formula": "^1.23.42",
21
+ "@steedos/filters": "^1.23.43",
22
+ "@steedos/formula": "^1.23.43",
23
23
  "@steedos/odata-v4-typeorm": "^1.20.1",
24
- "@steedos/schemas": "^1.23.42",
25
- "@steedos/standard-objects": "^1.23.42",
24
+ "@steedos/schemas": "^1.23.43",
25
+ "@steedos/standard-objects": "^1.23.43",
26
26
  "@types/express": "^4.16.1",
27
27
  "@types/mongodb": "^3.1.22",
28
28
  "@types/node": "^11.10.4",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@salesforce/dev-scripts": "0.3.12",
56
- "@steedos/meteor-bundle-runner": "^1.23.42",
56
+ "@steedos/meteor-bundle-runner": "^1.23.43",
57
57
  "@types/chai": "^4.1.7",
58
58
  "@types/chai-as-promised": "7.1.0",
59
59
  "@types/mocha": "^5.2.6",
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "0566b1152b4dc333ccda4cf1151e7fc14089b2e5"
76
+ "gitHead": "ceb3afe807b1d8e7c86d69d031bee53c86129c0c"
77
77
  }
File without changes
@@ -1,36 +0,0 @@
1
- // import { getObjectFieldFormulaConfigs, getObjectQuotedByFieldFormulaConfigs } from './field_formula';
2
- // import { computeFieldFormulaValue, updateQuotedByObjectFieldFormulaValue } from './core';
3
- // import { SteedosUserSession } from '../types';
4
- // // import { getSessionByUserId } from "@steedos/auth";
5
- // const runCurrentObjectFieldFormulas = async function (userSession?: SteedosUserSession) {
6
- // // console.log("===runCurrentObjectFieldFormulas===", this);
7
- // // 该函数在beforeInsert、beforeUpdate(而不是afterInsert,afterUpdate)中运行
8
- // // 因为不能保证最后一定会成功执行insert/update
9
- // // 所以这里不可以写修改其他记录的代码(比如不可以去修改引用了该对象字段的其他字段公式值),只能修改当前this.doc的字段属性值
10
- // const configs = getObjectFieldFormulaConfigs(this.object_name);
11
- // // const userSession = await getSessionByUserId(this.userId, this.spaceId);
12
- // // const userSession = {};
13
- // for (const config of configs) {
14
- // this.doc[config.field_name] = await computeFieldFormulaValue(this.doc, config, userSession);
15
- // }
16
- // }
17
- // const runQuotedByObjectFieldFormulas = async function () {
18
- // const configs = getObjectQuotedByFieldFormulaConfigs(this.object_name);
19
- // for (const config of configs) {
20
- // await updateQuotedByObjectFieldFormulaValue(this.object_name, this.id, config);
21
- // }
22
- // }
23
- // export const fieldFormulaTriggers = {
24
- // beforeInsert: async function () {
25
- // await runCurrentObjectFieldFormulas.bind(this)();
26
- // },
27
- // beforeUpdate: async function () {
28
- // // const auth = require("@steedos/auth");
29
- // // const userSession = await auth.getSessionByUserId(this.userId, this.spaceId);
30
- // await runCurrentObjectFieldFormulas.bind(this)();
31
- // },
32
- // afterUpdate: async function () {
33
- // await runQuotedByObjectFieldFormulas.bind(this)();
34
- // }
35
- // }
36
- //# sourceMappingURL=triggers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../src/formula/triggers.ts"],"names":[],"mappings":"AACA,wGAAwG;AACxG,4FAA4F;AAC5F,iDAAiD;AACjD,yDAAyD;AAEzD,4FAA4F;AAC5F,mEAAmE;AACnE,sEAAsE;AACtE,sCAAsC;AACtC,0EAA0E;AAC1E,sEAAsE;AACtE,kFAAkF;AAClF,iCAAiC;AACjC,sCAAsC;AACtC,uGAAuG;AACvG,QAAQ;AACR,IAAI;AAEJ,6DAA6D;AAC7D,8EAA8E;AAC9E,sCAAsC;AACtC,0FAA0F;AAC1F,QAAQ;AACR,IAAI;AAEJ,wCAAwC;AACxC,wCAAwC;AACxC,4DAA4D;AAC5D,SAAS;AACT,wCAAwC;AACxC,oDAAoD;AACpD,2FAA2F;AAC3F,4DAA4D;AAC5D,SAAS;AACT,uCAAuC;AACvC,6DAA6D;AAC7D,QAAQ;AACR,IAAI"}
@@ -1,14 +0,0 @@
1
- declare abstract class SteedosObjectRelatedListTypeProperties {
2
- objectName: string;
3
- columns?: [];
4
- filters?: string | Function;
5
- sort?: [];
6
- }
7
- export interface SteedosObjectRelatedListTypeConfig extends SteedosObjectRelatedListTypeProperties {
8
- }
9
- export declare class SteedosObjectRelatedListType extends SteedosObjectRelatedListTypeProperties {
10
- private properties;
11
- constructor(config: SteedosObjectRelatedListTypeConfig);
12
- toConfig(): {};
13
- }
14
- export {};
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- var _ = require("underscore");
5
- var SteedosObjectRelatedListTypeProperties = /** @class */ (function () {
6
- function SteedosObjectRelatedListTypeProperties() {
7
- }
8
- return SteedosObjectRelatedListTypeProperties;
9
- }());
10
- var SteedosObjectRelatedListType = /** @class */ (function (_super) {
11
- tslib_1.__extends(SteedosObjectRelatedListType, _super);
12
- function SteedosObjectRelatedListType(config) {
13
- var _this = _super.call(this) || this;
14
- _this.properties = ['objectName'];
15
- _.each(config, function (value, key) {
16
- if (key != 'object') {
17
- _this[key] = value;
18
- _this.properties.push(key);
19
- }
20
- });
21
- return _this;
22
- }
23
- SteedosObjectRelatedListType.prototype.toConfig = function () {
24
- var _this = this;
25
- var config = {};
26
- this.properties.forEach(function (property) {
27
- config[property] = _this[property];
28
- });
29
- return config;
30
- };
31
- return SteedosObjectRelatedListType;
32
- }(SteedosObjectRelatedListTypeProperties));
33
- exports.SteedosObjectRelatedListType = SteedosObjectRelatedListType;
34
- //# sourceMappingURL=relatedList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"relatedList.js","sourceRoot":"","sources":["../../src/types/relatedList.ts"],"names":[],"mappings":";;;AAAA,8BAAgC;AAEhC;IAAA;IAKA,CAAC;IAAD,6CAAC;AAAD,CAAC,AALD,IAKC;AAID;IAAkD,wDAAsC;IAGpF,sCAAY,MAA0C;QAAtD,YACI,iBAAO,SASV;QAZO,gBAAU,GAAa,CAAC,YAAY,CAAC,CAAA;QAKzC,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,UAAC,KAAU,EAAE,GAAW;YACnC,IAAG,GAAG,IAAI,QAAQ,EAAC;gBACf,KAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;gBACjB,KAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;aAC5B;QACL,CAAC,CAAC,CAAA;;IAEN,CAAC;IAED,+CAAQ,GAAR;QAAA,iBAMC;QALG,IAAI,MAAM,GAAG,EAAE,CAAA;QACf,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,UAAC,QAAQ;YAC7B,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAI,CAAC,QAAQ,CAAC,CAAA;QACrC,CAAC,CAAC,CAAA;QACF,OAAO,MAAM,CAAA;IACjB,CAAC;IAEL,mCAAC;AAAD,CAAC,AAvBD,CAAkD,sCAAsC,GAuBvF;AAvBY,oEAA4B"}