@lark-apaas/fullstack-nestjs-core 1.1.53-alpha.3 → 1.1.53-beta.0
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 +4 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +4 -0
- package/package.json +10 -9
package/dist/index.cjs
CHANGED
|
@@ -34437,6 +34437,7 @@ var import_axios2 = require("@nestjs/axios");
|
|
|
34437
34437
|
var import_nestjs_logger2 = require("@lark-apaas/nestjs-logger");
|
|
34438
34438
|
var import_nestjs_datapaas = require("@lark-apaas/nestjs-datapaas");
|
|
34439
34439
|
var import_nestjs_authnpaas = require("@lark-apaas/nestjs-authnpaas");
|
|
34440
|
+
var import_nestjs_http_forwarder = require("@lark-apaas/nestjs-http-forwarder");
|
|
34440
34441
|
var import_nestjs_trigger = require("@lark-apaas/nestjs-trigger");
|
|
34441
34442
|
var import_nestjs_common7 = require("@lark-apaas/nestjs-common");
|
|
34442
34443
|
var import_nestjs_capability = require("@lark-apaas/nestjs-capability");
|
|
@@ -36406,6 +36407,9 @@ var PlatformModule = class _PlatformModule {
|
|
|
36406
36407
|
...options.authz || {}
|
|
36407
36408
|
}),
|
|
36408
36409
|
import_nestjs_trigger.AutomationModule.forRoot(),
|
|
36410
|
+
// 通用内网转发:自动注册 ALL /api/__platform__/http-forward?targetUrl=...
|
|
36411
|
+
// 业务方接入 PlatformModule 后零改动获得内网代理路由
|
|
36412
|
+
import_nestjs_http_forwarder.HttpForwarderModule.forRoot(options.httpForwarder),
|
|
36409
36413
|
import_nestjs_capability.CapabilityModule.forRoot({
|
|
36410
36414
|
capabilitiesDir: options.capabilitiesDir,
|
|
36411
36415
|
enableWatching: process.env.NODE_ENV === "development"
|
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,7 @@ import { NestModule, DynamicModule, MiddlewareConsumer, OnModuleInit, NestMiddle
|
|
|
2
2
|
import { HttpClientConfig, PlatformPluginOptions, HttpClient } from '@lark-apaas/http-client';
|
|
3
3
|
import { AuthZPaasModuleOptions } from '@lark-apaas/nestjs-authzpaas';
|
|
4
4
|
export { AddMembersParams, AuthZPaasModule, AuthorizationSDK, Can, CanRole, ChatSimpleDTO, CommonParam, CreateRoleParams, CreateRoleResponse, DepartmentDTO, DepartmentEntity, DepartmentSimpleDTO, FilterParams, ForceRoleDTO, I18nText, IPermissionResolver, ListMembersParams, ListMembersResponse, ListRolesParams, MemberMutationData, MemberType, PERMISSION_RESOLVER_TOKEN, PermissionPoint, PermissionRequirement, PresetGroupDTO, RemoveMembersParams, RoleMemberDTO, SearchChatEntity, SearchParams, SearchResponse, SearchResult, SearchUserEntity, UpdateRoleParams, UserSimpleDTO } from '@lark-apaas/nestjs-authzpaas';
|
|
5
|
+
import { HttpForwarderModuleOptions } from '@lark-apaas/nestjs-http-forwarder';
|
|
5
6
|
import { NestExpressApplication } from '@nestjs/platform-express';
|
|
6
7
|
import { PlatformHttpClient, RequestContextService, ObservableService } from '@lark-apaas/nestjs-common';
|
|
7
8
|
export { AutoTrace } from '@lark-apaas/nestjs-common';
|
|
@@ -80,6 +81,12 @@ interface PlatformModuleOptions {
|
|
|
80
81
|
* 可传入 permissionResolver 等选项,透传给 AuthZPaasModule.forRoot()
|
|
81
82
|
*/
|
|
82
83
|
authz?: AuthZPaasModuleOptions;
|
|
84
|
+
/**
|
|
85
|
+
* HttpForwarder 模块配置(默认自动启用,注册 ALL /api/__platform__/http-forward 路由)
|
|
86
|
+
* 透传给 HttpForwarderModule.forRoot();不传则使用模块默认值
|
|
87
|
+
* (requestTimeoutMs=30s, maxResponseBytes=10MB)。
|
|
88
|
+
*/
|
|
89
|
+
httpForwarder?: HttpForwarderModuleOptions;
|
|
83
90
|
}
|
|
84
91
|
|
|
85
92
|
declare class PlatformModule implements NestModule {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { NestModule, DynamicModule, MiddlewareConsumer, OnModuleInit, NestMiddle
|
|
|
2
2
|
import { HttpClientConfig, PlatformPluginOptions, HttpClient } from '@lark-apaas/http-client';
|
|
3
3
|
import { AuthZPaasModuleOptions } from '@lark-apaas/nestjs-authzpaas';
|
|
4
4
|
export { AddMembersParams, AuthZPaasModule, AuthorizationSDK, Can, CanRole, ChatSimpleDTO, CommonParam, CreateRoleParams, CreateRoleResponse, DepartmentDTO, DepartmentEntity, DepartmentSimpleDTO, FilterParams, ForceRoleDTO, I18nText, IPermissionResolver, ListMembersParams, ListMembersResponse, ListRolesParams, MemberMutationData, MemberType, PERMISSION_RESOLVER_TOKEN, PermissionPoint, PermissionRequirement, PresetGroupDTO, RemoveMembersParams, RoleMemberDTO, SearchChatEntity, SearchParams, SearchResponse, SearchResult, SearchUserEntity, UpdateRoleParams, UserSimpleDTO } from '@lark-apaas/nestjs-authzpaas';
|
|
5
|
+
import { HttpForwarderModuleOptions } from '@lark-apaas/nestjs-http-forwarder';
|
|
5
6
|
import { NestExpressApplication } from '@nestjs/platform-express';
|
|
6
7
|
import { PlatformHttpClient, RequestContextService, ObservableService } from '@lark-apaas/nestjs-common';
|
|
7
8
|
export { AutoTrace } from '@lark-apaas/nestjs-common';
|
|
@@ -80,6 +81,12 @@ interface PlatformModuleOptions {
|
|
|
80
81
|
* 可传入 permissionResolver 等选项,透传给 AuthZPaasModule.forRoot()
|
|
81
82
|
*/
|
|
82
83
|
authz?: AuthZPaasModuleOptions;
|
|
84
|
+
/**
|
|
85
|
+
* HttpForwarder 模块配置(默认自动启用,注册 ALL /api/__platform__/http-forward 路由)
|
|
86
|
+
* 透传给 HttpForwarderModule.forRoot();不传则使用模块默认值
|
|
87
|
+
* (requestTimeoutMs=30s, maxResponseBytes=10MB)。
|
|
88
|
+
*/
|
|
89
|
+
httpForwarder?: HttpForwarderModuleOptions;
|
|
83
90
|
}
|
|
84
91
|
|
|
85
92
|
declare class PlatformModule implements NestModule {
|
package/dist/index.js
CHANGED
|
@@ -34410,6 +34410,7 @@ import { HttpModule } from "@nestjs/axios";
|
|
|
34410
34410
|
import { LoggerModule, AppLogger as AppLogger2, LoggerContextMiddleware } from "@lark-apaas/nestjs-logger";
|
|
34411
34411
|
import { DataPaasModule, SqlExecutionContextMiddleware } from "@lark-apaas/nestjs-datapaas";
|
|
34412
34412
|
import { AuthNPaasModule } from "@lark-apaas/nestjs-authnpaas";
|
|
34413
|
+
import { HttpForwarderModule } from "@lark-apaas/nestjs-http-forwarder";
|
|
34413
34414
|
import { AutomationModule } from "@lark-apaas/nestjs-trigger";
|
|
34414
34415
|
import { PLATFORM_HTTP_CLIENT as PLATFORM_HTTP_CLIENT4 } from "@lark-apaas/nestjs-common";
|
|
34415
34416
|
import { CapabilityModule } from "@lark-apaas/nestjs-capability";
|
|
@@ -36379,6 +36380,9 @@ var PlatformModule = class _PlatformModule {
|
|
|
36379
36380
|
...options.authz || {}
|
|
36380
36381
|
}),
|
|
36381
36382
|
AutomationModule.forRoot(),
|
|
36383
|
+
// 通用内网转发:自动注册 ALL /api/__platform__/http-forward?targetUrl=...
|
|
36384
|
+
// 业务方接入 PlatformModule 后零改动获得内网代理路由
|
|
36385
|
+
HttpForwarderModule.forRoot(options.httpForwarder),
|
|
36382
36386
|
CapabilityModule.forRoot({
|
|
36383
36387
|
capabilitiesDir: options.capabilitiesDir,
|
|
36384
36388
|
enableWatching: process.env.NODE_ENV === "development"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-nestjs-core",
|
|
3
|
-
"version": "1.1.53-
|
|
3
|
+
"version": "1.1.53-beta.0",
|
|
4
4
|
"description": "FullStack Nestjs Core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,14 +40,15 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@lark-apaas/file-service": "^0.1.2",
|
|
43
|
-
"@lark-apaas/http-client": "^0.1.
|
|
44
|
-
"@lark-apaas/nestjs-authnpaas": "^1.0.
|
|
45
|
-
"@lark-apaas/nestjs-authzpaas": "0.1.10-
|
|
46
|
-
"@lark-apaas/nestjs-capability": "^0.1.
|
|
47
|
-
"@lark-apaas/nestjs-common": "^0.1.
|
|
48
|
-
"@lark-apaas/nestjs-datapaas": "^1.0.
|
|
49
|
-
"@lark-apaas/nestjs-
|
|
50
|
-
"@lark-apaas/nestjs-
|
|
43
|
+
"@lark-apaas/http-client": "^0.1.7",
|
|
44
|
+
"@lark-apaas/nestjs-authnpaas": "^1.0.4",
|
|
45
|
+
"@lark-apaas/nestjs-authzpaas": "0.1.10-beta.0",
|
|
46
|
+
"@lark-apaas/nestjs-capability": "^0.1.14",
|
|
47
|
+
"@lark-apaas/nestjs-common": "^0.1.9",
|
|
48
|
+
"@lark-apaas/nestjs-datapaas": "^1.0.21",
|
|
49
|
+
"@lark-apaas/nestjs-http-forwarder": "^0.1.3",
|
|
50
|
+
"@lark-apaas/nestjs-logger": "^1.0.17",
|
|
51
|
+
"@lark-apaas/nestjs-observable": "^0.0.12",
|
|
51
52
|
"@lark-apaas/nestjs-openapi-devtools": "^1.0.10",
|
|
52
53
|
"@lark-apaas/nestjs-trigger": "^0.0.3",
|
|
53
54
|
"@nestjs/axios": "^4.0.1",
|