@memberjunction/server 5.24.0 → 5.25.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/generated/generated.d.ts +492 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +2731 -0
- package/dist/generated/generated.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- 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/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 +63 -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/generated/generated.ts +1884 -1
- package/src/index.ts +2 -0
- package/src/resolvers/ArtifactFileResolver.ts +71 -0
- package/src/resolvers/AutotagPipelineResolver.ts +118 -4
- 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,26 @@ __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);
|
|
54147
54953
|
__decorate([
|
|
54148
54954
|
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
54955
|
__metadata("design:type", String)
|
|
@@ -54355,6 +55161,10 @@ __decorate([
|
|
|
54355
55161
|
Field(() => [MJEntityOrganicKey_]),
|
|
54356
55162
|
__metadata("design:type", Array)
|
|
54357
55163
|
], MJEntity_.prototype, "MJEntityOrganicKeys_EntityIDArray", void 0);
|
|
55164
|
+
__decorate([
|
|
55165
|
+
Field(() => [MJRecordGeoCode_]),
|
|
55166
|
+
__metadata("design:type", Array)
|
|
55167
|
+
], MJEntity_.prototype, "MJRecordGeoCodes_EntityIDArray", void 0);
|
|
54358
55168
|
__decorate([
|
|
54359
55169
|
Field(() => [MJGeneratedCode_]),
|
|
54360
55170
|
__metadata("design:type", Array)
|
|
@@ -54612,6 +55422,26 @@ __decorate([
|
|
|
54612
55422
|
Field(() => Boolean, { nullable: true }),
|
|
54613
55423
|
__metadata("design:type", Boolean)
|
|
54614
55424
|
], CreateMJEntityInput.prototype, "AllowMultipleSubtypes", void 0);
|
|
55425
|
+
__decorate([
|
|
55426
|
+
Field(() => Boolean, { nullable: true }),
|
|
55427
|
+
__metadata("design:type", Boolean)
|
|
55428
|
+
], CreateMJEntityInput.prototype, "AutoUpdateFullTextSearch", void 0);
|
|
55429
|
+
__decorate([
|
|
55430
|
+
Field(() => Boolean, { nullable: true }),
|
|
55431
|
+
__metadata("design:type", Boolean)
|
|
55432
|
+
], CreateMJEntityInput.prototype, "AutoUpdateAllowUserSearchAPI", void 0);
|
|
55433
|
+
__decorate([
|
|
55434
|
+
Field(() => Boolean, { nullable: true }),
|
|
55435
|
+
__metadata("design:type", Boolean)
|
|
55436
|
+
], CreateMJEntityInput.prototype, "TrustServerCacheCompletely", void 0);
|
|
55437
|
+
__decorate([
|
|
55438
|
+
Field(() => Boolean, { nullable: true }),
|
|
55439
|
+
__metadata("design:type", Boolean)
|
|
55440
|
+
], CreateMJEntityInput.prototype, "SupportsGeoCoding", void 0);
|
|
55441
|
+
__decorate([
|
|
55442
|
+
Field(() => Boolean, { nullable: true }),
|
|
55443
|
+
__metadata("design:type", Boolean)
|
|
55444
|
+
], CreateMJEntityInput.prototype, "AutoUpdateSupportsGeoCoding", void 0);
|
|
54615
55445
|
CreateMJEntityInput = __decorate([
|
|
54616
55446
|
InputType()
|
|
54617
55447
|
], CreateMJEntityInput);
|
|
@@ -54837,6 +55667,26 @@ __decorate([
|
|
|
54837
55667
|
Field(() => Boolean, { nullable: true }),
|
|
54838
55668
|
__metadata("design:type", Boolean)
|
|
54839
55669
|
], UpdateMJEntityInput.prototype, "AllowMultipleSubtypes", void 0);
|
|
55670
|
+
__decorate([
|
|
55671
|
+
Field(() => Boolean, { nullable: true }),
|
|
55672
|
+
__metadata("design:type", Boolean)
|
|
55673
|
+
], UpdateMJEntityInput.prototype, "AutoUpdateFullTextSearch", void 0);
|
|
55674
|
+
__decorate([
|
|
55675
|
+
Field(() => Boolean, { nullable: true }),
|
|
55676
|
+
__metadata("design:type", Boolean)
|
|
55677
|
+
], UpdateMJEntityInput.prototype, "AutoUpdateAllowUserSearchAPI", void 0);
|
|
55678
|
+
__decorate([
|
|
55679
|
+
Field(() => Boolean, { nullable: true }),
|
|
55680
|
+
__metadata("design:type", Boolean)
|
|
55681
|
+
], UpdateMJEntityInput.prototype, "TrustServerCacheCompletely", void 0);
|
|
55682
|
+
__decorate([
|
|
55683
|
+
Field(() => Boolean, { nullable: true }),
|
|
55684
|
+
__metadata("design:type", Boolean)
|
|
55685
|
+
], UpdateMJEntityInput.prototype, "SupportsGeoCoding", void 0);
|
|
55686
|
+
__decorate([
|
|
55687
|
+
Field(() => Boolean, { nullable: true }),
|
|
55688
|
+
__metadata("design:type", Boolean)
|
|
55689
|
+
], UpdateMJEntityInput.prototype, "AutoUpdateSupportsGeoCoding", void 0);
|
|
54840
55690
|
__decorate([
|
|
54841
55691
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
54842
55692
|
__metadata("design:type", Array)
|
|
@@ -55280,6 +56130,14 @@ let MJEntityResolverBase = class MJEntityResolverBase extends ResolverBase {
|
|
|
55280
56130
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Entity Organic Keys', rows, this.GetUserFromPayload(userPayload));
|
|
55281
56131
|
return result;
|
|
55282
56132
|
}
|
|
56133
|
+
async MJRecordGeoCodes_EntityIDArray(mjentity_, { userPayload, providers }, pubSub) {
|
|
56134
|
+
this.CheckUserReadPermissions('MJ: Record Geo Codes', userPayload);
|
|
56135
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
56136
|
+
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');
|
|
56137
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
56138
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Record Geo Codes', rows, this.GetUserFromPayload(userPayload));
|
|
56139
|
+
return result;
|
|
56140
|
+
}
|
|
55283
56141
|
async MJGeneratedCodes_LinkedEntityIDArray(mjentity_, { userPayload, providers }, pubSub) {
|
|
55284
56142
|
this.CheckUserReadPermissions('MJ: Generated Codes', userPayload);
|
|
55285
56143
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -55816,6 +56674,15 @@ __decorate([
|
|
|
55816
56674
|
__metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
|
|
55817
56675
|
__metadata("design:returntype", Promise)
|
|
55818
56676
|
], MJEntityResolverBase.prototype, "MJEntityOrganicKeys_EntityIDArray", null);
|
|
56677
|
+
__decorate([
|
|
56678
|
+
FieldResolver(() => [MJRecordGeoCode_]),
|
|
56679
|
+
__param(0, Root()),
|
|
56680
|
+
__param(1, Ctx()),
|
|
56681
|
+
__param(2, PubSub()),
|
|
56682
|
+
__metadata("design:type", Function),
|
|
56683
|
+
__metadata("design:paramtypes", [MJEntity_, Object, PubSubEngine]),
|
|
56684
|
+
__metadata("design:returntype", Promise)
|
|
56685
|
+
], MJEntityResolverBase.prototype, "MJRecordGeoCodes_EntityIDArray", null);
|
|
55819
56686
|
__decorate([
|
|
55820
56687
|
FieldResolver(() => [MJGeneratedCode_]),
|
|
55821
56688
|
__param(0, Root()),
|
|
@@ -59848,6 +60715,23 @@ __decorate([
|
|
|
59848
60715
|
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
60716
|
__metadata("design:type", String)
|
|
59850
60717
|
], MJEntityField_.prototype, "JSONTypeDefinition", void 0);
|
|
60718
|
+
__decorate([
|
|
60719
|
+
Field({ description: `Search predicate controlling how user search queries match against this field. Valid values: BeginsWith, Contains, EndsWith, Exact.` }),
|
|
60720
|
+
MaxLength(20),
|
|
60721
|
+
__metadata("design:type", String)
|
|
60722
|
+
], MJEntityField_.prototype, "UserSearchPredicateAPI", void 0);
|
|
60723
|
+
__decorate([
|
|
60724
|
+
Field(() => Boolean, { description: `When true, CodeGen LLM can auto-set the UserSearchPredicateAPI value during code generation runs.` }),
|
|
60725
|
+
__metadata("design:type", Boolean)
|
|
60726
|
+
], MJEntityField_.prototype, "AutoUpdateUserSearchPredicate", void 0);
|
|
60727
|
+
__decorate([
|
|
60728
|
+
Field(() => Boolean, { description: `When true, CodeGen LLM can auto-set the FullTextSearchEnabled value during code generation runs.` }),
|
|
60729
|
+
__metadata("design:type", Boolean)
|
|
60730
|
+
], MJEntityField_.prototype, "AutoUpdateFullTextSearch", void 0);
|
|
60731
|
+
__decorate([
|
|
60732
|
+
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.` }),
|
|
60733
|
+
__metadata("design:type", Boolean)
|
|
60734
|
+
], MJEntityField_.prototype, "AutoUpdateExtendedType", void 0);
|
|
59851
60735
|
__decorate([
|
|
59852
60736
|
Field({ nullable: true }),
|
|
59853
60737
|
__metadata("design:type", String)
|
|
@@ -60105,6 +60989,22 @@ __decorate([
|
|
|
60105
60989
|
Field({ nullable: true }),
|
|
60106
60990
|
__metadata("design:type", String)
|
|
60107
60991
|
], CreateMJEntityFieldInput.prototype, "JSONTypeDefinition", void 0);
|
|
60992
|
+
__decorate([
|
|
60993
|
+
Field({ nullable: true }),
|
|
60994
|
+
__metadata("design:type", String)
|
|
60995
|
+
], CreateMJEntityFieldInput.prototype, "UserSearchPredicateAPI", void 0);
|
|
60996
|
+
__decorate([
|
|
60997
|
+
Field(() => Boolean, { nullable: true }),
|
|
60998
|
+
__metadata("design:type", Boolean)
|
|
60999
|
+
], CreateMJEntityFieldInput.prototype, "AutoUpdateUserSearchPredicate", void 0);
|
|
61000
|
+
__decorate([
|
|
61001
|
+
Field(() => Boolean, { nullable: true }),
|
|
61002
|
+
__metadata("design:type", Boolean)
|
|
61003
|
+
], CreateMJEntityFieldInput.prototype, "AutoUpdateFullTextSearch", void 0);
|
|
61004
|
+
__decorate([
|
|
61005
|
+
Field(() => Boolean, { nullable: true }),
|
|
61006
|
+
__metadata("design:type", Boolean)
|
|
61007
|
+
], CreateMJEntityFieldInput.prototype, "AutoUpdateExtendedType", void 0);
|
|
60108
61008
|
CreateMJEntityFieldInput = __decorate([
|
|
60109
61009
|
InputType()
|
|
60110
61010
|
], CreateMJEntityFieldInput);
|
|
@@ -60298,6 +61198,22 @@ __decorate([
|
|
|
60298
61198
|
Field({ nullable: true }),
|
|
60299
61199
|
__metadata("design:type", String)
|
|
60300
61200
|
], UpdateMJEntityFieldInput.prototype, "JSONTypeDefinition", void 0);
|
|
61201
|
+
__decorate([
|
|
61202
|
+
Field({ nullable: true }),
|
|
61203
|
+
__metadata("design:type", String)
|
|
61204
|
+
], UpdateMJEntityFieldInput.prototype, "UserSearchPredicateAPI", void 0);
|
|
61205
|
+
__decorate([
|
|
61206
|
+
Field(() => Boolean, { nullable: true }),
|
|
61207
|
+
__metadata("design:type", Boolean)
|
|
61208
|
+
], UpdateMJEntityFieldInput.prototype, "AutoUpdateUserSearchPredicate", void 0);
|
|
61209
|
+
__decorate([
|
|
61210
|
+
Field(() => Boolean, { nullable: true }),
|
|
61211
|
+
__metadata("design:type", Boolean)
|
|
61212
|
+
], UpdateMJEntityFieldInput.prototype, "AutoUpdateFullTextSearch", void 0);
|
|
61213
|
+
__decorate([
|
|
61214
|
+
Field(() => Boolean, { nullable: true }),
|
|
61215
|
+
__metadata("design:type", Boolean)
|
|
61216
|
+
], UpdateMJEntityFieldInput.prototype, "AutoUpdateExtendedType", void 0);
|
|
60301
61217
|
__decorate([
|
|
60302
61218
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
60303
61219
|
__metadata("design:type", Array)
|
|
@@ -64419,6 +65335,290 @@ MJFileEntityRecordLinkResolver = __decorate([
|
|
|
64419
65335
|
], MJFileEntityRecordLinkResolver);
|
|
64420
65336
|
export { MJFileEntityRecordLinkResolver };
|
|
64421
65337
|
//****************************************************************************
|
|
65338
|
+
// ENTITY CLASS for MJ: File Storage Account Permissions
|
|
65339
|
+
//****************************************************************************
|
|
65340
|
+
let MJFileStorageAccountPermission_ = class MJFileStorageAccountPermission_ {
|
|
65341
|
+
};
|
|
65342
|
+
__decorate([
|
|
65343
|
+
Field(),
|
|
65344
|
+
MaxLength(36),
|
|
65345
|
+
__metadata("design:type", String)
|
|
65346
|
+
], MJFileStorageAccountPermission_.prototype, "ID", void 0);
|
|
65347
|
+
__decorate([
|
|
65348
|
+
Field({ description: `The storage account this permission applies to.` }),
|
|
65349
|
+
MaxLength(36),
|
|
65350
|
+
__metadata("design:type", String)
|
|
65351
|
+
], MJFileStorageAccountPermission_.prototype, "FileStorageAccountID", void 0);
|
|
65352
|
+
__decorate([
|
|
65353
|
+
Field({ description: `Permission type: User (requires UserID), Role (requires RoleID), or Everyone (both NULL).` }),
|
|
65354
|
+
MaxLength(20),
|
|
65355
|
+
__metadata("design:type", String)
|
|
65356
|
+
], MJFileStorageAccountPermission_.prototype, "Type", void 0);
|
|
65357
|
+
__decorate([
|
|
65358
|
+
Field({ nullable: true, description: `Required when Type is User. The specific user granted access to this storage account.` }),
|
|
65359
|
+
MaxLength(36),
|
|
65360
|
+
__metadata("design:type", String)
|
|
65361
|
+
], MJFileStorageAccountPermission_.prototype, "UserID", void 0);
|
|
65362
|
+
__decorate([
|
|
65363
|
+
Field({ nullable: true, description: `Required when Type is Role. The role granted access to this storage account.` }),
|
|
65364
|
+
MaxLength(36),
|
|
65365
|
+
__metadata("design:type", String)
|
|
65366
|
+
], MJFileStorageAccountPermission_.prototype, "RoleID", void 0);
|
|
65367
|
+
__decorate([
|
|
65368
|
+
Field(() => Boolean, { description: `Whether the grantee can read/search files in this storage account.` }),
|
|
65369
|
+
__metadata("design:type", Boolean)
|
|
65370
|
+
], MJFileStorageAccountPermission_.prototype, "CanRead", void 0);
|
|
65371
|
+
__decorate([
|
|
65372
|
+
Field(() => Boolean, { description: `Whether the grantee can upload/modify files in this storage account.` }),
|
|
65373
|
+
__metadata("design:type", Boolean)
|
|
65374
|
+
], MJFileStorageAccountPermission_.prototype, "CanWrite", void 0);
|
|
65375
|
+
__decorate([
|
|
65376
|
+
Field(),
|
|
65377
|
+
__metadata("design:type", Date)
|
|
65378
|
+
], MJFileStorageAccountPermission_.prototype, "_mj__CreatedAt", void 0);
|
|
65379
|
+
__decorate([
|
|
65380
|
+
Field(),
|
|
65381
|
+
__metadata("design:type", Date)
|
|
65382
|
+
], MJFileStorageAccountPermission_.prototype, "_mj__UpdatedAt", void 0);
|
|
65383
|
+
__decorate([
|
|
65384
|
+
Field(),
|
|
65385
|
+
MaxLength(200),
|
|
65386
|
+
__metadata("design:type", String)
|
|
65387
|
+
], MJFileStorageAccountPermission_.prototype, "FileStorageAccount", void 0);
|
|
65388
|
+
__decorate([
|
|
65389
|
+
Field({ nullable: true }),
|
|
65390
|
+
MaxLength(100),
|
|
65391
|
+
__metadata("design:type", String)
|
|
65392
|
+
], MJFileStorageAccountPermission_.prototype, "User", void 0);
|
|
65393
|
+
__decorate([
|
|
65394
|
+
Field({ nullable: true }),
|
|
65395
|
+
MaxLength(50),
|
|
65396
|
+
__metadata("design:type", String)
|
|
65397
|
+
], MJFileStorageAccountPermission_.prototype, "Role", void 0);
|
|
65398
|
+
MJFileStorageAccountPermission_ = __decorate([
|
|
65399
|
+
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).` })
|
|
65400
|
+
], MJFileStorageAccountPermission_);
|
|
65401
|
+
export { MJFileStorageAccountPermission_ };
|
|
65402
|
+
//****************************************************************************
|
|
65403
|
+
// INPUT TYPE for MJ: File Storage Account Permissions
|
|
65404
|
+
//****************************************************************************
|
|
65405
|
+
let CreateMJFileStorageAccountPermissionInput = class CreateMJFileStorageAccountPermissionInput {
|
|
65406
|
+
};
|
|
65407
|
+
__decorate([
|
|
65408
|
+
Field({ nullable: true }),
|
|
65409
|
+
__metadata("design:type", String)
|
|
65410
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "ID", void 0);
|
|
65411
|
+
__decorate([
|
|
65412
|
+
Field({ nullable: true }),
|
|
65413
|
+
__metadata("design:type", String)
|
|
65414
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "FileStorageAccountID", void 0);
|
|
65415
|
+
__decorate([
|
|
65416
|
+
Field({ nullable: true }),
|
|
65417
|
+
__metadata("design:type", String)
|
|
65418
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "Type", void 0);
|
|
65419
|
+
__decorate([
|
|
65420
|
+
Field({ nullable: true }),
|
|
65421
|
+
__metadata("design:type", String)
|
|
65422
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "UserID", void 0);
|
|
65423
|
+
__decorate([
|
|
65424
|
+
Field({ nullable: true }),
|
|
65425
|
+
__metadata("design:type", String)
|
|
65426
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "RoleID", void 0);
|
|
65427
|
+
__decorate([
|
|
65428
|
+
Field(() => Boolean, { nullable: true }),
|
|
65429
|
+
__metadata("design:type", Boolean)
|
|
65430
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "CanRead", void 0);
|
|
65431
|
+
__decorate([
|
|
65432
|
+
Field(() => Boolean, { nullable: true }),
|
|
65433
|
+
__metadata("design:type", Boolean)
|
|
65434
|
+
], CreateMJFileStorageAccountPermissionInput.prototype, "CanWrite", void 0);
|
|
65435
|
+
CreateMJFileStorageAccountPermissionInput = __decorate([
|
|
65436
|
+
InputType()
|
|
65437
|
+
], CreateMJFileStorageAccountPermissionInput);
|
|
65438
|
+
export { CreateMJFileStorageAccountPermissionInput };
|
|
65439
|
+
//****************************************************************************
|
|
65440
|
+
// INPUT TYPE for MJ: File Storage Account Permissions
|
|
65441
|
+
//****************************************************************************
|
|
65442
|
+
let UpdateMJFileStorageAccountPermissionInput = class UpdateMJFileStorageAccountPermissionInput {
|
|
65443
|
+
};
|
|
65444
|
+
__decorate([
|
|
65445
|
+
Field(),
|
|
65446
|
+
__metadata("design:type", String)
|
|
65447
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "ID", void 0);
|
|
65448
|
+
__decorate([
|
|
65449
|
+
Field({ nullable: true }),
|
|
65450
|
+
__metadata("design:type", String)
|
|
65451
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "FileStorageAccountID", void 0);
|
|
65452
|
+
__decorate([
|
|
65453
|
+
Field({ nullable: true }),
|
|
65454
|
+
__metadata("design:type", String)
|
|
65455
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "Type", void 0);
|
|
65456
|
+
__decorate([
|
|
65457
|
+
Field({ nullable: true }),
|
|
65458
|
+
__metadata("design:type", String)
|
|
65459
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "UserID", void 0);
|
|
65460
|
+
__decorate([
|
|
65461
|
+
Field({ nullable: true }),
|
|
65462
|
+
__metadata("design:type", String)
|
|
65463
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "RoleID", void 0);
|
|
65464
|
+
__decorate([
|
|
65465
|
+
Field(() => Boolean, { nullable: true }),
|
|
65466
|
+
__metadata("design:type", Boolean)
|
|
65467
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "CanRead", void 0);
|
|
65468
|
+
__decorate([
|
|
65469
|
+
Field(() => Boolean, { nullable: true }),
|
|
65470
|
+
__metadata("design:type", Boolean)
|
|
65471
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "CanWrite", void 0);
|
|
65472
|
+
__decorate([
|
|
65473
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
65474
|
+
__metadata("design:type", Array)
|
|
65475
|
+
], UpdateMJFileStorageAccountPermissionInput.prototype, "OldValues___", void 0);
|
|
65476
|
+
UpdateMJFileStorageAccountPermissionInput = __decorate([
|
|
65477
|
+
InputType()
|
|
65478
|
+
], UpdateMJFileStorageAccountPermissionInput);
|
|
65479
|
+
export { UpdateMJFileStorageAccountPermissionInput };
|
|
65480
|
+
//****************************************************************************
|
|
65481
|
+
// RESOLVER for MJ: File Storage Account Permissions
|
|
65482
|
+
//****************************************************************************
|
|
65483
|
+
let RunMJFileStorageAccountPermissionViewResult = class RunMJFileStorageAccountPermissionViewResult {
|
|
65484
|
+
};
|
|
65485
|
+
__decorate([
|
|
65486
|
+
Field(() => [MJFileStorageAccountPermission_]),
|
|
65487
|
+
__metadata("design:type", Array)
|
|
65488
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "Results", void 0);
|
|
65489
|
+
__decorate([
|
|
65490
|
+
Field(() => String, { nullable: true }),
|
|
65491
|
+
__metadata("design:type", String)
|
|
65492
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "UserViewRunID", void 0);
|
|
65493
|
+
__decorate([
|
|
65494
|
+
Field(() => Int, { nullable: true }),
|
|
65495
|
+
__metadata("design:type", Number)
|
|
65496
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "RowCount", void 0);
|
|
65497
|
+
__decorate([
|
|
65498
|
+
Field(() => Int, { nullable: true }),
|
|
65499
|
+
__metadata("design:type", Number)
|
|
65500
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "TotalRowCount", void 0);
|
|
65501
|
+
__decorate([
|
|
65502
|
+
Field(() => Int, { nullable: true }),
|
|
65503
|
+
__metadata("design:type", Number)
|
|
65504
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "ExecutionTime", void 0);
|
|
65505
|
+
__decorate([
|
|
65506
|
+
Field({ nullable: true }),
|
|
65507
|
+
__metadata("design:type", String)
|
|
65508
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "ErrorMessage", void 0);
|
|
65509
|
+
__decorate([
|
|
65510
|
+
Field(() => Boolean, { nullable: false }),
|
|
65511
|
+
__metadata("design:type", Boolean)
|
|
65512
|
+
], RunMJFileStorageAccountPermissionViewResult.prototype, "Success", void 0);
|
|
65513
|
+
RunMJFileStorageAccountPermissionViewResult = __decorate([
|
|
65514
|
+
ObjectType()
|
|
65515
|
+
], RunMJFileStorageAccountPermissionViewResult);
|
|
65516
|
+
export { RunMJFileStorageAccountPermissionViewResult };
|
|
65517
|
+
let MJFileStorageAccountPermissionResolver = class MJFileStorageAccountPermissionResolver extends ResolverBase {
|
|
65518
|
+
async RunMJFileStorageAccountPermissionViewByID(input, { providers, userPayload }, pubSub) {
|
|
65519
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65520
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
65521
|
+
}
|
|
65522
|
+
async RunMJFileStorageAccountPermissionViewByName(input, { providers, userPayload }, pubSub) {
|
|
65523
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65524
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
65525
|
+
}
|
|
65526
|
+
async RunMJFileStorageAccountPermissionDynamicView(input, { providers, userPayload }, pubSub) {
|
|
65527
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65528
|
+
input.EntityName = 'MJ: File Storage Account Permissions';
|
|
65529
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
65530
|
+
}
|
|
65531
|
+
async MJFileStorageAccountPermission(ID, { userPayload, providers }, pubSub) {
|
|
65532
|
+
this.CheckUserReadPermissions('MJ: File Storage Account Permissions', userPayload);
|
|
65533
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65534
|
+
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');
|
|
65535
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65536
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Account Permissions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
65537
|
+
return result;
|
|
65538
|
+
}
|
|
65539
|
+
async CreateMJFileStorageAccountPermission(input, { providers, userPayload }, pubSub) {
|
|
65540
|
+
const provider = GetReadWriteProvider(providers);
|
|
65541
|
+
return this.CreateRecord('MJ: File Storage Account Permissions', input, provider, userPayload, pubSub);
|
|
65542
|
+
}
|
|
65543
|
+
async UpdateMJFileStorageAccountPermission(input, { providers, userPayload }, pubSub) {
|
|
65544
|
+
const provider = GetReadWriteProvider(providers);
|
|
65545
|
+
return this.UpdateRecord('MJ: File Storage Account Permissions', input, provider, userPayload, pubSub);
|
|
65546
|
+
}
|
|
65547
|
+
async DeleteMJFileStorageAccountPermission(ID, options, { providers, userPayload }, pubSub) {
|
|
65548
|
+
const provider = GetReadWriteProvider(providers);
|
|
65549
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
65550
|
+
return this.DeleteRecord('MJ: File Storage Account Permissions', key, options, provider, userPayload, pubSub);
|
|
65551
|
+
}
|
|
65552
|
+
};
|
|
65553
|
+
__decorate([
|
|
65554
|
+
Query(() => RunMJFileStorageAccountPermissionViewResult),
|
|
65555
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
65556
|
+
__param(1, Ctx()),
|
|
65557
|
+
__param(2, PubSub()),
|
|
65558
|
+
__metadata("design:type", Function),
|
|
65559
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
65560
|
+
__metadata("design:returntype", Promise)
|
|
65561
|
+
], MJFileStorageAccountPermissionResolver.prototype, "RunMJFileStorageAccountPermissionViewByID", null);
|
|
65562
|
+
__decorate([
|
|
65563
|
+
Query(() => RunMJFileStorageAccountPermissionViewResult),
|
|
65564
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
65565
|
+
__param(1, Ctx()),
|
|
65566
|
+
__param(2, PubSub()),
|
|
65567
|
+
__metadata("design:type", Function),
|
|
65568
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
65569
|
+
__metadata("design:returntype", Promise)
|
|
65570
|
+
], MJFileStorageAccountPermissionResolver.prototype, "RunMJFileStorageAccountPermissionViewByName", null);
|
|
65571
|
+
__decorate([
|
|
65572
|
+
Query(() => RunMJFileStorageAccountPermissionViewResult),
|
|
65573
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
65574
|
+
__param(1, Ctx()),
|
|
65575
|
+
__param(2, PubSub()),
|
|
65576
|
+
__metadata("design:type", Function),
|
|
65577
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
65578
|
+
__metadata("design:returntype", Promise)
|
|
65579
|
+
], MJFileStorageAccountPermissionResolver.prototype, "RunMJFileStorageAccountPermissionDynamicView", null);
|
|
65580
|
+
__decorate([
|
|
65581
|
+
Query(() => MJFileStorageAccountPermission_, { nullable: true }),
|
|
65582
|
+
__param(0, Arg('ID', () => String)),
|
|
65583
|
+
__param(1, Ctx()),
|
|
65584
|
+
__param(2, PubSub()),
|
|
65585
|
+
__metadata("design:type", Function),
|
|
65586
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
65587
|
+
__metadata("design:returntype", Promise)
|
|
65588
|
+
], MJFileStorageAccountPermissionResolver.prototype, "MJFileStorageAccountPermission", null);
|
|
65589
|
+
__decorate([
|
|
65590
|
+
Mutation(() => MJFileStorageAccountPermission_),
|
|
65591
|
+
__param(0, Arg('input', () => CreateMJFileStorageAccountPermissionInput)),
|
|
65592
|
+
__param(1, Ctx()),
|
|
65593
|
+
__param(2, PubSub()),
|
|
65594
|
+
__metadata("design:type", Function),
|
|
65595
|
+
__metadata("design:paramtypes", [CreateMJFileStorageAccountPermissionInput, Object, PubSubEngine]),
|
|
65596
|
+
__metadata("design:returntype", Promise)
|
|
65597
|
+
], MJFileStorageAccountPermissionResolver.prototype, "CreateMJFileStorageAccountPermission", null);
|
|
65598
|
+
__decorate([
|
|
65599
|
+
Mutation(() => MJFileStorageAccountPermission_),
|
|
65600
|
+
__param(0, Arg('input', () => UpdateMJFileStorageAccountPermissionInput)),
|
|
65601
|
+
__param(1, Ctx()),
|
|
65602
|
+
__param(2, PubSub()),
|
|
65603
|
+
__metadata("design:type", Function),
|
|
65604
|
+
__metadata("design:paramtypes", [UpdateMJFileStorageAccountPermissionInput, Object, PubSubEngine]),
|
|
65605
|
+
__metadata("design:returntype", Promise)
|
|
65606
|
+
], MJFileStorageAccountPermissionResolver.prototype, "UpdateMJFileStorageAccountPermission", null);
|
|
65607
|
+
__decorate([
|
|
65608
|
+
Mutation(() => MJFileStorageAccountPermission_),
|
|
65609
|
+
__param(0, Arg('ID', () => String)),
|
|
65610
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
65611
|
+
__param(2, Ctx()),
|
|
65612
|
+
__param(3, PubSub()),
|
|
65613
|
+
__metadata("design:type", Function),
|
|
65614
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
65615
|
+
__metadata("design:returntype", Promise)
|
|
65616
|
+
], MJFileStorageAccountPermissionResolver.prototype, "DeleteMJFileStorageAccountPermission", null);
|
|
65617
|
+
MJFileStorageAccountPermissionResolver = __decorate([
|
|
65618
|
+
Resolver(MJFileStorageAccountPermission_)
|
|
65619
|
+
], MJFileStorageAccountPermissionResolver);
|
|
65620
|
+
export { MJFileStorageAccountPermissionResolver };
|
|
65621
|
+
//****************************************************************************
|
|
64422
65622
|
// ENTITY CLASS for MJ: File Storage Accounts
|
|
64423
65623
|
//****************************************************************************
|
|
64424
65624
|
let MJFileStorageAccount_ = class MJFileStorageAccount_ {
|
|
@@ -64455,6 +65655,10 @@ __decorate([
|
|
|
64455
65655
|
Field(),
|
|
64456
65656
|
__metadata("design:type", Date)
|
|
64457
65657
|
], MJFileStorageAccount_.prototype, "_mj__UpdatedAt", void 0);
|
|
65658
|
+
__decorate([
|
|
65659
|
+
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).` }),
|
|
65660
|
+
__metadata("design:type", Boolean)
|
|
65661
|
+
], MJFileStorageAccount_.prototype, "IncludeInGlobalSearch", void 0);
|
|
64458
65662
|
__decorate([
|
|
64459
65663
|
Field(),
|
|
64460
65664
|
MaxLength(50),
|
|
@@ -64465,6 +65669,22 @@ __decorate([
|
|
|
64465
65669
|
MaxLength(200),
|
|
64466
65670
|
__metadata("design:type", String)
|
|
64467
65671
|
], MJFileStorageAccount_.prototype, "Credential", void 0);
|
|
65672
|
+
__decorate([
|
|
65673
|
+
Field(() => [MJAIAgentType_]),
|
|
65674
|
+
__metadata("design:type", Array)
|
|
65675
|
+
], MJFileStorageAccount_.prototype, "MJAIAgentTypes_DefaultStorageAccountIDArray", void 0);
|
|
65676
|
+
__decorate([
|
|
65677
|
+
Field(() => [MJFileStorageAccountPermission_]),
|
|
65678
|
+
__metadata("design:type", Array)
|
|
65679
|
+
], MJFileStorageAccount_.prototype, "MJFileStorageAccountPermissions_FileStorageAccountIDArray", void 0);
|
|
65680
|
+
__decorate([
|
|
65681
|
+
Field(() => [MJAIAgentCategory_]),
|
|
65682
|
+
__metadata("design:type", Array)
|
|
65683
|
+
], MJFileStorageAccount_.prototype, "MJAIAgentCategories_DefaultStorageAccountIDArray", void 0);
|
|
65684
|
+
__decorate([
|
|
65685
|
+
Field(() => [MJAIAgent_]),
|
|
65686
|
+
__metadata("design:type", Array)
|
|
65687
|
+
], MJFileStorageAccount_.prototype, "MJAIAgents_DefaultStorageAccountIDArray", void 0);
|
|
64468
65688
|
MJFileStorageAccount_ = __decorate([
|
|
64469
65689
|
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
65690
|
], MJFileStorageAccount_);
|
|
@@ -64494,6 +65714,10 @@ __decorate([
|
|
|
64494
65714
|
Field({ nullable: true }),
|
|
64495
65715
|
__metadata("design:type", String)
|
|
64496
65716
|
], CreateMJFileStorageAccountInput.prototype, "CredentialID", void 0);
|
|
65717
|
+
__decorate([
|
|
65718
|
+
Field(() => Boolean, { nullable: true }),
|
|
65719
|
+
__metadata("design:type", Boolean)
|
|
65720
|
+
], CreateMJFileStorageAccountInput.prototype, "IncludeInGlobalSearch", void 0);
|
|
64497
65721
|
CreateMJFileStorageAccountInput = __decorate([
|
|
64498
65722
|
InputType()
|
|
64499
65723
|
], CreateMJFileStorageAccountInput);
|
|
@@ -64523,6 +65747,10 @@ __decorate([
|
|
|
64523
65747
|
Field({ nullable: true }),
|
|
64524
65748
|
__metadata("design:type", String)
|
|
64525
65749
|
], UpdateMJFileStorageAccountInput.prototype, "CredentialID", void 0);
|
|
65750
|
+
__decorate([
|
|
65751
|
+
Field(() => Boolean, { nullable: true }),
|
|
65752
|
+
__metadata("design:type", Boolean)
|
|
65753
|
+
], UpdateMJFileStorageAccountInput.prototype, "IncludeInGlobalSearch", void 0);
|
|
64526
65754
|
__decorate([
|
|
64527
65755
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
64528
65756
|
__metadata("design:type", Array)
|
|
@@ -64590,6 +65818,38 @@ let MJFileStorageAccountResolver = class MJFileStorageAccountResolver extends Re
|
|
|
64590
65818
|
const result = await this.MapFieldNamesToCodeNames('MJ: File Storage Accounts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
64591
65819
|
return result;
|
|
64592
65820
|
}
|
|
65821
|
+
async MJAIAgentTypes_DefaultStorageAccountIDArray(mjfilestorageaccount_, { userPayload, providers }, pubSub) {
|
|
65822
|
+
this.CheckUserReadPermissions('MJ: AI Agent Types', userPayload);
|
|
65823
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65824
|
+
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');
|
|
65825
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65826
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Types', rows, this.GetUserFromPayload(userPayload));
|
|
65827
|
+
return result;
|
|
65828
|
+
}
|
|
65829
|
+
async MJFileStorageAccountPermissions_FileStorageAccountIDArray(mjfilestorageaccount_, { userPayload, providers }, pubSub) {
|
|
65830
|
+
this.CheckUserReadPermissions('MJ: File Storage Account Permissions', userPayload);
|
|
65831
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65832
|
+
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');
|
|
65833
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65834
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: File Storage Account Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
65835
|
+
return result;
|
|
65836
|
+
}
|
|
65837
|
+
async MJAIAgentCategories_DefaultStorageAccountIDArray(mjfilestorageaccount_, { userPayload, providers }, pubSub) {
|
|
65838
|
+
this.CheckUserReadPermissions('MJ: AI Agent Categories', userPayload);
|
|
65839
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65840
|
+
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');
|
|
65841
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65842
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Categories', rows, this.GetUserFromPayload(userPayload));
|
|
65843
|
+
return result;
|
|
65844
|
+
}
|
|
65845
|
+
async MJAIAgents_DefaultStorageAccountIDArray(mjfilestorageaccount_, { userPayload, providers }, pubSub) {
|
|
65846
|
+
this.CheckUserReadPermissions('MJ: AI Agents', userPayload);
|
|
65847
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65848
|
+
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');
|
|
65849
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
65850
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agents', rows, this.GetUserFromPayload(userPayload));
|
|
65851
|
+
return result;
|
|
65852
|
+
}
|
|
64593
65853
|
async CreateMJFileStorageAccount(input, { providers, userPayload }, pubSub) {
|
|
64594
65854
|
const provider = GetReadWriteProvider(providers);
|
|
64595
65855
|
return this.CreateRecord('MJ: File Storage Accounts', input, provider, userPayload, pubSub);
|
|
@@ -64640,6 +65900,42 @@ __decorate([
|
|
|
64640
65900
|
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
64641
65901
|
__metadata("design:returntype", Promise)
|
|
64642
65902
|
], MJFileStorageAccountResolver.prototype, "MJFileStorageAccount", null);
|
|
65903
|
+
__decorate([
|
|
65904
|
+
FieldResolver(() => [MJAIAgentType_]),
|
|
65905
|
+
__param(0, Root()),
|
|
65906
|
+
__param(1, Ctx()),
|
|
65907
|
+
__param(2, PubSub()),
|
|
65908
|
+
__metadata("design:type", Function),
|
|
65909
|
+
__metadata("design:paramtypes", [MJFileStorageAccount_, Object, PubSubEngine]),
|
|
65910
|
+
__metadata("design:returntype", Promise)
|
|
65911
|
+
], MJFileStorageAccountResolver.prototype, "MJAIAgentTypes_DefaultStorageAccountIDArray", null);
|
|
65912
|
+
__decorate([
|
|
65913
|
+
FieldResolver(() => [MJFileStorageAccountPermission_]),
|
|
65914
|
+
__param(0, Root()),
|
|
65915
|
+
__param(1, Ctx()),
|
|
65916
|
+
__param(2, PubSub()),
|
|
65917
|
+
__metadata("design:type", Function),
|
|
65918
|
+
__metadata("design:paramtypes", [MJFileStorageAccount_, Object, PubSubEngine]),
|
|
65919
|
+
__metadata("design:returntype", Promise)
|
|
65920
|
+
], MJFileStorageAccountResolver.prototype, "MJFileStorageAccountPermissions_FileStorageAccountIDArray", null);
|
|
65921
|
+
__decorate([
|
|
65922
|
+
FieldResolver(() => [MJAIAgentCategory_]),
|
|
65923
|
+
__param(0, Root()),
|
|
65924
|
+
__param(1, Ctx()),
|
|
65925
|
+
__param(2, PubSub()),
|
|
65926
|
+
__metadata("design:type", Function),
|
|
65927
|
+
__metadata("design:paramtypes", [MJFileStorageAccount_, Object, PubSubEngine]),
|
|
65928
|
+
__metadata("design:returntype", Promise)
|
|
65929
|
+
], MJFileStorageAccountResolver.prototype, "MJAIAgentCategories_DefaultStorageAccountIDArray", null);
|
|
65930
|
+
__decorate([
|
|
65931
|
+
FieldResolver(() => [MJAIAgent_]),
|
|
65932
|
+
__param(0, Root()),
|
|
65933
|
+
__param(1, Ctx()),
|
|
65934
|
+
__param(2, PubSub()),
|
|
65935
|
+
__metadata("design:type", Function),
|
|
65936
|
+
__metadata("design:paramtypes", [MJFileStorageAccount_, Object, PubSubEngine]),
|
|
65937
|
+
__metadata("design:returntype", Promise)
|
|
65938
|
+
], MJFileStorageAccountResolver.prototype, "MJAIAgents_DefaultStorageAccountIDArray", null);
|
|
64643
65939
|
__decorate([
|
|
64644
65940
|
Mutation(() => MJFileStorageAccount_),
|
|
64645
65941
|
__param(0, Arg('input', () => CreateMJFileStorageAccountInput)),
|
|
@@ -65138,6 +66434,10 @@ __decorate([
|
|
|
65138
66434
|
Field(() => [MJAIAgentRunMedia_]),
|
|
65139
66435
|
__metadata("design:type", Array)
|
|
65140
66436
|
], MJFile_.prototype, "MJAIAgentRunMedias_FileIDArray", void 0);
|
|
66437
|
+
__decorate([
|
|
66438
|
+
Field(() => [MJArtifactVersion_]),
|
|
66439
|
+
__metadata("design:type", Array)
|
|
66440
|
+
], MJFile_.prototype, "MJArtifactVersions_FileIDArray", void 0);
|
|
65141
66441
|
MJFile_ = __decorate([
|
|
65142
66442
|
ObjectType({ description: `Manages file metadata, storage locations, and access control for all files stored within or referenced by the system.` })
|
|
65143
66443
|
], MJFile_);
|
|
@@ -65319,6 +66619,14 @@ let MJFileResolver = class MJFileResolver extends ResolverBase {
|
|
|
65319
66619
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows, this.GetUserFromPayload(userPayload));
|
|
65320
66620
|
return result;
|
|
65321
66621
|
}
|
|
66622
|
+
async MJArtifactVersions_FileIDArray(mjfile_, { userPayload, providers }, pubSub) {
|
|
66623
|
+
this.CheckUserReadPermissions('MJ: Artifact Versions', userPayload);
|
|
66624
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
66625
|
+
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');
|
|
66626
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
66627
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Artifact Versions', rows, this.GetUserFromPayload(userPayload));
|
|
66628
|
+
return result;
|
|
66629
|
+
}
|
|
65322
66630
|
async CreateMJFile(input, { providers, userPayload }, pubSub) {
|
|
65323
66631
|
const provider = GetReadWriteProvider(providers);
|
|
65324
66632
|
return this.CreateRecord('MJ: Files', input, provider, userPayload, pubSub);
|
|
@@ -65405,6 +66713,15 @@ __decorate([
|
|
|
65405
66713
|
__metadata("design:paramtypes", [MJFile_, Object, PubSubEngine]),
|
|
65406
66714
|
__metadata("design:returntype", Promise)
|
|
65407
66715
|
], MJFileResolver.prototype, "MJAIAgentRunMedias_FileIDArray", null);
|
|
66716
|
+
__decorate([
|
|
66717
|
+
FieldResolver(() => [MJArtifactVersion_]),
|
|
66718
|
+
__param(0, Root()),
|
|
66719
|
+
__param(1, Ctx()),
|
|
66720
|
+
__param(2, PubSub()),
|
|
66721
|
+
__metadata("design:type", Function),
|
|
66722
|
+
__metadata("design:paramtypes", [MJFile_, Object, PubSubEngine]),
|
|
66723
|
+
__metadata("design:returntype", Promise)
|
|
66724
|
+
], MJFileResolver.prototype, "MJArtifactVersions_FileIDArray", null);
|
|
65408
66725
|
__decorate([
|
|
65409
66726
|
Mutation(() => MJFile_),
|
|
65410
66727
|
__param(0, Arg('input', () => CreateMJFileInput)),
|
|
@@ -66067,6 +67384,287 @@ MJGeneratedCodeResolver = __decorate([
|
|
|
66067
67384
|
], MJGeneratedCodeResolver);
|
|
66068
67385
|
export { MJGeneratedCodeResolver };
|
|
66069
67386
|
//****************************************************************************
|
|
67387
|
+
// ENTITY CLASS for MJ: Instance Configurations
|
|
67388
|
+
//****************************************************************************
|
|
67389
|
+
let MJInstanceConfiguration_ = class MJInstanceConfiguration_ {
|
|
67390
|
+
};
|
|
67391
|
+
__decorate([
|
|
67392
|
+
Field(),
|
|
67393
|
+
MaxLength(36),
|
|
67394
|
+
__metadata("design:type", String)
|
|
67395
|
+
], MJInstanceConfiguration_.prototype, "ID", void 0);
|
|
67396
|
+
__decorate([
|
|
67397
|
+
Field({ description: `Unique dot-notation key identifying the feature, e.g. Shell.SearchBar.Enabled.` }),
|
|
67398
|
+
MaxLength(200),
|
|
67399
|
+
__metadata("design:type", String)
|
|
67400
|
+
], MJInstanceConfiguration_.prototype, "FeatureKey", void 0);
|
|
67401
|
+
__decorate([
|
|
67402
|
+
Field({ description: `Current value for this feature setting.` }),
|
|
67403
|
+
__metadata("design:type", String)
|
|
67404
|
+
], MJInstanceConfiguration_.prototype, "Value", void 0);
|
|
67405
|
+
__decorate([
|
|
67406
|
+
Field({ description: `Data type of the value: boolean, string, number, or json.` }),
|
|
67407
|
+
MaxLength(20),
|
|
67408
|
+
__metadata("design:type", String)
|
|
67409
|
+
], MJInstanceConfiguration_.prototype, "ValueType", void 0);
|
|
67410
|
+
__decorate([
|
|
67411
|
+
Field({ description: `Grouping category for admin UI display.` }),
|
|
67412
|
+
MaxLength(100),
|
|
67413
|
+
__metadata("design:type", String)
|
|
67414
|
+
], MJInstanceConfiguration_.prototype, "Category", void 0);
|
|
67415
|
+
__decorate([
|
|
67416
|
+
Field({ description: `Human-readable display name for the setting.` }),
|
|
67417
|
+
MaxLength(200),
|
|
67418
|
+
__metadata("design:type", String)
|
|
67419
|
+
], MJInstanceConfiguration_.prototype, "DisplayName", void 0);
|
|
67420
|
+
__decorate([
|
|
67421
|
+
Field({ nullable: true, description: `Optional extended description or help text for the setting.` }),
|
|
67422
|
+
__metadata("design:type", String)
|
|
67423
|
+
], MJInstanceConfiguration_.prototype, "Description", void 0);
|
|
67424
|
+
__decorate([
|
|
67425
|
+
Field({ description: `Factory default value. Used when resetting to defaults.` }),
|
|
67426
|
+
__metadata("design:type", String)
|
|
67427
|
+
], MJInstanceConfiguration_.prototype, "DefaultValue", void 0);
|
|
67428
|
+
__decorate([
|
|
67429
|
+
Field(),
|
|
67430
|
+
__metadata("design:type", Date)
|
|
67431
|
+
], MJInstanceConfiguration_.prototype, "_mj__CreatedAt", void 0);
|
|
67432
|
+
__decorate([
|
|
67433
|
+
Field(),
|
|
67434
|
+
__metadata("design:type", Date)
|
|
67435
|
+
], MJInstanceConfiguration_.prototype, "_mj__UpdatedAt", void 0);
|
|
67436
|
+
MJInstanceConfiguration_ = __decorate([
|
|
67437
|
+
ObjectType({ description: `Instance-level feature toggles and configuration. Controls which features are enabled per MJ Explorer deployment.` })
|
|
67438
|
+
], MJInstanceConfiguration_);
|
|
67439
|
+
export { MJInstanceConfiguration_ };
|
|
67440
|
+
//****************************************************************************
|
|
67441
|
+
// INPUT TYPE for MJ: Instance Configurations
|
|
67442
|
+
//****************************************************************************
|
|
67443
|
+
let CreateMJInstanceConfigurationInput = class CreateMJInstanceConfigurationInput {
|
|
67444
|
+
};
|
|
67445
|
+
__decorate([
|
|
67446
|
+
Field({ nullable: true }),
|
|
67447
|
+
__metadata("design:type", String)
|
|
67448
|
+
], CreateMJInstanceConfigurationInput.prototype, "ID", void 0);
|
|
67449
|
+
__decorate([
|
|
67450
|
+
Field({ nullable: true }),
|
|
67451
|
+
__metadata("design:type", String)
|
|
67452
|
+
], CreateMJInstanceConfigurationInput.prototype, "FeatureKey", void 0);
|
|
67453
|
+
__decorate([
|
|
67454
|
+
Field({ nullable: true }),
|
|
67455
|
+
__metadata("design:type", String)
|
|
67456
|
+
], CreateMJInstanceConfigurationInput.prototype, "Value", void 0);
|
|
67457
|
+
__decorate([
|
|
67458
|
+
Field({ nullable: true }),
|
|
67459
|
+
__metadata("design:type", String)
|
|
67460
|
+
], CreateMJInstanceConfigurationInput.prototype, "ValueType", void 0);
|
|
67461
|
+
__decorate([
|
|
67462
|
+
Field({ nullable: true }),
|
|
67463
|
+
__metadata("design:type", String)
|
|
67464
|
+
], CreateMJInstanceConfigurationInput.prototype, "Category", void 0);
|
|
67465
|
+
__decorate([
|
|
67466
|
+
Field({ nullable: true }),
|
|
67467
|
+
__metadata("design:type", String)
|
|
67468
|
+
], CreateMJInstanceConfigurationInput.prototype, "DisplayName", void 0);
|
|
67469
|
+
__decorate([
|
|
67470
|
+
Field({ nullable: true }),
|
|
67471
|
+
__metadata("design:type", String)
|
|
67472
|
+
], CreateMJInstanceConfigurationInput.prototype, "Description", void 0);
|
|
67473
|
+
__decorate([
|
|
67474
|
+
Field({ nullable: true }),
|
|
67475
|
+
__metadata("design:type", String)
|
|
67476
|
+
], CreateMJInstanceConfigurationInput.prototype, "DefaultValue", void 0);
|
|
67477
|
+
CreateMJInstanceConfigurationInput = __decorate([
|
|
67478
|
+
InputType()
|
|
67479
|
+
], CreateMJInstanceConfigurationInput);
|
|
67480
|
+
export { CreateMJInstanceConfigurationInput };
|
|
67481
|
+
//****************************************************************************
|
|
67482
|
+
// INPUT TYPE for MJ: Instance Configurations
|
|
67483
|
+
//****************************************************************************
|
|
67484
|
+
let UpdateMJInstanceConfigurationInput = class UpdateMJInstanceConfigurationInput {
|
|
67485
|
+
};
|
|
67486
|
+
__decorate([
|
|
67487
|
+
Field(),
|
|
67488
|
+
__metadata("design:type", String)
|
|
67489
|
+
], UpdateMJInstanceConfigurationInput.prototype, "ID", void 0);
|
|
67490
|
+
__decorate([
|
|
67491
|
+
Field({ nullable: true }),
|
|
67492
|
+
__metadata("design:type", String)
|
|
67493
|
+
], UpdateMJInstanceConfigurationInput.prototype, "FeatureKey", void 0);
|
|
67494
|
+
__decorate([
|
|
67495
|
+
Field({ nullable: true }),
|
|
67496
|
+
__metadata("design:type", String)
|
|
67497
|
+
], UpdateMJInstanceConfigurationInput.prototype, "Value", void 0);
|
|
67498
|
+
__decorate([
|
|
67499
|
+
Field({ nullable: true }),
|
|
67500
|
+
__metadata("design:type", String)
|
|
67501
|
+
], UpdateMJInstanceConfigurationInput.prototype, "ValueType", void 0);
|
|
67502
|
+
__decorate([
|
|
67503
|
+
Field({ nullable: true }),
|
|
67504
|
+
__metadata("design:type", String)
|
|
67505
|
+
], UpdateMJInstanceConfigurationInput.prototype, "Category", void 0);
|
|
67506
|
+
__decorate([
|
|
67507
|
+
Field({ nullable: true }),
|
|
67508
|
+
__metadata("design:type", String)
|
|
67509
|
+
], UpdateMJInstanceConfigurationInput.prototype, "DisplayName", void 0);
|
|
67510
|
+
__decorate([
|
|
67511
|
+
Field({ nullable: true }),
|
|
67512
|
+
__metadata("design:type", String)
|
|
67513
|
+
], UpdateMJInstanceConfigurationInput.prototype, "Description", void 0);
|
|
67514
|
+
__decorate([
|
|
67515
|
+
Field({ nullable: true }),
|
|
67516
|
+
__metadata("design:type", String)
|
|
67517
|
+
], UpdateMJInstanceConfigurationInput.prototype, "DefaultValue", void 0);
|
|
67518
|
+
__decorate([
|
|
67519
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
67520
|
+
__metadata("design:type", Array)
|
|
67521
|
+
], UpdateMJInstanceConfigurationInput.prototype, "OldValues___", void 0);
|
|
67522
|
+
UpdateMJInstanceConfigurationInput = __decorate([
|
|
67523
|
+
InputType()
|
|
67524
|
+
], UpdateMJInstanceConfigurationInput);
|
|
67525
|
+
export { UpdateMJInstanceConfigurationInput };
|
|
67526
|
+
//****************************************************************************
|
|
67527
|
+
// RESOLVER for MJ: Instance Configurations
|
|
67528
|
+
//****************************************************************************
|
|
67529
|
+
let RunMJInstanceConfigurationViewResult = class RunMJInstanceConfigurationViewResult {
|
|
67530
|
+
};
|
|
67531
|
+
__decorate([
|
|
67532
|
+
Field(() => [MJInstanceConfiguration_]),
|
|
67533
|
+
__metadata("design:type", Array)
|
|
67534
|
+
], RunMJInstanceConfigurationViewResult.prototype, "Results", void 0);
|
|
67535
|
+
__decorate([
|
|
67536
|
+
Field(() => String, { nullable: true }),
|
|
67537
|
+
__metadata("design:type", String)
|
|
67538
|
+
], RunMJInstanceConfigurationViewResult.prototype, "UserViewRunID", void 0);
|
|
67539
|
+
__decorate([
|
|
67540
|
+
Field(() => Int, { nullable: true }),
|
|
67541
|
+
__metadata("design:type", Number)
|
|
67542
|
+
], RunMJInstanceConfigurationViewResult.prototype, "RowCount", void 0);
|
|
67543
|
+
__decorate([
|
|
67544
|
+
Field(() => Int, { nullable: true }),
|
|
67545
|
+
__metadata("design:type", Number)
|
|
67546
|
+
], RunMJInstanceConfigurationViewResult.prototype, "TotalRowCount", void 0);
|
|
67547
|
+
__decorate([
|
|
67548
|
+
Field(() => Int, { nullable: true }),
|
|
67549
|
+
__metadata("design:type", Number)
|
|
67550
|
+
], RunMJInstanceConfigurationViewResult.prototype, "ExecutionTime", void 0);
|
|
67551
|
+
__decorate([
|
|
67552
|
+
Field({ nullable: true }),
|
|
67553
|
+
__metadata("design:type", String)
|
|
67554
|
+
], RunMJInstanceConfigurationViewResult.prototype, "ErrorMessage", void 0);
|
|
67555
|
+
__decorate([
|
|
67556
|
+
Field(() => Boolean, { nullable: false }),
|
|
67557
|
+
__metadata("design:type", Boolean)
|
|
67558
|
+
], RunMJInstanceConfigurationViewResult.prototype, "Success", void 0);
|
|
67559
|
+
RunMJInstanceConfigurationViewResult = __decorate([
|
|
67560
|
+
ObjectType()
|
|
67561
|
+
], RunMJInstanceConfigurationViewResult);
|
|
67562
|
+
export { RunMJInstanceConfigurationViewResult };
|
|
67563
|
+
let MJInstanceConfigurationResolver = class MJInstanceConfigurationResolver extends ResolverBase {
|
|
67564
|
+
async RunMJInstanceConfigurationViewByID(input, { providers, userPayload }, pubSub) {
|
|
67565
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67566
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
67567
|
+
}
|
|
67568
|
+
async RunMJInstanceConfigurationViewByName(input, { providers, userPayload }, pubSub) {
|
|
67569
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67570
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
67571
|
+
}
|
|
67572
|
+
async RunMJInstanceConfigurationDynamicView(input, { providers, userPayload }, pubSub) {
|
|
67573
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67574
|
+
input.EntityName = 'MJ: Instance Configurations';
|
|
67575
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
67576
|
+
}
|
|
67577
|
+
async MJInstanceConfiguration(ID, { userPayload, providers }, pubSub) {
|
|
67578
|
+
this.CheckUserReadPermissions('MJ: Instance Configurations', userPayload);
|
|
67579
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
67580
|
+
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');
|
|
67581
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
67582
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Instance Configurations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
67583
|
+
return result;
|
|
67584
|
+
}
|
|
67585
|
+
async CreateMJInstanceConfiguration(input, { providers, userPayload }, pubSub) {
|
|
67586
|
+
const provider = GetReadWriteProvider(providers);
|
|
67587
|
+
return this.CreateRecord('MJ: Instance Configurations', input, provider, userPayload, pubSub);
|
|
67588
|
+
}
|
|
67589
|
+
async UpdateMJInstanceConfiguration(input, { providers, userPayload }, pubSub) {
|
|
67590
|
+
const provider = GetReadWriteProvider(providers);
|
|
67591
|
+
return this.UpdateRecord('MJ: Instance Configurations', input, provider, userPayload, pubSub);
|
|
67592
|
+
}
|
|
67593
|
+
async DeleteMJInstanceConfiguration(ID, options, { providers, userPayload }, pubSub) {
|
|
67594
|
+
const provider = GetReadWriteProvider(providers);
|
|
67595
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
67596
|
+
return this.DeleteRecord('MJ: Instance Configurations', key, options, provider, userPayload, pubSub);
|
|
67597
|
+
}
|
|
67598
|
+
};
|
|
67599
|
+
__decorate([
|
|
67600
|
+
Query(() => RunMJInstanceConfigurationViewResult),
|
|
67601
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
67602
|
+
__param(1, Ctx()),
|
|
67603
|
+
__param(2, PubSub()),
|
|
67604
|
+
__metadata("design:type", Function),
|
|
67605
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
67606
|
+
__metadata("design:returntype", Promise)
|
|
67607
|
+
], MJInstanceConfigurationResolver.prototype, "RunMJInstanceConfigurationViewByID", null);
|
|
67608
|
+
__decorate([
|
|
67609
|
+
Query(() => RunMJInstanceConfigurationViewResult),
|
|
67610
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
67611
|
+
__param(1, Ctx()),
|
|
67612
|
+
__param(2, PubSub()),
|
|
67613
|
+
__metadata("design:type", Function),
|
|
67614
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
67615
|
+
__metadata("design:returntype", Promise)
|
|
67616
|
+
], MJInstanceConfigurationResolver.prototype, "RunMJInstanceConfigurationViewByName", null);
|
|
67617
|
+
__decorate([
|
|
67618
|
+
Query(() => RunMJInstanceConfigurationViewResult),
|
|
67619
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
67620
|
+
__param(1, Ctx()),
|
|
67621
|
+
__param(2, PubSub()),
|
|
67622
|
+
__metadata("design:type", Function),
|
|
67623
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
67624
|
+
__metadata("design:returntype", Promise)
|
|
67625
|
+
], MJInstanceConfigurationResolver.prototype, "RunMJInstanceConfigurationDynamicView", null);
|
|
67626
|
+
__decorate([
|
|
67627
|
+
Query(() => MJInstanceConfiguration_, { nullable: true }),
|
|
67628
|
+
__param(0, Arg('ID', () => String)),
|
|
67629
|
+
__param(1, Ctx()),
|
|
67630
|
+
__param(2, PubSub()),
|
|
67631
|
+
__metadata("design:type", Function),
|
|
67632
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
67633
|
+
__metadata("design:returntype", Promise)
|
|
67634
|
+
], MJInstanceConfigurationResolver.prototype, "MJInstanceConfiguration", null);
|
|
67635
|
+
__decorate([
|
|
67636
|
+
Mutation(() => MJInstanceConfiguration_),
|
|
67637
|
+
__param(0, Arg('input', () => CreateMJInstanceConfigurationInput)),
|
|
67638
|
+
__param(1, Ctx()),
|
|
67639
|
+
__param(2, PubSub()),
|
|
67640
|
+
__metadata("design:type", Function),
|
|
67641
|
+
__metadata("design:paramtypes", [CreateMJInstanceConfigurationInput, Object, PubSubEngine]),
|
|
67642
|
+
__metadata("design:returntype", Promise)
|
|
67643
|
+
], MJInstanceConfigurationResolver.prototype, "CreateMJInstanceConfiguration", null);
|
|
67644
|
+
__decorate([
|
|
67645
|
+
Mutation(() => MJInstanceConfiguration_),
|
|
67646
|
+
__param(0, Arg('input', () => UpdateMJInstanceConfigurationInput)),
|
|
67647
|
+
__param(1, Ctx()),
|
|
67648
|
+
__param(2, PubSub()),
|
|
67649
|
+
__metadata("design:type", Function),
|
|
67650
|
+
__metadata("design:paramtypes", [UpdateMJInstanceConfigurationInput, Object, PubSubEngine]),
|
|
67651
|
+
__metadata("design:returntype", Promise)
|
|
67652
|
+
], MJInstanceConfigurationResolver.prototype, "UpdateMJInstanceConfiguration", null);
|
|
67653
|
+
__decorate([
|
|
67654
|
+
Mutation(() => MJInstanceConfiguration_),
|
|
67655
|
+
__param(0, Arg('ID', () => String)),
|
|
67656
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
67657
|
+
__param(2, Ctx()),
|
|
67658
|
+
__param(3, PubSub()),
|
|
67659
|
+
__metadata("design:type", Function),
|
|
67660
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
67661
|
+
__metadata("design:returntype", Promise)
|
|
67662
|
+
], MJInstanceConfigurationResolver.prototype, "DeleteMJInstanceConfiguration", null);
|
|
67663
|
+
MJInstanceConfigurationResolver = __decorate([
|
|
67664
|
+
Resolver(MJInstanceConfiguration_)
|
|
67665
|
+
], MJInstanceConfigurationResolver);
|
|
67666
|
+
export { MJInstanceConfigurationResolver };
|
|
67667
|
+
//****************************************************************************
|
|
66070
67668
|
// ENTITY CLASS for MJ: Integration Object Fields
|
|
66071
67669
|
//****************************************************************************
|
|
66072
67670
|
let MJIntegrationObjectField_ = class MJIntegrationObjectField_ {
|
|
@@ -82057,6 +83655,391 @@ MJRecordChangeResolver = __decorate([
|
|
|
82057
83655
|
], MJRecordChangeResolver);
|
|
82058
83656
|
export { MJRecordChangeResolver };
|
|
82059
83657
|
//****************************************************************************
|
|
83658
|
+
// ENTITY CLASS for MJ: Record Geo Codes
|
|
83659
|
+
//****************************************************************************
|
|
83660
|
+
let MJRecordGeoCode_ = class MJRecordGeoCode_ {
|
|
83661
|
+
};
|
|
83662
|
+
__decorate([
|
|
83663
|
+
Field(),
|
|
83664
|
+
MaxLength(36),
|
|
83665
|
+
__metadata("design:type", String)
|
|
83666
|
+
], MJRecordGeoCode_.prototype, "ID", void 0);
|
|
83667
|
+
__decorate([
|
|
83668
|
+
Field({ description: `Foreign key to Entity. Identifies which entity this geocode belongs to.` }),
|
|
83669
|
+
MaxLength(36),
|
|
83670
|
+
__metadata("design:type", String)
|
|
83671
|
+
], MJRecordGeoCode_.prototype, "EntityID", void 0);
|
|
83672
|
+
__decorate([
|
|
83673
|
+
Field({ description: `MJ composite primary key format string identifying the source record (e.g., "ID|<uuid>"). Max 450 chars for SQL Server index support.` }),
|
|
83674
|
+
MaxLength(450),
|
|
83675
|
+
__metadata("design:type", String)
|
|
83676
|
+
], MJRecordGeoCode_.prototype, "RecordID", void 0);
|
|
83677
|
+
__decorate([
|
|
83678
|
+
Field({ description: `Discriminator for multi-location entities. Default "Primary" for single-address entities. Multi-address examples: "Home", "Business", "Mailing", "PO Box".` }),
|
|
83679
|
+
MaxLength(50),
|
|
83680
|
+
__metadata("design:type", String)
|
|
83681
|
+
], MJRecordGeoCode_.prototype, "LocationType", void 0);
|
|
83682
|
+
__decorate([
|
|
83683
|
+
Field(() => Float, { nullable: true, description: `Geocoded latitude coordinate. NULL when Status is "pending" or "failed".` }),
|
|
83684
|
+
__metadata("design:type", Number)
|
|
83685
|
+
], MJRecordGeoCode_.prototype, "Latitude", void 0);
|
|
83686
|
+
__decorate([
|
|
83687
|
+
Field(() => Float, { nullable: true, description: `Geocoded longitude coordinate. NULL when Status is "pending" or "failed".` }),
|
|
83688
|
+
__metadata("design:type", Number)
|
|
83689
|
+
], MJRecordGeoCode_.prototype, "Longitude", void 0);
|
|
83690
|
+
__decorate([
|
|
83691
|
+
Field({ nullable: true, description: `Precision level of the geocoded result: exact (street address), postal_code, city, county, state_province, or country.` }),
|
|
83692
|
+
MaxLength(20),
|
|
83693
|
+
__metadata("design:type", String)
|
|
83694
|
+
], MJRecordGeoCode_.prototype, "Precision", void 0);
|
|
83695
|
+
__decorate([
|
|
83696
|
+
Field({ nullable: true, description: `Optional FK to Country reference table. Populated alongside lat/lng to enable choropleth grouping without reverse-geocoding at render time.` }),
|
|
83697
|
+
MaxLength(36),
|
|
83698
|
+
__metadata("design:type", String)
|
|
83699
|
+
], MJRecordGeoCode_.prototype, "CountryID", void 0);
|
|
83700
|
+
__decorate([
|
|
83701
|
+
Field({ nullable: true, description: `Optional FK to StateProvince reference table. Populated alongside lat/lng to enable state-level choropleth grouping.` }),
|
|
83702
|
+
MaxLength(36),
|
|
83703
|
+
__metadata("design:type", String)
|
|
83704
|
+
], MJRecordGeoCode_.prototype, "StateProvinceID", void 0);
|
|
83705
|
+
__decorate([
|
|
83706
|
+
Field({ description: `Current geocoding status: "pending" (awaiting geocode), "success" (geocoded), or "failed" (geocoding error). Used by scheduled job for retry logic.` }),
|
|
83707
|
+
MaxLength(20),
|
|
83708
|
+
__metadata("design:type", String)
|
|
83709
|
+
], MJRecordGeoCode_.prototype, "Status", void 0);
|
|
83710
|
+
__decorate([
|
|
83711
|
+
Field({ nullable: true, description: `Error details when Status is "failed". Captures API error messages, rate limit info, etc. for debugging.` }),
|
|
83712
|
+
__metadata("design:type", String)
|
|
83713
|
+
], MJRecordGeoCode_.prototype, "ErrorMessage", void 0);
|
|
83714
|
+
__decorate([
|
|
83715
|
+
Field(() => Int, { description: `Number of geocoding attempts. Used for exponential backoff in the scheduled retry job. Stops retrying at configurable maxRetries (default 3).` }),
|
|
83716
|
+
__metadata("design:type", Number)
|
|
83717
|
+
], MJRecordGeoCode_.prototype, "RetryCount", void 0);
|
|
83718
|
+
__decorate([
|
|
83719
|
+
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, ...)).` }),
|
|
83720
|
+
MaxLength(64),
|
|
83721
|
+
__metadata("design:type", String)
|
|
83722
|
+
], MJRecordGeoCode_.prototype, "SourceFieldHash", void 0);
|
|
83723
|
+
__decorate([
|
|
83724
|
+
Field({ nullable: true, description: `Timestamp of when geocoding was last attempted (success or failure).` }),
|
|
83725
|
+
__metadata("design:type", Date)
|
|
83726
|
+
], MJRecordGeoCode_.prototype, "GeocodedAt", void 0);
|
|
83727
|
+
__decorate([
|
|
83728
|
+
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).` }),
|
|
83729
|
+
MaxLength(30),
|
|
83730
|
+
__metadata("design:type", String)
|
|
83731
|
+
], MJRecordGeoCode_.prototype, "GeocodingSource", void 0);
|
|
83732
|
+
__decorate([
|
|
83733
|
+
Field(),
|
|
83734
|
+
__metadata("design:type", Date)
|
|
83735
|
+
], MJRecordGeoCode_.prototype, "_mj__CreatedAt", void 0);
|
|
83736
|
+
__decorate([
|
|
83737
|
+
Field(),
|
|
83738
|
+
__metadata("design:type", Date)
|
|
83739
|
+
], MJRecordGeoCode_.prototype, "_mj__UpdatedAt", void 0);
|
|
83740
|
+
__decorate([
|
|
83741
|
+
Field(),
|
|
83742
|
+
MaxLength(255),
|
|
83743
|
+
__metadata("design:type", String)
|
|
83744
|
+
], MJRecordGeoCode_.prototype, "Entity", void 0);
|
|
83745
|
+
__decorate([
|
|
83746
|
+
Field({ nullable: true }),
|
|
83747
|
+
MaxLength(200),
|
|
83748
|
+
__metadata("design:type", String)
|
|
83749
|
+
], MJRecordGeoCode_.prototype, "Country", void 0);
|
|
83750
|
+
__decorate([
|
|
83751
|
+
Field({ nullable: true }),
|
|
83752
|
+
MaxLength(200),
|
|
83753
|
+
__metadata("design:type", String)
|
|
83754
|
+
], MJRecordGeoCode_.prototype, "StateProvince", void 0);
|
|
83755
|
+
MJRecordGeoCode_ = __decorate([
|
|
83756
|
+
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.` })
|
|
83757
|
+
], MJRecordGeoCode_);
|
|
83758
|
+
export { MJRecordGeoCode_ };
|
|
83759
|
+
//****************************************************************************
|
|
83760
|
+
// INPUT TYPE for MJ: Record Geo Codes
|
|
83761
|
+
//****************************************************************************
|
|
83762
|
+
let CreateMJRecordGeoCodeInput = class CreateMJRecordGeoCodeInput {
|
|
83763
|
+
};
|
|
83764
|
+
__decorate([
|
|
83765
|
+
Field({ nullable: true }),
|
|
83766
|
+
__metadata("design:type", String)
|
|
83767
|
+
], CreateMJRecordGeoCodeInput.prototype, "ID", void 0);
|
|
83768
|
+
__decorate([
|
|
83769
|
+
Field({ nullable: true }),
|
|
83770
|
+
__metadata("design:type", String)
|
|
83771
|
+
], CreateMJRecordGeoCodeInput.prototype, "EntityID", void 0);
|
|
83772
|
+
__decorate([
|
|
83773
|
+
Field({ nullable: true }),
|
|
83774
|
+
__metadata("design:type", String)
|
|
83775
|
+
], CreateMJRecordGeoCodeInput.prototype, "RecordID", void 0);
|
|
83776
|
+
__decorate([
|
|
83777
|
+
Field({ nullable: true }),
|
|
83778
|
+
__metadata("design:type", String)
|
|
83779
|
+
], CreateMJRecordGeoCodeInput.prototype, "LocationType", void 0);
|
|
83780
|
+
__decorate([
|
|
83781
|
+
Field(() => Float, { nullable: true }),
|
|
83782
|
+
__metadata("design:type", Number)
|
|
83783
|
+
], CreateMJRecordGeoCodeInput.prototype, "Latitude", void 0);
|
|
83784
|
+
__decorate([
|
|
83785
|
+
Field(() => Float, { nullable: true }),
|
|
83786
|
+
__metadata("design:type", Number)
|
|
83787
|
+
], CreateMJRecordGeoCodeInput.prototype, "Longitude", void 0);
|
|
83788
|
+
__decorate([
|
|
83789
|
+
Field({ nullable: true }),
|
|
83790
|
+
__metadata("design:type", String)
|
|
83791
|
+
], CreateMJRecordGeoCodeInput.prototype, "Precision", void 0);
|
|
83792
|
+
__decorate([
|
|
83793
|
+
Field({ nullable: true }),
|
|
83794
|
+
__metadata("design:type", String)
|
|
83795
|
+
], CreateMJRecordGeoCodeInput.prototype, "CountryID", void 0);
|
|
83796
|
+
__decorate([
|
|
83797
|
+
Field({ nullable: true }),
|
|
83798
|
+
__metadata("design:type", String)
|
|
83799
|
+
], CreateMJRecordGeoCodeInput.prototype, "StateProvinceID", void 0);
|
|
83800
|
+
__decorate([
|
|
83801
|
+
Field({ nullable: true }),
|
|
83802
|
+
__metadata("design:type", String)
|
|
83803
|
+
], CreateMJRecordGeoCodeInput.prototype, "Status", void 0);
|
|
83804
|
+
__decorate([
|
|
83805
|
+
Field({ nullable: true }),
|
|
83806
|
+
__metadata("design:type", String)
|
|
83807
|
+
], CreateMJRecordGeoCodeInput.prototype, "ErrorMessage", void 0);
|
|
83808
|
+
__decorate([
|
|
83809
|
+
Field(() => Int, { nullable: true }),
|
|
83810
|
+
__metadata("design:type", Number)
|
|
83811
|
+
], CreateMJRecordGeoCodeInput.prototype, "RetryCount", void 0);
|
|
83812
|
+
__decorate([
|
|
83813
|
+
Field({ nullable: true }),
|
|
83814
|
+
__metadata("design:type", String)
|
|
83815
|
+
], CreateMJRecordGeoCodeInput.prototype, "SourceFieldHash", void 0);
|
|
83816
|
+
__decorate([
|
|
83817
|
+
Field({ nullable: true }),
|
|
83818
|
+
__metadata("design:type", Date)
|
|
83819
|
+
], CreateMJRecordGeoCodeInput.prototype, "GeocodedAt", void 0);
|
|
83820
|
+
__decorate([
|
|
83821
|
+
Field({ nullable: true }),
|
|
83822
|
+
__metadata("design:type", String)
|
|
83823
|
+
], CreateMJRecordGeoCodeInput.prototype, "GeocodingSource", void 0);
|
|
83824
|
+
CreateMJRecordGeoCodeInput = __decorate([
|
|
83825
|
+
InputType()
|
|
83826
|
+
], CreateMJRecordGeoCodeInput);
|
|
83827
|
+
export { CreateMJRecordGeoCodeInput };
|
|
83828
|
+
//****************************************************************************
|
|
83829
|
+
// INPUT TYPE for MJ: Record Geo Codes
|
|
83830
|
+
//****************************************************************************
|
|
83831
|
+
let UpdateMJRecordGeoCodeInput = class UpdateMJRecordGeoCodeInput {
|
|
83832
|
+
};
|
|
83833
|
+
__decorate([
|
|
83834
|
+
Field(),
|
|
83835
|
+
__metadata("design:type", String)
|
|
83836
|
+
], UpdateMJRecordGeoCodeInput.prototype, "ID", void 0);
|
|
83837
|
+
__decorate([
|
|
83838
|
+
Field({ nullable: true }),
|
|
83839
|
+
__metadata("design:type", String)
|
|
83840
|
+
], UpdateMJRecordGeoCodeInput.prototype, "EntityID", void 0);
|
|
83841
|
+
__decorate([
|
|
83842
|
+
Field({ nullable: true }),
|
|
83843
|
+
__metadata("design:type", String)
|
|
83844
|
+
], UpdateMJRecordGeoCodeInput.prototype, "RecordID", void 0);
|
|
83845
|
+
__decorate([
|
|
83846
|
+
Field({ nullable: true }),
|
|
83847
|
+
__metadata("design:type", String)
|
|
83848
|
+
], UpdateMJRecordGeoCodeInput.prototype, "LocationType", void 0);
|
|
83849
|
+
__decorate([
|
|
83850
|
+
Field(() => Float, { nullable: true }),
|
|
83851
|
+
__metadata("design:type", Number)
|
|
83852
|
+
], UpdateMJRecordGeoCodeInput.prototype, "Latitude", void 0);
|
|
83853
|
+
__decorate([
|
|
83854
|
+
Field(() => Float, { nullable: true }),
|
|
83855
|
+
__metadata("design:type", Number)
|
|
83856
|
+
], UpdateMJRecordGeoCodeInput.prototype, "Longitude", void 0);
|
|
83857
|
+
__decorate([
|
|
83858
|
+
Field({ nullable: true }),
|
|
83859
|
+
__metadata("design:type", String)
|
|
83860
|
+
], UpdateMJRecordGeoCodeInput.prototype, "Precision", void 0);
|
|
83861
|
+
__decorate([
|
|
83862
|
+
Field({ nullable: true }),
|
|
83863
|
+
__metadata("design:type", String)
|
|
83864
|
+
], UpdateMJRecordGeoCodeInput.prototype, "CountryID", void 0);
|
|
83865
|
+
__decorate([
|
|
83866
|
+
Field({ nullable: true }),
|
|
83867
|
+
__metadata("design:type", String)
|
|
83868
|
+
], UpdateMJRecordGeoCodeInput.prototype, "StateProvinceID", void 0);
|
|
83869
|
+
__decorate([
|
|
83870
|
+
Field({ nullable: true }),
|
|
83871
|
+
__metadata("design:type", String)
|
|
83872
|
+
], UpdateMJRecordGeoCodeInput.prototype, "Status", void 0);
|
|
83873
|
+
__decorate([
|
|
83874
|
+
Field({ nullable: true }),
|
|
83875
|
+
__metadata("design:type", String)
|
|
83876
|
+
], UpdateMJRecordGeoCodeInput.prototype, "ErrorMessage", void 0);
|
|
83877
|
+
__decorate([
|
|
83878
|
+
Field(() => Int, { nullable: true }),
|
|
83879
|
+
__metadata("design:type", Number)
|
|
83880
|
+
], UpdateMJRecordGeoCodeInput.prototype, "RetryCount", void 0);
|
|
83881
|
+
__decorate([
|
|
83882
|
+
Field({ nullable: true }),
|
|
83883
|
+
__metadata("design:type", String)
|
|
83884
|
+
], UpdateMJRecordGeoCodeInput.prototype, "SourceFieldHash", void 0);
|
|
83885
|
+
__decorate([
|
|
83886
|
+
Field({ nullable: true }),
|
|
83887
|
+
__metadata("design:type", Date)
|
|
83888
|
+
], UpdateMJRecordGeoCodeInput.prototype, "GeocodedAt", void 0);
|
|
83889
|
+
__decorate([
|
|
83890
|
+
Field({ nullable: true }),
|
|
83891
|
+
__metadata("design:type", String)
|
|
83892
|
+
], UpdateMJRecordGeoCodeInput.prototype, "GeocodingSource", void 0);
|
|
83893
|
+
__decorate([
|
|
83894
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
83895
|
+
__metadata("design:type", Array)
|
|
83896
|
+
], UpdateMJRecordGeoCodeInput.prototype, "OldValues___", void 0);
|
|
83897
|
+
UpdateMJRecordGeoCodeInput = __decorate([
|
|
83898
|
+
InputType()
|
|
83899
|
+
], UpdateMJRecordGeoCodeInput);
|
|
83900
|
+
export { UpdateMJRecordGeoCodeInput };
|
|
83901
|
+
//****************************************************************************
|
|
83902
|
+
// RESOLVER for MJ: Record Geo Codes
|
|
83903
|
+
//****************************************************************************
|
|
83904
|
+
let RunMJRecordGeoCodeViewResult = class RunMJRecordGeoCodeViewResult {
|
|
83905
|
+
};
|
|
83906
|
+
__decorate([
|
|
83907
|
+
Field(() => [MJRecordGeoCode_]),
|
|
83908
|
+
__metadata("design:type", Array)
|
|
83909
|
+
], RunMJRecordGeoCodeViewResult.prototype, "Results", void 0);
|
|
83910
|
+
__decorate([
|
|
83911
|
+
Field(() => String, { nullable: true }),
|
|
83912
|
+
__metadata("design:type", String)
|
|
83913
|
+
], RunMJRecordGeoCodeViewResult.prototype, "UserViewRunID", void 0);
|
|
83914
|
+
__decorate([
|
|
83915
|
+
Field(() => Int, { nullable: true }),
|
|
83916
|
+
__metadata("design:type", Number)
|
|
83917
|
+
], RunMJRecordGeoCodeViewResult.prototype, "RowCount", void 0);
|
|
83918
|
+
__decorate([
|
|
83919
|
+
Field(() => Int, { nullable: true }),
|
|
83920
|
+
__metadata("design:type", Number)
|
|
83921
|
+
], RunMJRecordGeoCodeViewResult.prototype, "TotalRowCount", void 0);
|
|
83922
|
+
__decorate([
|
|
83923
|
+
Field(() => Int, { nullable: true }),
|
|
83924
|
+
__metadata("design:type", Number)
|
|
83925
|
+
], RunMJRecordGeoCodeViewResult.prototype, "ExecutionTime", void 0);
|
|
83926
|
+
__decorate([
|
|
83927
|
+
Field({ nullable: true }),
|
|
83928
|
+
__metadata("design:type", String)
|
|
83929
|
+
], RunMJRecordGeoCodeViewResult.prototype, "ErrorMessage", void 0);
|
|
83930
|
+
__decorate([
|
|
83931
|
+
Field(() => Boolean, { nullable: false }),
|
|
83932
|
+
__metadata("design:type", Boolean)
|
|
83933
|
+
], RunMJRecordGeoCodeViewResult.prototype, "Success", void 0);
|
|
83934
|
+
RunMJRecordGeoCodeViewResult = __decorate([
|
|
83935
|
+
ObjectType()
|
|
83936
|
+
], RunMJRecordGeoCodeViewResult);
|
|
83937
|
+
export { RunMJRecordGeoCodeViewResult };
|
|
83938
|
+
let MJRecordGeoCodeResolver = class MJRecordGeoCodeResolver extends ResolverBase {
|
|
83939
|
+
async RunMJRecordGeoCodeViewByID(input, { providers, userPayload }, pubSub) {
|
|
83940
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
83941
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
83942
|
+
}
|
|
83943
|
+
async RunMJRecordGeoCodeViewByName(input, { providers, userPayload }, pubSub) {
|
|
83944
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
83945
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
83946
|
+
}
|
|
83947
|
+
async RunMJRecordGeoCodeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
83948
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
83949
|
+
input.EntityName = 'MJ: Record Geo Codes';
|
|
83950
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
83951
|
+
}
|
|
83952
|
+
async MJRecordGeoCode(ID, { userPayload, providers }, pubSub) {
|
|
83953
|
+
this.CheckUserReadPermissions('MJ: Record Geo Codes', userPayload);
|
|
83954
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
83955
|
+
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');
|
|
83956
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
83957
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Record Geo Codes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
83958
|
+
return result;
|
|
83959
|
+
}
|
|
83960
|
+
async CreateMJRecordGeoCode(input, { providers, userPayload }, pubSub) {
|
|
83961
|
+
const provider = GetReadWriteProvider(providers);
|
|
83962
|
+
return this.CreateRecord('MJ: Record Geo Codes', input, provider, userPayload, pubSub);
|
|
83963
|
+
}
|
|
83964
|
+
async UpdateMJRecordGeoCode(input, { providers, userPayload }, pubSub) {
|
|
83965
|
+
const provider = GetReadWriteProvider(providers);
|
|
83966
|
+
return this.UpdateRecord('MJ: Record Geo Codes', input, provider, userPayload, pubSub);
|
|
83967
|
+
}
|
|
83968
|
+
async DeleteMJRecordGeoCode(ID, options, { providers, userPayload }, pubSub) {
|
|
83969
|
+
const provider = GetReadWriteProvider(providers);
|
|
83970
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
83971
|
+
return this.DeleteRecord('MJ: Record Geo Codes', key, options, provider, userPayload, pubSub);
|
|
83972
|
+
}
|
|
83973
|
+
};
|
|
83974
|
+
__decorate([
|
|
83975
|
+
Query(() => RunMJRecordGeoCodeViewResult),
|
|
83976
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
83977
|
+
__param(1, Ctx()),
|
|
83978
|
+
__param(2, PubSub()),
|
|
83979
|
+
__metadata("design:type", Function),
|
|
83980
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
83981
|
+
__metadata("design:returntype", Promise)
|
|
83982
|
+
], MJRecordGeoCodeResolver.prototype, "RunMJRecordGeoCodeViewByID", null);
|
|
83983
|
+
__decorate([
|
|
83984
|
+
Query(() => RunMJRecordGeoCodeViewResult),
|
|
83985
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
83986
|
+
__param(1, Ctx()),
|
|
83987
|
+
__param(2, PubSub()),
|
|
83988
|
+
__metadata("design:type", Function),
|
|
83989
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
83990
|
+
__metadata("design:returntype", Promise)
|
|
83991
|
+
], MJRecordGeoCodeResolver.prototype, "RunMJRecordGeoCodeViewByName", null);
|
|
83992
|
+
__decorate([
|
|
83993
|
+
Query(() => RunMJRecordGeoCodeViewResult),
|
|
83994
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
83995
|
+
__param(1, Ctx()),
|
|
83996
|
+
__param(2, PubSub()),
|
|
83997
|
+
__metadata("design:type", Function),
|
|
83998
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
83999
|
+
__metadata("design:returntype", Promise)
|
|
84000
|
+
], MJRecordGeoCodeResolver.prototype, "RunMJRecordGeoCodeDynamicView", null);
|
|
84001
|
+
__decorate([
|
|
84002
|
+
Query(() => MJRecordGeoCode_, { nullable: true }),
|
|
84003
|
+
__param(0, Arg('ID', () => String)),
|
|
84004
|
+
__param(1, Ctx()),
|
|
84005
|
+
__param(2, PubSub()),
|
|
84006
|
+
__metadata("design:type", Function),
|
|
84007
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
84008
|
+
__metadata("design:returntype", Promise)
|
|
84009
|
+
], MJRecordGeoCodeResolver.prototype, "MJRecordGeoCode", null);
|
|
84010
|
+
__decorate([
|
|
84011
|
+
Mutation(() => MJRecordGeoCode_),
|
|
84012
|
+
__param(0, Arg('input', () => CreateMJRecordGeoCodeInput)),
|
|
84013
|
+
__param(1, Ctx()),
|
|
84014
|
+
__param(2, PubSub()),
|
|
84015
|
+
__metadata("design:type", Function),
|
|
84016
|
+
__metadata("design:paramtypes", [CreateMJRecordGeoCodeInput, Object, PubSubEngine]),
|
|
84017
|
+
__metadata("design:returntype", Promise)
|
|
84018
|
+
], MJRecordGeoCodeResolver.prototype, "CreateMJRecordGeoCode", null);
|
|
84019
|
+
__decorate([
|
|
84020
|
+
Mutation(() => MJRecordGeoCode_),
|
|
84021
|
+
__param(0, Arg('input', () => UpdateMJRecordGeoCodeInput)),
|
|
84022
|
+
__param(1, Ctx()),
|
|
84023
|
+
__param(2, PubSub()),
|
|
84024
|
+
__metadata("design:type", Function),
|
|
84025
|
+
__metadata("design:paramtypes", [UpdateMJRecordGeoCodeInput, Object, PubSubEngine]),
|
|
84026
|
+
__metadata("design:returntype", Promise)
|
|
84027
|
+
], MJRecordGeoCodeResolver.prototype, "UpdateMJRecordGeoCode", null);
|
|
84028
|
+
__decorate([
|
|
84029
|
+
Mutation(() => MJRecordGeoCode_),
|
|
84030
|
+
__param(0, Arg('ID', () => String)),
|
|
84031
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
84032
|
+
__param(2, Ctx()),
|
|
84033
|
+
__param(3, PubSub()),
|
|
84034
|
+
__metadata("design:type", Function),
|
|
84035
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
84036
|
+
__metadata("design:returntype", Promise)
|
|
84037
|
+
], MJRecordGeoCodeResolver.prototype, "DeleteMJRecordGeoCode", null);
|
|
84038
|
+
MJRecordGeoCodeResolver = __decorate([
|
|
84039
|
+
Resolver(MJRecordGeoCode_)
|
|
84040
|
+
], MJRecordGeoCodeResolver);
|
|
84041
|
+
export { MJRecordGeoCodeResolver };
|
|
84042
|
+
//****************************************************************************
|
|
82060
84043
|
// ENTITY CLASS for MJ: Record Links
|
|
82061
84044
|
//****************************************************************************
|
|
82062
84045
|
let MJRecordLink_ = class MJRecordLink_ {
|
|
@@ -85571,6 +87554,14 @@ __decorate([
|
|
|
85571
87554
|
Field(() => [MJMCPServerConnectionPermission_]),
|
|
85572
87555
|
__metadata("design:type", Array)
|
|
85573
87556
|
], MJRole_.prototype, "MJMCPServerConnectionPermissions_RoleIDArray", void 0);
|
|
87557
|
+
__decorate([
|
|
87558
|
+
Field(() => [MJFileStorageAccountPermission_]),
|
|
87559
|
+
__metadata("design:type", Array)
|
|
87560
|
+
], MJRole_.prototype, "MJFileStorageAccountPermissions_RoleIDArray", void 0);
|
|
87561
|
+
__decorate([
|
|
87562
|
+
Field(() => [MJApplicationRole_]),
|
|
87563
|
+
__metadata("design:type", Array)
|
|
87564
|
+
], MJRole_.prototype, "MJApplicationRoles_RoleIDArray", void 0);
|
|
85574
87565
|
__decorate([
|
|
85575
87566
|
Field(() => [MJAIAgentPermission_]),
|
|
85576
87567
|
__metadata("design:type", Array)
|
|
@@ -85764,6 +87755,22 @@ let MJRoleResolver = class MJRoleResolver extends ResolverBase {
|
|
|
85764
87755
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Connection Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
85765
87756
|
return result;
|
|
85766
87757
|
}
|
|
87758
|
+
async MJFileStorageAccountPermissions_RoleIDArray(mjrole_, { userPayload, providers }, pubSub) {
|
|
87759
|
+
this.CheckUserReadPermissions('MJ: File Storage Account Permissions', userPayload);
|
|
87760
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
87761
|
+
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');
|
|
87762
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
87763
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: File Storage Account Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
87764
|
+
return result;
|
|
87765
|
+
}
|
|
87766
|
+
async MJApplicationRoles_RoleIDArray(mjrole_, { userPayload, providers }, pubSub) {
|
|
87767
|
+
this.CheckUserReadPermissions('MJ: Application Roles', userPayload);
|
|
87768
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
87769
|
+
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');
|
|
87770
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
87771
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Application Roles', rows, this.GetUserFromPayload(userPayload));
|
|
87772
|
+
return result;
|
|
87773
|
+
}
|
|
85767
87774
|
async MJAIAgentPermissions_RoleIDArray(mjrole_, { userPayload, providers }, pubSub) {
|
|
85768
87775
|
this.CheckUserReadPermissions('MJ: AI Agent Permissions', userPayload);
|
|
85769
87776
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -85893,6 +87900,24 @@ __decorate([
|
|
|
85893
87900
|
__metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
|
|
85894
87901
|
__metadata("design:returntype", Promise)
|
|
85895
87902
|
], MJRoleResolver.prototype, "MJMCPServerConnectionPermissions_RoleIDArray", null);
|
|
87903
|
+
__decorate([
|
|
87904
|
+
FieldResolver(() => [MJFileStorageAccountPermission_]),
|
|
87905
|
+
__param(0, Root()),
|
|
87906
|
+
__param(1, Ctx()),
|
|
87907
|
+
__param(2, PubSub()),
|
|
87908
|
+
__metadata("design:type", Function),
|
|
87909
|
+
__metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
|
|
87910
|
+
__metadata("design:returntype", Promise)
|
|
87911
|
+
], MJRoleResolver.prototype, "MJFileStorageAccountPermissions_RoleIDArray", null);
|
|
87912
|
+
__decorate([
|
|
87913
|
+
FieldResolver(() => [MJApplicationRole_]),
|
|
87914
|
+
__param(0, Root()),
|
|
87915
|
+
__param(1, Ctx()),
|
|
87916
|
+
__param(2, PubSub()),
|
|
87917
|
+
__metadata("design:type", Function),
|
|
87918
|
+
__metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
|
|
87919
|
+
__metadata("design:returntype", Promise)
|
|
87920
|
+
], MJRoleResolver.prototype, "MJApplicationRoles_RoleIDArray", null);
|
|
85896
87921
|
__decorate([
|
|
85897
87922
|
FieldResolver(() => [MJAIAgentPermission_]),
|
|
85898
87923
|
__param(0, Root()),
|
|
@@ -88428,6 +90453,354 @@ MJSchemaInfoResolver = __decorate([
|
|
|
88428
90453
|
], MJSchemaInfoResolver);
|
|
88429
90454
|
export { MJSchemaInfoResolver };
|
|
88430
90455
|
//****************************************************************************
|
|
90456
|
+
// ENTITY CLASS for MJ: Search Providers
|
|
90457
|
+
//****************************************************************************
|
|
90458
|
+
let MJSearchProvider_ = class MJSearchProvider_ {
|
|
90459
|
+
};
|
|
90460
|
+
__decorate([
|
|
90461
|
+
Field(),
|
|
90462
|
+
MaxLength(36),
|
|
90463
|
+
__metadata("design:type", String)
|
|
90464
|
+
], MJSearchProvider_.prototype, "ID", void 0);
|
|
90465
|
+
__decorate([
|
|
90466
|
+
Field({ description: `Display name for this search provider (e.g., "Vector Search", "Algolia")` }),
|
|
90467
|
+
MaxLength(200),
|
|
90468
|
+
__metadata("design:type", String)
|
|
90469
|
+
], MJSearchProvider_.prototype, "Name", void 0);
|
|
90470
|
+
__decorate([
|
|
90471
|
+
Field({ nullable: true, description: `Human-readable description of what this provider searches and how it works` }),
|
|
90472
|
+
__metadata("design:type", String)
|
|
90473
|
+
], MJSearchProvider_.prototype, "Description", void 0);
|
|
90474
|
+
__decorate([
|
|
90475
|
+
Field({ description: `ClassFactory key used with @RegisterClass(ISearchProvider, DriverClass) to instantiate the provider at runtime` }),
|
|
90476
|
+
MaxLength(500),
|
|
90477
|
+
__metadata("design:type", String)
|
|
90478
|
+
], MJSearchProvider_.prototype, "DriverClass", void 0);
|
|
90479
|
+
__decorate([
|
|
90480
|
+
Field({ description: `Provider lifecycle status: Pending (not yet activated), Active (in use), Terminated (disabled)` }),
|
|
90481
|
+
MaxLength(20),
|
|
90482
|
+
__metadata("design:type", String)
|
|
90483
|
+
], MJSearchProvider_.prototype, "Status", void 0);
|
|
90484
|
+
__decorate([
|
|
90485
|
+
Field(() => Int, { description: `Execution priority (lower = higher priority). Controls provider ordering and can influence RRF weighting. Must be >= 0.` }),
|
|
90486
|
+
__metadata("design:type", Number)
|
|
90487
|
+
], MJSearchProvider_.prototype, "Priority", void 0);
|
|
90488
|
+
__decorate([
|
|
90489
|
+
Field(() => Boolean, { description: `Whether this provider should run during fast preview/autocomplete searches. Expensive providers (external APIs) may set this to 0.` }),
|
|
90490
|
+
__metadata("design:type", Boolean)
|
|
90491
|
+
], MJSearchProvider_.prototype, "SupportsPreview", void 0);
|
|
90492
|
+
__decorate([
|
|
90493
|
+
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.` }),
|
|
90494
|
+
__metadata("design:type", Number)
|
|
90495
|
+
], MJSearchProvider_.prototype, "MaxResultsOverride", void 0);
|
|
90496
|
+
__decorate([
|
|
90497
|
+
Field({ nullable: true, description: `Optional JSON configuration blob for provider-specific settings (e.g., API endpoints, index names, tuning parameters). Schema is provider-defined.` }),
|
|
90498
|
+
__metadata("design:type", String)
|
|
90499
|
+
], MJSearchProvider_.prototype, "ProviderConfig", void 0);
|
|
90500
|
+
__decorate([
|
|
90501
|
+
Field({ nullable: true, description: `Optional FK to the Credential entity for providers that require authentication (e.g., Algolia API key, external service credentials)` }),
|
|
90502
|
+
MaxLength(36),
|
|
90503
|
+
__metadata("design:type", String)
|
|
90504
|
+
], MJSearchProvider_.prototype, "CredentialID", void 0);
|
|
90505
|
+
__decorate([
|
|
90506
|
+
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.` }),
|
|
90507
|
+
MaxLength(200),
|
|
90508
|
+
__metadata("design:type", String)
|
|
90509
|
+
], MJSearchProvider_.prototype, "DisplayName", void 0);
|
|
90510
|
+
__decorate([
|
|
90511
|
+
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.` }),
|
|
90512
|
+
MaxLength(200),
|
|
90513
|
+
__metadata("design:type", String)
|
|
90514
|
+
], MJSearchProvider_.prototype, "Icon", void 0);
|
|
90515
|
+
__decorate([
|
|
90516
|
+
Field({ nullable: true, description: `Free-form notes about this provider configuration` }),
|
|
90517
|
+
__metadata("design:type", String)
|
|
90518
|
+
], MJSearchProvider_.prototype, "Comments", void 0);
|
|
90519
|
+
__decorate([
|
|
90520
|
+
Field(),
|
|
90521
|
+
__metadata("design:type", Date)
|
|
90522
|
+
], MJSearchProvider_.prototype, "_mj__CreatedAt", void 0);
|
|
90523
|
+
__decorate([
|
|
90524
|
+
Field(),
|
|
90525
|
+
__metadata("design:type", Date)
|
|
90526
|
+
], MJSearchProvider_.prototype, "_mj__UpdatedAt", void 0);
|
|
90527
|
+
__decorate([
|
|
90528
|
+
Field({ nullable: true }),
|
|
90529
|
+
MaxLength(200),
|
|
90530
|
+
__metadata("design:type", String)
|
|
90531
|
+
], MJSearchProvider_.prototype, "Credential", void 0);
|
|
90532
|
+
MJSearchProvider_ = __decorate([
|
|
90533
|
+
ObjectType()
|
|
90534
|
+
], MJSearchProvider_);
|
|
90535
|
+
export { MJSearchProvider_ };
|
|
90536
|
+
//****************************************************************************
|
|
90537
|
+
// INPUT TYPE for MJ: Search Providers
|
|
90538
|
+
//****************************************************************************
|
|
90539
|
+
let CreateMJSearchProviderInput = class CreateMJSearchProviderInput {
|
|
90540
|
+
};
|
|
90541
|
+
__decorate([
|
|
90542
|
+
Field({ nullable: true }),
|
|
90543
|
+
__metadata("design:type", String)
|
|
90544
|
+
], CreateMJSearchProviderInput.prototype, "ID", void 0);
|
|
90545
|
+
__decorate([
|
|
90546
|
+
Field({ nullable: true }),
|
|
90547
|
+
__metadata("design:type", String)
|
|
90548
|
+
], CreateMJSearchProviderInput.prototype, "Name", void 0);
|
|
90549
|
+
__decorate([
|
|
90550
|
+
Field({ nullable: true }),
|
|
90551
|
+
__metadata("design:type", String)
|
|
90552
|
+
], CreateMJSearchProviderInput.prototype, "Description", void 0);
|
|
90553
|
+
__decorate([
|
|
90554
|
+
Field({ nullable: true }),
|
|
90555
|
+
__metadata("design:type", String)
|
|
90556
|
+
], CreateMJSearchProviderInput.prototype, "DriverClass", void 0);
|
|
90557
|
+
__decorate([
|
|
90558
|
+
Field({ nullable: true }),
|
|
90559
|
+
__metadata("design:type", String)
|
|
90560
|
+
], CreateMJSearchProviderInput.prototype, "Status", void 0);
|
|
90561
|
+
__decorate([
|
|
90562
|
+
Field(() => Int, { nullable: true }),
|
|
90563
|
+
__metadata("design:type", Number)
|
|
90564
|
+
], CreateMJSearchProviderInput.prototype, "Priority", void 0);
|
|
90565
|
+
__decorate([
|
|
90566
|
+
Field(() => Boolean, { nullable: true }),
|
|
90567
|
+
__metadata("design:type", Boolean)
|
|
90568
|
+
], CreateMJSearchProviderInput.prototype, "SupportsPreview", void 0);
|
|
90569
|
+
__decorate([
|
|
90570
|
+
Field(() => Int, { nullable: true }),
|
|
90571
|
+
__metadata("design:type", Number)
|
|
90572
|
+
], CreateMJSearchProviderInput.prototype, "MaxResultsOverride", void 0);
|
|
90573
|
+
__decorate([
|
|
90574
|
+
Field({ nullable: true }),
|
|
90575
|
+
__metadata("design:type", String)
|
|
90576
|
+
], CreateMJSearchProviderInput.prototype, "ProviderConfig", void 0);
|
|
90577
|
+
__decorate([
|
|
90578
|
+
Field({ nullable: true }),
|
|
90579
|
+
__metadata("design:type", String)
|
|
90580
|
+
], CreateMJSearchProviderInput.prototype, "CredentialID", void 0);
|
|
90581
|
+
__decorate([
|
|
90582
|
+
Field({ nullable: true }),
|
|
90583
|
+
__metadata("design:type", String)
|
|
90584
|
+
], CreateMJSearchProviderInput.prototype, "DisplayName", void 0);
|
|
90585
|
+
__decorate([
|
|
90586
|
+
Field({ nullable: true }),
|
|
90587
|
+
__metadata("design:type", String)
|
|
90588
|
+
], CreateMJSearchProviderInput.prototype, "Icon", void 0);
|
|
90589
|
+
__decorate([
|
|
90590
|
+
Field({ nullable: true }),
|
|
90591
|
+
__metadata("design:type", String)
|
|
90592
|
+
], CreateMJSearchProviderInput.prototype, "Comments", void 0);
|
|
90593
|
+
CreateMJSearchProviderInput = __decorate([
|
|
90594
|
+
InputType()
|
|
90595
|
+
], CreateMJSearchProviderInput);
|
|
90596
|
+
export { CreateMJSearchProviderInput };
|
|
90597
|
+
//****************************************************************************
|
|
90598
|
+
// INPUT TYPE for MJ: Search Providers
|
|
90599
|
+
//****************************************************************************
|
|
90600
|
+
let UpdateMJSearchProviderInput = class UpdateMJSearchProviderInput {
|
|
90601
|
+
};
|
|
90602
|
+
__decorate([
|
|
90603
|
+
Field(),
|
|
90604
|
+
__metadata("design:type", String)
|
|
90605
|
+
], UpdateMJSearchProviderInput.prototype, "ID", void 0);
|
|
90606
|
+
__decorate([
|
|
90607
|
+
Field({ nullable: true }),
|
|
90608
|
+
__metadata("design:type", String)
|
|
90609
|
+
], UpdateMJSearchProviderInput.prototype, "Name", void 0);
|
|
90610
|
+
__decorate([
|
|
90611
|
+
Field({ nullable: true }),
|
|
90612
|
+
__metadata("design:type", String)
|
|
90613
|
+
], UpdateMJSearchProviderInput.prototype, "Description", void 0);
|
|
90614
|
+
__decorate([
|
|
90615
|
+
Field({ nullable: true }),
|
|
90616
|
+
__metadata("design:type", String)
|
|
90617
|
+
], UpdateMJSearchProviderInput.prototype, "DriverClass", void 0);
|
|
90618
|
+
__decorate([
|
|
90619
|
+
Field({ nullable: true }),
|
|
90620
|
+
__metadata("design:type", String)
|
|
90621
|
+
], UpdateMJSearchProviderInput.prototype, "Status", void 0);
|
|
90622
|
+
__decorate([
|
|
90623
|
+
Field(() => Int, { nullable: true }),
|
|
90624
|
+
__metadata("design:type", Number)
|
|
90625
|
+
], UpdateMJSearchProviderInput.prototype, "Priority", void 0);
|
|
90626
|
+
__decorate([
|
|
90627
|
+
Field(() => Boolean, { nullable: true }),
|
|
90628
|
+
__metadata("design:type", Boolean)
|
|
90629
|
+
], UpdateMJSearchProviderInput.prototype, "SupportsPreview", void 0);
|
|
90630
|
+
__decorate([
|
|
90631
|
+
Field(() => Int, { nullable: true }),
|
|
90632
|
+
__metadata("design:type", Number)
|
|
90633
|
+
], UpdateMJSearchProviderInput.prototype, "MaxResultsOverride", void 0);
|
|
90634
|
+
__decorate([
|
|
90635
|
+
Field({ nullable: true }),
|
|
90636
|
+
__metadata("design:type", String)
|
|
90637
|
+
], UpdateMJSearchProviderInput.prototype, "ProviderConfig", void 0);
|
|
90638
|
+
__decorate([
|
|
90639
|
+
Field({ nullable: true }),
|
|
90640
|
+
__metadata("design:type", String)
|
|
90641
|
+
], UpdateMJSearchProviderInput.prototype, "CredentialID", void 0);
|
|
90642
|
+
__decorate([
|
|
90643
|
+
Field({ nullable: true }),
|
|
90644
|
+
__metadata("design:type", String)
|
|
90645
|
+
], UpdateMJSearchProviderInput.prototype, "DisplayName", void 0);
|
|
90646
|
+
__decorate([
|
|
90647
|
+
Field({ nullable: true }),
|
|
90648
|
+
__metadata("design:type", String)
|
|
90649
|
+
], UpdateMJSearchProviderInput.prototype, "Icon", void 0);
|
|
90650
|
+
__decorate([
|
|
90651
|
+
Field({ nullable: true }),
|
|
90652
|
+
__metadata("design:type", String)
|
|
90653
|
+
], UpdateMJSearchProviderInput.prototype, "Comments", void 0);
|
|
90654
|
+
__decorate([
|
|
90655
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
90656
|
+
__metadata("design:type", Array)
|
|
90657
|
+
], UpdateMJSearchProviderInput.prototype, "OldValues___", void 0);
|
|
90658
|
+
UpdateMJSearchProviderInput = __decorate([
|
|
90659
|
+
InputType()
|
|
90660
|
+
], UpdateMJSearchProviderInput);
|
|
90661
|
+
export { UpdateMJSearchProviderInput };
|
|
90662
|
+
//****************************************************************************
|
|
90663
|
+
// RESOLVER for MJ: Search Providers
|
|
90664
|
+
//****************************************************************************
|
|
90665
|
+
let RunMJSearchProviderViewResult = class RunMJSearchProviderViewResult {
|
|
90666
|
+
};
|
|
90667
|
+
__decorate([
|
|
90668
|
+
Field(() => [MJSearchProvider_]),
|
|
90669
|
+
__metadata("design:type", Array)
|
|
90670
|
+
], RunMJSearchProviderViewResult.prototype, "Results", void 0);
|
|
90671
|
+
__decorate([
|
|
90672
|
+
Field(() => String, { nullable: true }),
|
|
90673
|
+
__metadata("design:type", String)
|
|
90674
|
+
], RunMJSearchProviderViewResult.prototype, "UserViewRunID", void 0);
|
|
90675
|
+
__decorate([
|
|
90676
|
+
Field(() => Int, { nullable: true }),
|
|
90677
|
+
__metadata("design:type", Number)
|
|
90678
|
+
], RunMJSearchProviderViewResult.prototype, "RowCount", void 0);
|
|
90679
|
+
__decorate([
|
|
90680
|
+
Field(() => Int, { nullable: true }),
|
|
90681
|
+
__metadata("design:type", Number)
|
|
90682
|
+
], RunMJSearchProviderViewResult.prototype, "TotalRowCount", void 0);
|
|
90683
|
+
__decorate([
|
|
90684
|
+
Field(() => Int, { nullable: true }),
|
|
90685
|
+
__metadata("design:type", Number)
|
|
90686
|
+
], RunMJSearchProviderViewResult.prototype, "ExecutionTime", void 0);
|
|
90687
|
+
__decorate([
|
|
90688
|
+
Field({ nullable: true }),
|
|
90689
|
+
__metadata("design:type", String)
|
|
90690
|
+
], RunMJSearchProviderViewResult.prototype, "ErrorMessage", void 0);
|
|
90691
|
+
__decorate([
|
|
90692
|
+
Field(() => Boolean, { nullable: false }),
|
|
90693
|
+
__metadata("design:type", Boolean)
|
|
90694
|
+
], RunMJSearchProviderViewResult.prototype, "Success", void 0);
|
|
90695
|
+
RunMJSearchProviderViewResult = __decorate([
|
|
90696
|
+
ObjectType()
|
|
90697
|
+
], RunMJSearchProviderViewResult);
|
|
90698
|
+
export { RunMJSearchProviderViewResult };
|
|
90699
|
+
let MJSearchProviderResolver = class MJSearchProviderResolver extends ResolverBase {
|
|
90700
|
+
async RunMJSearchProviderViewByID(input, { providers, userPayload }, pubSub) {
|
|
90701
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
90702
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
90703
|
+
}
|
|
90704
|
+
async RunMJSearchProviderViewByName(input, { providers, userPayload }, pubSub) {
|
|
90705
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
90706
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
90707
|
+
}
|
|
90708
|
+
async RunMJSearchProviderDynamicView(input, { providers, userPayload }, pubSub) {
|
|
90709
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
90710
|
+
input.EntityName = 'MJ: Search Providers';
|
|
90711
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
90712
|
+
}
|
|
90713
|
+
async MJSearchProvider(ID, { userPayload, providers }, pubSub) {
|
|
90714
|
+
this.CheckUserReadPermissions('MJ: Search Providers', userPayload);
|
|
90715
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
90716
|
+
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');
|
|
90717
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
90718
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Search Providers', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
90719
|
+
return result;
|
|
90720
|
+
}
|
|
90721
|
+
async CreateMJSearchProvider(input, { providers, userPayload }, pubSub) {
|
|
90722
|
+
const provider = GetReadWriteProvider(providers);
|
|
90723
|
+
return this.CreateRecord('MJ: Search Providers', input, provider, userPayload, pubSub);
|
|
90724
|
+
}
|
|
90725
|
+
async UpdateMJSearchProvider(input, { providers, userPayload }, pubSub) {
|
|
90726
|
+
const provider = GetReadWriteProvider(providers);
|
|
90727
|
+
return this.UpdateRecord('MJ: Search Providers', input, provider, userPayload, pubSub);
|
|
90728
|
+
}
|
|
90729
|
+
async DeleteMJSearchProvider(ID, options, { providers, userPayload }, pubSub) {
|
|
90730
|
+
const provider = GetReadWriteProvider(providers);
|
|
90731
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
90732
|
+
return this.DeleteRecord('MJ: Search Providers', key, options, provider, userPayload, pubSub);
|
|
90733
|
+
}
|
|
90734
|
+
};
|
|
90735
|
+
__decorate([
|
|
90736
|
+
Query(() => RunMJSearchProviderViewResult),
|
|
90737
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
90738
|
+
__param(1, Ctx()),
|
|
90739
|
+
__param(2, PubSub()),
|
|
90740
|
+
__metadata("design:type", Function),
|
|
90741
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
90742
|
+
__metadata("design:returntype", Promise)
|
|
90743
|
+
], MJSearchProviderResolver.prototype, "RunMJSearchProviderViewByID", null);
|
|
90744
|
+
__decorate([
|
|
90745
|
+
Query(() => RunMJSearchProviderViewResult),
|
|
90746
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
90747
|
+
__param(1, Ctx()),
|
|
90748
|
+
__param(2, PubSub()),
|
|
90749
|
+
__metadata("design:type", Function),
|
|
90750
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
90751
|
+
__metadata("design:returntype", Promise)
|
|
90752
|
+
], MJSearchProviderResolver.prototype, "RunMJSearchProviderViewByName", null);
|
|
90753
|
+
__decorate([
|
|
90754
|
+
Query(() => RunMJSearchProviderViewResult),
|
|
90755
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
90756
|
+
__param(1, Ctx()),
|
|
90757
|
+
__param(2, PubSub()),
|
|
90758
|
+
__metadata("design:type", Function),
|
|
90759
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
90760
|
+
__metadata("design:returntype", Promise)
|
|
90761
|
+
], MJSearchProviderResolver.prototype, "RunMJSearchProviderDynamicView", null);
|
|
90762
|
+
__decorate([
|
|
90763
|
+
Query(() => MJSearchProvider_, { nullable: true }),
|
|
90764
|
+
__param(0, Arg('ID', () => String)),
|
|
90765
|
+
__param(1, Ctx()),
|
|
90766
|
+
__param(2, PubSub()),
|
|
90767
|
+
__metadata("design:type", Function),
|
|
90768
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
90769
|
+
__metadata("design:returntype", Promise)
|
|
90770
|
+
], MJSearchProviderResolver.prototype, "MJSearchProvider", null);
|
|
90771
|
+
__decorate([
|
|
90772
|
+
Mutation(() => MJSearchProvider_),
|
|
90773
|
+
__param(0, Arg('input', () => CreateMJSearchProviderInput)),
|
|
90774
|
+
__param(1, Ctx()),
|
|
90775
|
+
__param(2, PubSub()),
|
|
90776
|
+
__metadata("design:type", Function),
|
|
90777
|
+
__metadata("design:paramtypes", [CreateMJSearchProviderInput, Object, PubSubEngine]),
|
|
90778
|
+
__metadata("design:returntype", Promise)
|
|
90779
|
+
], MJSearchProviderResolver.prototype, "CreateMJSearchProvider", null);
|
|
90780
|
+
__decorate([
|
|
90781
|
+
Mutation(() => MJSearchProvider_),
|
|
90782
|
+
__param(0, Arg('input', () => UpdateMJSearchProviderInput)),
|
|
90783
|
+
__param(1, Ctx()),
|
|
90784
|
+
__param(2, PubSub()),
|
|
90785
|
+
__metadata("design:type", Function),
|
|
90786
|
+
__metadata("design:paramtypes", [UpdateMJSearchProviderInput, Object, PubSubEngine]),
|
|
90787
|
+
__metadata("design:returntype", Promise)
|
|
90788
|
+
], MJSearchProviderResolver.prototype, "UpdateMJSearchProvider", null);
|
|
90789
|
+
__decorate([
|
|
90790
|
+
Mutation(() => MJSearchProvider_),
|
|
90791
|
+
__param(0, Arg('ID', () => String)),
|
|
90792
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
90793
|
+
__param(2, Ctx()),
|
|
90794
|
+
__param(3, PubSub()),
|
|
90795
|
+
__metadata("design:type", Function),
|
|
90796
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
90797
|
+
__metadata("design:returntype", Promise)
|
|
90798
|
+
], MJSearchProviderResolver.prototype, "DeleteMJSearchProvider", null);
|
|
90799
|
+
MJSearchProviderResolver = __decorate([
|
|
90800
|
+
Resolver(MJSearchProvider_)
|
|
90801
|
+
], MJSearchProviderResolver);
|
|
90802
|
+
export { MJSearchProviderResolver };
|
|
90803
|
+
//****************************************************************************
|
|
88431
90804
|
// ENTITY CLASS for MJ: Skills
|
|
88432
90805
|
//****************************************************************************
|
|
88433
90806
|
let MJSkill_ = class MJSkill_ {
|
|
@@ -89053,6 +91426,325 @@ MJSQLDialectResolver = __decorate([
|
|
|
89053
91426
|
], MJSQLDialectResolver);
|
|
89054
91427
|
export { MJSQLDialectResolver };
|
|
89055
91428
|
//****************************************************************************
|
|
91429
|
+
// ENTITY CLASS for MJ: State Provinces
|
|
91430
|
+
//****************************************************************************
|
|
91431
|
+
let MJStateProvince_ = class MJStateProvince_ {
|
|
91432
|
+
};
|
|
91433
|
+
__decorate([
|
|
91434
|
+
Field(),
|
|
91435
|
+
MaxLength(36),
|
|
91436
|
+
__metadata("design:type", String)
|
|
91437
|
+
], MJStateProvince_.prototype, "ID", void 0);
|
|
91438
|
+
__decorate([
|
|
91439
|
+
Field({ description: `Foreign key to Country. Establishes the parent country for this state/province.` }),
|
|
91440
|
+
MaxLength(36),
|
|
91441
|
+
__metadata("design:type", String)
|
|
91442
|
+
], MJStateProvince_.prototype, "CountryID", void 0);
|
|
91443
|
+
__decorate([
|
|
91444
|
+
Field({ description: `Full state/province name (e.g., "California", "Ontario").` }),
|
|
91445
|
+
MaxLength(200),
|
|
91446
|
+
__metadata("design:type", String)
|
|
91447
|
+
], MJStateProvince_.prototype, "Name", void 0);
|
|
91448
|
+
__decorate([
|
|
91449
|
+
Field({ description: `Short code within the country (e.g., "CA", "ON"). Unique per country via compound constraint.` }),
|
|
91450
|
+
MaxLength(10),
|
|
91451
|
+
__metadata("design:type", String)
|
|
91452
|
+
], MJStateProvince_.prototype, "Code", void 0);
|
|
91453
|
+
__decorate([
|
|
91454
|
+
Field({ description: `ISO 3166-2 subdivision code (e.g., "US-CA", "CA-ON"). Globally unique.` }),
|
|
91455
|
+
MaxLength(10),
|
|
91456
|
+
__metadata("design:type", String)
|
|
91457
|
+
], MJStateProvince_.prototype, "ISO3166_2", void 0);
|
|
91458
|
+
__decorate([
|
|
91459
|
+
Field(() => Float, { nullable: true, description: `Geographic centroid latitude. Used as fallback point for state-level geocoding.` }),
|
|
91460
|
+
__metadata("design:type", Number)
|
|
91461
|
+
], MJStateProvince_.prototype, "Latitude", void 0);
|
|
91462
|
+
__decorate([
|
|
91463
|
+
Field(() => Float, { nullable: true, description: `Geographic centroid longitude. Used as fallback point for state-level geocoding.` }),
|
|
91464
|
+
__metadata("design:type", Number)
|
|
91465
|
+
], MJStateProvince_.prototype, "Longitude", void 0);
|
|
91466
|
+
__decorate([
|
|
91467
|
+
Field({ nullable: true, description: `Medium-resolution (~50m) GeoJSON boundary polygon for choropleth map rendering. Nullable. Total ~15-20MB for all states/provinces worldwide.` }),
|
|
91468
|
+
__metadata("design:type", String)
|
|
91469
|
+
], MJStateProvince_.prototype, "BoundaryGeoJSON", void 0);
|
|
91470
|
+
__decorate([
|
|
91471
|
+
Field({ nullable: true, description: `JSON array of common aliases (e.g., ["Calif.","California","Cal"]). Used by GeoResolver for fuzzy text-to-state matching.` }),
|
|
91472
|
+
__metadata("design:type", String)
|
|
91473
|
+
], MJStateProvince_.prototype, "CommonAliases", void 0);
|
|
91474
|
+
__decorate([
|
|
91475
|
+
Field(),
|
|
91476
|
+
__metadata("design:type", Date)
|
|
91477
|
+
], MJStateProvince_.prototype, "_mj__CreatedAt", void 0);
|
|
91478
|
+
__decorate([
|
|
91479
|
+
Field(),
|
|
91480
|
+
__metadata("design:type", Date)
|
|
91481
|
+
], MJStateProvince_.prototype, "_mj__UpdatedAt", void 0);
|
|
91482
|
+
__decorate([
|
|
91483
|
+
Field(),
|
|
91484
|
+
MaxLength(200),
|
|
91485
|
+
__metadata("design:type", String)
|
|
91486
|
+
], MJStateProvince_.prototype, "Country", void 0);
|
|
91487
|
+
__decorate([
|
|
91488
|
+
Field(() => [MJRecordGeoCode_]),
|
|
91489
|
+
__metadata("design:type", Array)
|
|
91490
|
+
], MJStateProvince_.prototype, "MJRecordGeoCodes_StateProvinceIDArray", void 0);
|
|
91491
|
+
MJStateProvince_ = __decorate([
|
|
91492
|
+
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.` })
|
|
91493
|
+
], MJStateProvince_);
|
|
91494
|
+
export { MJStateProvince_ };
|
|
91495
|
+
//****************************************************************************
|
|
91496
|
+
// INPUT TYPE for MJ: State Provinces
|
|
91497
|
+
//****************************************************************************
|
|
91498
|
+
let CreateMJStateProvinceInput = class CreateMJStateProvinceInput {
|
|
91499
|
+
};
|
|
91500
|
+
__decorate([
|
|
91501
|
+
Field({ nullable: true }),
|
|
91502
|
+
__metadata("design:type", String)
|
|
91503
|
+
], CreateMJStateProvinceInput.prototype, "ID", void 0);
|
|
91504
|
+
__decorate([
|
|
91505
|
+
Field({ nullable: true }),
|
|
91506
|
+
__metadata("design:type", String)
|
|
91507
|
+
], CreateMJStateProvinceInput.prototype, "CountryID", void 0);
|
|
91508
|
+
__decorate([
|
|
91509
|
+
Field({ nullable: true }),
|
|
91510
|
+
__metadata("design:type", String)
|
|
91511
|
+
], CreateMJStateProvinceInput.prototype, "Name", void 0);
|
|
91512
|
+
__decorate([
|
|
91513
|
+
Field({ nullable: true }),
|
|
91514
|
+
__metadata("design:type", String)
|
|
91515
|
+
], CreateMJStateProvinceInput.prototype, "Code", void 0);
|
|
91516
|
+
__decorate([
|
|
91517
|
+
Field({ nullable: true }),
|
|
91518
|
+
__metadata("design:type", String)
|
|
91519
|
+
], CreateMJStateProvinceInput.prototype, "ISO3166_2", void 0);
|
|
91520
|
+
__decorate([
|
|
91521
|
+
Field(() => Float, { nullable: true }),
|
|
91522
|
+
__metadata("design:type", Number)
|
|
91523
|
+
], CreateMJStateProvinceInput.prototype, "Latitude", void 0);
|
|
91524
|
+
__decorate([
|
|
91525
|
+
Field(() => Float, { nullable: true }),
|
|
91526
|
+
__metadata("design:type", Number)
|
|
91527
|
+
], CreateMJStateProvinceInput.prototype, "Longitude", void 0);
|
|
91528
|
+
__decorate([
|
|
91529
|
+
Field({ nullable: true }),
|
|
91530
|
+
__metadata("design:type", String)
|
|
91531
|
+
], CreateMJStateProvinceInput.prototype, "BoundaryGeoJSON", void 0);
|
|
91532
|
+
__decorate([
|
|
91533
|
+
Field({ nullable: true }),
|
|
91534
|
+
__metadata("design:type", String)
|
|
91535
|
+
], CreateMJStateProvinceInput.prototype, "CommonAliases", void 0);
|
|
91536
|
+
CreateMJStateProvinceInput = __decorate([
|
|
91537
|
+
InputType()
|
|
91538
|
+
], CreateMJStateProvinceInput);
|
|
91539
|
+
export { CreateMJStateProvinceInput };
|
|
91540
|
+
//****************************************************************************
|
|
91541
|
+
// INPUT TYPE for MJ: State Provinces
|
|
91542
|
+
//****************************************************************************
|
|
91543
|
+
let UpdateMJStateProvinceInput = class UpdateMJStateProvinceInput {
|
|
91544
|
+
};
|
|
91545
|
+
__decorate([
|
|
91546
|
+
Field(),
|
|
91547
|
+
__metadata("design:type", String)
|
|
91548
|
+
], UpdateMJStateProvinceInput.prototype, "ID", void 0);
|
|
91549
|
+
__decorate([
|
|
91550
|
+
Field({ nullable: true }),
|
|
91551
|
+
__metadata("design:type", String)
|
|
91552
|
+
], UpdateMJStateProvinceInput.prototype, "CountryID", void 0);
|
|
91553
|
+
__decorate([
|
|
91554
|
+
Field({ nullable: true }),
|
|
91555
|
+
__metadata("design:type", String)
|
|
91556
|
+
], UpdateMJStateProvinceInput.prototype, "Name", void 0);
|
|
91557
|
+
__decorate([
|
|
91558
|
+
Field({ nullable: true }),
|
|
91559
|
+
__metadata("design:type", String)
|
|
91560
|
+
], UpdateMJStateProvinceInput.prototype, "Code", void 0);
|
|
91561
|
+
__decorate([
|
|
91562
|
+
Field({ nullable: true }),
|
|
91563
|
+
__metadata("design:type", String)
|
|
91564
|
+
], UpdateMJStateProvinceInput.prototype, "ISO3166_2", void 0);
|
|
91565
|
+
__decorate([
|
|
91566
|
+
Field(() => Float, { nullable: true }),
|
|
91567
|
+
__metadata("design:type", Number)
|
|
91568
|
+
], UpdateMJStateProvinceInput.prototype, "Latitude", void 0);
|
|
91569
|
+
__decorate([
|
|
91570
|
+
Field(() => Float, { nullable: true }),
|
|
91571
|
+
__metadata("design:type", Number)
|
|
91572
|
+
], UpdateMJStateProvinceInput.prototype, "Longitude", void 0);
|
|
91573
|
+
__decorate([
|
|
91574
|
+
Field({ nullable: true }),
|
|
91575
|
+
__metadata("design:type", String)
|
|
91576
|
+
], UpdateMJStateProvinceInput.prototype, "BoundaryGeoJSON", void 0);
|
|
91577
|
+
__decorate([
|
|
91578
|
+
Field({ nullable: true }),
|
|
91579
|
+
__metadata("design:type", String)
|
|
91580
|
+
], UpdateMJStateProvinceInput.prototype, "CommonAliases", void 0);
|
|
91581
|
+
__decorate([
|
|
91582
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
91583
|
+
__metadata("design:type", Array)
|
|
91584
|
+
], UpdateMJStateProvinceInput.prototype, "OldValues___", void 0);
|
|
91585
|
+
UpdateMJStateProvinceInput = __decorate([
|
|
91586
|
+
InputType()
|
|
91587
|
+
], UpdateMJStateProvinceInput);
|
|
91588
|
+
export { UpdateMJStateProvinceInput };
|
|
91589
|
+
//****************************************************************************
|
|
91590
|
+
// RESOLVER for MJ: State Provinces
|
|
91591
|
+
//****************************************************************************
|
|
91592
|
+
let RunMJStateProvinceViewResult = class RunMJStateProvinceViewResult {
|
|
91593
|
+
};
|
|
91594
|
+
__decorate([
|
|
91595
|
+
Field(() => [MJStateProvince_]),
|
|
91596
|
+
__metadata("design:type", Array)
|
|
91597
|
+
], RunMJStateProvinceViewResult.prototype, "Results", void 0);
|
|
91598
|
+
__decorate([
|
|
91599
|
+
Field(() => String, { nullable: true }),
|
|
91600
|
+
__metadata("design:type", String)
|
|
91601
|
+
], RunMJStateProvinceViewResult.prototype, "UserViewRunID", void 0);
|
|
91602
|
+
__decorate([
|
|
91603
|
+
Field(() => Int, { nullable: true }),
|
|
91604
|
+
__metadata("design:type", Number)
|
|
91605
|
+
], RunMJStateProvinceViewResult.prototype, "RowCount", void 0);
|
|
91606
|
+
__decorate([
|
|
91607
|
+
Field(() => Int, { nullable: true }),
|
|
91608
|
+
__metadata("design:type", Number)
|
|
91609
|
+
], RunMJStateProvinceViewResult.prototype, "TotalRowCount", void 0);
|
|
91610
|
+
__decorate([
|
|
91611
|
+
Field(() => Int, { nullable: true }),
|
|
91612
|
+
__metadata("design:type", Number)
|
|
91613
|
+
], RunMJStateProvinceViewResult.prototype, "ExecutionTime", void 0);
|
|
91614
|
+
__decorate([
|
|
91615
|
+
Field({ nullable: true }),
|
|
91616
|
+
__metadata("design:type", String)
|
|
91617
|
+
], RunMJStateProvinceViewResult.prototype, "ErrorMessage", void 0);
|
|
91618
|
+
__decorate([
|
|
91619
|
+
Field(() => Boolean, { nullable: false }),
|
|
91620
|
+
__metadata("design:type", Boolean)
|
|
91621
|
+
], RunMJStateProvinceViewResult.prototype, "Success", void 0);
|
|
91622
|
+
RunMJStateProvinceViewResult = __decorate([
|
|
91623
|
+
ObjectType()
|
|
91624
|
+
], RunMJStateProvinceViewResult);
|
|
91625
|
+
export { RunMJStateProvinceViewResult };
|
|
91626
|
+
let MJStateProvinceResolver = class MJStateProvinceResolver extends ResolverBase {
|
|
91627
|
+
async RunMJStateProvinceViewByID(input, { providers, userPayload }, pubSub) {
|
|
91628
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91629
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
91630
|
+
}
|
|
91631
|
+
async RunMJStateProvinceViewByName(input, { providers, userPayload }, pubSub) {
|
|
91632
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91633
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
91634
|
+
}
|
|
91635
|
+
async RunMJStateProvinceDynamicView(input, { providers, userPayload }, pubSub) {
|
|
91636
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91637
|
+
input.EntityName = 'MJ: State Provinces';
|
|
91638
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
91639
|
+
}
|
|
91640
|
+
async MJStateProvince(ID, { userPayload, providers }, pubSub) {
|
|
91641
|
+
this.CheckUserReadPermissions('MJ: State Provinces', userPayload);
|
|
91642
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91643
|
+
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');
|
|
91644
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
91645
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: State Provinces', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
91646
|
+
return result;
|
|
91647
|
+
}
|
|
91648
|
+
async MJRecordGeoCodes_StateProvinceIDArray(mjstateprovince_, { userPayload, providers }, pubSub) {
|
|
91649
|
+
this.CheckUserReadPermissions('MJ: Record Geo Codes', userPayload);
|
|
91650
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
91651
|
+
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');
|
|
91652
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
91653
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Record Geo Codes', rows, this.GetUserFromPayload(userPayload));
|
|
91654
|
+
return result;
|
|
91655
|
+
}
|
|
91656
|
+
async CreateMJStateProvince(input, { providers, userPayload }, pubSub) {
|
|
91657
|
+
const provider = GetReadWriteProvider(providers);
|
|
91658
|
+
return this.CreateRecord('MJ: State Provinces', input, provider, userPayload, pubSub);
|
|
91659
|
+
}
|
|
91660
|
+
async UpdateMJStateProvince(input, { providers, userPayload }, pubSub) {
|
|
91661
|
+
const provider = GetReadWriteProvider(providers);
|
|
91662
|
+
return this.UpdateRecord('MJ: State Provinces', input, provider, userPayload, pubSub);
|
|
91663
|
+
}
|
|
91664
|
+
async DeleteMJStateProvince(ID, options, { providers, userPayload }, pubSub) {
|
|
91665
|
+
const provider = GetReadWriteProvider(providers);
|
|
91666
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
91667
|
+
return this.DeleteRecord('MJ: State Provinces', key, options, provider, userPayload, pubSub);
|
|
91668
|
+
}
|
|
91669
|
+
};
|
|
91670
|
+
__decorate([
|
|
91671
|
+
Query(() => RunMJStateProvinceViewResult),
|
|
91672
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
91673
|
+
__param(1, Ctx()),
|
|
91674
|
+
__param(2, PubSub()),
|
|
91675
|
+
__metadata("design:type", Function),
|
|
91676
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
91677
|
+
__metadata("design:returntype", Promise)
|
|
91678
|
+
], MJStateProvinceResolver.prototype, "RunMJStateProvinceViewByID", null);
|
|
91679
|
+
__decorate([
|
|
91680
|
+
Query(() => RunMJStateProvinceViewResult),
|
|
91681
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
91682
|
+
__param(1, Ctx()),
|
|
91683
|
+
__param(2, PubSub()),
|
|
91684
|
+
__metadata("design:type", Function),
|
|
91685
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
91686
|
+
__metadata("design:returntype", Promise)
|
|
91687
|
+
], MJStateProvinceResolver.prototype, "RunMJStateProvinceViewByName", null);
|
|
91688
|
+
__decorate([
|
|
91689
|
+
Query(() => RunMJStateProvinceViewResult),
|
|
91690
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
91691
|
+
__param(1, Ctx()),
|
|
91692
|
+
__param(2, PubSub()),
|
|
91693
|
+
__metadata("design:type", Function),
|
|
91694
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
91695
|
+
__metadata("design:returntype", Promise)
|
|
91696
|
+
], MJStateProvinceResolver.prototype, "RunMJStateProvinceDynamicView", null);
|
|
91697
|
+
__decorate([
|
|
91698
|
+
Query(() => MJStateProvince_, { nullable: true }),
|
|
91699
|
+
__param(0, Arg('ID', () => String)),
|
|
91700
|
+
__param(1, Ctx()),
|
|
91701
|
+
__param(2, PubSub()),
|
|
91702
|
+
__metadata("design:type", Function),
|
|
91703
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
91704
|
+
__metadata("design:returntype", Promise)
|
|
91705
|
+
], MJStateProvinceResolver.prototype, "MJStateProvince", null);
|
|
91706
|
+
__decorate([
|
|
91707
|
+
FieldResolver(() => [MJRecordGeoCode_]),
|
|
91708
|
+
__param(0, Root()),
|
|
91709
|
+
__param(1, Ctx()),
|
|
91710
|
+
__param(2, PubSub()),
|
|
91711
|
+
__metadata("design:type", Function),
|
|
91712
|
+
__metadata("design:paramtypes", [MJStateProvince_, Object, PubSubEngine]),
|
|
91713
|
+
__metadata("design:returntype", Promise)
|
|
91714
|
+
], MJStateProvinceResolver.prototype, "MJRecordGeoCodes_StateProvinceIDArray", null);
|
|
91715
|
+
__decorate([
|
|
91716
|
+
Mutation(() => MJStateProvince_),
|
|
91717
|
+
__param(0, Arg('input', () => CreateMJStateProvinceInput)),
|
|
91718
|
+
__param(1, Ctx()),
|
|
91719
|
+
__param(2, PubSub()),
|
|
91720
|
+
__metadata("design:type", Function),
|
|
91721
|
+
__metadata("design:paramtypes", [CreateMJStateProvinceInput, Object, PubSubEngine]),
|
|
91722
|
+
__metadata("design:returntype", Promise)
|
|
91723
|
+
], MJStateProvinceResolver.prototype, "CreateMJStateProvince", null);
|
|
91724
|
+
__decorate([
|
|
91725
|
+
Mutation(() => MJStateProvince_),
|
|
91726
|
+
__param(0, Arg('input', () => UpdateMJStateProvinceInput)),
|
|
91727
|
+
__param(1, Ctx()),
|
|
91728
|
+
__param(2, PubSub()),
|
|
91729
|
+
__metadata("design:type", Function),
|
|
91730
|
+
__metadata("design:paramtypes", [UpdateMJStateProvinceInput, Object, PubSubEngine]),
|
|
91731
|
+
__metadata("design:returntype", Promise)
|
|
91732
|
+
], MJStateProvinceResolver.prototype, "UpdateMJStateProvince", null);
|
|
91733
|
+
__decorate([
|
|
91734
|
+
Mutation(() => MJStateProvince_),
|
|
91735
|
+
__param(0, Arg('ID', () => String)),
|
|
91736
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
91737
|
+
__param(2, Ctx()),
|
|
91738
|
+
__param(3, PubSub()),
|
|
91739
|
+
__metadata("design:type", Function),
|
|
91740
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
91741
|
+
__metadata("design:returntype", Promise)
|
|
91742
|
+
], MJStateProvinceResolver.prototype, "DeleteMJStateProvince", null);
|
|
91743
|
+
MJStateProvinceResolver = __decorate([
|
|
91744
|
+
Resolver(MJStateProvince_)
|
|
91745
|
+
], MJStateProvinceResolver);
|
|
91746
|
+
export { MJStateProvinceResolver };
|
|
91747
|
+
//****************************************************************************
|
|
89056
91748
|
// ENTITY CLASS for MJ: Tag Audit Logs
|
|
89057
91749
|
//****************************************************************************
|
|
89058
91750
|
let MJTagAuditLog_ = class MJTagAuditLog_ {
|
|
@@ -100965,6 +103657,10 @@ __decorate([
|
|
|
100965
103657
|
Field(() => [MJDuplicateRun_]),
|
|
100966
103658
|
__metadata("design:type", Array)
|
|
100967
103659
|
], MJUser_.prototype, "MJDuplicateRuns_ApprovedByUserIDArray", void 0);
|
|
103660
|
+
__decorate([
|
|
103661
|
+
Field(() => [MJFileStorageAccountPermission_]),
|
|
103662
|
+
__metadata("design:type", Array)
|
|
103663
|
+
], MJUser_.prototype, "MJFileStorageAccountPermissions_UserIDArray", void 0);
|
|
100968
103664
|
__decorate([
|
|
100969
103665
|
Field(() => [MJAIAgentRun_]),
|
|
100970
103666
|
__metadata("design:type", Array)
|
|
@@ -101834,6 +104530,14 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
101834
104530
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Duplicate Runs', rows, this.GetUserFromPayload(userPayload));
|
|
101835
104531
|
return result;
|
|
101836
104532
|
}
|
|
104533
|
+
async MJFileStorageAccountPermissions_UserIDArray(mjuser_, { userPayload, providers }, pubSub) {
|
|
104534
|
+
this.CheckUserReadPermissions('MJ: File Storage Account Permissions', userPayload);
|
|
104535
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
104536
|
+
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');
|
|
104537
|
+
const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
|
|
104538
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: File Storage Account Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
104539
|
+
return result;
|
|
104540
|
+
}
|
|
101837
104541
|
async MJAIAgentRuns_UserIDArray(mjuser_, { userPayload, providers }, pubSub) {
|
|
101838
104542
|
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
101839
104543
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -102667,6 +105371,15 @@ __decorate([
|
|
|
102667
105371
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
102668
105372
|
__metadata("design:returntype", Promise)
|
|
102669
105373
|
], MJUserResolverBase.prototype, "MJDuplicateRuns_ApprovedByUserIDArray", null);
|
|
105374
|
+
__decorate([
|
|
105375
|
+
FieldResolver(() => [MJFileStorageAccountPermission_]),
|
|
105376
|
+
__param(0, Root()),
|
|
105377
|
+
__param(1, Ctx()),
|
|
105378
|
+
__param(2, PubSub()),
|
|
105379
|
+
__metadata("design:type", Function),
|
|
105380
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
105381
|
+
__metadata("design:returntype", Promise)
|
|
105382
|
+
], MJUserResolverBase.prototype, "MJFileStorageAccountPermissions_UserIDArray", null);
|
|
102670
105383
|
__decorate([
|
|
102671
105384
|
FieldResolver(() => [MJAIAgentRun_]),
|
|
102672
105385
|
__param(0, Root()),
|
|
@@ -102812,6 +105525,16 @@ __decorate([
|
|
|
102812
105525
|
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
105526
|
__metadata("design:type", String)
|
|
102814
105527
|
], MJVectorDatabase_.prototype, "Configuration", void 0);
|
|
105528
|
+
__decorate([
|
|
105529
|
+
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>.` }),
|
|
105530
|
+
MaxLength(36),
|
|
105531
|
+
__metadata("design:type", String)
|
|
105532
|
+
], MJVectorDatabase_.prototype, "CredentialID", void 0);
|
|
105533
|
+
__decorate([
|
|
105534
|
+
Field({ nullable: true }),
|
|
105535
|
+
MaxLength(200),
|
|
105536
|
+
__metadata("design:type", String)
|
|
105537
|
+
], MJVectorDatabase_.prototype, "Credential", void 0);
|
|
102815
105538
|
__decorate([
|
|
102816
105539
|
Field(() => [MJVectorIndex_]),
|
|
102817
105540
|
__metadata("design:type", Array)
|
|
@@ -102853,6 +105576,10 @@ __decorate([
|
|
|
102853
105576
|
Field({ nullable: true }),
|
|
102854
105577
|
__metadata("design:type", String)
|
|
102855
105578
|
], CreateMJVectorDatabaseInput.prototype, "Configuration", void 0);
|
|
105579
|
+
__decorate([
|
|
105580
|
+
Field({ nullable: true }),
|
|
105581
|
+
__metadata("design:type", String)
|
|
105582
|
+
], CreateMJVectorDatabaseInput.prototype, "CredentialID", void 0);
|
|
102856
105583
|
CreateMJVectorDatabaseInput = __decorate([
|
|
102857
105584
|
InputType()
|
|
102858
105585
|
], CreateMJVectorDatabaseInput);
|
|
@@ -102886,6 +105613,10 @@ __decorate([
|
|
|
102886
105613
|
Field({ nullable: true }),
|
|
102887
105614
|
__metadata("design:type", String)
|
|
102888
105615
|
], UpdateMJVectorDatabaseInput.prototype, "Configuration", void 0);
|
|
105616
|
+
__decorate([
|
|
105617
|
+
Field({ nullable: true }),
|
|
105618
|
+
__metadata("design:type", String)
|
|
105619
|
+
], UpdateMJVectorDatabaseInput.prototype, "CredentialID", void 0);
|
|
102889
105620
|
__decorate([
|
|
102890
105621
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
102891
105622
|
__metadata("design:type", Array)
|