hunter-mate 0.1.36 → 0.1.37
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.20261103192009.js → service-worker.20261107043433.js} +2 -2
- package/dist/assets/extension/background/service-worker.js +2 -2
- package/dist/assets/extension/build-info.json +1 -1
- package/dist/assets/extension/manifest.json +3 -3
- package/dist/assets/extension/sidepanel/index.html +1 -1
- package/dist/assets/extension/sidepanel/index.js +1 -1
- package/dist/assets/server/main.mjs +169 -150
- package/dist/index.js +97 -32
- package/dist/web/dist/404.html +1 -1
- package/dist/web/dist/_next/static/chunks/431-187a20ba9a18321e.js +1 -0
- package/dist/web/dist/_next/static/chunks/659-d79f05fe8494a4a3.js +1 -0
- package/dist/web/dist/_next/static/chunks/686-566781e8fdd620d5.js +1 -0
- package/dist/web/dist/_next/static/chunks/{987-d5135025f46d8a26.js → 987-4bd304cd48dc9e3c.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/admin/data/page-cfe12240271d0430.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/company/admin/{page-940476e223ed5291.js → page-b14cac4a2b898625.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/jobs/page-72230dfd0d86fd69.js +1 -0
- package/dist/web/dist/_next/static/chunks/app/{layout-56e9f652ec460661.js → layout-19172f741a295f90.js} +1 -1
- package/dist/web/dist/_next/static/chunks/app/login/{page-11dbf5148d19a037.js → page-bbbb051e69009a06.js} +1 -1
- package/dist/web/dist/_next/static/chunks/{main-app-6971513122242cd6.js → main-app-e2b7b078a4e28e22.js} +1 -1
- package/dist/web/dist/_next/static/chunks/pages/{_app-1d7fd225cc89f0d5.js → _app-b75cc951fea59503.js} +2 -2
- package/dist/web/dist/_next/static/css/fe65ef3f12d9c55d.css +3 -0
- package/dist/web/dist/admin/data.html +1 -1
- package/dist/web/dist/admin/data.txt +3 -3
- package/dist/web/dist/auth/verify.html +1 -1
- package/dist/web/dist/auth/verify.txt +2 -2
- package/dist/web/dist/companies.html +1 -1
- package/dist/web/dist/companies.txt +3 -3
- package/dist/web/dist/company/admin.html +1 -1
- package/dist/web/dist/company/admin.txt +3 -3
- package/dist/web/dist/entity.html +1 -1
- package/dist/web/dist/entity.txt +2 -2
- package/dist/web/dist/index.html +1 -1
- package/dist/web/dist/index.txt +3 -3
- package/dist/web/dist/jobs.html +1 -1
- package/dist/web/dist/jobs.txt +3 -3
- package/dist/web/dist/login.html +2 -2
- package/dist/web/dist/login.txt +3 -3
- package/dist/web/dist/logs.html +1 -1
- package/dist/web/dist/logs.txt +2 -2
- package/dist/web/dist/matching/jobs/placeholder/talents.html +1 -1
- package/dist/web/dist/matching/jobs/placeholder/talents.txt +3 -3
- package/dist/web/dist/matching/portraits/placeholder/jobs.html +1 -1
- package/dist/web/dist/matching/portraits/placeholder/jobs.txt +3 -3
- package/dist/web/dist/memory.html +1 -1
- package/dist/web/dist/memory.txt +3 -3
- package/dist/web/dist/parselog.html +1 -1
- package/dist/web/dist/parselog.txt +3 -3
- package/dist/web/dist/recordings.html +1 -1
- package/dist/web/dist/recordings.txt +3 -3
- package/dist/web/dist/resource-usage.html +1 -1
- package/dist/web/dist/resource-usage.txt +3 -3
- package/dist/web/dist/shared/placeholder.html +1 -1
- package/dist/web/dist/shared/placeholder.txt +3 -3
- package/dist/web/dist/snapshots/placeholder/agent-prompt.html +1 -1
- package/dist/web/dist/snapshots/placeholder/agent-prompt.txt +3 -3
- package/dist/web/dist/talents.html +1 -1
- package/dist/web/dist/talents.txt +3 -3
- package/dist/web/dist/team/insights.html +1 -1
- package/dist/web/dist/team/insights.txt +3 -3
- package/package.json +1 -1
- package/dist/web/dist/_next/static/chunks/431-6c54d8d0cf2bf768.js +0 -1
- package/dist/web/dist/_next/static/chunks/659-bf056de14f6162b6.js +0 -1
- package/dist/web/dist/_next/static/chunks/686-332bfa3dbd6e0aac.js +0 -1
- package/dist/web/dist/_next/static/chunks/app/admin/data/page-31aa598c712a211d.js +0 -1
- package/dist/web/dist/_next/static/chunks/app/jobs/page-0a0ee2f8b389a147.js +0 -1
- package/dist/web/dist/_next/static/css/03e3fa723e374884.css +0 -3
- /package/dist/web/dist/_next/static/{JrLiYIK9zn4SBFFfOW1uK → wtzfFVjEfzUKkY3Epal_2}/_buildManifest.js +0 -0
- /package/dist/web/dist/_next/static/{JrLiYIK9zn4SBFFfOW1uK → wtzfFVjEfzUKkY3Epal_2}/_ssgManifest.js +0 -0
|
@@ -25698,7 +25698,7 @@ var require_parse_int_pipe = __commonJS({
|
|
|
25698
25698
|
var http_status_enum_1 = require_http_status_enum();
|
|
25699
25699
|
var http_error_by_code_util_1 = require_http_error_by_code_util();
|
|
25700
25700
|
var shared_utils_1 = require_shared_utils();
|
|
25701
|
-
var
|
|
25701
|
+
var ParseIntPipe3 = class ParseIntPipe {
|
|
25702
25702
|
constructor(options) {
|
|
25703
25703
|
this.options = options;
|
|
25704
25704
|
options = options || {};
|
|
@@ -25729,12 +25729,12 @@ var require_parse_int_pipe = __commonJS({
|
|
|
25729
25729
|
return ["string", "number"].includes(typeof value) && /^-?\d+$/.test(value) && isFinite(value);
|
|
25730
25730
|
}
|
|
25731
25731
|
};
|
|
25732
|
-
exports2.ParseIntPipe =
|
|
25733
|
-
exports2.ParseIntPipe =
|
|
25732
|
+
exports2.ParseIntPipe = ParseIntPipe3;
|
|
25733
|
+
exports2.ParseIntPipe = ParseIntPipe3 = tslib_1.__decorate([
|
|
25734
25734
|
(0, injectable_decorator_1.Injectable)(),
|
|
25735
25735
|
tslib_1.__param(0, (0, optional_decorator_1.Optional)()),
|
|
25736
25736
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
25737
|
-
],
|
|
25737
|
+
], ParseIntPipe3);
|
|
25738
25738
|
}
|
|
25739
25739
|
});
|
|
25740
25740
|
|
|
@@ -189073,7 +189073,7 @@ var require_entities = __commonJS({
|
|
|
189073
189073
|
enumLabels: JOB_CASE_STATUS
|
|
189074
189074
|
},
|
|
189075
189075
|
num("customerId", "\u5173\u8054\u5BA2\u6237 ID"),
|
|
189076
|
-
|
|
189076
|
+
ts("ownerId", "\u5F52\u5C5E\u4EBA ID"),
|
|
189077
189077
|
ts("folderPath", "\u6587\u4EF6\u5939\u8DEF\u5F84"),
|
|
189078
189078
|
json("requirements", "\u9700\u6C42\u660E\u7EC6"),
|
|
189079
189079
|
json("rawFiles", "\u539F\u59CB\u6587\u4EF6"),
|
|
@@ -189108,7 +189108,7 @@ var require_entities = __commonJS({
|
|
|
189108
189108
|
ts("externalId", "\u5916\u90E8 ID"),
|
|
189109
189109
|
num("personId", "\u4EBA\u624D ID"),
|
|
189110
189110
|
num("jobCaseId", "\u804C\u4F4D Case ID"),
|
|
189111
|
-
|
|
189111
|
+
ts("ownerId", "\u5F52\u5C5E\u4EBA ID"),
|
|
189112
189112
|
{ ...ts("transcript", "\u6C9F\u901A\u539F\u6587"), long: true },
|
|
189113
189113
|
json("summary", "AI \u7EAA\u8981"),
|
|
189114
189114
|
json("extractedEntities", "AI \u63D0\u53D6\u5B9E\u4F53"),
|
|
@@ -189520,7 +189520,7 @@ var require_entities = __commonJS({
|
|
|
189520
189520
|
ts("canonicalName", "\u89C4\u8303\u540D\u79F0"),
|
|
189521
189521
|
json("aliases", "\u522B\u540D"),
|
|
189522
189522
|
json("typeStatus", "\u7C7B\u578B/\u72B6\u6001"),
|
|
189523
|
-
|
|
189523
|
+
ts("ownerId", "\u5F52\u5C5E\u4EBA ID"),
|
|
189524
189524
|
json("contacts", "\u8054\u7CFB\u4EBA"),
|
|
189525
189525
|
json("purchaseHistory", "\u4EA4\u6613\u5386\u53F2"),
|
|
189526
189526
|
{ ...ts("notes", "\u5907\u6CE8"), long: true },
|
|
@@ -189556,8 +189556,8 @@ var require_entities = __commonJS({
|
|
|
189556
189556
|
kind: "enum",
|
|
189557
189557
|
enumLabels: { user: "\u987E\u95EE", customer: "\u5BA2\u6237", case: "\u804C\u4F4D Case" }
|
|
189558
189558
|
},
|
|
189559
|
-
|
|
189560
|
-
|
|
189559
|
+
ts("scopeId", "\u4F5C\u7528\u57DF ID"),
|
|
189560
|
+
ts("userId", "\u5F52\u5C5E\u4EBA ID"),
|
|
189561
189561
|
ts("dimension", "\u7EF4\u5EA6"),
|
|
189562
189562
|
json("value", "\u504F\u597D\u503C"),
|
|
189563
189563
|
ts("valueKey", "\u504F\u597D\u503C\u952E"),
|
|
@@ -189733,9 +189733,9 @@ var require_entities = __commonJS({
|
|
|
189733
189733
|
},
|
|
189734
189734
|
fields: [
|
|
189735
189735
|
num("jobCaseId", "\u804C\u4F4D ID"),
|
|
189736
|
-
|
|
189737
|
-
|
|
189738
|
-
|
|
189736
|
+
ts("userId", "\u7528\u6237 ID"),
|
|
189737
|
+
ts("createdBy", "\u64CD\u4F5C\u4EBA"),
|
|
189738
|
+
ts("tenantId", "\u79DF\u6237 ID"),
|
|
189739
189739
|
ts("id", "ID"),
|
|
189740
189740
|
dt("createdAt", "\u521B\u5EFA\u65F6\u95F4")
|
|
189741
189741
|
]
|
|
@@ -189756,10 +189756,10 @@ var require_entities = __commonJS({
|
|
|
189756
189756
|
},
|
|
189757
189757
|
fields: [
|
|
189758
189758
|
num("jobCaseId", "\u804C\u4F4D ID"),
|
|
189759
|
-
|
|
189759
|
+
ts("actorId", "\u64CD\u4F5C\u4EBA"),
|
|
189760
189760
|
ts("action", "\u52A8\u4F5C"),
|
|
189761
189761
|
json("detail", "\u4E0A\u4E0B\u6587"),
|
|
189762
|
-
|
|
189762
|
+
ts("tenantId", "\u79DF\u6237 ID"),
|
|
189763
189763
|
ts("id", "ID"),
|
|
189764
189764
|
dt("createdAt", "\u521B\u5EFA\u65F6\u95F4")
|
|
189765
189765
|
]
|
|
@@ -217762,13 +217762,13 @@ __decorate8([
|
|
|
217762
217762
|
__metadata7("design:type", Object)
|
|
217763
217763
|
], JobCase.prototype, "customerId", void 0);
|
|
217764
217764
|
__decorate8([
|
|
217765
|
-
Column({ type: "
|
|
217765
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
217766
217766
|
__metadata7("design:type", Object)
|
|
217767
217767
|
], JobCase.prototype, "ownerId", void 0);
|
|
217768
217768
|
__decorate8([
|
|
217769
217769
|
Index(),
|
|
217770
|
-
Column({ type: "
|
|
217771
|
-
__metadata7("design:type",
|
|
217770
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
217771
|
+
__metadata7("design:type", String)
|
|
217772
217772
|
], JobCase.prototype, "tenantId", void 0);
|
|
217773
217773
|
__decorate8([
|
|
217774
217774
|
Index(),
|
|
@@ -217849,8 +217849,8 @@ __decorate9([
|
|
|
217849
217849
|
], JobCasePosting.prototype, "note", void 0);
|
|
217850
217850
|
__decorate9([
|
|
217851
217851
|
Index(),
|
|
217852
|
-
Column({ type: "
|
|
217853
|
-
__metadata8("design:type",
|
|
217852
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
217853
|
+
__metadata8("design:type", String)
|
|
217854
217854
|
], JobCasePosting.prototype, "tenantId", void 0);
|
|
217855
217855
|
__decorate9([
|
|
217856
217856
|
CreateDateColumn(),
|
|
@@ -217927,8 +217927,8 @@ __decorate10([
|
|
|
217927
217927
|
], JobApplication.prototype, "raw", void 0);
|
|
217928
217928
|
__decorate10([
|
|
217929
217929
|
Index(),
|
|
217930
|
-
Column({ type: "
|
|
217931
|
-
__metadata9("design:type",
|
|
217930
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
217931
|
+
__metadata9("design:type", String)
|
|
217932
217932
|
], JobApplication.prototype, "tenantId", void 0);
|
|
217933
217933
|
__decorate10([
|
|
217934
217934
|
CreateDateColumn(),
|
|
@@ -218058,8 +218058,8 @@ __decorate12([
|
|
|
218058
218058
|
__metadata11("design:type", String)
|
|
218059
218059
|
], CommunicationRecord.prototype, "type", void 0);
|
|
218060
218060
|
__decorate12([
|
|
218061
|
-
Column({ type: "
|
|
218062
|
-
__metadata11("design:type",
|
|
218061
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
218062
|
+
__metadata11("design:type", String)
|
|
218063
218063
|
], CommunicationRecord.prototype, "ownerId", void 0);
|
|
218064
218064
|
__decorate12([
|
|
218065
218065
|
Column({ type: "int", nullable: true }),
|
|
@@ -218087,8 +218087,8 @@ __decorate12([
|
|
|
218087
218087
|
], CommunicationRecord.prototype, "status", void 0);
|
|
218088
218088
|
__decorate12([
|
|
218089
218089
|
Index(),
|
|
218090
|
-
Column({ type: "
|
|
218091
|
-
__metadata11("design:type",
|
|
218090
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
218091
|
+
__metadata11("design:type", String)
|
|
218092
218092
|
], CommunicationRecord.prototype, "tenantId", void 0);
|
|
218093
218093
|
__decorate12([
|
|
218094
218094
|
CreateDateColumn(),
|
|
@@ -218219,8 +218219,8 @@ __decorate14([
|
|
|
218219
218219
|
], ParsedResume.prototype, "rawExtracted", void 0);
|
|
218220
218220
|
__decorate14([
|
|
218221
218221
|
Index(),
|
|
218222
|
-
Column({ type: "
|
|
218223
|
-
__metadata13("design:type",
|
|
218222
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
218223
|
+
__metadata13("design:type", String)
|
|
218224
218224
|
], ParsedResume.prototype, "tenantId", void 0);
|
|
218225
218225
|
__decorate14([
|
|
218226
218226
|
CreateDateColumn(),
|
|
@@ -218297,8 +218297,8 @@ __decorate15([
|
|
|
218297
218297
|
], TalentPortrait.prototype, "matchingProfile", void 0);
|
|
218298
218298
|
__decorate15([
|
|
218299
218299
|
Index(),
|
|
218300
|
-
Column({ type: "
|
|
218301
|
-
__metadata14("design:type",
|
|
218300
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
218301
|
+
__metadata14("design:type", String)
|
|
218302
218302
|
], TalentPortrait.prototype, "tenantId", void 0);
|
|
218303
218303
|
__decorate15([
|
|
218304
218304
|
CreateDateColumn(),
|
|
@@ -218358,8 +218358,8 @@ __decorate16([
|
|
|
218358
218358
|
], TalentFingerprint.prototype, "updatedAt", void 0);
|
|
218359
218359
|
__decorate16([
|
|
218360
218360
|
Index(),
|
|
218361
|
-
Column({ type: "
|
|
218362
|
-
__metadata15("design:type",
|
|
218361
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
218362
|
+
__metadata15("design:type", String)
|
|
218363
218363
|
], TalentFingerprint.prototype, "tenantId", void 0);
|
|
218364
218364
|
__decorate16([
|
|
218365
218365
|
CreateDateColumn(),
|
|
@@ -218428,8 +218428,8 @@ __decorate17([
|
|
|
218428
218428
|
], TalentJobMatch.prototype, "status", void 0);
|
|
218429
218429
|
__decorate17([
|
|
218430
218430
|
Index(),
|
|
218431
|
-
Column({ type: "
|
|
218432
|
-
__metadata16("design:type",
|
|
218431
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
218432
|
+
__metadata16("design:type", String)
|
|
218433
218433
|
], TalentJobMatch.prototype, "tenantId", void 0);
|
|
218434
218434
|
__decorate17([
|
|
218435
218435
|
CreateDateColumn(),
|
|
@@ -218869,8 +218869,8 @@ __decorate23([
|
|
|
218869
218869
|
], TalentEvaluation.prototype, "generatedBy", void 0);
|
|
218870
218870
|
__decorate23([
|
|
218871
218871
|
Index(),
|
|
218872
|
-
Column({ type: "
|
|
218873
|
-
__metadata22("design:type",
|
|
218872
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
218873
|
+
__metadata22("design:type", String)
|
|
218874
218874
|
], TalentEvaluation.prototype, "tenantId", void 0);
|
|
218875
218875
|
__decorate23([
|
|
218876
218876
|
CreateDateColumn(),
|
|
@@ -218950,8 +218950,8 @@ __decorate24([
|
|
|
218950
218950
|
], TalentDedupDecision.prototype, "mergedSnapshot", void 0);
|
|
218951
218951
|
__decorate24([
|
|
218952
218952
|
Index(),
|
|
218953
|
-
Column({ type: "
|
|
218954
|
-
__metadata23("design:type",
|
|
218953
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
218954
|
+
__metadata23("design:type", String)
|
|
218955
218955
|
], TalentDedupDecision.prototype, "tenantId", void 0);
|
|
218956
218956
|
__decorate24([
|
|
218957
218957
|
CreateDateColumn(),
|
|
@@ -219122,8 +219122,8 @@ __decorate26([
|
|
|
219122
219122
|
], CompanyProfile.prototype, "tags", void 0);
|
|
219123
219123
|
__decorate26([
|
|
219124
219124
|
Index(),
|
|
219125
|
-
Column({ type: "
|
|
219126
|
-
__metadata25("design:type",
|
|
219125
|
+
Column({ type: "varchar", length: 36, nullable: true }),
|
|
219126
|
+
__metadata25("design:type", String)
|
|
219127
219127
|
], CompanyProfile.prototype, "tenantId", void 0);
|
|
219128
219128
|
__decorate26([
|
|
219129
219129
|
CreateDateColumn(),
|
|
@@ -219489,8 +219489,8 @@ __decorate31([
|
|
|
219489
219489
|
__metadata30("design:type", Number)
|
|
219490
219490
|
], SaasToken.prototype, "id", void 0);
|
|
219491
219491
|
__decorate31([
|
|
219492
|
-
Column({ name: "hm_user_id", type: "
|
|
219493
|
-
__metadata30("design:type",
|
|
219492
|
+
Column({ name: "hm_user_id", type: "varchar", length: 64 }),
|
|
219493
|
+
__metadata30("design:type", String)
|
|
219494
219494
|
], SaasToken.prototype, "hmUserId", void 0);
|
|
219495
219495
|
__decorate31([
|
|
219496
219496
|
Column({ type: "varchar", length: 254 }),
|
|
@@ -219714,15 +219714,15 @@ __decorate35([
|
|
|
219714
219714
|
__metadata34("design:type", Object)
|
|
219715
219715
|
], SyncPool.prototype, "parents", void 0);
|
|
219716
219716
|
__decorate35([
|
|
219717
|
-
Column({ name: "hm_user_id", type: "
|
|
219718
|
-
__metadata34("design:type",
|
|
219717
|
+
Column({ name: "hm_user_id", type: "varchar", length: 36 }),
|
|
219718
|
+
__metadata34("design:type", String)
|
|
219719
219719
|
], SyncPool.prototype, "hmUserId", void 0);
|
|
219720
219720
|
__decorate35([
|
|
219721
219721
|
Column({ name: "device_id", type: "varchar", length: 64 }),
|
|
219722
219722
|
__metadata34("design:type", String)
|
|
219723
219723
|
], SyncPool.prototype, "deviceId", void 0);
|
|
219724
219724
|
__decorate35([
|
|
219725
|
-
Column({ name: "origin_tenant_id", type: "
|
|
219725
|
+
Column({ name: "origin_tenant_id", type: "varchar", length: 36, nullable: true }),
|
|
219726
219726
|
__metadata34("design:type", Object)
|
|
219727
219727
|
], SyncPool.prototype, "originTenantId", void 0);
|
|
219728
219728
|
__decorate35([
|
|
@@ -219841,8 +219841,8 @@ __decorate37([
|
|
|
219841
219841
|
__metadata36("design:type", Array)
|
|
219842
219842
|
], Customer.prototype, "activityLogIds", void 0);
|
|
219843
219843
|
__decorate37([
|
|
219844
|
-
Column({ type: "
|
|
219845
|
-
__metadata36("design:type",
|
|
219844
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
219845
|
+
__metadata36("design:type", String)
|
|
219846
219846
|
], Customer.prototype, "ownerId", void 0);
|
|
219847
219847
|
__decorate37([
|
|
219848
219848
|
Column({ type: "int", nullable: true }),
|
|
@@ -219858,8 +219858,8 @@ __decorate37([
|
|
|
219858
219858
|
], Customer.prototype, "profile", void 0);
|
|
219859
219859
|
__decorate37([
|
|
219860
219860
|
Index(),
|
|
219861
|
-
Column({ type: "
|
|
219862
|
-
__metadata36("design:type",
|
|
219861
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
219862
|
+
__metadata36("design:type", String)
|
|
219863
219863
|
], Customer.prototype, "tenantId", void 0);
|
|
219864
219864
|
__decorate37([
|
|
219865
219865
|
CreateDateColumn(),
|
|
@@ -219906,12 +219906,12 @@ __decorate38([
|
|
|
219906
219906
|
__metadata37("design:type", String)
|
|
219907
219907
|
], Preference.prototype, "scope", void 0);
|
|
219908
219908
|
__decorate38([
|
|
219909
|
-
Column({ type: "
|
|
219910
|
-
__metadata37("design:type",
|
|
219909
|
+
Column({ type: "varchar", length: 36 }),
|
|
219910
|
+
__metadata37("design:type", String)
|
|
219911
219911
|
], Preference.prototype, "scopeId", void 0);
|
|
219912
219912
|
__decorate38([
|
|
219913
|
-
Column({ type: "
|
|
219914
|
-
__metadata37("design:type",
|
|
219913
|
+
Column({ type: "varchar", length: 36, nullable: true }),
|
|
219914
|
+
__metadata37("design:type", String)
|
|
219915
219915
|
], Preference.prototype, "userId", void 0);
|
|
219916
219916
|
__decorate38([
|
|
219917
219917
|
Column({ type: "varchar", length: 64 }),
|
|
@@ -219975,16 +219975,16 @@ __decorate39([
|
|
|
219975
219975
|
], JobCaseRs.prototype, "jobCaseId", void 0);
|
|
219976
219976
|
__decorate39([
|
|
219977
219977
|
Index(),
|
|
219978
|
-
Column({ type: "
|
|
219979
|
-
__metadata38("design:type",
|
|
219978
|
+
Column({ type: "varchar", length: 64 }),
|
|
219979
|
+
__metadata38("design:type", String)
|
|
219980
219980
|
], JobCaseRs.prototype, "userId", void 0);
|
|
219981
219981
|
__decorate39([
|
|
219982
|
-
Column({ type: "
|
|
219982
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
219983
219983
|
__metadata38("design:type", Object)
|
|
219984
219984
|
], JobCaseRs.prototype, "createdBy", void 0);
|
|
219985
219985
|
__decorate39([
|
|
219986
219986
|
Index(),
|
|
219987
|
-
Column({ type: "
|
|
219987
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
219988
219988
|
__metadata38("design:type", Object)
|
|
219989
219989
|
], JobCaseRs.prototype, "tenantId", void 0);
|
|
219990
219990
|
__decorate39([
|
|
@@ -220025,7 +220025,7 @@ __decorate40([
|
|
|
220025
220025
|
__metadata39("design:type", Number)
|
|
220026
220026
|
], JobCaseHistory.prototype, "jobCaseId", void 0);
|
|
220027
220027
|
__decorate40([
|
|
220028
|
-
Column({ type: "
|
|
220028
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
220029
220029
|
__metadata39("design:type", Object)
|
|
220030
220030
|
], JobCaseHistory.prototype, "actorId", void 0);
|
|
220031
220031
|
__decorate40([
|
|
@@ -220038,7 +220038,7 @@ __decorate40([
|
|
|
220038
220038
|
], JobCaseHistory.prototype, "detail", void 0);
|
|
220039
220039
|
__decorate40([
|
|
220040
220040
|
Index(),
|
|
220041
|
-
Column({ type: "
|
|
220041
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
220042
220042
|
__metadata39("design:type", Object)
|
|
220043
220043
|
], JobCaseHistory.prototype, "tenantId", void 0);
|
|
220044
220044
|
__decorate40([
|
|
@@ -220075,13 +220075,13 @@ __decorate41([
|
|
|
220075
220075
|
], TenantMember.prototype, "id", void 0);
|
|
220076
220076
|
__decorate41([
|
|
220077
220077
|
Index(),
|
|
220078
|
-
Column({ type: "
|
|
220079
|
-
__metadata40("design:type",
|
|
220078
|
+
Column({ type: "varchar", length: 36 }),
|
|
220079
|
+
__metadata40("design:type", String)
|
|
220080
220080
|
], TenantMember.prototype, "tenantId", void 0);
|
|
220081
220081
|
__decorate41([
|
|
220082
220082
|
Index(),
|
|
220083
|
-
Column({ type: "
|
|
220084
|
-
__metadata40("design:type",
|
|
220083
|
+
Column({ type: "varchar", length: 36 }),
|
|
220084
|
+
__metadata40("design:type", String)
|
|
220085
220085
|
], TenantMember.prototype, "hmUserId", void 0);
|
|
220086
220086
|
__decorate41([
|
|
220087
220087
|
Column({ type: "varchar", length: 16, default: "member" }),
|
|
@@ -220288,7 +220288,7 @@ __decorate45([
|
|
|
220288
220288
|
__metadata44("design:type", String)
|
|
220289
220289
|
], OpLog.prototype, "ts", void 0);
|
|
220290
220290
|
__decorate45([
|
|
220291
|
-
Column({ name: "user_id", type: "
|
|
220291
|
+
Column({ name: "user_id", type: "varchar", length: 64, nullable: true }),
|
|
220292
220292
|
__metadata44("design:type", Object)
|
|
220293
220293
|
], OpLog.prototype, "userId", void 0);
|
|
220294
220294
|
__decorate45([
|
|
@@ -220420,8 +220420,8 @@ __decorate46([
|
|
|
220420
220420
|
], JobRecommendation.prototype, "invitation", void 0);
|
|
220421
220421
|
__decorate46([
|
|
220422
220422
|
Index(),
|
|
220423
|
-
Column({ type: "
|
|
220424
|
-
__metadata45("design:type",
|
|
220423
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
220424
|
+
__metadata45("design:type", String)
|
|
220425
220425
|
], JobRecommendation.prototype, "tenantId", void 0);
|
|
220426
220426
|
__decorate46([
|
|
220427
220427
|
CreateDateColumn(),
|
|
@@ -220561,8 +220561,8 @@ __decorate48([
|
|
|
220561
220561
|
], TalentJobEvaluation.prototype, "createdBy", void 0);
|
|
220562
220562
|
__decorate48([
|
|
220563
220563
|
Index(),
|
|
220564
|
-
Column({ type: "
|
|
220565
|
-
__metadata47("design:type",
|
|
220564
|
+
Column({ type: "varchar", length: 64, nullable: true }),
|
|
220565
|
+
__metadata47("design:type", String)
|
|
220566
220566
|
], TalentJobEvaluation.prototype, "tenantId", void 0);
|
|
220567
220567
|
__decorate48([
|
|
220568
220568
|
CreateDateColumn(),
|
|
@@ -221271,8 +221271,9 @@ var TenantService = class TenantService2 {
|
|
|
221271
221271
|
async current() {
|
|
221272
221272
|
try {
|
|
221273
221273
|
const rows = await this.dataSource.query(`SELECT value FROM sync_kv WHERE key = 'activeTenantId'`);
|
|
221274
|
-
const
|
|
221275
|
-
|
|
221274
|
+
const raw = rows?.[0]?.value;
|
|
221275
|
+
const id = raw == null ? "" : String(raw).trim();
|
|
221276
|
+
return id || null;
|
|
221276
221277
|
} catch {
|
|
221277
221278
|
return null;
|
|
221278
221279
|
}
|
|
@@ -221285,8 +221286,8 @@ var TenantService = class TenantService2 {
|
|
|
221285
221286
|
return null;
|
|
221286
221287
|
const list = JSON.parse(Buffer.from(String(raw), "base64").toString("utf8"));
|
|
221287
221288
|
const p = (Array.isArray(list) ? list : []).find((m) => m && m.isPersonal);
|
|
221288
|
-
const
|
|
221289
|
-
return
|
|
221289
|
+
const id = p?.tenantId == null ? "" : String(p.tenantId).trim();
|
|
221290
|
+
return id || null;
|
|
221290
221291
|
} catch {
|
|
221291
221292
|
return null;
|
|
221292
221293
|
}
|
|
@@ -221298,7 +221299,7 @@ var TenantService = class TenantService2 {
|
|
|
221298
221299
|
if (!raw)
|
|
221299
221300
|
return [];
|
|
221300
221301
|
const list = JSON.parse(Buffer.from(String(raw), "base64").toString("utf8"));
|
|
221301
|
-
return (Array.isArray(list) ? list : []).map((m) =>
|
|
221302
|
+
return (Array.isArray(list) ? list : []).map((m) => m?.tenantId == null ? "" : String(m.tenantId).trim()).filter((id) => id.length > 0);
|
|
221302
221303
|
} catch {
|
|
221303
221304
|
return [];
|
|
221304
221305
|
}
|
|
@@ -221572,12 +221573,12 @@ var JobcaseService = class JobcaseService2 {
|
|
|
221572
221573
|
}
|
|
221573
221574
|
async listCriteria(id) {
|
|
221574
221575
|
await this.findOne(id);
|
|
221575
|
-
const rows = await this.preferenceRepo.find({ where: { scope: "case", scopeId: id } });
|
|
221576
|
+
const rows = await this.preferenceRepo.find({ where: { scope: "case", scopeId: String(id) } });
|
|
221576
221577
|
const byUser = /* @__PURE__ */ new Map();
|
|
221577
221578
|
for (const r of rows) {
|
|
221578
|
-
const list = byUser.get(r.userId ?? 0) ?? [];
|
|
221579
|
+
const list = byUser.get(r.userId ?? "0") ?? [];
|
|
221579
221580
|
list.push({ dimension: r.dimension, value: r.value, weight: r.weight, updatedAt: r.updatedAt });
|
|
221580
|
-
byUser.set(r.userId ?? 0, list);
|
|
221581
|
+
byUser.set(r.userId ?? "0", list);
|
|
221581
221582
|
}
|
|
221582
221583
|
return { items: [...byUser.entries()].map(([userId, criteria]) => ({ userId, criteria })) };
|
|
221583
221584
|
}
|
|
@@ -221590,15 +221591,15 @@ var JobcaseService = class JobcaseService2 {
|
|
|
221590
221591
|
}
|
|
221591
221592
|
if (!Array.isArray(items) || !items.length)
|
|
221592
221593
|
throw new import_common14.BadRequestException("items required");
|
|
221593
|
-
const uid = actorId ?? 0;
|
|
221594
|
-
await this.preferenceRepo.delete({ scope: "case", scopeId: id, userId: uid });
|
|
221594
|
+
const uid = actorId ?? "0";
|
|
221595
|
+
await this.preferenceRepo.delete({ scope: "case", scopeId: String(id), userId: uid });
|
|
221595
221596
|
for (const it of items) {
|
|
221596
221597
|
if (!it?.dimension || it.value === void 0)
|
|
221597
221598
|
continue;
|
|
221598
221599
|
const valueKey = JSON.stringify(it.value).slice(0, 128);
|
|
221599
221600
|
await this.preferenceRepo.save(this.preferenceRepo.create({
|
|
221600
221601
|
scope: "case",
|
|
221601
|
-
scopeId: id,
|
|
221602
|
+
scopeId: String(id),
|
|
221602
221603
|
userId: uid,
|
|
221603
221604
|
dimension: String(it.dimension).slice(0, 64),
|
|
221604
221605
|
value: it.value,
|
|
@@ -221618,8 +221619,8 @@ var JobcaseService = class JobcaseService2 {
|
|
|
221618
221619
|
}
|
|
221619
221620
|
}
|
|
221620
221621
|
const [mine, theirs] = await Promise.all([
|
|
221621
|
-
this.preferenceRepo.find({ where: { scope: "case", scopeId: id, userId: actorId ?? 0 } }),
|
|
221622
|
-
this.preferenceRepo.find({ where: { scope: "case", scopeId: id, userId: fromUserId } })
|
|
221622
|
+
this.preferenceRepo.find({ where: { scope: "case", scopeId: String(id), userId: actorId ?? "0" } }),
|
|
221623
|
+
this.preferenceRepo.find({ where: { scope: "case", scopeId: String(id), userId: fromUserId } })
|
|
221623
221624
|
]);
|
|
221624
221625
|
const have = new Set(mine.map((r) => `${r.dimension}::${r.valueKey}`));
|
|
221625
221626
|
const additions = theirs.filter((r) => !have.has(`${r.dimension}::${r.valueKey}`));
|
|
@@ -221627,8 +221628,8 @@ var JobcaseService = class JobcaseService2 {
|
|
|
221627
221628
|
for (const r of additions) {
|
|
221628
221629
|
await this.preferenceRepo.save(this.preferenceRepo.create({
|
|
221629
221630
|
scope: "case",
|
|
221630
|
-
scopeId: id,
|
|
221631
|
-
userId: actorId ?? 0,
|
|
221631
|
+
scopeId: String(id),
|
|
221632
|
+
userId: actorId ?? "0",
|
|
221632
221633
|
dimension: r.dimension,
|
|
221633
221634
|
value: r.value,
|
|
221634
221635
|
valueKey: r.valueKey,
|
|
@@ -221738,7 +221739,7 @@ var JobcaseService = class JobcaseService2 {
|
|
|
221738
221739
|
const rsMap = /* @__PURE__ */ new Map();
|
|
221739
221740
|
for (const r of rsRows) {
|
|
221740
221741
|
const list = rsMap.get(Number(r.jobCaseId)) ?? [];
|
|
221741
|
-
list.push(
|
|
221742
|
+
list.push(r.userId);
|
|
221742
221743
|
rsMap.set(Number(r.jobCaseId), list);
|
|
221743
221744
|
}
|
|
221744
221745
|
for (const it of items)
|
|
@@ -222277,20 +222278,21 @@ var AuthService = AuthService_1 = class AuthService2 {
|
|
|
222277
222278
|
return localId;
|
|
222278
222279
|
const user = await this.verifyHcapiToken(token);
|
|
222279
222280
|
const userId = user.id ?? user._id;
|
|
222280
|
-
if (!userId) {
|
|
222281
|
+
if (userId == null || !String(userId).trim()) {
|
|
222281
222282
|
throw new import_common15.UnauthorizedException("Unable to identify user from hcapi token");
|
|
222282
222283
|
}
|
|
222283
222284
|
const roles = normalizeRoles(user.roles);
|
|
222284
222285
|
if (!roles.some((r) => ALLOWED_ROLES.has(r))) {
|
|
222285
222286
|
throw new import_common15.ForbiddenException("Insufficient permissions. hr or manager role required.");
|
|
222286
222287
|
}
|
|
222287
|
-
return
|
|
222288
|
+
return String(userId);
|
|
222288
222289
|
}
|
|
222289
222290
|
verifyLocalToken(token) {
|
|
222290
222291
|
try {
|
|
222291
222292
|
const decoded = jwt.verify(token, this.secret);
|
|
222292
|
-
const
|
|
222293
|
-
|
|
222293
|
+
const raw = decoded?.data?._id ?? decoded?.data?.id;
|
|
222294
|
+
const id = raw == null ? "" : String(raw).trim();
|
|
222295
|
+
return id || null;
|
|
222294
222296
|
} catch {
|
|
222295
222297
|
return null;
|
|
222296
222298
|
}
|
|
@@ -222402,13 +222404,14 @@ var AuthService = AuthService_1 = class AuthService2 {
|
|
|
222402
222404
|
} catch {
|
|
222403
222405
|
}
|
|
222404
222406
|
}
|
|
222405
|
-
|
|
222407
|
+
const normalizedHmUserId = hmUserId == null ? "" : String(hmUserId).trim();
|
|
222408
|
+
if (!normalizedHmUserId)
|
|
222406
222409
|
return { loggedIn: false };
|
|
222407
222410
|
return {
|
|
222408
222411
|
loggedIn: true,
|
|
222409
222412
|
email,
|
|
222410
|
-
hmUserId,
|
|
222411
|
-
token: this.issueStableLocalToken(
|
|
222413
|
+
hmUserId: normalizedHmUserId,
|
|
222414
|
+
token: this.issueStableLocalToken(normalizedHmUserId)
|
|
222412
222415
|
};
|
|
222413
222416
|
}
|
|
222414
222417
|
extractUserId(saasToken, data) {
|
|
@@ -222419,8 +222422,8 @@ var AuthService = AuthService_1 = class AuthService2 {
|
|
|
222419
222422
|
decoded = null;
|
|
222420
222423
|
}
|
|
222421
222424
|
const raw = decoded?.data?._id ?? decoded?.data?.id ?? decoded?._id ?? decoded?.sub ?? data?.userId ?? data?._id ?? null;
|
|
222422
|
-
const
|
|
222423
|
-
return
|
|
222425
|
+
const id = raw == null ? "" : String(raw).trim();
|
|
222426
|
+
return id || null;
|
|
222424
222427
|
}
|
|
222425
222428
|
rethrowSaaSError(op, err) {
|
|
222426
222429
|
const status = err?.response?.status;
|
|
@@ -222907,13 +222910,19 @@ var DatasyncService = class DatasyncService2 {
|
|
|
222907
222910
|
});
|
|
222908
222911
|
}
|
|
222909
222912
|
async tick() {
|
|
222910
|
-
|
|
222911
|
-
|
|
222912
|
-
|
|
222913
|
-
|
|
222914
|
-
|
|
222915
|
-
|
|
222916
|
-
|
|
222913
|
+
try {
|
|
222914
|
+
await this.maybeAutoCloudMigrate("tick");
|
|
222915
|
+
const push = this.migrateRunning ? { skipped: "migrating" } : await this.pushNow();
|
|
222916
|
+
const pull = await this.pullNow();
|
|
222917
|
+
const failed = Object.entries({ ...push, ...pull }).filter(([, v]) => String(v).startsWith("ERR"));
|
|
222918
|
+
this.opLog.recordEvent("datasync:tick", { push: compactSummary(push), pull: compactSummary(pull) }, failed.length ? "error" : "ok");
|
|
222919
|
+
if (failed.length) {
|
|
222920
|
+
this.opLog.recordEvent("datasync:tick-error", { failed: failed.map(([k2, v]) => `${k2}=${v}`) }, "error");
|
|
222921
|
+
}
|
|
222922
|
+
} catch (err) {
|
|
222923
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
222924
|
+
this.logger.error(`sync tick \u5F02\u5E38\u5DF2\u6355\u83B7\u964D\u7EA7(\u4E0D\u518D crash-loop): ${msg}`);
|
|
222925
|
+
this.opLog.recordEvent("datasync:tick-crash-guard", { error: msg }, "error");
|
|
222917
222926
|
}
|
|
222918
222927
|
}
|
|
222919
222928
|
onModuleDestroy() {
|
|
@@ -222950,13 +222959,14 @@ var DatasyncService = class DatasyncService2 {
|
|
|
222950
222959
|
}
|
|
222951
222960
|
async getActiveTenantId() {
|
|
222952
222961
|
const raw = await this.kvGet("activeTenantId");
|
|
222953
|
-
const
|
|
222954
|
-
return
|
|
222962
|
+
const id = raw == null ? "" : String(raw).trim();
|
|
222963
|
+
return id || null;
|
|
222955
222964
|
}
|
|
222956
222965
|
async setActiveTenant(id) {
|
|
222957
|
-
|
|
222958
|
-
this.
|
|
222959
|
-
this.
|
|
222966
|
+
const normalized = id == null ? "" : String(id).trim();
|
|
222967
|
+
await this.kvSet("activeTenantId", normalized || null);
|
|
222968
|
+
this.logger.log(`activeTenantId \u5207\u6362\u4E3A ${normalized || "\u4E2A\u4EBA\u4EA7\u51FA"}`);
|
|
222969
|
+
this.reportLastTenant(normalized || null).catch((err) => this.logger.warn(`\u4E0A\u62A5 last-active \u5931\u8D25(\u4E0D\u5F71\u54CD\u672C\u5730\u5207\u6362): ${err.message ?? err}`));
|
|
222960
222970
|
}
|
|
222961
222971
|
async reportLastTenant(id) {
|
|
222962
222972
|
const token = await this.authService.getStoredSaasToken();
|
|
@@ -223000,8 +223010,9 @@ var DatasyncService = class DatasyncService2 {
|
|
|
223000
223010
|
hmUserIdOf(token) {
|
|
223001
223011
|
try {
|
|
223002
223012
|
const decoded = jwt2.decode(token);
|
|
223003
|
-
const
|
|
223004
|
-
|
|
223013
|
+
const raw = decoded?.data?._id ?? decoded?.data?.id;
|
|
223014
|
+
const id = raw == null ? "" : String(raw).trim();
|
|
223015
|
+
return id || null;
|
|
223005
223016
|
} catch {
|
|
223006
223017
|
return null;
|
|
223007
223018
|
}
|
|
@@ -223010,6 +223021,7 @@ var DatasyncService = class DatasyncService2 {
|
|
|
223010
223021
|
return {
|
|
223011
223022
|
enabled: Boolean(this.syncUrl),
|
|
223012
223023
|
authFailed: this.authFailed,
|
|
223024
|
+
loginState: !this.syncUrl ? "disabled" : this.authFailed ? "\u5F85\u767B\u5F55(token \u8FC7\u671F,\u8BF7\u91CD\u65B0 hunter-mate login --email)" : "ok",
|
|
223013
223025
|
lastError: this.lastError,
|
|
223014
223026
|
entities: SYNC_REGISTRY.length
|
|
223015
223027
|
};
|
|
@@ -223634,7 +223646,7 @@ var DatasyncService = class DatasyncService2 {
|
|
|
223634
223646
|
}
|
|
223635
223647
|
const body = await res.json();
|
|
223636
223648
|
const items = (body?.items ?? []).map((m) => ({
|
|
223637
|
-
hmUserId:
|
|
223649
|
+
hmUserId: String(m.hmUserId),
|
|
223638
223650
|
role: m.role,
|
|
223639
223651
|
label: m.email ?? m.label ?? void 0
|
|
223640
223652
|
}));
|
|
@@ -223685,7 +223697,7 @@ var DatasyncService = class DatasyncService2 {
|
|
|
223685
223697
|
const body = await res.json();
|
|
223686
223698
|
for (const it of body.items ?? []) {
|
|
223687
223699
|
try {
|
|
223688
|
-
if (myHmUserId === null ||
|
|
223700
|
+
if (myHmUserId === null || String(it.hmUserId) === myHmUserId) {
|
|
223689
223701
|
const outcome = await this.applyPullItem(meta, table, pk, tsCol, repo, it);
|
|
223690
223702
|
if (outcome === "applied")
|
|
223691
223703
|
applied++;
|
|
@@ -223732,9 +223744,9 @@ var DatasyncService = class DatasyncService2 {
|
|
|
223732
223744
|
});
|
|
223733
223745
|
const fields = {
|
|
223734
223746
|
parents: typeof it.parents === "string" ? it.parents : JSON.stringify(it.parents ?? []),
|
|
223735
|
-
hmUserId:
|
|
223747
|
+
hmUserId: String(it.hmUserId),
|
|
223736
223748
|
deviceId: String(it.deviceId ?? ""),
|
|
223737
|
-
originTenantId: it.originTenantId
|
|
223749
|
+
originTenantId: it.originTenantId == null ? null : String(it.originTenantId),
|
|
223738
223750
|
payload: typeof it.payload === "string" ? it.payload : JSON.stringify(it.payload ?? null),
|
|
223739
223751
|
updatedAt: String(it.updatedAt),
|
|
223740
223752
|
deleted: Number(it.deleted ?? 0)
|
|
@@ -223992,14 +224004,15 @@ var __param11 = function(paramIndex, decorator) {
|
|
|
223992
224004
|
};
|
|
223993
224005
|
};
|
|
223994
224006
|
var CollabJobcaseService_1;
|
|
224007
|
+
var COLLAB_REF_PATTERN = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}):(\d+)$/;
|
|
223995
224008
|
function parseRef(ref) {
|
|
223996
|
-
const m =
|
|
224009
|
+
const m = COLLAB_REF_PATTERN.exec(String(ref ?? ""));
|
|
223997
224010
|
if (!m)
|
|
223998
|
-
throw new import_common21.BadRequestException(`bad ref: ${ref}(\u671F\u671B
|
|
223999
|
-
return { owner:
|
|
224011
|
+
throw new import_common21.BadRequestException(`bad ref: ${ref}(\u671F\u671B uuidOwner:localId)`);
|
|
224012
|
+
return { owner: m[1], key: Number(m[2]) };
|
|
224000
224013
|
}
|
|
224001
224014
|
function isRef(idOrRef) {
|
|
224002
|
-
return
|
|
224015
|
+
return COLLAB_REF_PATTERN.test(String(idOrRef ?? ""));
|
|
224003
224016
|
}
|
|
224004
224017
|
var CollabJobcaseService = CollabJobcaseService_1 = class CollabJobcaseService2 {
|
|
224005
224018
|
proxy;
|
|
@@ -224042,7 +224055,7 @@ var CollabJobcaseService = CollabJobcaseService_1 = class CollabJobcaseService2
|
|
|
224042
224055
|
});
|
|
224043
224056
|
const posted = new Set(rows.map((r) => r.jobCaseId));
|
|
224044
224057
|
const before = data.items.length;
|
|
224045
|
-
data.items = data.items.filter((it) => posted.has(
|
|
224058
|
+
data.items = data.items.filter((it) => posted.has(parseRef(it.ref).key));
|
|
224046
224059
|
data.total -= before - data.items.length;
|
|
224047
224060
|
return data;
|
|
224048
224061
|
}
|
|
@@ -224120,7 +224133,7 @@ var CollabJobcaseService = CollabJobcaseService_1 = class CollabJobcaseService2
|
|
|
224120
224133
|
}
|
|
224121
224134
|
assertRef(idOrRef) {
|
|
224122
224135
|
if (!isRef(idOrRef)) {
|
|
224123
|
-
throw new import_common21.NotFoundException("\u670D\u52A1\u5668\u6A21\u5F0F\u4E0B\u8BF7\u4F7F\u7528 ref(
|
|
224136
|
+
throw new import_common21.NotFoundException("\u670D\u52A1\u5668\u6A21\u5F0F\u4E0B\u8BF7\u4F7F\u7528 ref(uuidOwner:localId)\u8BBF\u95EE\u804C\u4F4D;\u672C\u5730 int id \u4EC5\u672C\u5730\u6A21\u5F0F\u53EF\u7528");
|
|
224124
224137
|
}
|
|
224125
224138
|
return idOrRef;
|
|
224126
224139
|
}
|
|
@@ -224261,8 +224274,8 @@ var JobcaseController = class JobcaseController2 {
|
|
|
224261
224274
|
message: "\u6761\u4EF6\u53E0\u52A0\u6682\u672A\u4E0A\u534F\u4F5C\u670D\u52A1(\u6570\u636E\u5DF2\u4E0A\u4E91,\u8BE5\u529F\u80FD\u540E\u7EED\u8865)"
|
|
224262
224275
|
});
|
|
224263
224276
|
}
|
|
224264
|
-
const fromUserId =
|
|
224265
|
-
if (!
|
|
224277
|
+
const fromUserId = body?.fromUserId?.trim();
|
|
224278
|
+
if (!fromUserId) {
|
|
224266
224279
|
throw new import_common22.BadRequestException("fromUserId required");
|
|
224267
224280
|
}
|
|
224268
224281
|
return this.service.mergeCriteria(parseInt(id, 10), req.user?.userId, fromUserId, body?.mode === "apply" ? "apply" : "preview");
|
|
@@ -224276,8 +224289,8 @@ var JobcaseController = class JobcaseController2 {
|
|
|
224276
224289
|
}
|
|
224277
224290
|
async transferOp(id, body, req) {
|
|
224278
224291
|
await this.rejectRefInLocal(req, id);
|
|
224279
|
-
const userId =
|
|
224280
|
-
if (!
|
|
224292
|
+
const userId = body?.userId?.trim();
|
|
224293
|
+
if (!userId)
|
|
224281
224294
|
throw new import_common22.BadRequestException("userId required");
|
|
224282
224295
|
const remote = await this.collabMode.remoteOrWrite(req, async () => this.collabJobcase.transferOp(req, await this.refOf(req, id), userId));
|
|
224283
224296
|
if (remote !== null)
|
|
@@ -224286,8 +224299,8 @@ var JobcaseController = class JobcaseController2 {
|
|
|
224286
224299
|
}
|
|
224287
224300
|
async addRs(id, body, req) {
|
|
224288
224301
|
await this.rejectRefInLocal(req, id);
|
|
224289
|
-
const userId =
|
|
224290
|
-
if (!
|
|
224302
|
+
const userId = body?.userId?.trim();
|
|
224303
|
+
if (!userId)
|
|
224291
224304
|
throw new import_common22.BadRequestException("userId required");
|
|
224292
224305
|
const remote = await this.collabMode.remoteOrWrite(req, async () => this.collabJobcase.addRs(req, await this.refOf(req, id), userId));
|
|
224293
224306
|
if (remote !== null)
|
|
@@ -224296,10 +224309,10 @@ var JobcaseController = class JobcaseController2 {
|
|
|
224296
224309
|
}
|
|
224297
224310
|
async removeRs(id, userId, req) {
|
|
224298
224311
|
await this.rejectRefInLocal(req, id);
|
|
224299
|
-
const remote = await this.collabMode.remoteOrWrite(req, async () => this.collabJobcase.removeRs(req, await this.refOf(req, id),
|
|
224312
|
+
const remote = await this.collabMode.remoteOrWrite(req, async () => this.collabJobcase.removeRs(req, await this.refOf(req, id), userId));
|
|
224300
224313
|
if (remote !== null)
|
|
224301
224314
|
return remote;
|
|
224302
|
-
return this.service.removeRs(parseInt(id, 10),
|
|
224315
|
+
return this.service.removeRs(parseInt(id, 10), userId, req.user?.userId);
|
|
224303
224316
|
}
|
|
224304
224317
|
async listPostings(id, req) {
|
|
224305
224318
|
return this.service.listPostings(await this.localIdOf(req, id));
|
|
@@ -224865,55 +224878,55 @@ __decorate73([
|
|
|
224865
224878
|
], CompanyController.prototype, "create", null);
|
|
224866
224879
|
__decorate73([
|
|
224867
224880
|
(0, import_common25.Post)("applications/:id/decide"),
|
|
224868
|
-
__param15(0, (0, import_common25.Param)("id"
|
|
224881
|
+
__param15(0, (0, import_common25.Param)("id")),
|
|
224869
224882
|
__param15(1, (0, import_common25.Body)()),
|
|
224870
224883
|
__param15(2, (0, import_common25.Res)()),
|
|
224871
224884
|
__metadata68("design:type", Function),
|
|
224872
|
-
__metadata68("design:paramtypes", [
|
|
224885
|
+
__metadata68("design:paramtypes", [String, Object, Object]),
|
|
224873
224886
|
__metadata68("design:returntype", Promise)
|
|
224874
224887
|
], CompanyController.prototype, "decide", null);
|
|
224875
224888
|
__decorate73([
|
|
224876
224889
|
(0, import_common25.Post)(":id/apply"),
|
|
224877
|
-
__param15(0, (0, import_common25.Param)("id"
|
|
224890
|
+
__param15(0, (0, import_common25.Param)("id")),
|
|
224878
224891
|
__param15(1, (0, import_common25.Body)()),
|
|
224879
224892
|
__param15(2, (0, import_common25.Res)()),
|
|
224880
224893
|
__metadata68("design:type", Function),
|
|
224881
|
-
__metadata68("design:paramtypes", [
|
|
224894
|
+
__metadata68("design:paramtypes", [String, Object, Object]),
|
|
224882
224895
|
__metadata68("design:returntype", Promise)
|
|
224883
224896
|
], CompanyController.prototype, "apply", null);
|
|
224884
224897
|
__decorate73([
|
|
224885
224898
|
(0, import_common25.Get)(":id/applications"),
|
|
224886
|
-
__param15(0, (0, import_common25.Param)("id"
|
|
224899
|
+
__param15(0, (0, import_common25.Param)("id")),
|
|
224887
224900
|
__param15(1, (0, import_common25.Query)("status")),
|
|
224888
224901
|
__param15(2, (0, import_common25.Res)()),
|
|
224889
224902
|
__metadata68("design:type", Function),
|
|
224890
|
-
__metadata68("design:paramtypes", [
|
|
224903
|
+
__metadata68("design:paramtypes", [String, String, Object]),
|
|
224891
224904
|
__metadata68("design:returntype", Promise)
|
|
224892
224905
|
], CompanyController.prototype, "applications", null);
|
|
224893
224906
|
__decorate73([
|
|
224894
224907
|
(0, import_common25.Get)(":id/members"),
|
|
224895
|
-
__param15(0, (0, import_common25.Param)("id"
|
|
224908
|
+
__param15(0, (0, import_common25.Param)("id")),
|
|
224896
224909
|
__param15(1, (0, import_common25.Res)()),
|
|
224897
224910
|
__metadata68("design:type", Function),
|
|
224898
|
-
__metadata68("design:paramtypes", [
|
|
224911
|
+
__metadata68("design:paramtypes", [String, Object]),
|
|
224899
224912
|
__metadata68("design:returntype", Promise)
|
|
224900
224913
|
], CompanyController.prototype, "members", null);
|
|
224901
224914
|
__decorate73([
|
|
224902
224915
|
(0, import_common25.Post)(":id/admins"),
|
|
224903
|
-
__param15(0, (0, import_common25.Param)("id"
|
|
224916
|
+
__param15(0, (0, import_common25.Param)("id")),
|
|
224904
224917
|
__param15(1, (0, import_common25.Body)()),
|
|
224905
224918
|
__param15(2, (0, import_common25.Res)()),
|
|
224906
224919
|
__metadata68("design:type", Function),
|
|
224907
|
-
__metadata68("design:paramtypes", [
|
|
224920
|
+
__metadata68("design:paramtypes", [String, Object, Object]),
|
|
224908
224921
|
__metadata68("design:returntype", Promise)
|
|
224909
224922
|
], CompanyController.prototype, "setAdmin", null);
|
|
224910
224923
|
__decorate73([
|
|
224911
224924
|
(0, import_common25.Post)(":id/transfer-ownership"),
|
|
224912
|
-
__param15(0, (0, import_common25.Param)("id"
|
|
224925
|
+
__param15(0, (0, import_common25.Param)("id")),
|
|
224913
224926
|
__param15(1, (0, import_common25.Body)()),
|
|
224914
224927
|
__param15(2, (0, import_common25.Res)()),
|
|
224915
224928
|
__metadata68("design:type", Function),
|
|
224916
|
-
__metadata68("design:paramtypes", [
|
|
224929
|
+
__metadata68("design:paramtypes", [String, Object, Object]),
|
|
224917
224930
|
__metadata68("design:returntype", Promise)
|
|
224918
224931
|
], CompanyController.prototype, "transfer", null);
|
|
224919
224932
|
CompanyController = __decorate73([
|
|
@@ -225988,7 +226001,7 @@ var CollabRecommendationService = class CollabRecommendationService2 {
|
|
|
225988
226001
|
if (raw == null || raw === "")
|
|
225989
226002
|
return void 0;
|
|
225990
226003
|
const s = String(raw);
|
|
225991
|
-
return s
|
|
226004
|
+
return isRef(s) ? s : `${req.user.userId}:${Number(s)}`;
|
|
225992
226005
|
}
|
|
225993
226006
|
async create(req, dto) {
|
|
225994
226007
|
const activeTenantId = await this.mode.activeTenantId();
|
|
@@ -297199,9 +297212,11 @@ var __param51 = function(paramIndex, decorator) {
|
|
|
297199
297212
|
var HealthController = class HealthController2 {
|
|
297200
297213
|
system;
|
|
297201
297214
|
schemaValidator;
|
|
297202
|
-
|
|
297215
|
+
datasync;
|
|
297216
|
+
constructor(system, schemaValidator, datasync) {
|
|
297203
297217
|
this.system = system;
|
|
297204
297218
|
this.schemaValidator = schemaValidator;
|
|
297219
|
+
this.datasync = datasync;
|
|
297205
297220
|
}
|
|
297206
297221
|
check() {
|
|
297207
297222
|
const buildInfo = this.system.getBuildInfo();
|
|
@@ -297210,7 +297225,10 @@ var HealthController = class HealthController2 {
|
|
|
297210
297225
|
service: "hunter-mate-server",
|
|
297211
297226
|
version: buildInfo.version,
|
|
297212
297227
|
buildTime: buildInfo.buildTime,
|
|
297213
|
-
pid: process.pid
|
|
297228
|
+
pid: process.pid,
|
|
297229
|
+
cloudSync: {
|
|
297230
|
+
loginState: this.datasync.getStatus().loginState
|
|
297231
|
+
}
|
|
297214
297232
|
};
|
|
297215
297233
|
}
|
|
297216
297234
|
checkDb() {
|
|
@@ -297234,7 +297252,8 @@ HealthController = __decorate141([
|
|
|
297234
297252
|
__param51(1, (0, import_common98.Inject)(SchemaValidatorService)),
|
|
297235
297253
|
__metadata114("design:paramtypes", [
|
|
297236
297254
|
SystemService,
|
|
297237
|
-
SchemaValidatorService
|
|
297255
|
+
SchemaValidatorService,
|
|
297256
|
+
DatasyncService
|
|
297238
297257
|
])
|
|
297239
297258
|
], HealthController);
|
|
297240
297259
|
|
|
@@ -306075,7 +306094,7 @@ var DoctorService = class DoctorService2 {
|
|
|
306075
306094
|
const r2 = await this.jobCaseRepo.query(`UPDATE job_cases SET status = 'active' WHERE status IN ('draft', 'active')`);
|
|
306076
306095
|
const rows = await this.jobCaseRepo.query(`SELECT DISTINCT tenantId FROM job_cases WHERE customerId IS NULL`);
|
|
306077
306096
|
for (const row of rows) {
|
|
306078
|
-
const tid = row.tenantId
|
|
306097
|
+
const tid = row.tenantId;
|
|
306079
306098
|
const key = `placeholder:tenant:${tid ?? "none"}`;
|
|
306080
306099
|
let placeholder = await this.customerRepo.findOne({ where: { dedupKey: key } });
|
|
306081
306100
|
if (!placeholder) {
|
|
@@ -307282,7 +307301,7 @@ var PreferenceService = class PreferenceService2 {
|
|
|
307282
307301
|
if (scope === "case") {
|
|
307283
307302
|
result.case = await this.layer("case", scopeId, opts?.userId);
|
|
307284
307303
|
if (opts?.customerId)
|
|
307285
|
-
result.customer = await this.layer("customer", opts.customerId, opts.userId);
|
|
307304
|
+
result.customer = await this.layer("customer", String(opts.customerId), opts.userId);
|
|
307286
307305
|
if (opts?.userId)
|
|
307287
307306
|
result.user = await this.layer("user", opts.userId, opts.userId);
|
|
307288
307307
|
} else if (scope === "customer") {
|
|
@@ -307326,7 +307345,7 @@ var PreferenceController = class PreferenceController2 {
|
|
|
307326
307345
|
return this.service.put({ ...dto, userId: req.user?.userId ?? dto.userId });
|
|
307327
307346
|
}
|
|
307328
307347
|
getMerged(req, scope, scopeId, customerId) {
|
|
307329
|
-
return this.service.getMerged(scope,
|
|
307348
|
+
return this.service.getMerged(scope, scopeId, {
|
|
307330
307349
|
customerId: customerId ? parseInt(customerId, 10) : void 0,
|
|
307331
307350
|
userId: req?.user?.userId
|
|
307332
307351
|
});
|
|
@@ -309774,25 +309793,25 @@ var MemoryController = class MemoryController2 {
|
|
|
309774
309793
|
return this.service.distill();
|
|
309775
309794
|
}
|
|
309776
309795
|
approveSystem(id) {
|
|
309777
|
-
return this.service.approveSystem(
|
|
309796
|
+
return this.service.approveSystem(id);
|
|
309778
309797
|
}
|
|
309779
309798
|
deprecateSystem(id) {
|
|
309780
|
-
return this.service.deprecateSystem(
|
|
309799
|
+
return this.service.deprecateSystem(id);
|
|
309781
309800
|
}
|
|
309782
309801
|
restoreOps(id) {
|
|
309783
|
-
return this.service.restoreOps(
|
|
309802
|
+
return this.service.restoreOps(id);
|
|
309784
309803
|
}
|
|
309785
309804
|
deprecateOps(id) {
|
|
309786
|
-
return this.service.deprecateOps(
|
|
309805
|
+
return this.service.deprecateOps(id);
|
|
309787
309806
|
}
|
|
309788
309807
|
update(id, dto, req) {
|
|
309789
|
-
return this.service.update(
|
|
309808
|
+
return this.service.update(id, dto, req.user?.userId);
|
|
309790
309809
|
}
|
|
309791
309810
|
remove(id, req) {
|
|
309792
|
-
return this.service.remove(
|
|
309811
|
+
return this.service.remove(id, req.user?.userId);
|
|
309793
309812
|
}
|
|
309794
309813
|
feedback(id, req) {
|
|
309795
|
-
return this.service.feedback(
|
|
309814
|
+
return this.service.feedback(id, req.user?.userId);
|
|
309796
309815
|
}
|
|
309797
309816
|
};
|
|
309798
309817
|
__decorate207([
|