hunter-mate 0.1.26 → 0.1.28
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/assets/extension/background/{service-worker.20261019161523.js → service-worker.20261023013927.js} +4 -0
- package/dist/assets/extension/background/service-worker.js +4 -0
- package/dist/assets/extension/build-info.json +1 -1
- package/dist/assets/extension/content/index.js +284 -64
- package/dist/assets/extension/manifest.json +3 -3
- package/dist/assets/extension/sidepanel/index.html +1 -1
- package/dist/assets/extension/sidepanel/index.js +14 -14
- package/dist/assets/server/main.mjs +1464 -1207
- package/dist/index.js +62 -67
- package/dist/watchdog.js +49 -4
- package/dist/web/dist/404.html +1 -1
- package/dist/web/dist/_next/static/chunks/187-48dc1acca97c62ba.js +1 -0
- package/dist/web/dist/_next/static/chunks/{253-9278ce6c4d446329.js → 327-6b8f348b06e7977f.js} +1 -1
- package/dist/web/dist/_next/static/chunks/353-845111f2789c5a03.js +12 -0
- package/dist/web/dist/_next/static/chunks/587-e449469e56a2bfff.js +1 -0
- package/dist/web/dist/_next/static/chunks/{589-cc56950ae4117cdd.js → 589-5bb84ab8060e960b.js} +1 -1
- package/dist/web/dist/_next/static/chunks/603-765c4fa1ed757ca5.js +32 -0
- package/dist/web/dist/_next/static/chunks/659-3db6e9c90ee9d238.js +1 -0
- package/dist/web/dist/_next/static/chunks/{686-05b99d3674f45bf7.js → 686-5f4ee3649cce07f1.js} +1 -1
- package/dist/web/dist/_next/static/chunks/882-1bcdfd2499403efd.js +1 -0
- package/dist/web/dist/_next/static/chunks/896-9dce6a3bc525edba.js +1 -0
- package/dist/web/dist/_next/static/chunks/{935-efb30b9f6f558e3f.js → 935-12f1084f0e18c962.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/_not-found/{page-d939b40bb8878d26.js → page-46929212b0496a89.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/admin/data/{page-df1d84c14e85f294.js → page-666f99fbfee46cc9.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/auth/verify/{page-cfeb844e1b72ccaa.js → page-2da5807d6cdfdb4e.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/companies/{page-57b1ef0b12134ce0.js → page-e1e730e2dc5ad84c.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/company/admin/{page-010928306f8df0ed.js → page-02244f3f1a212c76.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/entity/{page-fa96319650d38e78.js → page-d59a8103f8107d3b.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/jobs/page-a32a17c5a6384358.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/layout-1e492ed8c639edf5.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/logs/{page-bcdbb3885abda5a2.js → page-badf48f4e7e32e17.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/matching/jobs/[id]/talents/{page-8aca89db1e666a49.js → page-73bca3864b8b9e44.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/matching/portraits/[id]/jobs/{page-7086f1b773e57511.js → page-477c66bee61225fa.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/{page-49fe1e8630d2237e.js → page-8ea324b366e3d374.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/parselog/{page-fcdfdd41cf1f86f7.js → page-4f5c186442feb386.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/recordings/page-0fb8cafdd2f6762c.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/resource-usage/{page-7b939cf673d764e6.js → page-76be36ca978391a3.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/shared/[token]/page-6741cd1b0a4aca2e.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/snapshots/[id]/agent-prompt/{page-7d4d25de2c6704e9.js → page-60ea46364a74b294.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/talents/{page-5a2caa7a503ee041.js → page-4b00d69580f49f97.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/team/insights/{page-f097b4b8578a6e5d.js → page-5385dcd363f6e0cd.js} +1 -1
- package/dist/web/dist/_next/static/chunks/webpack-9cebd25e322e2cd7.js +1 -0
- package/dist/web/dist/_next/static/css/8f3c454cab3414d0.css +3 -0
- package/dist/web/dist/admin/data.html +1 -1
- package/dist/web/dist/admin/data.txt +5 -5
- package/dist/web/dist/auth/verify.html +1 -1
- package/dist/web/dist/auth/verify.txt +5 -5
- package/dist/web/dist/companies.html +1 -1
- package/dist/web/dist/companies.txt +5 -5
- package/dist/web/dist/company/admin.html +1 -1
- package/dist/web/dist/company/admin.txt +5 -5
- package/dist/web/dist/entity.html +1 -1
- package/dist/web/dist/entity.txt +5 -5
- package/dist/web/dist/index.html +1 -1
- package/dist/web/dist/index.txt +5 -5
- package/dist/web/dist/jobs.html +1 -1
- package/dist/web/dist/jobs.txt +5 -5
- package/dist/web/dist/logs.html +1 -1
- package/dist/web/dist/logs.txt +5 -5
- package/dist/web/dist/matching/jobs/placeholder/talents.html +1 -1
- package/dist/web/dist/matching/jobs/placeholder/talents.txt +5 -5
- package/dist/web/dist/matching/portraits/placeholder/jobs.html +1 -1
- package/dist/web/dist/matching/portraits/placeholder/jobs.txt +5 -5
- package/dist/web/dist/parselog.html +1 -1
- package/dist/web/dist/parselog.txt +5 -5
- package/dist/web/dist/recordings.html +1 -1
- package/dist/web/dist/recordings.txt +5 -5
- package/dist/web/dist/resource-usage.html +1 -1
- package/dist/web/dist/resource-usage.txt +5 -5
- package/dist/web/dist/shared/placeholder.html +1 -1
- package/dist/web/dist/shared/placeholder.txt +5 -5
- package/dist/web/dist/snapshots/placeholder/agent-prompt.html +1 -1
- package/dist/web/dist/snapshots/placeholder/agent-prompt.txt +5 -5
- package/dist/web/dist/talents.html +1 -1
- package/dist/web/dist/talents.txt +5 -5
- package/dist/web/dist/team/insights.html +1 -1
- package/dist/web/dist/team/insights.txt +5 -5
- package/package.json +1 -4
- package/dist/web/dist/_next/static/chunks/166.b263e636ff66212f.js +0 -1
- package/dist/web/dist/_next/static/chunks/187-f067914dcd1330c2.js +0 -32
- package/dist/web/dist/_next/static/chunks/659-122057f46f941df7.js +0 -1
- package/dist/web/dist/_next/static/chunks/728-cffab7e836020551.js +0 -12
- package/dist/web/dist/_next/static/chunks/app/jobs/page-5ba0bdc881b98d42.js +0 -1
- package/dist/web/dist/_next/static/chunks/app/layout-bd9a7e5e4474b692.js +0 -1
- package/dist/web/dist/_next/static/chunks/app/recordings/page-7ba5d89391c9dace.js +0 -1
- package/dist/web/dist/_next/static/chunks/app/shared/[token]/page-df87328c52f862f1.js +0 -1
- package/dist/web/dist/_next/static/chunks/webpack-54e74ccc9e9451ee.js +0 -1
- package/dist/web/dist/_next/static/css/a8f0a381a2372781.css +0 -3
- package/dist/web/dist/_next/static/css/f60d210841fab76b.css +0 -1
- /package/dist/web/dist/_next/static/{m0UGHVTGvtvb9mn4-uzJJ → cC7rsTCys5_15wJ8BiPDm}/_buildManifest.js +0 -0
- /package/dist/web/dist/_next/static/{m0UGHVTGvtvb9mn4-uzJJ → cC7rsTCys5_15wJ8BiPDm}/_ssgManifest.js +0 -0
|
@@ -2351,10 +2351,10 @@ var require_controller_decorator = __commonJS({
|
|
|
2351
2351
|
"../../node_modules/.pnpm/@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.14.4_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/core/controller.decorator.js"(exports2) {
|
|
2352
2352
|
"use strict";
|
|
2353
2353
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2354
|
-
exports2.Controller =
|
|
2354
|
+
exports2.Controller = Controller44;
|
|
2355
2355
|
var constants_1 = require_constants2();
|
|
2356
2356
|
var shared_utils_1 = require_shared_utils();
|
|
2357
|
-
function
|
|
2357
|
+
function Controller44(prefixOrOptions) {
|
|
2358
2358
|
const defaultPath = "/";
|
|
2359
2359
|
const [path14, host, scopeOptions, versionOptions] = (0, shared_utils_1.isUndefined)(prefixOrOptions) ? [defaultPath, void 0, void 0, void 0] : (0, shared_utils_1.isString)(prefixOrOptions) || Array.isArray(prefixOrOptions) ? [prefixOrOptions, void 0, void 0, void 0] : [
|
|
2360
2360
|
prefixOrOptions.path || defaultPath,
|
|
@@ -2774,9 +2774,9 @@ var require_module_decorator = __commonJS({
|
|
|
2774
2774
|
"../../node_modules/.pnpm/@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.14.4_reflect-metadata@0.2.2_rxjs@7.8.2/node_modules/@nestjs/common/decorators/modules/module.decorator.js"(exports2) {
|
|
2775
2775
|
"use strict";
|
|
2776
2776
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2777
|
-
exports2.Module =
|
|
2777
|
+
exports2.Module = Module45;
|
|
2778
2778
|
var validate_module_keys_util_1 = require_validate_module_keys_util();
|
|
2779
|
-
function
|
|
2779
|
+
function Module45(metadata) {
|
|
2780
2780
|
const propsKeys = Object.keys(metadata);
|
|
2781
2781
|
(0, validate_module_keys_util_1.validateModuleKeys)(propsKeys);
|
|
2782
2782
|
return (target) => {
|
|
@@ -2897,10 +2897,10 @@ var require_route_params_decorator = __commonJS({
|
|
|
2897
2897
|
exports2.assignMetadata = assignMetadata;
|
|
2898
2898
|
exports2.UploadedFile = UploadedFile;
|
|
2899
2899
|
exports2.UploadedFiles = UploadedFiles;
|
|
2900
|
-
exports2.Query =
|
|
2900
|
+
exports2.Query = Query29;
|
|
2901
2901
|
exports2.Body = Body29;
|
|
2902
2902
|
exports2.RawBody = RawBody;
|
|
2903
|
-
exports2.Param =
|
|
2903
|
+
exports2.Param = Param25;
|
|
2904
2904
|
exports2.HostParam = HostParam;
|
|
2905
2905
|
var constants_1 = require_constants2();
|
|
2906
2906
|
var route_paramtypes_enum_1 = require_route_paramtypes_enum();
|
|
@@ -2946,7 +2946,7 @@ var require_route_params_decorator = __commonJS({
|
|
|
2946
2946
|
return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.FILES)(void 0, ...pipes);
|
|
2947
2947
|
}
|
|
2948
2948
|
exports2.Headers = createRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.HEADERS);
|
|
2949
|
-
function
|
|
2949
|
+
function Query29(property, ...pipes) {
|
|
2950
2950
|
return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.QUERY)(property, ...pipes);
|
|
2951
2951
|
}
|
|
2952
2952
|
function Body29(property, ...pipes) {
|
|
@@ -2955,7 +2955,7 @@ var require_route_params_decorator = __commonJS({
|
|
|
2955
2955
|
function RawBody(...pipes) {
|
|
2956
2956
|
return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.RAW_BODY)(void 0, ...pipes);
|
|
2957
2957
|
}
|
|
2958
|
-
function
|
|
2958
|
+
function Param25(property, ...pipes) {
|
|
2959
2959
|
return createPipesRouteParamDecorator(route_paramtypes_enum_1.RouteParamtypes.PARAM)(property, ...pipes);
|
|
2960
2960
|
}
|
|
2961
2961
|
function HostParam(property) {
|
|
@@ -39907,7 +39907,7 @@ var require_module = __commonJS({
|
|
|
39907
39907
|
var constants_2 = require_constants5();
|
|
39908
39908
|
var instance_wrapper_1 = require_instance_wrapper();
|
|
39909
39909
|
var module_ref_1 = require_module_ref();
|
|
39910
|
-
var
|
|
39910
|
+
var Module45 = class {
|
|
39911
39911
|
constructor(_metatype, container) {
|
|
39912
39912
|
this._metatype = _metatype;
|
|
39913
39913
|
this.container = container;
|
|
@@ -40301,7 +40301,7 @@ var require_module = __commonJS({
|
|
|
40301
40301
|
return (0, get_class_scope_1.getClassScope)(provider) === interfaces_1.Scope.TRANSIENT;
|
|
40302
40302
|
}
|
|
40303
40303
|
};
|
|
40304
|
-
exports2.Module =
|
|
40304
|
+
exports2.Module = Module45;
|
|
40305
40305
|
}
|
|
40306
40306
|
});
|
|
40307
40307
|
|
|
@@ -93032,7 +93032,7 @@ var require_config_service = __commonJS({
|
|
|
93032
93032
|
} : function(o, v) {
|
|
93033
93033
|
o["default"] = v;
|
|
93034
93034
|
});
|
|
93035
|
-
var
|
|
93035
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
93036
93036
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
93037
93037
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
93038
93038
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -93047,10 +93047,10 @@ var require_config_service = __commonJS({
|
|
|
93047
93047
|
__setModuleDefault2(result, mod);
|
|
93048
93048
|
return result;
|
|
93049
93049
|
};
|
|
93050
|
-
var
|
|
93050
|
+
var __metadata155 = exports2 && exports2.__metadata || function(k2, v) {
|
|
93051
93051
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
93052
93052
|
};
|
|
93053
|
-
var
|
|
93053
|
+
var __param89 = exports2 && exports2.__param || function(paramIndex, decorator) {
|
|
93054
93054
|
return function(target, key) {
|
|
93055
93055
|
decorator(target, key, paramIndex);
|
|
93056
93056
|
};
|
|
@@ -93202,11 +93202,11 @@ var require_config_service = __commonJS({
|
|
|
93202
93202
|
}
|
|
93203
93203
|
};
|
|
93204
93204
|
exports2.ConfigService = ConfigService10;
|
|
93205
|
-
exports2.ConfigService = ConfigService10 =
|
|
93205
|
+
exports2.ConfigService = ConfigService10 = __decorate204([
|
|
93206
93206
|
(0, common_1.Injectable)(),
|
|
93207
|
-
|
|
93208
|
-
|
|
93209
|
-
|
|
93207
|
+
__param89(0, (0, common_1.Optional)()),
|
|
93208
|
+
__param89(0, (0, common_1.Inject)(config_constants_1.CONFIGURATION_TOKEN)),
|
|
93209
|
+
__metadata155("design:paramtypes", [Object])
|
|
93210
93210
|
], ConfigService10);
|
|
93211
93211
|
}
|
|
93212
93212
|
});
|
|
@@ -93215,7 +93215,7 @@ var require_config_service = __commonJS({
|
|
|
93215
93215
|
var require_config_host_module = __commonJS({
|
|
93216
93216
|
"../../node_modules/.pnpm/@nestjs+config@3.3.0_@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.14.4_re_4ccxbulbtcejfsbymv6e4s3eea/node_modules/@nestjs/config/dist/config-host.module.js"(exports2) {
|
|
93217
93217
|
"use strict";
|
|
93218
|
-
var
|
|
93218
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
93219
93219
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
93220
93220
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
93221
93221
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -93229,7 +93229,7 @@ var require_config_host_module = __commonJS({
|
|
|
93229
93229
|
var ConfigHostModule = class ConfigHostModule {
|
|
93230
93230
|
};
|
|
93231
93231
|
exports2.ConfigHostModule = ConfigHostModule;
|
|
93232
|
-
exports2.ConfigHostModule = ConfigHostModule =
|
|
93232
|
+
exports2.ConfigHostModule = ConfigHostModule = __decorate204([
|
|
93233
93233
|
(0, common_1.Global)(),
|
|
93234
93234
|
(0, common_1.Module)({
|
|
93235
93235
|
providers: [
|
|
@@ -93333,7 +93333,7 @@ var require_config_module = __commonJS({
|
|
|
93333
93333
|
} : function(o, v) {
|
|
93334
93334
|
o["default"] = v;
|
|
93335
93335
|
});
|
|
93336
|
-
var
|
|
93336
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
93337
93337
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
93338
93338
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
93339
93339
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -93519,7 +93519,7 @@ var require_config_module = __commonJS({
|
|
|
93519
93519
|
};
|
|
93520
93520
|
exports2.ConfigModule = ConfigModule3;
|
|
93521
93521
|
ConfigModule3._envVariablesLoaded = new Promise((resolve7) => ConfigModule_1.environmentVariablesLoadedSignal = resolve7);
|
|
93522
|
-
exports2.ConfigModule = ConfigModule3 = ConfigModule_1 =
|
|
93522
|
+
exports2.ConfigModule = ConfigModule3 = ConfigModule_1 = __decorate204([
|
|
93523
93523
|
(0, common_1.Module)({
|
|
93524
93524
|
imports: [config_host_module_1.ConfigHostModule],
|
|
93525
93525
|
providers: [
|
|
@@ -93808,7 +93808,7 @@ var require_serve_static_options_interface = __commonJS({
|
|
|
93808
93808
|
var require_abstract_loader = __commonJS({
|
|
93809
93809
|
"../../node_modules/.pnpm/@nestjs+serve-static@4.0.2_@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.1_y5hnv7gpbfjd2slwy43qtae6vu/node_modules/@nestjs/serve-static/dist/loaders/abstract.loader.js"(exports2) {
|
|
93810
93810
|
"use strict";
|
|
93811
|
-
var
|
|
93811
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
93812
93812
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
93813
93813
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
93814
93814
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -93824,7 +93824,7 @@ var require_abstract_loader = __commonJS({
|
|
|
93824
93824
|
}
|
|
93825
93825
|
};
|
|
93826
93826
|
exports2.AbstractLoader = AbstractLoader;
|
|
93827
|
-
exports2.AbstractLoader = AbstractLoader =
|
|
93827
|
+
exports2.AbstractLoader = AbstractLoader = __decorate204([
|
|
93828
93828
|
(0, common_1.Injectable)()
|
|
93829
93829
|
], AbstractLoader);
|
|
93830
93830
|
}
|
|
@@ -93970,7 +93970,7 @@ var require_validate_path_util = __commonJS({
|
|
|
93970
93970
|
var require_express_loader = __commonJS({
|
|
93971
93971
|
"../../node_modules/.pnpm/@nestjs+serve-static@4.0.2_@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.1_y5hnv7gpbfjd2slwy43qtae6vu/node_modules/@nestjs/serve-static/dist/loaders/express.loader.js"(exports2) {
|
|
93972
93972
|
"use strict";
|
|
93973
|
-
var
|
|
93973
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
93974
93974
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
93975
93975
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
93976
93976
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -94016,7 +94016,7 @@ var require_express_loader = __commonJS({
|
|
|
94016
94016
|
}
|
|
94017
94017
|
};
|
|
94018
94018
|
exports2.ExpressLoader = ExpressLoader;
|
|
94019
|
-
exports2.ExpressLoader = ExpressLoader =
|
|
94019
|
+
exports2.ExpressLoader = ExpressLoader = __decorate204([
|
|
94020
94020
|
(0, common_1.Injectable)()
|
|
94021
94021
|
], ExpressLoader);
|
|
94022
94022
|
}
|
|
@@ -94026,7 +94026,7 @@ var require_express_loader = __commonJS({
|
|
|
94026
94026
|
var require_fastify_loader = __commonJS({
|
|
94027
94027
|
"../../node_modules/.pnpm/@nestjs+serve-static@4.0.2_@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.1_y5hnv7gpbfjd2slwy43qtae6vu/node_modules/@nestjs/serve-static/dist/loaders/fastify.loader.js"(exports2) {
|
|
94028
94028
|
"use strict";
|
|
94029
|
-
var
|
|
94029
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
94030
94030
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
94031
94031
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
94032
94032
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -94079,7 +94079,7 @@ var require_fastify_loader = __commonJS({
|
|
|
94079
94079
|
}
|
|
94080
94080
|
};
|
|
94081
94081
|
exports2.FastifyLoader = FastifyLoader;
|
|
94082
|
-
exports2.FastifyLoader = FastifyLoader =
|
|
94082
|
+
exports2.FastifyLoader = FastifyLoader = __decorate204([
|
|
94083
94083
|
(0, common_1.Injectable)()
|
|
94084
94084
|
], FastifyLoader);
|
|
94085
94085
|
}
|
|
@@ -94089,7 +94089,7 @@ var require_fastify_loader = __commonJS({
|
|
|
94089
94089
|
var require_noop_loader = __commonJS({
|
|
94090
94090
|
"../../node_modules/.pnpm/@nestjs+serve-static@4.0.2_@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.1_y5hnv7gpbfjd2slwy43qtae6vu/node_modules/@nestjs/serve-static/dist/loaders/noop.loader.js"(exports2) {
|
|
94091
94091
|
"use strict";
|
|
94092
|
-
var
|
|
94092
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
94093
94093
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
94094
94094
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
94095
94095
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -94104,7 +94104,7 @@ var require_noop_loader = __commonJS({
|
|
|
94104
94104
|
}
|
|
94105
94105
|
};
|
|
94106
94106
|
exports2.NoopLoader = NoopLoader;
|
|
94107
|
-
exports2.NoopLoader = NoopLoader =
|
|
94107
|
+
exports2.NoopLoader = NoopLoader = __decorate204([
|
|
94108
94108
|
(0, common_1.Injectable)()
|
|
94109
94109
|
], NoopLoader);
|
|
94110
94110
|
}
|
|
@@ -94144,16 +94144,16 @@ var require_serve_static_providers = __commonJS({
|
|
|
94144
94144
|
var require_serve_static_module = __commonJS({
|
|
94145
94145
|
"../../node_modules/.pnpm/@nestjs+serve-static@4.0.2_@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.1_y5hnv7gpbfjd2slwy43qtae6vu/node_modules/@nestjs/serve-static/dist/serve-static.module.js"(exports2) {
|
|
94146
94146
|
"use strict";
|
|
94147
|
-
var
|
|
94147
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
94148
94148
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
94149
94149
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
94150
94150
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
94151
94151
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
94152
94152
|
};
|
|
94153
|
-
var
|
|
94153
|
+
var __metadata155 = exports2 && exports2.__metadata || function(k2, v) {
|
|
94154
94154
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
94155
94155
|
};
|
|
94156
|
-
var
|
|
94156
|
+
var __param89 = exports2 && exports2.__param || function(paramIndex, decorator) {
|
|
94157
94157
|
return function(target, key) {
|
|
94158
94158
|
decorator(target, key, paramIndex);
|
|
94159
94159
|
};
|
|
@@ -94226,12 +94226,12 @@ var require_serve_static_module = __commonJS({
|
|
|
94226
94226
|
}
|
|
94227
94227
|
};
|
|
94228
94228
|
exports2.ServeStaticModule = ServeStaticModule2;
|
|
94229
|
-
exports2.ServeStaticModule = ServeStaticModule2 = ServeStaticModule_1 =
|
|
94229
|
+
exports2.ServeStaticModule = ServeStaticModule2 = ServeStaticModule_1 = __decorate204([
|
|
94230
94230
|
(0, common_1.Module)({
|
|
94231
94231
|
providers: [...serve_static_providers_1.serveStaticProviders]
|
|
94232
94232
|
}),
|
|
94233
|
-
|
|
94234
|
-
|
|
94233
|
+
__param89(0, (0, common_1.Inject)(serve_static_constants_1.SERVE_STATIC_MODULE_OPTIONS)),
|
|
94234
|
+
__metadata155("design:paramtypes", [
|
|
94235
94235
|
Array,
|
|
94236
94236
|
abstract_loader_1.AbstractLoader,
|
|
94237
94237
|
core_1.HttpAdapterHost
|
|
@@ -111075,7 +111075,7 @@ var require_query2 = __commonJS({
|
|
|
111075
111075
|
var ClientConstants = require_client2();
|
|
111076
111076
|
var Types = require_types5();
|
|
111077
111077
|
var { toParameter } = require_encode_parameter();
|
|
111078
|
-
var
|
|
111078
|
+
var Query29 = class {
|
|
111079
111079
|
constructor(sql, charsetNumber, attributes, clientFlags) {
|
|
111080
111080
|
this.query = sql;
|
|
111081
111081
|
this.charsetNumber = charsetNumber;
|
|
@@ -111147,7 +111147,7 @@ var require_query2 = __commonJS({
|
|
|
111147
111147
|
return this.serializeToBuffer(Buffer.allocUnsafe(p.offset));
|
|
111148
111148
|
}
|
|
111149
111149
|
};
|
|
111150
|
-
module2.exports =
|
|
111150
|
+
module2.exports = Query29;
|
|
111151
111151
|
}
|
|
111152
111152
|
});
|
|
111153
111153
|
|
|
@@ -111505,7 +111505,7 @@ var require_packets = __commonJS({
|
|
|
111505
111505
|
var HandshakeResponse = require_handshake_response();
|
|
111506
111506
|
var PrepareStatement = require_prepare_statement();
|
|
111507
111507
|
var PreparedStatementHeader = require_prepared_statement_header();
|
|
111508
|
-
var
|
|
111508
|
+
var Query29 = require_query2();
|
|
111509
111509
|
var RegisterSlave = require_register_slave();
|
|
111510
111510
|
var ResetConnection = require_reset_connection();
|
|
111511
111511
|
var ResultSetHeader = require_resultset_header();
|
|
@@ -111526,7 +111526,7 @@ var require_packets = __commonJS({
|
|
|
111526
111526
|
HandshakeResponse,
|
|
111527
111527
|
PrepareStatement,
|
|
111528
111528
|
PreparedStatementHeader,
|
|
111529
|
-
Query:
|
|
111529
|
+
Query: Query29,
|
|
111530
111530
|
RegisterSlave,
|
|
111531
111531
|
ResetConnection,
|
|
111532
111532
|
ResultSetHeader,
|
|
@@ -113141,7 +113141,7 @@ var require_query3 = __commonJS({
|
|
|
113141
113141
|
var staticParser = require_static_text_parser();
|
|
113142
113142
|
var ServerStatus = require_server_status();
|
|
113143
113143
|
var EmptyPacket = new Packets.Packet(0, Buffer.allocUnsafe(4), 0, 4);
|
|
113144
|
-
var
|
|
113144
|
+
var Query29 = class _Query extends Command {
|
|
113145
113145
|
constructor(options, callback) {
|
|
113146
113146
|
super();
|
|
113147
113147
|
this.sql = options.sql;
|
|
@@ -113446,8 +113446,8 @@ var require_query3 = __commonJS({
|
|
|
113446
113446
|
}
|
|
113447
113447
|
}
|
|
113448
113448
|
};
|
|
113449
|
-
|
|
113450
|
-
module2.exports =
|
|
113449
|
+
Query29.prototype.catch = Query29.prototype.then;
|
|
113450
|
+
module2.exports = Query29;
|
|
113451
113451
|
}
|
|
113452
113452
|
});
|
|
113453
113453
|
|
|
@@ -113899,7 +113899,7 @@ var require_execute2 = __commonJS({
|
|
|
113899
113899
|
"use strict";
|
|
113900
113900
|
var Timers = __require("timers");
|
|
113901
113901
|
var Command = require_command();
|
|
113902
|
-
var
|
|
113902
|
+
var Query29 = require_query3();
|
|
113903
113903
|
var Packets = require_packets();
|
|
113904
113904
|
var getBinaryParser = require_binary_parser();
|
|
113905
113905
|
var getStaticBinaryParser = require_static_binary_parser();
|
|
@@ -113990,15 +113990,15 @@ var require_execute2 = __commonJS({
|
|
|
113990
113990
|
return _Execute.prototype.row;
|
|
113991
113991
|
}
|
|
113992
113992
|
};
|
|
113993
|
-
Execute.prototype.done =
|
|
113994
|
-
Execute.prototype.doneInsert =
|
|
113995
|
-
Execute.prototype.resultsetHeader =
|
|
113996
|
-
Execute.prototype._findOrCreateReadStream =
|
|
113997
|
-
Execute.prototype._streamLocalInfile =
|
|
113998
|
-
Execute.prototype._setTimeout =
|
|
113999
|
-
Execute.prototype._handleTimeoutError =
|
|
114000
|
-
Execute.prototype.row =
|
|
114001
|
-
Execute.prototype.stream =
|
|
113993
|
+
Execute.prototype.done = Query29.prototype.done;
|
|
113994
|
+
Execute.prototype.doneInsert = Query29.prototype.doneInsert;
|
|
113995
|
+
Execute.prototype.resultsetHeader = Query29.prototype.resultsetHeader;
|
|
113996
|
+
Execute.prototype._findOrCreateReadStream = Query29.prototype._findOrCreateReadStream;
|
|
113997
|
+
Execute.prototype._streamLocalInfile = Query29.prototype._streamLocalInfile;
|
|
113998
|
+
Execute.prototype._setTimeout = Query29.prototype._setTimeout;
|
|
113999
|
+
Execute.prototype._handleTimeoutError = Query29.prototype._handleTimeoutError;
|
|
114000
|
+
Execute.prototype.row = Query29.prototype.row;
|
|
114001
|
+
Execute.prototype.stream = Query29.prototype.stream;
|
|
114002
114002
|
module2.exports = Execute;
|
|
114003
114003
|
}
|
|
114004
114004
|
});
|
|
@@ -114535,7 +114535,7 @@ var require_commands2 = __commonJS({
|
|
|
114535
114535
|
"use strict";
|
|
114536
114536
|
var ClientHandshake = require_client_handshake();
|
|
114537
114537
|
var ServerHandshake = require_server_handshake();
|
|
114538
|
-
var
|
|
114538
|
+
var Query29 = require_query3();
|
|
114539
114539
|
var Prepare = require_prepare();
|
|
114540
114540
|
var CloseStatement = require_close_statement2();
|
|
114541
114541
|
var Execute = require_execute2();
|
|
@@ -114548,7 +114548,7 @@ var require_commands2 = __commonJS({
|
|
|
114548
114548
|
module2.exports = {
|
|
114549
114549
|
ClientHandshake,
|
|
114550
114550
|
ServerHandshake,
|
|
114551
|
-
Query:
|
|
114551
|
+
Query: Query29,
|
|
114552
114552
|
Prepare,
|
|
114553
114553
|
CloseStatement,
|
|
114554
114554
|
Execute,
|
|
@@ -137678,14 +137678,14 @@ var require_Query = __commonJS({
|
|
|
137678
137678
|
"use strict";
|
|
137679
137679
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
137680
137680
|
exports2.Query = void 0;
|
|
137681
|
-
var
|
|
137681
|
+
var Query29 = class {
|
|
137682
137682
|
constructor(query, parameters) {
|
|
137683
137683
|
this.query = query;
|
|
137684
137684
|
this.parameters = parameters;
|
|
137685
137685
|
this["@instanceof"] = Symbol.for("Query");
|
|
137686
137686
|
}
|
|
137687
137687
|
};
|
|
137688
|
-
exports2.Query =
|
|
137688
|
+
exports2.Query = Query29;
|
|
137689
137689
|
}
|
|
137690
137690
|
});
|
|
137691
137691
|
|
|
@@ -178055,16 +178055,16 @@ var require_entities_metadata_storage = __commonJS({
|
|
|
178055
178055
|
var require_typeorm_core_module = __commonJS({
|
|
178056
178056
|
"../../node_modules/.pnpm/@nestjs+typeorm@10.0.2_@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.14.4__rtu75ogex4ui666p5nhypwgylq/node_modules/@nestjs/typeorm/dist/typeorm-core.module.js"(exports2) {
|
|
178057
178057
|
"use strict";
|
|
178058
|
-
var
|
|
178058
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
178059
178059
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
178060
178060
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
178061
178061
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
178062
178062
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
178063
178063
|
};
|
|
178064
|
-
var
|
|
178064
|
+
var __metadata155 = exports2 && exports2.__metadata || function(k2, v) {
|
|
178065
178065
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
178066
178066
|
};
|
|
178067
|
-
var
|
|
178067
|
+
var __param89 = exports2 && exports2.__param || function(paramIndex, decorator) {
|
|
178068
178068
|
return function(target, key) {
|
|
178069
178069
|
decorator(target, key, paramIndex);
|
|
178070
178070
|
};
|
|
@@ -178234,11 +178234,11 @@ var require_typeorm_core_module = __commonJS({
|
|
|
178234
178234
|
}).pipe((0, typeorm_utils_1.handleRetry)(options.retryAttempts, options.retryDelay, dataSourceToken, options.verboseRetryLog, options.toRetry)));
|
|
178235
178235
|
}
|
|
178236
178236
|
};
|
|
178237
|
-
exports2.TypeOrmCoreModule = TypeOrmCoreModule = TypeOrmCoreModule_1 =
|
|
178237
|
+
exports2.TypeOrmCoreModule = TypeOrmCoreModule = TypeOrmCoreModule_1 = __decorate204([
|
|
178238
178238
|
(0, common_1.Global)(),
|
|
178239
178239
|
(0, common_1.Module)({}),
|
|
178240
|
-
|
|
178241
|
-
|
|
178240
|
+
__param89(0, (0, common_1.Inject)(typeorm_constants_1.TYPEORM_MODULE_OPTIONS)),
|
|
178241
|
+
__metadata155("design:paramtypes", [Object, core_1.ModuleRef])
|
|
178242
178242
|
], TypeOrmCoreModule);
|
|
178243
178243
|
}
|
|
178244
178244
|
});
|
|
@@ -178276,7 +178276,7 @@ var require_typeorm_providers = __commonJS({
|
|
|
178276
178276
|
var require_typeorm_module = __commonJS({
|
|
178277
178277
|
"../../node_modules/.pnpm/@nestjs+typeorm@10.0.2_@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.14.4__rtu75ogex4ui666p5nhypwgylq/node_modules/@nestjs/typeorm/dist/typeorm.module.js"(exports2) {
|
|
178278
178278
|
"use strict";
|
|
178279
|
-
var
|
|
178279
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
178280
178280
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
178281
178281
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
178282
178282
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -178313,7 +178313,7 @@ var require_typeorm_module = __commonJS({
|
|
|
178313
178313
|
};
|
|
178314
178314
|
}
|
|
178315
178315
|
};
|
|
178316
|
-
exports2.TypeOrmModule = TypeOrmModule29 = TypeOrmModule_1 =
|
|
178316
|
+
exports2.TypeOrmModule = TypeOrmModule29 = TypeOrmModule_1 = __decorate204([
|
|
178317
178317
|
(0, common_1.Module)({})
|
|
178318
178318
|
], TypeOrmModule29);
|
|
178319
178319
|
}
|
|
@@ -184974,16 +184974,16 @@ var require_http_constants = __commonJS({
|
|
|
184974
184974
|
var require_http_service = __commonJS({
|
|
184975
184975
|
"../../node_modules/.pnpm/@nestjs+axios@3.1.3_@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.14.4_ref_24houauyh75zadnuxveih63xsm/node_modules/@nestjs/axios/dist/http.service.js"(exports2) {
|
|
184976
184976
|
"use strict";
|
|
184977
|
-
var
|
|
184977
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
184978
184978
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
184979
184979
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
184980
184980
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
184981
184981
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
184982
184982
|
};
|
|
184983
|
-
var
|
|
184983
|
+
var __metadata155 = exports2 && exports2.__metadata || function(k2, v) {
|
|
184984
184984
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
184985
184985
|
};
|
|
184986
|
-
var
|
|
184986
|
+
var __param89 = exports2 && exports2.__param || function(paramIndex, decorator) {
|
|
184987
184987
|
return function(target, key) {
|
|
184988
184988
|
decorator(target, key, paramIndex);
|
|
184989
184989
|
};
|
|
@@ -185062,9 +185062,9 @@ var require_http_service = __commonJS({
|
|
|
185062
185062
|
});
|
|
185063
185063
|
}
|
|
185064
185064
|
};
|
|
185065
|
-
HttpService3 =
|
|
185066
|
-
|
|
185067
|
-
|
|
185065
|
+
HttpService3 = __decorate204([
|
|
185066
|
+
__param89(0, (0, common_1.Inject)(http_constants_1.AXIOS_INSTANCE_TOKEN)),
|
|
185067
|
+
__metadata155("design:paramtypes", [Function])
|
|
185068
185068
|
], HttpService3);
|
|
185069
185069
|
exports2.HttpService = HttpService3;
|
|
185070
185070
|
}
|
|
@@ -185074,7 +185074,7 @@ var require_http_service = __commonJS({
|
|
|
185074
185074
|
var require_http_module = __commonJS({
|
|
185075
185075
|
"../../node_modules/.pnpm/@nestjs+axios@3.1.3_@nestjs+common@10.4.22_class-transformer@0.5.1_class-validator@0.14.4_ref_24houauyh75zadnuxveih63xsm/node_modules/@nestjs/axios/dist/http.module.js"(exports2) {
|
|
185076
185076
|
"use strict";
|
|
185077
|
-
var
|
|
185077
|
+
var __decorate204 = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
|
|
185078
185078
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
185079
185079
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
185080
185080
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -185155,7 +185155,7 @@ var require_http_module = __commonJS({
|
|
|
185155
185155
|
};
|
|
185156
185156
|
}
|
|
185157
185157
|
};
|
|
185158
|
-
HttpModule3 = HttpModule_1 =
|
|
185158
|
+
HttpModule3 = HttpModule_1 = __decorate204([
|
|
185159
185159
|
(0, common_1.Module)({
|
|
185160
185160
|
providers: [
|
|
185161
185161
|
http_service_1.HttpService,
|
|
@@ -194656,22 +194656,22 @@ var require_require_in_the_middle = __commonJS({
|
|
|
194656
194656
|
"../../node_modules/.pnpm/require-in-the-middle@8.0.1/node_modules/require-in-the-middle/index.js"(exports2, module2) {
|
|
194657
194657
|
"use strict";
|
|
194658
194658
|
var path14 = __require("path");
|
|
194659
|
-
var
|
|
194659
|
+
var Module45 = __require("module");
|
|
194660
194660
|
var debug3 = require_src()("require-in-the-middle");
|
|
194661
194661
|
var moduleDetailsFromPath = require_module_details_from_path();
|
|
194662
194662
|
module2.exports = Hook;
|
|
194663
194663
|
module2.exports.Hook = Hook;
|
|
194664
194664
|
var builtinModules;
|
|
194665
194665
|
var isCore;
|
|
194666
|
-
if (
|
|
194667
|
-
isCore =
|
|
194668
|
-
} else if (
|
|
194666
|
+
if (Module45.isBuiltin) {
|
|
194667
|
+
isCore = Module45.isBuiltin;
|
|
194668
|
+
} else if (Module45.builtinModules) {
|
|
194669
194669
|
isCore = (moduleName) => {
|
|
194670
194670
|
if (moduleName.startsWith("node:")) {
|
|
194671
194671
|
return true;
|
|
194672
194672
|
}
|
|
194673
194673
|
if (builtinModules === void 0) {
|
|
194674
|
-
builtinModules = new Set(
|
|
194674
|
+
builtinModules = new Set(Module45.builtinModules);
|
|
194675
194675
|
}
|
|
194676
194676
|
return builtinModules.has(moduleName);
|
|
194677
194677
|
};
|
|
@@ -194724,20 +194724,20 @@ var require_require_in_the_middle = __commonJS({
|
|
|
194724
194724
|
onrequire = options;
|
|
194725
194725
|
options = null;
|
|
194726
194726
|
}
|
|
194727
|
-
if (typeof
|
|
194728
|
-
console.error("Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!", typeof
|
|
194727
|
+
if (typeof Module45._resolveFilename !== "function") {
|
|
194728
|
+
console.error("Error: Expected Module._resolveFilename to be a function (was: %s) - aborting!", typeof Module45._resolveFilename);
|
|
194729
194729
|
console.error("Please report this error as an issue related to Node.js %s at https://github.com/nodejs/require-in-the-middle/issues", process.version);
|
|
194730
194730
|
return;
|
|
194731
194731
|
}
|
|
194732
194732
|
this._cache = new ExportsCache();
|
|
194733
194733
|
this._unhooked = false;
|
|
194734
|
-
this._origRequire =
|
|
194734
|
+
this._origRequire = Module45.prototype.require;
|
|
194735
194735
|
const self2 = this;
|
|
194736
194736
|
const patching = /* @__PURE__ */ new Set();
|
|
194737
194737
|
const internals = options ? options.internals === true : false;
|
|
194738
194738
|
const hasWhitelist = Array.isArray(modules);
|
|
194739
194739
|
debug3("registering require hook");
|
|
194740
|
-
this._require =
|
|
194740
|
+
this._require = Module45.prototype.require = function(id) {
|
|
194741
194741
|
if (self2._unhooked === true) {
|
|
194742
194742
|
debug3("ignoring require call - module is soft-unhooked");
|
|
194743
194743
|
return self2._origRequire.apply(this, arguments);
|
|
@@ -194771,7 +194771,7 @@ var require_require_in_the_middle = __commonJS({
|
|
|
194771
194771
|
return self2._origGetBuiltinModule.apply(this, args);
|
|
194772
194772
|
} else {
|
|
194773
194773
|
try {
|
|
194774
|
-
filename =
|
|
194774
|
+
filename = Module45._resolveFilename(id, this);
|
|
194775
194775
|
} catch (resolveErr) {
|
|
194776
194776
|
debug3('Module._resolveFilename("%s") threw %j, calling original Module.require', id, resolveErr.message);
|
|
194777
194777
|
return self2._origRequire.apply(this, args);
|
|
@@ -194858,8 +194858,8 @@ var require_require_in_the_middle = __commonJS({
|
|
|
194858
194858
|
}
|
|
194859
194859
|
Hook.prototype.unhook = function() {
|
|
194860
194860
|
this._unhooked = true;
|
|
194861
|
-
if (this._require ===
|
|
194862
|
-
|
|
194861
|
+
if (this._require === Module45.prototype.require) {
|
|
194862
|
+
Module45.prototype.require = this._origRequire;
|
|
194863
194863
|
debug3("require unhook successful");
|
|
194864
194864
|
} else {
|
|
194865
194865
|
debug3("require unhook unsuccessful");
|
|
@@ -198303,6 +198303,127 @@ var require_index_shim = __commonJS({
|
|
|
198303
198303
|
}
|
|
198304
198304
|
});
|
|
198305
198305
|
|
|
198306
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/redactor.js
|
|
198307
|
+
var redactor_exports = {};
|
|
198308
|
+
__export(redactor_exports, {
|
|
198309
|
+
DEFAULT_HEADER_KEYS: () => DEFAULT_HEADER_KEYS,
|
|
198310
|
+
DEFAULT_QUERY_KEYS: () => DEFAULT_QUERY_KEYS,
|
|
198311
|
+
createRedactor: () => createRedactor
|
|
198312
|
+
});
|
|
198313
|
+
function createRedactor(opts = {}) {
|
|
198314
|
+
const placeholder = opts.placeholder ?? "[REDACTED]";
|
|
198315
|
+
const matchMode = opts.matchMode ?? "exact";
|
|
198316
|
+
const headerKeys = [
|
|
198317
|
+
...opts.useDefaultHeaderKeys === false ? [] : DEFAULT_HEADER_KEYS,
|
|
198318
|
+
...opts.sensitiveHeaderKeys ?? []
|
|
198319
|
+
];
|
|
198320
|
+
const queryKeys = [
|
|
198321
|
+
...opts.useDefaultQueryKeys === false ? [] : DEFAULT_QUERY_KEYS,
|
|
198322
|
+
...opts.sensitiveQueryKeys ?? []
|
|
198323
|
+
];
|
|
198324
|
+
const bodyMode = opts.bodyMode ?? "json";
|
|
198325
|
+
function hit(keys, key) {
|
|
198326
|
+
const lower = key.toLowerCase();
|
|
198327
|
+
return matchMode === "includes" ? keys.some((s) => lower.includes(s)) : keys.includes(lower);
|
|
198328
|
+
}
|
|
198329
|
+
function redactHeaders(headers) {
|
|
198330
|
+
if (!headers)
|
|
198331
|
+
return void 0;
|
|
198332
|
+
const result = {};
|
|
198333
|
+
for (const [key, value] of Object.entries(headers)) {
|
|
198334
|
+
result[key] = hit(headerKeys, key) ? placeholder : value;
|
|
198335
|
+
}
|
|
198336
|
+
return result;
|
|
198337
|
+
}
|
|
198338
|
+
function redactUrlQuery(url2) {
|
|
198339
|
+
try {
|
|
198340
|
+
const u = new URL(url2);
|
|
198341
|
+
let changed = false;
|
|
198342
|
+
for (const key of u.searchParams.keys()) {
|
|
198343
|
+
if (hit(queryKeys, key)) {
|
|
198344
|
+
u.searchParams.set(key, placeholder);
|
|
198345
|
+
changed = true;
|
|
198346
|
+
}
|
|
198347
|
+
}
|
|
198348
|
+
return changed ? u.toString() : url2;
|
|
198349
|
+
} catch {
|
|
198350
|
+
return url2;
|
|
198351
|
+
}
|
|
198352
|
+
}
|
|
198353
|
+
function redactBodyJson(body) {
|
|
198354
|
+
const patterns = [
|
|
198355
|
+
/"password"\s*:\s*"[^"]*"/gi,
|
|
198356
|
+
/"access_token"\s*:\s*"[^"]*"/gi,
|
|
198357
|
+
/"refresh_token"\s*:\s*"[^"]*"/gi,
|
|
198358
|
+
/"api_key"\s*:\s*"[^"]*"/gi,
|
|
198359
|
+
/"token"\s*:\s*"[^"]*"/gi
|
|
198360
|
+
];
|
|
198361
|
+
let result = body;
|
|
198362
|
+
for (const p of patterns) {
|
|
198363
|
+
result = result.replace(p, (match) => {
|
|
198364
|
+
const key = match.split(":")[0];
|
|
198365
|
+
return `${key}: "${placeholder}"`;
|
|
198366
|
+
});
|
|
198367
|
+
}
|
|
198368
|
+
return result;
|
|
198369
|
+
}
|
|
198370
|
+
function redactBodyLoose(body) {
|
|
198371
|
+
let result = body.replace(/(password|token|secret|api[_-]?key)\s*[:=]\s*[^\s&]+/gi, `$1=${placeholder}`);
|
|
198372
|
+
for (const [pattern, replacement] of [PHONE_RULE, EMAIL_RULE, ...opts.extraBodyRules ?? []]) {
|
|
198373
|
+
result = result.replace(pattern, replacement);
|
|
198374
|
+
}
|
|
198375
|
+
return result;
|
|
198376
|
+
}
|
|
198377
|
+
function redactBody(body) {
|
|
198378
|
+
if (!body)
|
|
198379
|
+
return void 0;
|
|
198380
|
+
return bodyMode === "loose" ? redactBodyLoose(body) : redactBodyJson(body);
|
|
198381
|
+
}
|
|
198382
|
+
function redactText(text) {
|
|
198383
|
+
let result = text.replace(PHONE_RULE[0], PHONE_RULE[1]).replace(EMAIL_RULE[0], EMAIL_RULE[1]);
|
|
198384
|
+
for (const [pattern, replacement] of opts.extraBodyRules ?? []) {
|
|
198385
|
+
result = result.replace(pattern, replacement);
|
|
198386
|
+
}
|
|
198387
|
+
return result;
|
|
198388
|
+
}
|
|
198389
|
+
return { redactHeaders, redactUrlQuery, redactBody, redactText };
|
|
198390
|
+
}
|
|
198391
|
+
var DEFAULT_HEADER_KEYS, DEFAULT_QUERY_KEYS, PHONE_RULE, EMAIL_RULE;
|
|
198392
|
+
var init_redactor = __esm({
|
|
198393
|
+
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/redactor.js"() {
|
|
198394
|
+
DEFAULT_HEADER_KEYS = [
|
|
198395
|
+
"authorization",
|
|
198396
|
+
"cookie",
|
|
198397
|
+
"set-cookie",
|
|
198398
|
+
"x-api-key",
|
|
198399
|
+
"x-auth-token",
|
|
198400
|
+
"access_token",
|
|
198401
|
+
"refresh_token",
|
|
198402
|
+
"password",
|
|
198403
|
+
"api_key",
|
|
198404
|
+
"apikey",
|
|
198405
|
+
"secret",
|
|
198406
|
+
"token"
|
|
198407
|
+
];
|
|
198408
|
+
DEFAULT_QUERY_KEYS = [
|
|
198409
|
+
"access_token",
|
|
198410
|
+
"refresh_token",
|
|
198411
|
+
"token",
|
|
198412
|
+
"api_key",
|
|
198413
|
+
"apikey",
|
|
198414
|
+
"key",
|
|
198415
|
+
"password",
|
|
198416
|
+
"secret",
|
|
198417
|
+
"code"
|
|
198418
|
+
];
|
|
198419
|
+
PHONE_RULE = [/\b\d{11}\b/g, "***PHONE***"];
|
|
198420
|
+
EMAIL_RULE = [
|
|
198421
|
+
/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,
|
|
198422
|
+
"***EMAIL***"
|
|
198423
|
+
];
|
|
198424
|
+
}
|
|
198425
|
+
});
|
|
198426
|
+
|
|
198306
198427
|
// ../../node_modules/.pnpm/systeminformation@5.33.13/node_modules/systeminformation/package.json
|
|
198307
198428
|
var require_package5 = __commonJS({
|
|
198308
198429
|
"../../node_modules/.pnpm/systeminformation@5.33.13/node_modules/systeminformation/package.json"(exports2, module2) {
|
|
@@ -216726,127 +216847,6 @@ var require_types7 = __commonJS({
|
|
|
216726
216847
|
}
|
|
216727
216848
|
});
|
|
216728
216849
|
|
|
216729
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/redactor.js
|
|
216730
|
-
var redactor_exports = {};
|
|
216731
|
-
__export(redactor_exports, {
|
|
216732
|
-
DEFAULT_HEADER_KEYS: () => DEFAULT_HEADER_KEYS,
|
|
216733
|
-
DEFAULT_QUERY_KEYS: () => DEFAULT_QUERY_KEYS,
|
|
216734
|
-
createRedactor: () => createRedactor
|
|
216735
|
-
});
|
|
216736
|
-
function createRedactor(opts = {}) {
|
|
216737
|
-
const placeholder = opts.placeholder ?? "[REDACTED]";
|
|
216738
|
-
const matchMode = opts.matchMode ?? "exact";
|
|
216739
|
-
const headerKeys = [
|
|
216740
|
-
...opts.useDefaultHeaderKeys === false ? [] : DEFAULT_HEADER_KEYS,
|
|
216741
|
-
...opts.sensitiveHeaderKeys ?? []
|
|
216742
|
-
];
|
|
216743
|
-
const queryKeys = [
|
|
216744
|
-
...opts.useDefaultQueryKeys === false ? [] : DEFAULT_QUERY_KEYS,
|
|
216745
|
-
...opts.sensitiveQueryKeys ?? []
|
|
216746
|
-
];
|
|
216747
|
-
const bodyMode = opts.bodyMode ?? "json";
|
|
216748
|
-
function hit(keys, key) {
|
|
216749
|
-
const lower = key.toLowerCase();
|
|
216750
|
-
return matchMode === "includes" ? keys.some((s) => lower.includes(s)) : keys.includes(lower);
|
|
216751
|
-
}
|
|
216752
|
-
function redactHeaders(headers) {
|
|
216753
|
-
if (!headers)
|
|
216754
|
-
return void 0;
|
|
216755
|
-
const result = {};
|
|
216756
|
-
for (const [key, value] of Object.entries(headers)) {
|
|
216757
|
-
result[key] = hit(headerKeys, key) ? placeholder : value;
|
|
216758
|
-
}
|
|
216759
|
-
return result;
|
|
216760
|
-
}
|
|
216761
|
-
function redactUrlQuery(url2) {
|
|
216762
|
-
try {
|
|
216763
|
-
const u = new URL(url2);
|
|
216764
|
-
let changed = false;
|
|
216765
|
-
for (const key of u.searchParams.keys()) {
|
|
216766
|
-
if (hit(queryKeys, key)) {
|
|
216767
|
-
u.searchParams.set(key, placeholder);
|
|
216768
|
-
changed = true;
|
|
216769
|
-
}
|
|
216770
|
-
}
|
|
216771
|
-
return changed ? u.toString() : url2;
|
|
216772
|
-
} catch {
|
|
216773
|
-
return url2;
|
|
216774
|
-
}
|
|
216775
|
-
}
|
|
216776
|
-
function redactBodyJson(body) {
|
|
216777
|
-
const patterns = [
|
|
216778
|
-
/"password"\s*:\s*"[^"]*"/gi,
|
|
216779
|
-
/"access_token"\s*:\s*"[^"]*"/gi,
|
|
216780
|
-
/"refresh_token"\s*:\s*"[^"]*"/gi,
|
|
216781
|
-
/"api_key"\s*:\s*"[^"]*"/gi,
|
|
216782
|
-
/"token"\s*:\s*"[^"]*"/gi
|
|
216783
|
-
];
|
|
216784
|
-
let result = body;
|
|
216785
|
-
for (const p of patterns) {
|
|
216786
|
-
result = result.replace(p, (match) => {
|
|
216787
|
-
const key = match.split(":")[0];
|
|
216788
|
-
return `${key}: "${placeholder}"`;
|
|
216789
|
-
});
|
|
216790
|
-
}
|
|
216791
|
-
return result;
|
|
216792
|
-
}
|
|
216793
|
-
function redactBodyLoose(body) {
|
|
216794
|
-
let result = body.replace(/(password|token|secret|api[_-]?key)\s*[:=]\s*[^\s&]+/gi, `$1=${placeholder}`);
|
|
216795
|
-
for (const [pattern, replacement] of [PHONE_RULE, EMAIL_RULE, ...opts.extraBodyRules ?? []]) {
|
|
216796
|
-
result = result.replace(pattern, replacement);
|
|
216797
|
-
}
|
|
216798
|
-
return result;
|
|
216799
|
-
}
|
|
216800
|
-
function redactBody(body) {
|
|
216801
|
-
if (!body)
|
|
216802
|
-
return void 0;
|
|
216803
|
-
return bodyMode === "loose" ? redactBodyLoose(body) : redactBodyJson(body);
|
|
216804
|
-
}
|
|
216805
|
-
function redactText(text) {
|
|
216806
|
-
let result = text.replace(PHONE_RULE[0], PHONE_RULE[1]).replace(EMAIL_RULE[0], EMAIL_RULE[1]);
|
|
216807
|
-
for (const [pattern, replacement] of opts.extraBodyRules ?? []) {
|
|
216808
|
-
result = result.replace(pattern, replacement);
|
|
216809
|
-
}
|
|
216810
|
-
return result;
|
|
216811
|
-
}
|
|
216812
|
-
return { redactHeaders, redactUrlQuery, redactBody, redactText };
|
|
216813
|
-
}
|
|
216814
|
-
var DEFAULT_HEADER_KEYS, DEFAULT_QUERY_KEYS, PHONE_RULE, EMAIL_RULE;
|
|
216815
|
-
var init_redactor = __esm({
|
|
216816
|
-
"../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/redactor.js"() {
|
|
216817
|
-
DEFAULT_HEADER_KEYS = [
|
|
216818
|
-
"authorization",
|
|
216819
|
-
"cookie",
|
|
216820
|
-
"set-cookie",
|
|
216821
|
-
"x-api-key",
|
|
216822
|
-
"x-auth-token",
|
|
216823
|
-
"access_token",
|
|
216824
|
-
"refresh_token",
|
|
216825
|
-
"password",
|
|
216826
|
-
"api_key",
|
|
216827
|
-
"apikey",
|
|
216828
|
-
"secret",
|
|
216829
|
-
"token"
|
|
216830
|
-
];
|
|
216831
|
-
DEFAULT_QUERY_KEYS = [
|
|
216832
|
-
"access_token",
|
|
216833
|
-
"refresh_token",
|
|
216834
|
-
"token",
|
|
216835
|
-
"api_key",
|
|
216836
|
-
"apikey",
|
|
216837
|
-
"key",
|
|
216838
|
-
"password",
|
|
216839
|
-
"secret",
|
|
216840
|
-
"code"
|
|
216841
|
-
];
|
|
216842
|
-
PHONE_RULE = [/\b\d{11}\b/g, "***PHONE***"];
|
|
216843
|
-
EMAIL_RULE = [
|
|
216844
|
-
/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,
|
|
216845
|
-
"***EMAIL***"
|
|
216846
|
-
];
|
|
216847
|
-
}
|
|
216848
|
-
});
|
|
216849
|
-
|
|
216850
216850
|
// ../shared/dist/redactor.js
|
|
216851
216851
|
var require_redactor = __commonJS({
|
|
216852
216852
|
"../shared/dist/redactor.js"(exports2) {
|
|
@@ -216914,6 +216914,7 @@ var require_hbr = __commonJS({
|
|
|
216914
216914
|
exports2.createHbrEvent = createHbrEvent;
|
|
216915
216915
|
exports2.createNetworkEvent = createNetworkEvent;
|
|
216916
216916
|
exports2.createConsoleEvent = createConsoleEvent;
|
|
216917
|
+
exports2.createExceptionEvent = createExceptionEvent;
|
|
216917
216918
|
exports2.createResumeEvent = createResumeEvent;
|
|
216918
216919
|
exports2.createActionEvent = createActionEvent;
|
|
216919
216920
|
function createHbrEvent(type, sessionId, payload, options) {
|
|
@@ -216933,6 +216934,9 @@ var require_hbr = __commonJS({
|
|
|
216933
216934
|
function createConsoleEvent(sessionId, data, privacy = "private") {
|
|
216934
216935
|
return createHbrEvent("console", sessionId, data, { privacy });
|
|
216935
216936
|
}
|
|
216937
|
+
function createExceptionEvent(sessionId, data, privacy = "private") {
|
|
216938
|
+
return createHbrEvent("exception", sessionId, data, { privacy });
|
|
216939
|
+
}
|
|
216936
216940
|
function createResumeEvent(sessionId, data, privacy = "private") {
|
|
216937
216941
|
return createHbrEvent("resume", sessionId, data, { privacy });
|
|
216938
216942
|
}
|
|
@@ -217019,12 +217023,12 @@ var require_dist10 = __commonJS({
|
|
|
217019
217023
|
|
|
217020
217024
|
// dist/.server-tsc/main.js
|
|
217021
217025
|
var import_core201 = __toESM(require_core3(), 1);
|
|
217022
|
-
var
|
|
217026
|
+
var import_common163 = __toESM(require_common(), 1);
|
|
217023
217027
|
var import_platform_ws = __toESM(require_platform_ws(), 1);
|
|
217024
217028
|
import * as http6 from "http";
|
|
217025
217029
|
|
|
217026
217030
|
// dist/.server-tsc/app.module.js
|
|
217027
|
-
var
|
|
217031
|
+
var import_common161 = __toESM(require_common(), 1);
|
|
217028
217032
|
var import_config11 = __toESM(require_config2(), 1);
|
|
217029
217033
|
var import_serve_static = __toESM(require_serve_static2(), 1);
|
|
217030
217034
|
import { join as join16 } from "path";
|
|
@@ -217644,6 +217648,7 @@ var import_typeorm54 = __toESM(require_typeorm2(), 1);
|
|
|
217644
217648
|
var import_config = __toESM(require_config2(), 1);
|
|
217645
217649
|
import * as fs2 from "fs";
|
|
217646
217650
|
import * as path2 from "path";
|
|
217651
|
+
import Database from "better-sqlite3";
|
|
217647
217652
|
|
|
217648
217653
|
// dist/.server-tsc/recording/entities/recording-event.entity.js
|
|
217649
217654
|
var __decorate7 = function(decorators, target, key, desc) {
|
|
@@ -220874,6 +220879,30 @@ SqliteWalService = SqliteWalService_1 = __decorate53([
|
|
|
220874
220879
|
__metadata52("design:paramtypes", [DataSource])
|
|
220875
220880
|
], SqliteWalService);
|
|
220876
220881
|
var dataDir = () => process.env.HM_DATA_DIR || path2.join(HOME(), ".hunter-mate");
|
|
220882
|
+
function preSyncJobCaseStatusMap(dbFile) {
|
|
220883
|
+
let db;
|
|
220884
|
+
try {
|
|
220885
|
+
if (!fs2.existsSync(dbFile))
|
|
220886
|
+
return 0;
|
|
220887
|
+
db = new Database(dbFile, { fileMustExist: true });
|
|
220888
|
+
const t = db.prepare("SELECT 1 FROM sqlite_master WHERE type='table' AND name='job_cases'").get();
|
|
220889
|
+
if (!t)
|
|
220890
|
+
return 0;
|
|
220891
|
+
db.pragma("ignore_check_constraints = ON");
|
|
220892
|
+
let changes = 0;
|
|
220893
|
+
changes += db.prepare("UPDATE job_cases SET status='closed' WHERE status='archived'").run().changes;
|
|
220894
|
+
changes += db.prepare("UPDATE job_cases SET status='active' WHERE status='draft'").run().changes;
|
|
220895
|
+
db.pragma("ignore_check_constraints = OFF");
|
|
220896
|
+
return changes;
|
|
220897
|
+
} catch {
|
|
220898
|
+
return 0;
|
|
220899
|
+
} finally {
|
|
220900
|
+
try {
|
|
220901
|
+
db?.close();
|
|
220902
|
+
} catch {
|
|
220903
|
+
}
|
|
220904
|
+
}
|
|
220905
|
+
}
|
|
220877
220906
|
var SqliteModule = class SqliteModule2 {
|
|
220878
220907
|
};
|
|
220879
220908
|
SqliteModule = __decorate53([
|
|
@@ -220885,6 +220914,10 @@ SqliteModule = __decorate53([
|
|
|
220885
220914
|
useFactory: (config) => {
|
|
220886
220915
|
const dbFile = config.get("SQLITE_PATH") || path2.join(dataDir(), "hunter-mate.db");
|
|
220887
220916
|
fs2.mkdirSync(path2.dirname(dbFile), { recursive: true });
|
|
220917
|
+
const migrated = preSyncJobCaseStatusMap(dbFile);
|
|
220918
|
+
if (migrated > 0) {
|
|
220919
|
+
new import_common5.Logger("SqliteModule").log(`job_cases \u65E7\u4E09\u6001\u503C\u6620\u5C04\u5B8C\u6210(${migrated} \u884C:draft/active\u2192active\u3001archived\u2192closed),synchronize \u53EF\u5B89\u5168\u91CD\u5EFA\u8868`);
|
|
220920
|
+
}
|
|
220888
220921
|
return {
|
|
220889
220922
|
type: "better-sqlite3",
|
|
220890
220923
|
database: dbFile,
|
|
@@ -225785,7 +225818,7 @@ SystemService = SystemService_1 = __decorate88([
|
|
|
225785
225818
|
__metadata76("design:paramtypes", [])
|
|
225786
225819
|
], SystemService);
|
|
225787
225820
|
|
|
225788
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
225821
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/updater.js
|
|
225789
225822
|
var DEFAULT_INTERVAL_MS = 60 * 60 * 1e3;
|
|
225790
225823
|
|
|
225791
225824
|
// ../../node_modules/.pnpm/@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1_/node_modules/@sentry/node/build/esm/index.js
|
|
@@ -264301,7 +264334,7 @@ function experimentalUseDiagnosticsChannelInjection(options) {
|
|
|
264301
264334
|
});
|
|
264302
264335
|
}
|
|
264303
264336
|
|
|
264304
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
264337
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/sentry.js
|
|
264305
264338
|
function isLocalDsn(dsn) {
|
|
264306
264339
|
try {
|
|
264307
264340
|
const url2 = new URL(dsn);
|
|
@@ -264353,7 +264386,22 @@ function initSentryFromEnv(envPrefix, o = {}) {
|
|
|
264353
264386
|
});
|
|
264354
264387
|
}
|
|
264355
264388
|
|
|
264356
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
264389
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/index.js
|
|
264390
|
+
init_redactor();
|
|
264391
|
+
|
|
264392
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/url-key.js
|
|
264393
|
+
function recordingUrlKey(rawUrl) {
|
|
264394
|
+
try {
|
|
264395
|
+
const u = new URL(rawUrl);
|
|
264396
|
+
if (!u.origin || u.origin === "null")
|
|
264397
|
+
return "";
|
|
264398
|
+
return u.origin + u.pathname;
|
|
264399
|
+
} catch {
|
|
264400
|
+
return "";
|
|
264401
|
+
}
|
|
264402
|
+
}
|
|
264403
|
+
|
|
264404
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/deferred-reload.js
|
|
264357
264405
|
import fs5 from "node:fs";
|
|
264358
264406
|
import path4 from "node:path";
|
|
264359
264407
|
var DEFAULT_PENDING_RELOAD_FILE = "pending-extension-reload.json";
|
|
@@ -264455,7 +264503,7 @@ function deliverPendingReload(home, state, socket, message, opts = {}) {
|
|
|
264455
264503
|
opts.logger?.info("pending extension reload delivered on reconnect");
|
|
264456
264504
|
}
|
|
264457
264505
|
|
|
264458
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
264506
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/connection.js
|
|
264459
264507
|
var KEEPALIVE_PING_INTERVAL_MS = 12e3;
|
|
264460
264508
|
var KEEPALIVE_PONG_TIMEOUT_MS = 9e4;
|
|
264461
264509
|
var SOCKET_OPEN_STATE = 1;
|
|
@@ -264526,7 +264574,7 @@ function replyPongOnPing(socket, data) {
|
|
|
264526
264574
|
return true;
|
|
264527
264575
|
}
|
|
264528
264576
|
|
|
264529
|
-
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.
|
|
264577
|
+
// ../../node_modules/.pnpm/@chromepilot+kit@0.1.13_@sentry+node@10.70.0_@opentelemetry+core@2.10.0_@opentelemetry+api@1.9.1__/node_modules/@chromepilot/kit/dist/ws-guard.js
|
|
264530
264578
|
function closeReplacedSocket(existing, incoming) {
|
|
264531
264579
|
if (!existing || existing === incoming)
|
|
264532
264580
|
return false;
|
|
@@ -265210,6 +265258,9 @@ var RecordingService = class RecordingService2 {
|
|
|
265210
265258
|
const { q, to } = options;
|
|
265211
265259
|
const from = options.from ?? (!to ? new Date(Date.now() - RecordingService_1.DEFAULT_WINDOW_MS) : void 0);
|
|
265212
265260
|
const qb = this.eventRepo.createQueryBuilder("e").select("e.sessionId", "sessionId").addSelect("COUNT(*)", "eventCount").addSelect("MIN(e.createdAt)", "startedAt").addSelect("MAX(e.createdAt)", "lastEventAt").addSelect("MAX(e.sourceUrl)", "sourceUrl").addSelect("MAX(e.tabId)", "tabId").groupBy("e.sessionId");
|
|
265261
|
+
if (options.withTypeCounts) {
|
|
265262
|
+
qb.addSelect("SUM(CASE WHEN e.eventType = 'rrweb' THEN 1 ELSE 0 END)", "rrwebCount").addSelect("SUM(CASE WHEN e.eventType = 'network' THEN 1 ELSE 0 END)", "networkCount").addSelect("SUM(CASE WHEN e.eventType = 'console' THEN 1 ELSE 0 END)", "consoleCount").addSelect("SUM(CASE WHEN e.eventType = 'resume' THEN 1 ELSE 0 END)", "resumeCount").addSelect("SUM(CASE WHEN e.eventType = 'action' THEN 1 ELSE 0 END)", "actionCount");
|
|
265263
|
+
}
|
|
265213
265264
|
if (from)
|
|
265214
265265
|
qb.andWhere("e.createdAt >= :from", { from });
|
|
265215
265266
|
if (to)
|
|
@@ -265228,10 +265279,30 @@ var RecordingService = class RecordingService2 {
|
|
|
265228
265279
|
startedAt: r.startedAt,
|
|
265229
265280
|
lastEventAt: r.lastEventAt,
|
|
265230
265281
|
sourceUrl: r.sourceUrl,
|
|
265231
|
-
tabId: r.tabId ? Number(r.tabId) : void 0
|
|
265282
|
+
tabId: r.tabId ? Number(r.tabId) : void 0,
|
|
265283
|
+
...r.rrwebCount !== void 0 ? {
|
|
265284
|
+
counts: {
|
|
265285
|
+
rrwebCount: Number(r.rrwebCount) || 0,
|
|
265286
|
+
networkCount: Number(r.networkCount) || 0,
|
|
265287
|
+
consoleCount: Number(r.consoleCount) || 0,
|
|
265288
|
+
resumeCount: Number(r.resumeCount) || 0,
|
|
265289
|
+
actionCount: Number(r.actionCount) || 0
|
|
265290
|
+
}
|
|
265291
|
+
} : {}
|
|
265232
265292
|
}))
|
|
265233
265293
|
};
|
|
265234
265294
|
}
|
|
265295
|
+
async getBusinessEvents(sessionId) {
|
|
265296
|
+
const events = await this.eventRepo.find({
|
|
265297
|
+
where: { sessionId, eventType: In(["resume", "action"]) },
|
|
265298
|
+
order: { createdAt: "ASC" }
|
|
265299
|
+
});
|
|
265300
|
+
return events.map((e) => ({
|
|
265301
|
+
eventType: e.eventType,
|
|
265302
|
+
createdAt: e.createdAt.toISOString(),
|
|
265303
|
+
payload: e.payload
|
|
265304
|
+
}));
|
|
265305
|
+
}
|
|
265235
265306
|
};
|
|
265236
265307
|
RecordingService = RecordingService_1 = __decorate94([
|
|
265237
265308
|
(0, import_common51.Injectable)(),
|
|
@@ -296392,7 +296463,7 @@ AuthMiddleware = __decorate134([
|
|
|
296392
296463
|
|
|
296393
296464
|
// dist/.server-tsc/shared-page.middleware.js
|
|
296394
296465
|
var import_common92 = __toESM(require_common(), 1);
|
|
296395
|
-
import { existsSync as
|
|
296466
|
+
import { existsSync as existsSync7 } from "fs";
|
|
296396
296467
|
import { join as join13 } from "path";
|
|
296397
296468
|
var __decorate135 = function(decorators, target, key, desc) {
|
|
296398
296469
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -296408,7 +296479,7 @@ var SharedPageMiddleware = class SharedPageMiddleware2 {
|
|
|
296408
296479
|
if (!rel)
|
|
296409
296480
|
return null;
|
|
296410
296481
|
const abs = join13(WEB_DIST, rel);
|
|
296411
|
-
return
|
|
296482
|
+
return existsSync7(abs) ? abs : null;
|
|
296412
296483
|
}
|
|
296413
296484
|
use(req, res, next) {
|
|
296414
296485
|
if (req.method !== "GET")
|
|
@@ -296756,11 +296827,90 @@ SearchModule = __decorate143([
|
|
|
296756
296827
|
})
|
|
296757
296828
|
], SearchModule);
|
|
296758
296829
|
|
|
296759
|
-
// dist/.server-tsc/
|
|
296830
|
+
// dist/.server-tsc/recordings-view/recordings-view.module.js
|
|
296760
296831
|
var import_common102 = __toESM(require_common(), 1);
|
|
296761
296832
|
|
|
296762
|
-
// dist/.server-tsc/
|
|
296833
|
+
// dist/.server-tsc/recordings-view/recordings-view.controller.js
|
|
296763
296834
|
var import_common101 = __toESM(require_common(), 1);
|
|
296835
|
+
|
|
296836
|
+
// dist/.server-tsc/recordings-view/recordings-view.mapper.js
|
|
296837
|
+
function parseMs(value) {
|
|
296838
|
+
if (value === null || value === void 0 || value === "")
|
|
296839
|
+
return null;
|
|
296840
|
+
const ms = value instanceof Date ? value.getTime() : Date.parse(value);
|
|
296841
|
+
return Number.isFinite(ms) ? ms : null;
|
|
296842
|
+
}
|
|
296843
|
+
function domainOf(url2) {
|
|
296844
|
+
if (!url2)
|
|
296845
|
+
return "";
|
|
296846
|
+
try {
|
|
296847
|
+
return new URL(url2).hostname || "";
|
|
296848
|
+
} catch {
|
|
296849
|
+
return "";
|
|
296850
|
+
}
|
|
296851
|
+
}
|
|
296852
|
+
function toRecordingMeta(row) {
|
|
296853
|
+
const start = parseMs(row.startedAt);
|
|
296854
|
+
const end = parseMs(row.lastEventAt);
|
|
296855
|
+
const url2 = row.sourceUrl ?? "";
|
|
296856
|
+
return {
|
|
296857
|
+
sessionId: row.sessionId,
|
|
296858
|
+
title: url2 || row.sessionId,
|
|
296859
|
+
status: "completed",
|
|
296860
|
+
startTime: start ?? 0,
|
|
296861
|
+
endTime: end,
|
|
296862
|
+
duration: start !== null && end !== null ? Math.max(0, end - start) : null,
|
|
296863
|
+
startUrl: url2,
|
|
296864
|
+
domain: domainOf(url2),
|
|
296865
|
+
url: url2,
|
|
296866
|
+
urlKey: url2 ? recordingUrlKey(url2) : "",
|
|
296867
|
+
tabId: row.tabId ?? null,
|
|
296868
|
+
tags: []
|
|
296869
|
+
};
|
|
296870
|
+
}
|
|
296871
|
+
function toListItem(row) {
|
|
296872
|
+
return {
|
|
296873
|
+
...toRecordingMeta(row),
|
|
296874
|
+
counts: row.counts,
|
|
296875
|
+
eventCount: row.eventCount,
|
|
296876
|
+
startedAt: row.startedAt,
|
|
296877
|
+
lastEventAt: row.lastEventAt,
|
|
296878
|
+
sourceUrl: row.sourceUrl ?? null
|
|
296879
|
+
};
|
|
296880
|
+
}
|
|
296881
|
+
function toMetaFromDetail(events, summary, sessionId) {
|
|
296882
|
+
const sourceUrl = events.find((e) => e.sourceUrl)?.sourceUrl ?? void 0;
|
|
296883
|
+
const tabId = events.find((e) => e.tabId !== null && e.tabId !== void 0)?.tabId ?? void 0;
|
|
296884
|
+
return toRecordingMeta({
|
|
296885
|
+
sessionId,
|
|
296886
|
+
eventCount: events.length,
|
|
296887
|
+
startedAt: summary.firstEventAt,
|
|
296888
|
+
lastEventAt: summary.lastEventAt,
|
|
296889
|
+
sourceUrl: sourceUrl ?? void 0,
|
|
296890
|
+
tabId: tabId ?? void 0
|
|
296891
|
+
});
|
|
296892
|
+
}
|
|
296893
|
+
function toRecordingEvents(events, sessionId) {
|
|
296894
|
+
const out = { rrweb: [], network: [], console: [], exceptions: [] };
|
|
296895
|
+
for (const e of events) {
|
|
296896
|
+
if (e.eventType === "rrweb") {
|
|
296897
|
+
out.rrweb.push(e.payload);
|
|
296898
|
+
continue;
|
|
296899
|
+
}
|
|
296900
|
+
if (e.eventType === "network" || e.eventType === "console" || e.eventType === "exception") {
|
|
296901
|
+
const lane = e.eventType === "exception" ? out.exceptions : out[e.eventType];
|
|
296902
|
+
lane.push({
|
|
296903
|
+
type: e.eventType,
|
|
296904
|
+
timestamp: parseMs(e.createdAt) ?? 0,
|
|
296905
|
+
sessionId,
|
|
296906
|
+
payload: e.payload ?? {}
|
|
296907
|
+
});
|
|
296908
|
+
}
|
|
296909
|
+
}
|
|
296910
|
+
return out;
|
|
296911
|
+
}
|
|
296912
|
+
|
|
296913
|
+
// dist/.server-tsc/recordings-view/recordings-view.controller.js
|
|
296764
296914
|
var __decorate144 = function(decorators, target, key, desc) {
|
|
296765
296915
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
296766
296916
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -296775,6 +296925,108 @@ var __param53 = function(paramIndex, decorator) {
|
|
|
296775
296925
|
decorator(target, key, paramIndex);
|
|
296776
296926
|
};
|
|
296777
296927
|
};
|
|
296928
|
+
var RecordingsViewController = class RecordingsViewController2 {
|
|
296929
|
+
recordingService;
|
|
296930
|
+
constructor(recordingService) {
|
|
296931
|
+
this.recordingService = recordingService;
|
|
296932
|
+
}
|
|
296933
|
+
async list(limit) {
|
|
296934
|
+
const capped = limit ? Math.min(Number(limit) || 100, 500) : 100;
|
|
296935
|
+
const data = await this.recordingService.listRecordings(capped, { withTypeCounts: true });
|
|
296936
|
+
return {
|
|
296937
|
+
recordings: data.sessions.map((row) => toListItem({
|
|
296938
|
+
sessionId: row.sessionId,
|
|
296939
|
+
eventCount: row.eventCount,
|
|
296940
|
+
startedAt: row.startedAt,
|
|
296941
|
+
lastEventAt: row.lastEventAt,
|
|
296942
|
+
sourceUrl: row.sourceUrl,
|
|
296943
|
+
tabId: row.tabId,
|
|
296944
|
+
counts: row.counts
|
|
296945
|
+
})),
|
|
296946
|
+
nextCursor: null
|
|
296947
|
+
};
|
|
296948
|
+
}
|
|
296949
|
+
async business(sessionId) {
|
|
296950
|
+
const items = await this.recordingService.getBusinessEvents(sessionId);
|
|
296951
|
+
return { items };
|
|
296952
|
+
}
|
|
296953
|
+
async events(sessionId) {
|
|
296954
|
+
const { events } = await this.recordingService.getRecording(sessionId);
|
|
296955
|
+
return toRecordingEvents(events, sessionId);
|
|
296956
|
+
}
|
|
296957
|
+
async meta(sessionId) {
|
|
296958
|
+
const { events, summary } = await this.recordingService.getRecording(sessionId);
|
|
296959
|
+
return toMetaFromDetail(events, summary, sessionId);
|
|
296960
|
+
}
|
|
296961
|
+
};
|
|
296962
|
+
__decorate144([
|
|
296963
|
+
(0, import_common101.Get)(),
|
|
296964
|
+
__param53(0, (0, import_common101.Query)("limit")),
|
|
296965
|
+
__metadata115("design:type", Function),
|
|
296966
|
+
__metadata115("design:paramtypes", [String]),
|
|
296967
|
+
__metadata115("design:returntype", Promise)
|
|
296968
|
+
], RecordingsViewController.prototype, "list", null);
|
|
296969
|
+
__decorate144([
|
|
296970
|
+
(0, import_common101.Get)(":sessionId/business"),
|
|
296971
|
+
__param53(0, (0, import_common101.Param)("sessionId")),
|
|
296972
|
+
__metadata115("design:type", Function),
|
|
296973
|
+
__metadata115("design:paramtypes", [String]),
|
|
296974
|
+
__metadata115("design:returntype", Promise)
|
|
296975
|
+
], RecordingsViewController.prototype, "business", null);
|
|
296976
|
+
__decorate144([
|
|
296977
|
+
(0, import_common101.Get)(":sessionId/events"),
|
|
296978
|
+
__param53(0, (0, import_common101.Param)("sessionId")),
|
|
296979
|
+
__metadata115("design:type", Function),
|
|
296980
|
+
__metadata115("design:paramtypes", [String]),
|
|
296981
|
+
__metadata115("design:returntype", Promise)
|
|
296982
|
+
], RecordingsViewController.prototype, "events", null);
|
|
296983
|
+
__decorate144([
|
|
296984
|
+
(0, import_common101.Get)(":sessionId"),
|
|
296985
|
+
__param53(0, (0, import_common101.Param)("sessionId")),
|
|
296986
|
+
__metadata115("design:type", Function),
|
|
296987
|
+
__metadata115("design:paramtypes", [String]),
|
|
296988
|
+
__metadata115("design:returntype", Promise)
|
|
296989
|
+
], RecordingsViewController.prototype, "meta", null);
|
|
296990
|
+
RecordingsViewController = __decorate144([
|
|
296991
|
+
(0, import_common101.Controller)("api/recordings-view/recordings"),
|
|
296992
|
+
__metadata115("design:paramtypes", [RecordingService])
|
|
296993
|
+
], RecordingsViewController);
|
|
296994
|
+
|
|
296995
|
+
// dist/.server-tsc/recordings-view/recordings-view.module.js
|
|
296996
|
+
var __decorate145 = function(decorators, target, key, desc) {
|
|
296997
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
296998
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
296999
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
297000
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
297001
|
+
};
|
|
297002
|
+
var RecordingsViewModule = class RecordingsViewModule2 {
|
|
297003
|
+
};
|
|
297004
|
+
RecordingsViewModule = __decorate145([
|
|
297005
|
+
(0, import_common102.Module)({
|
|
297006
|
+
imports: [RecordingModule],
|
|
297007
|
+
controllers: [RecordingsViewController]
|
|
297008
|
+
})
|
|
297009
|
+
], RecordingsViewModule);
|
|
297010
|
+
|
|
297011
|
+
// dist/.server-tsc/system/system.module.js
|
|
297012
|
+
var import_common104 = __toESM(require_common(), 1);
|
|
297013
|
+
|
|
297014
|
+
// dist/.server-tsc/system/system.controller.js
|
|
297015
|
+
var import_common103 = __toESM(require_common(), 1);
|
|
297016
|
+
var __decorate146 = function(decorators, target, key, desc) {
|
|
297017
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
297018
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297019
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
297020
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
297021
|
+
};
|
|
297022
|
+
var __metadata116 = function(k2, v) {
|
|
297023
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
297024
|
+
};
|
|
297025
|
+
var __param54 = function(paramIndex, decorator) {
|
|
297026
|
+
return function(target, key) {
|
|
297027
|
+
decorator(target, key, paramIndex);
|
|
297028
|
+
};
|
|
297029
|
+
};
|
|
296778
297030
|
var SystemController = class SystemController2 {
|
|
296779
297031
|
system;
|
|
296780
297032
|
extensionControl;
|
|
@@ -296817,42 +297069,42 @@ var SystemController = class SystemController2 {
|
|
|
296817
297069
|
return { ok: true, broadcast: r.count, errors: r.errors, queued: r.queued };
|
|
296818
297070
|
}
|
|
296819
297071
|
};
|
|
296820
|
-
|
|
296821
|
-
(0,
|
|
296822
|
-
|
|
296823
|
-
|
|
296824
|
-
|
|
297072
|
+
__decorate146([
|
|
297073
|
+
(0, import_common103.Get)("versions"),
|
|
297074
|
+
__metadata116("design:type", Function),
|
|
297075
|
+
__metadata116("design:paramtypes", []),
|
|
297076
|
+
__metadata116("design:returntype", void 0)
|
|
296825
297077
|
], SystemController.prototype, "versions", null);
|
|
296826
|
-
|
|
296827
|
-
(0,
|
|
296828
|
-
|
|
296829
|
-
|
|
296830
|
-
|
|
297078
|
+
__decorate146([
|
|
297079
|
+
(0, import_common103.Get)("consistency"),
|
|
297080
|
+
__metadata116("design:type", Function),
|
|
297081
|
+
__metadata116("design:paramtypes", []),
|
|
297082
|
+
__metadata116("design:returntype", void 0)
|
|
296831
297083
|
], SystemController.prototype, "consistency", null);
|
|
296832
|
-
|
|
296833
|
-
(0,
|
|
296834
|
-
|
|
296835
|
-
|
|
296836
|
-
|
|
296837
|
-
|
|
297084
|
+
__decorate146([
|
|
297085
|
+
(0, import_common103.Post)("reload-plugins"),
|
|
297086
|
+
__param54(0, (0, import_common103.Body)()),
|
|
297087
|
+
__metadata116("design:type", Function),
|
|
297088
|
+
__metadata116("design:paramtypes", [Object]),
|
|
297089
|
+
__metadata116("design:returntype", void 0)
|
|
296838
297090
|
], SystemController.prototype, "reloadPlugins", null);
|
|
296839
|
-
|
|
296840
|
-
(0,
|
|
296841
|
-
|
|
296842
|
-
|
|
296843
|
-
|
|
296844
|
-
|
|
297091
|
+
__decorate146([
|
|
297092
|
+
(0, import_common103.Post)("broadcast-extension"),
|
|
297093
|
+
__param54(0, (0, import_common103.Body)()),
|
|
297094
|
+
__metadata116("design:type", Function),
|
|
297095
|
+
__metadata116("design:paramtypes", [Object]),
|
|
297096
|
+
__metadata116("design:returntype", void 0)
|
|
296845
297097
|
], SystemController.prototype, "broadcastExtension", null);
|
|
296846
|
-
SystemController =
|
|
296847
|
-
(0,
|
|
296848
|
-
|
|
297098
|
+
SystemController = __decorate146([
|
|
297099
|
+
(0, import_common103.Controller)("system"),
|
|
297100
|
+
__metadata116("design:paramtypes", [
|
|
296849
297101
|
SystemService,
|
|
296850
297102
|
ExtensionControlService
|
|
296851
297103
|
])
|
|
296852
297104
|
], SystemController);
|
|
296853
297105
|
|
|
296854
297106
|
// dist/.server-tsc/system/system.module.js
|
|
296855
|
-
var
|
|
297107
|
+
var __decorate147 = function(decorators, target, key, desc) {
|
|
296856
297108
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
296857
297109
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
296858
297110
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -296860,9 +297112,9 @@ var __decorate145 = function(decorators, target, key, desc) {
|
|
|
296860
297112
|
};
|
|
296861
297113
|
var SystemModule = class SystemModule2 {
|
|
296862
297114
|
};
|
|
296863
|
-
SystemModule =
|
|
296864
|
-
(0,
|
|
296865
|
-
(0,
|
|
297115
|
+
SystemModule = __decorate147([
|
|
297116
|
+
(0, import_common104.Global)(),
|
|
297117
|
+
(0, import_common104.Module)({
|
|
296866
297118
|
imports: [ExtensionCoreModule],
|
|
296867
297119
|
controllers: [SystemController],
|
|
296868
297120
|
providers: [SystemService],
|
|
@@ -296871,22 +297123,22 @@ SystemModule = __decorate145([
|
|
|
296871
297123
|
], SystemModule);
|
|
296872
297124
|
|
|
296873
297125
|
// dist/.server-tsc/snapshot/snapshot.module.js
|
|
296874
|
-
var
|
|
297126
|
+
var import_common107 = __toESM(require_common(), 1);
|
|
296875
297127
|
var import_typeorm123 = __toESM(require_typeorm2(), 1);
|
|
296876
297128
|
|
|
296877
297129
|
// dist/.server-tsc/snapshot/snapshot.service.js
|
|
296878
|
-
var
|
|
297130
|
+
var import_common105 = __toESM(require_common(), 1);
|
|
296879
297131
|
var import_typeorm121 = __toESM(require_typeorm2(), 1);
|
|
296880
|
-
var
|
|
297132
|
+
var __decorate148 = function(decorators, target, key, desc) {
|
|
296881
297133
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
296882
297134
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
296883
297135
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
296884
297136
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
296885
297137
|
};
|
|
296886
|
-
var
|
|
297138
|
+
var __metadata117 = function(k2, v) {
|
|
296887
297139
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
296888
297140
|
};
|
|
296889
|
-
var
|
|
297141
|
+
var __param55 = function(paramIndex, decorator) {
|
|
296890
297142
|
return function(target, key) {
|
|
296891
297143
|
decorator(target, key, paramIndex);
|
|
296892
297144
|
};
|
|
@@ -296913,25 +297165,25 @@ var SnapshotService = class SnapshotService2 {
|
|
|
296913
297165
|
return this.repo.find({ where: { status: "pending" }, take: limit, order: { createdAt: "ASC" } });
|
|
296914
297166
|
}
|
|
296915
297167
|
};
|
|
296916
|
-
SnapshotService =
|
|
296917
|
-
(0,
|
|
296918
|
-
|
|
296919
|
-
|
|
297168
|
+
SnapshotService = __decorate148([
|
|
297169
|
+
(0, import_common105.Injectable)(),
|
|
297170
|
+
__param55(0, (0, import_typeorm121.InjectRepository)(RawSnapshot)),
|
|
297171
|
+
__metadata117("design:paramtypes", [Repository])
|
|
296920
297172
|
], SnapshotService);
|
|
296921
297173
|
|
|
296922
297174
|
// dist/.server-tsc/snapshot/snapshot.controller.js
|
|
296923
|
-
var
|
|
297175
|
+
var import_common106 = __toESM(require_common(), 1);
|
|
296924
297176
|
var import_class_validator2 = __toESM(require_cjs(), 1);
|
|
296925
|
-
var
|
|
297177
|
+
var __decorate149 = function(decorators, target, key, desc) {
|
|
296926
297178
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
296927
297179
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
296928
297180
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
296929
297181
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
296930
297182
|
};
|
|
296931
|
-
var
|
|
297183
|
+
var __metadata118 = function(k2, v) {
|
|
296932
297184
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
296933
297185
|
};
|
|
296934
|
-
var
|
|
297186
|
+
var __param56 = function(paramIndex, decorator) {
|
|
296935
297187
|
return function(target, key) {
|
|
296936
297188
|
decorator(target, key, paramIndex);
|
|
296937
297189
|
};
|
|
@@ -296941,18 +297193,18 @@ var CreateSnapshotDto = class {
|
|
|
296941
297193
|
source;
|
|
296942
297194
|
content;
|
|
296943
297195
|
};
|
|
296944
|
-
|
|
297196
|
+
__decorate149([
|
|
296945
297197
|
(0, import_class_validator2.IsString)(),
|
|
296946
|
-
|
|
297198
|
+
__metadata118("design:type", Object)
|
|
296947
297199
|
], CreateSnapshotDto.prototype, "snapshotType", void 0);
|
|
296948
|
-
|
|
297200
|
+
__decorate149([
|
|
296949
297201
|
(0, import_class_validator2.IsObject)(),
|
|
296950
|
-
|
|
297202
|
+
__metadata118("design:type", Object)
|
|
296951
297203
|
], CreateSnapshotDto.prototype, "source", void 0);
|
|
296952
|
-
|
|
297204
|
+
__decorate149([
|
|
296953
297205
|
(0, import_class_validator2.IsOptional)(),
|
|
296954
297206
|
(0, import_class_validator2.IsObject)(),
|
|
296955
|
-
|
|
297207
|
+
__metadata118("design:type", Object)
|
|
296956
297208
|
], CreateSnapshotDto.prototype, "content", void 0);
|
|
296957
297209
|
var SnapshotController = class SnapshotController2 {
|
|
296958
297210
|
service;
|
|
@@ -296970,31 +297222,31 @@ var SnapshotController = class SnapshotController2 {
|
|
|
296970
297222
|
async get(id) {
|
|
296971
297223
|
const snapshot = await this.service.findById(id);
|
|
296972
297224
|
if (!snapshot)
|
|
296973
|
-
throw new
|
|
297225
|
+
throw new import_common106.NotFoundException(`Snapshot ${id} not found`);
|
|
296974
297226
|
return snapshot;
|
|
296975
297227
|
}
|
|
296976
297228
|
};
|
|
296977
|
-
|
|
296978
|
-
(0,
|
|
296979
|
-
|
|
296980
|
-
|
|
296981
|
-
|
|
296982
|
-
|
|
297229
|
+
__decorate149([
|
|
297230
|
+
(0, import_common106.Post)(),
|
|
297231
|
+
__param56(0, (0, import_common106.Body)()),
|
|
297232
|
+
__metadata118("design:type", Function),
|
|
297233
|
+
__metadata118("design:paramtypes", [CreateSnapshotDto]),
|
|
297234
|
+
__metadata118("design:returntype", Promise)
|
|
296983
297235
|
], SnapshotController.prototype, "create", null);
|
|
296984
|
-
|
|
296985
|
-
(0,
|
|
296986
|
-
|
|
296987
|
-
|
|
296988
|
-
|
|
296989
|
-
|
|
297236
|
+
__decorate149([
|
|
297237
|
+
(0, import_common106.Get)(":id"),
|
|
297238
|
+
__param56(0, (0, import_common106.Param)("id")),
|
|
297239
|
+
__metadata118("design:type", Function),
|
|
297240
|
+
__metadata118("design:paramtypes", [String]),
|
|
297241
|
+
__metadata118("design:returntype", Promise)
|
|
296990
297242
|
], SnapshotController.prototype, "get", null);
|
|
296991
|
-
SnapshotController =
|
|
296992
|
-
(0,
|
|
296993
|
-
|
|
297243
|
+
SnapshotController = __decorate149([
|
|
297244
|
+
(0, import_common106.Controller)("snapshots"),
|
|
297245
|
+
__metadata118("design:paramtypes", [SnapshotService])
|
|
296994
297246
|
], SnapshotController);
|
|
296995
297247
|
|
|
296996
297248
|
// dist/.server-tsc/snapshot/snapshot.module.js
|
|
296997
|
-
var
|
|
297249
|
+
var __decorate150 = function(decorators, target, key, desc) {
|
|
296998
297250
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
296999
297251
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297000
297252
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -297002,8 +297254,8 @@ var __decorate148 = function(decorators, target, key, desc) {
|
|
|
297002
297254
|
};
|
|
297003
297255
|
var SnapshotModule = class SnapshotModule2 {
|
|
297004
297256
|
};
|
|
297005
|
-
SnapshotModule =
|
|
297006
|
-
(0,
|
|
297257
|
+
SnapshotModule = __decorate150([
|
|
297258
|
+
(0, import_common107.Module)({
|
|
297007
297259
|
imports: [import_typeorm123.TypeOrmModule.forFeature([RawSnapshot])],
|
|
297008
297260
|
providers: [SnapshotService],
|
|
297009
297261
|
controllers: [SnapshotController],
|
|
@@ -297012,22 +297264,22 @@ SnapshotModule = __decorate148([
|
|
|
297012
297264
|
], SnapshotModule);
|
|
297013
297265
|
|
|
297014
297266
|
// dist/.server-tsc/parsed-resume/parsed-resume.module.js
|
|
297015
|
-
var
|
|
297267
|
+
var import_common110 = __toESM(require_common(), 1);
|
|
297016
297268
|
var import_typeorm126 = __toESM(require_typeorm2(), 1);
|
|
297017
297269
|
|
|
297018
297270
|
// dist/.server-tsc/parsed-resume/parsed-resume.service.js
|
|
297019
|
-
var
|
|
297271
|
+
var import_common108 = __toESM(require_common(), 1);
|
|
297020
297272
|
var import_typeorm124 = __toESM(require_typeorm2(), 1);
|
|
297021
|
-
var
|
|
297273
|
+
var __decorate151 = function(decorators, target, key, desc) {
|
|
297022
297274
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
297023
297275
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297024
297276
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
297025
297277
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
297026
297278
|
};
|
|
297027
|
-
var
|
|
297279
|
+
var __metadata119 = function(k2, v) {
|
|
297028
297280
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
297029
297281
|
};
|
|
297030
|
-
var
|
|
297282
|
+
var __param57 = function(paramIndex, decorator) {
|
|
297031
297283
|
return function(target, key) {
|
|
297032
297284
|
decorator(target, key, paramIndex);
|
|
297033
297285
|
};
|
|
@@ -297051,24 +297303,24 @@ var ParsedResumeService = class ParsedResumeService2 {
|
|
|
297051
297303
|
await this.repo.update(id, { talentPortraitId: portraitId });
|
|
297052
297304
|
}
|
|
297053
297305
|
};
|
|
297054
|
-
ParsedResumeService =
|
|
297055
|
-
(0,
|
|
297056
|
-
|
|
297057
|
-
|
|
297306
|
+
ParsedResumeService = __decorate151([
|
|
297307
|
+
(0, import_common108.Injectable)(),
|
|
297308
|
+
__param57(0, (0, import_typeorm124.InjectRepository)(ParsedResume)),
|
|
297309
|
+
__metadata119("design:paramtypes", [Repository])
|
|
297058
297310
|
], ParsedResumeService);
|
|
297059
297311
|
|
|
297060
297312
|
// dist/.server-tsc/parsed-resume/parsed-resume.controller.js
|
|
297061
|
-
var
|
|
297062
|
-
var
|
|
297313
|
+
var import_common109 = __toESM(require_common(), 1);
|
|
297314
|
+
var __decorate152 = function(decorators, target, key, desc) {
|
|
297063
297315
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
297064
297316
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297065
297317
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
297066
297318
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
297067
297319
|
};
|
|
297068
|
-
var
|
|
297320
|
+
var __metadata120 = function(k2, v) {
|
|
297069
297321
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
297070
297322
|
};
|
|
297071
|
-
var
|
|
297323
|
+
var __param58 = function(paramIndex, decorator) {
|
|
297072
297324
|
return function(target, key) {
|
|
297073
297325
|
decorator(target, key, paramIndex);
|
|
297074
297326
|
};
|
|
@@ -297087,31 +297339,31 @@ var ParsedResumeController = class ParsedResumeController2 {
|
|
|
297087
297339
|
async get(id) {
|
|
297088
297340
|
const resume2 = await this.service.findById(id);
|
|
297089
297341
|
if (!resume2)
|
|
297090
|
-
throw new
|
|
297342
|
+
throw new import_common109.NotFoundException(`ParsedResume ${id} not found`);
|
|
297091
297343
|
return resume2;
|
|
297092
297344
|
}
|
|
297093
297345
|
};
|
|
297094
|
-
|
|
297095
|
-
(0,
|
|
297096
|
-
|
|
297097
|
-
|
|
297098
|
-
|
|
297099
|
-
|
|
297346
|
+
__decorate152([
|
|
297347
|
+
(0, import_common109.Get)(),
|
|
297348
|
+
__param58(0, (0, import_common109.Query)("portraitId")),
|
|
297349
|
+
__metadata120("design:type", Function),
|
|
297350
|
+
__metadata120("design:paramtypes", [String]),
|
|
297351
|
+
__metadata120("design:returntype", Promise)
|
|
297100
297352
|
], ParsedResumeController.prototype, "listByPortrait", null);
|
|
297101
|
-
|
|
297102
|
-
(0,
|
|
297103
|
-
|
|
297104
|
-
|
|
297105
|
-
|
|
297106
|
-
|
|
297353
|
+
__decorate152([
|
|
297354
|
+
(0, import_common109.Get)(":id"),
|
|
297355
|
+
__param58(0, (0, import_common109.Param)("id")),
|
|
297356
|
+
__metadata120("design:type", Function),
|
|
297357
|
+
__metadata120("design:paramtypes", [String]),
|
|
297358
|
+
__metadata120("design:returntype", Promise)
|
|
297107
297359
|
], ParsedResumeController.prototype, "get", null);
|
|
297108
|
-
ParsedResumeController =
|
|
297109
|
-
(0,
|
|
297110
|
-
|
|
297360
|
+
ParsedResumeController = __decorate152([
|
|
297361
|
+
(0, import_common109.Controller)("parsed-resumes"),
|
|
297362
|
+
__metadata120("design:paramtypes", [ParsedResumeService])
|
|
297111
297363
|
], ParsedResumeController);
|
|
297112
297364
|
|
|
297113
297365
|
// dist/.server-tsc/parsed-resume/parsed-resume.module.js
|
|
297114
|
-
var
|
|
297366
|
+
var __decorate153 = function(decorators, target, key, desc) {
|
|
297115
297367
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
297116
297368
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297117
297369
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -297119,8 +297371,8 @@ var __decorate151 = function(decorators, target, key, desc) {
|
|
|
297119
297371
|
};
|
|
297120
297372
|
var ParsedResumeModule = class ParsedResumeModule2 {
|
|
297121
297373
|
};
|
|
297122
|
-
ParsedResumeModule =
|
|
297123
|
-
(0,
|
|
297374
|
+
ParsedResumeModule = __decorate153([
|
|
297375
|
+
(0, import_common110.Module)({
|
|
297124
297376
|
imports: [import_typeorm126.TypeOrmModule.forFeature([ParsedResume])],
|
|
297125
297377
|
providers: [ParsedResumeService],
|
|
297126
297378
|
controllers: [ParsedResumeController],
|
|
@@ -297129,22 +297381,22 @@ ParsedResumeModule = __decorate151([
|
|
|
297129
297381
|
], ParsedResumeModule);
|
|
297130
297382
|
|
|
297131
297383
|
// dist/.server-tsc/talent-job-match/talent-job-match.module.js
|
|
297132
|
-
var
|
|
297384
|
+
var import_common113 = __toESM(require_common(), 1);
|
|
297133
297385
|
var import_typeorm129 = __toESM(require_typeorm2(), 1);
|
|
297134
297386
|
|
|
297135
297387
|
// dist/.server-tsc/talent-job-match/talent-job-match.service.js
|
|
297136
|
-
var
|
|
297388
|
+
var import_common111 = __toESM(require_common(), 1);
|
|
297137
297389
|
var import_typeorm127 = __toESM(require_typeorm2(), 1);
|
|
297138
|
-
var
|
|
297390
|
+
var __decorate154 = function(decorators, target, key, desc) {
|
|
297139
297391
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
297140
297392
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297141
297393
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
297142
297394
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
297143
297395
|
};
|
|
297144
|
-
var
|
|
297396
|
+
var __metadata121 = function(k2, v) {
|
|
297145
297397
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
297146
297398
|
};
|
|
297147
|
-
var
|
|
297399
|
+
var __param59 = function(paramIndex, decorator) {
|
|
297148
297400
|
return function(target, key) {
|
|
297149
297401
|
decorator(target, key, paramIndex);
|
|
297150
297402
|
};
|
|
@@ -297165,24 +297417,24 @@ var TalentJobMatchService = class TalentJobMatchService2 {
|
|
|
297165
297417
|
return this.repo.find({ where: { jobCaseId }, order: { createdAt: "DESC" } });
|
|
297166
297418
|
}
|
|
297167
297419
|
};
|
|
297168
|
-
TalentJobMatchService =
|
|
297169
|
-
(0,
|
|
297170
|
-
|
|
297171
|
-
|
|
297420
|
+
TalentJobMatchService = __decorate154([
|
|
297421
|
+
(0, import_common111.Injectable)(),
|
|
297422
|
+
__param59(0, (0, import_typeorm127.InjectRepository)(TalentJobMatch)),
|
|
297423
|
+
__metadata121("design:paramtypes", [Repository])
|
|
297172
297424
|
], TalentJobMatchService);
|
|
297173
297425
|
|
|
297174
297426
|
// dist/.server-tsc/talent-job-match/talent-job-match.controller.js
|
|
297175
|
-
var
|
|
297176
|
-
var
|
|
297427
|
+
var import_common112 = __toESM(require_common(), 1);
|
|
297428
|
+
var __decorate155 = function(decorators, target, key, desc) {
|
|
297177
297429
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
297178
297430
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297179
297431
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
297180
297432
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
297181
297433
|
};
|
|
297182
|
-
var
|
|
297434
|
+
var __metadata122 = function(k2, v) {
|
|
297183
297435
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
297184
297436
|
};
|
|
297185
|
-
var
|
|
297437
|
+
var __param60 = function(paramIndex, decorator) {
|
|
297186
297438
|
return function(target, key) {
|
|
297187
297439
|
decorator(target, key, paramIndex);
|
|
297188
297440
|
};
|
|
@@ -297195,24 +297447,24 @@ var TalentJobMatchController = class TalentJobMatchController2 {
|
|
|
297195
297447
|
async get(id) {
|
|
297196
297448
|
const match = await this.service.findByPortrait(id);
|
|
297197
297449
|
if (!match.length)
|
|
297198
|
-
throw new
|
|
297450
|
+
throw new import_common112.NotFoundException(`No matches for portrait ${id}`);
|
|
297199
297451
|
return match;
|
|
297200
297452
|
}
|
|
297201
297453
|
};
|
|
297202
|
-
|
|
297203
|
-
(0,
|
|
297204
|
-
|
|
297205
|
-
|
|
297206
|
-
|
|
297207
|
-
|
|
297454
|
+
__decorate155([
|
|
297455
|
+
(0, import_common112.Get)(":id"),
|
|
297456
|
+
__param60(0, (0, import_common112.Param)("id")),
|
|
297457
|
+
__metadata122("design:type", Function),
|
|
297458
|
+
__metadata122("design:paramtypes", [String]),
|
|
297459
|
+
__metadata122("design:returntype", Promise)
|
|
297208
297460
|
], TalentJobMatchController.prototype, "get", null);
|
|
297209
|
-
TalentJobMatchController =
|
|
297210
|
-
(0,
|
|
297211
|
-
|
|
297461
|
+
TalentJobMatchController = __decorate155([
|
|
297462
|
+
(0, import_common112.Controller)("matches"),
|
|
297463
|
+
__metadata122("design:paramtypes", [TalentJobMatchService])
|
|
297212
297464
|
], TalentJobMatchController);
|
|
297213
297465
|
|
|
297214
297466
|
// dist/.server-tsc/talent-job-match/talent-job-match.module.js
|
|
297215
|
-
var
|
|
297467
|
+
var __decorate156 = function(decorators, target, key, desc) {
|
|
297216
297468
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
297217
297469
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297218
297470
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -297220,8 +297472,8 @@ var __decorate154 = function(decorators, target, key, desc) {
|
|
|
297220
297472
|
};
|
|
297221
297473
|
var TalentJobMatchModule = class TalentJobMatchModule2 {
|
|
297222
297474
|
};
|
|
297223
|
-
TalentJobMatchModule =
|
|
297224
|
-
(0,
|
|
297475
|
+
TalentJobMatchModule = __decorate156([
|
|
297476
|
+
(0, import_common113.Module)({
|
|
297225
297477
|
imports: [import_typeorm129.TypeOrmModule.forFeature([TalentJobMatch])],
|
|
297226
297478
|
providers: [TalentJobMatchService],
|
|
297227
297479
|
controllers: [TalentJobMatchController],
|
|
@@ -297230,22 +297482,22 @@ TalentJobMatchModule = __decorate154([
|
|
|
297230
297482
|
], TalentJobMatchModule);
|
|
297231
297483
|
|
|
297232
297484
|
// dist/.server-tsc/remark/remark.module.js
|
|
297233
|
-
var
|
|
297485
|
+
var import_common116 = __toESM(require_common(), 1);
|
|
297234
297486
|
var import_typeorm132 = __toESM(require_typeorm2(), 1);
|
|
297235
297487
|
|
|
297236
297488
|
// dist/.server-tsc/remark/remark.service.js
|
|
297237
|
-
var
|
|
297489
|
+
var import_common114 = __toESM(require_common(), 1);
|
|
297238
297490
|
var import_typeorm130 = __toESM(require_typeorm2(), 1);
|
|
297239
|
-
var
|
|
297491
|
+
var __decorate157 = function(decorators, target, key, desc) {
|
|
297240
297492
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
297241
297493
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297242
297494
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
297243
297495
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
297244
297496
|
};
|
|
297245
|
-
var
|
|
297497
|
+
var __metadata123 = function(k2, v) {
|
|
297246
297498
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
297247
297499
|
};
|
|
297248
|
-
var
|
|
297500
|
+
var __param61 = function(paramIndex, decorator) {
|
|
297249
297501
|
return function(target, key) {
|
|
297250
297502
|
decorator(target, key, paramIndex);
|
|
297251
297503
|
};
|
|
@@ -297263,24 +297515,24 @@ var RemarkService = class RemarkService2 {
|
|
|
297263
297515
|
return this.repo.find({ where: { targetType, targetId }, order: { createdAt: "DESC" } });
|
|
297264
297516
|
}
|
|
297265
297517
|
};
|
|
297266
|
-
RemarkService =
|
|
297267
|
-
(0,
|
|
297268
|
-
|
|
297269
|
-
|
|
297518
|
+
RemarkService = __decorate157([
|
|
297519
|
+
(0, import_common114.Injectable)(),
|
|
297520
|
+
__param61(0, (0, import_typeorm130.InjectRepository)(Remark)),
|
|
297521
|
+
__metadata123("design:paramtypes", [Repository])
|
|
297270
297522
|
], RemarkService);
|
|
297271
297523
|
|
|
297272
297524
|
// dist/.server-tsc/remark/remark.controller.js
|
|
297273
|
-
var
|
|
297274
|
-
var
|
|
297525
|
+
var import_common115 = __toESM(require_common(), 1);
|
|
297526
|
+
var __decorate158 = function(decorators, target, key, desc) {
|
|
297275
297527
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
297276
297528
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297277
297529
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
297278
297530
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
297279
297531
|
};
|
|
297280
|
-
var
|
|
297532
|
+
var __metadata124 = function(k2, v) {
|
|
297281
297533
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
297282
297534
|
};
|
|
297283
|
-
var
|
|
297535
|
+
var __param62 = function(paramIndex, decorator) {
|
|
297284
297536
|
return function(target, key) {
|
|
297285
297537
|
decorator(target, key, paramIndex);
|
|
297286
297538
|
};
|
|
@@ -297297,28 +297549,28 @@ var RemarkController = class RemarkController2 {
|
|
|
297297
297549
|
return this.service.findByTarget(targetType, targetId);
|
|
297298
297550
|
}
|
|
297299
297551
|
};
|
|
297300
|
-
|
|
297301
|
-
(0,
|
|
297302
|
-
|
|
297303
|
-
|
|
297304
|
-
|
|
297305
|
-
|
|
297552
|
+
__decorate158([
|
|
297553
|
+
(0, import_common115.Post)(),
|
|
297554
|
+
__param62(0, (0, import_common115.Body)()),
|
|
297555
|
+
__metadata124("design:type", Function),
|
|
297556
|
+
__metadata124("design:paramtypes", [Object]),
|
|
297557
|
+
__metadata124("design:returntype", Promise)
|
|
297306
297558
|
], RemarkController.prototype, "create", null);
|
|
297307
|
-
|
|
297308
|
-
(0,
|
|
297309
|
-
|
|
297310
|
-
|
|
297311
|
-
|
|
297312
|
-
|
|
297313
|
-
|
|
297559
|
+
__decorate158([
|
|
297560
|
+
(0, import_common115.Get)(":targetType/:targetId"),
|
|
297561
|
+
__param62(0, (0, import_common115.Param)("targetType")),
|
|
297562
|
+
__param62(1, (0, import_common115.Param)("targetId")),
|
|
297563
|
+
__metadata124("design:type", Function),
|
|
297564
|
+
__metadata124("design:paramtypes", [Object, String]),
|
|
297565
|
+
__metadata124("design:returntype", Promise)
|
|
297314
297566
|
], RemarkController.prototype, "list", null);
|
|
297315
|
-
RemarkController =
|
|
297316
|
-
(0,
|
|
297317
|
-
|
|
297567
|
+
RemarkController = __decorate158([
|
|
297568
|
+
(0, import_common115.Controller)("remarks"),
|
|
297569
|
+
__metadata124("design:paramtypes", [RemarkService])
|
|
297318
297570
|
], RemarkController);
|
|
297319
297571
|
|
|
297320
297572
|
// dist/.server-tsc/remark/remark.module.js
|
|
297321
|
-
var
|
|
297573
|
+
var __decorate159 = function(decorators, target, key, desc) {
|
|
297322
297574
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
297323
297575
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
297324
297576
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -297326,8 +297578,8 @@ var __decorate157 = function(decorators, target, key, desc) {
|
|
|
297326
297578
|
};
|
|
297327
297579
|
var RemarkModule = class RemarkModule2 {
|
|
297328
297580
|
};
|
|
297329
|
-
RemarkModule =
|
|
297330
|
-
(0,
|
|
297581
|
+
RemarkModule = __decorate159([
|
|
297582
|
+
(0, import_common116.Module)({
|
|
297331
297583
|
imports: [import_typeorm132.TypeOrmModule.forFeature([Remark])],
|
|
297332
297584
|
providers: [RemarkService],
|
|
297333
297585
|
controllers: [RemarkController],
|
|
@@ -297336,15 +297588,15 @@ RemarkModule = __decorate157([
|
|
|
297336
297588
|
], RemarkModule);
|
|
297337
297589
|
|
|
297338
297590
|
// dist/.server-tsc/matching/matching.module.js
|
|
297339
|
-
var
|
|
297591
|
+
var import_common125 = __toESM(require_common(), 1);
|
|
297340
297592
|
var import_typeorm141 = __toESM(require_typeorm2(), 1);
|
|
297341
297593
|
|
|
297342
297594
|
// dist/.server-tsc/matching/matching.service.js
|
|
297343
|
-
var
|
|
297595
|
+
var import_common120 = __toESM(require_common(), 1);
|
|
297344
297596
|
var import_typeorm137 = __toESM(require_typeorm2(), 1);
|
|
297345
297597
|
|
|
297346
297598
|
// dist/.server-tsc/llm/llm.service.js
|
|
297347
|
-
var
|
|
297599
|
+
var import_common117 = __toESM(require_common(), 1);
|
|
297348
297600
|
var import_config7 = __toESM(require_config2(), 1);
|
|
297349
297601
|
|
|
297350
297602
|
// ../../node_modules/.pnpm/axios@1.19.0/node_modules/axios/lib/helpers/bind.js
|
|
@@ -302565,19 +302817,19 @@ var {
|
|
|
302565
302817
|
} = axios_default;
|
|
302566
302818
|
|
|
302567
302819
|
// dist/.server-tsc/llm/llm.service.js
|
|
302568
|
-
var
|
|
302820
|
+
var __decorate160 = function(decorators, target, key, desc) {
|
|
302569
302821
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
302570
302822
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
302571
302823
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
302572
302824
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
302573
302825
|
};
|
|
302574
|
-
var
|
|
302826
|
+
var __metadata125 = function(k2, v) {
|
|
302575
302827
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
302576
302828
|
};
|
|
302577
302829
|
var LlmService_1;
|
|
302578
302830
|
var LlmService = LlmService_1 = class LlmService2 {
|
|
302579
302831
|
config;
|
|
302580
|
-
logger = new
|
|
302832
|
+
logger = new import_common117.Logger(LlmService_1.name);
|
|
302581
302833
|
constructor(config) {
|
|
302582
302834
|
this.config = config;
|
|
302583
302835
|
}
|
|
@@ -302618,24 +302870,24 @@ var LlmService = LlmService_1 = class LlmService2 {
|
|
|
302618
302870
|
return this.generateText([{ role: "user", content }], options);
|
|
302619
302871
|
}
|
|
302620
302872
|
};
|
|
302621
|
-
LlmService = LlmService_1 =
|
|
302622
|
-
(0,
|
|
302623
|
-
|
|
302873
|
+
LlmService = LlmService_1 = __decorate160([
|
|
302874
|
+
(0, import_common117.Injectable)(),
|
|
302875
|
+
__metadata125("design:paramtypes", [import_config7.ConfigService])
|
|
302624
302876
|
], LlmService);
|
|
302625
302877
|
|
|
302626
302878
|
// dist/.server-tsc/matching/matching-v2.service.js
|
|
302627
|
-
var
|
|
302879
|
+
var import_common118 = __toESM(require_common(), 1);
|
|
302628
302880
|
var import_typeorm133 = __toESM(require_typeorm2(), 1);
|
|
302629
|
-
var
|
|
302881
|
+
var __decorate161 = function(decorators, target, key, desc) {
|
|
302630
302882
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
302631
302883
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
302632
302884
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
302633
302885
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
302634
302886
|
};
|
|
302635
|
-
var
|
|
302887
|
+
var __metadata126 = function(k2, v) {
|
|
302636
302888
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
302637
302889
|
};
|
|
302638
|
-
var
|
|
302890
|
+
var __param63 = function(paramIndex, decorator) {
|
|
302639
302891
|
return function(target, key) {
|
|
302640
302892
|
decorator(target, key, paramIndex);
|
|
302641
302893
|
};
|
|
@@ -302820,25 +303072,25 @@ var MatchingV2Service = class MatchingV2Service2 {
|
|
|
302820
303072
|
return { items, total: items.length };
|
|
302821
303073
|
}
|
|
302822
303074
|
};
|
|
302823
|
-
MatchingV2Service =
|
|
302824
|
-
(0,
|
|
302825
|
-
|
|
302826
|
-
|
|
303075
|
+
MatchingV2Service = __decorate161([
|
|
303076
|
+
(0, import_common118.Injectable)(),
|
|
303077
|
+
__param63(0, (0, import_typeorm133.InjectRepository)(SkillThesaurus)),
|
|
303078
|
+
__metadata126("design:paramtypes", [Repository])
|
|
302827
303079
|
], MatchingV2Service);
|
|
302828
303080
|
|
|
302829
303081
|
// dist/.server-tsc/matching/embedding.service.js
|
|
302830
|
-
var
|
|
303082
|
+
var import_common119 = __toESM(require_common(), 1);
|
|
302831
303083
|
var import_typeorm135 = __toESM(require_typeorm2(), 1);
|
|
302832
|
-
var
|
|
303084
|
+
var __decorate162 = function(decorators, target, key, desc) {
|
|
302833
303085
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
302834
303086
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
302835
303087
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
302836
303088
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
302837
303089
|
};
|
|
302838
|
-
var
|
|
303090
|
+
var __metadata127 = function(k2, v) {
|
|
302839
303091
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
302840
303092
|
};
|
|
302841
|
-
var
|
|
303093
|
+
var __param64 = function(paramIndex, decorator) {
|
|
302842
303094
|
return function(target, key) {
|
|
302843
303095
|
decorator(target, key, paramIndex);
|
|
302844
303096
|
};
|
|
@@ -302889,7 +303141,7 @@ function jobEmbedText(j) {
|
|
|
302889
303141
|
}
|
|
302890
303142
|
var EmbeddingService = EmbeddingService_1 = class EmbeddingService2 {
|
|
302891
303143
|
cacheRepo;
|
|
302892
|
-
logger = new
|
|
303144
|
+
logger = new import_common119.Logger(EmbeddingService_1.name);
|
|
302893
303145
|
embedderPromise = null;
|
|
302894
303146
|
constructor(cacheRepo) {
|
|
302895
303147
|
this.cacheRepo = cacheRepo;
|
|
@@ -302942,23 +303194,23 @@ var EmbeddingService = EmbeddingService_1 = class EmbeddingService2 {
|
|
|
302942
303194
|
return cosine(pv, jv);
|
|
302943
303195
|
}
|
|
302944
303196
|
};
|
|
302945
|
-
EmbeddingService = EmbeddingService_1 =
|
|
302946
|
-
(0,
|
|
302947
|
-
|
|
302948
|
-
|
|
303197
|
+
EmbeddingService = EmbeddingService_1 = __decorate162([
|
|
303198
|
+
(0, import_common119.Injectable)(),
|
|
303199
|
+
__param64(0, (0, import_typeorm135.InjectRepository)(EmbeddingCache)),
|
|
303200
|
+
__metadata127("design:paramtypes", [Repository])
|
|
302949
303201
|
], EmbeddingService);
|
|
302950
303202
|
|
|
302951
303203
|
// dist/.server-tsc/matching/matching.service.js
|
|
302952
|
-
var
|
|
303204
|
+
var __decorate163 = function(decorators, target, key, desc) {
|
|
302953
303205
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
302954
303206
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
302955
303207
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
302956
303208
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
302957
303209
|
};
|
|
302958
|
-
var
|
|
303210
|
+
var __metadata128 = function(k2, v) {
|
|
302959
303211
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
302960
303212
|
};
|
|
302961
|
-
var
|
|
303213
|
+
var __param65 = function(paramIndex, decorator) {
|
|
302962
303214
|
return function(target, key) {
|
|
302963
303215
|
decorator(target, key, paramIndex);
|
|
302964
303216
|
};
|
|
@@ -302990,10 +303242,10 @@ var MatchingService = class MatchingService2 {
|
|
|
302990
303242
|
async matchOneInternal(portraitId, jobCaseId, aliasMap) {
|
|
302991
303243
|
const portrait = await this.portraitRepo.findOne({ where: { id: portraitId } });
|
|
302992
303244
|
if (!portrait)
|
|
302993
|
-
throw new
|
|
303245
|
+
throw new import_common120.NotFoundException(`Portrait ${portraitId} not found`);
|
|
302994
303246
|
const jobCase = await this.jobRepo.findOne({ where: { id: jobCaseId } });
|
|
302995
303247
|
if (!jobCase)
|
|
302996
|
-
throw new
|
|
303248
|
+
throw new import_common120.NotFoundException(`JobCase ${jobCaseId} not found`);
|
|
302997
303249
|
const jobPortrait = await this.jobPortraitRepo.findOne({ where: { jobCaseId } });
|
|
302998
303250
|
const gate = jobPortrait?.hardRequirements?.length ? evaluateGate(jobPortrait.hardRequirements, portrait) : void 0;
|
|
302999
303251
|
const map2 = aliasMap ?? await this.v2.loadAliasMap();
|
|
@@ -303020,7 +303272,7 @@ var MatchingService = class MatchingService2 {
|
|
|
303020
303272
|
async matchTalentToJobs(portraitId, statusFilter) {
|
|
303021
303273
|
const portrait = await this.portraitRepo.findOne({ where: { id: portraitId } });
|
|
303022
303274
|
if (!portrait)
|
|
303023
|
-
throw new
|
|
303275
|
+
throw new import_common120.NotFoundException(`Portrait ${portraitId} not found`);
|
|
303024
303276
|
const aliasMap = await this.v2.loadAliasMap();
|
|
303025
303277
|
const jobs = await this.jobRepo.find({ where: statusFilter ? { status: statusFilter } : {} });
|
|
303026
303278
|
const matches = [];
|
|
@@ -303034,7 +303286,7 @@ var MatchingService = class MatchingService2 {
|
|
|
303034
303286
|
async matchJobToTalents(jobCaseId) {
|
|
303035
303287
|
const jobCase = await this.jobRepo.findOne({ where: { id: jobCaseId } });
|
|
303036
303288
|
if (!jobCase)
|
|
303037
|
-
throw new
|
|
303289
|
+
throw new import_common120.NotFoundException(`JobCase ${jobCaseId} not found`);
|
|
303038
303290
|
const aliasMap = await this.v2.loadAliasMap();
|
|
303039
303291
|
const portraits = await this.portraitRepo.find();
|
|
303040
303292
|
const matches = [];
|
|
@@ -303046,7 +303298,7 @@ var MatchingService = class MatchingService2 {
|
|
|
303046
303298
|
async addFeedback(matchId, isRecommended, reason, user) {
|
|
303047
303299
|
const match = await this.matchRepo.findOne({ where: { id: matchId } });
|
|
303048
303300
|
if (!match)
|
|
303049
|
-
throw new
|
|
303301
|
+
throw new import_common120.NotFoundException(`Match ${matchId} not found`);
|
|
303050
303302
|
match.humanFeedback = {
|
|
303051
303303
|
isRecommended,
|
|
303052
303304
|
reason,
|
|
@@ -303358,13 +303610,13 @@ var MatchingService = class MatchingService2 {
|
|
|
303358
303610
|
return lines.join("\n");
|
|
303359
303611
|
}
|
|
303360
303612
|
};
|
|
303361
|
-
MatchingService =
|
|
303362
|
-
(0,
|
|
303363
|
-
|
|
303364
|
-
|
|
303365
|
-
|
|
303366
|
-
|
|
303367
|
-
|
|
303613
|
+
MatchingService = __decorate163([
|
|
303614
|
+
(0, import_common120.Injectable)(),
|
|
303615
|
+
__param65(0, (0, import_typeorm137.InjectRepository)(TalentPortrait)),
|
|
303616
|
+
__param65(1, (0, import_typeorm137.InjectRepository)(JobCase)),
|
|
303617
|
+
__param65(2, (0, import_typeorm137.InjectRepository)(TalentJobMatch)),
|
|
303618
|
+
__param65(3, (0, import_typeorm137.InjectRepository)(JobPortrait)),
|
|
303619
|
+
__metadata128("design:paramtypes", [
|
|
303368
303620
|
Repository,
|
|
303369
303621
|
Repository,
|
|
303370
303622
|
Repository,
|
|
@@ -303378,17 +303630,17 @@ MatchingService = __decorate161([
|
|
|
303378
303630
|
], MatchingService);
|
|
303379
303631
|
|
|
303380
303632
|
// dist/.server-tsc/matching/matching.controller.js
|
|
303381
|
-
var
|
|
303382
|
-
var
|
|
303633
|
+
var import_common121 = __toESM(require_common(), 1);
|
|
303634
|
+
var __decorate164 = function(decorators, target, key, desc) {
|
|
303383
303635
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
303384
303636
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
303385
303637
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
303386
303638
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
303387
303639
|
};
|
|
303388
|
-
var
|
|
303640
|
+
var __metadata129 = function(k2, v) {
|
|
303389
303641
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
303390
303642
|
};
|
|
303391
|
-
var
|
|
303643
|
+
var __param66 = function(paramIndex, decorator) {
|
|
303392
303644
|
return function(target, key) {
|
|
303393
303645
|
decorator(target, key, paramIndex);
|
|
303394
303646
|
};
|
|
@@ -303422,59 +303674,59 @@ var MatchingController = class MatchingController2 {
|
|
|
303422
303674
|
return this.service.matchJobToTalents(parseInt(jobId, 10));
|
|
303423
303675
|
}
|
|
303424
303676
|
};
|
|
303425
|
-
|
|
303426
|
-
(0,
|
|
303427
|
-
|
|
303428
|
-
|
|
303429
|
-
|
|
303430
|
-
|
|
303431
|
-
|
|
303677
|
+
__decorate164([
|
|
303678
|
+
(0, import_common121.Post)("portraits/:portraitId/jobs/:jobId"),
|
|
303679
|
+
__param66(0, (0, import_common121.Param)("portraitId")),
|
|
303680
|
+
__param66(1, (0, import_common121.Param)("jobId")),
|
|
303681
|
+
__metadata129("design:type", Function),
|
|
303682
|
+
__metadata129("design:paramtypes", [String, String]),
|
|
303683
|
+
__metadata129("design:returntype", Promise)
|
|
303432
303684
|
], MatchingController.prototype, "matchOne", null);
|
|
303433
|
-
|
|
303434
|
-
(0,
|
|
303435
|
-
|
|
303436
|
-
|
|
303437
|
-
|
|
303438
|
-
|
|
303685
|
+
__decorate164([
|
|
303686
|
+
(0, import_common121.Post)("portraits/:portraitId/jobs"),
|
|
303687
|
+
__param66(0, (0, import_common121.Param)("portraitId")),
|
|
303688
|
+
__metadata129("design:type", Function),
|
|
303689
|
+
__metadata129("design:paramtypes", [String]),
|
|
303690
|
+
__metadata129("design:returntype", Promise)
|
|
303439
303691
|
], MatchingController.prototype, "matchTalentToJobsPost", null);
|
|
303440
|
-
|
|
303441
|
-
(0,
|
|
303442
|
-
|
|
303443
|
-
|
|
303444
|
-
|
|
303445
|
-
|
|
303692
|
+
__decorate164([
|
|
303693
|
+
(0, import_common121.Get)("portraits/:portraitId/jobs"),
|
|
303694
|
+
__param66(0, (0, import_common121.Param)("portraitId")),
|
|
303695
|
+
__metadata129("design:type", Function),
|
|
303696
|
+
__metadata129("design:paramtypes", [String]),
|
|
303697
|
+
__metadata129("design:returntype", Promise)
|
|
303446
303698
|
], MatchingController.prototype, "matchTalentToJobs", null);
|
|
303447
|
-
|
|
303448
|
-
(0,
|
|
303449
|
-
|
|
303450
|
-
|
|
303451
|
-
|
|
303452
|
-
|
|
303699
|
+
__decorate164([
|
|
303700
|
+
(0, import_common121.Post)("jobs/:jobId/talents"),
|
|
303701
|
+
__param66(0, (0, import_common121.Param)("jobId")),
|
|
303702
|
+
__metadata129("design:type", Function),
|
|
303703
|
+
__metadata129("design:paramtypes", [String]),
|
|
303704
|
+
__metadata129("design:returntype", Promise)
|
|
303453
303705
|
], MatchingController.prototype, "matchJobToTalents", null);
|
|
303454
|
-
|
|
303455
|
-
(0,
|
|
303456
|
-
|
|
303457
|
-
|
|
303458
|
-
|
|
303459
|
-
|
|
303460
|
-
|
|
303461
|
-
|
|
303706
|
+
__decorate164([
|
|
303707
|
+
(0, import_common121.Post)("matches/:matchId/feedback"),
|
|
303708
|
+
__param66(0, (0, import_common121.Param)("matchId")),
|
|
303709
|
+
__param66(1, (0, import_common121.Body)()),
|
|
303710
|
+
__param66(2, (0, import_common121.Request)()),
|
|
303711
|
+
__metadata129("design:type", Function),
|
|
303712
|
+
__metadata129("design:paramtypes", [String, FeedbackDto, Object]),
|
|
303713
|
+
__metadata129("design:returntype", Promise)
|
|
303462
303714
|
], MatchingController.prototype, "feedback", null);
|
|
303463
|
-
|
|
303464
|
-
(0,
|
|
303465
|
-
|
|
303466
|
-
|
|
303467
|
-
|
|
303468
|
-
|
|
303715
|
+
__decorate164([
|
|
303716
|
+
(0, import_common121.Get)("jobs/:jobId/talents"),
|
|
303717
|
+
__param66(0, (0, import_common121.Param)("jobId")),
|
|
303718
|
+
__metadata129("design:type", Function),
|
|
303719
|
+
__metadata129("design:paramtypes", [String]),
|
|
303720
|
+
__metadata129("design:returntype", Promise)
|
|
303469
303721
|
], MatchingController.prototype, "getJobMatches", null);
|
|
303470
|
-
MatchingController =
|
|
303471
|
-
(0,
|
|
303472
|
-
|
|
303722
|
+
MatchingController = __decorate164([
|
|
303723
|
+
(0, import_common121.Controller)("matching"),
|
|
303724
|
+
__metadata129("design:paramtypes", [MatchingService])
|
|
303473
303725
|
], MatchingController);
|
|
303474
303726
|
|
|
303475
303727
|
// dist/.server-tsc/llm/llm.module.js
|
|
303476
|
-
var
|
|
303477
|
-
var
|
|
303728
|
+
var import_common122 = __toESM(require_common(), 1);
|
|
303729
|
+
var __decorate165 = function(decorators, target, key, desc) {
|
|
303478
303730
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
303479
303731
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
303480
303732
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -303482,15 +303734,15 @@ var __decorate163 = function(decorators, target, key, desc) {
|
|
|
303482
303734
|
};
|
|
303483
303735
|
var LlmModule = class LlmModule2 {
|
|
303484
303736
|
};
|
|
303485
|
-
LlmModule =
|
|
303486
|
-
(0,
|
|
303737
|
+
LlmModule = __decorate165([
|
|
303738
|
+
(0, import_common122.Module)({
|
|
303487
303739
|
providers: [LlmService],
|
|
303488
303740
|
exports: [LlmService]
|
|
303489
303741
|
})
|
|
303490
303742
|
], LlmModule);
|
|
303491
303743
|
|
|
303492
303744
|
// dist/.server-tsc/matching/job-portrait.service.js
|
|
303493
|
-
var
|
|
303745
|
+
var import_common123 = __toESM(require_common(), 1);
|
|
303494
303746
|
var import_typeorm139 = __toESM(require_typeorm2(), 1);
|
|
303495
303747
|
|
|
303496
303748
|
// dist/.server-tsc/matching/job-portrait.prompts.js
|
|
@@ -303544,16 +303796,16 @@ curl -X PUT ${HM_BASE}/job-cases/${d.jobCaseId}/portrait \\
|
|
|
303544
303796
|
}
|
|
303545
303797
|
|
|
303546
303798
|
// dist/.server-tsc/matching/job-portrait.service.js
|
|
303547
|
-
var
|
|
303799
|
+
var __decorate166 = function(decorators, target, key, desc) {
|
|
303548
303800
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
303549
303801
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
303550
303802
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
303551
303803
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
303552
303804
|
};
|
|
303553
|
-
var
|
|
303805
|
+
var __metadata130 = function(k2, v) {
|
|
303554
303806
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
303555
303807
|
};
|
|
303556
|
-
var
|
|
303808
|
+
var __param67 = function(paramIndex, decorator) {
|
|
303557
303809
|
return function(target, key) {
|
|
303558
303810
|
decorator(target, key, paramIndex);
|
|
303559
303811
|
};
|
|
@@ -303563,7 +303815,7 @@ var JobPortraitService = JobPortraitService_1 = class JobPortraitService2 {
|
|
|
303563
303815
|
repo;
|
|
303564
303816
|
jobRepo;
|
|
303565
303817
|
feedbackRepo;
|
|
303566
|
-
logger = new
|
|
303818
|
+
logger = new import_common123.Logger(JobPortraitService_1.name);
|
|
303567
303819
|
constructor(repo, jobRepo, feedbackRepo) {
|
|
303568
303820
|
this.repo = repo;
|
|
303569
303821
|
this.jobRepo = jobRepo;
|
|
@@ -303572,7 +303824,7 @@ var JobPortraitService = JobPortraitService_1 = class JobPortraitService2 {
|
|
|
303572
303824
|
async get(jobCaseId) {
|
|
303573
303825
|
const row = await this.repo.findOne({ where: { jobCaseId } });
|
|
303574
303826
|
if (!row)
|
|
303575
|
-
throw new
|
|
303827
|
+
throw new import_common123.NotFoundException(`JobPortrait for jobCase ${jobCaseId} not found(\u5C1A\u672A\u6DF1\u6790)`);
|
|
303576
303828
|
return row;
|
|
303577
303829
|
}
|
|
303578
303830
|
async getOrNull(jobCaseId) {
|
|
@@ -303581,7 +303833,7 @@ var JobPortraitService = JobPortraitService_1 = class JobPortraitService2 {
|
|
|
303581
303833
|
async upsert(jobCaseId, dto, by = "agent") {
|
|
303582
303834
|
const job = await this.jobRepo.findOne({ where: { id: jobCaseId } });
|
|
303583
303835
|
if (!job)
|
|
303584
|
-
throw new
|
|
303836
|
+
throw new import_common123.NotFoundException(`JobCase ${jobCaseId} not found`);
|
|
303585
303837
|
const existing = await this.repo.findOne({ where: { jobCaseId } });
|
|
303586
303838
|
const revisions = [
|
|
303587
303839
|
...existing?.revisions || [],
|
|
@@ -303609,7 +303861,7 @@ var JobPortraitService = JobPortraitService_1 = class JobPortraitService2 {
|
|
|
303609
303861
|
async buildPortraitPrompt(jobCaseId) {
|
|
303610
303862
|
const job = await this.jobRepo.findOne({ where: { id: jobCaseId } });
|
|
303611
303863
|
if (!job)
|
|
303612
|
-
throw new
|
|
303864
|
+
throw new import_common123.NotFoundException(`JobCase ${jobCaseId} not found`);
|
|
303613
303865
|
const existing = await this.repo.findOne({ where: { jobCaseId } });
|
|
303614
303866
|
const raw = job.raw ?? job.description ?? null;
|
|
303615
303867
|
return {
|
|
@@ -303632,12 +303884,12 @@ var JobPortraitService = JobPortraitService_1 = class JobPortraitService2 {
|
|
|
303632
303884
|
return { items, total: items.length };
|
|
303633
303885
|
}
|
|
303634
303886
|
};
|
|
303635
|
-
JobPortraitService = JobPortraitService_1 =
|
|
303636
|
-
(0,
|
|
303637
|
-
|
|
303638
|
-
|
|
303639
|
-
|
|
303640
|
-
|
|
303887
|
+
JobPortraitService = JobPortraitService_1 = __decorate166([
|
|
303888
|
+
(0, import_common123.Injectable)(),
|
|
303889
|
+
__param67(0, (0, import_typeorm139.InjectRepository)(JobPortrait)),
|
|
303890
|
+
__param67(1, (0, import_typeorm139.InjectRepository)(JobCase)),
|
|
303891
|
+
__param67(2, (0, import_typeorm139.InjectRepository)(MatchFeedback)),
|
|
303892
|
+
__metadata130("design:paramtypes", [
|
|
303641
303893
|
Repository,
|
|
303642
303894
|
Repository,
|
|
303643
303895
|
Repository
|
|
@@ -303645,17 +303897,17 @@ JobPortraitService = JobPortraitService_1 = __decorate164([
|
|
|
303645
303897
|
], JobPortraitService);
|
|
303646
303898
|
|
|
303647
303899
|
// dist/.server-tsc/matching/job-portrait.controller.js
|
|
303648
|
-
var
|
|
303649
|
-
var
|
|
303900
|
+
var import_common124 = __toESM(require_common(), 1);
|
|
303901
|
+
var __decorate167 = function(decorators, target, key, desc) {
|
|
303650
303902
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
303651
303903
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
303652
303904
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
303653
303905
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
303654
303906
|
};
|
|
303655
|
-
var
|
|
303907
|
+
var __metadata131 = function(k2, v) {
|
|
303656
303908
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
303657
303909
|
};
|
|
303658
|
-
var
|
|
303910
|
+
var __param68 = function(paramIndex, decorator) {
|
|
303659
303911
|
return function(target, key) {
|
|
303660
303912
|
decorator(target, key, paramIndex);
|
|
303661
303913
|
};
|
|
@@ -303686,60 +303938,60 @@ var JobPortraitController = class JobPortraitController2 {
|
|
|
303686
303938
|
return this.v2Service.upsertThesaurus(dto);
|
|
303687
303939
|
}
|
|
303688
303940
|
};
|
|
303689
|
-
|
|
303690
|
-
(0,
|
|
303691
|
-
|
|
303692
|
-
|
|
303693
|
-
|
|
303694
|
-
|
|
303941
|
+
__decorate167([
|
|
303942
|
+
(0, import_common124.Get)("job-cases/:id/portrait"),
|
|
303943
|
+
__param68(0, (0, import_common124.Param)("id", import_common124.ParseIntPipe)),
|
|
303944
|
+
__metadata131("design:type", Function),
|
|
303945
|
+
__metadata131("design:paramtypes", [Number]),
|
|
303946
|
+
__metadata131("design:returntype", void 0)
|
|
303695
303947
|
], JobPortraitController.prototype, "get", null);
|
|
303696
|
-
|
|
303697
|
-
(0,
|
|
303698
|
-
|
|
303699
|
-
|
|
303700
|
-
|
|
303701
|
-
|
|
303702
|
-
|
|
303948
|
+
__decorate167([
|
|
303949
|
+
(0, import_common124.Put)("job-cases/:id/portrait"),
|
|
303950
|
+
__param68(0, (0, import_common124.Param)("id", import_common124.ParseIntPipe)),
|
|
303951
|
+
__param68(1, (0, import_common124.Body)()),
|
|
303952
|
+
__metadata131("design:type", Function),
|
|
303953
|
+
__metadata131("design:paramtypes", [Number, Object]),
|
|
303954
|
+
__metadata131("design:returntype", void 0)
|
|
303703
303955
|
], JobPortraitController.prototype, "upsert", null);
|
|
303704
|
-
|
|
303705
|
-
(0,
|
|
303706
|
-
|
|
303707
|
-
|
|
303708
|
-
|
|
303709
|
-
|
|
303956
|
+
__decorate167([
|
|
303957
|
+
(0, import_common124.Get)("job-cases/:id/portrait-prompt"),
|
|
303958
|
+
__param68(0, (0, import_common124.Param)("id", import_common124.ParseIntPipe)),
|
|
303959
|
+
__metadata131("design:type", Function),
|
|
303960
|
+
__metadata131("design:paramtypes", [Number]),
|
|
303961
|
+
__metadata131("design:returntype", void 0)
|
|
303710
303962
|
], JobPortraitController.prototype, "portraitPrompt", null);
|
|
303711
|
-
|
|
303712
|
-
(0,
|
|
303713
|
-
|
|
303714
|
-
|
|
303715
|
-
|
|
303716
|
-
|
|
303717
|
-
|
|
303963
|
+
__decorate167([
|
|
303964
|
+
(0, import_common124.Get)("match-feedback"),
|
|
303965
|
+
__param68(0, (0, import_common124.Query)("jobCaseId")),
|
|
303966
|
+
__param68(1, (0, import_common124.Query)("portraitId")),
|
|
303967
|
+
__metadata131("design:type", Function),
|
|
303968
|
+
__metadata131("design:paramtypes", [String, String]),
|
|
303969
|
+
__metadata131("design:returntype", void 0)
|
|
303718
303970
|
], JobPortraitController.prototype, "listFeedback", null);
|
|
303719
|
-
|
|
303720
|
-
(0,
|
|
303721
|
-
|
|
303722
|
-
|
|
303723
|
-
|
|
303724
|
-
|
|
303971
|
+
__decorate167([
|
|
303972
|
+
(0, import_common124.Get)("skill-thesaurus"),
|
|
303973
|
+
__param68(0, (0, import_common124.Query)("q")),
|
|
303974
|
+
__metadata131("design:type", Function),
|
|
303975
|
+
__metadata131("design:paramtypes", [String]),
|
|
303976
|
+
__metadata131("design:returntype", void 0)
|
|
303725
303977
|
], JobPortraitController.prototype, "listThesaurus", null);
|
|
303726
|
-
|
|
303727
|
-
(0,
|
|
303728
|
-
|
|
303729
|
-
|
|
303730
|
-
|
|
303731
|
-
|
|
303978
|
+
__decorate167([
|
|
303979
|
+
(0, import_common124.Put)("skill-thesaurus"),
|
|
303980
|
+
__param68(0, (0, import_common124.Body)()),
|
|
303981
|
+
__metadata131("design:type", Function),
|
|
303982
|
+
__metadata131("design:paramtypes", [Object]),
|
|
303983
|
+
__metadata131("design:returntype", void 0)
|
|
303732
303984
|
], JobPortraitController.prototype, "upsertThesaurus", null);
|
|
303733
|
-
JobPortraitController =
|
|
303734
|
-
(0,
|
|
303735
|
-
|
|
303985
|
+
JobPortraitController = __decorate167([
|
|
303986
|
+
(0, import_common124.Controller)(),
|
|
303987
|
+
__metadata131("design:paramtypes", [
|
|
303736
303988
|
JobPortraitService,
|
|
303737
303989
|
MatchingV2Service
|
|
303738
303990
|
])
|
|
303739
303991
|
], JobPortraitController);
|
|
303740
303992
|
|
|
303741
303993
|
// dist/.server-tsc/matching/matching.module.js
|
|
303742
|
-
var
|
|
303994
|
+
var __decorate168 = function(decorators, target, key, desc) {
|
|
303743
303995
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
303744
303996
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
303745
303997
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -303747,8 +303999,8 @@ var __decorate166 = function(decorators, target, key, desc) {
|
|
|
303747
303999
|
};
|
|
303748
304000
|
var MatchingModule = class MatchingModule2 {
|
|
303749
304001
|
};
|
|
303750
|
-
MatchingModule =
|
|
303751
|
-
(0,
|
|
304002
|
+
MatchingModule = __decorate168([
|
|
304003
|
+
(0, import_common125.Module)({
|
|
303752
304004
|
imports: [
|
|
303753
304005
|
import_typeorm141.TypeOrmModule.forFeature([
|
|
303754
304006
|
TalentPortrait,
|
|
@@ -303770,22 +304022,22 @@ MatchingModule = __decorate166([
|
|
|
303770
304022
|
], MatchingModule);
|
|
303771
304023
|
|
|
303772
304024
|
// dist/.server-tsc/talent-evaluation/talent-evaluation.module.js
|
|
303773
|
-
var
|
|
304025
|
+
var import_common128 = __toESM(require_common(), 1);
|
|
303774
304026
|
var import_typeorm144 = __toESM(require_typeorm2(), 1);
|
|
303775
304027
|
|
|
303776
304028
|
// dist/.server-tsc/talent-evaluation/talent-evaluation.service.js
|
|
303777
|
-
var
|
|
304029
|
+
var import_common126 = __toESM(require_common(), 1);
|
|
303778
304030
|
var import_typeorm142 = __toESM(require_typeorm2(), 1);
|
|
303779
|
-
var
|
|
304031
|
+
var __decorate169 = function(decorators, target, key, desc) {
|
|
303780
304032
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
303781
304033
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
303782
304034
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
303783
304035
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
303784
304036
|
};
|
|
303785
|
-
var
|
|
304037
|
+
var __metadata132 = function(k2, v) {
|
|
303786
304038
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
303787
304039
|
};
|
|
303788
|
-
var
|
|
304040
|
+
var __param69 = function(paramIndex, decorator) {
|
|
303789
304041
|
return function(target, key) {
|
|
303790
304042
|
decorator(target, key, paramIndex);
|
|
303791
304043
|
};
|
|
@@ -303811,7 +304063,7 @@ var TalentEvaluationService = TalentEvaluationService_1 = class TalentEvaluation
|
|
|
303811
304063
|
llm;
|
|
303812
304064
|
matching;
|
|
303813
304065
|
fingerprintMatch;
|
|
303814
|
-
logger = new
|
|
304066
|
+
logger = new import_common126.Logger(TalentEvaluationService_1.name);
|
|
303815
304067
|
constructor(evalRepo, talentRepo, portraitRepo, parsedResumeRepo, llm, matching, fingerprintMatch) {
|
|
303816
304068
|
this.evalRepo = evalRepo;
|
|
303817
304069
|
this.talentRepo = talentRepo;
|
|
@@ -303829,7 +304081,7 @@ var TalentEvaluationService = TalentEvaluationService_1 = class TalentEvaluation
|
|
|
303829
304081
|
}
|
|
303830
304082
|
const talent = await this.talentRepo.findOne({ where: { id: talentId } });
|
|
303831
304083
|
if (!talent)
|
|
303832
|
-
throw new
|
|
304084
|
+
throw new import_common126.NotFoundException(`talent ${talentId} not found`);
|
|
303833
304085
|
const entity = talent.extracted || {};
|
|
303834
304086
|
const rules = this.computeRules(entity);
|
|
303835
304087
|
let evaluation = { ...rules, summary: "", motivation: "" };
|
|
@@ -304063,7 +304315,7 @@ pros/cons/risks \u5728\u7ED9\u51FA\u4E4B\u5916\u53EF\u8865\u5145,\u4F46\u4E0D\u5
|
|
|
304063
304315
|
async matchJobs(talentId) {
|
|
304064
304316
|
const talent = await this.talentRepo.findOne({ where: { id: talentId } });
|
|
304065
304317
|
if (!talent)
|
|
304066
|
-
throw new
|
|
304318
|
+
throw new import_common126.NotFoundException(`talent ${talentId} not found`);
|
|
304067
304319
|
const portrait = await this.bridgePortrait(talent);
|
|
304068
304320
|
const matches = await this.matchActiveJobs(portrait.id);
|
|
304069
304321
|
return { portraitId: portrait.id, matches };
|
|
@@ -304071,7 +304323,7 @@ pros/cons/risks \u5728\u7ED9\u51FA\u4E4B\u5916\u53EF\u8865\u5145,\u4F46\u4E0D\u5
|
|
|
304071
304323
|
async listMatches(talentId) {
|
|
304072
304324
|
const talent = await this.talentRepo.findOne({ where: { id: talentId } });
|
|
304073
304325
|
if (!talent)
|
|
304074
|
-
throw new
|
|
304326
|
+
throw new import_common126.NotFoundException(`talent ${talentId} not found`);
|
|
304075
304327
|
const masterRecordId = `talent:${talentId}`;
|
|
304076
304328
|
const existing = await this.portraitRepo.findOne({ where: { masterRecordId } });
|
|
304077
304329
|
if (existing && (existing.stats?.resumeCount || 0) > 0) {
|
|
@@ -304130,13 +304382,13 @@ pros/cons/risks \u5728\u7ED9\u51FA\u4E4B\u5916\u53EF\u8865\u5145,\u4F46\u4E0D\u5
|
|
|
304130
304382
|
return this.portraitRepo.findOne({ where: { id: top.portraitId } });
|
|
304131
304383
|
}
|
|
304132
304384
|
};
|
|
304133
|
-
TalentEvaluationService = TalentEvaluationService_1 =
|
|
304134
|
-
(0,
|
|
304135
|
-
|
|
304136
|
-
|
|
304137
|
-
|
|
304138
|
-
|
|
304139
|
-
|
|
304385
|
+
TalentEvaluationService = TalentEvaluationService_1 = __decorate169([
|
|
304386
|
+
(0, import_common126.Injectable)(),
|
|
304387
|
+
__param69(0, (0, import_typeorm142.InjectRepository)(TalentEvaluation)),
|
|
304388
|
+
__param69(1, (0, import_typeorm142.InjectRepository)(TalentProfile)),
|
|
304389
|
+
__param69(2, (0, import_typeorm142.InjectRepository)(TalentPortrait)),
|
|
304390
|
+
__param69(3, (0, import_typeorm142.InjectRepository)(ParsedResume)),
|
|
304391
|
+
__metadata132("design:paramtypes", [
|
|
304140
304392
|
Repository,
|
|
304141
304393
|
Repository,
|
|
304142
304394
|
Repository,
|
|
@@ -304148,17 +304400,17 @@ TalentEvaluationService = TalentEvaluationService_1 = __decorate167([
|
|
|
304148
304400
|
], TalentEvaluationService);
|
|
304149
304401
|
|
|
304150
304402
|
// dist/.server-tsc/talent-evaluation/talent-evaluation.controller.js
|
|
304151
|
-
var
|
|
304152
|
-
var
|
|
304403
|
+
var import_common127 = __toESM(require_common(), 1);
|
|
304404
|
+
var __decorate170 = function(decorators, target, key, desc) {
|
|
304153
304405
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
304154
304406
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
304155
304407
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
304156
304408
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
304157
304409
|
};
|
|
304158
|
-
var
|
|
304410
|
+
var __metadata133 = function(k2, v) {
|
|
304159
304411
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
304160
304412
|
};
|
|
304161
|
-
var
|
|
304413
|
+
var __param70 = function(paramIndex, decorator) {
|
|
304162
304414
|
return function(target, key) {
|
|
304163
304415
|
decorator(target, key, paramIndex);
|
|
304164
304416
|
};
|
|
@@ -304181,41 +304433,41 @@ var TalentEvaluationController = class TalentEvaluationController2 {
|
|
|
304181
304433
|
return this.svc.listMatches(id);
|
|
304182
304434
|
}
|
|
304183
304435
|
};
|
|
304184
|
-
|
|
304185
|
-
(0,
|
|
304186
|
-
|
|
304187
|
-
|
|
304188
|
-
|
|
304189
|
-
|
|
304436
|
+
__decorate170([
|
|
304437
|
+
(0, import_common127.Get)("entities/talent/:id/evaluation"),
|
|
304438
|
+
__param70(0, (0, import_common127.Param)("id", import_common127.ParseIntPipe)),
|
|
304439
|
+
__metadata133("design:type", Function),
|
|
304440
|
+
__metadata133("design:paramtypes", [Number]),
|
|
304441
|
+
__metadata133("design:returntype", void 0)
|
|
304190
304442
|
], TalentEvaluationController.prototype, "getEvaluation", null);
|
|
304191
|
-
|
|
304192
|
-
(0,
|
|
304193
|
-
|
|
304194
|
-
|
|
304195
|
-
|
|
304196
|
-
|
|
304443
|
+
__decorate170([
|
|
304444
|
+
(0, import_common127.Post)("entities/talent/:id/evaluation/refresh"),
|
|
304445
|
+
__param70(0, (0, import_common127.Param)("id", import_common127.ParseIntPipe)),
|
|
304446
|
+
__metadata133("design:type", Function),
|
|
304447
|
+
__metadata133("design:paramtypes", [Number]),
|
|
304448
|
+
__metadata133("design:returntype", void 0)
|
|
304197
304449
|
], TalentEvaluationController.prototype, "refreshEvaluation", null);
|
|
304198
|
-
|
|
304199
|
-
(0,
|
|
304200
|
-
|
|
304201
|
-
|
|
304202
|
-
|
|
304203
|
-
|
|
304450
|
+
__decorate170([
|
|
304451
|
+
(0, import_common127.Post)("entities/talent/:id/match-jobs"),
|
|
304452
|
+
__param70(0, (0, import_common127.Param)("id", import_common127.ParseIntPipe)),
|
|
304453
|
+
__metadata133("design:type", Function),
|
|
304454
|
+
__metadata133("design:paramtypes", [Number]),
|
|
304455
|
+
__metadata133("design:returntype", void 0)
|
|
304204
304456
|
], TalentEvaluationController.prototype, "matchJobs", null);
|
|
304205
|
-
|
|
304206
|
-
(0,
|
|
304207
|
-
|
|
304208
|
-
|
|
304209
|
-
|
|
304210
|
-
|
|
304457
|
+
__decorate170([
|
|
304458
|
+
(0, import_common127.Get)("entities/talent/:id/matches"),
|
|
304459
|
+
__param70(0, (0, import_common127.Param)("id", import_common127.ParseIntPipe)),
|
|
304460
|
+
__metadata133("design:type", Function),
|
|
304461
|
+
__metadata133("design:paramtypes", [Number]),
|
|
304462
|
+
__metadata133("design:returntype", void 0)
|
|
304211
304463
|
], TalentEvaluationController.prototype, "listMatches", null);
|
|
304212
|
-
TalentEvaluationController =
|
|
304213
|
-
(0,
|
|
304214
|
-
|
|
304464
|
+
TalentEvaluationController = __decorate170([
|
|
304465
|
+
(0, import_common127.Controller)(),
|
|
304466
|
+
__metadata133("design:paramtypes", [TalentEvaluationService])
|
|
304215
304467
|
], TalentEvaluationController);
|
|
304216
304468
|
|
|
304217
304469
|
// dist/.server-tsc/talent-evaluation/talent-evaluation.module.js
|
|
304218
|
-
var
|
|
304470
|
+
var __decorate171 = function(decorators, target, key, desc) {
|
|
304219
304471
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
304220
304472
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
304221
304473
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -304223,8 +304475,8 @@ var __decorate169 = function(decorators, target, key, desc) {
|
|
|
304223
304475
|
};
|
|
304224
304476
|
var TalentEvaluationModule = class TalentEvaluationModule2 {
|
|
304225
304477
|
};
|
|
304226
|
-
TalentEvaluationModule =
|
|
304227
|
-
(0,
|
|
304478
|
+
TalentEvaluationModule = __decorate171([
|
|
304479
|
+
(0, import_common128.Module)({
|
|
304228
304480
|
imports: [
|
|
304229
304481
|
import_typeorm144.TypeOrmModule.forFeature([TalentEvaluation, TalentProfile, TalentPortrait, ParsedResume]),
|
|
304230
304482
|
MatchingModule,
|
|
@@ -304238,11 +304490,11 @@ TalentEvaluationModule = __decorate169([
|
|
|
304238
304490
|
], TalentEvaluationModule);
|
|
304239
304491
|
|
|
304240
304492
|
// dist/.server-tsc/parsing/parsing.module.js
|
|
304241
|
-
var
|
|
304493
|
+
var import_common131 = __toESM(require_common(), 1);
|
|
304242
304494
|
var import_typeorm147 = __toESM(require_typeorm2(), 1);
|
|
304243
304495
|
|
|
304244
304496
|
// dist/.server-tsc/parsing/parsing.service.js
|
|
304245
|
-
var
|
|
304497
|
+
var import_common129 = __toESM(require_common(), 1);
|
|
304246
304498
|
var import_typeorm145 = __toESM(require_typeorm2(), 1);
|
|
304247
304499
|
|
|
304248
304500
|
// dist/.server-tsc/sentry.js
|
|
@@ -304251,16 +304503,16 @@ function initSentry() {
|
|
|
304251
304503
|
}
|
|
304252
304504
|
|
|
304253
304505
|
// dist/.server-tsc/parsing/parsing.service.js
|
|
304254
|
-
var
|
|
304506
|
+
var __decorate172 = function(decorators, target, key, desc) {
|
|
304255
304507
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
304256
304508
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
304257
304509
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
304258
304510
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
304259
304511
|
};
|
|
304260
|
-
var
|
|
304512
|
+
var __metadata134 = function(k2, v) {
|
|
304261
304513
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
304262
304514
|
};
|
|
304263
|
-
var
|
|
304515
|
+
var __param71 = function(paramIndex, decorator) {
|
|
304264
304516
|
return function(target, key) {
|
|
304265
304517
|
decorator(target, key, paramIndex);
|
|
304266
304518
|
};
|
|
@@ -304289,7 +304541,7 @@ var ParsingService = class ParsingService2 {
|
|
|
304289
304541
|
async parseSnapshot(snapshotId, parserId = "default") {
|
|
304290
304542
|
const snapshot = await this.snapshotService.findById(snapshotId);
|
|
304291
304543
|
if (!snapshot)
|
|
304292
|
-
throw new
|
|
304544
|
+
throw new import_common129.NotFoundException(`Snapshot ${snapshotId} not found`);
|
|
304293
304545
|
const startedAt = /* @__PURE__ */ new Date();
|
|
304294
304546
|
try {
|
|
304295
304547
|
const rules = await this.ruleService.findEnabled();
|
|
@@ -304336,7 +304588,7 @@ var ParsingService = class ParsingService2 {
|
|
|
304336
304588
|
async upsertAgentParsed(snapshotId, extracted, parserId = "agent-submission") {
|
|
304337
304589
|
const snapshot = await this.snapshotService.findById(snapshotId);
|
|
304338
304590
|
if (!snapshot)
|
|
304339
|
-
throw new
|
|
304591
|
+
throw new import_common129.NotFoundException(`Snapshot ${snapshotId} not found`);
|
|
304340
304592
|
const normalized = this.normalizeExtracted(extracted);
|
|
304341
304593
|
const encrypted = this.encryptSensitiveFields(normalized.contact || {});
|
|
304342
304594
|
const confidence = this.computeConfidence(normalized);
|
|
@@ -304482,10 +304734,10 @@ var ParsingService = class ParsingService2 {
|
|
|
304482
304734
|
return this.errorRepo.save(report);
|
|
304483
304735
|
}
|
|
304484
304736
|
};
|
|
304485
|
-
ParsingService =
|
|
304486
|
-
(0,
|
|
304487
|
-
|
|
304488
|
-
|
|
304737
|
+
ParsingService = __decorate172([
|
|
304738
|
+
(0, import_common129.Injectable)(),
|
|
304739
|
+
__param71(0, (0, import_typeorm145.InjectRepository)(ParseErrorReport)),
|
|
304740
|
+
__metadata134("design:paramtypes", [
|
|
304489
304741
|
Repository,
|
|
304490
304742
|
SnapshotService,
|
|
304491
304743
|
ParsedResumeService,
|
|
@@ -304499,18 +304751,18 @@ ParsingService = __decorate170([
|
|
|
304499
304751
|
], ParsingService);
|
|
304500
304752
|
|
|
304501
304753
|
// dist/.server-tsc/parsing/parsing.controller.js
|
|
304502
|
-
var
|
|
304754
|
+
var import_common130 = __toESM(require_common(), 1);
|
|
304503
304755
|
var import_class_validator3 = __toESM(require_cjs(), 1);
|
|
304504
|
-
var
|
|
304756
|
+
var __decorate173 = function(decorators, target, key, desc) {
|
|
304505
304757
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
304506
304758
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
304507
304759
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
304508
304760
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
304509
304761
|
};
|
|
304510
|
-
var
|
|
304762
|
+
var __metadata135 = function(k2, v) {
|
|
304511
304763
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
304512
304764
|
};
|
|
304513
|
-
var
|
|
304765
|
+
var __param72 = function(paramIndex, decorator) {
|
|
304514
304766
|
return function(target, key) {
|
|
304515
304767
|
decorator(target, key, paramIndex);
|
|
304516
304768
|
};
|
|
@@ -304520,18 +304772,18 @@ var AgentParseDto = class {
|
|
|
304520
304772
|
extracted;
|
|
304521
304773
|
parserId;
|
|
304522
304774
|
};
|
|
304523
|
-
|
|
304775
|
+
__decorate173([
|
|
304524
304776
|
(0, import_class_validator3.IsString)(),
|
|
304525
|
-
|
|
304777
|
+
__metadata135("design:type", String)
|
|
304526
304778
|
], AgentParseDto.prototype, "snapshotId", void 0);
|
|
304527
|
-
|
|
304779
|
+
__decorate173([
|
|
304528
304780
|
(0, import_class_validator3.IsObject)(),
|
|
304529
|
-
|
|
304781
|
+
__metadata135("design:type", Object)
|
|
304530
304782
|
], AgentParseDto.prototype, "extracted", void 0);
|
|
304531
|
-
|
|
304783
|
+
__decorate173([
|
|
304532
304784
|
(0, import_class_validator3.IsOptional)(),
|
|
304533
304785
|
(0, import_class_validator3.IsString)(),
|
|
304534
|
-
|
|
304786
|
+
__metadata135("design:type", String)
|
|
304535
304787
|
], AgentParseDto.prototype, "parserId", void 0);
|
|
304536
304788
|
var ParsingController = class ParsingController2 {
|
|
304537
304789
|
parsingService;
|
|
@@ -304549,7 +304801,7 @@ var ParsingController = class ParsingController2 {
|
|
|
304549
304801
|
async getAgentPrompt(id) {
|
|
304550
304802
|
const snapshot = await this.snapshotService.findById(id);
|
|
304551
304803
|
if (!snapshot)
|
|
304552
|
-
throw new
|
|
304804
|
+
throw new import_common130.NotFoundException(`Snapshot ${id} not found`);
|
|
304553
304805
|
const html = snapshot.content?.html || snapshot.content?.text || "";
|
|
304554
304806
|
const trimmed = html.replace(/\s+/g, " ").slice(0, 12e3);
|
|
304555
304807
|
const prompt = `\u4F60\u662F\u4E00\u540D\u730E\u5934\u4EBA\u624D\u89E3\u6790\u4E13\u5BB6\u3002\u8BF7\u6839\u636E\u4EE5\u4E0B\u9875\u9762/\u7B80\u5386\u5185\u5BB9,\u63D0\u53D6\u7ED3\u6784\u5316\u7684\u4EBA\u624D\u4FE1\u606F,\u5E76\u4EE5 JSON \u8FD4\u56DE\u3002
|
|
@@ -304579,37 +304831,37 @@ ${trimmed}
|
|
|
304579
304831
|
return { snapshotId: id, prompt };
|
|
304580
304832
|
}
|
|
304581
304833
|
};
|
|
304582
|
-
|
|
304583
|
-
(0,
|
|
304584
|
-
|
|
304585
|
-
|
|
304586
|
-
|
|
304587
|
-
|
|
304834
|
+
__decorate173([
|
|
304835
|
+
(0, import_common130.Post)("snapshots/:id/parse"),
|
|
304836
|
+
__param72(0, (0, import_common130.Param)("id")),
|
|
304837
|
+
__metadata135("design:type", Function),
|
|
304838
|
+
__metadata135("design:paramtypes", [String]),
|
|
304839
|
+
__metadata135("design:returntype", Promise)
|
|
304588
304840
|
], ParsingController.prototype, "parseSnapshot", null);
|
|
304589
|
-
|
|
304590
|
-
(0,
|
|
304591
|
-
|
|
304592
|
-
|
|
304593
|
-
|
|
304594
|
-
|
|
304841
|
+
__decorate173([
|
|
304842
|
+
(0, import_common130.Post)("agent-submission"),
|
|
304843
|
+
__param72(0, (0, import_common130.Body)()),
|
|
304844
|
+
__metadata135("design:type", Function),
|
|
304845
|
+
__metadata135("design:paramtypes", [AgentParseDto]),
|
|
304846
|
+
__metadata135("design:returntype", Promise)
|
|
304595
304847
|
], ParsingController.prototype, "agentSubmission", null);
|
|
304596
|
-
|
|
304597
|
-
(0,
|
|
304598
|
-
|
|
304599
|
-
|
|
304600
|
-
|
|
304601
|
-
|
|
304848
|
+
__decorate173([
|
|
304849
|
+
(0, import_common130.Get)("snapshots/:id/agent-prompt"),
|
|
304850
|
+
__param72(0, (0, import_common130.Param)("id")),
|
|
304851
|
+
__metadata135("design:type", Function),
|
|
304852
|
+
__metadata135("design:paramtypes", [String]),
|
|
304853
|
+
__metadata135("design:returntype", Promise)
|
|
304602
304854
|
], ParsingController.prototype, "getAgentPrompt", null);
|
|
304603
|
-
ParsingController =
|
|
304604
|
-
(0,
|
|
304605
|
-
|
|
304855
|
+
ParsingController = __decorate173([
|
|
304856
|
+
(0, import_common130.Controller)("parsing"),
|
|
304857
|
+
__metadata135("design:paramtypes", [
|
|
304606
304858
|
ParsingService,
|
|
304607
304859
|
SnapshotService
|
|
304608
304860
|
])
|
|
304609
304861
|
], ParsingController);
|
|
304610
304862
|
|
|
304611
304863
|
// dist/.server-tsc/parsing/parsing.module.js
|
|
304612
|
-
var
|
|
304864
|
+
var __decorate174 = function(decorators, target, key, desc) {
|
|
304613
304865
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
304614
304866
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
304615
304867
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -304617,8 +304869,8 @@ var __decorate172 = function(decorators, target, key, desc) {
|
|
|
304617
304869
|
};
|
|
304618
304870
|
var ParsingModule = class ParsingModule2 {
|
|
304619
304871
|
};
|
|
304620
|
-
ParsingModule =
|
|
304621
|
-
(0,
|
|
304872
|
+
ParsingModule = __decorate174([
|
|
304873
|
+
(0, import_common131.Module)({
|
|
304622
304874
|
imports: [
|
|
304623
304875
|
import_typeorm147.TypeOrmModule.forFeature([ParseErrorReport]),
|
|
304624
304876
|
SnapshotModule,
|
|
@@ -304634,8 +304886,8 @@ ParsingModule = __decorate172([
|
|
|
304634
304886
|
], ParsingModule);
|
|
304635
304887
|
|
|
304636
304888
|
// dist/.server-tsc/devops/devops-sink.module.js
|
|
304637
|
-
var
|
|
304638
|
-
var
|
|
304889
|
+
var import_common132 = __toESM(require_common(), 1);
|
|
304890
|
+
var __decorate175 = function(decorators, target, key, desc) {
|
|
304639
304891
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
304640
304892
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
304641
304893
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -304643,20 +304895,20 @@ var __decorate173 = function(decorators, target, key, desc) {
|
|
|
304643
304895
|
};
|
|
304644
304896
|
var DevopsSinkModule = class DevopsSinkModule2 {
|
|
304645
304897
|
};
|
|
304646
|
-
DevopsSinkModule =
|
|
304647
|
-
(0,
|
|
304648
|
-
(0,
|
|
304898
|
+
DevopsSinkModule = __decorate175([
|
|
304899
|
+
(0, import_common132.Global)(),
|
|
304900
|
+
(0, import_common132.Module)({
|
|
304649
304901
|
providers: [DevopsSinkInit],
|
|
304650
304902
|
exports: [DevopsSinkInit]
|
|
304651
304903
|
})
|
|
304652
304904
|
], DevopsSinkModule);
|
|
304653
304905
|
|
|
304654
304906
|
// dist/.server-tsc/telemetry/telemetry.module.js
|
|
304655
|
-
var
|
|
304907
|
+
var import_common134 = __toESM(require_common(), 1);
|
|
304656
304908
|
var import_typeorm151 = __toESM(require_typeorm2(), 1);
|
|
304657
304909
|
|
|
304658
304910
|
// dist/.server-tsc/telemetry/telemetry.service.js
|
|
304659
|
-
var
|
|
304911
|
+
var import_common133 = __toESM(require_common(), 1);
|
|
304660
304912
|
var import_typeorm149 = __toESM(require_typeorm2(), 1);
|
|
304661
304913
|
var import_config8 = __toESM(require_config2(), 1);
|
|
304662
304914
|
|
|
@@ -304699,16 +304951,16 @@ function clientId() {
|
|
|
304699
304951
|
}
|
|
304700
304952
|
|
|
304701
304953
|
// dist/.server-tsc/telemetry/telemetry.service.js
|
|
304702
|
-
var
|
|
304954
|
+
var __decorate176 = function(decorators, target, key, desc) {
|
|
304703
304955
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
304704
304956
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
304705
304957
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
304706
304958
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
304707
304959
|
};
|
|
304708
|
-
var
|
|
304960
|
+
var __metadata136 = function(k2, v) {
|
|
304709
304961
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
304710
304962
|
};
|
|
304711
|
-
var
|
|
304963
|
+
var __param73 = function(paramIndex, decorator) {
|
|
304712
304964
|
return function(target, key) {
|
|
304713
304965
|
decorator(target, key, paramIndex);
|
|
304714
304966
|
};
|
|
@@ -304717,7 +304969,7 @@ var TelemetryService_1;
|
|
|
304717
304969
|
var TelemetryService = TelemetryService_1 = class TelemetryService2 {
|
|
304718
304970
|
parseLogRepo;
|
|
304719
304971
|
config;
|
|
304720
|
-
logger = new
|
|
304972
|
+
logger = new import_common133.Logger(TelemetryService_1.name);
|
|
304721
304973
|
reporting = false;
|
|
304722
304974
|
timer;
|
|
304723
304975
|
constructor(parseLogRepo, config) {
|
|
@@ -304785,17 +305037,17 @@ var TelemetryService = TelemetryService_1 = class TelemetryService2 {
|
|
|
304785
305037
|
return out;
|
|
304786
305038
|
}
|
|
304787
305039
|
};
|
|
304788
|
-
TelemetryService = TelemetryService_1 =
|
|
304789
|
-
(0,
|
|
304790
|
-
|
|
304791
|
-
|
|
305040
|
+
TelemetryService = TelemetryService_1 = __decorate176([
|
|
305041
|
+
(0, import_common133.Injectable)(),
|
|
305042
|
+
__param73(0, (0, import_typeorm149.InjectRepository)(ParseLog)),
|
|
305043
|
+
__metadata136("design:paramtypes", [
|
|
304792
305044
|
Repository,
|
|
304793
305045
|
import_config8.ConfigService
|
|
304794
305046
|
])
|
|
304795
305047
|
], TelemetryService);
|
|
304796
305048
|
|
|
304797
305049
|
// dist/.server-tsc/telemetry/telemetry.module.js
|
|
304798
|
-
var
|
|
305050
|
+
var __decorate177 = function(decorators, target, key, desc) {
|
|
304799
305051
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
304800
305052
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
304801
305053
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -304803,8 +305055,8 @@ var __decorate175 = function(decorators, target, key, desc) {
|
|
|
304803
305055
|
};
|
|
304804
305056
|
var TelemetryModule = class TelemetryModule2 {
|
|
304805
305057
|
};
|
|
304806
|
-
TelemetryModule =
|
|
304807
|
-
(0,
|
|
305058
|
+
TelemetryModule = __decorate177([
|
|
305059
|
+
(0, import_common134.Module)({
|
|
304808
305060
|
imports: [import_typeorm151.TypeOrmModule.forFeature([ParseLog])],
|
|
304809
305061
|
providers: [TelemetryService],
|
|
304810
305062
|
exports: [TelemetryService]
|
|
@@ -304812,22 +305064,22 @@ TelemetryModule = __decorate175([
|
|
|
304812
305064
|
], TelemetryModule);
|
|
304813
305065
|
|
|
304814
305066
|
// dist/.server-tsc/doctor/doctor.module.js
|
|
304815
|
-
var
|
|
305067
|
+
var import_common137 = __toESM(require_common(), 1);
|
|
304816
305068
|
var import_typeorm154 = __toESM(require_typeorm2(), 1);
|
|
304817
305069
|
|
|
304818
305070
|
// dist/.server-tsc/doctor/doctor.service.js
|
|
304819
|
-
var
|
|
305071
|
+
var import_common135 = __toESM(require_common(), 1);
|
|
304820
305072
|
var import_typeorm152 = __toESM(require_typeorm2(), 1);
|
|
304821
|
-
var
|
|
305073
|
+
var __decorate178 = function(decorators, target, key, desc) {
|
|
304822
305074
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
304823
305075
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
304824
305076
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
304825
305077
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
304826
305078
|
};
|
|
304827
|
-
var
|
|
305079
|
+
var __metadata137 = function(k2, v) {
|
|
304828
305080
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
304829
305081
|
};
|
|
304830
|
-
var
|
|
305082
|
+
var __param74 = function(paramIndex, decorator) {
|
|
304831
305083
|
return function(target, key) {
|
|
304832
305084
|
decorator(target, key, paramIndex);
|
|
304833
305085
|
};
|
|
@@ -305237,15 +305489,15 @@ var DoctorService = class DoctorService2 {
|
|
|
305237
305489
|
this.checks.set(handler.id, handler);
|
|
305238
305490
|
}
|
|
305239
305491
|
};
|
|
305240
|
-
DoctorService =
|
|
305241
|
-
(0,
|
|
305242
|
-
|
|
305243
|
-
|
|
305244
|
-
|
|
305245
|
-
|
|
305246
|
-
|
|
305247
|
-
|
|
305248
|
-
|
|
305492
|
+
DoctorService = __decorate178([
|
|
305493
|
+
(0, import_common135.Injectable)(),
|
|
305494
|
+
__param74(0, (0, import_typeorm152.InjectRepository)(TalentProfile)),
|
|
305495
|
+
__param74(1, (0, import_typeorm152.InjectRepository)(ParseLog)),
|
|
305496
|
+
__param74(2, (0, import_typeorm152.InjectRepository)(CompanyProfile)),
|
|
305497
|
+
__param74(3, (0, import_typeorm152.InjectRepository)(JobPosting)),
|
|
305498
|
+
__param74(4, (0, import_typeorm152.InjectRepository)(Customer)),
|
|
305499
|
+
__param74(5, (0, import_typeorm152.InjectRepository)(JobCase)),
|
|
305500
|
+
__metadata137("design:paramtypes", [
|
|
305249
305501
|
Repository,
|
|
305250
305502
|
Repository,
|
|
305251
305503
|
Repository,
|
|
@@ -305257,17 +305509,17 @@ DoctorService = __decorate176([
|
|
|
305257
305509
|
], DoctorService);
|
|
305258
305510
|
|
|
305259
305511
|
// dist/.server-tsc/doctor/doctor.controller.js
|
|
305260
|
-
var
|
|
305261
|
-
var
|
|
305512
|
+
var import_common136 = __toESM(require_common(), 1);
|
|
305513
|
+
var __decorate179 = function(decorators, target, key, desc) {
|
|
305262
305514
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
305263
305515
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
305264
305516
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
305265
305517
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
305266
305518
|
};
|
|
305267
|
-
var
|
|
305519
|
+
var __metadata138 = function(k2, v) {
|
|
305268
305520
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
305269
305521
|
};
|
|
305270
|
-
var
|
|
305522
|
+
var __param75 = function(paramIndex, decorator) {
|
|
305271
305523
|
return function(target, key) {
|
|
305272
305524
|
decorator(target, key, paramIndex);
|
|
305273
305525
|
};
|
|
@@ -305291,33 +305543,33 @@ var DoctorController = class DoctorController2 {
|
|
|
305291
305543
|
});
|
|
305292
305544
|
}
|
|
305293
305545
|
};
|
|
305294
|
-
|
|
305295
|
-
(0,
|
|
305296
|
-
|
|
305297
|
-
|
|
305298
|
-
|
|
305546
|
+
__decorate179([
|
|
305547
|
+
(0, import_common136.Get)("checks"),
|
|
305548
|
+
__metadata138("design:type", Function),
|
|
305549
|
+
__metadata138("design:paramtypes", []),
|
|
305550
|
+
__metadata138("design:returntype", void 0)
|
|
305299
305551
|
], DoctorController.prototype, "list", null);
|
|
305300
|
-
|
|
305301
|
-
(0,
|
|
305302
|
-
|
|
305303
|
-
|
|
305304
|
-
|
|
305305
|
-
|
|
305552
|
+
__decorate179([
|
|
305553
|
+
(0, import_common136.Post)("run"),
|
|
305554
|
+
__param75(0, (0, import_common136.Body)()),
|
|
305555
|
+
__metadata138("design:type", Function),
|
|
305556
|
+
__metadata138("design:paramtypes", [Object]),
|
|
305557
|
+
__metadata138("design:returntype", Promise)
|
|
305306
305558
|
], DoctorController.prototype, "run", null);
|
|
305307
|
-
|
|
305308
|
-
(0,
|
|
305309
|
-
|
|
305310
|
-
|
|
305311
|
-
|
|
305312
|
-
|
|
305559
|
+
__decorate179([
|
|
305560
|
+
(0, import_common136.Post)("repair-linkedin-dupes"),
|
|
305561
|
+
__param75(0, (0, import_common136.Body)()),
|
|
305562
|
+
__metadata138("design:type", Function),
|
|
305563
|
+
__metadata138("design:paramtypes", [Object]),
|
|
305564
|
+
__metadata138("design:returntype", Promise)
|
|
305313
305565
|
], DoctorController.prototype, "repairLinkedInDupes", null);
|
|
305314
|
-
DoctorController =
|
|
305315
|
-
(0,
|
|
305316
|
-
|
|
305566
|
+
DoctorController = __decorate179([
|
|
305567
|
+
(0, import_common136.Controller)("doctor"),
|
|
305568
|
+
__metadata138("design:paramtypes", [DoctorService])
|
|
305317
305569
|
], DoctorController);
|
|
305318
305570
|
|
|
305319
305571
|
// dist/.server-tsc/doctor/doctor.module.js
|
|
305320
|
-
var
|
|
305572
|
+
var __decorate180 = function(decorators, target, key, desc) {
|
|
305321
305573
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
305322
305574
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
305323
305575
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -305325,8 +305577,8 @@ var __decorate178 = function(decorators, target, key, desc) {
|
|
|
305325
305577
|
};
|
|
305326
305578
|
var DoctorModule = class DoctorModule2 {
|
|
305327
305579
|
};
|
|
305328
|
-
DoctorModule =
|
|
305329
|
-
(0,
|
|
305580
|
+
DoctorModule = __decorate180([
|
|
305581
|
+
(0, import_common137.Module)({
|
|
305330
305582
|
imports: [import_typeorm154.TypeOrmModule.forFeature([TalentProfile, ParseLog, CompanyProfile, JobPosting, Customer, JobCase])],
|
|
305331
305583
|
providers: [DoctorService, TenantService],
|
|
305332
305584
|
controllers: [DoctorController],
|
|
@@ -305335,22 +305587,22 @@ DoctorModule = __decorate178([
|
|
|
305335
305587
|
], DoctorModule);
|
|
305336
305588
|
|
|
305337
305589
|
// dist/.server-tsc/customer/customer.module.js
|
|
305338
|
-
var
|
|
305590
|
+
var import_common140 = __toESM(require_common(), 1);
|
|
305339
305591
|
var import_typeorm157 = __toESM(require_typeorm2(), 1);
|
|
305340
305592
|
|
|
305341
305593
|
// dist/.server-tsc/customer/customer.service.js
|
|
305342
|
-
var
|
|
305594
|
+
var import_common138 = __toESM(require_common(), 1);
|
|
305343
305595
|
var import_typeorm155 = __toESM(require_typeorm2(), 1);
|
|
305344
|
-
var
|
|
305596
|
+
var __decorate181 = function(decorators, target, key, desc) {
|
|
305345
305597
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
305346
305598
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
305347
305599
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
305348
305600
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
305349
305601
|
};
|
|
305350
|
-
var
|
|
305602
|
+
var __metadata139 = function(k2, v) {
|
|
305351
305603
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
305352
305604
|
};
|
|
305353
|
-
var
|
|
305605
|
+
var __param76 = function(paramIndex, decorator) {
|
|
305354
305606
|
return function(target, key) {
|
|
305355
305607
|
decorator(target, key, paramIndex);
|
|
305356
305608
|
};
|
|
@@ -305389,7 +305641,7 @@ var CustomerService = class CustomerService2 {
|
|
|
305389
305641
|
parseLogRepo;
|
|
305390
305642
|
datasync;
|
|
305391
305643
|
tenant;
|
|
305392
|
-
logger = new
|
|
305644
|
+
logger = new import_common138.Logger(CustomerService_1.name);
|
|
305393
305645
|
static COLLECT_TTL_MS = 6e4;
|
|
305394
305646
|
collectCache = null;
|
|
305395
305647
|
invalidateCollectCache() {
|
|
@@ -305417,7 +305669,7 @@ var CustomerService = class CustomerService2 {
|
|
|
305417
305669
|
async findOne(id) {
|
|
305418
305670
|
const customer = await this.repo.findOne({ where: { id } });
|
|
305419
305671
|
if (!customer)
|
|
305420
|
-
throw new
|
|
305672
|
+
throw new import_common138.NotFoundException(`Customer ${id} not found`);
|
|
305421
305673
|
return customer;
|
|
305422
305674
|
}
|
|
305423
305675
|
static LIST_COLS = [
|
|
@@ -305461,7 +305713,7 @@ var CustomerService = class CustomerService2 {
|
|
|
305461
305713
|
const name = dto.name.trim();
|
|
305462
305714
|
const dedupKey = normalizeCustomerName(name);
|
|
305463
305715
|
if (!dedupKey) {
|
|
305464
|
-
throw new
|
|
305716
|
+
throw new import_common138.NotFoundException("\u5BA2\u6237\u540D\u5F52\u4E00\u5316\u540E\u4E3A\u7A7A,\u8BF7\u68C0\u67E5\u8F93\u5165");
|
|
305465
305717
|
}
|
|
305466
305718
|
const mergeInto = async (customer) => {
|
|
305467
305719
|
let changed = false;
|
|
@@ -305627,7 +305879,7 @@ var CustomerService = class CustomerService2 {
|
|
|
305627
305879
|
}
|
|
305628
305880
|
async merge(keepId, removeId) {
|
|
305629
305881
|
if (keepId === removeId)
|
|
305630
|
-
throw new
|
|
305882
|
+
throw new import_common138.BadRequestException("keepId/removeId \u4E0D\u80FD\u76F8\u540C");
|
|
305631
305883
|
const keep = await this.findOne(keepId);
|
|
305632
305884
|
const remove = await this.findOne(removeId);
|
|
305633
305885
|
const aliasSet = new Set(keep.aliases ?? []);
|
|
@@ -305887,16 +306139,16 @@ var CustomerService = class CustomerService2 {
|
|
|
305887
306139
|
return { customer, jobCases, jobPostings, remarks, talents, companyProfile, parseLogs };
|
|
305888
306140
|
}
|
|
305889
306141
|
};
|
|
305890
|
-
CustomerService = CustomerService_1 =
|
|
305891
|
-
(0,
|
|
305892
|
-
|
|
305893
|
-
|
|
305894
|
-
|
|
305895
|
-
|
|
305896
|
-
|
|
305897
|
-
|
|
305898
|
-
|
|
305899
|
-
|
|
306142
|
+
CustomerService = CustomerService_1 = __decorate181([
|
|
306143
|
+
(0, import_common138.Injectable)(),
|
|
306144
|
+
__param76(0, (0, import_typeorm155.InjectRepository)(Customer)),
|
|
306145
|
+
__param76(1, (0, import_typeorm155.InjectRepository)(JobCase)),
|
|
306146
|
+
__param76(2, (0, import_typeorm155.InjectRepository)(Remark)),
|
|
306147
|
+
__param76(3, (0, import_typeorm155.InjectRepository)(CompanyProfile)),
|
|
306148
|
+
__param76(4, (0, import_typeorm155.InjectRepository)(TalentProfile)),
|
|
306149
|
+
__param76(5, (0, import_typeorm155.InjectRepository)(JobPosting)),
|
|
306150
|
+
__param76(6, (0, import_typeorm155.InjectRepository)(ParseLog)),
|
|
306151
|
+
__metadata139("design:paramtypes", [
|
|
305900
306152
|
Repository,
|
|
305901
306153
|
Repository,
|
|
305902
306154
|
Repository,
|
|
@@ -305910,17 +306162,17 @@ CustomerService = CustomerService_1 = __decorate179([
|
|
|
305910
306162
|
], CustomerService);
|
|
305911
306163
|
|
|
305912
306164
|
// dist/.server-tsc/customer/customer.controller.js
|
|
305913
|
-
var
|
|
305914
|
-
var
|
|
306165
|
+
var import_common139 = __toESM(require_common(), 1);
|
|
306166
|
+
var __decorate182 = function(decorators, target, key, desc) {
|
|
305915
306167
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
305916
306168
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
305917
306169
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
305918
306170
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
305919
306171
|
};
|
|
305920
|
-
var
|
|
306172
|
+
var __metadata140 = function(k2, v) {
|
|
305921
306173
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
305922
306174
|
};
|
|
305923
|
-
var
|
|
306175
|
+
var __param77 = function(paramIndex, decorator) {
|
|
305924
306176
|
return function(target, key) {
|
|
305925
306177
|
decorator(target, key, paramIndex);
|
|
305926
306178
|
};
|
|
@@ -305960,7 +306212,7 @@ var CustomerController = class CustomerController2 {
|
|
|
305960
306212
|
const keepId = Number(body?.keepId);
|
|
305961
306213
|
const removeId = Number(body?.removeId);
|
|
305962
306214
|
if (!Number.isFinite(keepId) || !Number.isFinite(removeId)) {
|
|
305963
|
-
throw new
|
|
306215
|
+
throw new import_common139.BadRequestException("keepId/removeId required");
|
|
305964
306216
|
}
|
|
305965
306217
|
return this.service.merge(keepId, removeId);
|
|
305966
306218
|
}
|
|
@@ -305972,100 +306224,100 @@ var CustomerController = class CustomerController2 {
|
|
|
305972
306224
|
}
|
|
305973
306225
|
parseBatchIds(body) {
|
|
305974
306226
|
if (!Array.isArray(body?.ids) || !body.ids.length) {
|
|
305975
|
-
throw new
|
|
306227
|
+
throw new import_common139.BadRequestException("ids required");
|
|
305976
306228
|
}
|
|
305977
306229
|
if (body.ids.length > 200)
|
|
305978
|
-
throw new
|
|
306230
|
+
throw new import_common139.BadRequestException("\u4E00\u6B21\u6700\u591A 200 \u6761");
|
|
305979
306231
|
const ids = body.ids.map((n) => Number(n));
|
|
305980
306232
|
if (ids.some((n) => !Number.isInteger(n) || n <= 0)) {
|
|
305981
|
-
throw new
|
|
306233
|
+
throw new import_common139.BadRequestException("ids must be positive integers");
|
|
305982
306234
|
}
|
|
305983
306235
|
return ids;
|
|
305984
306236
|
}
|
|
305985
306237
|
};
|
|
305986
|
-
|
|
305987
|
-
(0,
|
|
305988
|
-
|
|
305989
|
-
|
|
305990
|
-
|
|
305991
|
-
|
|
305992
|
-
|
|
306238
|
+
__decorate182([
|
|
306239
|
+
(0, import_common139.Post)(),
|
|
306240
|
+
__param77(0, (0, import_common139.Body)()),
|
|
306241
|
+
__param77(1, (0, import_common139.Request)()),
|
|
306242
|
+
__metadata140("design:type", Function),
|
|
306243
|
+
__metadata140("design:paramtypes", [Object, Object]),
|
|
306244
|
+
__metadata140("design:returntype", void 0)
|
|
305993
306245
|
], CustomerController.prototype, "upsert", null);
|
|
305994
|
-
|
|
305995
|
-
(0,
|
|
305996
|
-
|
|
305997
|
-
|
|
305998
|
-
|
|
305999
|
-
|
|
306000
|
-
|
|
306246
|
+
__decorate182([
|
|
306247
|
+
(0, import_common139.Get)(),
|
|
306248
|
+
__param77(0, (0, import_common139.Query)("query")),
|
|
306249
|
+
__param77(1, (0, import_common139.Request)()),
|
|
306250
|
+
__metadata140("design:type", Function),
|
|
306251
|
+
__metadata140("design:paramtypes", [String, Object]),
|
|
306252
|
+
__metadata140("design:returntype", void 0)
|
|
306001
306253
|
], CustomerController.prototype, "search", null);
|
|
306002
|
-
|
|
306003
|
-
(0,
|
|
306004
|
-
|
|
306005
|
-
|
|
306006
|
-
|
|
306007
|
-
|
|
306008
|
-
|
|
306009
|
-
|
|
306010
|
-
|
|
306011
|
-
|
|
306254
|
+
__decorate182([
|
|
306255
|
+
(0, import_common139.Get)("unified"),
|
|
306256
|
+
__param77(0, (0, import_common139.Query)("query")),
|
|
306257
|
+
__param77(1, (0, import_common139.Query)("onlyCustomers")),
|
|
306258
|
+
__param77(2, (0, import_common139.Query)("limit")),
|
|
306259
|
+
__param77(3, (0, import_common139.Query)("offset")),
|
|
306260
|
+
__param77(4, (0, import_common139.Query)("sources")),
|
|
306261
|
+
__metadata140("design:type", Function),
|
|
306262
|
+
__metadata140("design:paramtypes", [String, String, String, String, String]),
|
|
306263
|
+
__metadata140("design:returntype", void 0)
|
|
306012
306264
|
], CustomerController.prototype, "unified", null);
|
|
306013
|
-
|
|
306014
|
-
(0,
|
|
306015
|
-
|
|
306016
|
-
|
|
306017
|
-
|
|
306265
|
+
__decorate182([
|
|
306266
|
+
(0, import_common139.Post)("collect"),
|
|
306267
|
+
__metadata140("design:type", Function),
|
|
306268
|
+
__metadata140("design:paramtypes", []),
|
|
306269
|
+
__metadata140("design:returntype", void 0)
|
|
306018
306270
|
], CustomerController.prototype, "collect", null);
|
|
306019
|
-
|
|
306020
|
-
(0,
|
|
306021
|
-
|
|
306022
|
-
|
|
306023
|
-
|
|
306024
|
-
|
|
306271
|
+
__decorate182([
|
|
306272
|
+
(0, import_common139.Delete)(),
|
|
306273
|
+
__param77(0, (0, import_common139.Body)()),
|
|
306274
|
+
__metadata140("design:type", Function),
|
|
306275
|
+
__metadata140("design:paramtypes", [Object]),
|
|
306276
|
+
__metadata140("design:returntype", void 0)
|
|
306025
306277
|
], CustomerController.prototype, "batchDelete", null);
|
|
306026
|
-
|
|
306027
|
-
(0,
|
|
306028
|
-
|
|
306029
|
-
|
|
306030
|
-
|
|
306031
|
-
|
|
306278
|
+
__decorate182([
|
|
306279
|
+
(0, import_common139.Get)(":id/related"),
|
|
306280
|
+
__param77(0, (0, import_common139.Param)("id")),
|
|
306281
|
+
__metadata140("design:type", Function),
|
|
306282
|
+
__metadata140("design:paramtypes", [String]),
|
|
306283
|
+
__metadata140("design:returntype", void 0)
|
|
306032
306284
|
], CustomerController.prototype, "related", null);
|
|
306033
|
-
|
|
306034
|
-
(0,
|
|
306035
|
-
|
|
306036
|
-
|
|
306037
|
-
|
|
306038
|
-
|
|
306285
|
+
__decorate182([
|
|
306286
|
+
(0, import_common139.Get)(":id/duplicates"),
|
|
306287
|
+
__param77(0, (0, import_common139.Param)("id")),
|
|
306288
|
+
__metadata140("design:type", Function),
|
|
306289
|
+
__metadata140("design:paramtypes", [String]),
|
|
306290
|
+
__metadata140("design:returntype", void 0)
|
|
306039
306291
|
], CustomerController.prototype, "duplicates", null);
|
|
306040
|
-
|
|
306041
|
-
(0,
|
|
306042
|
-
|
|
306043
|
-
|
|
306044
|
-
|
|
306045
|
-
|
|
306292
|
+
__decorate182([
|
|
306293
|
+
(0, import_common139.Post)("merge"),
|
|
306294
|
+
__param77(0, (0, import_common139.Body)()),
|
|
306295
|
+
__metadata140("design:type", Function),
|
|
306296
|
+
__metadata140("design:paramtypes", [Object]),
|
|
306297
|
+
__metadata140("design:returntype", void 0)
|
|
306046
306298
|
], CustomerController.prototype, "merge", null);
|
|
306047
|
-
|
|
306048
|
-
(0,
|
|
306049
|
-
|
|
306050
|
-
|
|
306051
|
-
|
|
306052
|
-
|
|
306299
|
+
__decorate182([
|
|
306300
|
+
(0, import_common139.Get)(":id"),
|
|
306301
|
+
__param77(0, (0, import_common139.Param)("id")),
|
|
306302
|
+
__metadata140("design:type", Function),
|
|
306303
|
+
__metadata140("design:paramtypes", [String]),
|
|
306304
|
+
__metadata140("design:returntype", void 0)
|
|
306053
306305
|
], CustomerController.prototype, "findOne", null);
|
|
306054
|
-
|
|
306055
|
-
(0,
|
|
306056
|
-
|
|
306057
|
-
|
|
306058
|
-
|
|
306059
|
-
|
|
306060
|
-
|
|
306306
|
+
__decorate182([
|
|
306307
|
+
(0, import_common139.Patch)(":id"),
|
|
306308
|
+
__param77(0, (0, import_common139.Param)("id")),
|
|
306309
|
+
__param77(1, (0, import_common139.Body)()),
|
|
306310
|
+
__metadata140("design:type", Function),
|
|
306311
|
+
__metadata140("design:paramtypes", [String, Object]),
|
|
306312
|
+
__metadata140("design:returntype", void 0)
|
|
306061
306313
|
], CustomerController.prototype, "update", null);
|
|
306062
|
-
CustomerController =
|
|
306063
|
-
(0,
|
|
306064
|
-
|
|
306314
|
+
CustomerController = __decorate182([
|
|
306315
|
+
(0, import_common139.Controller)("customers"),
|
|
306316
|
+
__metadata140("design:paramtypes", [CustomerService])
|
|
306065
306317
|
], CustomerController);
|
|
306066
306318
|
|
|
306067
306319
|
// dist/.server-tsc/customer/customer.module.js
|
|
306068
|
-
var
|
|
306320
|
+
var __decorate183 = function(decorators, target, key, desc) {
|
|
306069
306321
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
306070
306322
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
306071
306323
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -306073,8 +306325,8 @@ var __decorate181 = function(decorators, target, key, desc) {
|
|
|
306073
306325
|
};
|
|
306074
306326
|
var CustomerModule = class CustomerModule2 {
|
|
306075
306327
|
};
|
|
306076
|
-
CustomerModule =
|
|
306077
|
-
(0,
|
|
306328
|
+
CustomerModule = __decorate183([
|
|
306329
|
+
(0, import_common140.Module)({
|
|
306078
306330
|
imports: [
|
|
306079
306331
|
import_typeorm157.TypeOrmModule.forFeature([
|
|
306080
306332
|
Customer,
|
|
@@ -306095,22 +306347,22 @@ CustomerModule = __decorate181([
|
|
|
306095
306347
|
], CustomerModule);
|
|
306096
306348
|
|
|
306097
306349
|
// dist/.server-tsc/preference/preference.module.js
|
|
306098
|
-
var
|
|
306350
|
+
var import_common143 = __toESM(require_common(), 1);
|
|
306099
306351
|
var import_typeorm160 = __toESM(require_typeorm2(), 1);
|
|
306100
306352
|
|
|
306101
306353
|
// dist/.server-tsc/preference/preference.service.js
|
|
306102
|
-
var
|
|
306354
|
+
var import_common141 = __toESM(require_common(), 1);
|
|
306103
306355
|
var import_typeorm158 = __toESM(require_typeorm2(), 1);
|
|
306104
|
-
var
|
|
306356
|
+
var __decorate184 = function(decorators, target, key, desc) {
|
|
306105
306357
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
306106
306358
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
306107
306359
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
306108
306360
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
306109
306361
|
};
|
|
306110
|
-
var
|
|
306362
|
+
var __metadata141 = function(k2, v) {
|
|
306111
306363
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
306112
306364
|
};
|
|
306113
|
-
var
|
|
306365
|
+
var __param78 = function(paramIndex, decorator) {
|
|
306114
306366
|
return function(target, key) {
|
|
306115
306367
|
decorator(target, key, paramIndex);
|
|
306116
306368
|
};
|
|
@@ -306131,7 +306383,7 @@ var PreferenceService = class PreferenceService2 {
|
|
|
306131
306383
|
}
|
|
306132
306384
|
async put(dto) {
|
|
306133
306385
|
if (!dto.scope || !dto.scopeId) {
|
|
306134
|
-
throw new
|
|
306386
|
+
throw new import_common141.BadRequestException("scope \u4E0E scopeId \u5FC5\u586B");
|
|
306135
306387
|
}
|
|
306136
306388
|
const saved = [];
|
|
306137
306389
|
for (const item of dto.items) {
|
|
@@ -306183,7 +306435,7 @@ var PreferenceService = class PreferenceService2 {
|
|
|
306183
306435
|
}
|
|
306184
306436
|
async getMerged(scope, scopeId, opts) {
|
|
306185
306437
|
if (!scope || !scopeId) {
|
|
306186
|
-
throw new
|
|
306438
|
+
throw new import_common141.BadRequestException("scope \u4E0E scopeId \u5FC5\u586B");
|
|
306187
306439
|
}
|
|
306188
306440
|
const result = {
|
|
306189
306441
|
case: [],
|
|
@@ -306206,24 +306458,24 @@ var PreferenceService = class PreferenceService2 {
|
|
|
306206
306458
|
return result;
|
|
306207
306459
|
}
|
|
306208
306460
|
};
|
|
306209
|
-
PreferenceService =
|
|
306210
|
-
(0,
|
|
306211
|
-
|
|
306212
|
-
|
|
306461
|
+
PreferenceService = __decorate184([
|
|
306462
|
+
(0, import_common141.Injectable)(),
|
|
306463
|
+
__param78(0, (0, import_typeorm158.InjectRepository)(Preference)),
|
|
306464
|
+
__metadata141("design:paramtypes", [Repository])
|
|
306213
306465
|
], PreferenceService);
|
|
306214
306466
|
|
|
306215
306467
|
// dist/.server-tsc/preference/preference.controller.js
|
|
306216
|
-
var
|
|
306217
|
-
var
|
|
306468
|
+
var import_common142 = __toESM(require_common(), 1);
|
|
306469
|
+
var __decorate185 = function(decorators, target, key, desc) {
|
|
306218
306470
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
306219
306471
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
306220
306472
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
306221
306473
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
306222
306474
|
};
|
|
306223
|
-
var
|
|
306475
|
+
var __metadata142 = function(k2, v) {
|
|
306224
306476
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
306225
306477
|
};
|
|
306226
|
-
var
|
|
306478
|
+
var __param79 = function(paramIndex, decorator) {
|
|
306227
306479
|
return function(target, key) {
|
|
306228
306480
|
decorator(target, key, paramIndex);
|
|
306229
306481
|
};
|
|
@@ -306246,38 +306498,38 @@ var PreferenceController = class PreferenceController2 {
|
|
|
306246
306498
|
return this.service.remove(parseInt(id, 10));
|
|
306247
306499
|
}
|
|
306248
306500
|
};
|
|
306249
|
-
|
|
306250
|
-
(0,
|
|
306251
|
-
|
|
306252
|
-
|
|
306253
|
-
|
|
306254
|
-
|
|
306255
|
-
|
|
306501
|
+
__decorate185([
|
|
306502
|
+
(0, import_common142.Put)(),
|
|
306503
|
+
__param79(0, (0, import_common142.Body)()),
|
|
306504
|
+
__param79(1, (0, import_common142.Request)()),
|
|
306505
|
+
__metadata142("design:type", Function),
|
|
306506
|
+
__metadata142("design:paramtypes", [Object, Object]),
|
|
306507
|
+
__metadata142("design:returntype", void 0)
|
|
306256
306508
|
], PreferenceController.prototype, "put", null);
|
|
306257
|
-
|
|
306258
|
-
(0,
|
|
306259
|
-
|
|
306260
|
-
|
|
306261
|
-
|
|
306262
|
-
|
|
306263
|
-
|
|
306264
|
-
|
|
306265
|
-
|
|
306509
|
+
__decorate185([
|
|
306510
|
+
(0, import_common142.Get)(),
|
|
306511
|
+
__param79(0, (0, import_common142.Request)()),
|
|
306512
|
+
__param79(1, (0, import_common142.Query)("scope")),
|
|
306513
|
+
__param79(2, (0, import_common142.Query)("scopeId")),
|
|
306514
|
+
__param79(3, (0, import_common142.Query)("customerId")),
|
|
306515
|
+
__metadata142("design:type", Function),
|
|
306516
|
+
__metadata142("design:paramtypes", [Object, String, String, String]),
|
|
306517
|
+
__metadata142("design:returntype", void 0)
|
|
306266
306518
|
], PreferenceController.prototype, "getMerged", null);
|
|
306267
|
-
|
|
306268
|
-
(0,
|
|
306269
|
-
|
|
306270
|
-
|
|
306271
|
-
|
|
306272
|
-
|
|
306519
|
+
__decorate185([
|
|
306520
|
+
(0, import_common142.Delete)(":id"),
|
|
306521
|
+
__param79(0, (0, import_common142.Param)("id")),
|
|
306522
|
+
__metadata142("design:type", Function),
|
|
306523
|
+
__metadata142("design:paramtypes", [String]),
|
|
306524
|
+
__metadata142("design:returntype", void 0)
|
|
306273
306525
|
], PreferenceController.prototype, "remove", null);
|
|
306274
|
-
PreferenceController =
|
|
306275
|
-
(0,
|
|
306276
|
-
|
|
306526
|
+
PreferenceController = __decorate185([
|
|
306527
|
+
(0, import_common142.Controller)("preferences"),
|
|
306528
|
+
__metadata142("design:paramtypes", [PreferenceService])
|
|
306277
306529
|
], PreferenceController);
|
|
306278
306530
|
|
|
306279
306531
|
// dist/.server-tsc/preference/preference.module.js
|
|
306280
|
-
var
|
|
306532
|
+
var __decorate186 = function(decorators, target, key, desc) {
|
|
306281
306533
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
306282
306534
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
306283
306535
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -306285,8 +306537,8 @@ var __decorate184 = function(decorators, target, key, desc) {
|
|
|
306285
306537
|
};
|
|
306286
306538
|
var PreferenceModule = class PreferenceModule2 {
|
|
306287
306539
|
};
|
|
306288
|
-
PreferenceModule =
|
|
306289
|
-
(0,
|
|
306540
|
+
PreferenceModule = __decorate186([
|
|
306541
|
+
(0, import_common143.Module)({
|
|
306290
306542
|
imports: [import_typeorm160.TypeOrmModule.forFeature([Preference])],
|
|
306291
306543
|
controllers: [PreferenceController],
|
|
306292
306544
|
providers: [PreferenceService],
|
|
@@ -306295,23 +306547,23 @@ PreferenceModule = __decorate184([
|
|
|
306295
306547
|
], PreferenceModule);
|
|
306296
306548
|
|
|
306297
306549
|
// dist/.server-tsc/resource-usage/resource-usage.module.js
|
|
306298
|
-
var
|
|
306550
|
+
var import_common148 = __toESM(require_common(), 1);
|
|
306299
306551
|
var import_typeorm165 = __toESM(require_typeorm2(), 1);
|
|
306300
306552
|
|
|
306301
306553
|
// dist/.server-tsc/resource-usage/resource-usage.service.js
|
|
306302
|
-
var
|
|
306554
|
+
var import_common145 = __toESM(require_common(), 1);
|
|
306303
306555
|
var import_typeorm161 = __toESM(require_typeorm2(), 1);
|
|
306304
306556
|
var import_config9 = __toESM(require_config2(), 1);
|
|
306305
306557
|
|
|
306306
306558
|
// dist/.server-tsc/resource-usage/process-sampler.js
|
|
306307
|
-
var
|
|
306559
|
+
var import_common144 = __toESM(require_common(), 1);
|
|
306308
306560
|
import { execFile as execFile2 } from "child_process";
|
|
306309
306561
|
import { promisify as promisify3 } from "util";
|
|
306310
306562
|
import * as fs13 from "fs";
|
|
306311
306563
|
import * as path12 from "path";
|
|
306312
306564
|
var execFileP = promisify3(execFile2);
|
|
306313
306565
|
var ProcessSampler = class _ProcessSampler {
|
|
306314
|
-
logger = new
|
|
306566
|
+
logger = new import_common144.Logger(_ProcessSampler.name);
|
|
306315
306567
|
collector;
|
|
306316
306568
|
deps;
|
|
306317
306569
|
ring = [];
|
|
@@ -306541,16 +306793,16 @@ function readProcCpuTimes() {
|
|
|
306541
306793
|
}
|
|
306542
306794
|
|
|
306543
306795
|
// dist/.server-tsc/resource-usage/resource-usage.service.js
|
|
306544
|
-
var
|
|
306796
|
+
var __decorate187 = function(decorators, target, key, desc) {
|
|
306545
306797
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
306546
306798
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
306547
306799
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
306548
306800
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
306549
306801
|
};
|
|
306550
|
-
var
|
|
306802
|
+
var __metadata143 = function(k2, v) {
|
|
306551
306803
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
306552
306804
|
};
|
|
306553
|
-
var
|
|
306805
|
+
var __param80 = function(paramIndex, decorator) {
|
|
306554
306806
|
return function(target, key) {
|
|
306555
306807
|
decorator(target, key, paramIndex);
|
|
306556
306808
|
};
|
|
@@ -306560,7 +306812,7 @@ var ResourceUsageService = ResourceUsageService_1 = class ResourceUsageService2
|
|
|
306560
306812
|
repo;
|
|
306561
306813
|
config;
|
|
306562
306814
|
authService;
|
|
306563
|
-
logger = new
|
|
306815
|
+
logger = new import_common145.Logger(ResourceUsageService_1.name);
|
|
306564
306816
|
collector;
|
|
306565
306817
|
sampler;
|
|
306566
306818
|
reporting = false;
|
|
@@ -306723,13 +306975,13 @@ var ResourceUsageService = ResourceUsageService_1 = class ResourceUsageService2
|
|
|
306723
306975
|
}
|
|
306724
306976
|
}
|
|
306725
306977
|
};
|
|
306726
|
-
ResourceUsageService = ResourceUsageService_1 =
|
|
306727
|
-
(0,
|
|
306728
|
-
|
|
306729
|
-
|
|
306730
|
-
|
|
306731
|
-
|
|
306732
|
-
|
|
306978
|
+
ResourceUsageService = ResourceUsageService_1 = __decorate187([
|
|
306979
|
+
(0, import_common145.Injectable)(),
|
|
306980
|
+
__param80(0, (0, import_typeorm161.InjectRepository)(ResourceReport)),
|
|
306981
|
+
__param80(2, (0, import_common145.Optional)()),
|
|
306982
|
+
__param80(3, (0, import_common145.Optional)()),
|
|
306983
|
+
__param80(4, (0, import_common145.Optional)()),
|
|
306984
|
+
__metadata143("design:paramtypes", [
|
|
306733
306985
|
Repository,
|
|
306734
306986
|
import_config9.ConfigService,
|
|
306735
306987
|
ResourceCollector,
|
|
@@ -306739,17 +306991,17 @@ ResourceUsageService = ResourceUsageService_1 = __decorate185([
|
|
|
306739
306991
|
], ResourceUsageService);
|
|
306740
306992
|
|
|
306741
306993
|
// dist/.server-tsc/resource-usage/resource-usage.controller.js
|
|
306742
|
-
var
|
|
306743
|
-
var
|
|
306994
|
+
var import_common146 = __toESM(require_common(), 1);
|
|
306995
|
+
var __decorate188 = function(decorators, target, key, desc) {
|
|
306744
306996
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
306745
306997
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
306746
306998
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
306747
306999
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
306748
307000
|
};
|
|
306749
|
-
var
|
|
307001
|
+
var __metadata144 = function(k2, v) {
|
|
306750
307002
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
306751
307003
|
};
|
|
306752
|
-
var
|
|
307004
|
+
var __param81 = function(paramIndex, decorator) {
|
|
306753
307005
|
return function(target, key) {
|
|
306754
307006
|
decorator(target, key, paramIndex);
|
|
306755
307007
|
};
|
|
@@ -306781,61 +307033,61 @@ var ResourceUsageController = class ResourceUsageController2 {
|
|
|
306781
307033
|
return this.service.getSamples();
|
|
306782
307034
|
}
|
|
306783
307035
|
};
|
|
306784
|
-
|
|
306785
|
-
(0,
|
|
306786
|
-
|
|
306787
|
-
|
|
306788
|
-
|
|
307036
|
+
__decorate188([
|
|
307037
|
+
(0, import_common146.Get)("latest"),
|
|
307038
|
+
__metadata144("design:type", Function),
|
|
307039
|
+
__metadata144("design:paramtypes", []),
|
|
307040
|
+
__metadata144("design:returntype", void 0)
|
|
306789
307041
|
], ResourceUsageController.prototype, "latest", null);
|
|
306790
|
-
|
|
306791
|
-
(0,
|
|
306792
|
-
|
|
306793
|
-
|
|
306794
|
-
|
|
306795
|
-
|
|
307042
|
+
__decorate188([
|
|
307043
|
+
(0, import_common146.Get)("history"),
|
|
307044
|
+
__param81(0, (0, import_common146.Query)("hours")),
|
|
307045
|
+
__metadata144("design:type", Function),
|
|
307046
|
+
__metadata144("design:paramtypes", [String]),
|
|
307047
|
+
__metadata144("design:returntype", void 0)
|
|
306796
307048
|
], ResourceUsageController.prototype, "history", null);
|
|
306797
|
-
|
|
306798
|
-
(0,
|
|
306799
|
-
|
|
306800
|
-
|
|
306801
|
-
|
|
307049
|
+
__decorate188([
|
|
307050
|
+
(0, import_common146.Post)("collect-now"),
|
|
307051
|
+
__metadata144("design:type", Function),
|
|
307052
|
+
__metadata144("design:paramtypes", []),
|
|
307053
|
+
__metadata144("design:returntype", Promise)
|
|
306802
307054
|
], ResourceUsageController.prototype, "collectNow", null);
|
|
306803
|
-
|
|
306804
|
-
(0,
|
|
306805
|
-
|
|
306806
|
-
|
|
306807
|
-
|
|
307055
|
+
__decorate188([
|
|
307056
|
+
(0, import_common146.Get)("pending"),
|
|
307057
|
+
__metadata144("design:type", Function),
|
|
307058
|
+
__metadata144("design:paramtypes", []),
|
|
307059
|
+
__metadata144("design:returntype", void 0)
|
|
306808
307060
|
], ResourceUsageController.prototype, "pending", null);
|
|
306809
|
-
|
|
306810
|
-
(0,
|
|
306811
|
-
|
|
306812
|
-
|
|
306813
|
-
|
|
307061
|
+
__decorate188([
|
|
307062
|
+
(0, import_common146.Get)("live"),
|
|
307063
|
+
__metadata144("design:type", Function),
|
|
307064
|
+
__metadata144("design:paramtypes", []),
|
|
307065
|
+
__metadata144("design:returntype", void 0)
|
|
306814
307066
|
], ResourceUsageController.prototype, "live", null);
|
|
306815
|
-
|
|
306816
|
-
(0,
|
|
306817
|
-
|
|
306818
|
-
|
|
306819
|
-
|
|
307067
|
+
__decorate188([
|
|
307068
|
+
(0, import_common146.Get)("samples"),
|
|
307069
|
+
__metadata144("design:type", Function),
|
|
307070
|
+
__metadata144("design:paramtypes", []),
|
|
307071
|
+
__metadata144("design:returntype", void 0)
|
|
306820
307072
|
], ResourceUsageController.prototype, "samples", null);
|
|
306821
|
-
ResourceUsageController =
|
|
306822
|
-
(0,
|
|
306823
|
-
|
|
307073
|
+
ResourceUsageController = __decorate188([
|
|
307074
|
+
(0, import_common146.Controller)("resource-usage"),
|
|
307075
|
+
__metadata144("design:paramtypes", [ResourceUsageService])
|
|
306824
307076
|
], ResourceUsageController);
|
|
306825
307077
|
|
|
306826
307078
|
// dist/.server-tsc/resource-usage/resource-retention.service.js
|
|
306827
|
-
var
|
|
307079
|
+
var import_common147 = __toESM(require_common(), 1);
|
|
306828
307080
|
var import_typeorm163 = __toESM(require_typeorm2(), 1);
|
|
306829
|
-
var
|
|
307081
|
+
var __decorate189 = function(decorators, target, key, desc) {
|
|
306830
307082
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
306831
307083
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
306832
307084
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
306833
307085
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
306834
307086
|
};
|
|
306835
|
-
var
|
|
307087
|
+
var __metadata145 = function(k2, v) {
|
|
306836
307088
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
306837
307089
|
};
|
|
306838
|
-
var
|
|
307090
|
+
var __param82 = function(paramIndex, decorator) {
|
|
306839
307091
|
return function(target, key) {
|
|
306840
307092
|
decorator(target, key, paramIndex);
|
|
306841
307093
|
};
|
|
@@ -306843,7 +307095,7 @@ var __param81 = function(paramIndex, decorator) {
|
|
|
306843
307095
|
var ResourceRetentionService_1;
|
|
306844
307096
|
var ResourceRetentionService = ResourceRetentionService_1 = class ResourceRetentionService2 {
|
|
306845
307097
|
repo;
|
|
306846
|
-
logger = new
|
|
307098
|
+
logger = new import_common147.Logger(ResourceRetentionService_1.name);
|
|
306847
307099
|
timer = null;
|
|
306848
307100
|
constructor(repo) {
|
|
306849
307101
|
this.repo = repo;
|
|
@@ -306882,14 +307134,14 @@ var ResourceRetentionService = ResourceRetentionService_1 = class ResourceRetent
|
|
|
306882
307134
|
return { days, cutoff: cutoff.toISOString(), deleted };
|
|
306883
307135
|
}
|
|
306884
307136
|
};
|
|
306885
|
-
ResourceRetentionService = ResourceRetentionService_1 =
|
|
306886
|
-
(0,
|
|
306887
|
-
|
|
306888
|
-
|
|
307137
|
+
ResourceRetentionService = ResourceRetentionService_1 = __decorate189([
|
|
307138
|
+
(0, import_common147.Injectable)(),
|
|
307139
|
+
__param82(0, (0, import_typeorm163.InjectRepository)(ResourceReport)),
|
|
307140
|
+
__metadata145("design:paramtypes", [Repository])
|
|
306889
307141
|
], ResourceRetentionService);
|
|
306890
307142
|
|
|
306891
307143
|
// dist/.server-tsc/resource-usage/resource-usage.module.js
|
|
306892
|
-
var
|
|
307144
|
+
var __decorate190 = function(decorators, target, key, desc) {
|
|
306893
307145
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
306894
307146
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
306895
307147
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -306897,8 +307149,8 @@ var __decorate188 = function(decorators, target, key, desc) {
|
|
|
306897
307149
|
};
|
|
306898
307150
|
var ResourceUsageModule = class ResourceUsageModule2 {
|
|
306899
307151
|
};
|
|
306900
|
-
ResourceUsageModule =
|
|
306901
|
-
(0,
|
|
307152
|
+
ResourceUsageModule = __decorate190([
|
|
307153
|
+
(0, import_common148.Module)({
|
|
306902
307154
|
imports: [import_typeorm165.TypeOrmModule.forFeature([ResourceReport]), AuthModule],
|
|
306903
307155
|
controllers: [ResourceUsageController],
|
|
306904
307156
|
providers: [ResourceUsageService, ResourceRetentionService],
|
|
@@ -306907,11 +307159,11 @@ ResourceUsageModule = __decorate188([
|
|
|
306907
307159
|
], ResourceUsageModule);
|
|
306908
307160
|
|
|
306909
307161
|
// dist/.server-tsc/recommendation/recommendation.module.js
|
|
306910
|
-
var
|
|
307162
|
+
var import_common151 = __toESM(require_common(), 1);
|
|
306911
307163
|
var import_typeorm168 = __toESM(require_typeorm2(), 1);
|
|
306912
307164
|
|
|
306913
307165
|
// dist/.server-tsc/recommendation/recommendation.service.js
|
|
306914
|
-
var
|
|
307166
|
+
var import_common149 = __toESM(require_common(), 1);
|
|
306915
307167
|
var import_typeorm166 = __toESM(require_typeorm2(), 1);
|
|
306916
307168
|
|
|
306917
307169
|
// dist/.server-tsc/recommendation/stage-forms.js
|
|
@@ -307092,16 +307344,16 @@ ${WRITEBACK_FOOTER}`;
|
|
|
307092
307344
|
}
|
|
307093
307345
|
|
|
307094
307346
|
// dist/.server-tsc/recommendation/recommendation.service.js
|
|
307095
|
-
var
|
|
307347
|
+
var __decorate191 = function(decorators, target, key, desc) {
|
|
307096
307348
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
307097
307349
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
307098
307350
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
307099
307351
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
307100
307352
|
};
|
|
307101
|
-
var
|
|
307353
|
+
var __metadata146 = function(k2, v) {
|
|
307102
307354
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
307103
307355
|
};
|
|
307104
|
-
var
|
|
307356
|
+
var __param83 = function(paramIndex, decorator) {
|
|
307105
307357
|
return function(target, key) {
|
|
307106
307358
|
decorator(target, key, paramIndex);
|
|
307107
307359
|
};
|
|
@@ -307110,7 +307362,7 @@ var RecommendationService_1;
|
|
|
307110
307362
|
var STAGE_KEYS = RECOMMENDATION_STAGES.map((s) => s.key);
|
|
307111
307363
|
function assertStage(stage) {
|
|
307112
307364
|
if (!STAGE_KEYS.includes(stage)) {
|
|
307113
|
-
throw new
|
|
307365
|
+
throw new import_common149.BadRequestException(`Invalid stage: ${stage}; \u5408\u6CD5\u503C\u89C1 GET /recommendations/meta`);
|
|
307114
307366
|
}
|
|
307115
307367
|
return stage;
|
|
307116
307368
|
}
|
|
@@ -307122,7 +307374,7 @@ var RecommendationService = RecommendationService_1 = class RecommendationServic
|
|
|
307122
307374
|
talentRepo;
|
|
307123
307375
|
remarkRepo;
|
|
307124
307376
|
feedbackRepo;
|
|
307125
|
-
logger = new
|
|
307377
|
+
logger = new import_common149.Logger(RecommendationService_1.name);
|
|
307126
307378
|
constructor(recRepo, jobRepo, matchRepo, portraitRepo, talentRepo, remarkRepo, feedbackRepo) {
|
|
307127
307379
|
this.recRepo = recRepo;
|
|
307128
307380
|
this.jobRepo = jobRepo;
|
|
@@ -307142,7 +307394,7 @@ var RecommendationService = RecommendationService_1 = class RecommendationServic
|
|
|
307142
307394
|
async listByJob(jobCaseId, stage) {
|
|
307143
307395
|
const job = await this.jobRepo.findOne({ where: { id: jobCaseId } });
|
|
307144
307396
|
if (!job)
|
|
307145
|
-
throw new
|
|
307397
|
+
throw new import_common149.NotFoundException(`JobCase ${jobCaseId} not found`);
|
|
307146
307398
|
const filter2 = stage ? assertStage(stage) : void 0;
|
|
307147
307399
|
const all3 = await this.recRepo.find({
|
|
307148
307400
|
where: { jobCaseId },
|
|
@@ -307197,14 +307449,14 @@ var RecommendationService = RecommendationService_1 = class RecommendationServic
|
|
|
307197
307449
|
}
|
|
307198
307450
|
async create(dto, by = "web", actorType = "unknown") {
|
|
307199
307451
|
if (!dto.jobCaseId)
|
|
307200
|
-
throw new
|
|
307452
|
+
throw new import_common149.BadRequestException("jobCaseId required");
|
|
307201
307453
|
if (!dto.portraitId && !dto.entityId) {
|
|
307202
|
-
throw new
|
|
307454
|
+
throw new import_common149.BadRequestException("portraitId or entityId required");
|
|
307203
307455
|
}
|
|
307204
307456
|
const stage = assertStage(dto.stage ?? "pending_invite");
|
|
307205
307457
|
const job = await this.jobRepo.findOne({ where: { id: dto.jobCaseId } });
|
|
307206
307458
|
if (!job)
|
|
307207
|
-
throw new
|
|
307459
|
+
throw new import_common149.NotFoundException(`JobCase ${dto.jobCaseId} not found`);
|
|
307208
307460
|
const identityWhere = dto.portraitId ? { jobCaseId: dto.jobCaseId, portraitId: dto.portraitId } : { jobCaseId: dto.jobCaseId, entityId: dto.entityId };
|
|
307209
307461
|
const existing = await this.recRepo.findOne({ where: identityWhere });
|
|
307210
307462
|
if (existing) {
|
|
@@ -307241,7 +307493,7 @@ var RecommendationService = RecommendationService_1 = class RecommendationServic
|
|
|
307241
307493
|
async update(id, dto, by = "web", actorType = "unknown") {
|
|
307242
307494
|
const row = await this.recRepo.findOne({ where: { id } });
|
|
307243
307495
|
if (!row)
|
|
307244
|
-
throw new
|
|
307496
|
+
throw new import_common149.NotFoundException(`Recommendation ${id} not found`);
|
|
307245
307497
|
if (dto.stage)
|
|
307246
307498
|
this.applyMove(row, assertStage(dto.stage), by, dto.note, actorType);
|
|
307247
307499
|
if (dto.formData) {
|
|
@@ -307277,12 +307529,12 @@ var RecommendationService = RecommendationService_1 = class RecommendationServic
|
|
|
307277
307529
|
async batchMove(ids, stage, jobCaseId, by = "web", actorType = "unknown", formData) {
|
|
307278
307530
|
const target = assertStage(stage);
|
|
307279
307531
|
if (!ids.length)
|
|
307280
|
-
throw new
|
|
307532
|
+
throw new import_common149.BadRequestException("ids required");
|
|
307281
307533
|
const rows = await this.recRepo.find({ where: { id: In(ids) } });
|
|
307282
307534
|
if (jobCaseId) {
|
|
307283
307535
|
const job = await this.jobRepo.findOne({ where: { id: jobCaseId } });
|
|
307284
307536
|
if (!job)
|
|
307285
|
-
throw new
|
|
307537
|
+
throw new import_common149.NotFoundException(`JobCase ${jobCaseId} not found`);
|
|
307286
307538
|
}
|
|
307287
307539
|
const out = [];
|
|
307288
307540
|
for (const row of rows) {
|
|
@@ -307316,7 +307568,7 @@ var RecommendationService = RecommendationService_1 = class RecommendationServic
|
|
|
307316
307568
|
async adopt(matchId, by = "web", actorType = "unknown") {
|
|
307317
307569
|
const match = await this.matchRepo.findOne({ where: { id: matchId } });
|
|
307318
307570
|
if (!match)
|
|
307319
|
-
throw new
|
|
307571
|
+
throw new import_common149.NotFoundException(`Match ${matchId} not found`);
|
|
307320
307572
|
const row = await this.create({
|
|
307321
307573
|
jobCaseId: match.jobCaseId,
|
|
307322
307574
|
portraitId: match.portraitId,
|
|
@@ -307331,14 +307583,14 @@ var RecommendationService = RecommendationService_1 = class RecommendationServic
|
|
|
307331
307583
|
async remove(id) {
|
|
307332
307584
|
const row = await this.recRepo.findOne({ where: { id } });
|
|
307333
307585
|
if (!row)
|
|
307334
|
-
throw new
|
|
307586
|
+
throw new import_common149.NotFoundException(`Recommendation ${id} not found`);
|
|
307335
307587
|
await this.recRepo.delete({ id });
|
|
307336
307588
|
return { id, removed: true };
|
|
307337
307589
|
}
|
|
307338
307590
|
async buildRecommendPrompt(jobCaseId) {
|
|
307339
307591
|
const job = await this.jobRepo.findOne({ where: { id: jobCaseId } });
|
|
307340
307592
|
if (!job)
|
|
307341
|
-
throw new
|
|
307593
|
+
throw new import_common149.NotFoundException(`JobCase ${jobCaseId} not found`);
|
|
307342
307594
|
const remarks = await this.loadCustomerRemarks(job.customerId);
|
|
307343
307595
|
const existing = await this.recRepo.find({ where: { jobCaseId } });
|
|
307344
307596
|
const data = {
|
|
@@ -307355,7 +307607,7 @@ var RecommendationService = RecommendationService_1 = class RecommendationServic
|
|
|
307355
307607
|
async buildMatchPrompt(jobCaseId) {
|
|
307356
307608
|
const job = await this.jobRepo.findOne({ where: { id: jobCaseId } });
|
|
307357
307609
|
if (!job)
|
|
307358
|
-
throw new
|
|
307610
|
+
throw new import_common149.NotFoundException(`JobCase ${jobCaseId} not found`);
|
|
307359
307611
|
const remarks = await this.loadCustomerRemarks(job.customerId);
|
|
307360
307612
|
const matches = await this.matchRepo.find({ where: { jobCaseId } });
|
|
307361
307613
|
const portraitIds = Array.from(new Set(matches.map((m) => m.portraitId)));
|
|
@@ -307375,10 +307627,10 @@ var RecommendationService = RecommendationService_1 = class RecommendationServic
|
|
|
307375
307627
|
}
|
|
307376
307628
|
async buildInvitePrompt(ids) {
|
|
307377
307629
|
if (!ids.length)
|
|
307378
|
-
throw new
|
|
307630
|
+
throw new import_common149.BadRequestException("ids required");
|
|
307379
307631
|
const rows = await this.recRepo.find({ where: { id: In(ids) } });
|
|
307380
307632
|
if (!rows.length)
|
|
307381
|
-
throw new
|
|
307633
|
+
throw new import_common149.NotFoundException("No recommendations found for ids");
|
|
307382
307634
|
const portraitIds = Array.from(new Set(rows.map((r) => r.portraitId).filter(Boolean)));
|
|
307383
307635
|
const portraits = portraitIds.length ? await this.portraitRepo.find({ where: { id: In(portraitIds) } }) : [];
|
|
307384
307636
|
const contactOf = new Map(portraits.map((p) => [p.id, p.contact]));
|
|
@@ -307407,10 +307659,10 @@ var RecommendationService = RecommendationService_1 = class RecommendationServic
|
|
|
307407
307659
|
}
|
|
307408
307660
|
async buildReplyCheckPrompt(ids) {
|
|
307409
307661
|
if (!ids.length)
|
|
307410
|
-
throw new
|
|
307662
|
+
throw new import_common149.BadRequestException("ids required");
|
|
307411
307663
|
const rows = await this.recRepo.find({ where: { id: In(ids) } });
|
|
307412
307664
|
if (!rows.length)
|
|
307413
|
-
throw new
|
|
307665
|
+
throw new import_common149.NotFoundException("No recommendations found for ids");
|
|
307414
307666
|
const talentsText = rows.map((r) => {
|
|
307415
307667
|
const inv = r.invitation ?? {};
|
|
307416
307668
|
return [
|
|
@@ -307516,16 +307768,16 @@ var RecommendationService = RecommendationService_1 = class RecommendationServic
|
|
|
307516
307768
|
return remarks.map((r) => `- [${r.createdAt}] ${r.content}`).join("\n");
|
|
307517
307769
|
}
|
|
307518
307770
|
};
|
|
307519
|
-
RecommendationService = RecommendationService_1 =
|
|
307520
|
-
(0,
|
|
307521
|
-
|
|
307522
|
-
|
|
307523
|
-
|
|
307524
|
-
|
|
307525
|
-
|
|
307526
|
-
|
|
307527
|
-
|
|
307528
|
-
|
|
307771
|
+
RecommendationService = RecommendationService_1 = __decorate191([
|
|
307772
|
+
(0, import_common149.Injectable)(),
|
|
307773
|
+
__param83(0, (0, import_typeorm166.InjectRepository)(JobRecommendation)),
|
|
307774
|
+
__param83(1, (0, import_typeorm166.InjectRepository)(JobCase)),
|
|
307775
|
+
__param83(2, (0, import_typeorm166.InjectRepository)(TalentJobMatch)),
|
|
307776
|
+
__param83(3, (0, import_typeorm166.InjectRepository)(TalentPortrait)),
|
|
307777
|
+
__param83(4, (0, import_typeorm166.InjectRepository)(TalentProfile)),
|
|
307778
|
+
__param83(5, (0, import_typeorm166.InjectRepository)(Remark)),
|
|
307779
|
+
__param83(6, (0, import_typeorm166.InjectRepository)(MatchFeedback)),
|
|
307780
|
+
__metadata146("design:paramtypes", [
|
|
307529
307781
|
Repository,
|
|
307530
307782
|
Repository,
|
|
307531
307783
|
Repository,
|
|
@@ -307537,17 +307789,17 @@ RecommendationService = RecommendationService_1 = __decorate189([
|
|
|
307537
307789
|
], RecommendationService);
|
|
307538
307790
|
|
|
307539
307791
|
// dist/.server-tsc/recommendation/recommendation.controller.js
|
|
307540
|
-
var
|
|
307541
|
-
var
|
|
307792
|
+
var import_common150 = __toESM(require_common(), 1);
|
|
307793
|
+
var __decorate192 = function(decorators, target, key, desc) {
|
|
307542
307794
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
307543
307795
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
307544
307796
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
307545
307797
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
307546
307798
|
};
|
|
307547
|
-
var
|
|
307799
|
+
var __metadata147 = function(k2, v) {
|
|
307548
307800
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
307549
307801
|
};
|
|
307550
|
-
var
|
|
307802
|
+
var __param84 = function(paramIndex, decorator) {
|
|
307551
307803
|
return function(target, key) {
|
|
307552
307804
|
decorator(target, key, paramIndex);
|
|
307553
307805
|
};
|
|
@@ -307601,109 +307853,109 @@ var RecommendationController = class RecommendationController2 {
|
|
|
307601
307853
|
return this.service.buildReplyCheckPrompt(body.ids ?? []);
|
|
307602
307854
|
}
|
|
307603
307855
|
};
|
|
307604
|
-
|
|
307605
|
-
(0,
|
|
307606
|
-
|
|
307607
|
-
|
|
307608
|
-
|
|
307856
|
+
__decorate192([
|
|
307857
|
+
(0, import_common150.Get)("recommendations/meta"),
|
|
307858
|
+
__metadata147("design:type", Function),
|
|
307859
|
+
__metadata147("design:paramtypes", []),
|
|
307860
|
+
__metadata147("design:returntype", void 0)
|
|
307609
307861
|
], RecommendationController.prototype, "meta", null);
|
|
307610
|
-
|
|
307611
|
-
(0,
|
|
307612
|
-
|
|
307613
|
-
|
|
307614
|
-
|
|
307615
|
-
|
|
307616
|
-
|
|
307862
|
+
__decorate192([
|
|
307863
|
+
(0, import_common150.Get)("job-cases/:id/recommendations"),
|
|
307864
|
+
__param84(0, (0, import_common150.Param)("id")),
|
|
307865
|
+
__param84(1, (0, import_common150.Query)("stage")),
|
|
307866
|
+
__metadata147("design:type", Function),
|
|
307867
|
+
__metadata147("design:paramtypes", [String, String]),
|
|
307868
|
+
__metadata147("design:returntype", void 0)
|
|
307617
307869
|
], RecommendationController.prototype, "listByJob", null);
|
|
307618
|
-
|
|
307619
|
-
(0,
|
|
307620
|
-
|
|
307621
|
-
|
|
307622
|
-
|
|
307623
|
-
|
|
307870
|
+
__decorate192([
|
|
307871
|
+
(0, import_common150.Get)("recommendations/by-portrait/:portraitId"),
|
|
307872
|
+
__param84(0, (0, import_common150.Param)("portraitId")),
|
|
307873
|
+
__metadata147("design:type", Function),
|
|
307874
|
+
__metadata147("design:paramtypes", [String]),
|
|
307875
|
+
__metadata147("design:returntype", void 0)
|
|
307624
307876
|
], RecommendationController.prototype, "listByPortrait", null);
|
|
307625
|
-
|
|
307626
|
-
(0,
|
|
307627
|
-
|
|
307628
|
-
|
|
307629
|
-
|
|
307630
|
-
|
|
307877
|
+
__decorate192([
|
|
307878
|
+
(0, import_common150.Get)("recommendations/summary"),
|
|
307879
|
+
__param84(0, (0, import_common150.Query)("ids")),
|
|
307880
|
+
__metadata147("design:type", Function),
|
|
307881
|
+
__metadata147("design:paramtypes", [String]),
|
|
307882
|
+
__metadata147("design:returntype", void 0)
|
|
307631
307883
|
], RecommendationController.prototype, "recoSummary", null);
|
|
307632
|
-
|
|
307633
|
-
(0,
|
|
307634
|
-
|
|
307635
|
-
|
|
307636
|
-
|
|
307637
|
-
|
|
307638
|
-
|
|
307884
|
+
__decorate192([
|
|
307885
|
+
(0, import_common150.Post)("recommendations"),
|
|
307886
|
+
__param84(0, (0, import_common150.Body)()),
|
|
307887
|
+
__param84(1, (0, import_common150.Request)()),
|
|
307888
|
+
__metadata147("design:type", Function),
|
|
307889
|
+
__metadata147("design:paramtypes", [Object, Object]),
|
|
307890
|
+
__metadata147("design:returntype", void 0)
|
|
307639
307891
|
], RecommendationController.prototype, "create", null);
|
|
307640
|
-
|
|
307641
|
-
(0,
|
|
307642
|
-
|
|
307643
|
-
|
|
307644
|
-
|
|
307645
|
-
|
|
307646
|
-
|
|
307647
|
-
|
|
307892
|
+
__decorate192([
|
|
307893
|
+
(0, import_common150.Patch)("recommendations/:id"),
|
|
307894
|
+
__param84(0, (0, import_common150.Param)("id")),
|
|
307895
|
+
__param84(1, (0, import_common150.Body)()),
|
|
307896
|
+
__param84(2, (0, import_common150.Request)()),
|
|
307897
|
+
__metadata147("design:type", Function),
|
|
307898
|
+
__metadata147("design:paramtypes", [String, Object, Object]),
|
|
307899
|
+
__metadata147("design:returntype", void 0)
|
|
307648
307900
|
], RecommendationController.prototype, "update", null);
|
|
307649
|
-
|
|
307650
|
-
(0,
|
|
307651
|
-
|
|
307652
|
-
|
|
307653
|
-
|
|
307654
|
-
|
|
307655
|
-
|
|
307901
|
+
__decorate192([
|
|
307902
|
+
(0, import_common150.Post)("recommendations/batch-move"),
|
|
307903
|
+
__param84(0, (0, import_common150.Body)()),
|
|
307904
|
+
__param84(1, (0, import_common150.Request)()),
|
|
307905
|
+
__metadata147("design:type", Function),
|
|
307906
|
+
__metadata147("design:paramtypes", [Object, Object]),
|
|
307907
|
+
__metadata147("design:returntype", void 0)
|
|
307656
307908
|
], RecommendationController.prototype, "batchMove", null);
|
|
307657
|
-
|
|
307658
|
-
(0,
|
|
307659
|
-
|
|
307660
|
-
|
|
307661
|
-
|
|
307662
|
-
|
|
307663
|
-
|
|
307909
|
+
__decorate192([
|
|
307910
|
+
(0, import_common150.Post)("recommendations/adopt"),
|
|
307911
|
+
__param84(0, (0, import_common150.Body)()),
|
|
307912
|
+
__param84(1, (0, import_common150.Request)()),
|
|
307913
|
+
__metadata147("design:type", Function),
|
|
307914
|
+
__metadata147("design:paramtypes", [Object, Object]),
|
|
307915
|
+
__metadata147("design:returntype", void 0)
|
|
307664
307916
|
], RecommendationController.prototype, "adopt", null);
|
|
307665
|
-
|
|
307666
|
-
(0,
|
|
307667
|
-
|
|
307668
|
-
|
|
307669
|
-
|
|
307670
|
-
|
|
307917
|
+
__decorate192([
|
|
307918
|
+
(0, import_common150.Delete)("recommendations/:id"),
|
|
307919
|
+
__param84(0, (0, import_common150.Param)("id")),
|
|
307920
|
+
__metadata147("design:type", Function),
|
|
307921
|
+
__metadata147("design:paramtypes", [String]),
|
|
307922
|
+
__metadata147("design:returntype", void 0)
|
|
307671
307923
|
], RecommendationController.prototype, "remove", null);
|
|
307672
|
-
|
|
307673
|
-
(0,
|
|
307674
|
-
|
|
307675
|
-
|
|
307676
|
-
|
|
307677
|
-
|
|
307924
|
+
__decorate192([
|
|
307925
|
+
(0, import_common150.Get)("job-cases/:id/recommend-prompt"),
|
|
307926
|
+
__param84(0, (0, import_common150.Param)("id")),
|
|
307927
|
+
__metadata147("design:type", Function),
|
|
307928
|
+
__metadata147("design:paramtypes", [String]),
|
|
307929
|
+
__metadata147("design:returntype", void 0)
|
|
307678
307930
|
], RecommendationController.prototype, "recommendPrompt", null);
|
|
307679
|
-
|
|
307680
|
-
(0,
|
|
307681
|
-
|
|
307682
|
-
|
|
307683
|
-
|
|
307684
|
-
|
|
307931
|
+
__decorate192([
|
|
307932
|
+
(0, import_common150.Get)("job-cases/:id/match-prompt"),
|
|
307933
|
+
__param84(0, (0, import_common150.Param)("id")),
|
|
307934
|
+
__metadata147("design:type", Function),
|
|
307935
|
+
__metadata147("design:paramtypes", [String]),
|
|
307936
|
+
__metadata147("design:returntype", void 0)
|
|
307685
307937
|
], RecommendationController.prototype, "matchPrompt", null);
|
|
307686
|
-
|
|
307687
|
-
(0,
|
|
307688
|
-
|
|
307689
|
-
|
|
307690
|
-
|
|
307691
|
-
|
|
307938
|
+
__decorate192([
|
|
307939
|
+
(0, import_common150.Post)("recommendations/invite-prompt"),
|
|
307940
|
+
__param84(0, (0, import_common150.Body)()),
|
|
307941
|
+
__metadata147("design:type", Function),
|
|
307942
|
+
__metadata147("design:paramtypes", [Object]),
|
|
307943
|
+
__metadata147("design:returntype", void 0)
|
|
307692
307944
|
], RecommendationController.prototype, "invitePrompt", null);
|
|
307693
|
-
|
|
307694
|
-
(0,
|
|
307695
|
-
|
|
307696
|
-
|
|
307697
|
-
|
|
307698
|
-
|
|
307945
|
+
__decorate192([
|
|
307946
|
+
(0, import_common150.Post)("recommendations/reply-check-prompt"),
|
|
307947
|
+
__param84(0, (0, import_common150.Body)()),
|
|
307948
|
+
__metadata147("design:type", Function),
|
|
307949
|
+
__metadata147("design:paramtypes", [Object]),
|
|
307950
|
+
__metadata147("design:returntype", void 0)
|
|
307699
307951
|
], RecommendationController.prototype, "replyCheckPrompt", null);
|
|
307700
|
-
RecommendationController =
|
|
307701
|
-
(0,
|
|
307702
|
-
|
|
307952
|
+
RecommendationController = __decorate192([
|
|
307953
|
+
(0, import_common150.Controller)(),
|
|
307954
|
+
__metadata147("design:paramtypes", [RecommendationService])
|
|
307703
307955
|
], RecommendationController);
|
|
307704
307956
|
|
|
307705
307957
|
// dist/.server-tsc/recommendation/recommendation.module.js
|
|
307706
|
-
var
|
|
307958
|
+
var __decorate193 = function(decorators, target, key, desc) {
|
|
307707
307959
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
307708
307960
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
307709
307961
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -307711,8 +307963,8 @@ var __decorate191 = function(decorators, target, key, desc) {
|
|
|
307711
307963
|
};
|
|
307712
307964
|
var RecommendationModule = class RecommendationModule2 {
|
|
307713
307965
|
};
|
|
307714
|
-
RecommendationModule =
|
|
307715
|
-
(0,
|
|
307966
|
+
RecommendationModule = __decorate193([
|
|
307967
|
+
(0, import_common151.Module)({
|
|
307716
307968
|
imports: [
|
|
307717
307969
|
import_typeorm168.TypeOrmModule.forFeature([
|
|
307718
307970
|
JobRecommendation,
|
|
@@ -307731,22 +307983,22 @@ RecommendationModule = __decorate191([
|
|
|
307731
307983
|
], RecommendationModule);
|
|
307732
307984
|
|
|
307733
307985
|
// dist/.server-tsc/market/market.module.js
|
|
307734
|
-
var
|
|
307986
|
+
var import_common154 = __toESM(require_common(), 1);
|
|
307735
307987
|
var import_typeorm171 = __toESM(require_typeorm2(), 1);
|
|
307736
307988
|
|
|
307737
307989
|
// dist/.server-tsc/market/market.service.js
|
|
307738
|
-
var
|
|
307990
|
+
var import_common152 = __toESM(require_common(), 1);
|
|
307739
307991
|
var import_typeorm169 = __toESM(require_typeorm2(), 1);
|
|
307740
|
-
var
|
|
307992
|
+
var __decorate194 = function(decorators, target, key, desc) {
|
|
307741
307993
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
307742
307994
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
307743
307995
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
307744
307996
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
307745
307997
|
};
|
|
307746
|
-
var
|
|
307998
|
+
var __metadata148 = function(k2, v) {
|
|
307747
307999
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
307748
308000
|
};
|
|
307749
|
-
var
|
|
308001
|
+
var __param85 = function(paramIndex, decorator) {
|
|
307750
308002
|
return function(target, key) {
|
|
307751
308003
|
decorator(target, key, paramIndex);
|
|
307752
308004
|
};
|
|
@@ -307942,13 +308194,13 @@ var MarketService = class MarketService2 {
|
|
|
307942
308194
|
};
|
|
307943
308195
|
}
|
|
307944
308196
|
};
|
|
307945
|
-
MarketService =
|
|
307946
|
-
(0,
|
|
307947
|
-
|
|
307948
|
-
|
|
307949
|
-
|
|
307950
|
-
|
|
307951
|
-
|
|
308197
|
+
MarketService = __decorate194([
|
|
308198
|
+
(0, import_common152.Injectable)(),
|
|
308199
|
+
__param85(0, (0, import_typeorm169.InjectRepository)(JobPosting)),
|
|
308200
|
+
__param85(1, (0, import_typeorm169.InjectRepository)(CompanyProfile)),
|
|
308201
|
+
__param85(2, (0, import_typeorm169.InjectRepository)(JobCasePosting)),
|
|
308202
|
+
__param85(3, (0, import_typeorm169.InjectRepository)(Customer)),
|
|
308203
|
+
__metadata148("design:paramtypes", [
|
|
307952
308204
|
Repository,
|
|
307953
308205
|
Repository,
|
|
307954
308206
|
Repository,
|
|
@@ -307957,17 +308209,17 @@ MarketService = __decorate192([
|
|
|
307957
308209
|
], MarketService);
|
|
307958
308210
|
|
|
307959
308211
|
// dist/.server-tsc/market/market.controller.js
|
|
307960
|
-
var
|
|
307961
|
-
var
|
|
308212
|
+
var import_common153 = __toESM(require_common(), 1);
|
|
308213
|
+
var __decorate195 = function(decorators, target, key, desc) {
|
|
307962
308214
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
307963
308215
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
307964
308216
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
307965
308217
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
307966
308218
|
};
|
|
307967
|
-
var
|
|
308219
|
+
var __metadata149 = function(k2, v) {
|
|
307968
308220
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
307969
308221
|
};
|
|
307970
|
-
var
|
|
308222
|
+
var __param86 = function(paramIndex, decorator) {
|
|
307971
308223
|
return function(target, key) {
|
|
307972
308224
|
decorator(target, key, paramIndex);
|
|
307973
308225
|
};
|
|
@@ -307998,41 +308250,41 @@ var MarketController = class MarketController2 {
|
|
|
307998
308250
|
return this.service.companyDetail(parseInt(id, 10));
|
|
307999
308251
|
}
|
|
308000
308252
|
};
|
|
308001
|
-
|
|
308002
|
-
(0,
|
|
308003
|
-
|
|
308004
|
-
|
|
308005
|
-
|
|
308006
|
-
|
|
308007
|
-
|
|
308008
|
-
|
|
308009
|
-
|
|
308010
|
-
|
|
308253
|
+
__decorate195([
|
|
308254
|
+
(0, import_common153.Get)("jobs"),
|
|
308255
|
+
__param86(0, (0, import_common153.Query)("q")),
|
|
308256
|
+
__param86(1, (0, import_common153.Query)("platforms")),
|
|
308257
|
+
__param86(2, (0, import_common153.Query)("touched")),
|
|
308258
|
+
__param86(3, (0, import_common153.Query)("limit")),
|
|
308259
|
+
__param86(4, (0, import_common153.Query)("offset")),
|
|
308260
|
+
__metadata149("design:type", Function),
|
|
308261
|
+
__metadata149("design:paramtypes", [String, String, String, String, String]),
|
|
308262
|
+
__metadata149("design:returntype", void 0)
|
|
308011
308263
|
], MarketController.prototype, "jobs", null);
|
|
308012
|
-
|
|
308013
|
-
(0,
|
|
308014
|
-
|
|
308015
|
-
|
|
308016
|
-
|
|
308017
|
-
|
|
308018
|
-
|
|
308019
|
-
|
|
308020
|
-
|
|
308264
|
+
__decorate195([
|
|
308265
|
+
(0, import_common153.Get)("companies"),
|
|
308266
|
+
__param86(0, (0, import_common153.Query)("q")),
|
|
308267
|
+
__param86(1, (0, import_common153.Query)("touched")),
|
|
308268
|
+
__param86(2, (0, import_common153.Query)("limit")),
|
|
308269
|
+
__param86(3, (0, import_common153.Query)("offset")),
|
|
308270
|
+
__metadata149("design:type", Function),
|
|
308271
|
+
__metadata149("design:paramtypes", [String, String, String, String]),
|
|
308272
|
+
__metadata149("design:returntype", void 0)
|
|
308021
308273
|
], MarketController.prototype, "companies", null);
|
|
308022
|
-
|
|
308023
|
-
(0,
|
|
308024
|
-
|
|
308025
|
-
|
|
308026
|
-
|
|
308027
|
-
|
|
308274
|
+
__decorate195([
|
|
308275
|
+
(0, import_common153.Get)("companies/:id"),
|
|
308276
|
+
__param86(0, (0, import_common153.Param)("id")),
|
|
308277
|
+
__metadata149("design:type", Function),
|
|
308278
|
+
__metadata149("design:paramtypes", [String]),
|
|
308279
|
+
__metadata149("design:returntype", void 0)
|
|
308028
308280
|
], MarketController.prototype, "companyDetail", null);
|
|
308029
|
-
MarketController =
|
|
308030
|
-
(0,
|
|
308031
|
-
|
|
308281
|
+
MarketController = __decorate195([
|
|
308282
|
+
(0, import_common153.Controller)("market"),
|
|
308283
|
+
__metadata149("design:paramtypes", [MarketService])
|
|
308032
308284
|
], MarketController);
|
|
308033
308285
|
|
|
308034
308286
|
// dist/.server-tsc/market/market.module.js
|
|
308035
|
-
var
|
|
308287
|
+
var __decorate196 = function(decorators, target, key, desc) {
|
|
308036
308288
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
308037
308289
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
308038
308290
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -308040,8 +308292,8 @@ var __decorate194 = function(decorators, target, key, desc) {
|
|
|
308040
308292
|
};
|
|
308041
308293
|
var MarketModule = class MarketModule2 {
|
|
308042
308294
|
};
|
|
308043
|
-
MarketModule =
|
|
308044
|
-
(0,
|
|
308295
|
+
MarketModule = __decorate196([
|
|
308296
|
+
(0, import_common154.Module)({
|
|
308045
308297
|
imports: [import_typeorm171.TypeOrmModule.forFeature([JobPosting, CompanyProfile, JobCasePosting, Customer])],
|
|
308046
308298
|
controllers: [MarketController],
|
|
308047
308299
|
providers: [MarketService]
|
|
@@ -308049,11 +308301,11 @@ MarketModule = __decorate194([
|
|
|
308049
308301
|
], MarketModule);
|
|
308050
308302
|
|
|
308051
308303
|
// dist/.server-tsc/talent-job-evaluation/talent-job-evaluation.module.js
|
|
308052
|
-
var
|
|
308304
|
+
var import_common157 = __toESM(require_common(), 1);
|
|
308053
308305
|
var import_typeorm174 = __toESM(require_typeorm2(), 1);
|
|
308054
308306
|
|
|
308055
308307
|
// dist/.server-tsc/talent-job-evaluation/talent-job-evaluation.service.js
|
|
308056
|
-
var
|
|
308308
|
+
var import_common155 = __toESM(require_common(), 1);
|
|
308057
308309
|
var import_typeorm172 = __toESM(require_typeorm2(), 1);
|
|
308058
308310
|
|
|
308059
308311
|
// dist/.server-tsc/talent-job-evaluation/talent-job-evaluation.prompts.js
|
|
@@ -308091,16 +308343,16 @@ ${d.existingEvaluations}
|
|
|
308091
308343
|
}
|
|
308092
308344
|
|
|
308093
308345
|
// dist/.server-tsc/talent-job-evaluation/talent-job-evaluation.service.js
|
|
308094
|
-
var
|
|
308346
|
+
var __decorate197 = function(decorators, target, key, desc) {
|
|
308095
308347
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
308096
308348
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
308097
308349
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
308098
308350
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
308099
308351
|
};
|
|
308100
|
-
var
|
|
308352
|
+
var __metadata150 = function(k2, v) {
|
|
308101
308353
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
308102
308354
|
};
|
|
308103
|
-
var
|
|
308355
|
+
var __param87 = function(paramIndex, decorator) {
|
|
308104
308356
|
return function(target, key) {
|
|
308105
308357
|
decorator(target, key, paramIndex);
|
|
308106
308358
|
};
|
|
@@ -308116,14 +308368,14 @@ var TalentJobEvaluationService = class TalentJobEvaluationService2 {
|
|
|
308116
308368
|
}
|
|
308117
308369
|
async create(dto, by = "web") {
|
|
308118
308370
|
if (!dto.portraitId || !dto.jobCaseId || !dto.content?.trim()) {
|
|
308119
|
-
throw new
|
|
308371
|
+
throw new import_common155.BadRequestException("portraitId / jobCaseId / content required");
|
|
308120
308372
|
}
|
|
308121
308373
|
const portrait = await this.portraitRepo.findOne({ where: { id: dto.portraitId } });
|
|
308122
308374
|
if (!portrait)
|
|
308123
|
-
throw new
|
|
308375
|
+
throw new import_common155.NotFoundException(`Portrait ${dto.portraitId} not found`);
|
|
308124
308376
|
const job = await this.jobRepo.findOne({ where: { id: dto.jobCaseId } });
|
|
308125
308377
|
if (!job)
|
|
308126
|
-
throw new
|
|
308378
|
+
throw new import_common155.NotFoundException(`JobCase ${dto.jobCaseId} not found`);
|
|
308127
308379
|
const row = this.repo.create({
|
|
308128
308380
|
portraitId: dto.portraitId,
|
|
308129
308381
|
jobCaseId: dto.jobCaseId,
|
|
@@ -308151,10 +308403,10 @@ var TalentJobEvaluationService = class TalentJobEvaluationService2 {
|
|
|
308151
308403
|
async buildEvaluatePrompt(portraitId, jobCaseId) {
|
|
308152
308404
|
const portrait = await this.portraitRepo.findOne({ where: { id: portraitId } });
|
|
308153
308405
|
if (!portrait)
|
|
308154
|
-
throw new
|
|
308406
|
+
throw new import_common155.NotFoundException(`Portrait ${portraitId} not found`);
|
|
308155
308407
|
const job = await this.jobRepo.findOne({ where: { id: jobCaseId } });
|
|
308156
308408
|
if (!job)
|
|
308157
|
-
throw new
|
|
308409
|
+
throw new import_common155.NotFoundException(`JobCase ${jobCaseId} not found`);
|
|
308158
308410
|
const existing = await this.listByPortrait(portraitId, jobCaseId);
|
|
308159
308411
|
const data = {
|
|
308160
308412
|
portraitId,
|
|
@@ -308173,12 +308425,12 @@ ${e.content.slice(0, 500)}`).join("\n") : "(\u8BE5\u4EBA\u624D\xD7\u8BE5\u804C\u
|
|
|
308173
308425
|
return { prompt: buildEvaluatePrompt(data) };
|
|
308174
308426
|
}
|
|
308175
308427
|
};
|
|
308176
|
-
TalentJobEvaluationService =
|
|
308177
|
-
(0,
|
|
308178
|
-
|
|
308179
|
-
|
|
308180
|
-
|
|
308181
|
-
|
|
308428
|
+
TalentJobEvaluationService = __decorate197([
|
|
308429
|
+
(0, import_common155.Injectable)(),
|
|
308430
|
+
__param87(0, (0, import_typeorm172.InjectRepository)(TalentJobEvaluation)),
|
|
308431
|
+
__param87(1, (0, import_typeorm172.InjectRepository)(TalentPortrait)),
|
|
308432
|
+
__param87(2, (0, import_typeorm172.InjectRepository)(JobCase)),
|
|
308433
|
+
__metadata150("design:paramtypes", [
|
|
308182
308434
|
Repository,
|
|
308183
308435
|
Repository,
|
|
308184
308436
|
Repository
|
|
@@ -308186,17 +308438,17 @@ TalentJobEvaluationService = __decorate195([
|
|
|
308186
308438
|
], TalentJobEvaluationService);
|
|
308187
308439
|
|
|
308188
308440
|
// dist/.server-tsc/talent-job-evaluation/talent-job-evaluation.controller.js
|
|
308189
|
-
var
|
|
308190
|
-
var
|
|
308441
|
+
var import_common156 = __toESM(require_common(), 1);
|
|
308442
|
+
var __decorate198 = function(decorators, target, key, desc) {
|
|
308191
308443
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
308192
308444
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
308193
308445
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
308194
308446
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
308195
308447
|
};
|
|
308196
|
-
var
|
|
308448
|
+
var __metadata151 = function(k2, v) {
|
|
308197
308449
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
308198
308450
|
};
|
|
308199
|
-
var
|
|
308451
|
+
var __param88 = function(paramIndex, decorator) {
|
|
308200
308452
|
return function(target, key) {
|
|
308201
308453
|
decorator(target, key, paramIndex);
|
|
308202
308454
|
};
|
|
@@ -308219,37 +308471,37 @@ var TalentJobEvaluationController = class TalentJobEvaluationController2 {
|
|
|
308219
308471
|
return this.service.buildEvaluatePrompt(portraitId, Number(jobCaseId));
|
|
308220
308472
|
}
|
|
308221
308473
|
};
|
|
308222
|
-
|
|
308223
|
-
(0,
|
|
308224
|
-
|
|
308225
|
-
|
|
308226
|
-
|
|
308227
|
-
|
|
308228
|
-
|
|
308474
|
+
__decorate198([
|
|
308475
|
+
(0, import_common156.Get)("talent-portraits/:id/evaluations"),
|
|
308476
|
+
__param88(0, (0, import_common156.Param)("id")),
|
|
308477
|
+
__param88(1, (0, import_common156.Query)("jobCaseId")),
|
|
308478
|
+
__metadata151("design:type", Function),
|
|
308479
|
+
__metadata151("design:paramtypes", [String, String]),
|
|
308480
|
+
__metadata151("design:returntype", void 0)
|
|
308229
308481
|
], TalentJobEvaluationController.prototype, "listByPortrait", null);
|
|
308230
|
-
|
|
308231
|
-
(0,
|
|
308232
|
-
|
|
308233
|
-
|
|
308234
|
-
|
|
308235
|
-
|
|
308236
|
-
|
|
308482
|
+
__decorate198([
|
|
308483
|
+
(0, import_common156.Post)("talent-job-evaluations"),
|
|
308484
|
+
__param88(0, (0, import_common156.Body)()),
|
|
308485
|
+
__param88(1, (0, import_common156.Request)()),
|
|
308486
|
+
__metadata151("design:type", Function),
|
|
308487
|
+
__metadata151("design:paramtypes", [Object, Object]),
|
|
308488
|
+
__metadata151("design:returntype", void 0)
|
|
308237
308489
|
], TalentJobEvaluationController.prototype, "create", null);
|
|
308238
|
-
|
|
308239
|
-
(0,
|
|
308240
|
-
|
|
308241
|
-
|
|
308242
|
-
|
|
308243
|
-
|
|
308244
|
-
|
|
308490
|
+
__decorate198([
|
|
308491
|
+
(0, import_common156.Get)("talent-job-evaluations/evaluate-prompt"),
|
|
308492
|
+
__param88(0, (0, import_common156.Query)("portraitId")),
|
|
308493
|
+
__param88(1, (0, import_common156.Query)("jobCaseId")),
|
|
308494
|
+
__metadata151("design:type", Function),
|
|
308495
|
+
__metadata151("design:paramtypes", [String, String]),
|
|
308496
|
+
__metadata151("design:returntype", void 0)
|
|
308245
308497
|
], TalentJobEvaluationController.prototype, "evaluatePrompt", null);
|
|
308246
|
-
TalentJobEvaluationController =
|
|
308247
|
-
(0,
|
|
308248
|
-
|
|
308498
|
+
TalentJobEvaluationController = __decorate198([
|
|
308499
|
+
(0, import_common156.Controller)(),
|
|
308500
|
+
__metadata151("design:paramtypes", [TalentJobEvaluationService])
|
|
308249
308501
|
], TalentJobEvaluationController);
|
|
308250
308502
|
|
|
308251
308503
|
// dist/.server-tsc/talent-job-evaluation/talent-job-evaluation.module.js
|
|
308252
|
-
var
|
|
308504
|
+
var __decorate199 = function(decorators, target, key, desc) {
|
|
308253
308505
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
308254
308506
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
308255
308507
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -308257,8 +308509,8 @@ var __decorate197 = function(decorators, target, key, desc) {
|
|
|
308257
308509
|
};
|
|
308258
308510
|
var TalentJobEvaluationModule = class TalentJobEvaluationModule2 {
|
|
308259
308511
|
};
|
|
308260
|
-
TalentJobEvaluationModule =
|
|
308261
|
-
(0,
|
|
308512
|
+
TalentJobEvaluationModule = __decorate199([
|
|
308513
|
+
(0, import_common157.Module)({
|
|
308262
308514
|
imports: [import_typeorm174.TypeOrmModule.forFeature([TalentJobEvaluation, TalentPortrait, JobCase])],
|
|
308263
308515
|
controllers: [TalentJobEvaluationController],
|
|
308264
308516
|
providers: [TalentJobEvaluationService],
|
|
@@ -308267,20 +308519,20 @@ TalentJobEvaluationModule = __decorate197([
|
|
|
308267
308519
|
], TalentJobEvaluationModule);
|
|
308268
308520
|
|
|
308269
308521
|
// dist/.server-tsc/perf/perf.module.js
|
|
308270
|
-
var
|
|
308522
|
+
var import_common160 = __toESM(require_common(), 1);
|
|
308271
308523
|
|
|
308272
308524
|
// dist/.server-tsc/perf/perf.service.js
|
|
308273
|
-
var
|
|
308525
|
+
var import_common158 = __toESM(require_common(), 1);
|
|
308274
308526
|
var import_config10 = __toESM(require_config2(), 1);
|
|
308275
308527
|
import { readFileSync as readFileSync8 } from "node:fs";
|
|
308276
308528
|
import * as path13 from "node:path";
|
|
308277
|
-
var
|
|
308529
|
+
var __decorate200 = function(decorators, target, key, desc) {
|
|
308278
308530
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
308279
308531
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
308280
308532
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
308281
308533
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
308282
308534
|
};
|
|
308283
|
-
var
|
|
308535
|
+
var __metadata152 = function(k2, v) {
|
|
308284
308536
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
308285
308537
|
};
|
|
308286
308538
|
var PerfReportService_1;
|
|
@@ -308294,7 +308546,7 @@ var DETAIL_VAL_MAX = 600;
|
|
|
308294
308546
|
var PerfReportService = PerfReportService_1 = class PerfReportService2 {
|
|
308295
308547
|
config;
|
|
308296
308548
|
auth;
|
|
308297
|
-
logger = new
|
|
308549
|
+
logger = new import_common158.Logger(PerfReportService_1.name);
|
|
308298
308550
|
buffer = [];
|
|
308299
308551
|
flushing = false;
|
|
308300
308552
|
timer = null;
|
|
@@ -308384,23 +308636,23 @@ var PerfReportService = PerfReportService_1 = class PerfReportService2 {
|
|
|
308384
308636
|
clearInterval(this.timer);
|
|
308385
308637
|
}
|
|
308386
308638
|
};
|
|
308387
|
-
PerfReportService = PerfReportService_1 =
|
|
308388
|
-
(0,
|
|
308389
|
-
|
|
308639
|
+
PerfReportService = PerfReportService_1 = __decorate200([
|
|
308640
|
+
(0, import_common158.Injectable)(),
|
|
308641
|
+
__metadata152("design:paramtypes", [
|
|
308390
308642
|
import_config10.ConfigService,
|
|
308391
308643
|
AuthService
|
|
308392
308644
|
])
|
|
308393
308645
|
], PerfReportService);
|
|
308394
308646
|
|
|
308395
308647
|
// dist/.server-tsc/perf/perf.middleware.js
|
|
308396
|
-
var
|
|
308397
|
-
var
|
|
308648
|
+
var import_common159 = __toESM(require_common(), 1);
|
|
308649
|
+
var __decorate201 = function(decorators, target, key, desc) {
|
|
308398
308650
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
308399
308651
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
308400
308652
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
308401
308653
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
308402
308654
|
};
|
|
308403
|
-
var
|
|
308655
|
+
var __metadata153 = function(k2, v) {
|
|
308404
308656
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
308405
308657
|
};
|
|
308406
308658
|
var SKIP_PREFIXES2 = ["/health", "/ws"];
|
|
@@ -308480,13 +308732,13 @@ var PerfMiddleware = class PerfMiddleware2 {
|
|
|
308480
308732
|
next();
|
|
308481
308733
|
}
|
|
308482
308734
|
};
|
|
308483
|
-
PerfMiddleware =
|
|
308484
|
-
(0,
|
|
308485
|
-
|
|
308735
|
+
PerfMiddleware = __decorate201([
|
|
308736
|
+
(0, import_common159.Injectable)(),
|
|
308737
|
+
__metadata153("design:paramtypes", [PerfReportService])
|
|
308486
308738
|
], PerfMiddleware);
|
|
308487
308739
|
|
|
308488
308740
|
// dist/.server-tsc/perf/perf.module.js
|
|
308489
|
-
var
|
|
308741
|
+
var __decorate202 = function(decorators, target, key, desc) {
|
|
308490
308742
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
308491
308743
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
308492
308744
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -308494,8 +308746,8 @@ var __decorate200 = function(decorators, target, key, desc) {
|
|
|
308494
308746
|
};
|
|
308495
308747
|
var PerfModule = class PerfModule2 {
|
|
308496
308748
|
};
|
|
308497
|
-
PerfModule =
|
|
308498
|
-
(0,
|
|
308749
|
+
PerfModule = __decorate202([
|
|
308750
|
+
(0, import_common160.Module)({
|
|
308499
308751
|
imports: [AuthModule],
|
|
308500
308752
|
providers: [PerfReportService, PerfMiddleware],
|
|
308501
308753
|
exports: [PerfReportService]
|
|
@@ -308503,93 +308755,95 @@ PerfModule = __decorate200([
|
|
|
308503
308755
|
], PerfModule);
|
|
308504
308756
|
|
|
308505
308757
|
// dist/.server-tsc/app.module.js
|
|
308506
|
-
var
|
|
308758
|
+
var __decorate203 = function(decorators, target, key, desc) {
|
|
308507
308759
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
308508
308760
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
308509
308761
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
308510
308762
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
308511
308763
|
};
|
|
308512
|
-
var
|
|
308764
|
+
var __metadata154 = function(k2, v) {
|
|
308513
308765
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k2, v);
|
|
308514
308766
|
};
|
|
308515
308767
|
var WEB_DIST2 = join16(__dirname, "..", "..", "web", "dist");
|
|
308516
308768
|
var AUTH_MIDDLEWARE_EXCLUDES = [
|
|
308517
|
-
{ path: "/", method:
|
|
308518
|
-
{ path: "entity", method:
|
|
308519
|
-
{ path: "talents", method:
|
|
308520
|
-
{ path: "jobs", method:
|
|
308521
|
-
{ path: "companies", method:
|
|
308522
|
-
{ path: "parselog", method:
|
|
308523
|
-
{ path: "recordings", method:
|
|
308524
|
-
{ path: "company/admin", method:
|
|
308525
|
-
{ path: "admin/data", method:
|
|
308526
|
-
{ path: "team/insights", method:
|
|
308527
|
-
{ path: "_next/(.*)", method:
|
|
308528
|
-
{ path: "(.*).txt", method:
|
|
308529
|
-
{ path: "health", method:
|
|
308530
|
-
{ path: "health/db", method:
|
|
308531
|
-
{ path: "auth/device-code", method:
|
|
308532
|
-
{ path: "auth/login", method:
|
|
308533
|
-
{ path: "auth/approve", method:
|
|
308534
|
-
{ path: "auth/token", method:
|
|
308535
|
-
{ path: "auth/email/send-code", method:
|
|
308536
|
-
{ path: "auth/email/verify", method:
|
|
308537
|
-
{ path: "auth/verify-info", method:
|
|
308538
|
-
{ path: "auth/verify", method:
|
|
308539
|
-
{ path: "auth/saas-token", method:
|
|
308540
|
-
{ path: "auth/session", method:
|
|
308541
|
-
{ path: "system/(.*)", method:
|
|
308542
|
-
{ path: "extension/version", method:
|
|
308543
|
-
{ path: "extensions", method:
|
|
308544
|
-
{ path: "extensions/(.*)", method:
|
|
308545
|
-
{ path: "sites", method:
|
|
308546
|
-
{ path: "sites/(.*)", method:
|
|
308547
|
-
{ path: "entities", method:
|
|
308548
|
-
{ path: "entities/(.*)", method:
|
|
308549
|
-
{ path: "parse-log", method:
|
|
308550
|
-
{ path: "parse-log/(.*)", method:
|
|
308551
|
-
{ path: "parse/(.*)", method:
|
|
308552
|
-
{ path: "extract/(.*)", method:
|
|
308553
|
-
{ path: "ingest", method:
|
|
308554
|
-
{ path: "ingest/(.*)", method:
|
|
308555
|
-
{ path: "adapters", method:
|
|
308556
|
-
{ path: "adapters/(.*)", method:
|
|
308557
|
-
{ path: "recordings", method:
|
|
308558
|
-
{ path: "recordings/(.*)", method:
|
|
308559
|
-
{ path: "api/recordings", method:
|
|
308560
|
-
{ path: "api/recordings/(.*)", method:
|
|
308561
|
-
{ path: "
|
|
308562
|
-
{ path: "
|
|
308563
|
-
{ path: "
|
|
308564
|
-
{ path: "
|
|
308565
|
-
{ path: "
|
|
308566
|
-
{ path: "
|
|
308567
|
-
{ path: "job-
|
|
308568
|
-
{ path: "job-
|
|
308569
|
-
{ path: "
|
|
308570
|
-
{ path: "
|
|
308571
|
-
{ path: "
|
|
308572
|
-
{ path: "
|
|
308573
|
-
{ path: "job-
|
|
308574
|
-
{ path: "
|
|
308575
|
-
{ path: "
|
|
308576
|
-
{ path: "recommendations/
|
|
308577
|
-
{ path: "
|
|
308578
|
-
{ path: "
|
|
308579
|
-
{ path: "
|
|
308580
|
-
{ path: "
|
|
308581
|
-
{ path: "
|
|
308582
|
-
{ path: "talent-
|
|
308583
|
-
{ path: "
|
|
308584
|
-
{ path: "
|
|
308585
|
-
{ path: "
|
|
308586
|
-
{ path: "
|
|
308587
|
-
{ path: "
|
|
308588
|
-
{ path: "
|
|
308589
|
-
{ path: "
|
|
308590
|
-
{ path: "
|
|
308591
|
-
{ path: "
|
|
308592
|
-
{ path: "
|
|
308769
|
+
{ path: "/", method: import_common161.RequestMethod.GET },
|
|
308770
|
+
{ path: "entity", method: import_common161.RequestMethod.GET },
|
|
308771
|
+
{ path: "talents", method: import_common161.RequestMethod.GET },
|
|
308772
|
+
{ path: "jobs", method: import_common161.RequestMethod.GET },
|
|
308773
|
+
{ path: "companies", method: import_common161.RequestMethod.GET },
|
|
308774
|
+
{ path: "parselog", method: import_common161.RequestMethod.GET },
|
|
308775
|
+
{ path: "recordings", method: import_common161.RequestMethod.GET },
|
|
308776
|
+
{ path: "company/admin", method: import_common161.RequestMethod.GET },
|
|
308777
|
+
{ path: "admin/data", method: import_common161.RequestMethod.GET },
|
|
308778
|
+
{ path: "team/insights", method: import_common161.RequestMethod.GET },
|
|
308779
|
+
{ path: "_next/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308780
|
+
{ path: "(.*).txt", method: import_common161.RequestMethod.GET },
|
|
308781
|
+
{ path: "health", method: import_common161.RequestMethod.GET },
|
|
308782
|
+
{ path: "health/db", method: import_common161.RequestMethod.GET },
|
|
308783
|
+
{ path: "auth/device-code", method: import_common161.RequestMethod.ALL },
|
|
308784
|
+
{ path: "auth/login", method: import_common161.RequestMethod.ALL },
|
|
308785
|
+
{ path: "auth/approve", method: import_common161.RequestMethod.ALL },
|
|
308786
|
+
{ path: "auth/token", method: import_common161.RequestMethod.ALL },
|
|
308787
|
+
{ path: "auth/email/send-code", method: import_common161.RequestMethod.ALL },
|
|
308788
|
+
{ path: "auth/email/verify", method: import_common161.RequestMethod.ALL },
|
|
308789
|
+
{ path: "auth/verify-info", method: import_common161.RequestMethod.ALL },
|
|
308790
|
+
{ path: "auth/verify", method: import_common161.RequestMethod.GET },
|
|
308791
|
+
{ path: "auth/saas-token", method: import_common161.RequestMethod.POST },
|
|
308792
|
+
{ path: "auth/session", method: import_common161.RequestMethod.GET },
|
|
308793
|
+
{ path: "system/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308794
|
+
{ path: "extension/version", method: import_common161.RequestMethod.GET },
|
|
308795
|
+
{ path: "extensions", method: import_common161.RequestMethod.ALL },
|
|
308796
|
+
{ path: "extensions/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308797
|
+
{ path: "sites", method: import_common161.RequestMethod.ALL },
|
|
308798
|
+
{ path: "sites/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308799
|
+
{ path: "entities", method: import_common161.RequestMethod.ALL },
|
|
308800
|
+
{ path: "entities/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308801
|
+
{ path: "parse-log", method: import_common161.RequestMethod.ALL },
|
|
308802
|
+
{ path: "parse-log/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308803
|
+
{ path: "parse/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308804
|
+
{ path: "extract/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308805
|
+
{ path: "ingest", method: import_common161.RequestMethod.ALL },
|
|
308806
|
+
{ path: "ingest/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308807
|
+
{ path: "adapters", method: import_common161.RequestMethod.ALL },
|
|
308808
|
+
{ path: "adapters/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308809
|
+
{ path: "recordings", method: import_common161.RequestMethod.ALL },
|
|
308810
|
+
{ path: "recordings/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308811
|
+
{ path: "api/recordings", method: import_common161.RequestMethod.ALL },
|
|
308812
|
+
{ path: "api/recordings/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308813
|
+
{ path: "api/recordings-view", method: import_common161.RequestMethod.ALL },
|
|
308814
|
+
{ path: "api/recordings-view/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308815
|
+
{ path: "logs", method: import_common161.RequestMethod.ALL },
|
|
308816
|
+
{ path: "logs/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308817
|
+
{ path: "doctor", method: import_common161.RequestMethod.ALL },
|
|
308818
|
+
{ path: "doctor/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308819
|
+
{ path: "job-cases", method: import_common161.RequestMethod.ALL },
|
|
308820
|
+
{ path: "job-cases/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308821
|
+
{ path: "job-case-postings", method: import_common161.RequestMethod.ALL },
|
|
308822
|
+
{ path: "job-case-postings/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308823
|
+
{ path: "market", method: import_common161.RequestMethod.ALL },
|
|
308824
|
+
{ path: "market/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308825
|
+
{ path: "job-applications", method: import_common161.RequestMethod.ALL },
|
|
308826
|
+
{ path: "job-applications/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308827
|
+
{ path: "job-postings/sources", method: import_common161.RequestMethod.GET },
|
|
308828
|
+
{ path: "recommendations/summary", method: import_common161.RequestMethod.GET },
|
|
308829
|
+
{ path: "recommendations/by-portrait", method: import_common161.RequestMethod.GET },
|
|
308830
|
+
{ path: "recommendations/by-portrait/(.*)", method: import_common161.RequestMethod.GET },
|
|
308831
|
+
{ path: "parsed-resumes", method: import_common161.RequestMethod.GET },
|
|
308832
|
+
{ path: "parsed-resumes/(.*)", method: import_common161.RequestMethod.GET },
|
|
308833
|
+
{ path: "talent-portraits", method: import_common161.RequestMethod.GET },
|
|
308834
|
+
{ path: "talent-portraits/(.*)", method: import_common161.RequestMethod.GET },
|
|
308835
|
+
{ path: "resume-field-changes", method: import_common161.RequestMethod.GET },
|
|
308836
|
+
{ path: "talent-job-evaluations/evaluate-prompt", method: import_common161.RequestMethod.GET },
|
|
308837
|
+
{ path: "matching/jobs/(.*)/talents", method: import_common161.RequestMethod.GET },
|
|
308838
|
+
{ path: "matching/portraits/(.*)/jobs", method: import_common161.RequestMethod.GET },
|
|
308839
|
+
{ path: "customers", method: import_common161.RequestMethod.ALL },
|
|
308840
|
+
{ path: "customers/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308841
|
+
{ path: "preferences", method: import_common161.RequestMethod.ALL },
|
|
308842
|
+
{ path: "preferences/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308843
|
+
{ path: "governance", method: import_common161.RequestMethod.ALL },
|
|
308844
|
+
{ path: "governance/(.*)", method: import_common161.RequestMethod.ALL },
|
|
308845
|
+
{ path: "resource-usage", method: import_common161.RequestMethod.ALL },
|
|
308846
|
+
{ path: "resource-usage/(.*)", method: import_common161.RequestMethod.ALL }
|
|
308593
308847
|
];
|
|
308594
308848
|
var AppModule = class AppModule2 {
|
|
308595
308849
|
tenant;
|
|
@@ -308606,8 +308860,8 @@ var AppModule = class AppModule2 {
|
|
|
308606
308860
|
consumer.apply(AuthMiddleware).exclude(...AUTH_MIDDLEWARE_EXCLUDES).forRoutes("*");
|
|
308607
308861
|
}
|
|
308608
308862
|
};
|
|
308609
|
-
AppModule =
|
|
308610
|
-
(0,
|
|
308863
|
+
AppModule = __decorate203([
|
|
308864
|
+
(0, import_common161.Module)({
|
|
308611
308865
|
imports: [
|
|
308612
308866
|
import_config11.ConfigModule.forRoot({ isGlobal: true }),
|
|
308613
308867
|
import_serve_static.ServeStaticModule.forRoot({
|
|
@@ -308641,6 +308895,8 @@ AppModule = __decorate201([
|
|
|
308641
308895
|
"/adapters/(.*)",
|
|
308642
308896
|
"/api/recordings",
|
|
308643
308897
|
"/api/recordings/(.*)",
|
|
308898
|
+
"/api/recordings-view",
|
|
308899
|
+
"/api/recordings-view/(.*)",
|
|
308644
308900
|
"/search/(.*)",
|
|
308645
308901
|
"/query/(.*)",
|
|
308646
308902
|
"/job-cases",
|
|
@@ -308685,6 +308941,7 @@ AppModule = __decorate201([
|
|
|
308685
308941
|
QueryModule,
|
|
308686
308942
|
SearchModule,
|
|
308687
308943
|
RecordingModule,
|
|
308944
|
+
RecordingsViewModule,
|
|
308688
308945
|
ExtensionModule,
|
|
308689
308946
|
AuthModule,
|
|
308690
308947
|
SystemModule,
|
|
@@ -308716,7 +308973,7 @@ AppModule = __decorate201([
|
|
|
308716
308973
|
],
|
|
308717
308974
|
controllers: [HealthController]
|
|
308718
308975
|
}),
|
|
308719
|
-
|
|
308976
|
+
__metadata154("design:paramtypes", [TenantService])
|
|
308720
308977
|
], AppModule);
|
|
308721
308978
|
|
|
308722
308979
|
// dist/.server-tsc/main.js
|
|
@@ -308733,7 +308990,7 @@ async function bootstrap() {
|
|
|
308733
308990
|
const app = await import_core201.NestFactory.create(AppModule);
|
|
308734
308991
|
app.useBodyParser("json", { limit: "32mb" });
|
|
308735
308992
|
app.useWebSocketAdapter(new import_platform_ws.WsAdapter(app));
|
|
308736
|
-
app.useGlobalPipes(new
|
|
308993
|
+
app.useGlobalPipes(new import_common163.ValidationPipe({ whitelist: true, transform: true }));
|
|
308737
308994
|
app.enableCors({ origin: "*" });
|
|
308738
308995
|
app.enableShutdownHooks();
|
|
308739
308996
|
const port = process.env.PORT || 34571;
|