@lark-apaas/fullstack-nestjs-core 1.1.6 → 1.1.7

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/index.cjs CHANGED
@@ -101,7 +101,8 @@ var UserContextMiddleware = class {
101
101
  env: webUser?.env ?? "runtime",
102
102
  userName: webUser?.user_name?.zh_cn ?? "",
103
103
  userNameEn: webUser?.user_name?.en_us ?? "",
104
- userNameI18n: webUser?.user_name ?? {}
104
+ userNameI18n: webUser?.user_name ?? {},
105
+ isSystemAccount: webUser?.is_system_account ?? false
105
106
  };
106
107
  next();
107
108
  }
package/dist/index.d.cts CHANGED
@@ -28,6 +28,7 @@ declare global {
28
28
  userName?: string; // 默认中文名
29
29
  userNameEn?: string; // 冗余一份英文名
30
30
  userNameI18n?: Record<string, string>; // 带多语的用户名
31
+ isSystemAccount?: boolean; // trigger 场景写入值为 true,user 访问场景不写入
31
32
  },
32
33
  csrfToken?: string;
33
34
  }
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ declare global {
28
28
  userName?: string; // 默认中文名
29
29
  userNameEn?: string; // 冗余一份英文名
30
30
  userNameI18n?: Record<string, string>; // 带多语的用户名
31
+ isSystemAccount?: boolean; // trigger 场景写入值为 true,user 访问场景不写入
31
32
  },
32
33
  csrfToken?: string;
33
34
  }
package/dist/index.js CHANGED
@@ -59,7 +59,8 @@ var UserContextMiddleware = class {
59
59
  env: webUser?.env ?? "runtime",
60
60
  userName: webUser?.user_name?.zh_cn ?? "",
61
61
  userNameEn: webUser?.user_name?.en_us ?? "",
62
- userNameI18n: webUser?.user_name ?? {}
62
+ userNameI18n: webUser?.user_name ?? {},
63
+ isSystemAccount: webUser?.is_system_account ?? false
63
64
  };
64
65
  next();
65
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-nestjs-core",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "FullStack Nestjs Core",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,7 +42,7 @@
42
42
  "@lark-apaas/http-client": "0.1.2",
43
43
  "@lark-apaas/nestjs-authnpaas": "^1.0.2",
44
44
  "@lark-apaas/nestjs-common": "^0.1.0",
45
- "@lark-apaas/nestjs-datapaas": "^1.0.5",
45
+ "@lark-apaas/nestjs-datapaas": "^1.0.6",
46
46
  "@lark-apaas/nestjs-logger": "^1.0.3",
47
47
  "@lark-apaas/nestjs-observable": "^0.0.1",
48
48
  "@lark-apaas/nestjs-openapi-devtools": "^1.0.9",