@steedos/objectql 2.3.0-beta.9 → 2.3.1-beta.1
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/lib/actions/workflow_notifications.js +4 -4
- package/lib/actions/workflow_notifications.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/services/helpers/graphql/consts.d.ts +1 -0
- package/lib/services/helpers/graphql/consts.js +2 -1
- package/lib/services/helpers/graphql/consts.js.map +1 -1
- package/lib/services/helpers/graphql/index.js +490 -74
- package/lib/services/helpers/graphql/index.js.map +1 -1
- package/lib/types/datasource.js +2 -1
- package/lib/types/datasource.js.map +1 -1
- package/lib/types/object.js.map +1 -1
- package/package.json +13 -13
|
@@ -11,7 +11,7 @@ function runWorkflowNotifyActions(ids, recordId, userSession) {
|
|
|
11
11
|
return tslib_1.__generator(this, function (_b) {
|
|
12
12
|
switch (_b.label) {
|
|
13
13
|
case 0:
|
|
14
|
-
if (_.isEmpty(ids) || _.isEmpty(recordId)
|
|
14
|
+
if (_.isEmpty(ids) || _.isEmpty(recordId)) {
|
|
15
15
|
return [2];
|
|
16
16
|
}
|
|
17
17
|
filters = [['name', 'in', ids], 'or', ['_id', 'in', ids]];
|
|
@@ -57,7 +57,7 @@ function runWorkflowNotifyAction(workflowNotification, recordId, userSession) {
|
|
|
57
57
|
return tslib_1.__generator(this, function (_b) {
|
|
58
58
|
switch (_b.label) {
|
|
59
59
|
case 0:
|
|
60
|
-
if (_.isEmpty(workflowNotification) || _.isEmpty(recordId)
|
|
60
|
+
if (_.isEmpty(workflowNotification) || _.isEmpty(recordId)) {
|
|
61
61
|
return [2];
|
|
62
62
|
}
|
|
63
63
|
return [4, (0, index_1.getObject)(workflowNotification.object_name).findOne(recordId, null)];
|
|
@@ -66,8 +66,8 @@ function runWorkflowNotifyAction(workflowNotification, recordId, userSession) {
|
|
|
66
66
|
objectName = workflowNotification.object_name;
|
|
67
67
|
assignedUsers = workflowNotification.assigned_users;
|
|
68
68
|
assignedUserField = workflowNotification.assigned_user_field;
|
|
69
|
-
userId =
|
|
70
|
-
spaceId =
|
|
69
|
+
userId = record.owner;
|
|
70
|
+
spaceId = record.space;
|
|
71
71
|
return [4, (0, index_1.computeFormula)(workflowNotification.title, objectName, recordId, userSession)];
|
|
72
72
|
case 2:
|
|
73
73
|
msgName = _b.sent();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow_notifications.js","sourceRoot":"","sources":["../../src/actions/workflow_notifications.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"workflow_notifications.js","sourceRoot":"","sources":["../../src/actions/workflow_notifications.ts"],"names":[],"mappings":";;;;AAOA,kCAAqD;AAIrD,8BAAiC;AAUjC,SAAsB,wBAAwB,CAAC,GAAkB,EAAE,QAAa,EAAE,WAAgB;;;;;;;oBAC9F,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;wBACvC,WAAO;qBACV;oBACG,OAAO,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,EAAC,IAAI,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;oBACzC,WAAM,IAAA,iBAAS,EAAC,wBAAwB,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAA;;oBAApF,aAAa,GAAG,SAAoE;;;;oBACvE,kBAAA,iBAAA,aAAa,CAAA;;;;oBAAnB,EAAE;oBACT,WAAM,uBAAuB,CAAC,EAAE,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAA;;oBAAxD,SAAwD,CAAC;;;;;;;;;;;;;;;;wBAE7D,WAAO;;;;CACV;AAVD,4DAUC;AAQD,SAAsB,uBAAuB,CAAC,oBAA0C,EAAE,QAAa,EAAE,WAAgB;;;;;;;oB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,EAAE;;4BAC/B,KAAwB,sBAAA,iBAAA,iBAAiB,CAAA,uIAAE;gCAAhC,SAAS;gCAChB,IAAI,MAAM,CAAC,SAAS,CAAC,EAAE;oCACnB,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;iCAC9B;6BACJ;;;;;;;;;qBACJ;oBAED,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;oBAO3B,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;;;;;CACjD;AAhDD,0DAgDC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -16,4 +16,5 @@ export * from './metadata-register/restrictionRules';
|
|
|
16
16
|
export * from './metadata-register/permissionFields';
|
|
17
17
|
export * from './metadata-register/process';
|
|
18
18
|
export * from './metadata-register/processTrigger';
|
|
19
|
+
export { getQueryFields as getGraphqlFields } from './services/helpers/graphql/getQueryFields';
|
|
19
20
|
export declare const broker: Broker;
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.broker = void 0;
|
|
3
|
+
exports.broker = exports.getGraphqlFields = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var broker_1 = require("./broker");
|
|
6
6
|
tslib_1.__exportStar(require("./types"), exports);
|
|
@@ -20,5 +20,7 @@ tslib_1.__exportStar(require("./metadata-register/restrictionRules"), exports);
|
|
|
20
20
|
tslib_1.__exportStar(require("./metadata-register/permissionFields"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./metadata-register/process"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./metadata-register/processTrigger"), exports);
|
|
23
|
+
var getQueryFields_1 = require("./services/helpers/graphql/getQueryFields");
|
|
24
|
+
Object.defineProperty(exports, "getGraphqlFields", { enumerable: true, get: function () { return getQueryFields_1.getQueryFields; } });
|
|
23
25
|
exports.broker = new broker_1.Broker();
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,mCAAiC;AASjC,kDAAuB;AACvB,mDAAwB;AACxB,iDAAsB;AACtB,oDAAyB;AACzB,oDAAyB;AACzB,mDAAwB;AACxB,oDAAyB;AACzB,yDAA8B;AAC9B,oEAAyC;AACzC,oEAAyC;AACzC,mEAAwC;AACxC,kEAAuC;AACvC,yEAA8C;AAC9C,+EAAoD;AACpD,+EAAoD;AACpD,sEAA2C;AAC3C,6EAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,mCAAiC;AASjC,kDAAuB;AACvB,mDAAwB;AACxB,iDAAsB;AACtB,oDAAyB;AACzB,oDAAyB;AACzB,mDAAwB;AACxB,oDAAyB;AACzB,yDAA8B;AAC9B,oEAAyC;AACzC,oEAAyC;AACzC,mEAAwC;AACxC,kEAAuC;AACvC,yEAA8C;AAC9C,+EAAoD;AACpD,+EAAoD;AACpD,sEAA2C;AAC3C,6EAAkD;AAElD,4EAA6F;AAApF,kHAAA,cAAc,OAAoB;AAE9B,QAAA,MAAM,GAAG,IAAI,eAAM,EAAE,CAAC"}
|
|
@@ -13,5 +13,6 @@ export declare const BASIC_TYPE_MAPPING: {
|
|
|
13
13
|
};
|
|
14
14
|
export declare const EXPAND_SUFFIX = "__expand";
|
|
15
15
|
export declare const DISPLAY_PREFIX = "_display";
|
|
16
|
+
export declare const UI_PREFIX = "_ui";
|
|
16
17
|
export declare const RELATED_PREFIX = "_related";
|
|
17
18
|
export declare const GRAPHQL_ACTION_PREFIX = "graphql_";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GRAPHQL_ACTION_PREFIX = exports.RELATED_PREFIX = exports.DISPLAY_PREFIX = exports.EXPAND_SUFFIX = exports.BASIC_TYPE_MAPPING = void 0;
|
|
3
|
+
exports.GRAPHQL_ACTION_PREFIX = exports.RELATED_PREFIX = exports.UI_PREFIX = exports.DISPLAY_PREFIX = exports.EXPAND_SUFFIX = exports.BASIC_TYPE_MAPPING = void 0;
|
|
4
4
|
exports.BASIC_TYPE_MAPPING = {
|
|
5
5
|
'text': 'String',
|
|
6
6
|
'textarea': 'String',
|
|
@@ -16,6 +16,7 @@ exports.BASIC_TYPE_MAPPING = {
|
|
|
16
16
|
};
|
|
17
17
|
exports.EXPAND_SUFFIX = '__expand';
|
|
18
18
|
exports.DISPLAY_PREFIX = '_display';
|
|
19
|
+
exports.UI_PREFIX = '_ui';
|
|
19
20
|
exports.RELATED_PREFIX = '_related';
|
|
20
21
|
exports.GRAPHQL_ACTION_PREFIX = 'graphql_';
|
|
21
22
|
//# sourceMappingURL=consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/services/helpers/graphql/consts.ts"],"names":[],"mappings":";;;AAQa,QAAA,kBAAkB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,MAAM;IAClB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE,SAAS;CACvB,CAAC;AACW,QAAA,aAAa,GAAG,UAAU,CAAC;AAC3B,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,qBAAqB,GAAG,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/services/helpers/graphql/consts.ts"],"names":[],"mappings":";;;AAQa,QAAA,kBAAkB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,QAAQ;IACjB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,MAAM;IAClB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE,SAAS;CACvB,CAAC;AACW,QAAA,aAAa,GAAG,UAAU,CAAC;AAC3B,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,SAAS,GAAG,KAAK,CAAC;AAClB,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,qBAAqB,GAAG,UAAU,CAAC"}
|