@lark-apaas/fullstack-nestjs-core 1.1.3 → 1.1.4-alpha.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/dist/index.cjs CHANGED
@@ -92,11 +92,7 @@ var UserContextMiddleware = class {
92
92
  tenantId: webUser?.tenant_id,
93
93
  appId: webUser?.app_id ?? "",
94
94
  loginUrl: webUser?.login_url ?? "",
95
- userType: webUser?.user_type ?? "",
96
- env: webUser?.env ?? "runtime",
97
- userName: webUser?.user_name?.zh_cn ?? "",
98
- userNameEn: webUser?.user_name?.en_us ?? "",
99
- userNameI18n: webUser?.user_name ?? {}
95
+ isSystemAccount: webUser?.is_system_account ?? false
100
96
  };
101
97
  next();
102
98
  }
package/dist/index.d.cts CHANGED
@@ -24,6 +24,7 @@ declare global {
24
24
  userName?: string; // 默认中文名
25
25
  userNameEn?: string; // 冗余一份英文名
26
26
  userNameI18n?: Record<string, string>; // 带多语的用户名
27
+ isSystemAccount?: boolean; // trigger 场景写入值为 true,user 访问场景不写入
27
28
  },
28
29
  csrfToken?: string;
29
30
  }
package/dist/index.d.ts CHANGED
@@ -24,6 +24,7 @@ declare global {
24
24
  userName?: string; // 默认中文名
25
25
  userNameEn?: string; // 冗余一份英文名
26
26
  userNameI18n?: Record<string, string>; // 带多语的用户名
27
+ isSystemAccount?: boolean; // trigger 场景写入值为 true,user 访问场景不写入
27
28
  },
28
29
  csrfToken?: string;
29
30
  }
package/dist/index.js CHANGED
@@ -50,11 +50,7 @@ var UserContextMiddleware = class {
50
50
  tenantId: webUser?.tenant_id,
51
51
  appId: webUser?.app_id ?? "",
52
52
  loginUrl: webUser?.login_url ?? "",
53
- userType: webUser?.user_type ?? "",
54
- env: webUser?.env ?? "runtime",
55
- userName: webUser?.user_name?.zh_cn ?? "",
56
- userNameEn: webUser?.user_name?.en_us ?? "",
57
- userNameI18n: webUser?.user_name ?? {}
53
+ isSystemAccount: webUser?.is_system_account ?? false
58
54
  };
59
55
  next();
60
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-nestjs-core",
3
- "version": "1.1.3",
3
+ "version": "1.1.4-alpha.1",
4
4
  "description": "FullStack Nestjs Core",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@lark-apaas/nestjs-authnpaas": "^1.0.1",
43
- "@lark-apaas/nestjs-datapaas": "^1.0.5",
43
+ "@lark-apaas/nestjs-datapaas": "1.0.6-alpha.5",
44
44
  "@lark-apaas/nestjs-logger": "^1.0.2",
45
45
  "@lark-apaas/nestjs-openapi-devtools": "^1.0.9",
46
46
  "cookie-parser": "^1.4.7"