@memberjunction/server 5.24.0 → 5.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/skip-sdk.d.ts +12 -0
- package/dist/agents/skip-sdk.d.ts.map +1 -1
- package/dist/agents/skip-sdk.js +70 -1
- package/dist/agents/skip-sdk.js.map +1 -1
- package/dist/config.d.ts +70 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +21 -0
- package/dist/config.js.map +1 -1
- package/dist/generated/generated.d.ts +498 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +2755 -0
- package/dist/generated/generated.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/dist/resolvers/ArtifactFileResolver.d.ts +15 -0
- package/dist/resolvers/ArtifactFileResolver.d.ts.map +1 -0
- package/dist/resolvers/ArtifactFileResolver.js +74 -0
- package/dist/resolvers/ArtifactFileResolver.js.map +1 -0
- package/dist/resolvers/AutotagPipelineResolver.d.ts +13 -0
- package/dist/resolvers/AutotagPipelineResolver.d.ts.map +1 -1
- package/dist/resolvers/AutotagPipelineResolver.js +103 -3
- package/dist/resolvers/AutotagPipelineResolver.js.map +1 -1
- package/dist/resolvers/CacheStatsResolver.d.ts +31 -0
- package/dist/resolvers/CacheStatsResolver.d.ts.map +1 -0
- package/dist/resolvers/CacheStatsResolver.js +181 -0
- package/dist/resolvers/CacheStatsResolver.js.map +1 -0
- package/dist/resolvers/FileResolver.d.ts.map +1 -1
- package/dist/resolvers/FileResolver.js +12 -32
- package/dist/resolvers/FileResolver.js.map +1 -1
- package/dist/resolvers/GeoResolver.d.ts +58 -0
- package/dist/resolvers/GeoResolver.d.ts.map +1 -0
- package/dist/resolvers/GeoResolver.js +302 -0
- package/dist/resolvers/GeoResolver.js.map +1 -0
- package/dist/resolvers/RunAIAgentResolver.d.ts +13 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +115 -20
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/SearchKnowledgeResolver.d.ts +21 -80
- package/dist/resolvers/SearchKnowledgeResolver.d.ts.map +1 -1
- package/dist/resolvers/SearchKnowledgeResolver.js +129 -604
- package/dist/resolvers/SearchKnowledgeResolver.js.map +1 -1
- package/dist/resolvers/SearchKnowledgeSystemUserResolver.d.ts +19 -0
- package/dist/resolvers/SearchKnowledgeSystemUserResolver.d.ts.map +1 -0
- package/dist/resolvers/SearchKnowledgeSystemUserResolver.js +149 -0
- package/dist/resolvers/SearchKnowledgeSystemUserResolver.js.map +1 -0
- package/package.json +66 -63
- package/src/__tests__/search-knowledge-tags.test.ts +177 -337
- package/src/__tests__/skip-sdk-organic-keys.test.ts +274 -0
- package/src/agents/skip-sdk.ts +83 -2
- package/src/config.ts +24 -0
- package/src/generated/generated.ts +1902 -1
- package/src/index.ts +18 -2
- package/src/resolvers/ArtifactFileResolver.ts +71 -0
- package/src/resolvers/AutotagPipelineResolver.ts +118 -4
- package/src/resolvers/CacheStatsResolver.ts +142 -0
- package/src/resolvers/FileResolver.ts +12 -41
- package/src/resolvers/GeoResolver.ts +258 -0
- package/src/resolvers/RunAIAgentResolver.ts +137 -23
- package/src/resolvers/SearchKnowledgeResolver.ts +114 -715
- package/src/resolvers/SearchKnowledgeSystemUserResolver.ts +138 -0
|
@@ -4473,11 +4473,21 @@ __decorate([
|
|
|
4473
4473
|
Field(),
|
|
4474
4474
|
__metadata("design:type", Date)
|
|
4475
4475
|
], MJAIAgentCategory_.prototype, "_mj__UpdatedAt", void 0);
|
|
4476
|
+
__decorate([
|
|
4477
|
+
Field({ nullable: true, description: `Default file storage account for agents in this category. Inherited by child categories that do not define their own value — resolution walks up the ParentID tree until a non-null value is found. Overrides the Type-level default. FK to FileStorageAccount.` }),
|
|
4478
|
+
MaxLength(36),
|
|
4479
|
+
__metadata("design:type", String)
|
|
4480
|
+
], MJAIAgentCategory_.prototype, "DefaultStorageAccountID", void 0);
|
|
4476
4481
|
__decorate([
|
|
4477
4482
|
Field({ nullable: true }),
|
|
4478
4483
|
MaxLength(200),
|
|
4479
4484
|
__metadata("design:type", String)
|
|
4480
4485
|
], MJAIAgentCategory_.prototype, "Parent", void 0);
|
|
4486
|
+
__decorate([
|
|
4487
|
+
Field({ nullable: true }),
|
|
4488
|
+
MaxLength(200),
|
|
4489
|
+
__metadata("design:type", String)
|
|
4490
|
+
], MJAIAgentCategory_.prototype, "DefaultStorageAccount", void 0);
|
|
4481
4491
|
__decorate([
|
|
4482
4492
|
Field({ nullable: true }),
|
|
4483
4493
|
MaxLength(36),
|
|
@@ -4524,6 +4534,10 @@ __decorate([
|
|
|
4524
4534
|
Field({ nullable: true }),
|
|
4525
4535
|
__metadata("design:type", String)
|
|
4526
4536
|
], CreateMJAIAgentCategoryInput.prototype, "Status", void 0);
|
|
4537
|
+
__decorate([
|
|
4538
|
+
Field({ nullable: true }),
|
|
4539
|
+
__metadata("design:type", String)
|
|
4540
|
+
], CreateMJAIAgentCategoryInput.prototype, "DefaultStorageAccountID", void 0);
|
|
4527
4541
|
CreateMJAIAgentCategoryInput = __decorate([
|
|
4528
4542
|
InputType()
|
|
4529
4543
|
], CreateMJAIAgentCategoryInput);
|
|
@@ -4557,6 +4571,10 @@ __decorate([
|
|
|
4557
4571
|
Field({ nullable: true }),
|
|
4558
4572
|
__metadata("design:type", String)
|
|
4559
4573
|
], UpdateMJAIAgentCategoryInput.prototype, "Status", void 0);
|
|
4574
|
+
__decorate([
|
|
4575
|
+
Field({ nullable: true }),
|
|
4576
|
+
__metadata("design:type", String)
|
|
4577
|
+
], UpdateMJAIAgentCategoryInput.prototype, "DefaultStorageAccountID", void 0);
|
|
4560
4578
|
__decorate([
|
|
4561
4579
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
4562
4580
|
__metadata("design:type", Array)
|
|
@@ -12171,11 +12189,21 @@ __decorate([
|
|
|
12171
12189
|
Field({ nullable: true, description: `JSON-serialized AgentRequestAssignmentStrategy defining the default assignment strategy for all agents of this type. Overridden by per-invocation or category-level strategies in the resolution chain.` }),
|
|
12172
12190
|
__metadata("design:type", String)
|
|
12173
12191
|
], MJAIAgentType_.prototype, "AssignmentStrategy", void 0);
|
|
12192
|
+
__decorate([
|
|
12193
|
+
Field({ nullable: true, description: `Default file storage account for agents of this type. Lowest priority in the resolution chain (Type → Category tree → Agent → Runtime override). When set, all agents of this type use this storage account unless overridden at a more specific level. FK to FileStorageAccount.` }),
|
|
12194
|
+
MaxLength(36),
|
|
12195
|
+
__metadata("design:type", String)
|
|
12196
|
+
], MJAIAgentType_.prototype, "DefaultStorageAccountID", void 0);
|
|
12174
12197
|
__decorate([
|
|
12175
12198
|
Field({ nullable: true }),
|
|
12176
12199
|
MaxLength(255),
|
|
12177
12200
|
__metadata("design:type", String)
|
|
12178
12201
|
], MJAIAgentType_.prototype, "SystemPrompt", void 0);
|
|
12202
|
+
__decorate([
|
|
12203
|
+
Field({ nullable: true }),
|
|
12204
|
+
MaxLength(200),
|
|
12205
|
+
__metadata("design:type", String)
|
|
12206
|
+
], MJAIAgentType_.prototype, "DefaultStorageAccount", void 0);
|
|
12179
12207
|
__decorate([
|
|
12180
12208
|
Field(() => [MJAIAgent_]),
|
|
12181
12209
|
__metadata("design:type", Array)
|
|
@@ -12237,6 +12265,10 @@ __decorate([
|
|
|
12237
12265
|
Field({ nullable: true }),
|
|
12238
12266
|
__metadata("design:type", String)
|
|
12239
12267
|
], CreateMJAIAgentTypeInput.prototype, "AssignmentStrategy", void 0);
|
|
12268
|
+
__decorate([
|
|
12269
|
+
Field({ nullable: true }),
|
|
12270
|
+
__metadata("design:type", String)
|
|
12271
|
+
], CreateMJAIAgentTypeInput.prototype, "DefaultStorageAccountID", void 0);
|
|
12240
12272
|
CreateMJAIAgentTypeInput = __decorate([
|
|
12241
12273
|
InputType()
|
|
12242
12274
|
], CreateMJAIAgentTypeInput);
|
|
@@ -12294,6 +12326,10 @@ __decorate([
|
|
|
12294
12326
|
Field({ nullable: true }),
|
|
12295
12327
|
__metadata("design:type", String)
|
|
12296
12328
|
], UpdateMJAIAgentTypeInput.prototype, "AssignmentStrategy", void 0);
|
|
12329
|
+
__decorate([
|
|
12330
|
+
Field({ nullable: true }),
|
|
12331
|
+
__metadata("design:type", String)
|
|
12332
|
+
], UpdateMJAIAgentTypeInput.prototype, "DefaultStorageAccountID", void 0);
|
|
12297
12333
|
__decorate([
|
|
12298
12334
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
12299
12335
|
__metadata("design:type", Array)
|
|
@@ -12748,6 +12784,11 @@ __decorate([
|
|
|
12748
12784
|
Field(() => Boolean, { description: `When true (default), this agent accepts runtime-registered ephemeral client tools that are not defined in metadata. Set to false for agents that require strict tool governance.` }),
|
|
12749
12785
|
__metadata("design:type", Boolean)
|
|
12750
12786
|
], MJAIAgent_.prototype, "AllowEphemeralClientTools", void 0);
|
|
12787
|
+
__decorate([
|
|
12788
|
+
Field({ nullable: true, description: `Default file storage account for this specific agent. Overrides both Type-level and Category-level defaults. Can be further overridden at runtime via ExecuteAgentParams.override.storageAccountId. FK to FileStorageAccount.` }),
|
|
12789
|
+
MaxLength(36),
|
|
12790
|
+
__metadata("design:type", String)
|
|
12791
|
+
], MJAIAgent_.prototype, "DefaultStorageAccountID", void 0);
|
|
12751
12792
|
__decorate([
|
|
12752
12793
|
Field({ nullable: true }),
|
|
12753
12794
|
MaxLength(255),
|
|
@@ -12783,6 +12824,11 @@ __decorate([
|
|
|
12783
12824
|
MaxLength(200),
|
|
12784
12825
|
__metadata("design:type", String)
|
|
12785
12826
|
], MJAIAgent_.prototype, "Category", void 0);
|
|
12827
|
+
__decorate([
|
|
12828
|
+
Field({ nullable: true }),
|
|
12829
|
+
MaxLength(200),
|
|
12830
|
+
__metadata("design:type", String)
|
|
12831
|
+
], MJAIAgent_.prototype, "DefaultStorageAccount", void 0);
|
|
12786
12832
|
__decorate([
|
|
12787
12833
|
Field({ nullable: true }),
|
|
12788
12834
|
MaxLength(36),
|
|
@@ -13133,6 +13179,10 @@ __decorate([
|
|
|
13133
13179
|
Field(() => Boolean, { nullable: true }),
|
|
13134
13180
|
__metadata("design:type", Boolean)
|
|
13135
13181
|
], CreateMJAIAgentInput.prototype, "AllowEphemeralClientTools", void 0);
|
|
13182
|
+
__decorate([
|
|
13183
|
+
Field({ nullable: true }),
|
|
13184
|
+
__metadata("design:type", String)
|
|
13185
|
+
], CreateMJAIAgentInput.prototype, "DefaultStorageAccountID", void 0);
|
|
13136
13186
|
CreateMJAIAgentInput = __decorate([
|
|
13137
13187
|
InputType()
|
|
13138
13188
|
], CreateMJAIAgentInput);
|
|
@@ -13386,6 +13436,10 @@ __decorate([
|
|
|
13386
13436
|
Field(() => Boolean, { nullable: true }),
|
|
13387
13437
|
__metadata("design:type", Boolean)
|
|
13388
13438
|
], UpdateMJAIAgentInput.prototype, "AllowEphemeralClientTools", void 0);
|
|
13439
|
+
__decorate([
|
|
13440
|
+
Field({ nullable: true }),
|
|
13441
|
+
__metadata("design:type", String)
|
|
13442
|
+
], UpdateMJAIAgentInput.prototype, "DefaultStorageAccountID", void 0);
|
|
13389
13443
|
__decorate([
|
|
13390
13444
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
13391
13445
|
__metadata("design:type", Array)
|
|
@@ -27063,6 +27117,259 @@ MJApplicationEntityResolver = __decorate([
|
|
|
27063
27117
|
], MJApplicationEntityResolver);
|
|
27064
27118
|
export { MJApplicationEntityResolver };
|
|
27065
27119
|
//****************************************************************************
|
|
27120
|
+
// ENTITY CLASS for MJ: Application Roles
|
|
27121
|
+
//****************************************************************************
|
|
27122
|
+
let MJApplicationRole_ = class MJApplicationRole_ {
|
|
27123
|
+
};
|
|
27124
|
+
__decorate([
|
|
27125
|
+
Field(),
|
|
27126
|
+
MaxLength(36),
|
|
27127
|
+
__metadata("design:type", String)
|
|
27128
|
+
], MJApplicationRole_.prototype, "ID", void 0);
|
|
27129
|
+
__decorate([
|
|
27130
|
+
Field({ description: `Foreign key to the Application this role grant applies to` }),
|
|
27131
|
+
MaxLength(36),
|
|
27132
|
+
__metadata("design:type", String)
|
|
27133
|
+
], MJApplicationRole_.prototype, "ApplicationID", void 0);
|
|
27134
|
+
__decorate([
|
|
27135
|
+
Field({ description: `Foreign key to the Role being granted or denied access` }),
|
|
27136
|
+
MaxLength(36),
|
|
27137
|
+
__metadata("design:type", String)
|
|
27138
|
+
], MJApplicationRole_.prototype, "RoleID", void 0);
|
|
27139
|
+
__decorate([
|
|
27140
|
+
Field(() => Boolean, { description: `When true, users in this role can access the application. When false, this record acts as an explicit deny for the role.` }),
|
|
27141
|
+
__metadata("design:type", Boolean)
|
|
27142
|
+
], MJApplicationRole_.prototype, "CanAccess", void 0);
|
|
27143
|
+
__decorate([
|
|
27144
|
+
Field(() => Boolean, { description: `When true, users in this role can modify application settings, manage nav items, and configure the application.` }),
|
|
27145
|
+
__metadata("design:type", Boolean)
|
|
27146
|
+
], MJApplicationRole_.prototype, "CanAdmin", void 0);
|
|
27147
|
+
__decorate([
|
|
27148
|
+
Field(),
|
|
27149
|
+
__metadata("design:type", Date)
|
|
27150
|
+
], MJApplicationRole_.prototype, "_mj__CreatedAt", void 0);
|
|
27151
|
+
__decorate([
|
|
27152
|
+
Field(),
|
|
27153
|
+
__metadata("design:type", Date)
|
|
27154
|
+
], MJApplicationRole_.prototype, "_mj__UpdatedAt", void 0);
|
|
27155
|
+
__decorate([
|
|
27156
|
+
Field(),
|
|
27157
|
+
MaxLength(100),
|
|
27158
|
+
__metadata("design:type", String)
|
|
27159
|
+
], MJApplicationRole_.prototype, "Application", void 0);
|
|
27160
|
+
__decorate([
|
|
27161
|
+
Field(),
|
|
27162
|
+
MaxLength(50),
|
|
27163
|
+
__metadata("design:type", String)
|
|
27164
|
+
], MJApplicationRole_.prototype, "Role", void 0);
|
|
27165
|
+
MJApplicationRole_ = __decorate([
|
|
27166
|
+
ObjectType({ description: `Controls which roles can access and administer specific applications. When no ApplicationRole records exist for an application, all roles can access it (open access). When at least one record exists, only roles with CanAccess=1 are permitted.` })
|
|
27167
|
+
], MJApplicationRole_);
|
|
27168
|
+
export { MJApplicationRole_ };
|
|
27169
|
+
//****************************************************************************
|
|
27170
|
+
// INPUT TYPE for MJ: Application Roles
|
|
27171
|
+
//****************************************************************************
|
|
27172
|
+
let CreateMJApplicationRoleInput = class CreateMJApplicationRoleInput {
|
|
27173
|
+
};
|
|
27174
|
+
__decorate([
|
|
27175
|
+
Field({ nullable: true }),
|
|
27176
|
+
__metadata("design:type", String)
|
|
27177
|
+
], CreateMJApplicationRoleInput.prototype, "ID", void 0);
|
|
27178
|
+
__decorate([
|
|
27179
|
+
Field({ nullable: true }),
|
|
27180
|
+
__metadata("design:type", String)
|
|
27181
|
+
], CreateMJApplicationRoleInput.prototype, "ApplicationID", void 0);
|
|
27182
|
+
__decorate([
|
|
27183
|
+
Field({ nullable: true }),
|
|
27184
|
+
__metadata("design:type", String)
|
|
27185
|
+
], CreateMJApplicationRoleInput.prototype, "RoleID", void 0);
|
|
27186
|
+
__decorate([
|
|
27187
|
+
Field(() => Boolean, { nullable: true }),
|
|
27188
|
+
__metadata("design:type", Boolean)
|
|
27189
|
+
], CreateMJApplicationRoleInput.prototype, "CanAccess", void 0);
|
|
27190
|
+
__decorate([
|
|
27191
|
+
Field(() => Boolean, { nullable: true }),
|
|
27192
|
+
__metadata("design:type", Boolean)
|
|
27193
|
+
], CreateMJApplicationRoleInput.prototype, "CanAdmin", void 0);
|
|
27194
|
+
CreateMJApplicationRoleInput = __decorate([
|
|
27195
|
+
InputType()
|
|
27196
|
+
], CreateMJApplicationRoleInput);
|
|
27197
|
+
export { CreateMJApplicationRoleInput };
|
|
27198
|
+
//****************************************************************************
|
|
27199
|
+
// INPUT TYPE for MJ: Application Roles
|
|
27200
|
+
//****************************************************************************
|
|
27201
|
+
let UpdateMJApplicationRoleInput = class UpdateMJApplicationRoleInput {
|
|
27202
|
+
};
|
|
27203
|
+
__decorate([
|
|
27204
|
+
Field(),
|
|
27205
|
+
__metadata("design:type", String)
|
|
27206
|
+
], UpdateMJApplicationRoleInput.prototype, "ID", void 0);
|
|
27207
|
+
__decorate([
|
|
27208
|
+
Field({ nullable: true }),
|
|
27209
|
+
__metadata("design:type", String)
|
|
27210
|
+
], UpdateMJApplicationRoleInput.prototype, "ApplicationID", void 0);
|
|
27211
|
+
__decorate([
|
|
27212
|
+
Field({ nullable: true }),
|
|
27213
|
+
__metadata("design:type", String)
|
|
27214
|
+
], UpdateMJApplicationRoleInput.prototype, "RoleID", void 0);
|
|
27215
|
+
__decorate([
|
|
27216
|
+
Field(() => Boolean, { nullable: true }),
|
|
27217
|
+
__metadata("design:type", Boolean)
|
|
27218
|
+
], UpdateMJApplicationRoleInput.prototype, "CanAccess", void 0);
|
|
27219
|
+
__decorate([
|
|
27220
|
+
Field(() => Boolean, { nullable: true }),
|
|
27221
|
+
__metadata("design:type", Boolean)
|
|
27222
|
+
], UpdateMJApplicationRoleInput.prototype, "CanAdmin", void 0);
|
|
27223
|
+
__decorate([
|
|
27224
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
27225
|
+
__metadata("design:type", Array)
|
|
27226
|
+
], UpdateMJApplicationRoleInput.prototype, "OldValues___", void 0);
|
|
27227
|
+
UpdateMJApplicationRoleInput = __decorate([
|
|
27228
|
+
InputType()
|
|
27229
|
+
], UpdateMJApplicationRoleInput);
|
|
27230
|
+
export { UpdateMJApplicationRoleInput };
|
|
27231
|
+
//****************************************************************************
|
|
27232
|
+
// RESOLVER for MJ: Application Roles
|
|
27233
|
+
//****************************************************************************
|
|
27234
|
+
let RunMJApplicationRoleViewResult = class RunMJApplicationRoleViewResult {
|
|
27235
|
+
};
|
|
27236
|
+
__decorate([
|
|
27237
|
+
Field(() => [MJApplicationRole_]),
|
|
27238
|
+
__metadata("design:type", Array)
|
|
27239
|
+
], RunMJApplicationRoleViewResult.prototype, "Results", void 0);
|
|
27240
|
+
__decorate([
|
|
27241
|
+
Field(() => String, { nullable: true }),
|
|
27242
|
+
__metadata("design:type", String)
|
|
27243
|
+
], RunMJApplicationRoleViewResult.prototype, "UserViewRunID", void 0);
|
|
27244
|
+
__decorate([
|
|
27245
|
+
Field(() => Int, { nullable: true }),
|
|
27246
|
+
__metadata("design:type", Number)
|
|
27247
|
+
], RunMJApplicationRoleViewResult.prototype, "RowCount", void 0);
|
|
27248
|
+
__decorate([
|
|
27249
|
+
Field(() => Int, { nullable: true }),
|
|
27250
|
+
__metadata("design:type", Number)
|
|
27251
|
+
], RunMJApplicationRoleViewResult.prototype, "TotalRowCount", void 0);
|
|
27252
|
+
__decorate([
|
|
27253
|
+
Field(() => Int, { nullable: true }),
|
|
27254
|
+
__metadata("design:type", Number)
|
|
27255
|
+
], RunMJApplicationRoleViewResult.prototype, "ExecutionTime", void 0);
|
|
27256
|
+
__decorate([
|
|
27257
|
+
Field({ nullable: true }),
|
|
27258
|
+
__metadata("design:type", String)
|
|
27259
|
+
], RunMJApplicationRoleViewResult.prototype, "ErrorMessage", void 0);
|
|
27260
|
+
__decorate([
|
|
27261
|
+
Field(() => Boolean, { nullable: false }),
|
|
27262
|
+
__metadata("design:type", Boolean)
|
|
27263
|
+
], RunMJApplicationRoleViewResult.prototype, "Success", void 0);
|
|
27264
|
+
RunMJApplicationRoleViewResult = __decorate([
|
|
27265
|
+
ObjectType()
|
|
27266
|
+
], RunMJApplicationRoleViewResult);
|
|
27267
|
+
export { RunMJApplicationRoleViewResult };
|
|
27268
|
+
let MJApplicationRoleResolver = class MJApplicationRoleResolver extends ResolverBase {
|
|
27269
|
+
async RunMJApplicationRoleViewByID(input, { providers, userPayload }, pubSub) {
|
|
27270
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27271
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
27272
|
+
}
|
|
27273
|
+
async RunMJApplicationRoleViewByName(input, { providers, userPayload }, pubSub) {
|
|
27274
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27275
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
27276
|
+
}
|
|
27277
|
+
async RunMJApplicationRoleDynamicView(input, { providers, userPayload }, pubSub) {
|
|
27278
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27279
|
+
input.EntityName = 'MJ: Application Roles';
|
|
27280
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
27281
|
+
}
|
|
27282
|
+
async MJApplicationRole(ID, { userPayload, providers }, pubSub) {
|
|
27283
|
+
this.CheckUserReadPermissions('MJ: Application Roles', userPayload);
|
|
27284
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27285
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwApplicationRoles')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Application Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
27286
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
27287
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Application Roles', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
27288
|
+
return result;
|
|
27289
|
+
}
|
|
27290
|
+
async CreateMJApplicationRole(input, { providers, userPayload }, pubSub) {
|
|
27291
|
+
const provider = GetReadWriteProvider(providers);
|
|
27292
|
+
return this.CreateRecord('MJ: Application Roles', input, provider, userPayload, pubSub);
|
|
27293
|
+
}
|
|
27294
|
+
async UpdateMJApplicationRole(input, { providers, userPayload }, pubSub) {
|
|
27295
|
+
const provider = GetReadWriteProvider(providers);
|
|
27296
|
+
return this.UpdateRecord('MJ: Application Roles', input, provider, userPayload, pubSub);
|
|
27297
|
+
}
|
|
27298
|
+
async DeleteMJApplicationRole(ID, options, { providers, userPayload }, pubSub) {
|
|
27299
|
+
const provider = GetReadWriteProvider(providers);
|
|
27300
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
27301
|
+
return this.DeleteRecord('MJ: Application Roles', key, options, provider, userPayload, pubSub);
|
|
27302
|
+
}
|
|
27303
|
+
};
|
|
27304
|
+
__decorate([
|
|
27305
|
+
Query(() => RunMJApplicationRoleViewResult),
|
|
27306
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
27307
|
+
__param(1, Ctx()),
|
|
27308
|
+
__param(2, PubSub()),
|
|
27309
|
+
__metadata("design:type", Function),
|
|
27310
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
27311
|
+
__metadata("design:returntype", Promise)
|
|
27312
|
+
], MJApplicationRoleResolver.prototype, "RunMJApplicationRoleViewByID", null);
|
|
27313
|
+
__decorate([
|
|
27314
|
+
Query(() => RunMJApplicationRoleViewResult),
|
|
27315
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
27316
|
+
__param(1, Ctx()),
|
|
27317
|
+
__param(2, PubSub()),
|
|
27318
|
+
__metadata("design:type", Function),
|
|
27319
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
27320
|
+
__metadata("design:returntype", Promise)
|
|
27321
|
+
], MJApplicationRoleResolver.prototype, "RunMJApplicationRoleViewByName", null);
|
|
27322
|
+
__decorate([
|
|
27323
|
+
Query(() => RunMJApplicationRoleViewResult),
|
|
27324
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
27325
|
+
__param(1, Ctx()),
|
|
27326
|
+
__param(2, PubSub()),
|
|
27327
|
+
__metadata("design:type", Function),
|
|
27328
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
27329
|
+
__metadata("design:returntype", Promise)
|
|
27330
|
+
], MJApplicationRoleResolver.prototype, "RunMJApplicationRoleDynamicView", null);
|
|
27331
|
+
__decorate([
|
|
27332
|
+
Query(() => MJApplicationRole_, { nullable: true }),
|
|
27333
|
+
__param(0, Arg('ID', () => String)),
|
|
27334
|
+
__param(1, Ctx()),
|
|
27335
|
+
__param(2, PubSub()),
|
|
27336
|
+
__metadata("design:type", Function),
|
|
27337
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
27338
|
+
__metadata("design:returntype", Promise)
|
|
27339
|
+
], MJApplicationRoleResolver.prototype, "MJApplicationRole", null);
|
|
27340
|
+
__decorate([
|
|
27341
|
+
Mutation(() => MJApplicationRole_),
|
|
27342
|
+
__param(0, Arg('input', () => CreateMJApplicationRoleInput)),
|
|
27343
|
+
__param(1, Ctx()),
|
|
27344
|
+
__param(2, PubSub()),
|
|
27345
|
+
__metadata("design:type", Function),
|
|
27346
|
+
__metadata("design:paramtypes", [CreateMJApplicationRoleInput, Object, PubSubEngine]),
|
|
27347
|
+
__metadata("design:returntype", Promise)
|
|
27348
|
+
], MJApplicationRoleResolver.prototype, "CreateMJApplicationRole", null);
|
|
27349
|
+
__decorate([
|
|
27350
|
+
Mutation(() => MJApplicationRole_),
|
|
27351
|
+
__param(0, Arg('input', () => UpdateMJApplicationRoleInput)),
|
|
27352
|
+
__param(1, Ctx()),
|
|
27353
|
+
__param(2, PubSub()),
|
|
27354
|
+
__metadata("design:type", Function),
|
|
27355
|
+
__metadata("design:paramtypes", [UpdateMJApplicationRoleInput, Object, PubSubEngine]),
|
|
27356
|
+
__metadata("design:returntype", Promise)
|
|
27357
|
+
], MJApplicationRoleResolver.prototype, "UpdateMJApplicationRole", null);
|
|
27358
|
+
__decorate([
|
|
27359
|
+
Mutation(() => MJApplicationRole_),
|
|
27360
|
+
__param(0, Arg('ID', () => String)),
|
|
27361
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
27362
|
+
__param(2, Ctx()),
|
|
27363
|
+
__param(3, PubSub()),
|
|
27364
|
+
__metadata("design:type", Function),
|
|
27365
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
27366
|
+
__metadata("design:returntype", Promise)
|
|
27367
|
+
], MJApplicationRoleResolver.prototype, "DeleteMJApplicationRole", null);
|
|
27368
|
+
MJApplicationRoleResolver = __decorate([
|
|
27369
|
+
Resolver(MJApplicationRole_)
|
|
27370
|
+
], MJApplicationRoleResolver);
|
|
27371
|
+
export { MJApplicationRoleResolver };
|
|
27372
|
+
//****************************************************************************
|
|
27066
27373
|
// ENTITY CLASS for MJ: Application Settings
|
|
27067
27374
|
//****************************************************************************
|
|
27068
27375
|
let MJApplicationSetting_ = class MJApplicationSetting_ {
|
|
@@ -27416,6 +27723,10 @@ __decorate([
|
|
|
27416
27723
|
Field(() => [MJDashboardUserPreference_]),
|
|
27417
27724
|
__metadata("design:type", Array)
|
|
27418
27725
|
], MJApplication_.prototype, "MJDashboardUserPreferences_ApplicationIDArray", void 0);
|
|
27726
|
+
__decorate([
|
|
27727
|
+
Field(() => [MJApplicationRole_]),
|
|
27728
|
+
__metadata("design:type", Array)
|
|
27729
|
+
], MJApplication_.prototype, "MJApplicationRoles_ApplicationIDArray", void 0);
|
|
27419
27730
|
MJApplication_ = __decorate([
|
|
27420
27731
|
ObjectType({ description: `Applications are used to group entities in the user interface for ease of user access` })
|
|
27421
27732
|
], MJApplication_);
|
|
@@ -27677,6 +27988,14 @@ let MJApplicationResolver = class MJApplicationResolver extends ResolverBase {
|
|
|
27677
27988
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows, this.GetUserFromPayload(userPayload));
|
|
27678
27989
|
return result;
|
|
27679
27990
|
}
|
|
27991
|
+
async MJApplicationRoles_ApplicationIDArray(mjapplication_, { userPayload, providers }, pubSub) {
|
|
27992
|
+
this.CheckUserReadPermissions('MJ: Application Roles', userPayload);
|
|
27993
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
27994
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwApplicationRoles')} WHERE ${provider.QuoteIdentifier('ApplicationID')}='${mjapplication_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Application Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
27995
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
27996
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Application Roles', rows, this.GetUserFromPayload(userPayload));
|
|
27997
|
+
return result;
|
|
27998
|
+
}
|
|
27680
27999
|
async CreateMJApplication(input, { providers, userPayload }, pubSub) {
|
|
27681
28000
|
const provider = GetReadWriteProvider(providers);
|
|
27682
28001
|
return this.CreateRecord('MJ: Applications', input, provider, userPayload, pubSub);
|
|
@@ -27780,6 +28099,15 @@ __decorate([
|
|
|
27780
28099
|
__metadata("design:paramtypes", [MJApplication_, Object, PubSubEngine]),
|
|
27781
28100
|
__metadata("design:returntype", Promise)
|
|
27782
28101
|
], MJApplicationResolver.prototype, "MJDashboardUserPreferences_ApplicationIDArray", null);
|
|
28102
|
+
__decorate([
|
|
28103
|
+
FieldResolver(() => [MJApplicationRole_]),
|
|
28104
|
+
__param(0, Root()),
|
|
28105
|
+
__param(1, Ctx()),
|
|
28106
|
+
__param(2, PubSub()),
|
|
28107
|
+
__metadata("design:type", Function),
|
|
28108
|
+
__metadata("design:paramtypes", [MJApplication_, Object, PubSubEngine]),
|
|
28109
|
+
__metadata("design:returntype", Promise)
|
|
28110
|
+
], MJApplicationResolver.prototype, "MJApplicationRoles_ApplicationIDArray", null);
|
|
27783
28111
|
__decorate([
|
|
27784
28112
|
Mutation(() => MJApplication_),
|
|
27785
28113
|
__param(0, Arg('input', () => CreateMJApplicationInput)),
|
|
@@ -28162,6 +28490,11 @@ __decorate([
|
|
|
28162
28490
|
MaxLength(255),
|
|
28163
28491
|
__metadata("design:type", String)
|
|
28164
28492
|
], MJArtifactType_.prototype, "Icon", void 0);
|
|
28493
|
+
__decorate([
|
|
28494
|
+
Field({ description: `Classifies whether this artifact type stores text content ('Text', the default for all existing types) or a binary file in MJStorage ('File'). Used by AgentRunner and viewer components to route file-based artifacts correctly.` }),
|
|
28495
|
+
MaxLength(10),
|
|
28496
|
+
__metadata("design:type", String)
|
|
28497
|
+
], MJArtifactType_.prototype, "ContentCategory", void 0);
|
|
28165
28498
|
__decorate([
|
|
28166
28499
|
Field({ nullable: true }),
|
|
28167
28500
|
MaxLength(100),
|
|
@@ -28237,6 +28570,10 @@ __decorate([
|
|
|
28237
28570
|
Field({ nullable: true }),
|
|
28238
28571
|
__metadata("design:type", String)
|
|
28239
28572
|
], CreateMJArtifactTypeInput.prototype, "Icon", void 0);
|
|
28573
|
+
__decorate([
|
|
28574
|
+
Field({ nullable: true }),
|
|
28575
|
+
__metadata("design:type", String)
|
|
28576
|
+
], CreateMJArtifactTypeInput.prototype, "ContentCategory", void 0);
|
|
28240
28577
|
CreateMJArtifactTypeInput = __decorate([
|
|
28241
28578
|
InputType()
|
|
28242
28579
|
], CreateMJArtifactTypeInput);
|
|
@@ -28282,6 +28619,10 @@ __decorate([
|
|
|
28282
28619
|
Field({ nullable: true }),
|
|
28283
28620
|
__metadata("design:type", String)
|
|
28284
28621
|
], UpdateMJArtifactTypeInput.prototype, "Icon", void 0);
|
|
28622
|
+
__decorate([
|
|
28623
|
+
Field({ nullable: true }),
|
|
28624
|
+
__metadata("design:type", String)
|
|
28625
|
+
], UpdateMJArtifactTypeInput.prototype, "ContentCategory", void 0);
|
|
28285
28626
|
__decorate([
|
|
28286
28627
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
28287
28628
|
__metadata("design:type", Array)
|
|
@@ -29090,6 +29431,30 @@ __decorate([
|
|
|
29090
29431
|
Field({ nullable: true, description: `Description of this artifact version. Can differ from Artifact.Description as it may evolve with versions.` }),
|
|
29091
29432
|
__metadata("design:type", String)
|
|
29092
29433
|
], MJArtifactVersion_.prototype, "Description", void 0);
|
|
29434
|
+
__decorate([
|
|
29435
|
+
Field({ nullable: true, description: `Foreign key to the MJ: Files entity. When ContentMode is 'File', this references the binary file stored in MJStorage. NULL when ContentMode is 'Text'.` }),
|
|
29436
|
+
MaxLength(36),
|
|
29437
|
+
__metadata("design:type", String)
|
|
29438
|
+
], MJArtifactVersion_.prototype, "FileID", void 0);
|
|
29439
|
+
__decorate([
|
|
29440
|
+
Field({ description: `Determines how artifact content is stored. 'Text' (default) means the Content column holds the data. 'File' means FileID references a binary file in MJStorage and Content is unused.` }),
|
|
29441
|
+
MaxLength(10),
|
|
29442
|
+
__metadata("design:type", String)
|
|
29443
|
+
], MJArtifactVersion_.prototype, "ContentMode", void 0);
|
|
29444
|
+
__decorate([
|
|
29445
|
+
Field({ nullable: true, description: `MIME type of the stored file (e.g. application/pdf). Denormalized from the File entity for display without joins. Only populated when ContentMode is 'File'.` }),
|
|
29446
|
+
MaxLength(200),
|
|
29447
|
+
__metadata("design:type", String)
|
|
29448
|
+
], MJArtifactVersion_.prototype, "MimeType", void 0);
|
|
29449
|
+
__decorate([
|
|
29450
|
+
Field({ nullable: true, description: `Original filename of the stored file (e.g. report.pdf). Denormalized from the File entity for display without joins. Only populated when ContentMode is 'File'.` }),
|
|
29451
|
+
MaxLength(500),
|
|
29452
|
+
__metadata("design:type", String)
|
|
29453
|
+
], MJArtifactVersion_.prototype, "FileName", void 0);
|
|
29454
|
+
__decorate([
|
|
29455
|
+
Field(() => Int, { nullable: true, description: `Size of the stored file in bytes. Denormalized for display without loading the file. Only populated when ContentMode is 'File'.` }),
|
|
29456
|
+
__metadata("design:type", Number)
|
|
29457
|
+
], MJArtifactVersion_.prototype, "ContentSizeBytes", void 0);
|
|
29093
29458
|
__decorate([
|
|
29094
29459
|
Field(),
|
|
29095
29460
|
MaxLength(255),
|
|
@@ -29100,6 +29465,11 @@ __decorate([
|
|
|
29100
29465
|
MaxLength(100),
|
|
29101
29466
|
__metadata("design:type", String)
|
|
29102
29467
|
], MJArtifactVersion_.prototype, "User", void 0);
|
|
29468
|
+
__decorate([
|
|
29469
|
+
Field({ nullable: true }),
|
|
29470
|
+
MaxLength(500),
|
|
29471
|
+
__metadata("design:type", String)
|
|
29472
|
+
], MJArtifactVersion_.prototype, "File", void 0);
|
|
29103
29473
|
__decorate([
|
|
29104
29474
|
Field(() => [MJArtifactVersionAttribute_]),
|
|
29105
29475
|
__metadata("design:type", Array)
|
|
@@ -29165,6 +29535,26 @@ __decorate([
|
|
|
29165
29535
|
Field({ nullable: true }),
|
|
29166
29536
|
__metadata("design:type", String)
|
|
29167
29537
|
], CreateMJArtifactVersionInput.prototype, "Description", void 0);
|
|
29538
|
+
__decorate([
|
|
29539
|
+
Field({ nullable: true }),
|
|
29540
|
+
__metadata("design:type", String)
|
|
29541
|
+
], CreateMJArtifactVersionInput.prototype, "FileID", void 0);
|
|
29542
|
+
__decorate([
|
|
29543
|
+
Field({ nullable: true }),
|
|
29544
|
+
__metadata("design:type", String)
|
|
29545
|
+
], CreateMJArtifactVersionInput.prototype, "ContentMode", void 0);
|
|
29546
|
+
__decorate([
|
|
29547
|
+
Field({ nullable: true }),
|
|
29548
|
+
__metadata("design:type", String)
|
|
29549
|
+
], CreateMJArtifactVersionInput.prototype, "MimeType", void 0);
|
|
29550
|
+
__decorate([
|
|
29551
|
+
Field({ nullable: true }),
|
|
29552
|
+
__metadata("design:type", String)
|
|
29553
|
+
], CreateMJArtifactVersionInput.prototype, "FileName", void 0);
|
|
29554
|
+
__decorate([
|
|
29555
|
+
Field(() => Int, { nullable: true }),
|
|
29556
|
+
__metadata("design:type", Number)
|
|
29557
|
+
], CreateMJArtifactVersionInput.prototype, "ContentSizeBytes", void 0);
|
|
29168
29558
|
CreateMJArtifactVersionInput = __decorate([
|
|
29169
29559
|
InputType()
|
|
29170
29560
|
], CreateMJArtifactVersionInput);
|
|
@@ -29214,6 +29604,26 @@ __decorate([
|
|
|
29214
29604
|
Field({ nullable: true }),
|
|
29215
29605
|
__metadata("design:type", String)
|
|
29216
29606
|
], UpdateMJArtifactVersionInput.prototype, "Description", void 0);
|
|
29607
|
+
__decorate([
|
|
29608
|
+
Field({ nullable: true }),
|
|
29609
|
+
__metadata("design:type", String)
|
|
29610
|
+
], UpdateMJArtifactVersionInput.prototype, "FileID", void 0);
|
|
29611
|
+
__decorate([
|
|
29612
|
+
Field({ nullable: true }),
|
|
29613
|
+
__metadata("design:type", String)
|
|
29614
|
+
], UpdateMJArtifactVersionInput.prototype, "ContentMode", void 0);
|
|
29615
|
+
__decorate([
|
|
29616
|
+
Field({ nullable: true }),
|
|
29617
|
+
__metadata("design:type", String)
|
|
29618
|
+
], UpdateMJArtifactVersionInput.prototype, "MimeType", void 0);
|
|
29619
|
+
__decorate([
|
|
29620
|
+
Field({ nullable: true }),
|
|
29621
|
+
__metadata("design:type", String)
|
|
29622
|
+
], UpdateMJArtifactVersionInput.prototype, "FileName", void 0);
|
|
29623
|
+
__decorate([
|
|
29624
|
+
Field(() => Int, { nullable: true }),
|
|
29625
|
+
__metadata("design:type", Number)
|
|
29626
|
+
], UpdateMJArtifactVersionInput.prototype, "ContentSizeBytes", void 0);
|
|
29217
29627
|
__decorate([
|
|
29218
29628
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
29219
29629
|
__metadata("design:type", Array)
|
|
@@ -45895,6 +46305,340 @@ MJConversationResolver = __decorate([
|
|
|
45895
46305
|
], MJConversationResolver);
|
|
45896
46306
|
export { MJConversationResolver };
|
|
45897
46307
|
//****************************************************************************
|
|
46308
|
+
// ENTITY CLASS for MJ: Countries
|
|
46309
|
+
//****************************************************************************
|
|
46310
|
+
let MJCountry_ = class MJCountry_ {
|
|
46311
|
+
};
|
|
46312
|
+
__decorate([
|
|
46313
|
+
Field(),
|
|
46314
|
+
MaxLength(36),
|
|
46315
|
+
__metadata("design:type", String)
|
|
46316
|
+
], MJCountry_.prototype, "ID", void 0);
|
|
46317
|
+
__decorate([
|
|
46318
|
+
Field({ description: `Full country name (e.g., "United States", "Canada").` }),
|
|
46319
|
+
MaxLength(200),
|
|
46320
|
+
__metadata("design:type", String)
|
|
46321
|
+
], MJCountry_.prototype, "Name", void 0);
|
|
46322
|
+
__decorate([
|
|
46323
|
+
Field({ description: `ISO 3166-1 alpha-2 code (e.g., "US", "CA"). Unique business key for lookups.` }),
|
|
46324
|
+
MaxLength(2),
|
|
46325
|
+
__metadata("design:type", String)
|
|
46326
|
+
], MJCountry_.prototype, "ISO2", void 0);
|
|
46327
|
+
__decorate([
|
|
46328
|
+
Field({ description: `ISO 3166-1 alpha-3 code (e.g., "USA", "CAN"). Unique business key for lookups.` }),
|
|
46329
|
+
MaxLength(3),
|
|
46330
|
+
__metadata("design:type", String)
|
|
46331
|
+
], MJCountry_.prototype, "ISO3", void 0);
|
|
46332
|
+
__decorate([
|
|
46333
|
+
Field(() => Int, { nullable: true, description: `ISO 3166-1 numeric code (e.g., 840 for US, 124 for Canada).` }),
|
|
46334
|
+
__metadata("design:type", Number)
|
|
46335
|
+
], MJCountry_.prototype, "NumericCode", void 0);
|
|
46336
|
+
__decorate([
|
|
46337
|
+
Field(() => Float, { nullable: true, description: `Geographic centroid latitude. Used as fallback point for country-level geocoding.` }),
|
|
46338
|
+
__metadata("design:type", Number)
|
|
46339
|
+
], MJCountry_.prototype, "Latitude", void 0);
|
|
46340
|
+
__decorate([
|
|
46341
|
+
Field(() => Float, { nullable: true, description: `Geographic centroid longitude. Used as fallback point for country-level geocoding.` }),
|
|
46342
|
+
__metadata("design:type", Number)
|
|
46343
|
+
], MJCountry_.prototype, "Longitude", void 0);
|
|
46344
|
+
__decorate([
|
|
46345
|
+
Field({ nullable: true, description: `Medium-resolution (~50m) GeoJSON boundary polygon for choropleth map rendering. Nullable — point map falls back to centroid if absent. Total ~3MB for all countries.` }),
|
|
46346
|
+
__metadata("design:type", String)
|
|
46347
|
+
], MJCountry_.prototype, "BoundaryGeoJSON", void 0);
|
|
46348
|
+
__decorate([
|
|
46349
|
+
Field({ nullable: true, description: `JSON array of common aliases and alternate names (e.g., ["United States","USA","U.S.","America"]). Used by GeoResolver for fuzzy text-to-country matching.` }),
|
|
46350
|
+
__metadata("design:type", String)
|
|
46351
|
+
], MJCountry_.prototype, "CommonAliases", void 0);
|
|
46352
|
+
__decorate([
|
|
46353
|
+
Field(),
|
|
46354
|
+
__metadata("design:type", Date)
|
|
46355
|
+
], MJCountry_.prototype, "_mj__CreatedAt", void 0);
|
|
46356
|
+
__decorate([
|
|
46357
|
+
Field(),
|
|
46358
|
+
__metadata("design:type", Date)
|
|
46359
|
+
], MJCountry_.prototype, "_mj__UpdatedAt", void 0);
|
|
46360
|
+
__decorate([
|
|
46361
|
+
Field(() => [MJStateProvince_]),
|
|
46362
|
+
__metadata("design:type", Array)
|
|
46363
|
+
], MJCountry_.prototype, "MJStateProvinces_CountryIDArray", void 0);
|
|
46364
|
+
__decorate([
|
|
46365
|
+
Field(() => [MJRecordGeoCode_]),
|
|
46366
|
+
__metadata("design:type", Array)
|
|
46367
|
+
], MJCountry_.prototype, "MJRecordGeoCodes_CountryIDArray", void 0);
|
|
46368
|
+
MJCountry_ = __decorate([
|
|
46369
|
+
ObjectType({ description: `Reference table for countries with ISO 3166-1 codes, geographic centroids, and optional medium-resolution boundary GeoJSON for choropleth rendering. Seeded with ~250 countries.` })
|
|
46370
|
+
], MJCountry_);
|
|
46371
|
+
export { MJCountry_ };
|
|
46372
|
+
//****************************************************************************
|
|
46373
|
+
// INPUT TYPE for MJ: Countries
|
|
46374
|
+
//****************************************************************************
|
|
46375
|
+
let CreateMJCountryInput = class CreateMJCountryInput {
|
|
46376
|
+
};
|
|
46377
|
+
__decorate([
|
|
46378
|
+
Field({ nullable: true }),
|
|
46379
|
+
__metadata("design:type", String)
|
|
46380
|
+
], CreateMJCountryInput.prototype, "ID", void 0);
|
|
46381
|
+
__decorate([
|
|
46382
|
+
Field({ nullable: true }),
|
|
46383
|
+
__metadata("design:type", String)
|
|
46384
|
+
], CreateMJCountryInput.prototype, "Name", void 0);
|
|
46385
|
+
__decorate([
|
|
46386
|
+
Field({ nullable: true }),
|
|
46387
|
+
__metadata("design:type", String)
|
|
46388
|
+
], CreateMJCountryInput.prototype, "ISO2", void 0);
|
|
46389
|
+
__decorate([
|
|
46390
|
+
Field({ nullable: true }),
|
|
46391
|
+
__metadata("design:type", String)
|
|
46392
|
+
], CreateMJCountryInput.prototype, "ISO3", void 0);
|
|
46393
|
+
__decorate([
|
|
46394
|
+
Field(() => Int, { nullable: true }),
|
|
46395
|
+
__metadata("design:type", Number)
|
|
46396
|
+
], CreateMJCountryInput.prototype, "NumericCode", void 0);
|
|
46397
|
+
__decorate([
|
|
46398
|
+
Field(() => Float, { nullable: true }),
|
|
46399
|
+
__metadata("design:type", Number)
|
|
46400
|
+
], CreateMJCountryInput.prototype, "Latitude", void 0);
|
|
46401
|
+
__decorate([
|
|
46402
|
+
Field(() => Float, { nullable: true }),
|
|
46403
|
+
__metadata("design:type", Number)
|
|
46404
|
+
], CreateMJCountryInput.prototype, "Longitude", void 0);
|
|
46405
|
+
__decorate([
|
|
46406
|
+
Field({ nullable: true }),
|
|
46407
|
+
__metadata("design:type", String)
|
|
46408
|
+
], CreateMJCountryInput.prototype, "BoundaryGeoJSON", void 0);
|
|
46409
|
+
__decorate([
|
|
46410
|
+
Field({ nullable: true }),
|
|
46411
|
+
__metadata("design:type", String)
|
|
46412
|
+
], CreateMJCountryInput.prototype, "CommonAliases", void 0);
|
|
46413
|
+
CreateMJCountryInput = __decorate([
|
|
46414
|
+
InputType()
|
|
46415
|
+
], CreateMJCountryInput);
|
|
46416
|
+
export { CreateMJCountryInput };
|
|
46417
|
+
//****************************************************************************
|
|
46418
|
+
// INPUT TYPE for MJ: Countries
|
|
46419
|
+
//****************************************************************************
|
|
46420
|
+
let UpdateMJCountryInput = class UpdateMJCountryInput {
|
|
46421
|
+
};
|
|
46422
|
+
__decorate([
|
|
46423
|
+
Field(),
|
|
46424
|
+
__metadata("design:type", String)
|
|
46425
|
+
], UpdateMJCountryInput.prototype, "ID", void 0);
|
|
46426
|
+
__decorate([
|
|
46427
|
+
Field({ nullable: true }),
|
|
46428
|
+
__metadata("design:type", String)
|
|
46429
|
+
], UpdateMJCountryInput.prototype, "Name", void 0);
|
|
46430
|
+
__decorate([
|
|
46431
|
+
Field({ nullable: true }),
|
|
46432
|
+
__metadata("design:type", String)
|
|
46433
|
+
], UpdateMJCountryInput.prototype, "ISO2", void 0);
|
|
46434
|
+
__decorate([
|
|
46435
|
+
Field({ nullable: true }),
|
|
46436
|
+
__metadata("design:type", String)
|
|
46437
|
+
], UpdateMJCountryInput.prototype, "ISO3", void 0);
|
|
46438
|
+
__decorate([
|
|
46439
|
+
Field(() => Int, { nullable: true }),
|
|
46440
|
+
__metadata("design:type", Number)
|
|
46441
|
+
], UpdateMJCountryInput.prototype, "NumericCode", void 0);
|
|
46442
|
+
__decorate([
|
|
46443
|
+
Field(() => Float, { nullable: true }),
|
|
46444
|
+
__metadata("design:type", Number)
|
|
46445
|
+
], UpdateMJCountryInput.prototype, "Latitude", void 0);
|
|
46446
|
+
__decorate([
|
|
46447
|
+
Field(() => Float, { nullable: true }),
|
|
46448
|
+
__metadata("design:type", Number)
|
|
46449
|
+
], UpdateMJCountryInput.prototype, "Longitude", void 0);
|
|
46450
|
+
__decorate([
|
|
46451
|
+
Field({ nullable: true }),
|
|
46452
|
+
__metadata("design:type", String)
|
|
46453
|
+
], UpdateMJCountryInput.prototype, "BoundaryGeoJSON", void 0);
|
|
46454
|
+
__decorate([
|
|
46455
|
+
Field({ nullable: true }),
|
|
46456
|
+
__metadata("design:type", String)
|
|
46457
|
+
], UpdateMJCountryInput.prototype, "CommonAliases", void 0);
|
|
46458
|
+
__decorate([
|
|
46459
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
46460
|
+
__metadata("design:type", Array)
|
|
46461
|
+
], UpdateMJCountryInput.prototype, "OldValues___", void 0);
|
|
46462
|
+
UpdateMJCountryInput = __decorate([
|
|
46463
|
+
InputType()
|
|
46464
|
+
], UpdateMJCountryInput);
|
|
46465
|
+
export { UpdateMJCountryInput };
|
|
46466
|
+
//****************************************************************************
|
|
46467
|
+
// RESOLVER for MJ: Countries
|
|
46468
|
+
//****************************************************************************
|
|
46469
|
+
let RunMJCountryViewResult = class RunMJCountryViewResult {
|
|
46470
|
+
};
|
|
46471
|
+
__decorate([
|
|
46472
|
+
Field(() => [MJCountry_]),
|
|
46473
|
+
__metadata("design:type", Array)
|
|
46474
|
+
], RunMJCountryViewResult.prototype, "Results", void 0);
|
|
46475
|
+
__decorate([
|
|
46476
|
+
Field(() => String, { nullable: true }),
|
|
46477
|
+
__metadata("design:type", String)
|
|
46478
|
+
], RunMJCountryViewResult.prototype, "UserViewRunID", void 0);
|
|
46479
|
+
__decorate([
|
|
46480
|
+
Field(() => Int, { nullable: true }),
|
|
46481
|
+
__metadata("design:type", Number)
|
|
46482
|
+
], RunMJCountryViewResult.prototype, "RowCount", void 0);
|
|
46483
|
+
__decorate([
|
|
46484
|
+
Field(() => Int, { nullable: true }),
|
|
46485
|
+
__metadata("design:type", Number)
|
|
46486
|
+
], RunMJCountryViewResult.prototype, "TotalRowCount", void 0);
|
|
46487
|
+
__decorate([
|
|
46488
|
+
Field(() => Int, { nullable: true }),
|
|
46489
|
+
__metadata("design:type", Number)
|
|
46490
|
+
], RunMJCountryViewResult.prototype, "ExecutionTime", void 0);
|
|
46491
|
+
__decorate([
|
|
46492
|
+
Field({ nullable: true }),
|
|
46493
|
+
__metadata("design:type", String)
|
|
46494
|
+
], RunMJCountryViewResult.prototype, "ErrorMessage", void 0);
|
|
46495
|
+
__decorate([
|
|
46496
|
+
Field(() => Boolean, { nullable: false }),
|
|
46497
|
+
__metadata("design:type", Boolean)
|
|
46498
|
+
], RunMJCountryViewResult.prototype, "Success", void 0);
|
|
46499
|
+
RunMJCountryViewResult = __decorate([
|
|
46500
|
+
ObjectType()
|
|
46501
|
+
], RunMJCountryViewResult);
|
|
46502
|
+
export { RunMJCountryViewResult };
|
|
46503
|
+
let MJCountryResolver = class MJCountryResolver extends ResolverBase {
|
|
46504
|
+
async RunMJCountryViewByID(input, { providers, userPayload }, pubSub) {
|
|
46505
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46506
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
46507
|
+
}
|
|
46508
|
+
async RunMJCountryViewByName(input, { providers, userPayload }, pubSub) {
|
|
46509
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46510
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
46511
|
+
}
|
|
46512
|
+
async RunMJCountryDynamicView(input, { providers, userPayload }, pubSub) {
|
|
46513
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46514
|
+
input.EntityName = 'MJ: Countries';
|
|
46515
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
46516
|
+
}
|
|
46517
|
+
async MJCountry(ID, { userPayload, providers }, pubSub) {
|
|
46518
|
+
this.CheckUserReadPermissions('MJ: Countries', userPayload);
|
|
46519
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46520
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwCountries')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Countries', userPayload, EntityPermissionType.Read, 'AND');
|
|
46521
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
46522
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Countries', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
46523
|
+
return result;
|
|
46524
|
+
}
|
|
46525
|
+
async MJStateProvinces_CountryIDArray(mjcountry_, { userPayload, providers }, pubSub) {
|
|
46526
|
+
this.CheckUserReadPermissions('MJ: State Provinces', userPayload);
|
|
46527
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46528
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwStateProvinces')} WHERE ${provider.QuoteIdentifier('CountryID')}='${mjcountry_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: State Provinces', userPayload, EntityPermissionType.Read, 'AND');
|
|
46529
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
46530
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: State Provinces', rows, this.GetUserFromPayload(userPayload));
|
|
46531
|
+
return result;
|
|
46532
|
+
}
|
|
46533
|
+
async MJRecordGeoCodes_CountryIDArray(mjcountry_, { userPayload, providers }, pubSub) {
|
|
46534
|
+
this.CheckUserReadPermissions('MJ: Record Geo Codes', userPayload);
|
|
46535
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
46536
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordGeoCodes')} WHERE ${provider.QuoteIdentifier('CountryID')}='${mjcountry_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Geo Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
46537
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
46538
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Record Geo Codes', rows, this.GetUserFromPayload(userPayload));
|
|
46539
|
+
return result;
|
|
46540
|
+
}
|
|
46541
|
+
async CreateMJCountry(input, { providers, userPayload }, pubSub) {
|
|
46542
|
+
const provider = GetReadWriteProvider(providers);
|
|
46543
|
+
return this.CreateRecord('MJ: Countries', input, provider, userPayload, pubSub);
|
|
46544
|
+
}
|
|
46545
|
+
async UpdateMJCountry(input, { providers, userPayload }, pubSub) {
|
|
46546
|
+
const provider = GetReadWriteProvider(providers);
|
|
46547
|
+
return this.UpdateRecord('MJ: Countries', input, provider, userPayload, pubSub);
|
|
46548
|
+
}
|
|
46549
|
+
async DeleteMJCountry(ID, options, { providers, userPayload }, pubSub) {
|
|
46550
|
+
const provider = GetReadWriteProvider(providers);
|
|
46551
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
46552
|
+
return this.DeleteRecord('MJ: Countries', key, options, provider, userPayload, pubSub);
|
|
46553
|
+
}
|
|
46554
|
+
};
|
|
46555
|
+
__decorate([
|
|
46556
|
+
Query(() => RunMJCountryViewResult),
|
|
46557
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
46558
|
+
__param(1, Ctx()),
|
|
46559
|
+
__param(2, PubSub()),
|
|
46560
|
+
__metadata("design:type", Function),
|
|
46561
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
46562
|
+
__metadata("design:returntype", Promise)
|
|
46563
|
+
], MJCountryResolver.prototype, "RunMJCountryViewByID", null);
|
|
46564
|
+
__decorate([
|
|
46565
|
+
Query(() => RunMJCountryViewResult),
|
|
46566
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
46567
|
+
__param(1, Ctx()),
|
|
46568
|
+
__param(2, PubSub()),
|
|
46569
|
+
__metadata("design:type", Function),
|
|
46570
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
46571
|
+
__metadata("design:returntype", Promise)
|
|
46572
|
+
], MJCountryResolver.prototype, "RunMJCountryViewByName", null);
|
|
46573
|
+
__decorate([
|
|
46574
|
+
Query(() => RunMJCountryViewResult),
|
|
46575
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
46576
|
+
__param(1, Ctx()),
|
|
46577
|
+
__param(2, PubSub()),
|
|
46578
|
+
__metadata("design:type", Function),
|
|
46579
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
46580
|
+
__metadata("design:returntype", Promise)
|
|
46581
|
+
], MJCountryResolver.prototype, "RunMJCountryDynamicView", null);
|
|
46582
|
+
__decorate([
|
|
46583
|
+
Query(() => MJCountry_, { nullable: true }),
|
|
46584
|
+
__param(0, Arg('ID', () => String)),
|
|
46585
|
+
__param(1, Ctx()),
|
|
46586
|
+
__param(2, PubSub()),
|
|
46587
|
+
__metadata("design:type", Function),
|
|
46588
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
46589
|
+
__metadata("design:returntype", Promise)
|
|
46590
|
+
], MJCountryResolver.prototype, "MJCountry", null);
|
|
46591
|
+
__decorate([
|
|
46592
|
+
FieldResolver(() => [MJStateProvince_]),
|
|
46593
|
+
__param(0, Root()),
|
|
46594
|
+
__param(1, Ctx()),
|
|
46595
|
+
__param(2, PubSub()),
|
|
46596
|
+
__metadata("design:type", Function),
|
|
46597
|
+
__metadata("design:paramtypes", [MJCountry_, Object, PubSubEngine]),
|
|
46598
|
+
__metadata("design:returntype", Promise)
|
|
46599
|
+
], MJCountryResolver.prototype, "MJStateProvinces_CountryIDArray", null);
|
|
46600
|
+
__decorate([
|
|
46601
|
+
FieldResolver(() => [MJRecordGeoCode_]),
|
|
46602
|
+
__param(0, Root()),
|
|
46603
|
+
__param(1, Ctx()),
|
|
46604
|
+
__param(2, PubSub()),
|
|
46605
|
+
__metadata("design:type", Function),
|
|
46606
|
+
__metadata("design:paramtypes", [MJCountry_, Object, PubSubEngine]),
|
|
46607
|
+
__metadata("design:returntype", Promise)
|
|
46608
|
+
], MJCountryResolver.prototype, "MJRecordGeoCodes_CountryIDArray", null);
|
|
46609
|
+
__decorate([
|
|
46610
|
+
Mutation(() => MJCountry_),
|
|
46611
|
+
__param(0, Arg('input', () => CreateMJCountryInput)),
|
|
46612
|
+
__param(1, Ctx()),
|
|
46613
|
+
__param(2, PubSub()),
|
|
46614
|
+
__metadata("design:type", Function),
|
|
46615
|
+
__metadata("design:paramtypes", [CreateMJCountryInput, Object, PubSubEngine]),
|
|
46616
|
+
__metadata("design:returntype", Promise)
|
|
46617
|
+
], MJCountryResolver.prototype, "CreateMJCountry", null);
|
|
46618
|
+
__decorate([
|
|
46619
|
+
Mutation(() => MJCountry_),
|
|
46620
|
+
__param(0, Arg('input', () => UpdateMJCountryInput)),
|
|
46621
|
+
__param(1, Ctx()),
|
|
46622
|
+
__param(2, PubSub()),
|
|
46623
|
+
__metadata("design:type", Function),
|
|
46624
|
+
__metadata("design:paramtypes", [UpdateMJCountryInput, Object, PubSubEngine]),
|
|
46625
|
+
__metadata("design:returntype", Promise)
|
|
46626
|
+
], MJCountryResolver.prototype, "UpdateMJCountry", null);
|
|
46627
|
+
__decorate([
|
|
46628
|
+
Mutation(() => MJCountry_),
|
|
46629
|
+
__param(0, Arg('ID', () => String)),
|
|
46630
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
46631
|
+
__param(2, Ctx()),
|
|
46632
|
+
__param(3, PubSub()),
|
|
46633
|
+
__metadata("design:type", Function),
|
|
46634
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
46635
|
+
__metadata("design:returntype", Promise)
|
|
46636
|
+
], MJCountryResolver.prototype, "DeleteMJCountry", null);
|
|
46637
|
+
MJCountryResolver = __decorate([
|
|
46638
|
+
Resolver(MJCountry_)
|
|
46639
|
+
], MJCountryResolver);
|
|
46640
|
+
export { MJCountryResolver };
|
|
46641
|
+
//****************************************************************************
|
|
45898
46642
|
// ENTITY CLASS for MJ: Credential Categories
|
|
45899
46643
|
//****************************************************************************
|
|
45900
46644
|
let MJCredentialCategory_ = class MJCredentialCategory_ {
|
|
@@ -46623,6 +47367,10 @@ __decorate([
|
|
|
46623
47367
|
Field(() => [MJOAuthToken_]),
|
|
46624
47368
|
__metadata("design:type", Array)
|
|
46625
47369
|
], MJCredential_.prototype, "MJOAuthTokens_CredentialIDArray", void 0);
|
|
47370
|
+
__decorate([
|
|
47371
|
+
Field(() => [MJSearchProvider_]),
|
|
47372
|
+
__metadata("design:type", Array)
|
|
47373
|
+
], MJCredential_.prototype, "MJSearchProviders_CredentialIDArray", void 0);
|
|
46626
47374
|
__decorate([
|
|
46627
47375
|
Field(() => [MJFileStorageAccount_]),
|
|
46628
47376
|
__metadata("design:type", Array)
|
|
@@ -46631,6 +47379,10 @@ __decorate([
|
|
|
46631
47379
|
Field(() => [MJMCPServerConnection_]),
|
|
46632
47380
|
__metadata("design:type", Array)
|
|
46633
47381
|
], MJCredential_.prototype, "MJMCPServerConnections_CredentialIDArray", void 0);
|
|
47382
|
+
__decorate([
|
|
47383
|
+
Field(() => [MJVectorDatabase_]),
|
|
47384
|
+
__metadata("design:type", Array)
|
|
47385
|
+
], MJCredential_.prototype, "MJVectorDatabases_CredentialIDArray", void 0);
|
|
46634
47386
|
__decorate([
|
|
46635
47387
|
Field(() => [MJAICredentialBinding_]),
|
|
46636
47388
|
__metadata("design:type", Array)
|
|
@@ -46828,6 +47580,14 @@ let MJCredentialResolver = class MJCredentialResolver extends ResolverBase {
|
|
|
46828
47580
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: O Auth Tokens', rows, this.GetUserFromPayload(userPayload));
|
|
46829
47581
|
return result;
|
|
46830
47582
|
}
|
|
47583
|
+
async MJSearchProviders_CredentialIDArray(mjcredential_, { userPayload, providers }, pubSub) {
|
|
47584
|
+
this.CheckUserReadPermissions('MJ: Search Providers', userPayload);
|
|
47585
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47586
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwSearchProviders')} WHERE ${provider.QuoteIdentifier('CredentialID')}='${mjcredential_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Search Providers', userPayload, EntityPermissionType.Read, 'AND');
|
|
47587
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
47588
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Search Providers', rows, this.GetUserFromPayload(userPayload));
|
|
47589
|
+
return result;
|
|
47590
|
+
}
|
|
46831
47591
|
async MJFileStorageAccounts_CredentialIDArray(mjcredential_, { userPayload, providers }, pubSub) {
|
|
46832
47592
|
this.CheckUserReadPermissions('MJ: File Storage Accounts', userPayload);
|
|
46833
47593
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -46844,6 +47604,14 @@ let MJCredentialResolver = class MJCredentialResolver extends ResolverBase {
|
|
|
46844
47604
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Connections', rows, this.GetUserFromPayload(userPayload));
|
|
46845
47605
|
return result;
|
|
46846
47606
|
}
|
|
47607
|
+
async MJVectorDatabases_CredentialIDArray(mjcredential_, { userPayload, providers }, pubSub) {
|
|
47608
|
+
this.CheckUserReadPermissions('MJ: Vector Databases', userPayload);
|
|
47609
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
47610
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwVectorDatabases')} WHERE ${provider.QuoteIdentifier('CredentialID')}='${mjcredential_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Vector Databases', userPayload, EntityPermissionType.Read, 'AND');
|
|
47611
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
47612
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Vector Databases', rows, this.GetUserFromPayload(userPayload));
|
|
47613
|
+
return result;
|
|
47614
|
+
}
|
|
46847
47615
|
async MJAICredentialBindings_CredentialIDArray(mjcredential_, { userPayload, providers }, pubSub) {
|
|
46848
47616
|
this.CheckUserReadPermissions('MJ: AI Credential Bindings', userPayload);
|
|
46849
47617
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -46919,6 +47687,15 @@ __decorate([
|
|
|
46919
47687
|
__metadata("design:paramtypes", [MJCredential_, Object, PubSubEngine]),
|
|
46920
47688
|
__metadata("design:returntype", Promise)
|
|
46921
47689
|
], MJCredentialResolver.prototype, "MJOAuthTokens_CredentialIDArray", null);
|
|
47690
|
+
__decorate([
|
|
47691
|
+
FieldResolver(() => [MJSearchProvider_]),
|
|
47692
|
+
__param(0, Root()),
|
|
47693
|
+
__param(1, Ctx()),
|
|
47694
|
+
__param(2, PubSub()),
|
|
47695
|
+
__metadata("design:type", Function),
|
|
47696
|
+
__metadata("design:paramtypes", [MJCredential_, Object, PubSubEngine]),
|
|
47697
|
+
__metadata("design:returntype", Promise)
|
|
47698
|
+
], MJCredentialResolver.prototype, "MJSearchProviders_CredentialIDArray", null);
|
|
46922
47699
|
__decorate([
|
|
46923
47700
|
FieldResolver(() => [MJFileStorageAccount_]),
|
|
46924
47701
|
__param(0, Root()),
|
|
@@ -46937,6 +47714,15 @@ __decorate([
|
|
|
46937
47714
|
__metadata("design:paramtypes", [MJCredential_, Object, PubSubEngine]),
|
|
46938
47715
|
__metadata("design:returntype", Promise)
|
|
46939
47716
|
], MJCredentialResolver.prototype, "MJMCPServerConnections_CredentialIDArray", null);
|
|
47717
|
+
__decorate([
|
|
47718
|
+
FieldResolver(() => [MJVectorDatabase_]),
|
|
47719
|
+
__param(0, Root()),
|
|
47720
|
+
__param(1, Ctx()),
|
|
47721
|
+
__param(2, PubSub()),
|
|
47722
|
+
__metadata("design:type", Function),
|
|
47723
|
+
__metadata("design:paramtypes", [MJCredential_, Object, PubSubEngine]),
|
|
47724
|
+
__metadata("design:returntype", Promise)
|
|
47725
|
+
], MJCredentialResolver.prototype, "MJVectorDatabases_CredentialIDArray", null);
|
|
46940
47726
|
__decorate([
|
|
46941
47727
|
FieldResolver(() => [MJAICredentialBinding_]),
|
|
46942
47728
|
__param(0, Root()),
|
|
@@ -54144,6 +54930,34 @@ __decorate([
|
|
|
54144
54930
|
Field(() => Boolean, { description: `When false (default), child types are disjoint - a record can only be one child type at a time. When true, a record can simultaneously exist as multiple child types (e.g., a Person can be both a Member and a Volunteer).` }),
|
|
54145
54931
|
__metadata("design:type", Boolean)
|
|
54146
54932
|
], MJEntity_.prototype, "AllowMultipleSubtypes", void 0);
|
|
54933
|
+
__decorate([
|
|
54934
|
+
Field(() => Boolean, { description: `When true, CodeGen LLM can auto-configure full-text search settings (FullTextSearchEnabled, catalog, index, function) during code generation runs.` }),
|
|
54935
|
+
__metadata("design:type", Boolean)
|
|
54936
|
+
], MJEntity_.prototype, "AutoUpdateFullTextSearch", void 0);
|
|
54937
|
+
__decorate([
|
|
54938
|
+
Field(() => Boolean, { description: `When true, CodeGen LLM can auto-set AllowUserSearchAPI during code generation runs.` }),
|
|
54939
|
+
__metadata("design:type", Boolean)
|
|
54940
|
+
], MJEntity_.prototype, "AutoUpdateAllowUserSearchAPI", void 0);
|
|
54941
|
+
__decorate([
|
|
54942
|
+
Field(() => Boolean, { description: `When true (default), the server-side RunView cache will store and return cached results for this entity, trusting that all mutations flow through BaseEntity.Save() which fires cache invalidation events. Set to false for entities whose rows are created as side-effects of other operations via raw SQL (e.g., Record Changes created by spCreateRecordChange_Internal), since those inserts bypass BaseEntity and never trigger cache invalidation.` }),
|
|
54943
|
+
__metadata("design:type", Boolean)
|
|
54944
|
+
], MJEntity_.prototype, "TrustServerCacheCompletely", void 0);
|
|
54945
|
+
__decorate([
|
|
54946
|
+
Field(() => Boolean, { description: `When true, CodeGen generates geo-aware subclass code, adds __mj_Latitude/__mj_Longitude virtual fields to the base view, and the UI shows a map view toggle. Auto-set by CodeGen when LLM detects geo-capable fields (address, lat/lng, etc.).` }),
|
|
54947
|
+
__metadata("design:type", Boolean)
|
|
54948
|
+
], MJEntity_.prototype, "SupportsGeoCoding", void 0);
|
|
54949
|
+
__decorate([
|
|
54950
|
+
Field(() => Boolean, { description: `When true (default), CodeGen can automatically set SupportsGeoCoding based on LLM analysis of entity fields. Set to 0 to lock the value and prevent CodeGen from changing it.` }),
|
|
54951
|
+
__metadata("design:type", Boolean)
|
|
54952
|
+
], MJEntity_.prototype, "AutoUpdateSupportsGeoCoding", void 0);
|
|
54953
|
+
__decorate([
|
|
54954
|
+
Field(() => Boolean, { description: `Controls whether this entity participates in server-side and client-side caching. When false, all cache operations (PreRunView checks, auto-cache storage, BaseEntity event fingerprint scans, client-side IndexedDB cache) are skipped entirely. This column is the single source of truth at runtime; schema-level defaults are applied at CodeGen time via newEntityDefaults.AllowCachingBySchema.` }),
|
|
54955
|
+
__metadata("design:type", Boolean)
|
|
54956
|
+
], MJEntity_.prototype, "AllowCaching", void 0);
|
|
54957
|
+
__decorate([
|
|
54958
|
+
Field(() => Boolean, { description: `When set to 1 AND TrackRecordChanges is also 1, the external change detection system will scan this entity for changes made outside the MJ framework (direct SQL, third-party tools, etc.) and replay them through Save() to create proper RecordChange audit entries. Default is 0 (opt-out) because most entities, especially __mj schema metadata tables, are managed by migrations/CodeGen and should not be scanned.` }),
|
|
54959
|
+
__metadata("design:type", Boolean)
|
|
54960
|
+
], MJEntity_.prototype, "DetectExternalChanges", void 0);
|
|
54147
54961
|
__decorate([
|
|
54148
54962
|
Field({ nullable: true, description: `Schema-based programmatic code name derived from the entity Name. Uses GetClassNameSchemaPrefix(SchemaName) as the prefix, then strips EntityNamePrefix from the Name and removes spaces. For "__mj" schema with entity "MJ: AI Models", this produces "MJAIModels". For entities in other schemas, the sanitized schema name is prepended. Used in GraphQL type generation and internal code references.` }),
|
|
54149
54963
|
__metadata("design:type", String)
|
|
@@ -54355,6 +55169,10 @@ __decorate([
|
|
|
54355
55169
|
Field(() => [MJEntityOrganicKey_]),
|
|
54356
55170
|
__metadata("design:type", Array)
|
|
54357
55171
|
], MJEntity_.prototype, "MJEntityOrganicKeys_EntityIDArray", void 0);
|
|
55172
|
+
__decorate([
|
|
55173
|
+
Field(() => [MJRecordGeoCode_]),
|
|
55174
|
+
__metadata("design:type", Array)
|
|
55175
|
+
], MJEntity_.prototype, "MJRecordGeoCodes_EntityIDArray", void 0);
|
|
54358
55176
|
__decorate([
|
|
54359
55177
|
Field(() => [MJGeneratedCode_]),
|
|
54360
55178
|
__metadata("design:type", Array)
|
|
@@ -54612,6 +55430,34 @@ __decorate([
|
|
|
54612
55430
|
Field(() => Boolean, { nullable: true }),
|
|
54613
55431
|
__metadata("design:type", Boolean)
|
|
54614
55432
|
], CreateMJEntityInput.prototype, "AllowMultipleSubtypes", void 0);
|
|
55433
|
+
__decorate([
|
|
55434
|
+
Field(() => Boolean, { nullable: true }),
|
|
55435
|
+
__metadata("design:type", Boolean)
|
|
55436
|
+
], CreateMJEntityInput.prototype, "AutoUpdateFullTextSearch", void 0);
|
|
55437
|
+
__decorate([
|
|
55438
|
+
Field(() => Boolean, { nullable: true }),
|
|
55439
|
+
__metadata("design:type", Boolean)
|
|
55440
|
+
], CreateMJEntityInput.prototype, "AutoUpdateAllowUserSearchAPI", void 0);
|
|
55441
|
+
__decorate([
|
|
55442
|
+
Field(() => Boolean, { nullable: true }),
|
|
55443
|
+
__metadata("design:type", Boolean)
|
|
55444
|
+
], CreateMJEntityInput.prototype, "TrustServerCacheCompletely", void 0);
|
|
55445
|
+
__decorate([
|
|
55446
|
+
Field(() => Boolean, { nullable: true }),
|
|
55447
|
+
__metadata("design:type", Boolean)
|
|
55448
|
+
], CreateMJEntityInput.prototype, "SupportsGeoCoding", void 0);
|
|
55449
|
+
__decorate([
|
|
55450
|
+
Field(() => Boolean, { nullable: true }),
|
|
55451
|
+
__metadata("design:type", Boolean)
|
|
55452
|
+
], CreateMJEntityInput.prototype, "AutoUpdateSupportsGeoCoding", void 0);
|
|
55453
|
+
__decorate([
|
|
55454
|
+
Field(() => Boolean, { nullable: true }),
|
|
55455
|
+
__metadata("design:type", Boolean)
|
|
55456
|
+
], CreateMJEntityInput.prototype, "AllowCaching", void 0);
|
|
55457
|
+
__decorate([
|
|
55458
|
+
Field(() => Boolean, { nullable: true }),
|
|
55459
|
+
__metadata("design:type", Boolean)
|
|
55460
|
+
], CreateMJEntityInput.prototype, "DetectExternalChanges", void 0);
|
|
54615
55461
|
CreateMJEntityInput = __decorate([
|
|
54616
55462
|
InputType()
|
|
54617
55463
|
], CreateMJEntityInput);
|
|
@@ -54837,6 +55683,34 @@ __decorate([
|
|
|
54837
55683
|
Field(() => Boolean, { nullable: true }),
|
|
54838
55684
|
__metadata("design:type", Boolean)
|
|
54839
55685
|
], UpdateMJEntityInput.prototype, "AllowMultipleSubtypes", void 0);
|
|
55686
|
+
__decorate([
|
|
55687
|
+
Field(() => Boolean, { nullable: true }),
|
|
55688
|
+
__metadata("design:type", Boolean)
|
|
55689
|
+
], UpdateMJEntityInput.prototype, "AutoUpdateFullTextSearch", void 0);
|
|
55690
|
+
__decorate([
|
|
55691
|
+
Field(() => Boolean, { nullable: true }),
|
|
55692
|
+
__metadata("design:type", Boolean)
|
|
55693
|
+
], UpdateMJEntityInput.prototype, "AutoUpdateAllowUserSearchAPI", void 0);
|
|
55694
|
+
__decorate([
|
|
55695
|
+
Field(() => Boolean, { nullable: true }),
|
|
55696
|
+
__metadata("design:type", Boolean)
|
|
55697
|
+
], UpdateMJEntityInput.prototype, "TrustServerCacheCompletely", void 0);
|
|
55698
|
+
__decorate([
|
|
55699
|
+
Field(() => Boolean, { nullable: true }),
|
|
55700
|
+
__metadata("design:type", Boolean)
|
|
55701
|
+
], UpdateMJEntityInput.prototype, "SupportsGeoCoding", void 0);
|
|
55702
|
+
__decorate([
|
|
55703
|
+
Field(() => Boolean, { nullable: true }),
|
|
55704
|
+
__metadata("design:type", Boolean)
|
|
55705
|
+
], UpdateMJEntityInput.prototype, "AutoUpdateSupportsGeoCoding", void 0);
|
|
55706
|
+
__decorate([
|
|
55707
|
+
Field(() => Boolean, { nullable: true }),
|
|
55708
|
+
__metadata("design:type", Boolean)
|
|
55709
|
+
], UpdateMJEntityInput.prototype, "AllowCaching", void 0);
|
|
55710
|
+
__decorate([
|
|
55711
|
+
Field(() => Boolean, { nullable: true }),
|
|
55712
|
+
__metadata("design:type", Boolean)
|
|
55713
|
+
], UpdateMJEntityInput.prototype, "DetectExternalChanges", void 0);
|
|
54840
55714
|
__decorate([
|
|
54841
55715
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
54842
55716
|
__metadata("design:type", Array)
|
|
@@ -55280,6 +56154,14 @@ let MJEntityResolverBase = class MJEntityResolverBase extends ResolverBase {
|
|
|
55280
56154
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Entity Organic Keys', rows, this.GetUserFromPayload(userPayload));
|
|
55281
56155
|
return result;
|
|
55282
56156
|
}
|
|
56157
|
+
async MJRecordGeoCodes_EntityIDArray(mjentity_, { userPayload, providers }, pubSub) {
|
|
56158
|
+
this.CheckUserReadPermissions('MJ: Record Geo Codes', userPayload);
|
|
56159
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
56160
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordGeoCodes')} WHERE ${provider.QuoteIdentifier('EntityID')}='${mjentity_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Geo Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
56161
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
56162
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Record Geo Codes', rows, this.GetUserFromPayload(userPayload));
|
|
56163
|
+
return result;
|
|
56164
|
+
}
|
|
55283
56165
|
async MJGeneratedCodes_LinkedEntityIDArray(mjentity_, { userPayload, providers }, pubSub) {
|
|
55284
56166
|
this.CheckUserReadPermissions('MJ: Generated Codes', userPayload);
|
|
55285
56167
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -55816,6 +56698,15 @@ __decorate([
|
|
|
55816
56698
|
__metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
|
|
55817
56699
|
__metadata("design:returntype", Promise)
|
|
55818
56700
|
], MJEntityResolverBase.prototype, "MJEntityOrganicKeys_EntityIDArray", null);
|
|
56701
|
+
__decorate([
|
|
56702
|
+
FieldResolver(() => [MJRecordGeoCode_]),
|
|
56703
|
+
__param(0, Root()),
|
|
56704
|
+
__param(1, Ctx()),
|
|
56705
|
+
__param(2, PubSub()),
|
|
56706
|
+
__metadata("design:type", Function),
|
|
56707
|
+
__metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
|
|
56708
|
+
__metadata("design:returntype", Promise)
|
|
56709
|
+
], MJEntityResolverBase.prototype, "MJRecordGeoCodes_EntityIDArray", null);
|
|
55819
56710
|
__decorate([
|
|
55820
56711
|
FieldResolver(() => [MJGeneratedCode_]),
|
|
55821
56712
|
__param(0, Root()),
|
|
@@ -59848,6 +60739,23 @@ __decorate([
|
|
|
59848
60739
|
Field({ nullable: true, description: `Raw TypeScript code emitted by CodeGen above the entity class definition. Typically contains the interface/type definition referenced by JSONType. Can include imports, multiple types, or any valid TypeScript.` }),
|
|
59849
60740
|
__metadata("design:type", String)
|
|
59850
60741
|
], MJEntityField_.prototype, "JSONTypeDefinition", void 0);
|
|
60742
|
+
__decorate([
|
|
60743
|
+
Field({ description: `Search predicate controlling how user search queries match against this field. Valid values: BeginsWith, Contains, EndsWith, Exact.` }),
|
|
60744
|
+
MaxLength(20),
|
|
60745
|
+
__metadata("design:type", String)
|
|
60746
|
+
], MJEntityField_.prototype, "UserSearchPredicateAPI", void 0);
|
|
60747
|
+
__decorate([
|
|
60748
|
+
Field(() => Boolean, { description: `When true, CodeGen LLM can auto-set the UserSearchPredicateAPI value during code generation runs.` }),
|
|
60749
|
+
__metadata("design:type", Boolean)
|
|
60750
|
+
], MJEntityField_.prototype, "AutoUpdateUserSearchPredicate", void 0);
|
|
60751
|
+
__decorate([
|
|
60752
|
+
Field(() => Boolean, { description: `When true, CodeGen LLM can auto-set the FullTextSearchEnabled value during code generation runs.` }),
|
|
60753
|
+
__metadata("design:type", Boolean)
|
|
60754
|
+
], MJEntityField_.prototype, "AutoUpdateFullTextSearch", void 0);
|
|
60755
|
+
__decorate([
|
|
60756
|
+
Field(() => Boolean, { description: `When true (default), CodeGen can automatically suggest and apply ExtendedType values (GeoLatitude, GeoLongitude, GeoAddress, etc.) during LLM field categorization. Set to 0 to lock admin-specified ExtendedType.` }),
|
|
60757
|
+
__metadata("design:type", Boolean)
|
|
60758
|
+
], MJEntityField_.prototype, "AutoUpdateExtendedType", void 0);
|
|
59851
60759
|
__decorate([
|
|
59852
60760
|
Field({ nullable: true }),
|
|
59853
60761
|
__metadata("design:type", String)
|
|
@@ -60105,6 +61013,22 @@ __decorate([
|
|
|
60105
61013
|
Field({ nullable: true }),
|
|
60106
61014
|
__metadata("design:type", String)
|
|
60107
61015
|
], CreateMJEntityFieldInput.prototype, "JSONTypeDefinition", void 0);
|
|
61016
|
+
__decorate([
|
|
61017
|
+
Field({ nullable: true }),
|
|
61018
|
+
__metadata("design:type", String)
|
|
61019
|
+
], CreateMJEntityFieldInput.prototype, "UserSearchPredicateAPI", void 0);
|
|
61020
|
+
__decorate([
|
|
61021
|
+
Field(() => Boolean, { nullable: true }),
|
|
61022
|
+
__metadata("design:type", Boolean)
|
|
61023
|
+
], CreateMJEntityFieldInput.prototype, "AutoUpdateUserSearchPredicate", void 0);
|
|
61024
|
+
__decorate([
|
|
61025
|
+
Field(() => Boolean, { nullable: true }),
|
|
61026
|
+
__metadata("design:type", Boolean)
|
|
61027
|
+
], CreateMJEntityFieldInput.prototype, "AutoUpdateFullTextSearch", void 0);
|
|
61028
|
+
__decorate([
|
|
61029
|
+
Field(() => Boolean, { nullable: true }),
|
|
61030
|
+
__metadata("design:type", Boolean)
|
|
61031
|
+
], CreateMJEntityFieldInput.prototype, "AutoUpdateExtendedType", void 0);
|
|
60108
61032
|
CreateMJEntityFieldInput = __decorate([
|
|
60109
61033
|
InputType()
|
|
60110
61034
|
], CreateMJEntityFieldInput);
|
|
@@ -60298,6 +61222,22 @@ __decorate([
|
|
|
60298
61222
|
Field({ nullable: true }),
|
|
60299
61223
|
__metadata("design:type", String)
|
|
60300
61224
|
], UpdateMJEntityFieldInput.prototype, "JSONTypeDefinition", void 0);
|
|
61225
|
+
__decorate([
|
|
61226
|
+
Field({ nullable: true }),
|
|
61227
|
+
__metadata("design:type", String)
|
|
61228
|
+
], UpdateMJEntityFieldInput.prototype, "UserSearchPredicateAPI", void 0);
|
|
61229
|
+
__decorate([
|
|
61230
|
+
Field(() => Boolean, { nullable: true }),
|
|
61231
|
+
__metadata("design:type", Boolean)
|
|
61232
|
+
], UpdateMJEntityFieldInput.prototype, "AutoUpdateUserSearchPredicate", void 0);
|
|
61233
|
+
__decorate([
|
|
61234
|
+
Field(() => Boolean, { nullable: true }),
|
|
61235
|
+
__metadata("design:type", Boolean)
|
|
61236
|
+
], UpdateMJEntityFieldInput.prototype, "AutoUpdateFullTextSearch", void 0);
|
|
61237
|
+
__decorate([
|
|
61238
|
+
Field(() => Boolean, { nullable: true }),
|
|
61239
|
+
__metadata("design:type", Boolean)
|
|
61240
|
+
], UpdateMJEntityFieldInput.prototype, "AutoUpdateExtendedType", void 0);
|
|
60301
61241
|
__decorate([
|
|
60302
61242
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
60303
61243
|
__metadata("design:type", Array)
|
|
@@ -64419,6 +65359,290 @@ MJFileEntityRecordLinkResolver = __decorate([
|
|
|
64419
65359
|
], MJFileEntityRecordLinkResolver);
|
|
64420
65360
|
export { MJFileEntityRecordLinkResolver };
|
|
64421
65361
|
//****************************************************************************
|
|
65362
|
+
// ENTITY CLASS for MJ: File Storage Account Permissions
|
|
65363
|
+
//****************************************************************************
|
|
65364
|
+
let MJFileStorageAccountPermission_ = class MJFileStorageAccountPermission_ {
|
|
65365
|
+
};
|
|
65366
|
+
__decorate([
|
|
65367
|
+
Field(),
|
|
65368
|
+
MaxLength(36),
|
|
65369
|
+
__metadata("design:type", String)
|
|
65370
|
+
], MJFileStorageAccountPermission_.prototype, "ID", void 0);
|
|
65371
|
+
__decorate([
|
|
65372
|
+
Field({ description: `The storage account this permission applies to.` }),
|
|
65373
|
+
MaxLength(36),
|
|
65374
|
+
__metadata("design:type", String)
|
|
65375
|
+
], MJFileStorageAccountPermission_.prototype, "FileStorageAccountID", void 0);
|
|
65376
|
+
__decorate([
|
|
65377
|
+
Field({ description: `Permission type: User (requires UserID), Role (requires RoleID), or Everyone (both NULL).` }),
|
|
65378
|
+
MaxLength(20),
|
|
65379
|
+
__metadata("design:type", String)
|
|
65380
|
+
], MJFileStorageAccountPermission_.prototype, "Type", void 0);
|
|
65381
|
+
__decorate([
|
|
65382
|
+
Field({ nullable: true, description: `Required when Type is User. The specific user granted access to this storage account.` }),
|
|
65383
|
+
MaxLength(36),
|
|
65384
|
+
__metadata("design:type", String)
|
|
65385
|
+
], MJFileStorageAccountPermission_.prototype, "UserID", void 0);
|
|
65386
|
+
__decorate([
|
|
65387
|
+
Field({ nullable: true, description: `Required when Type is Role. The role granted access to this storage account.` }),
|
|
65388
|
+
MaxLength(36),
|
|
65389
|
+
__metadata("design:type", String)
|
|
65390
|
+
], MJFileStorageAccountPermission_.prototype, "RoleID", void 0);
|
|
65391
|
+
__decorate([
|
|
65392
|
+
Field(() => Boolean, { description: `Whether the grantee can read/search files in this storage account.` }),
|
|
65393
|
+
__metadata("design:type", Boolean)
|
|
65394
|
+
], MJFileStorageAccountPermission_.prototype, "CanRead", void 0);
|
|
65395
|
+
__decorate([
|
|
65396
|
+
Field(() => Boolean, { description: `Whether the grantee can upload/modify files in this storage account.` }),
|
|
65397
|
+
__metadata("design:type", Boolean)
|
|
65398
|
+
], MJFileStorageAccountPermission_.prototype, "CanWrite", void 0);
|
|
65399
|
+
__decorate([
|
|
65400
|
+
Field(),
|
|
65401
|
+
__metadata("design:type", Date)
|
|
65402
|
+
], MJFileStorageAccountPermission_.prototype, "_mj__CreatedAt", void 0);
|
|
65403
|
+
__decorate([
|
|
65404
|
+
Field(),
|
|
65405
|
+
__metadata("design:type", Date)
|
|
65406
|
+
], MJFileStorageAccountPermission_.prototype, "_mj__UpdatedAt", void 0);
|
|
65407
|
+
__decorate([
|
|
65408
|
+
Field(),
|
|
65409
|
+
MaxLength(200),
|
|
65410
|
+
__metadata("design:type", String)
|
|
65411
|
+
], MJFileStorageAccountPermission_.prototype, "FileStorageAccount", void 0);
|
|
65412
|
+
__decorate([
|
|
65413
|
+
Field({ nullable: true }),
|
|
65414
|
+
MaxLength(100),
|
|
65415
|
+
__metadata("design:type", String)
|
|
65416
|
+
], MJFileStorageAccountPermission_.prototype, "User", void 0);
|
|
65417
|
+
__decorate([
|
|
65418
|
+
Field({ nullable: true }),
|
|
65419
|
+
MaxLength(50),
|
|
65420
|
+
__metadata("design:type", String)
|
|
65421
|
+
], MJFileStorageAccountPermission_.prototype, "Role", void 0);
|
|
65422
|
+
MJFileStorageAccountPermission_ = __decorate([
|
|
65423
|
+
ObjectType({ description: `Controls which users and roles can access specific file storage accounts. If no permission records exist for an account, it is accessible to everyone (backwards compatible).` })
|
|
65424
|
+
], MJFileStorageAccountPermission_);
|
|
65425
|
+
export { MJFileStorageAccountPermission_ };
|
|
65426
|
+
//****************************************************************************
|
|
65427
|
+
// INPUT TYPE for MJ: File Storage Account Permissions
|
|
65428
|
+
//****************************************************************************
|
|
65429
|
+
let CreateMJFileStorageAccountPermissionInput = class CreateMJFileStorageAccountPermissionInput {
|
|
65430
|
+
};
|
|
65431
|
+
__decorate([
|
|
65432
|
+
Field({ nullable: true }),
|
|
65433
|
+
__metadata("design:type", String)
|
|
65434
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "ID", void 0);
|
|
65435
|
+
__decorate([
|
|
65436
|
+
Field({ nullable: true }),
|
|
65437
|
+
__metadata("design:type", String)
|
|
65438
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "FileStorageAccountID", void 0);
|
|
65439
|
+
__decorate([
|
|
65440
|
+
Field({ nullable: true }),
|
|
65441
|
+
__metadata("design:type", String)
|
|
65442
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "Type", void 0);
|
|
65443
|
+
__decorate([
|
|
65444
|
+
Field({ nullable: true }),
|
|
65445
|
+
__metadata("design:type", String)
|
|
65446
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "UserID", void 0);
|
|
65447
|
+
__decorate([
|
|
65448
|
+
Field({ nullable: true }),
|
|
65449
|
+
__metadata("design:type", String)
|
|
65450
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "RoleID", void 0);
|
|
65451
|
+
__decorate([
|
|
65452
|
+
Field(() => Boolean, { nullable: true }),
|
|
65453
|
+
__metadata("design:type", Boolean)
|
|
65454
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "CanRead", void 0);
|
|
65455
|
+
__decorate([
|
|
65456
|
+
Field(() => Boolean, { nullable: true }),
|
|
65457
|
+
__metadata("design:type", Boolean)
|
|
65458
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "CanWrite", void 0);
|
|
65459
|
+
CreateMJFileStorageAccountPermissionInput = __decorate([
|
|
65460
|
+
InputType()
|
|
65461
|
+
], CreateMJFileStorageAccountPermissionInput);
|
|
65462
|
+
export { CreateMJFileStorageAccountPermissionInput };
|
|
65463
|
+
//****************************************************************************
|
|
65464
|
+
// INPUT TYPE for MJ: File Storage Account Permissions
|
|
65465
|
+
//****************************************************************************
|
|
65466
|
+
let UpdateMJFileStorageAccountPermissionInput = class UpdateMJFileStorageAccountPermissionInput {
|
|
65467
|
+
};
|
|
65468
|
+
__decorate([
|
|
65469
|
+
Field(),
|
|
65470
|
+
__metadata("design:type", String)
|
|
65471
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "ID", void 0);
|
|
65472
|
+
__decorate([
|
|
65473
|
+
Field({ nullable: true }),
|
|
65474
|
+
__metadata("design:type", String)
|
|
65475
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "FileStorageAccountID", void 0);
|
|
65476
|
+
__decorate([
|
|
65477
|
+
Field({ nullable: true }),
|
|
65478
|
+
__metadata("design:type", String)
|
|
65479
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "Type", void 0);
|
|
65480
|
+
__decorate([
|
|
65481
|
+
Field({ nullable: true }),
|
|
65482
|
+
__metadata("design:type", String)
|
|
65483
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "UserID", void 0);
|
|
65484
|
+
__decorate([
|
|
65485
|
+
Field({ nullable: true }),
|
|
65486
|
+
__metadata("design:type", String)
|
|
65487
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "RoleID", void 0);
|
|
65488
|
+
__decorate([
|
|
65489
|
+
Field(() => Boolean, { nullable: true }),
|
|
65490
|
+
__metadata("design:type", Boolean)
|
|
65491
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "CanRead", void 0);
|
|
65492
|
+
__decorate([
|
|
65493
|
+
Field(() => Boolean, { nullable: true }),
|
|
65494
|
+
__metadata("design:type", Boolean)
|
|
65495
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "CanWrite", void 0);
|
|
65496
|
+
__decorate([
|
|
65497
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
65498
|
+
__metadata("design:type", Array)
|
|
65499
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "OldValues___", void 0);
|
|
65500
|
+
UpdateMJFileStorageAccountPermissionInput = __decorate([
|
|
65501
|
+
InputType()
|
|
65502
|
+
], UpdateMJFileStorageAccountPermissionInput);
|
|
65503
|
+
export { UpdateMJFileStorageAccountPermissionInput };
|
|
65504
|
+
//****************************************************************************
|
|
65505
|
+
// RESOLVER for MJ: File Storage Account Permissions
|
|
65506
|
+
//****************************************************************************
|
|
65507
|
+
let RunMJFileStorageAccountPermissionViewResult = class RunMJFileStorageAccountPermissionViewResult {
|
|
65508
|
+
};
|
|
65509
|
+
__decorate([
|
|
65510
|
+
Field(() => [MJFileStorageAccountPermission_]),
|
|
65511
|
+
__metadata("design:type", Array)
|
|
65512
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "Results", void 0);
|
|
65513
|
+
__decorate([
|
|
65514
|
+
Field(() => String, { nullable: true }),
|
|
65515
|
+
__metadata("design:type", String)
|
|
65516
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "UserViewRunID", void 0);
|
|
65517
|
+
__decorate([
|
|
65518
|
+
Field(() => Int, { nullable: true }),
|
|
65519
|
+
__metadata("design:type", Number)
|
|
65520
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "RowCount", void 0);
|
|
65521
|
+
__decorate([
|
|
65522
|
+
Field(() => Int, { nullable: true }),
|
|
65523
|
+
__metadata("design:type", Number)
|
|
65524
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "TotalRowCount", void 0);
|
|
65525
|
+
__decorate([
|
|
65526
|
+
Field(() => Int, { nullable: true }),
|
|
65527
|
+
__metadata("design:type", Number)
|
|
65528
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "ExecutionTime", void 0);
|
|
65529
|
+
__decorate([
|
|
65530
|
+
Field({ nullable: true }),
|
|
65531
|
+
__metadata("design:type", String)
|
|
65532
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "ErrorMessage", void 0);
|
|
65533
|
+
__decorate([
|
|
65534
|
+
Field(() => Boolean, { nullable: false }),
|
|
65535
|
+
__metadata("design:type", Boolean)
|
|
65536
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "Success", void 0);
|
|
65537
|
+
RunMJFileStorageAccountPermissionViewResult = __decorate([
|
|
65538
|
+
ObjectType()
|
|
65539
|
+
], RunMJFileStorageAccountPermissionViewResult);
|
|
65540
|
+
export { RunMJFileStorageAccountPermissionViewResult };
|
|
65541
|
+
let MJFileStorageAccountPermissionResolver = class MJFileStorageAccountPermissionResolver extends ResolverBase {
|
|
65542
|
+
async RunMJFileStorageAccountPermissionViewByID(input, { providers, userPayload }, pubSub) {
|
|
65543
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65544
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
65545
|
+
}
|
|
65546
|
+
async RunMJFileStorageAccountPermissionViewByName(input, { providers, userPayload }, pubSub) {
|
|
65547
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65548
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
65549
|
+
}
|
|
65550
|
+
async RunMJFileStorageAccountPermissionDynamicView(input, { providers, userPayload }, pubSub) {
|
|
65551
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65552
|
+
input.EntityName = 'MJ: File Storage Account Permissions';
|
|
65553
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
65554
|
+
}
|
|
65555
|
+
async MJFileStorageAccountPermission(ID, { userPayload, providers }, pubSub) {
|
|
65556
|
+
this.CheckUserReadPermissions('MJ: File Storage Account Permissions', userPayload);
|
|
65557
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65558
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileStorageAccountPermissions')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Storage Account Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
65559
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65560
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Account Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
65561
|
+
return result;
|
|
65562
|
+
}
|
|
65563
|
+
async CreateMJFileStorageAccountPermission(input, { providers, userPayload }, pubSub) {
|
|
65564
|
+
const provider = GetReadWriteProvider(providers);
|
|
65565
|
+
return this.CreateRecord('MJ: File Storage Account Permissions', input, provider, userPayload, pubSub);
|
|
65566
|
+
}
|
|
65567
|
+
async UpdateMJFileStorageAccountPermission(input, { providers, userPayload }, pubSub) {
|
|
65568
|
+
const provider = GetReadWriteProvider(providers);
|
|
65569
|
+
return this.UpdateRecord('MJ: File Storage Account Permissions', input, provider, userPayload, pubSub);
|
|
65570
|
+
}
|
|
65571
|
+
async DeleteMJFileStorageAccountPermission(ID, options, { providers, userPayload }, pubSub) {
|
|
65572
|
+
const provider = GetReadWriteProvider(providers);
|
|
65573
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
65574
|
+
return this.DeleteRecord('MJ: File Storage Account Permissions', key, options, provider, userPayload, pubSub);
|
|
65575
|
+
}
|
|
65576
|
+
};
|
|
65577
|
+
__decorate([
|
|
65578
|
+
Query(() => RunMJFileStorageAccountPermissionViewResult),
|
|
65579
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
65580
|
+
__param(1, Ctx()),
|
|
65581
|
+
__param(2, PubSub()),
|
|
65582
|
+
__metadata("design:type", Function),
|
|
65583
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
65584
|
+
__metadata("design:returntype", Promise)
|
|
65585
|
+
], MJFileStorageAccountPermissionResolver.prototype, "RunMJFileStorageAccountPermissionViewByID", null);
|
|
65586
|
+
__decorate([
|
|
65587
|
+
Query(() => RunMJFileStorageAccountPermissionViewResult),
|
|
65588
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
65589
|
+
__param(1, Ctx()),
|
|
65590
|
+
__param(2, PubSub()),
|
|
65591
|
+
__metadata("design:type", Function),
|
|
65592
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
65593
|
+
__metadata("design:returntype", Promise)
|
|
65594
|
+
], MJFileStorageAccountPermissionResolver.prototype, "RunMJFileStorageAccountPermissionViewByName", null);
|
|
65595
|
+
__decorate([
|
|
65596
|
+
Query(() => RunMJFileStorageAccountPermissionViewResult),
|
|
65597
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
65598
|
+
__param(1, Ctx()),
|
|
65599
|
+
__param(2, PubSub()),
|
|
65600
|
+
__metadata("design:type", Function),
|
|
65601
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
65602
|
+
__metadata("design:returntype", Promise)
|
|
65603
|
+
], MJFileStorageAccountPermissionResolver.prototype, "RunMJFileStorageAccountPermissionDynamicView", null);
|
|
65604
|
+
__decorate([
|
|
65605
|
+
Query(() => MJFileStorageAccountPermission_, { nullable: true }),
|
|
65606
|
+
__param(0, Arg('ID', () => String)),
|
|
65607
|
+
__param(1, Ctx()),
|
|
65608
|
+
__param(2, PubSub()),
|
|
65609
|
+
__metadata("design:type", Function),
|
|
65610
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
65611
|
+
__metadata("design:returntype", Promise)
|
|
65612
|
+
], MJFileStorageAccountPermissionResolver.prototype, "MJFileStorageAccountPermission", null);
|
|
65613
|
+
__decorate([
|
|
65614
|
+
Mutation(() => MJFileStorageAccountPermission_),
|
|
65615
|
+
__param(0, Arg('input', () => CreateMJFileStorageAccountPermissionInput)),
|
|
65616
|
+
__param(1, Ctx()),
|
|
65617
|
+
__param(2, PubSub()),
|
|
65618
|
+
__metadata("design:type", Function),
|
|
65619
|
+
__metadata("design:paramtypes", [CreateMJFileStorageAccountPermissionInput, Object, PubSubEngine]),
|
|
65620
|
+
__metadata("design:returntype", Promise)
|
|
65621
|
+
], MJFileStorageAccountPermissionResolver.prototype, "CreateMJFileStorageAccountPermission", null);
|
|
65622
|
+
__decorate([
|
|
65623
|
+
Mutation(() => MJFileStorageAccountPermission_),
|
|
65624
|
+
__param(0, Arg('input', () => UpdateMJFileStorageAccountPermissionInput)),
|
|
65625
|
+
__param(1, Ctx()),
|
|
65626
|
+
__param(2, PubSub()),
|
|
65627
|
+
__metadata("design:type", Function),
|
|
65628
|
+
__metadata("design:paramtypes", [UpdateMJFileStorageAccountPermissionInput, Object, PubSubEngine]),
|
|
65629
|
+
__metadata("design:returntype", Promise)
|
|
65630
|
+
], MJFileStorageAccountPermissionResolver.prototype, "UpdateMJFileStorageAccountPermission", null);
|
|
65631
|
+
__decorate([
|
|
65632
|
+
Mutation(() => MJFileStorageAccountPermission_),
|
|
65633
|
+
__param(0, Arg('ID', () => String)),
|
|
65634
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
65635
|
+
__param(2, Ctx()),
|
|
65636
|
+
__param(3, PubSub()),
|
|
65637
|
+
__metadata("design:type", Function),
|
|
65638
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
65639
|
+
__metadata("design:returntype", Promise)
|
|
65640
|
+
], MJFileStorageAccountPermissionResolver.prototype, "DeleteMJFileStorageAccountPermission", null);
|
|
65641
|
+
MJFileStorageAccountPermissionResolver = __decorate([
|
|
65642
|
+
Resolver(MJFileStorageAccountPermission_)
|
|
65643
|
+
], MJFileStorageAccountPermissionResolver);
|
|
65644
|
+
export { MJFileStorageAccountPermissionResolver };
|
|
65645
|
+
//****************************************************************************
|
|
64422
65646
|
// ENTITY CLASS for MJ: File Storage Accounts
|
|
64423
65647
|
//****************************************************************************
|
|
64424
65648
|
let MJFileStorageAccount_ = class MJFileStorageAccount_ {
|
|
@@ -64455,6 +65679,10 @@ __decorate([
|
|
|
64455
65679
|
Field(),
|
|
64456
65680
|
__metadata("design:type", Date)
|
|
64457
65681
|
], MJFileStorageAccount_.prototype, "_mj__UpdatedAt", void 0);
|
|
65682
|
+
__decorate([
|
|
65683
|
+
Field(() => Boolean, { description: `When true, this storage account is included in universal/global search results. Only effective if the associated provider supports search (SupportsSearch = 1).` }),
|
|
65684
|
+
__metadata("design:type", Boolean)
|
|
65685
|
+
], MJFileStorageAccount_.prototype, "IncludeInGlobalSearch", void 0);
|
|
64458
65686
|
__decorate([
|
|
64459
65687
|
Field(),
|
|
64460
65688
|
MaxLength(50),
|
|
@@ -64465,6 +65693,22 @@ __decorate([
|
|
|
64465
65693
|
MaxLength(200),
|
|
64466
65694
|
__metadata("design:type", String)
|
|
64467
65695
|
], MJFileStorageAccount_.prototype, "Credential", void 0);
|
|
65696
|
+
__decorate([
|
|
65697
|
+
Field(() => [MJAIAgentType_]),
|
|
65698
|
+
__metadata("design:type", Array)
|
|
65699
|
+
], MJFileStorageAccount_.prototype, "MJAIAgentTypes_DefaultStorageAccountIDArray", void 0);
|
|
65700
|
+
__decorate([
|
|
65701
|
+
Field(() => [MJFileStorageAccountPermission_]),
|
|
65702
|
+
__metadata("design:type", Array)
|
|
65703
|
+
], MJFileStorageAccount_.prototype, "MJFileStorageAccountPermissions_FileStorageAccountIDArray", void 0);
|
|
65704
|
+
__decorate([
|
|
65705
|
+
Field(() => [MJAIAgentCategory_]),
|
|
65706
|
+
__metadata("design:type", Array)
|
|
65707
|
+
], MJFileStorageAccount_.prototype, "MJAIAgentCategories_DefaultStorageAccountIDArray", void 0);
|
|
65708
|
+
__decorate([
|
|
65709
|
+
Field(() => [MJAIAgent_]),
|
|
65710
|
+
__metadata("design:type", Array)
|
|
65711
|
+
], MJFileStorageAccount_.prototype, "MJAIAgents_DefaultStorageAccountIDArray", void 0);
|
|
64468
65712
|
MJFileStorageAccount_ = __decorate([
|
|
64469
65713
|
ObjectType({ description: `Enterprise-level file storage accounts. Each account represents a configured connection to a storage provider (e.g., Marketing Dropbox, Engineering Google Drive) with credentials managed centrally.` })
|
|
64470
65714
|
], MJFileStorageAccount_);
|
|
@@ -64494,6 +65738,10 @@ __decorate([
|
|
|
64494
65738
|
Field({ nullable: true }),
|
|
64495
65739
|
__metadata("design:type", String)
|
|
64496
65740
|
], CreateMJFileStorageAccountInput.prototype, "CredentialID", void 0);
|
|
65741
|
+
__decorate([
|
|
65742
|
+
Field(() => Boolean, { nullable: true }),
|
|
65743
|
+
__metadata("design:type", Boolean)
|
|
65744
|
+
], CreateMJFileStorageAccountInput.prototype, "IncludeInGlobalSearch", void 0);
|
|
64497
65745
|
CreateMJFileStorageAccountInput = __decorate([
|
|
64498
65746
|
InputType()
|
|
64499
65747
|
], CreateMJFileStorageAccountInput);
|
|
@@ -64523,6 +65771,10 @@ __decorate([
|
|
|
64523
65771
|
Field({ nullable: true }),
|
|
64524
65772
|
__metadata("design:type", String)
|
|
64525
65773
|
], UpdateMJFileStorageAccountInput.prototype, "CredentialID", void 0);
|
|
65774
|
+
__decorate([
|
|
65775
|
+
Field(() => Boolean, { nullable: true }),
|
|
65776
|
+
__metadata("design:type", Boolean)
|
|
65777
|
+
], UpdateMJFileStorageAccountInput.prototype, "IncludeInGlobalSearch", void 0);
|
|
64526
65778
|
__decorate([
|
|
64527
65779
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
64528
65780
|
__metadata("design:type", Array)
|
|
@@ -64590,6 +65842,38 @@ let MJFileStorageAccountResolver = class MJFileStorageAccountResolver extends Re
|
|
|
64590
65842
|
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Accounts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64591
65843
|
return result;
|
|
64592
65844
|
}
|
|
65845
|
+
async MJAIAgentTypes_DefaultStorageAccountIDArray(mjfilestorageaccount_, { userPayload, providers }, pubSub) {
|
|
65846
|
+
this.CheckUserReadPermissions('MJ: AI Agent Types', userPayload);
|
|
65847
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65848
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentTypes')} WHERE ${provider.QuoteIdentifier('DefaultStorageAccountID')}='${mjfilestorageaccount_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
65849
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65850
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Types', rows, this.GetUserFromPayload(userPayload));
|
|
65851
|
+
return result;
|
|
65852
|
+
}
|
|
65853
|
+
async MJFileStorageAccountPermissions_FileStorageAccountIDArray(mjfilestorageaccount_, { userPayload, providers }, pubSub) {
|
|
65854
|
+
this.CheckUserReadPermissions('MJ: File Storage Account Permissions', userPayload);
|
|
65855
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65856
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileStorageAccountPermissions')} WHERE ${provider.QuoteIdentifier('FileStorageAccountID')}='${mjfilestorageaccount_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Storage Account Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
65857
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65858
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: File Storage Account Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
65859
|
+
return result;
|
|
65860
|
+
}
|
|
65861
|
+
async MJAIAgentCategories_DefaultStorageAccountIDArray(mjfilestorageaccount_, { userPayload, providers }, pubSub) {
|
|
65862
|
+
this.CheckUserReadPermissions('MJ: AI Agent Categories', userPayload);
|
|
65863
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65864
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentCategories')} WHERE ${provider.QuoteIdentifier('DefaultStorageAccountID')}='${mjfilestorageaccount_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
65865
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65866
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Categories', rows, this.GetUserFromPayload(userPayload));
|
|
65867
|
+
return result;
|
|
65868
|
+
}
|
|
65869
|
+
async MJAIAgents_DefaultStorageAccountIDArray(mjfilestorageaccount_, { userPayload, providers }, pubSub) {
|
|
65870
|
+
this.CheckUserReadPermissions('MJ: AI Agents', userPayload);
|
|
65871
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65872
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgents')} WHERE ${provider.QuoteIdentifier('DefaultStorageAccountID')}='${mjfilestorageaccount_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agents', userPayload, EntityPermissionType.Read, 'AND');
|
|
65873
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65874
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agents', rows, this.GetUserFromPayload(userPayload));
|
|
65875
|
+
return result;
|
|
65876
|
+
}
|
|
64593
65877
|
async CreateMJFileStorageAccount(input, { providers, userPayload }, pubSub) {
|
|
64594
65878
|
const provider = GetReadWriteProvider(providers);
|
|
64595
65879
|
return this.CreateRecord('MJ: File Storage Accounts', input, provider, userPayload, pubSub);
|
|
@@ -64640,6 +65924,42 @@ __decorate([
|
|
|
64640
65924
|
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
64641
65925
|
__metadata("design:returntype", Promise)
|
|
64642
65926
|
], MJFileStorageAccountResolver.prototype, "MJFileStorageAccount", null);
|
|
65927
|
+
__decorate([
|
|
65928
|
+
FieldResolver(() => [MJAIAgentType_]),
|
|
65929
|
+
__param(0, Root()),
|
|
65930
|
+
__param(1, Ctx()),
|
|
65931
|
+
__param(2, PubSub()),
|
|
65932
|
+
__metadata("design:type", Function),
|
|
65933
|
+
__metadata("design:paramtypes", [MJFileStorageAccount_, Object, PubSubEngine]),
|
|
65934
|
+
__metadata("design:returntype", Promise)
|
|
65935
|
+
], MJFileStorageAccountResolver.prototype, "MJAIAgentTypes_DefaultStorageAccountIDArray", null);
|
|
65936
|
+
__decorate([
|
|
65937
|
+
FieldResolver(() => [MJFileStorageAccountPermission_]),
|
|
65938
|
+
__param(0, Root()),
|
|
65939
|
+
__param(1, Ctx()),
|
|
65940
|
+
__param(2, PubSub()),
|
|
65941
|
+
__metadata("design:type", Function),
|
|
65942
|
+
__metadata("design:paramtypes", [MJFileStorageAccount_, Object, PubSubEngine]),
|
|
65943
|
+
__metadata("design:returntype", Promise)
|
|
65944
|
+
], MJFileStorageAccountResolver.prototype, "MJFileStorageAccountPermissions_FileStorageAccountIDArray", null);
|
|
65945
|
+
__decorate([
|
|
65946
|
+
FieldResolver(() => [MJAIAgentCategory_]),
|
|
65947
|
+
__param(0, Root()),
|
|
65948
|
+
__param(1, Ctx()),
|
|
65949
|
+
__param(2, PubSub()),
|
|
65950
|
+
__metadata("design:type", Function),
|
|
65951
|
+
__metadata("design:paramtypes", [MJFileStorageAccount_, Object, PubSubEngine]),
|
|
65952
|
+
__metadata("design:returntype", Promise)
|
|
65953
|
+
], MJFileStorageAccountResolver.prototype, "MJAIAgentCategories_DefaultStorageAccountIDArray", null);
|
|
65954
|
+
__decorate([
|
|
65955
|
+
FieldResolver(() => [MJAIAgent_]),
|
|
65956
|
+
__param(0, Root()),
|
|
65957
|
+
__param(1, Ctx()),
|
|
65958
|
+
__param(2, PubSub()),
|
|
65959
|
+
__metadata("design:type", Function),
|
|
65960
|
+
__metadata("design:paramtypes", [MJFileStorageAccount_, Object, PubSubEngine]),
|
|
65961
|
+
__metadata("design:returntype", Promise)
|
|
65962
|
+
], MJFileStorageAccountResolver.prototype, "MJAIAgents_DefaultStorageAccountIDArray", null);
|
|
64643
65963
|
__decorate([
|
|
64644
65964
|
Mutation(() => MJFileStorageAccount_),
|
|
64645
65965
|
__param(0, Arg('input', () => CreateMJFileStorageAccountInput)),
|
|
@@ -65138,6 +66458,10 @@ __decorate([
|
|
|
65138
66458
|
Field(() => [MJAIAgentRunMedia_]),
|
|
65139
66459
|
__metadata("design:type", Array)
|
|
65140
66460
|
], MJFile_.prototype, "MJAIAgentRunMedias_FileIDArray", void 0);
|
|
66461
|
+
__decorate([
|
|
66462
|
+
Field(() => [MJArtifactVersion_]),
|
|
66463
|
+
__metadata("design:type", Array)
|
|
66464
|
+
], MJFile_.prototype, "MJArtifactVersions_FileIDArray", void 0);
|
|
65141
66465
|
MJFile_ = __decorate([
|
|
65142
66466
|
ObjectType({ description: `Manages file metadata, storage locations, and access control for all files stored within or referenced by the system.` })
|
|
65143
66467
|
], MJFile_);
|
|
@@ -65319,6 +66643,14 @@ let MJFileResolver = class MJFileResolver extends ResolverBase {
|
|
|
65319
66643
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows, this.GetUserFromPayload(userPayload));
|
|
65320
66644
|
return result;
|
|
65321
66645
|
}
|
|
66646
|
+
async MJArtifactVersions_FileIDArray(mjfile_, { userPayload, providers }, pubSub) {
|
|
66647
|
+
this.CheckUserReadPermissions('MJ: Artifact Versions', userPayload);
|
|
66648
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66649
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArtifactVersions')} WHERE ${provider.QuoteIdentifier('FileID')}='${mjfile_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
66650
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
66651
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Artifact Versions', rows, this.GetUserFromPayload(userPayload));
|
|
66652
|
+
return result;
|
|
66653
|
+
}
|
|
65322
66654
|
async CreateMJFile(input, { providers, userPayload }, pubSub) {
|
|
65323
66655
|
const provider = GetReadWriteProvider(providers);
|
|
65324
66656
|
return this.CreateRecord('MJ: Files', input, provider, userPayload, pubSub);
|
|
@@ -65405,6 +66737,15 @@ __decorate([
|
|
|
65405
66737
|
__metadata("design:paramtypes", [MJFile_, Object, PubSubEngine]),
|
|
65406
66738
|
__metadata("design:returntype", Promise)
|
|
65407
66739
|
], MJFileResolver.prototype, "MJAIAgentRunMedias_FileIDArray", null);
|
|
66740
|
+
__decorate([
|
|
66741
|
+
FieldResolver(() => [MJArtifactVersion_]),
|
|
66742
|
+
__param(0, Root()),
|
|
66743
|
+
__param(1, Ctx()),
|
|
66744
|
+
__param(2, PubSub()),
|
|
66745
|
+
__metadata("design:type", Function),
|
|
66746
|
+
__metadata("design:paramtypes", [MJFile_, Object, PubSubEngine]),
|
|
66747
|
+
__metadata("design:returntype", Promise)
|
|
66748
|
+
], MJFileResolver.prototype, "MJArtifactVersions_FileIDArray", null);
|
|
65408
66749
|
__decorate([
|
|
65409
66750
|
Mutation(() => MJFile_),
|
|
65410
66751
|
__param(0, Arg('input', () => CreateMJFileInput)),
|
|
@@ -66067,6 +67408,287 @@ MJGeneratedCodeResolver = __decorate([
|
|
|
66067
67408
|
], MJGeneratedCodeResolver);
|
|
66068
67409
|
export { MJGeneratedCodeResolver };
|
|
66069
67410
|
//****************************************************************************
|
|
67411
|
+
// ENTITY CLASS for MJ: Instance Configurations
|
|
67412
|
+
//****************************************************************************
|
|
67413
|
+
let MJInstanceConfiguration_ = class MJInstanceConfiguration_ {
|
|
67414
|
+
};
|
|
67415
|
+
__decorate([
|
|
67416
|
+
Field(),
|
|
67417
|
+
MaxLength(36),
|
|
67418
|
+
__metadata("design:type", String)
|
|
67419
|
+
], MJInstanceConfiguration_.prototype, "ID", void 0);
|
|
67420
|
+
__decorate([
|
|
67421
|
+
Field({ description: `Unique dot-notation key identifying the feature, e.g. Shell.SearchBar.Enabled.` }),
|
|
67422
|
+
MaxLength(200),
|
|
67423
|
+
__metadata("design:type", String)
|
|
67424
|
+
], MJInstanceConfiguration_.prototype, "FeatureKey", void 0);
|
|
67425
|
+
__decorate([
|
|
67426
|
+
Field({ description: `Current value for this feature setting.` }),
|
|
67427
|
+
__metadata("design:type", String)
|
|
67428
|
+
], MJInstanceConfiguration_.prototype, "Value", void 0);
|
|
67429
|
+
__decorate([
|
|
67430
|
+
Field({ description: `Data type of the value: boolean, string, number, or json.` }),
|
|
67431
|
+
MaxLength(20),
|
|
67432
|
+
__metadata("design:type", String)
|
|
67433
|
+
], MJInstanceConfiguration_.prototype, "ValueType", void 0);
|
|
67434
|
+
__decorate([
|
|
67435
|
+
Field({ description: `Grouping category for admin UI display.` }),
|
|
67436
|
+
MaxLength(100),
|
|
67437
|
+
__metadata("design:type", String)
|
|
67438
|
+
], MJInstanceConfiguration_.prototype, "Category", void 0);
|
|
67439
|
+
__decorate([
|
|
67440
|
+
Field({ description: `Human-readable display name for the setting.` }),
|
|
67441
|
+
MaxLength(200),
|
|
67442
|
+
__metadata("design:type", String)
|
|
67443
|
+
], MJInstanceConfiguration_.prototype, "DisplayName", void 0);
|
|
67444
|
+
__decorate([
|
|
67445
|
+
Field({ nullable: true, description: `Optional extended description or help text for the setting.` }),
|
|
67446
|
+
__metadata("design:type", String)
|
|
67447
|
+
], MJInstanceConfiguration_.prototype, "Description", void 0);
|
|
67448
|
+
__decorate([
|
|
67449
|
+
Field({ description: `Factory default value. Used when resetting to defaults.` }),
|
|
67450
|
+
__metadata("design:type", String)
|
|
67451
|
+
], MJInstanceConfiguration_.prototype, "DefaultValue", void 0);
|
|
67452
|
+
__decorate([
|
|
67453
|
+
Field(),
|
|
67454
|
+
__metadata("design:type", Date)
|
|
67455
|
+
], MJInstanceConfiguration_.prototype, "_mj__CreatedAt", void 0);
|
|
67456
|
+
__decorate([
|
|
67457
|
+
Field(),
|
|
67458
|
+
__metadata("design:type", Date)
|
|
67459
|
+
], MJInstanceConfiguration_.prototype, "_mj__UpdatedAt", void 0);
|
|
67460
|
+
MJInstanceConfiguration_ = __decorate([
|
|
67461
|
+
ObjectType({ description: `Instance-level feature toggles and configuration. Controls which features are enabled per MJ Explorer deployment.` })
|
|
67462
|
+
], MJInstanceConfiguration_);
|
|
67463
|
+
export { MJInstanceConfiguration_ };
|
|
67464
|
+
//****************************************************************************
|
|
67465
|
+
// INPUT TYPE for MJ: Instance Configurations
|
|
67466
|
+
//****************************************************************************
|
|
67467
|
+
let CreateMJInstanceConfigurationInput = class CreateMJInstanceConfigurationInput {
|
|
67468
|
+
};
|
|
67469
|
+
__decorate([
|
|
67470
|
+
Field({ nullable: true }),
|
|
67471
|
+
__metadata("design:type", String)
|
|
67472
|
+
], CreateMJInstanceConfigurationInput.prototype, "ID", void 0);
|
|
67473
|
+
__decorate([
|
|
67474
|
+
Field({ nullable: true }),
|
|
67475
|
+
__metadata("design:type", String)
|
|
67476
|
+
], CreateMJInstanceConfigurationInput.prototype, "FeatureKey", void 0);
|
|
67477
|
+
__decorate([
|
|
67478
|
+
Field({ nullable: true }),
|
|
67479
|
+
__metadata("design:type", String)
|
|
67480
|
+
], CreateMJInstanceConfigurationInput.prototype, "Value", void 0);
|
|
67481
|
+
__decorate([
|
|
67482
|
+
Field({ nullable: true }),
|
|
67483
|
+
__metadata("design:type", String)
|
|
67484
|
+
], CreateMJInstanceConfigurationInput.prototype, "ValueType", void 0);
|
|
67485
|
+
__decorate([
|
|
67486
|
+
Field({ nullable: true }),
|
|
67487
|
+
__metadata("design:type", String)
|
|
67488
|
+
], CreateMJInstanceConfigurationInput.prototype, "Category", void 0);
|
|
67489
|
+
__decorate([
|
|
67490
|
+
Field({ nullable: true }),
|
|
67491
|
+
__metadata("design:type", String)
|
|
67492
|
+
], CreateMJInstanceConfigurationInput.prototype, "DisplayName", void 0);
|
|
67493
|
+
__decorate([
|
|
67494
|
+
Field({ nullable: true }),
|
|
67495
|
+
__metadata("design:type", String)
|
|
67496
|
+
], CreateMJInstanceConfigurationInput.prototype, "Description", void 0);
|
|
67497
|
+
__decorate([
|
|
67498
|
+
Field({ nullable: true }),
|
|
67499
|
+
__metadata("design:type", String)
|
|
67500
|
+
], CreateMJInstanceConfigurationInput.prototype, "DefaultValue", void 0);
|
|
67501
|
+
CreateMJInstanceConfigurationInput = __decorate([
|
|
67502
|
+
InputType()
|
|
67503
|
+
], CreateMJInstanceConfigurationInput);
|
|
67504
|
+
export { CreateMJInstanceConfigurationInput };
|
|
67505
|
+
//****************************************************************************
|
|
67506
|
+
// INPUT TYPE for MJ: Instance Configurations
|
|
67507
|
+
//****************************************************************************
|
|
67508
|
+
let UpdateMJInstanceConfigurationInput = class UpdateMJInstanceConfigurationInput {
|
|
67509
|
+
};
|
|
67510
|
+
__decorate([
|
|
67511
|
+
Field(),
|
|
67512
|
+
__metadata("design:type", String)
|
|
67513
|
+
], UpdateMJInstanceConfigurationInput.prototype, "ID", void 0);
|
|
67514
|
+
__decorate([
|
|
67515
|
+
Field({ nullable: true }),
|
|
67516
|
+
__metadata("design:type", String)
|
|
67517
|
+
], UpdateMJInstanceConfigurationInput.prototype, "FeatureKey", void 0);
|
|
67518
|
+
__decorate([
|
|
67519
|
+
Field({ nullable: true }),
|
|
67520
|
+
__metadata("design:type", String)
|
|
67521
|
+
], UpdateMJInstanceConfigurationInput.prototype, "Value", void 0);
|
|
67522
|
+
__decorate([
|
|
67523
|
+
Field({ nullable: true }),
|
|
67524
|
+
__metadata("design:type", String)
|
|
67525
|
+
], UpdateMJInstanceConfigurationInput.prototype, "ValueType", void 0);
|
|
67526
|
+
__decorate([
|
|
67527
|
+
Field({ nullable: true }),
|
|
67528
|
+
__metadata("design:type", String)
|
|
67529
|
+
], UpdateMJInstanceConfigurationInput.prototype, "Category", void 0);
|
|
67530
|
+
__decorate([
|
|
67531
|
+
Field({ nullable: true }),
|
|
67532
|
+
__metadata("design:type", String)
|
|
67533
|
+
], UpdateMJInstanceConfigurationInput.prototype, "DisplayName", void 0);
|
|
67534
|
+
__decorate([
|
|
67535
|
+
Field({ nullable: true }),
|
|
67536
|
+
__metadata("design:type", String)
|
|
67537
|
+
], UpdateMJInstanceConfigurationInput.prototype, "Description", void 0);
|
|
67538
|
+
__decorate([
|
|
67539
|
+
Field({ nullable: true }),
|
|
67540
|
+
__metadata("design:type", String)
|
|
67541
|
+
], UpdateMJInstanceConfigurationInput.prototype, "DefaultValue", void 0);
|
|
67542
|
+
__decorate([
|
|
67543
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
67544
|
+
__metadata("design:type", Array)
|
|
67545
|
+
], UpdateMJInstanceConfigurationInput.prototype, "OldValues___", void 0);
|
|
67546
|
+
UpdateMJInstanceConfigurationInput = __decorate([
|
|
67547
|
+
InputType()
|
|
67548
|
+
], UpdateMJInstanceConfigurationInput);
|
|
67549
|
+
export { UpdateMJInstanceConfigurationInput };
|
|
67550
|
+
//****************************************************************************
|
|
67551
|
+
// RESOLVER for MJ: Instance Configurations
|
|
67552
|
+
//****************************************************************************
|
|
67553
|
+
let RunMJInstanceConfigurationViewResult = class RunMJInstanceConfigurationViewResult {
|
|
67554
|
+
};
|
|
67555
|
+
__decorate([
|
|
67556
|
+
Field(() => [MJInstanceConfiguration_]),
|
|
67557
|
+
__metadata("design:type", Array)
|
|
67558
|
+
], RunMJInstanceConfigurationViewResult.prototype, "Results", void 0);
|
|
67559
|
+
__decorate([
|
|
67560
|
+
Field(() => String, { nullable: true }),
|
|
67561
|
+
__metadata("design:type", String)
|
|
67562
|
+
], RunMJInstanceConfigurationViewResult.prototype, "UserViewRunID", void 0);
|
|
67563
|
+
__decorate([
|
|
67564
|
+
Field(() => Int, { nullable: true }),
|
|
67565
|
+
__metadata("design:type", Number)
|
|
67566
|
+
], RunMJInstanceConfigurationViewResult.prototype, "RowCount", void 0);
|
|
67567
|
+
__decorate([
|
|
67568
|
+
Field(() => Int, { nullable: true }),
|
|
67569
|
+
__metadata("design:type", Number)
|
|
67570
|
+
], RunMJInstanceConfigurationViewResult.prototype, "TotalRowCount", void 0);
|
|
67571
|
+
__decorate([
|
|
67572
|
+
Field(() => Int, { nullable: true }),
|
|
67573
|
+
__metadata("design:type", Number)
|
|
67574
|
+
], RunMJInstanceConfigurationViewResult.prototype, "ExecutionTime", void 0);
|
|
67575
|
+
__decorate([
|
|
67576
|
+
Field({ nullable: true }),
|
|
67577
|
+
__metadata("design:type", String)
|
|
67578
|
+
], RunMJInstanceConfigurationViewResult.prototype, "ErrorMessage", void 0);
|
|
67579
|
+
__decorate([
|
|
67580
|
+
Field(() => Boolean, { nullable: false }),
|
|
67581
|
+
__metadata("design:type", Boolean)
|
|
67582
|
+
], RunMJInstanceConfigurationViewResult.prototype, "Success", void 0);
|
|
67583
|
+
RunMJInstanceConfigurationViewResult = __decorate([
|
|
67584
|
+
ObjectType()
|
|
67585
|
+
], RunMJInstanceConfigurationViewResult);
|
|
67586
|
+
export { RunMJInstanceConfigurationViewResult };
|
|
67587
|
+
let MJInstanceConfigurationResolver = class MJInstanceConfigurationResolver extends ResolverBase {
|
|
67588
|
+
async RunMJInstanceConfigurationViewByID(input, { providers, userPayload }, pubSub) {
|
|
67589
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67590
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
67591
|
+
}
|
|
67592
|
+
async RunMJInstanceConfigurationViewByName(input, { providers, userPayload }, pubSub) {
|
|
67593
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67594
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
67595
|
+
}
|
|
67596
|
+
async RunMJInstanceConfigurationDynamicView(input, { providers, userPayload }, pubSub) {
|
|
67597
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67598
|
+
input.EntityName = 'MJ: Instance Configurations';
|
|
67599
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
67600
|
+
}
|
|
67601
|
+
async MJInstanceConfiguration(ID, { userPayload, providers }, pubSub) {
|
|
67602
|
+
this.CheckUserReadPermissions('MJ: Instance Configurations', userPayload);
|
|
67603
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67604
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwInstanceConfigurations')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Instance Configurations', userPayload, EntityPermissionType.Read, 'AND');
|
|
67605
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
67606
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Instance Configurations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67607
|
+
return result;
|
|
67608
|
+
}
|
|
67609
|
+
async CreateMJInstanceConfiguration(input, { providers, userPayload }, pubSub) {
|
|
67610
|
+
const provider = GetReadWriteProvider(providers);
|
|
67611
|
+
return this.CreateRecord('MJ: Instance Configurations', input, provider, userPayload, pubSub);
|
|
67612
|
+
}
|
|
67613
|
+
async UpdateMJInstanceConfiguration(input, { providers, userPayload }, pubSub) {
|
|
67614
|
+
const provider = GetReadWriteProvider(providers);
|
|
67615
|
+
return this.UpdateRecord('MJ: Instance Configurations', input, provider, userPayload, pubSub);
|
|
67616
|
+
}
|
|
67617
|
+
async DeleteMJInstanceConfiguration(ID, options, { providers, userPayload }, pubSub) {
|
|
67618
|
+
const provider = GetReadWriteProvider(providers);
|
|
67619
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
67620
|
+
return this.DeleteRecord('MJ: Instance Configurations', key, options, provider, userPayload, pubSub);
|
|
67621
|
+
}
|
|
67622
|
+
};
|
|
67623
|
+
__decorate([
|
|
67624
|
+
Query(() => RunMJInstanceConfigurationViewResult),
|
|
67625
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
67626
|
+
__param(1, Ctx()),
|
|
67627
|
+
__param(2, PubSub()),
|
|
67628
|
+
__metadata("design:type", Function),
|
|
67629
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
67630
|
+
__metadata("design:returntype", Promise)
|
|
67631
|
+
], MJInstanceConfigurationResolver.prototype, "RunMJInstanceConfigurationViewByID", null);
|
|
67632
|
+
__decorate([
|
|
67633
|
+
Query(() => RunMJInstanceConfigurationViewResult),
|
|
67634
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
67635
|
+
__param(1, Ctx()),
|
|
67636
|
+
__param(2, PubSub()),
|
|
67637
|
+
__metadata("design:type", Function),
|
|
67638
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
67639
|
+
__metadata("design:returntype", Promise)
|
|
67640
|
+
], MJInstanceConfigurationResolver.prototype, "RunMJInstanceConfigurationViewByName", null);
|
|
67641
|
+
__decorate([
|
|
67642
|
+
Query(() => RunMJInstanceConfigurationViewResult),
|
|
67643
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
67644
|
+
__param(1, Ctx()),
|
|
67645
|
+
__param(2, PubSub()),
|
|
67646
|
+
__metadata("design:type", Function),
|
|
67647
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
67648
|
+
__metadata("design:returntype", Promise)
|
|
67649
|
+
], MJInstanceConfigurationResolver.prototype, "RunMJInstanceConfigurationDynamicView", null);
|
|
67650
|
+
__decorate([
|
|
67651
|
+
Query(() => MJInstanceConfiguration_, { nullable: true }),
|
|
67652
|
+
__param(0, Arg('ID', () => String)),
|
|
67653
|
+
__param(1, Ctx()),
|
|
67654
|
+
__param(2, PubSub()),
|
|
67655
|
+
__metadata("design:type", Function),
|
|
67656
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
67657
|
+
__metadata("design:returntype", Promise)
|
|
67658
|
+
], MJInstanceConfigurationResolver.prototype, "MJInstanceConfiguration", null);
|
|
67659
|
+
__decorate([
|
|
67660
|
+
Mutation(() => MJInstanceConfiguration_),
|
|
67661
|
+
__param(0, Arg('input', () => CreateMJInstanceConfigurationInput)),
|
|
67662
|
+
__param(1, Ctx()),
|
|
67663
|
+
__param(2, PubSub()),
|
|
67664
|
+
__metadata("design:type", Function),
|
|
67665
|
+
__metadata("design:paramtypes", [CreateMJInstanceConfigurationInput, Object, PubSubEngine]),
|
|
67666
|
+
__metadata("design:returntype", Promise)
|
|
67667
|
+
], MJInstanceConfigurationResolver.prototype, "CreateMJInstanceConfiguration", null);
|
|
67668
|
+
__decorate([
|
|
67669
|
+
Mutation(() => MJInstanceConfiguration_),
|
|
67670
|
+
__param(0, Arg('input', () => UpdateMJInstanceConfigurationInput)),
|
|
67671
|
+
__param(1, Ctx()),
|
|
67672
|
+
__param(2, PubSub()),
|
|
67673
|
+
__metadata("design:type", Function),
|
|
67674
|
+
__metadata("design:paramtypes", [UpdateMJInstanceConfigurationInput, Object, PubSubEngine]),
|
|
67675
|
+
__metadata("design:returntype", Promise)
|
|
67676
|
+
], MJInstanceConfigurationResolver.prototype, "UpdateMJInstanceConfiguration", null);
|
|
67677
|
+
__decorate([
|
|
67678
|
+
Mutation(() => MJInstanceConfiguration_),
|
|
67679
|
+
__param(0, Arg('ID', () => String)),
|
|
67680
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
67681
|
+
__param(2, Ctx()),
|
|
67682
|
+
__param(3, PubSub()),
|
|
67683
|
+
__metadata("design:type", Function),
|
|
67684
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
67685
|
+
__metadata("design:returntype", Promise)
|
|
67686
|
+
], MJInstanceConfigurationResolver.prototype, "DeleteMJInstanceConfiguration", null);
|
|
67687
|
+
MJInstanceConfigurationResolver = __decorate([
|
|
67688
|
+
Resolver(MJInstanceConfiguration_)
|
|
67689
|
+
], MJInstanceConfigurationResolver);
|
|
67690
|
+
export { MJInstanceConfigurationResolver };
|
|
67691
|
+
//****************************************************************************
|
|
66070
67692
|
// ENTITY CLASS for MJ: Integration Object Fields
|
|
66071
67693
|
//****************************************************************************
|
|
66072
67694
|
let MJIntegrationObjectField_ = class MJIntegrationObjectField_ {
|
|
@@ -82057,6 +83679,391 @@ MJRecordChangeResolver = __decorate([
|
|
|
82057
83679
|
], MJRecordChangeResolver);
|
|
82058
83680
|
export { MJRecordChangeResolver };
|
|
82059
83681
|
//****************************************************************************
|
|
83682
|
+
// ENTITY CLASS for MJ: Record Geo Codes
|
|
83683
|
+
//****************************************************************************
|
|
83684
|
+
let MJRecordGeoCode_ = class MJRecordGeoCode_ {
|
|
83685
|
+
};
|
|
83686
|
+
__decorate([
|
|
83687
|
+
Field(),
|
|
83688
|
+
MaxLength(36),
|
|
83689
|
+
__metadata("design:type", String)
|
|
83690
|
+
], MJRecordGeoCode_.prototype, "ID", void 0);
|
|
83691
|
+
__decorate([
|
|
83692
|
+
Field({ description: `Foreign key to Entity. Identifies which entity this geocode belongs to.` }),
|
|
83693
|
+
MaxLength(36),
|
|
83694
|
+
__metadata("design:type", String)
|
|
83695
|
+
], MJRecordGeoCode_.prototype, "EntityID", void 0);
|
|
83696
|
+
__decorate([
|
|
83697
|
+
Field({ description: `MJ composite primary key format string identifying the source record (e.g., "ID|<uuid>"). Max 450 chars for SQL Server index support.` }),
|
|
83698
|
+
MaxLength(450),
|
|
83699
|
+
__metadata("design:type", String)
|
|
83700
|
+
], MJRecordGeoCode_.prototype, "RecordID", void 0);
|
|
83701
|
+
__decorate([
|
|
83702
|
+
Field({ description: `Discriminator for multi-location entities. Default "Primary" for single-address entities. Multi-address examples: "Home", "Business", "Mailing", "PO Box".` }),
|
|
83703
|
+
MaxLength(50),
|
|
83704
|
+
__metadata("design:type", String)
|
|
83705
|
+
], MJRecordGeoCode_.prototype, "LocationType", void 0);
|
|
83706
|
+
__decorate([
|
|
83707
|
+
Field(() => Float, { nullable: true, description: `Geocoded latitude coordinate. NULL when Status is "pending" or "failed".` }),
|
|
83708
|
+
__metadata("design:type", Number)
|
|
83709
|
+
], MJRecordGeoCode_.prototype, "Latitude", void 0);
|
|
83710
|
+
__decorate([
|
|
83711
|
+
Field(() => Float, { nullable: true, description: `Geocoded longitude coordinate. NULL when Status is "pending" or "failed".` }),
|
|
83712
|
+
__metadata("design:type", Number)
|
|
83713
|
+
], MJRecordGeoCode_.prototype, "Longitude", void 0);
|
|
83714
|
+
__decorate([
|
|
83715
|
+
Field({ nullable: true, description: `Precision level of the geocoded result: exact (street address), postal_code, city, county, state_province, or country.` }),
|
|
83716
|
+
MaxLength(20),
|
|
83717
|
+
__metadata("design:type", String)
|
|
83718
|
+
], MJRecordGeoCode_.prototype, "Precision", void 0);
|
|
83719
|
+
__decorate([
|
|
83720
|
+
Field({ nullable: true, description: `Optional FK to Country reference table. Populated alongside lat/lng to enable choropleth grouping without reverse-geocoding at render time.` }),
|
|
83721
|
+
MaxLength(36),
|
|
83722
|
+
__metadata("design:type", String)
|
|
83723
|
+
], MJRecordGeoCode_.prototype, "CountryID", void 0);
|
|
83724
|
+
__decorate([
|
|
83725
|
+
Field({ nullable: true, description: `Optional FK to StateProvince reference table. Populated alongside lat/lng to enable state-level choropleth grouping.` }),
|
|
83726
|
+
MaxLength(36),
|
|
83727
|
+
__metadata("design:type", String)
|
|
83728
|
+
], MJRecordGeoCode_.prototype, "StateProvinceID", void 0);
|
|
83729
|
+
__decorate([
|
|
83730
|
+
Field({ description: `Current geocoding status: "pending" (awaiting geocode), "success" (geocoded), or "failed" (geocoding error). Used by scheduled job for retry logic.` }),
|
|
83731
|
+
MaxLength(20),
|
|
83732
|
+
__metadata("design:type", String)
|
|
83733
|
+
], MJRecordGeoCode_.prototype, "Status", void 0);
|
|
83734
|
+
__decorate([
|
|
83735
|
+
Field({ nullable: true, description: `Error details when Status is "failed". Captures API error messages, rate limit info, etc. for debugging.` }),
|
|
83736
|
+
__metadata("design:type", String)
|
|
83737
|
+
], MJRecordGeoCode_.prototype, "ErrorMessage", void 0);
|
|
83738
|
+
__decorate([
|
|
83739
|
+
Field(() => Int, { description: `Number of geocoding attempts. Used for exponential backoff in the scheduled retry job. Stops retrying at configurable maxRetries (default 3).` }),
|
|
83740
|
+
__metadata("design:type", Number)
|
|
83741
|
+
], MJRecordGeoCode_.prototype, "RetryCount", void 0);
|
|
83742
|
+
__decorate([
|
|
83743
|
+
Field({ nullable: true, description: `SHA-256 hash of the source field values that produced this geocode. When source fields change on save, the hash won't match and re-geocoding is triggered. Format: SHA-256(concat(field1, "|", field2, ...)).` }),
|
|
83744
|
+
MaxLength(64),
|
|
83745
|
+
__metadata("design:type", String)
|
|
83746
|
+
], MJRecordGeoCode_.prototype, "SourceFieldHash", void 0);
|
|
83747
|
+
__decorate([
|
|
83748
|
+
Field({ nullable: true, description: `Timestamp of when geocoding was last attempted (success or failure).` }),
|
|
83749
|
+
__metadata("design:type", Date)
|
|
83750
|
+
], MJRecordGeoCode_.prototype, "GeocodedAt", void 0);
|
|
83751
|
+
__decorate([
|
|
83752
|
+
Field({ nullable: true, description: `How this geocode was produced: google (Google Geocoding API), reference_data (resolved via Country/StateProvince tables), manual (user-entered), ip_geolocation (IP lookup), native (copied from entity lat/lng fields), reverse (reverse geocode from coordinates).` }),
|
|
83753
|
+
MaxLength(30),
|
|
83754
|
+
__metadata("design:type", String)
|
|
83755
|
+
], MJRecordGeoCode_.prototype, "GeocodingSource", void 0);
|
|
83756
|
+
__decorate([
|
|
83757
|
+
Field(),
|
|
83758
|
+
__metadata("design:type", Date)
|
|
83759
|
+
], MJRecordGeoCode_.prototype, "_mj__CreatedAt", void 0);
|
|
83760
|
+
__decorate([
|
|
83761
|
+
Field(),
|
|
83762
|
+
__metadata("design:type", Date)
|
|
83763
|
+
], MJRecordGeoCode_.prototype, "_mj__UpdatedAt", void 0);
|
|
83764
|
+
__decorate([
|
|
83765
|
+
Field(),
|
|
83766
|
+
MaxLength(255),
|
|
83767
|
+
__metadata("design:type", String)
|
|
83768
|
+
], MJRecordGeoCode_.prototype, "Entity", void 0);
|
|
83769
|
+
__decorate([
|
|
83770
|
+
Field({ nullable: true }),
|
|
83771
|
+
MaxLength(200),
|
|
83772
|
+
__metadata("design:type", String)
|
|
83773
|
+
], MJRecordGeoCode_.prototype, "Country", void 0);
|
|
83774
|
+
__decorate([
|
|
83775
|
+
Field({ nullable: true }),
|
|
83776
|
+
MaxLength(200),
|
|
83777
|
+
__metadata("design:type", String)
|
|
83778
|
+
], MJRecordGeoCode_.prototype, "StateProvince", void 0);
|
|
83779
|
+
MJRecordGeoCode_ = __decorate([
|
|
83780
|
+
ObjectType({ description: `Polymorphic table storing persisted geocoding results for any MJ entity record. Each row maps an entity record + location type to a lat/lng coordinate, with optional country/state references for choropleth grouping. Supports multi-location entities via LocationType discriminator.` })
|
|
83781
|
+
], MJRecordGeoCode_);
|
|
83782
|
+
export { MJRecordGeoCode_ };
|
|
83783
|
+
//****************************************************************************
|
|
83784
|
+
// INPUT TYPE for MJ: Record Geo Codes
|
|
83785
|
+
//****************************************************************************
|
|
83786
|
+
let CreateMJRecordGeoCodeInput = class CreateMJRecordGeoCodeInput {
|
|
83787
|
+
};
|
|
83788
|
+
__decorate([
|
|
83789
|
+
Field({ nullable: true }),
|
|
83790
|
+
__metadata("design:type", String)
|
|
83791
|
+
], CreateMJRecordGeoCodeInput.prototype, "ID", void 0);
|
|
83792
|
+
__decorate([
|
|
83793
|
+
Field({ nullable: true }),
|
|
83794
|
+
__metadata("design:type", String)
|
|
83795
|
+
], CreateMJRecordGeoCodeInput.prototype, "EntityID", void 0);
|
|
83796
|
+
__decorate([
|
|
83797
|
+
Field({ nullable: true }),
|
|
83798
|
+
__metadata("design:type", String)
|
|
83799
|
+
], CreateMJRecordGeoCodeInput.prototype, "RecordID", void 0);
|
|
83800
|
+
__decorate([
|
|
83801
|
+
Field({ nullable: true }),
|
|
83802
|
+
__metadata("design:type", String)
|
|
83803
|
+
], CreateMJRecordGeoCodeInput.prototype, "LocationType", void 0);
|
|
83804
|
+
__decorate([
|
|
83805
|
+
Field(() => Float, { nullable: true }),
|
|
83806
|
+
__metadata("design:type", Number)
|
|
83807
|
+
], CreateMJRecordGeoCodeInput.prototype, "Latitude", void 0);
|
|
83808
|
+
__decorate([
|
|
83809
|
+
Field(() => Float, { nullable: true }),
|
|
83810
|
+
__metadata("design:type", Number)
|
|
83811
|
+
], CreateMJRecordGeoCodeInput.prototype, "Longitude", void 0);
|
|
83812
|
+
__decorate([
|
|
83813
|
+
Field({ nullable: true }),
|
|
83814
|
+
__metadata("design:type", String)
|
|
83815
|
+
], CreateMJRecordGeoCodeInput.prototype, "Precision", void 0);
|
|
83816
|
+
__decorate([
|
|
83817
|
+
Field({ nullable: true }),
|
|
83818
|
+
__metadata("design:type", String)
|
|
83819
|
+
], CreateMJRecordGeoCodeInput.prototype, "CountryID", void 0);
|
|
83820
|
+
__decorate([
|
|
83821
|
+
Field({ nullable: true }),
|
|
83822
|
+
__metadata("design:type", String)
|
|
83823
|
+
], CreateMJRecordGeoCodeInput.prototype, "StateProvinceID", void 0);
|
|
83824
|
+
__decorate([
|
|
83825
|
+
Field({ nullable: true }),
|
|
83826
|
+
__metadata("design:type", String)
|
|
83827
|
+
], CreateMJRecordGeoCodeInput.prototype, "Status", void 0);
|
|
83828
|
+
__decorate([
|
|
83829
|
+
Field({ nullable: true }),
|
|
83830
|
+
__metadata("design:type", String)
|
|
83831
|
+
], CreateMJRecordGeoCodeInput.prototype, "ErrorMessage", void 0);
|
|
83832
|
+
__decorate([
|
|
83833
|
+
Field(() => Int, { nullable: true }),
|
|
83834
|
+
__metadata("design:type", Number)
|
|
83835
|
+
], CreateMJRecordGeoCodeInput.prototype, "RetryCount", void 0);
|
|
83836
|
+
__decorate([
|
|
83837
|
+
Field({ nullable: true }),
|
|
83838
|
+
__metadata("design:type", String)
|
|
83839
|
+
], CreateMJRecordGeoCodeInput.prototype, "SourceFieldHash", void 0);
|
|
83840
|
+
__decorate([
|
|
83841
|
+
Field({ nullable: true }),
|
|
83842
|
+
__metadata("design:type", Date)
|
|
83843
|
+
], CreateMJRecordGeoCodeInput.prototype, "GeocodedAt", void 0);
|
|
83844
|
+
__decorate([
|
|
83845
|
+
Field({ nullable: true }),
|
|
83846
|
+
__metadata("design:type", String)
|
|
83847
|
+
], CreateMJRecordGeoCodeInput.prototype, "GeocodingSource", void 0);
|
|
83848
|
+
CreateMJRecordGeoCodeInput = __decorate([
|
|
83849
|
+
InputType()
|
|
83850
|
+
], CreateMJRecordGeoCodeInput);
|
|
83851
|
+
export { CreateMJRecordGeoCodeInput };
|
|
83852
|
+
//****************************************************************************
|
|
83853
|
+
// INPUT TYPE for MJ: Record Geo Codes
|
|
83854
|
+
//****************************************************************************
|
|
83855
|
+
let UpdateMJRecordGeoCodeInput = class UpdateMJRecordGeoCodeInput {
|
|
83856
|
+
};
|
|
83857
|
+
__decorate([
|
|
83858
|
+
Field(),
|
|
83859
|
+
__metadata("design:type", String)
|
|
83860
|
+
], UpdateMJRecordGeoCodeInput.prototype, "ID", void 0);
|
|
83861
|
+
__decorate([
|
|
83862
|
+
Field({ nullable: true }),
|
|
83863
|
+
__metadata("design:type", String)
|
|
83864
|
+
], UpdateMJRecordGeoCodeInput.prototype, "EntityID", void 0);
|
|
83865
|
+
__decorate([
|
|
83866
|
+
Field({ nullable: true }),
|
|
83867
|
+
__metadata("design:type", String)
|
|
83868
|
+
], UpdateMJRecordGeoCodeInput.prototype, "RecordID", void 0);
|
|
83869
|
+
__decorate([
|
|
83870
|
+
Field({ nullable: true }),
|
|
83871
|
+
__metadata("design:type", String)
|
|
83872
|
+
], UpdateMJRecordGeoCodeInput.prototype, "LocationType", void 0);
|
|
83873
|
+
__decorate([
|
|
83874
|
+
Field(() => Float, { nullable: true }),
|
|
83875
|
+
__metadata("design:type", Number)
|
|
83876
|
+
], UpdateMJRecordGeoCodeInput.prototype, "Latitude", void 0);
|
|
83877
|
+
__decorate([
|
|
83878
|
+
Field(() => Float, { nullable: true }),
|
|
83879
|
+
__metadata("design:type", Number)
|
|
83880
|
+
], UpdateMJRecordGeoCodeInput.prototype, "Longitude", void 0);
|
|
83881
|
+
__decorate([
|
|
83882
|
+
Field({ nullable: true }),
|
|
83883
|
+
__metadata("design:type", String)
|
|
83884
|
+
], UpdateMJRecordGeoCodeInput.prototype, "Precision", void 0);
|
|
83885
|
+
__decorate([
|
|
83886
|
+
Field({ nullable: true }),
|
|
83887
|
+
__metadata("design:type", String)
|
|
83888
|
+
], UpdateMJRecordGeoCodeInput.prototype, "CountryID", void 0);
|
|
83889
|
+
__decorate([
|
|
83890
|
+
Field({ nullable: true }),
|
|
83891
|
+
__metadata("design:type", String)
|
|
83892
|
+
], UpdateMJRecordGeoCodeInput.prototype, "StateProvinceID", void 0);
|
|
83893
|
+
__decorate([
|
|
83894
|
+
Field({ nullable: true }),
|
|
83895
|
+
__metadata("design:type", String)
|
|
83896
|
+
], UpdateMJRecordGeoCodeInput.prototype, "Status", void 0);
|
|
83897
|
+
__decorate([
|
|
83898
|
+
Field({ nullable: true }),
|
|
83899
|
+
__metadata("design:type", String)
|
|
83900
|
+
], UpdateMJRecordGeoCodeInput.prototype, "ErrorMessage", void 0);
|
|
83901
|
+
__decorate([
|
|
83902
|
+
Field(() => Int, { nullable: true }),
|
|
83903
|
+
__metadata("design:type", Number)
|
|
83904
|
+
], UpdateMJRecordGeoCodeInput.prototype, "RetryCount", void 0);
|
|
83905
|
+
__decorate([
|
|
83906
|
+
Field({ nullable: true }),
|
|
83907
|
+
__metadata("design:type", String)
|
|
83908
|
+
], UpdateMJRecordGeoCodeInput.prototype, "SourceFieldHash", void 0);
|
|
83909
|
+
__decorate([
|
|
83910
|
+
Field({ nullable: true }),
|
|
83911
|
+
__metadata("design:type", Date)
|
|
83912
|
+
], UpdateMJRecordGeoCodeInput.prototype, "GeocodedAt", void 0);
|
|
83913
|
+
__decorate([
|
|
83914
|
+
Field({ nullable: true }),
|
|
83915
|
+
__metadata("design:type", String)
|
|
83916
|
+
], UpdateMJRecordGeoCodeInput.prototype, "GeocodingSource", void 0);
|
|
83917
|
+
__decorate([
|
|
83918
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
83919
|
+
__metadata("design:type", Array)
|
|
83920
|
+
], UpdateMJRecordGeoCodeInput.prototype, "OldValues___", void 0);
|
|
83921
|
+
UpdateMJRecordGeoCodeInput = __decorate([
|
|
83922
|
+
InputType()
|
|
83923
|
+
], UpdateMJRecordGeoCodeInput);
|
|
83924
|
+
export { UpdateMJRecordGeoCodeInput };
|
|
83925
|
+
//****************************************************************************
|
|
83926
|
+
// RESOLVER for MJ: Record Geo Codes
|
|
83927
|
+
//****************************************************************************
|
|
83928
|
+
let RunMJRecordGeoCodeViewResult = class RunMJRecordGeoCodeViewResult {
|
|
83929
|
+
};
|
|
83930
|
+
__decorate([
|
|
83931
|
+
Field(() => [MJRecordGeoCode_]),
|
|
83932
|
+
__metadata("design:type", Array)
|
|
83933
|
+
], RunMJRecordGeoCodeViewResult.prototype, "Results", void 0);
|
|
83934
|
+
__decorate([
|
|
83935
|
+
Field(() => String, { nullable: true }),
|
|
83936
|
+
__metadata("design:type", String)
|
|
83937
|
+
], RunMJRecordGeoCodeViewResult.prototype, "UserViewRunID", void 0);
|
|
83938
|
+
__decorate([
|
|
83939
|
+
Field(() => Int, { nullable: true }),
|
|
83940
|
+
__metadata("design:type", Number)
|
|
83941
|
+
], RunMJRecordGeoCodeViewResult.prototype, "RowCount", void 0);
|
|
83942
|
+
__decorate([
|
|
83943
|
+
Field(() => Int, { nullable: true }),
|
|
83944
|
+
__metadata("design:type", Number)
|
|
83945
|
+
], RunMJRecordGeoCodeViewResult.prototype, "TotalRowCount", void 0);
|
|
83946
|
+
__decorate([
|
|
83947
|
+
Field(() => Int, { nullable: true }),
|
|
83948
|
+
__metadata("design:type", Number)
|
|
83949
|
+
], RunMJRecordGeoCodeViewResult.prototype, "ExecutionTime", void 0);
|
|
83950
|
+
__decorate([
|
|
83951
|
+
Field({ nullable: true }),
|
|
83952
|
+
__metadata("design:type", String)
|
|
83953
|
+
], RunMJRecordGeoCodeViewResult.prototype, "ErrorMessage", void 0);
|
|
83954
|
+
__decorate([
|
|
83955
|
+
Field(() => Boolean, { nullable: false }),
|
|
83956
|
+
__metadata("design:type", Boolean)
|
|
83957
|
+
], RunMJRecordGeoCodeViewResult.prototype, "Success", void 0);
|
|
83958
|
+
RunMJRecordGeoCodeViewResult = __decorate([
|
|
83959
|
+
ObjectType()
|
|
83960
|
+
], RunMJRecordGeoCodeViewResult);
|
|
83961
|
+
export { RunMJRecordGeoCodeViewResult };
|
|
83962
|
+
let MJRecordGeoCodeResolver = class MJRecordGeoCodeResolver extends ResolverBase {
|
|
83963
|
+
async RunMJRecordGeoCodeViewByID(input, { providers, userPayload }, pubSub) {
|
|
83964
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
83965
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
83966
|
+
}
|
|
83967
|
+
async RunMJRecordGeoCodeViewByName(input, { providers, userPayload }, pubSub) {
|
|
83968
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
83969
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
83970
|
+
}
|
|
83971
|
+
async RunMJRecordGeoCodeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
83972
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
83973
|
+
input.EntityName = 'MJ: Record Geo Codes';
|
|
83974
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
83975
|
+
}
|
|
83976
|
+
async MJRecordGeoCode(ID, { userPayload, providers }, pubSub) {
|
|
83977
|
+
this.CheckUserReadPermissions('MJ: Record Geo Codes', userPayload);
|
|
83978
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
83979
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordGeoCodes')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Geo Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
83980
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
83981
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Geo Codes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
83982
|
+
return result;
|
|
83983
|
+
}
|
|
83984
|
+
async CreateMJRecordGeoCode(input, { providers, userPayload }, pubSub) {
|
|
83985
|
+
const provider = GetReadWriteProvider(providers);
|
|
83986
|
+
return this.CreateRecord('MJ: Record Geo Codes', input, provider, userPayload, pubSub);
|
|
83987
|
+
}
|
|
83988
|
+
async UpdateMJRecordGeoCode(input, { providers, userPayload }, pubSub) {
|
|
83989
|
+
const provider = GetReadWriteProvider(providers);
|
|
83990
|
+
return this.UpdateRecord('MJ: Record Geo Codes', input, provider, userPayload, pubSub);
|
|
83991
|
+
}
|
|
83992
|
+
async DeleteMJRecordGeoCode(ID, options, { providers, userPayload }, pubSub) {
|
|
83993
|
+
const provider = GetReadWriteProvider(providers);
|
|
83994
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
83995
|
+
return this.DeleteRecord('MJ: Record Geo Codes', key, options, provider, userPayload, pubSub);
|
|
83996
|
+
}
|
|
83997
|
+
};
|
|
83998
|
+
__decorate([
|
|
83999
|
+
Query(() => RunMJRecordGeoCodeViewResult),
|
|
84000
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
84001
|
+
__param(1, Ctx()),
|
|
84002
|
+
__param(2, PubSub()),
|
|
84003
|
+
__metadata("design:type", Function),
|
|
84004
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
84005
|
+
__metadata("design:returntype", Promise)
|
|
84006
|
+
], MJRecordGeoCodeResolver.prototype, "RunMJRecordGeoCodeViewByID", null);
|
|
84007
|
+
__decorate([
|
|
84008
|
+
Query(() => RunMJRecordGeoCodeViewResult),
|
|
84009
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
84010
|
+
__param(1, Ctx()),
|
|
84011
|
+
__param(2, PubSub()),
|
|
84012
|
+
__metadata("design:type", Function),
|
|
84013
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
84014
|
+
__metadata("design:returntype", Promise)
|
|
84015
|
+
], MJRecordGeoCodeResolver.prototype, "RunMJRecordGeoCodeViewByName", null);
|
|
84016
|
+
__decorate([
|
|
84017
|
+
Query(() => RunMJRecordGeoCodeViewResult),
|
|
84018
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
84019
|
+
__param(1, Ctx()),
|
|
84020
|
+
__param(2, PubSub()),
|
|
84021
|
+
__metadata("design:type", Function),
|
|
84022
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
84023
|
+
__metadata("design:returntype", Promise)
|
|
84024
|
+
], MJRecordGeoCodeResolver.prototype, "RunMJRecordGeoCodeDynamicView", null);
|
|
84025
|
+
__decorate([
|
|
84026
|
+
Query(() => MJRecordGeoCode_, { nullable: true }),
|
|
84027
|
+
__param(0, Arg('ID', () => String)),
|
|
84028
|
+
__param(1, Ctx()),
|
|
84029
|
+
__param(2, PubSub()),
|
|
84030
|
+
__metadata("design:type", Function),
|
|
84031
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
84032
|
+
__metadata("design:returntype", Promise)
|
|
84033
|
+
], MJRecordGeoCodeResolver.prototype, "MJRecordGeoCode", null);
|
|
84034
|
+
__decorate([
|
|
84035
|
+
Mutation(() => MJRecordGeoCode_),
|
|
84036
|
+
__param(0, Arg('input', () => CreateMJRecordGeoCodeInput)),
|
|
84037
|
+
__param(1, Ctx()),
|
|
84038
|
+
__param(2, PubSub()),
|
|
84039
|
+
__metadata("design:type", Function),
|
|
84040
|
+
__metadata("design:paramtypes", [CreateMJRecordGeoCodeInput, Object, PubSubEngine]),
|
|
84041
|
+
__metadata("design:returntype", Promise)
|
|
84042
|
+
], MJRecordGeoCodeResolver.prototype, "CreateMJRecordGeoCode", null);
|
|
84043
|
+
__decorate([
|
|
84044
|
+
Mutation(() => MJRecordGeoCode_),
|
|
84045
|
+
__param(0, Arg('input', () => UpdateMJRecordGeoCodeInput)),
|
|
84046
|
+
__param(1, Ctx()),
|
|
84047
|
+
__param(2, PubSub()),
|
|
84048
|
+
__metadata("design:type", Function),
|
|
84049
|
+
__metadata("design:paramtypes", [UpdateMJRecordGeoCodeInput, Object, PubSubEngine]),
|
|
84050
|
+
__metadata("design:returntype", Promise)
|
|
84051
|
+
], MJRecordGeoCodeResolver.prototype, "UpdateMJRecordGeoCode", null);
|
|
84052
|
+
__decorate([
|
|
84053
|
+
Mutation(() => MJRecordGeoCode_),
|
|
84054
|
+
__param(0, Arg('ID', () => String)),
|
|
84055
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
84056
|
+
__param(2, Ctx()),
|
|
84057
|
+
__param(3, PubSub()),
|
|
84058
|
+
__metadata("design:type", Function),
|
|
84059
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
84060
|
+
__metadata("design:returntype", Promise)
|
|
84061
|
+
], MJRecordGeoCodeResolver.prototype, "DeleteMJRecordGeoCode", null);
|
|
84062
|
+
MJRecordGeoCodeResolver = __decorate([
|
|
84063
|
+
Resolver(MJRecordGeoCode_)
|
|
84064
|
+
], MJRecordGeoCodeResolver);
|
|
84065
|
+
export { MJRecordGeoCodeResolver };
|
|
84066
|
+
//****************************************************************************
|
|
82060
84067
|
// ENTITY CLASS for MJ: Record Links
|
|
82061
84068
|
//****************************************************************************
|
|
82062
84069
|
let MJRecordLink_ = class MJRecordLink_ {
|
|
@@ -85571,6 +87578,14 @@ __decorate([
|
|
|
85571
87578
|
Field(() => [MJMCPServerConnectionPermission_]),
|
|
85572
87579
|
__metadata("design:type", Array)
|
|
85573
87580
|
], MJRole_.prototype, "MJMCPServerConnectionPermissions_RoleIDArray", void 0);
|
|
87581
|
+
__decorate([
|
|
87582
|
+
Field(() => [MJFileStorageAccountPermission_]),
|
|
87583
|
+
__metadata("design:type", Array)
|
|
87584
|
+
], MJRole_.prototype, "MJFileStorageAccountPermissions_RoleIDArray", void 0);
|
|
87585
|
+
__decorate([
|
|
87586
|
+
Field(() => [MJApplicationRole_]),
|
|
87587
|
+
__metadata("design:type", Array)
|
|
87588
|
+
], MJRole_.prototype, "MJApplicationRoles_RoleIDArray", void 0);
|
|
85574
87589
|
__decorate([
|
|
85575
87590
|
Field(() => [MJAIAgentPermission_]),
|
|
85576
87591
|
__metadata("design:type", Array)
|
|
@@ -85764,6 +87779,22 @@ let MJRoleResolver = class MJRoleResolver extends ResolverBase {
|
|
|
85764
87779
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Connection Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
85765
87780
|
return result;
|
|
85766
87781
|
}
|
|
87782
|
+
async MJFileStorageAccountPermissions_RoleIDArray(mjrole_, { userPayload, providers }, pubSub) {
|
|
87783
|
+
this.CheckUserReadPermissions('MJ: File Storage Account Permissions', userPayload);
|
|
87784
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
87785
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileStorageAccountPermissions')} WHERE ${provider.QuoteIdentifier('RoleID')}='${mjrole_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Storage Account Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
87786
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
87787
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: File Storage Account Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
87788
|
+
return result;
|
|
87789
|
+
}
|
|
87790
|
+
async MJApplicationRoles_RoleIDArray(mjrole_, { userPayload, providers }, pubSub) {
|
|
87791
|
+
this.CheckUserReadPermissions('MJ: Application Roles', userPayload);
|
|
87792
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
87793
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwApplicationRoles')} WHERE ${provider.QuoteIdentifier('RoleID')}='${mjrole_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Application Roles', userPayload, EntityPermissionType.Read, 'AND');
|
|
87794
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
87795
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Application Roles', rows, this.GetUserFromPayload(userPayload));
|
|
87796
|
+
return result;
|
|
87797
|
+
}
|
|
85767
87798
|
async MJAIAgentPermissions_RoleIDArray(mjrole_, { userPayload, providers }, pubSub) {
|
|
85768
87799
|
this.CheckUserReadPermissions('MJ: AI Agent Permissions', userPayload);
|
|
85769
87800
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -85893,6 +87924,24 @@ __decorate([
|
|
|
85893
87924
|
__metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
|
|
85894
87925
|
__metadata("design:returntype", Promise)
|
|
85895
87926
|
], MJRoleResolver.prototype, "MJMCPServerConnectionPermissions_RoleIDArray", null);
|
|
87927
|
+
__decorate([
|
|
87928
|
+
FieldResolver(() => [MJFileStorageAccountPermission_]),
|
|
87929
|
+
__param(0, Root()),
|
|
87930
|
+
__param(1, Ctx()),
|
|
87931
|
+
__param(2, PubSub()),
|
|
87932
|
+
__metadata("design:type", Function),
|
|
87933
|
+
__metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
|
|
87934
|
+
__metadata("design:returntype", Promise)
|
|
87935
|
+
], MJRoleResolver.prototype, "MJFileStorageAccountPermissions_RoleIDArray", null);
|
|
87936
|
+
__decorate([
|
|
87937
|
+
FieldResolver(() => [MJApplicationRole_]),
|
|
87938
|
+
__param(0, Root()),
|
|
87939
|
+
__param(1, Ctx()),
|
|
87940
|
+
__param(2, PubSub()),
|
|
87941
|
+
__metadata("design:type", Function),
|
|
87942
|
+
__metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
|
|
87943
|
+
__metadata("design:returntype", Promise)
|
|
87944
|
+
], MJRoleResolver.prototype, "MJApplicationRoles_RoleIDArray", null);
|
|
85896
87945
|
__decorate([
|
|
85897
87946
|
FieldResolver(() => [MJAIAgentPermission_]),
|
|
85898
87947
|
__param(0, Root()),
|
|
@@ -88428,6 +90477,354 @@ MJSchemaInfoResolver = __decorate([
|
|
|
88428
90477
|
], MJSchemaInfoResolver);
|
|
88429
90478
|
export { MJSchemaInfoResolver };
|
|
88430
90479
|
//****************************************************************************
|
|
90480
|
+
// ENTITY CLASS for MJ: Search Providers
|
|
90481
|
+
//****************************************************************************
|
|
90482
|
+
let MJSearchProvider_ = class MJSearchProvider_ {
|
|
90483
|
+
};
|
|
90484
|
+
__decorate([
|
|
90485
|
+
Field(),
|
|
90486
|
+
MaxLength(36),
|
|
90487
|
+
__metadata("design:type", String)
|
|
90488
|
+
], MJSearchProvider_.prototype, "ID", void 0);
|
|
90489
|
+
__decorate([
|
|
90490
|
+
Field({ description: `Display name for this search provider (e.g., "Vector Search", "Algolia")` }),
|
|
90491
|
+
MaxLength(200),
|
|
90492
|
+
__metadata("design:type", String)
|
|
90493
|
+
], MJSearchProvider_.prototype, "Name", void 0);
|
|
90494
|
+
__decorate([
|
|
90495
|
+
Field({ nullable: true, description: `Human-readable description of what this provider searches and how it works` }),
|
|
90496
|
+
__metadata("design:type", String)
|
|
90497
|
+
], MJSearchProvider_.prototype, "Description", void 0);
|
|
90498
|
+
__decorate([
|
|
90499
|
+
Field({ description: `ClassFactory key used with @RegisterClass(ISearchProvider, DriverClass) to instantiate the provider at runtime` }),
|
|
90500
|
+
MaxLength(500),
|
|
90501
|
+
__metadata("design:type", String)
|
|
90502
|
+
], MJSearchProvider_.prototype, "DriverClass", void 0);
|
|
90503
|
+
__decorate([
|
|
90504
|
+
Field({ description: `Provider lifecycle status: Pending (not yet activated), Active (in use), Terminated (disabled)` }),
|
|
90505
|
+
MaxLength(20),
|
|
90506
|
+
__metadata("design:type", String)
|
|
90507
|
+
], MJSearchProvider_.prototype, "Status", void 0);
|
|
90508
|
+
__decorate([
|
|
90509
|
+
Field(() => Int, { description: `Execution priority (lower = higher priority). Controls provider ordering and can influence RRF weighting. Must be >= 0.` }),
|
|
90510
|
+
__metadata("design:type", Number)
|
|
90511
|
+
], MJSearchProvider_.prototype, "Priority", void 0);
|
|
90512
|
+
__decorate([
|
|
90513
|
+
Field(() => Boolean, { description: `Whether this provider should run during fast preview/autocomplete searches. Expensive providers (external APIs) may set this to 0.` }),
|
|
90514
|
+
__metadata("design:type", Boolean)
|
|
90515
|
+
], MJSearchProvider_.prototype, "SupportsPreview", void 0);
|
|
90516
|
+
__decorate([
|
|
90517
|
+
Field(() => Int, { nullable: true, description: `Optional per-provider cap on the number of results to return. Useful for rate-limited or pay-per-query external APIs. When NULL, uses the SearchEngine default.` }),
|
|
90518
|
+
__metadata("design:type", Number)
|
|
90519
|
+
], MJSearchProvider_.prototype, "MaxResultsOverride", void 0);
|
|
90520
|
+
__decorate([
|
|
90521
|
+
Field({ nullable: true, description: `Optional JSON configuration blob for provider-specific settings (e.g., API endpoints, index names, tuning parameters). Schema is provider-defined.` }),
|
|
90522
|
+
__metadata("design:type", String)
|
|
90523
|
+
], MJSearchProvider_.prototype, "ProviderConfig", void 0);
|
|
90524
|
+
__decorate([
|
|
90525
|
+
Field({ nullable: true, description: `Optional FK to the Credential entity for providers that require authentication (e.g., Algolia API key, external service credentials)` }),
|
|
90526
|
+
MaxLength(36),
|
|
90527
|
+
__metadata("design:type", String)
|
|
90528
|
+
], MJSearchProvider_.prototype, "CredentialID", void 0);
|
|
90529
|
+
__decorate([
|
|
90530
|
+
Field({ nullable: true, description: `UI display name for this provider shown in filter facets and result grouping (e.g., "Database", "Semantic Search"). When NULL, falls back to the Name column.` }),
|
|
90531
|
+
MaxLength(200),
|
|
90532
|
+
__metadata("design:type", String)
|
|
90533
|
+
], MJSearchProvider_.prototype, "DisplayName", void 0);
|
|
90534
|
+
__decorate([
|
|
90535
|
+
Field({ nullable: true, description: `CSS icon class for UI display in filter facets and result badges (e.g., "fa-solid fa-database", "fa-solid fa-brain"). Supports any CSS-based icon library. When NULL, a default icon is used.` }),
|
|
90536
|
+
MaxLength(200),
|
|
90537
|
+
__metadata("design:type", String)
|
|
90538
|
+
], MJSearchProvider_.prototype, "Icon", void 0);
|
|
90539
|
+
__decorate([
|
|
90540
|
+
Field({ nullable: true, description: `Free-form notes about this provider configuration` }),
|
|
90541
|
+
__metadata("design:type", String)
|
|
90542
|
+
], MJSearchProvider_.prototype, "Comments", void 0);
|
|
90543
|
+
__decorate([
|
|
90544
|
+
Field(),
|
|
90545
|
+
__metadata("design:type", Date)
|
|
90546
|
+
], MJSearchProvider_.prototype, "_mj__CreatedAt", void 0);
|
|
90547
|
+
__decorate([
|
|
90548
|
+
Field(),
|
|
90549
|
+
__metadata("design:type", Date)
|
|
90550
|
+
], MJSearchProvider_.prototype, "_mj__UpdatedAt", void 0);
|
|
90551
|
+
__decorate([
|
|
90552
|
+
Field({ nullable: true }),
|
|
90553
|
+
MaxLength(200),
|
|
90554
|
+
__metadata("design:type", String)
|
|
90555
|
+
], MJSearchProvider_.prototype, "Credential", void 0);
|
|
90556
|
+
MJSearchProvider_ = __decorate([
|
|
90557
|
+
ObjectType()
|
|
90558
|
+
], MJSearchProvider_);
|
|
90559
|
+
export { MJSearchProvider_ };
|
|
90560
|
+
//****************************************************************************
|
|
90561
|
+
// INPUT TYPE for MJ: Search Providers
|
|
90562
|
+
//****************************************************************************
|
|
90563
|
+
let CreateMJSearchProviderInput = class CreateMJSearchProviderInput {
|
|
90564
|
+
};
|
|
90565
|
+
__decorate([
|
|
90566
|
+
Field({ nullable: true }),
|
|
90567
|
+
__metadata("design:type", String)
|
|
90568
|
+
], CreateMJSearchProviderInput.prototype, "ID", void 0);
|
|
90569
|
+
__decorate([
|
|
90570
|
+
Field({ nullable: true }),
|
|
90571
|
+
__metadata("design:type", String)
|
|
90572
|
+
], CreateMJSearchProviderInput.prototype, "Name", void 0);
|
|
90573
|
+
__decorate([
|
|
90574
|
+
Field({ nullable: true }),
|
|
90575
|
+
__metadata("design:type", String)
|
|
90576
|
+
], CreateMJSearchProviderInput.prototype, "Description", void 0);
|
|
90577
|
+
__decorate([
|
|
90578
|
+
Field({ nullable: true }),
|
|
90579
|
+
__metadata("design:type", String)
|
|
90580
|
+
], CreateMJSearchProviderInput.prototype, "DriverClass", void 0);
|
|
90581
|
+
__decorate([
|
|
90582
|
+
Field({ nullable: true }),
|
|
90583
|
+
__metadata("design:type", String)
|
|
90584
|
+
], CreateMJSearchProviderInput.prototype, "Status", void 0);
|
|
90585
|
+
__decorate([
|
|
90586
|
+
Field(() => Int, { nullable: true }),
|
|
90587
|
+
__metadata("design:type", Number)
|
|
90588
|
+
], CreateMJSearchProviderInput.prototype, "Priority", void 0);
|
|
90589
|
+
__decorate([
|
|
90590
|
+
Field(() => Boolean, { nullable: true }),
|
|
90591
|
+
__metadata("design:type", Boolean)
|
|
90592
|
+
], CreateMJSearchProviderInput.prototype, "SupportsPreview", void 0);
|
|
90593
|
+
__decorate([
|
|
90594
|
+
Field(() => Int, { nullable: true }),
|
|
90595
|
+
__metadata("design:type", Number)
|
|
90596
|
+
], CreateMJSearchProviderInput.prototype, "MaxResultsOverride", void 0);
|
|
90597
|
+
__decorate([
|
|
90598
|
+
Field({ nullable: true }),
|
|
90599
|
+
__metadata("design:type", String)
|
|
90600
|
+
], CreateMJSearchProviderInput.prototype, "ProviderConfig", void 0);
|
|
90601
|
+
__decorate([
|
|
90602
|
+
Field({ nullable: true }),
|
|
90603
|
+
__metadata("design:type", String)
|
|
90604
|
+
], CreateMJSearchProviderInput.prototype, "CredentialID", void 0);
|
|
90605
|
+
__decorate([
|
|
90606
|
+
Field({ nullable: true }),
|
|
90607
|
+
__metadata("design:type", String)
|
|
90608
|
+
], CreateMJSearchProviderInput.prototype, "DisplayName", void 0);
|
|
90609
|
+
__decorate([
|
|
90610
|
+
Field({ nullable: true }),
|
|
90611
|
+
__metadata("design:type", String)
|
|
90612
|
+
], CreateMJSearchProviderInput.prototype, "Icon", void 0);
|
|
90613
|
+
__decorate([
|
|
90614
|
+
Field({ nullable: true }),
|
|
90615
|
+
__metadata("design:type", String)
|
|
90616
|
+
], CreateMJSearchProviderInput.prototype, "Comments", void 0);
|
|
90617
|
+
CreateMJSearchProviderInput = __decorate([
|
|
90618
|
+
InputType()
|
|
90619
|
+
], CreateMJSearchProviderInput);
|
|
90620
|
+
export { CreateMJSearchProviderInput };
|
|
90621
|
+
//****************************************************************************
|
|
90622
|
+
// INPUT TYPE for MJ: Search Providers
|
|
90623
|
+
//****************************************************************************
|
|
90624
|
+
let UpdateMJSearchProviderInput = class UpdateMJSearchProviderInput {
|
|
90625
|
+
};
|
|
90626
|
+
__decorate([
|
|
90627
|
+
Field(),
|
|
90628
|
+
__metadata("design:type", String)
|
|
90629
|
+
], UpdateMJSearchProviderInput.prototype, "ID", void 0);
|
|
90630
|
+
__decorate([
|
|
90631
|
+
Field({ nullable: true }),
|
|
90632
|
+
__metadata("design:type", String)
|
|
90633
|
+
], UpdateMJSearchProviderInput.prototype, "Name", void 0);
|
|
90634
|
+
__decorate([
|
|
90635
|
+
Field({ nullable: true }),
|
|
90636
|
+
__metadata("design:type", String)
|
|
90637
|
+
], UpdateMJSearchProviderInput.prototype, "Description", void 0);
|
|
90638
|
+
__decorate([
|
|
90639
|
+
Field({ nullable: true }),
|
|
90640
|
+
__metadata("design:type", String)
|
|
90641
|
+
], UpdateMJSearchProviderInput.prototype, "DriverClass", void 0);
|
|
90642
|
+
__decorate([
|
|
90643
|
+
Field({ nullable: true }),
|
|
90644
|
+
__metadata("design:type", String)
|
|
90645
|
+
], UpdateMJSearchProviderInput.prototype, "Status", void 0);
|
|
90646
|
+
__decorate([
|
|
90647
|
+
Field(() => Int, { nullable: true }),
|
|
90648
|
+
__metadata("design:type", Number)
|
|
90649
|
+
], UpdateMJSearchProviderInput.prototype, "Priority", void 0);
|
|
90650
|
+
__decorate([
|
|
90651
|
+
Field(() => Boolean, { nullable: true }),
|
|
90652
|
+
__metadata("design:type", Boolean)
|
|
90653
|
+
], UpdateMJSearchProviderInput.prototype, "SupportsPreview", void 0);
|
|
90654
|
+
__decorate([
|
|
90655
|
+
Field(() => Int, { nullable: true }),
|
|
90656
|
+
__metadata("design:type", Number)
|
|
90657
|
+
], UpdateMJSearchProviderInput.prototype, "MaxResultsOverride", void 0);
|
|
90658
|
+
__decorate([
|
|
90659
|
+
Field({ nullable: true }),
|
|
90660
|
+
__metadata("design:type", String)
|
|
90661
|
+
], UpdateMJSearchProviderInput.prototype, "ProviderConfig", void 0);
|
|
90662
|
+
__decorate([
|
|
90663
|
+
Field({ nullable: true }),
|
|
90664
|
+
__metadata("design:type", String)
|
|
90665
|
+
], UpdateMJSearchProviderInput.prototype, "CredentialID", void 0);
|
|
90666
|
+
__decorate([
|
|
90667
|
+
Field({ nullable: true }),
|
|
90668
|
+
__metadata("design:type", String)
|
|
90669
|
+
], UpdateMJSearchProviderInput.prototype, "DisplayName", void 0);
|
|
90670
|
+
__decorate([
|
|
90671
|
+
Field({ nullable: true }),
|
|
90672
|
+
__metadata("design:type", String)
|
|
90673
|
+
], UpdateMJSearchProviderInput.prototype, "Icon", void 0);
|
|
90674
|
+
__decorate([
|
|
90675
|
+
Field({ nullable: true }),
|
|
90676
|
+
__metadata("design:type", String)
|
|
90677
|
+
], UpdateMJSearchProviderInput.prototype, "Comments", void 0);
|
|
90678
|
+
__decorate([
|
|
90679
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
90680
|
+
__metadata("design:type", Array)
|
|
90681
|
+
], UpdateMJSearchProviderInput.prototype, "OldValues___", void 0);
|
|
90682
|
+
UpdateMJSearchProviderInput = __decorate([
|
|
90683
|
+
InputType()
|
|
90684
|
+
], UpdateMJSearchProviderInput);
|
|
90685
|
+
export { UpdateMJSearchProviderInput };
|
|
90686
|
+
//****************************************************************************
|
|
90687
|
+
// RESOLVER for MJ: Search Providers
|
|
90688
|
+
//****************************************************************************
|
|
90689
|
+
let RunMJSearchProviderViewResult = class RunMJSearchProviderViewResult {
|
|
90690
|
+
};
|
|
90691
|
+
__decorate([
|
|
90692
|
+
Field(() => [MJSearchProvider_]),
|
|
90693
|
+
__metadata("design:type", Array)
|
|
90694
|
+
], RunMJSearchProviderViewResult.prototype, "Results", void 0);
|
|
90695
|
+
__decorate([
|
|
90696
|
+
Field(() => String, { nullable: true }),
|
|
90697
|
+
__metadata("design:type", String)
|
|
90698
|
+
], RunMJSearchProviderViewResult.prototype, "UserViewRunID", void 0);
|
|
90699
|
+
__decorate([
|
|
90700
|
+
Field(() => Int, { nullable: true }),
|
|
90701
|
+
__metadata("design:type", Number)
|
|
90702
|
+
], RunMJSearchProviderViewResult.prototype, "RowCount", void 0);
|
|
90703
|
+
__decorate([
|
|
90704
|
+
Field(() => Int, { nullable: true }),
|
|
90705
|
+
__metadata("design:type", Number)
|
|
90706
|
+
], RunMJSearchProviderViewResult.prototype, "TotalRowCount", void 0);
|
|
90707
|
+
__decorate([
|
|
90708
|
+
Field(() => Int, { nullable: true }),
|
|
90709
|
+
__metadata("design:type", Number)
|
|
90710
|
+
], RunMJSearchProviderViewResult.prototype, "ExecutionTime", void 0);
|
|
90711
|
+
__decorate([
|
|
90712
|
+
Field({ nullable: true }),
|
|
90713
|
+
__metadata("design:type", String)
|
|
90714
|
+
], RunMJSearchProviderViewResult.prototype, "ErrorMessage", void 0);
|
|
90715
|
+
__decorate([
|
|
90716
|
+
Field(() => Boolean, { nullable: false }),
|
|
90717
|
+
__metadata("design:type", Boolean)
|
|
90718
|
+
], RunMJSearchProviderViewResult.prototype, "Success", void 0);
|
|
90719
|
+
RunMJSearchProviderViewResult = __decorate([
|
|
90720
|
+
ObjectType()
|
|
90721
|
+
], RunMJSearchProviderViewResult);
|
|
90722
|
+
export { RunMJSearchProviderViewResult };
|
|
90723
|
+
let MJSearchProviderResolver = class MJSearchProviderResolver extends ResolverBase {
|
|
90724
|
+
async RunMJSearchProviderViewByID(input, { providers, userPayload }, pubSub) {
|
|
90725
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
90726
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
90727
|
+
}
|
|
90728
|
+
async RunMJSearchProviderViewByName(input, { providers, userPayload }, pubSub) {
|
|
90729
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
90730
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
90731
|
+
}
|
|
90732
|
+
async RunMJSearchProviderDynamicView(input, { providers, userPayload }, pubSub) {
|
|
90733
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
90734
|
+
input.EntityName = 'MJ: Search Providers';
|
|
90735
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
90736
|
+
}
|
|
90737
|
+
async MJSearchProvider(ID, { userPayload, providers }, pubSub) {
|
|
90738
|
+
this.CheckUserReadPermissions('MJ: Search Providers', userPayload);
|
|
90739
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
90740
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwSearchProviders')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Search Providers', userPayload, EntityPermissionType.Read, 'AND');
|
|
90741
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
90742
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Search Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
90743
|
+
return result;
|
|
90744
|
+
}
|
|
90745
|
+
async CreateMJSearchProvider(input, { providers, userPayload }, pubSub) {
|
|
90746
|
+
const provider = GetReadWriteProvider(providers);
|
|
90747
|
+
return this.CreateRecord('MJ: Search Providers', input, provider, userPayload, pubSub);
|
|
90748
|
+
}
|
|
90749
|
+
async UpdateMJSearchProvider(input, { providers, userPayload }, pubSub) {
|
|
90750
|
+
const provider = GetReadWriteProvider(providers);
|
|
90751
|
+
return this.UpdateRecord('MJ: Search Providers', input, provider, userPayload, pubSub);
|
|
90752
|
+
}
|
|
90753
|
+
async DeleteMJSearchProvider(ID, options, { providers, userPayload }, pubSub) {
|
|
90754
|
+
const provider = GetReadWriteProvider(providers);
|
|
90755
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
90756
|
+
return this.DeleteRecord('MJ: Search Providers', key, options, provider, userPayload, pubSub);
|
|
90757
|
+
}
|
|
90758
|
+
};
|
|
90759
|
+
__decorate([
|
|
90760
|
+
Query(() => RunMJSearchProviderViewResult),
|
|
90761
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
90762
|
+
__param(1, Ctx()),
|
|
90763
|
+
__param(2, PubSub()),
|
|
90764
|
+
__metadata("design:type", Function),
|
|
90765
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
90766
|
+
__metadata("design:returntype", Promise)
|
|
90767
|
+
], MJSearchProviderResolver.prototype, "RunMJSearchProviderViewByID", null);
|
|
90768
|
+
__decorate([
|
|
90769
|
+
Query(() => RunMJSearchProviderViewResult),
|
|
90770
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
90771
|
+
__param(1, Ctx()),
|
|
90772
|
+
__param(2, PubSub()),
|
|
90773
|
+
__metadata("design:type", Function),
|
|
90774
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
90775
|
+
__metadata("design:returntype", Promise)
|
|
90776
|
+
], MJSearchProviderResolver.prototype, "RunMJSearchProviderViewByName", null);
|
|
90777
|
+
__decorate([
|
|
90778
|
+
Query(() => RunMJSearchProviderViewResult),
|
|
90779
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
90780
|
+
__param(1, Ctx()),
|
|
90781
|
+
__param(2, PubSub()),
|
|
90782
|
+
__metadata("design:type", Function),
|
|
90783
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
90784
|
+
__metadata("design:returntype", Promise)
|
|
90785
|
+
], MJSearchProviderResolver.prototype, "RunMJSearchProviderDynamicView", null);
|
|
90786
|
+
__decorate([
|
|
90787
|
+
Query(() => MJSearchProvider_, { nullable: true }),
|
|
90788
|
+
__param(0, Arg('ID', () => String)),
|
|
90789
|
+
__param(1, Ctx()),
|
|
90790
|
+
__param(2, PubSub()),
|
|
90791
|
+
__metadata("design:type", Function),
|
|
90792
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
90793
|
+
__metadata("design:returntype", Promise)
|
|
90794
|
+
], MJSearchProviderResolver.prototype, "MJSearchProvider", null);
|
|
90795
|
+
__decorate([
|
|
90796
|
+
Mutation(() => MJSearchProvider_),
|
|
90797
|
+
__param(0, Arg('input', () => CreateMJSearchProviderInput)),
|
|
90798
|
+
__param(1, Ctx()),
|
|
90799
|
+
__param(2, PubSub()),
|
|
90800
|
+
__metadata("design:type", Function),
|
|
90801
|
+
__metadata("design:paramtypes", [CreateMJSearchProviderInput, Object, PubSubEngine]),
|
|
90802
|
+
__metadata("design:returntype", Promise)
|
|
90803
|
+
], MJSearchProviderResolver.prototype, "CreateMJSearchProvider", null);
|
|
90804
|
+
__decorate([
|
|
90805
|
+
Mutation(() => MJSearchProvider_),
|
|
90806
|
+
__param(0, Arg('input', () => UpdateMJSearchProviderInput)),
|
|
90807
|
+
__param(1, Ctx()),
|
|
90808
|
+
__param(2, PubSub()),
|
|
90809
|
+
__metadata("design:type", Function),
|
|
90810
|
+
__metadata("design:paramtypes", [UpdateMJSearchProviderInput, Object, PubSubEngine]),
|
|
90811
|
+
__metadata("design:returntype", Promise)
|
|
90812
|
+
], MJSearchProviderResolver.prototype, "UpdateMJSearchProvider", null);
|
|
90813
|
+
__decorate([
|
|
90814
|
+
Mutation(() => MJSearchProvider_),
|
|
90815
|
+
__param(0, Arg('ID', () => String)),
|
|
90816
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
90817
|
+
__param(2, Ctx()),
|
|
90818
|
+
__param(3, PubSub()),
|
|
90819
|
+
__metadata("design:type", Function),
|
|
90820
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
90821
|
+
__metadata("design:returntype", Promise)
|
|
90822
|
+
], MJSearchProviderResolver.prototype, "DeleteMJSearchProvider", null);
|
|
90823
|
+
MJSearchProviderResolver = __decorate([
|
|
90824
|
+
Resolver(MJSearchProvider_)
|
|
90825
|
+
], MJSearchProviderResolver);
|
|
90826
|
+
export { MJSearchProviderResolver };
|
|
90827
|
+
//****************************************************************************
|
|
88431
90828
|
// ENTITY CLASS for MJ: Skills
|
|
88432
90829
|
//****************************************************************************
|
|
88433
90830
|
let MJSkill_ = class MJSkill_ {
|
|
@@ -89053,6 +91450,325 @@ MJSQLDialectResolver = __decorate([
|
|
|
89053
91450
|
], MJSQLDialectResolver);
|
|
89054
91451
|
export { MJSQLDialectResolver };
|
|
89055
91452
|
//****************************************************************************
|
|
91453
|
+
// ENTITY CLASS for MJ: State Provinces
|
|
91454
|
+
//****************************************************************************
|
|
91455
|
+
let MJStateProvince_ = class MJStateProvince_ {
|
|
91456
|
+
};
|
|
91457
|
+
__decorate([
|
|
91458
|
+
Field(),
|
|
91459
|
+
MaxLength(36),
|
|
91460
|
+
__metadata("design:type", String)
|
|
91461
|
+
], MJStateProvince_.prototype, "ID", void 0);
|
|
91462
|
+
__decorate([
|
|
91463
|
+
Field({ description: `Foreign key to Country. Establishes the parent country for this state/province.` }),
|
|
91464
|
+
MaxLength(36),
|
|
91465
|
+
__metadata("design:type", String)
|
|
91466
|
+
], MJStateProvince_.prototype, "CountryID", void 0);
|
|
91467
|
+
__decorate([
|
|
91468
|
+
Field({ description: `Full state/province name (e.g., "California", "Ontario").` }),
|
|
91469
|
+
MaxLength(200),
|
|
91470
|
+
__metadata("design:type", String)
|
|
91471
|
+
], MJStateProvince_.prototype, "Name", void 0);
|
|
91472
|
+
__decorate([
|
|
91473
|
+
Field({ description: `Short code within the country (e.g., "CA", "ON"). Unique per country via compound constraint.` }),
|
|
91474
|
+
MaxLength(10),
|
|
91475
|
+
__metadata("design:type", String)
|
|
91476
|
+
], MJStateProvince_.prototype, "Code", void 0);
|
|
91477
|
+
__decorate([
|
|
91478
|
+
Field({ description: `ISO 3166-2 subdivision code (e.g., "US-CA", "CA-ON"). Globally unique.` }),
|
|
91479
|
+
MaxLength(10),
|
|
91480
|
+
__metadata("design:type", String)
|
|
91481
|
+
], MJStateProvince_.prototype, "ISO3166_2", void 0);
|
|
91482
|
+
__decorate([
|
|
91483
|
+
Field(() => Float, { nullable: true, description: `Geographic centroid latitude. Used as fallback point for state-level geocoding.` }),
|
|
91484
|
+
__metadata("design:type", Number)
|
|
91485
|
+
], MJStateProvince_.prototype, "Latitude", void 0);
|
|
91486
|
+
__decorate([
|
|
91487
|
+
Field(() => Float, { nullable: true, description: `Geographic centroid longitude. Used as fallback point for state-level geocoding.` }),
|
|
91488
|
+
__metadata("design:type", Number)
|
|
91489
|
+
], MJStateProvince_.prototype, "Longitude", void 0);
|
|
91490
|
+
__decorate([
|
|
91491
|
+
Field({ nullable: true, description: `Medium-resolution (~50m) GeoJSON boundary polygon for choropleth map rendering. Nullable. Total ~15-20MB for all states/provinces worldwide.` }),
|
|
91492
|
+
__metadata("design:type", String)
|
|
91493
|
+
], MJStateProvince_.prototype, "BoundaryGeoJSON", void 0);
|
|
91494
|
+
__decorate([
|
|
91495
|
+
Field({ nullable: true, description: `JSON array of common aliases (e.g., ["Calif.","California","Cal"]). Used by GeoResolver for fuzzy text-to-state matching.` }),
|
|
91496
|
+
__metadata("design:type", String)
|
|
91497
|
+
], MJStateProvince_.prototype, "CommonAliases", void 0);
|
|
91498
|
+
__decorate([
|
|
91499
|
+
Field(),
|
|
91500
|
+
__metadata("design:type", Date)
|
|
91501
|
+
], MJStateProvince_.prototype, "_mj__CreatedAt", void 0);
|
|
91502
|
+
__decorate([
|
|
91503
|
+
Field(),
|
|
91504
|
+
__metadata("design:type", Date)
|
|
91505
|
+
], MJStateProvince_.prototype, "_mj__UpdatedAt", void 0);
|
|
91506
|
+
__decorate([
|
|
91507
|
+
Field(),
|
|
91508
|
+
MaxLength(200),
|
|
91509
|
+
__metadata("design:type", String)
|
|
91510
|
+
], MJStateProvince_.prototype, "Country", void 0);
|
|
91511
|
+
__decorate([
|
|
91512
|
+
Field(() => [MJRecordGeoCode_]),
|
|
91513
|
+
__metadata("design:type", Array)
|
|
91514
|
+
], MJStateProvince_.prototype, "MJRecordGeoCodes_StateProvinceIDArray", void 0);
|
|
91515
|
+
MJStateProvince_ = __decorate([
|
|
91516
|
+
ObjectType({ description: `Reference table for states, provinces, and first-level administrative divisions. Linked to Country via FK. Seeded with ~5,000 records with ISO 3166-2 codes, centroids, and optional boundary GeoJSON.` })
|
|
91517
|
+
], MJStateProvince_);
|
|
91518
|
+
export { MJStateProvince_ };
|
|
91519
|
+
//****************************************************************************
|
|
91520
|
+
// INPUT TYPE for MJ: State Provinces
|
|
91521
|
+
//****************************************************************************
|
|
91522
|
+
let CreateMJStateProvinceInput = class CreateMJStateProvinceInput {
|
|
91523
|
+
};
|
|
91524
|
+
__decorate([
|
|
91525
|
+
Field({ nullable: true }),
|
|
91526
|
+
__metadata("design:type", String)
|
|
91527
|
+
], CreateMJStateProvinceInput.prototype, "ID", void 0);
|
|
91528
|
+
__decorate([
|
|
91529
|
+
Field({ nullable: true }),
|
|
91530
|
+
__metadata("design:type", String)
|
|
91531
|
+
], CreateMJStateProvinceInput.prototype, "CountryID", void 0);
|
|
91532
|
+
__decorate([
|
|
91533
|
+
Field({ nullable: true }),
|
|
91534
|
+
__metadata("design:type", String)
|
|
91535
|
+
], CreateMJStateProvinceInput.prototype, "Name", void 0);
|
|
91536
|
+
__decorate([
|
|
91537
|
+
Field({ nullable: true }),
|
|
91538
|
+
__metadata("design:type", String)
|
|
91539
|
+
], CreateMJStateProvinceInput.prototype, "Code", void 0);
|
|
91540
|
+
__decorate([
|
|
91541
|
+
Field({ nullable: true }),
|
|
91542
|
+
__metadata("design:type", String)
|
|
91543
|
+
], CreateMJStateProvinceInput.prototype, "ISO3166_2", void 0);
|
|
91544
|
+
__decorate([
|
|
91545
|
+
Field(() => Float, { nullable: true }),
|
|
91546
|
+
__metadata("design:type", Number)
|
|
91547
|
+
], CreateMJStateProvinceInput.prototype, "Latitude", void 0);
|
|
91548
|
+
__decorate([
|
|
91549
|
+
Field(() => Float, { nullable: true }),
|
|
91550
|
+
__metadata("design:type", Number)
|
|
91551
|
+
], CreateMJStateProvinceInput.prototype, "Longitude", void 0);
|
|
91552
|
+
__decorate([
|
|
91553
|
+
Field({ nullable: true }),
|
|
91554
|
+
__metadata("design:type", String)
|
|
91555
|
+
], CreateMJStateProvinceInput.prototype, "BoundaryGeoJSON", void 0);
|
|
91556
|
+
__decorate([
|
|
91557
|
+
Field({ nullable: true }),
|
|
91558
|
+
__metadata("design:type", String)
|
|
91559
|
+
], CreateMJStateProvinceInput.prototype, "CommonAliases", void 0);
|
|
91560
|
+
CreateMJStateProvinceInput = __decorate([
|
|
91561
|
+
InputType()
|
|
91562
|
+
], CreateMJStateProvinceInput);
|
|
91563
|
+
export { CreateMJStateProvinceInput };
|
|
91564
|
+
//****************************************************************************
|
|
91565
|
+
// INPUT TYPE for MJ: State Provinces
|
|
91566
|
+
//****************************************************************************
|
|
91567
|
+
let UpdateMJStateProvinceInput = class UpdateMJStateProvinceInput {
|
|
91568
|
+
};
|
|
91569
|
+
__decorate([
|
|
91570
|
+
Field(),
|
|
91571
|
+
__metadata("design:type", String)
|
|
91572
|
+
], UpdateMJStateProvinceInput.prototype, "ID", void 0);
|
|
91573
|
+
__decorate([
|
|
91574
|
+
Field({ nullable: true }),
|
|
91575
|
+
__metadata("design:type", String)
|
|
91576
|
+
], UpdateMJStateProvinceInput.prototype, "CountryID", void 0);
|
|
91577
|
+
__decorate([
|
|
91578
|
+
Field({ nullable: true }),
|
|
91579
|
+
__metadata("design:type", String)
|
|
91580
|
+
], UpdateMJStateProvinceInput.prototype, "Name", void 0);
|
|
91581
|
+
__decorate([
|
|
91582
|
+
Field({ nullable: true }),
|
|
91583
|
+
__metadata("design:type", String)
|
|
91584
|
+
], UpdateMJStateProvinceInput.prototype, "Code", void 0);
|
|
91585
|
+
__decorate([
|
|
91586
|
+
Field({ nullable: true }),
|
|
91587
|
+
__metadata("design:type", String)
|
|
91588
|
+
], UpdateMJStateProvinceInput.prototype, "ISO3166_2", void 0);
|
|
91589
|
+
__decorate([
|
|
91590
|
+
Field(() => Float, { nullable: true }),
|
|
91591
|
+
__metadata("design:type", Number)
|
|
91592
|
+
], UpdateMJStateProvinceInput.prototype, "Latitude", void 0);
|
|
91593
|
+
__decorate([
|
|
91594
|
+
Field(() => Float, { nullable: true }),
|
|
91595
|
+
__metadata("design:type", Number)
|
|
91596
|
+
], UpdateMJStateProvinceInput.prototype, "Longitude", void 0);
|
|
91597
|
+
__decorate([
|
|
91598
|
+
Field({ nullable: true }),
|
|
91599
|
+
__metadata("design:type", String)
|
|
91600
|
+
], UpdateMJStateProvinceInput.prototype, "BoundaryGeoJSON", void 0);
|
|
91601
|
+
__decorate([
|
|
91602
|
+
Field({ nullable: true }),
|
|
91603
|
+
__metadata("design:type", String)
|
|
91604
|
+
], UpdateMJStateProvinceInput.prototype, "CommonAliases", void 0);
|
|
91605
|
+
__decorate([
|
|
91606
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
91607
|
+
__metadata("design:type", Array)
|
|
91608
|
+
], UpdateMJStateProvinceInput.prototype, "OldValues___", void 0);
|
|
91609
|
+
UpdateMJStateProvinceInput = __decorate([
|
|
91610
|
+
InputType()
|
|
91611
|
+
], UpdateMJStateProvinceInput);
|
|
91612
|
+
export { UpdateMJStateProvinceInput };
|
|
91613
|
+
//****************************************************************************
|
|
91614
|
+
// RESOLVER for MJ: State Provinces
|
|
91615
|
+
//****************************************************************************
|
|
91616
|
+
let RunMJStateProvinceViewResult = class RunMJStateProvinceViewResult {
|
|
91617
|
+
};
|
|
91618
|
+
__decorate([
|
|
91619
|
+
Field(() => [MJStateProvince_]),
|
|
91620
|
+
__metadata("design:type", Array)
|
|
91621
|
+
], RunMJStateProvinceViewResult.prototype, "Results", void 0);
|
|
91622
|
+
__decorate([
|
|
91623
|
+
Field(() => String, { nullable: true }),
|
|
91624
|
+
__metadata("design:type", String)
|
|
91625
|
+
], RunMJStateProvinceViewResult.prototype, "UserViewRunID", void 0);
|
|
91626
|
+
__decorate([
|
|
91627
|
+
Field(() => Int, { nullable: true }),
|
|
91628
|
+
__metadata("design:type", Number)
|
|
91629
|
+
], RunMJStateProvinceViewResult.prototype, "RowCount", void 0);
|
|
91630
|
+
__decorate([
|
|
91631
|
+
Field(() => Int, { nullable: true }),
|
|
91632
|
+
__metadata("design:type", Number)
|
|
91633
|
+
], RunMJStateProvinceViewResult.prototype, "TotalRowCount", void 0);
|
|
91634
|
+
__decorate([
|
|
91635
|
+
Field(() => Int, { nullable: true }),
|
|
91636
|
+
__metadata("design:type", Number)
|
|
91637
|
+
], RunMJStateProvinceViewResult.prototype, "ExecutionTime", void 0);
|
|
91638
|
+
__decorate([
|
|
91639
|
+
Field({ nullable: true }),
|
|
91640
|
+
__metadata("design:type", String)
|
|
91641
|
+
], RunMJStateProvinceViewResult.prototype, "ErrorMessage", void 0);
|
|
91642
|
+
__decorate([
|
|
91643
|
+
Field(() => Boolean, { nullable: false }),
|
|
91644
|
+
__metadata("design:type", Boolean)
|
|
91645
|
+
], RunMJStateProvinceViewResult.prototype, "Success", void 0);
|
|
91646
|
+
RunMJStateProvinceViewResult = __decorate([
|
|
91647
|
+
ObjectType()
|
|
91648
|
+
], RunMJStateProvinceViewResult);
|
|
91649
|
+
export { RunMJStateProvinceViewResult };
|
|
91650
|
+
let MJStateProvinceResolver = class MJStateProvinceResolver extends ResolverBase {
|
|
91651
|
+
async RunMJStateProvinceViewByID(input, { providers, userPayload }, pubSub) {
|
|
91652
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91653
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
91654
|
+
}
|
|
91655
|
+
async RunMJStateProvinceViewByName(input, { providers, userPayload }, pubSub) {
|
|
91656
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91657
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
91658
|
+
}
|
|
91659
|
+
async RunMJStateProvinceDynamicView(input, { providers, userPayload }, pubSub) {
|
|
91660
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91661
|
+
input.EntityName = 'MJ: State Provinces';
|
|
91662
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
91663
|
+
}
|
|
91664
|
+
async MJStateProvince(ID, { userPayload, providers }, pubSub) {
|
|
91665
|
+
this.CheckUserReadPermissions('MJ: State Provinces', userPayload);
|
|
91666
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91667
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwStateProvinces')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: State Provinces', userPayload, EntityPermissionType.Read, 'AND');
|
|
91668
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
91669
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: State Provinces', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
91670
|
+
return result;
|
|
91671
|
+
}
|
|
91672
|
+
async MJRecordGeoCodes_StateProvinceIDArray(mjstateprovince_, { userPayload, providers }, pubSub) {
|
|
91673
|
+
this.CheckUserReadPermissions('MJ: Record Geo Codes', userPayload);
|
|
91674
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91675
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwRecordGeoCodes')} WHERE ${provider.QuoteIdentifier('StateProvinceID')}='${mjstateprovince_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Record Geo Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
91676
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
91677
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Record Geo Codes', rows, this.GetUserFromPayload(userPayload));
|
|
91678
|
+
return result;
|
|
91679
|
+
}
|
|
91680
|
+
async CreateMJStateProvince(input, { providers, userPayload }, pubSub) {
|
|
91681
|
+
const provider = GetReadWriteProvider(providers);
|
|
91682
|
+
return this.CreateRecord('MJ: State Provinces', input, provider, userPayload, pubSub);
|
|
91683
|
+
}
|
|
91684
|
+
async UpdateMJStateProvince(input, { providers, userPayload }, pubSub) {
|
|
91685
|
+
const provider = GetReadWriteProvider(providers);
|
|
91686
|
+
return this.UpdateRecord('MJ: State Provinces', input, provider, userPayload, pubSub);
|
|
91687
|
+
}
|
|
91688
|
+
async DeleteMJStateProvince(ID, options, { providers, userPayload }, pubSub) {
|
|
91689
|
+
const provider = GetReadWriteProvider(providers);
|
|
91690
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
91691
|
+
return this.DeleteRecord('MJ: State Provinces', key, options, provider, userPayload, pubSub);
|
|
91692
|
+
}
|
|
91693
|
+
};
|
|
91694
|
+
__decorate([
|
|
91695
|
+
Query(() => RunMJStateProvinceViewResult),
|
|
91696
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
91697
|
+
__param(1, Ctx()),
|
|
91698
|
+
__param(2, PubSub()),
|
|
91699
|
+
__metadata("design:type", Function),
|
|
91700
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
91701
|
+
__metadata("design:returntype", Promise)
|
|
91702
|
+
], MJStateProvinceResolver.prototype, "RunMJStateProvinceViewByID", null);
|
|
91703
|
+
__decorate([
|
|
91704
|
+
Query(() => RunMJStateProvinceViewResult),
|
|
91705
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
91706
|
+
__param(1, Ctx()),
|
|
91707
|
+
__param(2, PubSub()),
|
|
91708
|
+
__metadata("design:type", Function),
|
|
91709
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
91710
|
+
__metadata("design:returntype", Promise)
|
|
91711
|
+
], MJStateProvinceResolver.prototype, "RunMJStateProvinceViewByName", null);
|
|
91712
|
+
__decorate([
|
|
91713
|
+
Query(() => RunMJStateProvinceViewResult),
|
|
91714
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
91715
|
+
__param(1, Ctx()),
|
|
91716
|
+
__param(2, PubSub()),
|
|
91717
|
+
__metadata("design:type", Function),
|
|
91718
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
91719
|
+
__metadata("design:returntype", Promise)
|
|
91720
|
+
], MJStateProvinceResolver.prototype, "RunMJStateProvinceDynamicView", null);
|
|
91721
|
+
__decorate([
|
|
91722
|
+
Query(() => MJStateProvince_, { nullable: true }),
|
|
91723
|
+
__param(0, Arg('ID', () => String)),
|
|
91724
|
+
__param(1, Ctx()),
|
|
91725
|
+
__param(2, PubSub()),
|
|
91726
|
+
__metadata("design:type", Function),
|
|
91727
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
91728
|
+
__metadata("design:returntype", Promise)
|
|
91729
|
+
], MJStateProvinceResolver.prototype, "MJStateProvince", null);
|
|
91730
|
+
__decorate([
|
|
91731
|
+
FieldResolver(() => [MJRecordGeoCode_]),
|
|
91732
|
+
__param(0, Root()),
|
|
91733
|
+
__param(1, Ctx()),
|
|
91734
|
+
__param(2, PubSub()),
|
|
91735
|
+
__metadata("design:type", Function),
|
|
91736
|
+
__metadata("design:paramtypes", [MJStateProvince_, Object, PubSubEngine]),
|
|
91737
|
+
__metadata("design:returntype", Promise)
|
|
91738
|
+
], MJStateProvinceResolver.prototype, "MJRecordGeoCodes_StateProvinceIDArray", null);
|
|
91739
|
+
__decorate([
|
|
91740
|
+
Mutation(() => MJStateProvince_),
|
|
91741
|
+
__param(0, Arg('input', () => CreateMJStateProvinceInput)),
|
|
91742
|
+
__param(1, Ctx()),
|
|
91743
|
+
__param(2, PubSub()),
|
|
91744
|
+
__metadata("design:type", Function),
|
|
91745
|
+
__metadata("design:paramtypes", [CreateMJStateProvinceInput, Object, PubSubEngine]),
|
|
91746
|
+
__metadata("design:returntype", Promise)
|
|
91747
|
+
], MJStateProvinceResolver.prototype, "CreateMJStateProvince", null);
|
|
91748
|
+
__decorate([
|
|
91749
|
+
Mutation(() => MJStateProvince_),
|
|
91750
|
+
__param(0, Arg('input', () => UpdateMJStateProvinceInput)),
|
|
91751
|
+
__param(1, Ctx()),
|
|
91752
|
+
__param(2, PubSub()),
|
|
91753
|
+
__metadata("design:type", Function),
|
|
91754
|
+
__metadata("design:paramtypes", [UpdateMJStateProvinceInput, Object, PubSubEngine]),
|
|
91755
|
+
__metadata("design:returntype", Promise)
|
|
91756
|
+
], MJStateProvinceResolver.prototype, "UpdateMJStateProvince", null);
|
|
91757
|
+
__decorate([
|
|
91758
|
+
Mutation(() => MJStateProvince_),
|
|
91759
|
+
__param(0, Arg('ID', () => String)),
|
|
91760
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
91761
|
+
__param(2, Ctx()),
|
|
91762
|
+
__param(3, PubSub()),
|
|
91763
|
+
__metadata("design:type", Function),
|
|
91764
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
91765
|
+
__metadata("design:returntype", Promise)
|
|
91766
|
+
], MJStateProvinceResolver.prototype, "DeleteMJStateProvince", null);
|
|
91767
|
+
MJStateProvinceResolver = __decorate([
|
|
91768
|
+
Resolver(MJStateProvince_)
|
|
91769
|
+
], MJStateProvinceResolver);
|
|
91770
|
+
export { MJStateProvinceResolver };
|
|
91771
|
+
//****************************************************************************
|
|
89056
91772
|
// ENTITY CLASS for MJ: Tag Audit Logs
|
|
89057
91773
|
//****************************************************************************
|
|
89058
91774
|
let MJTagAuditLog_ = class MJTagAuditLog_ {
|
|
@@ -100965,6 +103681,10 @@ __decorate([
|
|
|
100965
103681
|
Field(() => [MJDuplicateRun_]),
|
|
100966
103682
|
__metadata("design:type", Array)
|
|
100967
103683
|
], MJUser_.prototype, "MJDuplicateRuns_ApprovedByUserIDArray", void 0);
|
|
103684
|
+
__decorate([
|
|
103685
|
+
Field(() => [MJFileStorageAccountPermission_]),
|
|
103686
|
+
__metadata("design:type", Array)
|
|
103687
|
+
], MJUser_.prototype, "MJFileStorageAccountPermissions_UserIDArray", void 0);
|
|
100968
103688
|
__decorate([
|
|
100969
103689
|
Field(() => [MJAIAgentRun_]),
|
|
100970
103690
|
__metadata("design:type", Array)
|
|
@@ -101834,6 +104554,14 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
101834
104554
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Duplicate Runs', rows, this.GetUserFromPayload(userPayload));
|
|
101835
104555
|
return result;
|
|
101836
104556
|
}
|
|
104557
|
+
async MJFileStorageAccountPermissions_UserIDArray(mjuser_, { userPayload, providers }, pubSub) {
|
|
104558
|
+
this.CheckUserReadPermissions('MJ: File Storage Account Permissions', userPayload);
|
|
104559
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
104560
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwFileStorageAccountPermissions')} WHERE ${provider.QuoteIdentifier('UserID')}='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: File Storage Account Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
104561
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
104562
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: File Storage Account Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
104563
|
+
return result;
|
|
104564
|
+
}
|
|
101837
104565
|
async MJAIAgentRuns_UserIDArray(mjuser_, { userPayload, providers }, pubSub) {
|
|
101838
104566
|
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
101839
104567
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -102667,6 +105395,15 @@ __decorate([
|
|
|
102667
105395
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
102668
105396
|
__metadata("design:returntype", Promise)
|
|
102669
105397
|
], MJUserResolverBase.prototype, "MJDuplicateRuns_ApprovedByUserIDArray", null);
|
|
105398
|
+
__decorate([
|
|
105399
|
+
FieldResolver(() => [MJFileStorageAccountPermission_]),
|
|
105400
|
+
__param(0, Root()),
|
|
105401
|
+
__param(1, Ctx()),
|
|
105402
|
+
__param(2, PubSub()),
|
|
105403
|
+
__metadata("design:type", Function),
|
|
105404
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
105405
|
+
__metadata("design:returntype", Promise)
|
|
105406
|
+
], MJUserResolverBase.prototype, "MJFileStorageAccountPermissions_UserIDArray", null);
|
|
102670
105407
|
__decorate([
|
|
102671
105408
|
FieldResolver(() => [MJAIAgentRun_]),
|
|
102672
105409
|
__param(0, Root()),
|
|
@@ -102812,6 +105549,16 @@ __decorate([
|
|
|
102812
105549
|
Field({ nullable: true, description: `JSON configuration settings for this vector database provider. Stores provider-specific connection settings like custom host URLs, authentication configuration, timeouts, retry policies, and batch size limits. NULL means use defaults from environment variables or provider defaults.` }),
|
|
102813
105550
|
__metadata("design:type", String)
|
|
102814
105551
|
], MJVectorDatabase_.prototype, "Configuration", void 0);
|
|
105552
|
+
__decorate([
|
|
105553
|
+
Field({ nullable: true, description: `Optional link to a stored credential containing the API key and any other authentication details for this vector database provider. When set, the Credential Engine decrypts and supplies the key at runtime. When NULL, the system falls back to the environment variable AI_VENDOR_API_KEY__<ClassKey>.` }),
|
|
105554
|
+
MaxLength(36),
|
|
105555
|
+
__metadata("design:type", String)
|
|
105556
|
+
], MJVectorDatabase_.prototype, "CredentialID", void 0);
|
|
105557
|
+
__decorate([
|
|
105558
|
+
Field({ nullable: true }),
|
|
105559
|
+
MaxLength(200),
|
|
105560
|
+
__metadata("design:type", String)
|
|
105561
|
+
], MJVectorDatabase_.prototype, "Credential", void 0);
|
|
102815
105562
|
__decorate([
|
|
102816
105563
|
Field(() => [MJVectorIndex_]),
|
|
102817
105564
|
__metadata("design:type", Array)
|
|
@@ -102853,6 +105600,10 @@ __decorate([
|
|
|
102853
105600
|
Field({ nullable: true }),
|
|
102854
105601
|
__metadata("design:type", String)
|
|
102855
105602
|
], CreateMJVectorDatabaseInput.prototype, "Configuration", void 0);
|
|
105603
|
+
__decorate([
|
|
105604
|
+
Field({ nullable: true }),
|
|
105605
|
+
__metadata("design:type", String)
|
|
105606
|
+
], CreateMJVectorDatabaseInput.prototype, "CredentialID", void 0);
|
|
102856
105607
|
CreateMJVectorDatabaseInput = __decorate([
|
|
102857
105608
|
InputType()
|
|
102858
105609
|
], CreateMJVectorDatabaseInput);
|
|
@@ -102886,6 +105637,10 @@ __decorate([
|
|
|
102886
105637
|
Field({ nullable: true }),
|
|
102887
105638
|
__metadata("design:type", String)
|
|
102888
105639
|
], UpdateMJVectorDatabaseInput.prototype, "Configuration", void 0);
|
|
105640
|
+
__decorate([
|
|
105641
|
+
Field({ nullable: true }),
|
|
105642
|
+
__metadata("design:type", String)
|
|
105643
|
+
], UpdateMJVectorDatabaseInput.prototype, "CredentialID", void 0);
|
|
102889
105644
|
__decorate([
|
|
102890
105645
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
102891
105646
|
__metadata("design:type", Array)
|