@steedos/service-objectql 2.6.6-beta.4 → 2.6.6-beta.6

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/package.service.js +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-objectql",
3
- "version": "2.6.6-beta.4",
3
+ "version": "2.6.6-beta.6",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -13,8 +13,8 @@
13
13
  "description": "steedos package",
14
14
  "repository": {},
15
15
  "license": "MIT",
16
- "gitHead": "a3638e2feda889617a39ac12b1bc798eac51e40c",
16
+ "gitHead": "d15840851c7b43a2911874c5cfd4a9a3a9f140a4",
17
17
  "dependencies": {
18
- "@steedos/objectql": "2.6.6-beta.4"
18
+ "@steedos/objectql": "2.6.6-beta.6"
19
19
  }
20
20
  }
@@ -2,7 +2,7 @@
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2023-03-23 15:12:14
4
4
  * @LastEditors: 孙浩林 sunhaolin@steedos.com
5
- * @LastEditTime: 2023-11-14 10:43:21
5
+ * @LastEditTime: 2024-01-29 15:31:29
6
6
  * @Description:
7
7
  */
8
8
  "use strict";
@@ -349,6 +349,16 @@ module.exports = {
349
349
  return await obj._makeNewID();
350
350
  }
351
351
  },
352
+ absoluteUrl: {
353
+ params: {
354
+ path: { type: "string" },
355
+ options: { type: "object", optional: true }
356
+ },
357
+ async handler(ctx) {
358
+ const { path, options } = ctx.params;
359
+ return objectql.absoluteUrl(path, options);
360
+ }
361
+ },
352
362
  getRecordAbsoluteUrl: {
353
363
  params: {
354
364
  objectName: { type: "string" },