@memberjunction/server 5.0.0 → 5.1.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.
@@ -9078,16 +9078,6 @@ __decorate([
9078
9078
  Field({ nullable: true, description: `Human-readable notes and comments about this agent run step` }),
9079
9079
  __metadata("design:type", String)
9080
9080
  ], MJAIAgentRunStep_.prototype, "Comments", void 0);
9081
- __decorate([
9082
- Field({ nullable: true }),
9083
- MaxLength(510),
9084
- __metadata("design:type", String)
9085
- ], MJAIAgentRunStep_.prototype, "AgentRun", void 0);
9086
- __decorate([
9087
- Field({ nullable: true }),
9088
- MaxLength(510),
9089
- __metadata("design:type", String)
9090
- ], MJAIAgentRunStep_.prototype, "Parent", void 0);
9091
9081
  __decorate([
9092
9082
  Field({ nullable: true }),
9093
9083
  MaxLength(16),
@@ -21963,11 +21953,6 @@ __decorate([
21963
21953
  MaxLength(200),
21964
21954
  __metadata("design:type", String)
21965
21955
  ], MJAIResultCache_.prototype, "Configuration", void 0);
21966
- __decorate([
21967
- Field({ nullable: true }),
21968
- MaxLength(510),
21969
- __metadata("design:type", String)
21970
- ], MJAIResultCache_.prototype, "PromptRun", void 0);
21971
21956
  MJAIResultCache_ = __decorate([
21972
21957
  ObjectType({ description: `Stores cached results of AI prompts, including multiple runs for history and tracking purposes.` })
21973
21958
  ], MJAIResultCache_);
@@ -40031,10 +40016,6 @@ __decorate([
40031
40016
  MaxLength(10),
40032
40017
  __metadata("design:type", Date)
40033
40018
  ], MJConversationDetailArtifact_.prototype, "_mj__UpdatedAt", void 0);
40034
- __decorate([
40035
- Field(),
40036
- __metadata("design:type", String)
40037
- ], MJConversationDetailArtifact_.prototype, "ConversationDetail", void 0);
40038
40019
  __decorate([
40039
40020
  Field({ nullable: true }),
40040
40021
  MaxLength(510),
@@ -40649,10 +40630,6 @@ __decorate([
40649
40630
  MaxLength(10),
40650
40631
  __metadata("design:type", Date)
40651
40632
  ], MJConversationDetailRating_.prototype, "_mj__UpdatedAt", void 0);
40652
- __decorate([
40653
- Field(),
40654
- __metadata("design:type", String)
40655
- ], MJConversationDetailRating_.prototype, "ConversationDetail", void 0);
40656
40633
  __decorate([
40657
40634
  Field(),
40658
40635
  MaxLength(200),
@@ -41709,11 +41686,6 @@ __decorate([
41709
41686
  MaxLength(510),
41710
41687
  __metadata("design:type", String)
41711
41688
  ], MJConversation_.prototype, "Project", void 0);
41712
- __decorate([
41713
- Field({ nullable: true }),
41714
- MaxLength(510),
41715
- __metadata("design:type", String)
41716
- ], MJConversation_.prototype, "TestRun", void 0);
41717
41689
  __decorate([
41718
41690
  Field(() => [MJConversationDetail_]),
41719
41691
  __metadata("design:type", Array)
@@ -47309,11 +47281,6 @@ __decorate([
47309
47281
  MaxLength(10),
47310
47282
  __metadata("design:type", Date)
47311
47283
  ], MJDuplicateRunDetail_.prototype, "_mj__UpdatedAt", void 0);
47312
- __decorate([
47313
- Field(),
47314
- MaxLength(510),
47315
- __metadata("design:type", String)
47316
- ], MJDuplicateRunDetail_.prototype, "DuplicateRun", void 0);
47317
47284
  __decorate([
47318
47285
  Field(() => [MJDuplicateRunDetailMatch_]),
47319
47286
  __metadata("design:type", Array)
@@ -47973,11 +47940,6 @@ __decorate([
47973
47940
  MaxLength(10),
47974
47941
  __metadata("design:type", Date)
47975
47942
  ], MJEmployeeCompanyIntegration_.prototype, "_mj__UpdatedAt", void 0);
47976
- __decorate([
47977
- Field({ nullable: true }),
47978
- MaxLength(162),
47979
- __metadata("design:type", String)
47980
- ], MJEmployeeCompanyIntegration_.prototype, "Employee", void 0);
47981
47943
  __decorate([
47982
47944
  Field(),
47983
47945
  MaxLength(510),
@@ -48221,11 +48183,6 @@ __decorate([
48221
48183
  MaxLength(10),
48222
48184
  __metadata("design:type", Date)
48223
48185
  ], MJEmployeeRole_.prototype, "_mj__UpdatedAt", void 0);
48224
- __decorate([
48225
- Field({ nullable: true }),
48226
- MaxLength(162),
48227
- __metadata("design:type", String)
48228
- ], MJEmployeeRole_.prototype, "Employee", void 0);
48229
48186
  __decorate([
48230
48187
  Field(),
48231
48188
  MaxLength(100),
@@ -48453,11 +48410,6 @@ __decorate([
48453
48410
  MaxLength(10),
48454
48411
  __metadata("design:type", Date)
48455
48412
  ], MJEmployeeSkill_.prototype, "_mj__UpdatedAt", void 0);
48456
- __decorate([
48457
- Field({ nullable: true }),
48458
- MaxLength(162),
48459
- __metadata("design:type", String)
48460
- ], MJEmployeeSkill_.prototype, "Employee", void 0);
48461
48413
  __decorate([
48462
48414
  Field(),
48463
48415
  MaxLength(100),
@@ -52050,15 +52002,6 @@ __decorate([
52050
52002
  MaxLength(10),
52051
52003
  __metadata("design:type", Date)
52052
52004
  ], MJEntityActionFilter_.prototype, "_mj__UpdatedAt", void 0);
52053
- __decorate([
52054
- Field(),
52055
- MaxLength(850),
52056
- __metadata("design:type", String)
52057
- ], MJEntityActionFilter_.prototype, "EntityAction", void 0);
52058
- __decorate([
52059
- Field(),
52060
- __metadata("design:type", String)
52061
- ], MJEntityActionFilter_.prototype, "ActionFilter", void 0);
52062
52005
  MJEntityActionFilter_ = __decorate([
52063
52006
  ObjectType({ description: `Optional use. Maps Action Filters to specific EntityAction instances, specifying execution order and status. This allows for “pre-processing” before an Action actually is fired off, to check for various state/dirty/value conditions.` })
52064
52007
  ], MJEntityActionFilter_);
@@ -52557,11 +52500,6 @@ __decorate([
52557
52500
  MaxLength(10),
52558
52501
  __metadata("design:type", Date)
52559
52502
  ], MJEntityActionInvocation_.prototype, "_mj__UpdatedAt", void 0);
52560
- __decorate([
52561
- Field(),
52562
- MaxLength(850),
52563
- __metadata("design:type", String)
52564
- ], MJEntityActionInvocation_.prototype, "EntityAction", void 0);
52565
52503
  __decorate([
52566
52504
  Field(),
52567
52505
  MaxLength(510),
@@ -52810,11 +52748,6 @@ __decorate([
52810
52748
  MaxLength(10),
52811
52749
  __metadata("design:type", Date)
52812
52750
  ], MJEntityActionParam_.prototype, "_mj__UpdatedAt", void 0);
52813
- __decorate([
52814
- Field(),
52815
- MaxLength(850),
52816
- __metadata("design:type", String)
52817
- ], MJEntityActionParam_.prototype, "EntityAction", void 0);
52818
52751
  __decorate([
52819
52752
  Field(),
52820
52753
  MaxLength(510),
@@ -53766,11 +53699,6 @@ __decorate([
53766
53699
  MaxLength(10),
53767
53700
  __metadata("design:type", Date)
53768
53701
  ], MJEntityCommunicationField_.prototype, "_mj__UpdatedAt", void 0);
53769
- __decorate([
53770
- Field(),
53771
- MaxLength(200),
53772
- __metadata("design:type", String)
53773
- ], MJEntityCommunicationField_.prototype, "EntityCommunicationMessageType", void 0);
53774
53702
  MJEntityCommunicationField_ = __decorate([
53775
53703
  ObjectType({ description: `Mapping between entity fields and communication base message types with priority` })
53776
53704
  ], MJEntityCommunicationField_);
@@ -58721,16 +58649,6 @@ __decorate([
58721
58649
  MaxLength(10),
58722
58650
  __metadata("design:type", Date)
58723
58651
  ], MJErrorLog_.prototype, "_mj__UpdatedAt", void 0);
58724
- __decorate([
58725
- Field({ nullable: true }),
58726
- MaxLength(200),
58727
- __metadata("design:type", String)
58728
- ], MJErrorLog_.prototype, "CompanyIntegrationRun", void 0);
58729
- __decorate([
58730
- Field({ nullable: true }),
58731
- MaxLength(900),
58732
- __metadata("design:type", String)
58733
- ], MJErrorLog_.prototype, "CompanyIntegrationRunDetail", void 0);
58734
58652
  MJErrorLog_ = __decorate([
58735
58653
  ObjectType({ description: `Captures system errors, exceptions, and failures with stack traces, context, and debugging info.` })
58736
58654
  ], MJErrorLog_);
@@ -64526,11 +64444,6 @@ __decorate([
64526
64444
  MaxLength(510),
64527
64445
  __metadata("design:type", String)
64528
64446
  ], MJMCPServerConnectionTool_.prototype, "MCPServerConnection", void 0);
64529
- __decorate([
64530
- Field({ nullable: true }),
64531
- MaxLength(510),
64532
- __metadata("design:type", String)
64533
- ], MJMCPServerConnectionTool_.prototype, "MCPServerTool", void 0);
64534
64447
  MJMCPServerConnectionTool_ = __decorate([
64535
64448
  ObjectType()
64536
64449
  ], MJMCPServerConnectionTool_);
@@ -66319,11 +66232,6 @@ __decorate([
66319
66232
  MaxLength(510),
66320
66233
  __metadata("design:type", String)
66321
66234
  ], MJMCPToolExecutionLog_.prototype, "MCPServerConnection", void 0);
66322
- __decorate([
66323
- Field({ nullable: true }),
66324
- MaxLength(510),
66325
- __metadata("design:type", String)
66326
- ], MJMCPToolExecutionLog_.prototype, "MCPServerTool", void 0);
66327
66235
  __decorate([
66328
66236
  Field(),
66329
66237
  MaxLength(200),
@@ -68077,6 +67985,1145 @@ MJOAuthTokenResolver = __decorate([
68077
67985
  ], MJOAuthTokenResolver);
68078
67986
  export { MJOAuthTokenResolver };
68079
67987
  //****************************************************************************
67988
+ // ENTITY CLASS for MJ: Open App Dependencies
67989
+ //****************************************************************************
67990
+ let MJOpenAppDependency_ = class MJOpenAppDependency_ {
67991
+ };
67992
+ __decorate([
67993
+ Field(),
67994
+ MaxLength(16),
67995
+ __metadata("design:type", String)
67996
+ ], MJOpenAppDependency_.prototype, "ID", void 0);
67997
+ __decorate([
67998
+ Field(),
67999
+ MaxLength(16),
68000
+ __metadata("design:type", String)
68001
+ ], MJOpenAppDependency_.prototype, "OpenAppID", void 0);
68002
+ __decorate([
68003
+ Field({ description: `Name of the app that this app depends on (matches OpenApp.Name)` }),
68004
+ MaxLength(128),
68005
+ __metadata("design:type", String)
68006
+ ], MJOpenAppDependency_.prototype, "DependsOnAppName", void 0);
68007
+ __decorate([
68008
+ Field({ nullable: true }),
68009
+ MaxLength(16),
68010
+ __metadata("design:type", String)
68011
+ ], MJOpenAppDependency_.prototype, "DependsOnAppID", void 0);
68012
+ __decorate([
68013
+ Field({ description: `Semver range specifying which versions of the dependency are acceptable (e.g. ^1.0.0)` }),
68014
+ MaxLength(200),
68015
+ __metadata("design:type", String)
68016
+ ], MJOpenAppDependency_.prototype, "VersionRange", void 0);
68017
+ __decorate([
68018
+ Field({ nullable: true, description: `Actual installed version of the dependency (NULL if not yet installed)` }),
68019
+ MaxLength(100),
68020
+ __metadata("design:type", String)
68021
+ ], MJOpenAppDependency_.prototype, "InstalledVersion", void 0);
68022
+ __decorate([
68023
+ Field({ description: `Whether the dependency is satisfied: Satisfied, Missing, or Incompatible` }),
68024
+ MaxLength(40),
68025
+ __metadata("design:type", String)
68026
+ ], MJOpenAppDependency_.prototype, "Status", void 0);
68027
+ __decorate([
68028
+ Field(),
68029
+ MaxLength(10),
68030
+ __metadata("design:type", Date)
68031
+ ], MJOpenAppDependency_.prototype, "_mj__CreatedAt", void 0);
68032
+ __decorate([
68033
+ Field(),
68034
+ MaxLength(10),
68035
+ __metadata("design:type", Date)
68036
+ ], MJOpenAppDependency_.prototype, "_mj__UpdatedAt", void 0);
68037
+ __decorate([
68038
+ Field(),
68039
+ MaxLength(128),
68040
+ __metadata("design:type", String)
68041
+ ], MJOpenAppDependency_.prototype, "OpenApp", void 0);
68042
+ __decorate([
68043
+ Field({ nullable: true }),
68044
+ MaxLength(128),
68045
+ __metadata("design:type", String)
68046
+ ], MJOpenAppDependency_.prototype, "DependsOnApp", void 0);
68047
+ MJOpenAppDependency_ = __decorate([
68048
+ ObjectType({ description: `Inter-app dependency relationships between installed Open Apps` })
68049
+ ], MJOpenAppDependency_);
68050
+ export { MJOpenAppDependency_ };
68051
+ //****************************************************************************
68052
+ // INPUT TYPE for MJ: Open App Dependencies
68053
+ //****************************************************************************
68054
+ let CreateMJOpenAppDependencyInput = class CreateMJOpenAppDependencyInput {
68055
+ };
68056
+ __decorate([
68057
+ Field({ nullable: true }),
68058
+ __metadata("design:type", String)
68059
+ ], CreateMJOpenAppDependencyInput.prototype, "ID", void 0);
68060
+ __decorate([
68061
+ Field({ nullable: true }),
68062
+ __metadata("design:type", String)
68063
+ ], CreateMJOpenAppDependencyInput.prototype, "OpenAppID", void 0);
68064
+ __decorate([
68065
+ Field({ nullable: true }),
68066
+ __metadata("design:type", String)
68067
+ ], CreateMJOpenAppDependencyInput.prototype, "DependsOnAppName", void 0);
68068
+ __decorate([
68069
+ Field({ nullable: true }),
68070
+ __metadata("design:type", String)
68071
+ ], CreateMJOpenAppDependencyInput.prototype, "DependsOnAppID", void 0);
68072
+ __decorate([
68073
+ Field({ nullable: true }),
68074
+ __metadata("design:type", String)
68075
+ ], CreateMJOpenAppDependencyInput.prototype, "VersionRange", void 0);
68076
+ __decorate([
68077
+ Field({ nullable: true }),
68078
+ __metadata("design:type", String)
68079
+ ], CreateMJOpenAppDependencyInput.prototype, "InstalledVersion", void 0);
68080
+ __decorate([
68081
+ Field({ nullable: true }),
68082
+ __metadata("design:type", String)
68083
+ ], CreateMJOpenAppDependencyInput.prototype, "Status", void 0);
68084
+ CreateMJOpenAppDependencyInput = __decorate([
68085
+ InputType()
68086
+ ], CreateMJOpenAppDependencyInput);
68087
+ export { CreateMJOpenAppDependencyInput };
68088
+ //****************************************************************************
68089
+ // INPUT TYPE for MJ: Open App Dependencies
68090
+ //****************************************************************************
68091
+ let UpdateMJOpenAppDependencyInput = class UpdateMJOpenAppDependencyInput {
68092
+ };
68093
+ __decorate([
68094
+ Field(),
68095
+ __metadata("design:type", String)
68096
+ ], UpdateMJOpenAppDependencyInput.prototype, "ID", void 0);
68097
+ __decorate([
68098
+ Field({ nullable: true }),
68099
+ __metadata("design:type", String)
68100
+ ], UpdateMJOpenAppDependencyInput.prototype, "OpenAppID", void 0);
68101
+ __decorate([
68102
+ Field({ nullable: true }),
68103
+ __metadata("design:type", String)
68104
+ ], UpdateMJOpenAppDependencyInput.prototype, "DependsOnAppName", void 0);
68105
+ __decorate([
68106
+ Field({ nullable: true }),
68107
+ __metadata("design:type", String)
68108
+ ], UpdateMJOpenAppDependencyInput.prototype, "DependsOnAppID", void 0);
68109
+ __decorate([
68110
+ Field({ nullable: true }),
68111
+ __metadata("design:type", String)
68112
+ ], UpdateMJOpenAppDependencyInput.prototype, "VersionRange", void 0);
68113
+ __decorate([
68114
+ Field({ nullable: true }),
68115
+ __metadata("design:type", String)
68116
+ ], UpdateMJOpenAppDependencyInput.prototype, "InstalledVersion", void 0);
68117
+ __decorate([
68118
+ Field({ nullable: true }),
68119
+ __metadata("design:type", String)
68120
+ ], UpdateMJOpenAppDependencyInput.prototype, "Status", void 0);
68121
+ __decorate([
68122
+ Field(() => [KeyValuePairInput], { nullable: true }),
68123
+ __metadata("design:type", Array)
68124
+ ], UpdateMJOpenAppDependencyInput.prototype, "OldValues___", void 0);
68125
+ UpdateMJOpenAppDependencyInput = __decorate([
68126
+ InputType()
68127
+ ], UpdateMJOpenAppDependencyInput);
68128
+ export { UpdateMJOpenAppDependencyInput };
68129
+ //****************************************************************************
68130
+ // RESOLVER for MJ: Open App Dependencies
68131
+ //****************************************************************************
68132
+ let RunMJOpenAppDependencyViewResult = class RunMJOpenAppDependencyViewResult {
68133
+ };
68134
+ __decorate([
68135
+ Field(() => [MJOpenAppDependency_]),
68136
+ __metadata("design:type", Array)
68137
+ ], RunMJOpenAppDependencyViewResult.prototype, "Results", void 0);
68138
+ __decorate([
68139
+ Field(() => String, { nullable: true }),
68140
+ __metadata("design:type", String)
68141
+ ], RunMJOpenAppDependencyViewResult.prototype, "UserViewRunID", void 0);
68142
+ __decorate([
68143
+ Field(() => Int, { nullable: true }),
68144
+ __metadata("design:type", Number)
68145
+ ], RunMJOpenAppDependencyViewResult.prototype, "RowCount", void 0);
68146
+ __decorate([
68147
+ Field(() => Int, { nullable: true }),
68148
+ __metadata("design:type", Number)
68149
+ ], RunMJOpenAppDependencyViewResult.prototype, "TotalRowCount", void 0);
68150
+ __decorate([
68151
+ Field(() => Int, { nullable: true }),
68152
+ __metadata("design:type", Number)
68153
+ ], RunMJOpenAppDependencyViewResult.prototype, "ExecutionTime", void 0);
68154
+ __decorate([
68155
+ Field({ nullable: true }),
68156
+ __metadata("design:type", String)
68157
+ ], RunMJOpenAppDependencyViewResult.prototype, "ErrorMessage", void 0);
68158
+ __decorate([
68159
+ Field(() => Boolean, { nullable: false }),
68160
+ __metadata("design:type", Boolean)
68161
+ ], RunMJOpenAppDependencyViewResult.prototype, "Success", void 0);
68162
+ RunMJOpenAppDependencyViewResult = __decorate([
68163
+ ObjectType()
68164
+ ], RunMJOpenAppDependencyViewResult);
68165
+ export { RunMJOpenAppDependencyViewResult };
68166
+ let MJOpenAppDependencyResolver = class MJOpenAppDependencyResolver extends ResolverBase {
68167
+ async RunMJOpenAppDependencyViewByID(input, { providers, userPayload }, pubSub) {
68168
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68169
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
68170
+ }
68171
+ async RunMJOpenAppDependencyViewByName(input, { providers, userPayload }, pubSub) {
68172
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68173
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
68174
+ }
68175
+ async RunMJOpenAppDependencyDynamicView(input, { providers, userPayload }, pubSub) {
68176
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68177
+ input.EntityName = 'MJ: Open App Dependencies';
68178
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
68179
+ }
68180
+ async MJOpenAppDependency(ID, { dataSources, userPayload, providers }, pubSub) {
68181
+ this.CheckUserReadPermissions('MJ: Open App Dependencies', userPayload);
68182
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68183
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
68184
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwOpenAppDependencies] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Dependencies', userPayload, EntityPermissionType.Read, 'AND');
68185
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
68186
+ const result = await this.MapFieldNamesToCodeNames('MJ: Open App Dependencies', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
68187
+ return result;
68188
+ }
68189
+ async CreateMJOpenAppDependency(input, { providers, userPayload }, pubSub) {
68190
+ const provider = GetReadWriteProvider(providers);
68191
+ return this.CreateRecord('MJ: Open App Dependencies', input, provider, userPayload, pubSub);
68192
+ }
68193
+ async UpdateMJOpenAppDependency(input, { providers, userPayload }, pubSub) {
68194
+ const provider = GetReadWriteProvider(providers);
68195
+ return this.UpdateRecord('MJ: Open App Dependencies', input, provider, userPayload, pubSub);
68196
+ }
68197
+ async DeleteMJOpenAppDependency(ID, options, { providers, userPayload }, pubSub) {
68198
+ const provider = GetReadWriteProvider(providers);
68199
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
68200
+ return this.DeleteRecord('MJ: Open App Dependencies', key, options, provider, userPayload, pubSub);
68201
+ }
68202
+ };
68203
+ __decorate([
68204
+ Query(() => RunMJOpenAppDependencyViewResult),
68205
+ __param(0, Arg('input', () => RunViewByIDInput)),
68206
+ __param(1, Ctx()),
68207
+ __param(2, PubSub()),
68208
+ __metadata("design:type", Function),
68209
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
68210
+ __metadata("design:returntype", Promise)
68211
+ ], MJOpenAppDependencyResolver.prototype, "RunMJOpenAppDependencyViewByID", null);
68212
+ __decorate([
68213
+ Query(() => RunMJOpenAppDependencyViewResult),
68214
+ __param(0, Arg('input', () => RunViewByNameInput)),
68215
+ __param(1, Ctx()),
68216
+ __param(2, PubSub()),
68217
+ __metadata("design:type", Function),
68218
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
68219
+ __metadata("design:returntype", Promise)
68220
+ ], MJOpenAppDependencyResolver.prototype, "RunMJOpenAppDependencyViewByName", null);
68221
+ __decorate([
68222
+ Query(() => RunMJOpenAppDependencyViewResult),
68223
+ __param(0, Arg('input', () => RunDynamicViewInput)),
68224
+ __param(1, Ctx()),
68225
+ __param(2, PubSub()),
68226
+ __metadata("design:type", Function),
68227
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
68228
+ __metadata("design:returntype", Promise)
68229
+ ], MJOpenAppDependencyResolver.prototype, "RunMJOpenAppDependencyDynamicView", null);
68230
+ __decorate([
68231
+ Query(() => MJOpenAppDependency_, { nullable: true }),
68232
+ __param(0, Arg('ID', () => String)),
68233
+ __param(1, Ctx()),
68234
+ __param(2, PubSub()),
68235
+ __metadata("design:type", Function),
68236
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
68237
+ __metadata("design:returntype", Promise)
68238
+ ], MJOpenAppDependencyResolver.prototype, "MJOpenAppDependency", null);
68239
+ __decorate([
68240
+ Mutation(() => MJOpenAppDependency_),
68241
+ __param(0, Arg('input', () => CreateMJOpenAppDependencyInput)),
68242
+ __param(1, Ctx()),
68243
+ __param(2, PubSub()),
68244
+ __metadata("design:type", Function),
68245
+ __metadata("design:paramtypes", [CreateMJOpenAppDependencyInput, Object, PubSubEngine]),
68246
+ __metadata("design:returntype", Promise)
68247
+ ], MJOpenAppDependencyResolver.prototype, "CreateMJOpenAppDependency", null);
68248
+ __decorate([
68249
+ Mutation(() => MJOpenAppDependency_),
68250
+ __param(0, Arg('input', () => UpdateMJOpenAppDependencyInput)),
68251
+ __param(1, Ctx()),
68252
+ __param(2, PubSub()),
68253
+ __metadata("design:type", Function),
68254
+ __metadata("design:paramtypes", [UpdateMJOpenAppDependencyInput, Object, PubSubEngine]),
68255
+ __metadata("design:returntype", Promise)
68256
+ ], MJOpenAppDependencyResolver.prototype, "UpdateMJOpenAppDependency", null);
68257
+ __decorate([
68258
+ Mutation(() => MJOpenAppDependency_),
68259
+ __param(0, Arg('ID', () => String)),
68260
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
68261
+ __param(2, Ctx()),
68262
+ __param(3, PubSub()),
68263
+ __metadata("design:type", Function),
68264
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
68265
+ __metadata("design:returntype", Promise)
68266
+ ], MJOpenAppDependencyResolver.prototype, "DeleteMJOpenAppDependency", null);
68267
+ MJOpenAppDependencyResolver = __decorate([
68268
+ Resolver(MJOpenAppDependency_)
68269
+ ], MJOpenAppDependencyResolver);
68270
+ export { MJOpenAppDependencyResolver };
68271
+ //****************************************************************************
68272
+ // ENTITY CLASS for MJ: Open App Install Histories
68273
+ //****************************************************************************
68274
+ let MJOpenAppInstallHistory_ = class MJOpenAppInstallHistory_ {
68275
+ };
68276
+ __decorate([
68277
+ Field(),
68278
+ MaxLength(16),
68279
+ __metadata("design:type", String)
68280
+ ], MJOpenAppInstallHistory_.prototype, "ID", void 0);
68281
+ __decorate([
68282
+ Field(),
68283
+ MaxLength(16),
68284
+ __metadata("design:type", String)
68285
+ ], MJOpenAppInstallHistory_.prototype, "OpenAppID", void 0);
68286
+ __decorate([
68287
+ Field({ description: `Semver version that was installed or upgraded to in this operation` }),
68288
+ MaxLength(100),
68289
+ __metadata("design:type", String)
68290
+ ], MJOpenAppInstallHistory_.prototype, "Version", void 0);
68291
+ __decorate([
68292
+ Field({ nullable: true, description: `Version that was installed before this operation (NULL for initial installs)` }),
68293
+ MaxLength(100),
68294
+ __metadata("design:type", String)
68295
+ ], MJOpenAppInstallHistory_.prototype, "PreviousVersion", void 0);
68296
+ __decorate([
68297
+ Field({ description: `Type of operation performed: Install, Upgrade, or Remove` }),
68298
+ MaxLength(40),
68299
+ __metadata("design:type", String)
68300
+ ], MJOpenAppInstallHistory_.prototype, "Action", void 0);
68301
+ __decorate([
68302
+ Field({ description: `Snapshot of the mj-app.json manifest at the time of this operation` }),
68303
+ __metadata("design:type", String)
68304
+ ], MJOpenAppInstallHistory_.prototype, "ManifestJSON", void 0);
68305
+ __decorate([
68306
+ Field({ nullable: true, description: `Human-readable summary of what happened during this operation` }),
68307
+ __metadata("design:type", String)
68308
+ ], MJOpenAppInstallHistory_.prototype, "Summary", void 0);
68309
+ __decorate([
68310
+ Field(),
68311
+ MaxLength(16),
68312
+ __metadata("design:type", String)
68313
+ ], MJOpenAppInstallHistory_.prototype, "ExecutedByUserID", void 0);
68314
+ __decorate([
68315
+ Field(() => Int, { nullable: true, description: `Total wall-clock seconds the operation took to complete` }),
68316
+ __metadata("design:type", Number)
68317
+ ], MJOpenAppInstallHistory_.prototype, "DurationSeconds", void 0);
68318
+ __decorate([
68319
+ Field({ nullable: true, description: `Timestamp when the operation began` }),
68320
+ MaxLength(10),
68321
+ __metadata("design:type", Date)
68322
+ ], MJOpenAppInstallHistory_.prototype, "StartedAt", void 0);
68323
+ __decorate([
68324
+ Field({ nullable: true, description: `Timestamp when the operation completed (success or failure)` }),
68325
+ MaxLength(10),
68326
+ __metadata("design:type", Date)
68327
+ ], MJOpenAppInstallHistory_.prototype, "EndedAt", void 0);
68328
+ __decorate([
68329
+ Field(() => Boolean, { description: `Whether the operation completed successfully (1) or failed (0)` }),
68330
+ __metadata("design:type", Boolean)
68331
+ ], MJOpenAppInstallHistory_.prototype, "Success", void 0);
68332
+ __decorate([
68333
+ Field({ nullable: true, description: `Detailed error message if the operation failed` }),
68334
+ __metadata("design:type", String)
68335
+ ], MJOpenAppInstallHistory_.prototype, "ErrorMessage", void 0);
68336
+ __decorate([
68337
+ Field({ nullable: true, description: `Which phase of the operation failed: Schema, Migration, Packages, Config, Hooks, or Record` }),
68338
+ MaxLength(100),
68339
+ __metadata("design:type", String)
68340
+ ], MJOpenAppInstallHistory_.prototype, "ErrorPhase", void 0);
68341
+ __decorate([
68342
+ Field(),
68343
+ MaxLength(10),
68344
+ __metadata("design:type", Date)
68345
+ ], MJOpenAppInstallHistory_.prototype, "_mj__CreatedAt", void 0);
68346
+ __decorate([
68347
+ Field(),
68348
+ MaxLength(10),
68349
+ __metadata("design:type", Date)
68350
+ ], MJOpenAppInstallHistory_.prototype, "_mj__UpdatedAt", void 0);
68351
+ __decorate([
68352
+ Field(),
68353
+ MaxLength(128),
68354
+ __metadata("design:type", String)
68355
+ ], MJOpenAppInstallHistory_.prototype, "OpenApp", void 0);
68356
+ __decorate([
68357
+ Field(),
68358
+ MaxLength(200),
68359
+ __metadata("design:type", String)
68360
+ ], MJOpenAppInstallHistory_.prototype, "ExecutedByUser", void 0);
68361
+ MJOpenAppInstallHistory_ = __decorate([
68362
+ ObjectType({ description: `Audit trail of every install, upgrade, and removal for Open Apps` })
68363
+ ], MJOpenAppInstallHistory_);
68364
+ export { MJOpenAppInstallHistory_ };
68365
+ //****************************************************************************
68366
+ // INPUT TYPE for MJ: Open App Install Histories
68367
+ //****************************************************************************
68368
+ let CreateMJOpenAppInstallHistoryInput = class CreateMJOpenAppInstallHistoryInput {
68369
+ };
68370
+ __decorate([
68371
+ Field({ nullable: true }),
68372
+ __metadata("design:type", String)
68373
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "ID", void 0);
68374
+ __decorate([
68375
+ Field({ nullable: true }),
68376
+ __metadata("design:type", String)
68377
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "OpenAppID", void 0);
68378
+ __decorate([
68379
+ Field({ nullable: true }),
68380
+ __metadata("design:type", String)
68381
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "Version", void 0);
68382
+ __decorate([
68383
+ Field({ nullable: true }),
68384
+ __metadata("design:type", String)
68385
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "PreviousVersion", void 0);
68386
+ __decorate([
68387
+ Field({ nullable: true }),
68388
+ __metadata("design:type", String)
68389
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "Action", void 0);
68390
+ __decorate([
68391
+ Field({ nullable: true }),
68392
+ __metadata("design:type", String)
68393
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "ManifestJSON", void 0);
68394
+ __decorate([
68395
+ Field({ nullable: true }),
68396
+ __metadata("design:type", String)
68397
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "Summary", void 0);
68398
+ __decorate([
68399
+ Field({ nullable: true }),
68400
+ __metadata("design:type", String)
68401
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "ExecutedByUserID", void 0);
68402
+ __decorate([
68403
+ Field(() => Int, { nullable: true }),
68404
+ __metadata("design:type", Number)
68405
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "DurationSeconds", void 0);
68406
+ __decorate([
68407
+ Field({ nullable: true }),
68408
+ __metadata("design:type", Date)
68409
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "StartedAt", void 0);
68410
+ __decorate([
68411
+ Field({ nullable: true }),
68412
+ __metadata("design:type", Date)
68413
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "EndedAt", void 0);
68414
+ __decorate([
68415
+ Field(() => Boolean, { nullable: true }),
68416
+ __metadata("design:type", Boolean)
68417
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "Success", void 0);
68418
+ __decorate([
68419
+ Field({ nullable: true }),
68420
+ __metadata("design:type", String)
68421
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "ErrorMessage", void 0);
68422
+ __decorate([
68423
+ Field({ nullable: true }),
68424
+ __metadata("design:type", String)
68425
+ ], CreateMJOpenAppInstallHistoryInput.prototype, "ErrorPhase", void 0);
68426
+ CreateMJOpenAppInstallHistoryInput = __decorate([
68427
+ InputType()
68428
+ ], CreateMJOpenAppInstallHistoryInput);
68429
+ export { CreateMJOpenAppInstallHistoryInput };
68430
+ //****************************************************************************
68431
+ // INPUT TYPE for MJ: Open App Install Histories
68432
+ //****************************************************************************
68433
+ let UpdateMJOpenAppInstallHistoryInput = class UpdateMJOpenAppInstallHistoryInput {
68434
+ };
68435
+ __decorate([
68436
+ Field(),
68437
+ __metadata("design:type", String)
68438
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "ID", void 0);
68439
+ __decorate([
68440
+ Field({ nullable: true }),
68441
+ __metadata("design:type", String)
68442
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "OpenAppID", void 0);
68443
+ __decorate([
68444
+ Field({ nullable: true }),
68445
+ __metadata("design:type", String)
68446
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "Version", void 0);
68447
+ __decorate([
68448
+ Field({ nullable: true }),
68449
+ __metadata("design:type", String)
68450
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "PreviousVersion", void 0);
68451
+ __decorate([
68452
+ Field({ nullable: true }),
68453
+ __metadata("design:type", String)
68454
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "Action", void 0);
68455
+ __decorate([
68456
+ Field({ nullable: true }),
68457
+ __metadata("design:type", String)
68458
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "ManifestJSON", void 0);
68459
+ __decorate([
68460
+ Field({ nullable: true }),
68461
+ __metadata("design:type", String)
68462
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "Summary", void 0);
68463
+ __decorate([
68464
+ Field({ nullable: true }),
68465
+ __metadata("design:type", String)
68466
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "ExecutedByUserID", void 0);
68467
+ __decorate([
68468
+ Field(() => Int, { nullable: true }),
68469
+ __metadata("design:type", Number)
68470
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "DurationSeconds", void 0);
68471
+ __decorate([
68472
+ Field({ nullable: true }),
68473
+ __metadata("design:type", Date)
68474
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "StartedAt", void 0);
68475
+ __decorate([
68476
+ Field({ nullable: true }),
68477
+ __metadata("design:type", Date)
68478
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "EndedAt", void 0);
68479
+ __decorate([
68480
+ Field(() => Boolean, { nullable: true }),
68481
+ __metadata("design:type", Boolean)
68482
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "Success", void 0);
68483
+ __decorate([
68484
+ Field({ nullable: true }),
68485
+ __metadata("design:type", String)
68486
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "ErrorMessage", void 0);
68487
+ __decorate([
68488
+ Field({ nullable: true }),
68489
+ __metadata("design:type", String)
68490
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "ErrorPhase", void 0);
68491
+ __decorate([
68492
+ Field(() => [KeyValuePairInput], { nullable: true }),
68493
+ __metadata("design:type", Array)
68494
+ ], UpdateMJOpenAppInstallHistoryInput.prototype, "OldValues___", void 0);
68495
+ UpdateMJOpenAppInstallHistoryInput = __decorate([
68496
+ InputType()
68497
+ ], UpdateMJOpenAppInstallHistoryInput);
68498
+ export { UpdateMJOpenAppInstallHistoryInput };
68499
+ //****************************************************************************
68500
+ // RESOLVER for MJ: Open App Install Histories
68501
+ //****************************************************************************
68502
+ let RunMJOpenAppInstallHistoryViewResult = class RunMJOpenAppInstallHistoryViewResult {
68503
+ };
68504
+ __decorate([
68505
+ Field(() => [MJOpenAppInstallHistory_]),
68506
+ __metadata("design:type", Array)
68507
+ ], RunMJOpenAppInstallHistoryViewResult.prototype, "Results", void 0);
68508
+ __decorate([
68509
+ Field(() => String, { nullable: true }),
68510
+ __metadata("design:type", String)
68511
+ ], RunMJOpenAppInstallHistoryViewResult.prototype, "UserViewRunID", void 0);
68512
+ __decorate([
68513
+ Field(() => Int, { nullable: true }),
68514
+ __metadata("design:type", Number)
68515
+ ], RunMJOpenAppInstallHistoryViewResult.prototype, "RowCount", void 0);
68516
+ __decorate([
68517
+ Field(() => Int, { nullable: true }),
68518
+ __metadata("design:type", Number)
68519
+ ], RunMJOpenAppInstallHistoryViewResult.prototype, "TotalRowCount", void 0);
68520
+ __decorate([
68521
+ Field(() => Int, { nullable: true }),
68522
+ __metadata("design:type", Number)
68523
+ ], RunMJOpenAppInstallHistoryViewResult.prototype, "ExecutionTime", void 0);
68524
+ __decorate([
68525
+ Field({ nullable: true }),
68526
+ __metadata("design:type", String)
68527
+ ], RunMJOpenAppInstallHistoryViewResult.prototype, "ErrorMessage", void 0);
68528
+ __decorate([
68529
+ Field(() => Boolean, { nullable: false }),
68530
+ __metadata("design:type", Boolean)
68531
+ ], RunMJOpenAppInstallHistoryViewResult.prototype, "Success", void 0);
68532
+ RunMJOpenAppInstallHistoryViewResult = __decorate([
68533
+ ObjectType()
68534
+ ], RunMJOpenAppInstallHistoryViewResult);
68535
+ export { RunMJOpenAppInstallHistoryViewResult };
68536
+ let MJOpenAppInstallHistoryResolver = class MJOpenAppInstallHistoryResolver extends ResolverBase {
68537
+ async RunMJOpenAppInstallHistoryViewByID(input, { providers, userPayload }, pubSub) {
68538
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68539
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
68540
+ }
68541
+ async RunMJOpenAppInstallHistoryViewByName(input, { providers, userPayload }, pubSub) {
68542
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68543
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
68544
+ }
68545
+ async RunMJOpenAppInstallHistoryDynamicView(input, { providers, userPayload }, pubSub) {
68546
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68547
+ input.EntityName = 'MJ: Open App Install Histories';
68548
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
68549
+ }
68550
+ async MJOpenAppInstallHistory(ID, { dataSources, userPayload, providers }, pubSub) {
68551
+ this.CheckUserReadPermissions('MJ: Open App Install Histories', userPayload);
68552
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68553
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
68554
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwOpenAppInstallHistories] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Install Histories', userPayload, EntityPermissionType.Read, 'AND');
68555
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
68556
+ const result = await this.MapFieldNamesToCodeNames('MJ: Open App Install Histories', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
68557
+ return result;
68558
+ }
68559
+ async CreateMJOpenAppInstallHistory(input, { providers, userPayload }, pubSub) {
68560
+ const provider = GetReadWriteProvider(providers);
68561
+ return this.CreateRecord('MJ: Open App Install Histories', input, provider, userPayload, pubSub);
68562
+ }
68563
+ async UpdateMJOpenAppInstallHistory(input, { providers, userPayload }, pubSub) {
68564
+ const provider = GetReadWriteProvider(providers);
68565
+ return this.UpdateRecord('MJ: Open App Install Histories', input, provider, userPayload, pubSub);
68566
+ }
68567
+ async DeleteMJOpenAppInstallHistory(ID, options, { providers, userPayload }, pubSub) {
68568
+ const provider = GetReadWriteProvider(providers);
68569
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
68570
+ return this.DeleteRecord('MJ: Open App Install Histories', key, options, provider, userPayload, pubSub);
68571
+ }
68572
+ };
68573
+ __decorate([
68574
+ Query(() => RunMJOpenAppInstallHistoryViewResult),
68575
+ __param(0, Arg('input', () => RunViewByIDInput)),
68576
+ __param(1, Ctx()),
68577
+ __param(2, PubSub()),
68578
+ __metadata("design:type", Function),
68579
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
68580
+ __metadata("design:returntype", Promise)
68581
+ ], MJOpenAppInstallHistoryResolver.prototype, "RunMJOpenAppInstallHistoryViewByID", null);
68582
+ __decorate([
68583
+ Query(() => RunMJOpenAppInstallHistoryViewResult),
68584
+ __param(0, Arg('input', () => RunViewByNameInput)),
68585
+ __param(1, Ctx()),
68586
+ __param(2, PubSub()),
68587
+ __metadata("design:type", Function),
68588
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
68589
+ __metadata("design:returntype", Promise)
68590
+ ], MJOpenAppInstallHistoryResolver.prototype, "RunMJOpenAppInstallHistoryViewByName", null);
68591
+ __decorate([
68592
+ Query(() => RunMJOpenAppInstallHistoryViewResult),
68593
+ __param(0, Arg('input', () => RunDynamicViewInput)),
68594
+ __param(1, Ctx()),
68595
+ __param(2, PubSub()),
68596
+ __metadata("design:type", Function),
68597
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
68598
+ __metadata("design:returntype", Promise)
68599
+ ], MJOpenAppInstallHistoryResolver.prototype, "RunMJOpenAppInstallHistoryDynamicView", null);
68600
+ __decorate([
68601
+ Query(() => MJOpenAppInstallHistory_, { nullable: true }),
68602
+ __param(0, Arg('ID', () => String)),
68603
+ __param(1, Ctx()),
68604
+ __param(2, PubSub()),
68605
+ __metadata("design:type", Function),
68606
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
68607
+ __metadata("design:returntype", Promise)
68608
+ ], MJOpenAppInstallHistoryResolver.prototype, "MJOpenAppInstallHistory", null);
68609
+ __decorate([
68610
+ Mutation(() => MJOpenAppInstallHistory_),
68611
+ __param(0, Arg('input', () => CreateMJOpenAppInstallHistoryInput)),
68612
+ __param(1, Ctx()),
68613
+ __param(2, PubSub()),
68614
+ __metadata("design:type", Function),
68615
+ __metadata("design:paramtypes", [CreateMJOpenAppInstallHistoryInput, Object, PubSubEngine]),
68616
+ __metadata("design:returntype", Promise)
68617
+ ], MJOpenAppInstallHistoryResolver.prototype, "CreateMJOpenAppInstallHistory", null);
68618
+ __decorate([
68619
+ Mutation(() => MJOpenAppInstallHistory_),
68620
+ __param(0, Arg('input', () => UpdateMJOpenAppInstallHistoryInput)),
68621
+ __param(1, Ctx()),
68622
+ __param(2, PubSub()),
68623
+ __metadata("design:type", Function),
68624
+ __metadata("design:paramtypes", [UpdateMJOpenAppInstallHistoryInput, Object, PubSubEngine]),
68625
+ __metadata("design:returntype", Promise)
68626
+ ], MJOpenAppInstallHistoryResolver.prototype, "UpdateMJOpenAppInstallHistory", null);
68627
+ __decorate([
68628
+ Mutation(() => MJOpenAppInstallHistory_),
68629
+ __param(0, Arg('ID', () => String)),
68630
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
68631
+ __param(2, Ctx()),
68632
+ __param(3, PubSub()),
68633
+ __metadata("design:type", Function),
68634
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
68635
+ __metadata("design:returntype", Promise)
68636
+ ], MJOpenAppInstallHistoryResolver.prototype, "DeleteMJOpenAppInstallHistory", null);
68637
+ MJOpenAppInstallHistoryResolver = __decorate([
68638
+ Resolver(MJOpenAppInstallHistory_)
68639
+ ], MJOpenAppInstallHistoryResolver);
68640
+ export { MJOpenAppInstallHistoryResolver };
68641
+ //****************************************************************************
68642
+ // ENTITY CLASS for MJ: Open Apps
68643
+ //****************************************************************************
68644
+ let MJOpenApp_ = class MJOpenApp_ {
68645
+ };
68646
+ __decorate([
68647
+ Field(),
68648
+ MaxLength(16),
68649
+ __metadata("design:type", String)
68650
+ ], MJOpenApp_.prototype, "ID", void 0);
68651
+ __decorate([
68652
+ Field({ description: `Unique lowercase identifier for the app (e.g. acme-crm). Must contain only lowercase letters, digits, and hyphens.` }),
68653
+ MaxLength(128),
68654
+ __metadata("design:type", String)
68655
+ ], MJOpenApp_.prototype, "Name", void 0);
68656
+ __decorate([
68657
+ Field({ description: `Human-readable display name shown in the UI (e.g. Acme CRM)` }),
68658
+ MaxLength(400),
68659
+ __metadata("design:type", String)
68660
+ ], MJOpenApp_.prototype, "DisplayName", void 0);
68661
+ __decorate([
68662
+ Field({ nullable: true, description: `Optional long description of what this app does` }),
68663
+ __metadata("design:type", String)
68664
+ ], MJOpenApp_.prototype, "Description", void 0);
68665
+ __decorate([
68666
+ Field({ description: `Currently installed semver version string (e.g. 1.2.3)` }),
68667
+ MaxLength(100),
68668
+ __metadata("design:type", String)
68669
+ ], MJOpenApp_.prototype, "Version", void 0);
68670
+ __decorate([
68671
+ Field({ description: `Name of the organization or individual who published the app` }),
68672
+ MaxLength(400),
68673
+ __metadata("design:type", String)
68674
+ ], MJOpenApp_.prototype, "Publisher", void 0);
68675
+ __decorate([
68676
+ Field({ nullable: true, description: `Optional contact email for the publisher` }),
68677
+ MaxLength(510),
68678
+ __metadata("design:type", String)
68679
+ ], MJOpenApp_.prototype, "PublisherEmail", void 0);
68680
+ __decorate([
68681
+ Field({ nullable: true, description: `Optional website URL for the publisher` }),
68682
+ MaxLength(1000),
68683
+ __metadata("design:type", String)
68684
+ ], MJOpenApp_.prototype, "PublisherURL", void 0);
68685
+ __decorate([
68686
+ Field({ description: `GitHub repository URL where this app is hosted` }),
68687
+ MaxLength(1000),
68688
+ __metadata("design:type", String)
68689
+ ], MJOpenApp_.prototype, "RepositoryURL", void 0);
68690
+ __decorate([
68691
+ Field({ nullable: true, description: `Database schema name used by this app for its tables and objects. Unique per instance.` }),
68692
+ MaxLength(256),
68693
+ __metadata("design:type", String)
68694
+ ], MJOpenApp_.prototype, "SchemaName", void 0);
68695
+ __decorate([
68696
+ Field({ description: `Semver range specifying which MJ versions this app is compatible with (e.g. >=4.0.0 <5.0.0)` }),
68697
+ MaxLength(200),
68698
+ __metadata("design:type", String)
68699
+ ], MJOpenApp_.prototype, "MJVersionRange", void 0);
68700
+ __decorate([
68701
+ Field({ nullable: true, description: `SPDX license identifier for this app (e.g. MIT, Apache-2.0)` }),
68702
+ MaxLength(100),
68703
+ __metadata("design:type", String)
68704
+ ], MJOpenApp_.prototype, "License", void 0);
68705
+ __decorate([
68706
+ Field({ nullable: true, description: `Optional icon identifier (e.g. Font Awesome class) for UI display` }),
68707
+ MaxLength(200),
68708
+ __metadata("design:type", String)
68709
+ ], MJOpenApp_.prototype, "Icon", void 0);
68710
+ __decorate([
68711
+ Field({ nullable: true, description: `Optional hex color code for branding in the UI (e.g. #FF5733)` }),
68712
+ MaxLength(40),
68713
+ __metadata("design:type", String)
68714
+ ], MJOpenApp_.prototype, "Color", void 0);
68715
+ __decorate([
68716
+ Field({ description: `Full mj-app.json manifest stored as JSON for the currently installed version` }),
68717
+ __metadata("design:type", String)
68718
+ ], MJOpenApp_.prototype, "ManifestJSON", void 0);
68719
+ __decorate([
68720
+ Field({ nullable: true, description: `Optional JSON Schema defining the configuration options this app accepts` }),
68721
+ __metadata("design:type", String)
68722
+ ], MJOpenApp_.prototype, "ConfigurationSchemaJSON", void 0);
68723
+ __decorate([
68724
+ Field(),
68725
+ MaxLength(16),
68726
+ __metadata("design:type", String)
68727
+ ], MJOpenApp_.prototype, "InstalledByUserID", void 0);
68728
+ __decorate([
68729
+ Field({ description: `Current lifecycle status of the app: Active, Disabled, Error, Installing, Upgrading, Removing, or Removed` }),
68730
+ MaxLength(40),
68731
+ __metadata("design:type", String)
68732
+ ], MJOpenApp_.prototype, "Status", void 0);
68733
+ __decorate([
68734
+ Field(),
68735
+ MaxLength(10),
68736
+ __metadata("design:type", Date)
68737
+ ], MJOpenApp_.prototype, "_mj__CreatedAt", void 0);
68738
+ __decorate([
68739
+ Field(),
68740
+ MaxLength(10),
68741
+ __metadata("design:type", Date)
68742
+ ], MJOpenApp_.prototype, "_mj__UpdatedAt", void 0);
68743
+ __decorate([
68744
+ Field(),
68745
+ MaxLength(200),
68746
+ __metadata("design:type", String)
68747
+ ], MJOpenApp_.prototype, "InstalledByUser", void 0);
68748
+ __decorate([
68749
+ Field(() => [MJOpenAppDependency_]),
68750
+ __metadata("design:type", Array)
68751
+ ], MJOpenApp_.prototype, "MJOpenAppDependencies_DependsOnAppIDArray", void 0);
68752
+ __decorate([
68753
+ Field(() => [MJOpenAppInstallHistory_]),
68754
+ __metadata("design:type", Array)
68755
+ ], MJOpenApp_.prototype, "MJOpenAppInstallHistories_OpenAppIDArray", void 0);
68756
+ __decorate([
68757
+ Field(() => [MJOpenAppDependency_]),
68758
+ __metadata("design:type", Array)
68759
+ ], MJOpenApp_.prototype, "MJOpenAppDependencies_OpenAppIDArray", void 0);
68760
+ MJOpenApp_ = __decorate([
68761
+ ObjectType({ description: `Tracks all MJ Open Apps installed in this instance` })
68762
+ ], MJOpenApp_);
68763
+ export { MJOpenApp_ };
68764
+ //****************************************************************************
68765
+ // INPUT TYPE for MJ: Open Apps
68766
+ //****************************************************************************
68767
+ let CreateMJOpenAppInput = class CreateMJOpenAppInput {
68768
+ };
68769
+ __decorate([
68770
+ Field({ nullable: true }),
68771
+ __metadata("design:type", String)
68772
+ ], CreateMJOpenAppInput.prototype, "ID", void 0);
68773
+ __decorate([
68774
+ Field({ nullable: true }),
68775
+ __metadata("design:type", String)
68776
+ ], CreateMJOpenAppInput.prototype, "Name", void 0);
68777
+ __decorate([
68778
+ Field({ nullable: true }),
68779
+ __metadata("design:type", String)
68780
+ ], CreateMJOpenAppInput.prototype, "DisplayName", void 0);
68781
+ __decorate([
68782
+ Field({ nullable: true }),
68783
+ __metadata("design:type", String)
68784
+ ], CreateMJOpenAppInput.prototype, "Description", void 0);
68785
+ __decorate([
68786
+ Field({ nullable: true }),
68787
+ __metadata("design:type", String)
68788
+ ], CreateMJOpenAppInput.prototype, "Version", void 0);
68789
+ __decorate([
68790
+ Field({ nullable: true }),
68791
+ __metadata("design:type", String)
68792
+ ], CreateMJOpenAppInput.prototype, "Publisher", void 0);
68793
+ __decorate([
68794
+ Field({ nullable: true }),
68795
+ __metadata("design:type", String)
68796
+ ], CreateMJOpenAppInput.prototype, "PublisherEmail", void 0);
68797
+ __decorate([
68798
+ Field({ nullable: true }),
68799
+ __metadata("design:type", String)
68800
+ ], CreateMJOpenAppInput.prototype, "PublisherURL", void 0);
68801
+ __decorate([
68802
+ Field({ nullable: true }),
68803
+ __metadata("design:type", String)
68804
+ ], CreateMJOpenAppInput.prototype, "RepositoryURL", void 0);
68805
+ __decorate([
68806
+ Field({ nullable: true }),
68807
+ __metadata("design:type", String)
68808
+ ], CreateMJOpenAppInput.prototype, "SchemaName", void 0);
68809
+ __decorate([
68810
+ Field({ nullable: true }),
68811
+ __metadata("design:type", String)
68812
+ ], CreateMJOpenAppInput.prototype, "MJVersionRange", void 0);
68813
+ __decorate([
68814
+ Field({ nullable: true }),
68815
+ __metadata("design:type", String)
68816
+ ], CreateMJOpenAppInput.prototype, "License", void 0);
68817
+ __decorate([
68818
+ Field({ nullable: true }),
68819
+ __metadata("design:type", String)
68820
+ ], CreateMJOpenAppInput.prototype, "Icon", void 0);
68821
+ __decorate([
68822
+ Field({ nullable: true }),
68823
+ __metadata("design:type", String)
68824
+ ], CreateMJOpenAppInput.prototype, "Color", void 0);
68825
+ __decorate([
68826
+ Field({ nullable: true }),
68827
+ __metadata("design:type", String)
68828
+ ], CreateMJOpenAppInput.prototype, "ManifestJSON", void 0);
68829
+ __decorate([
68830
+ Field({ nullable: true }),
68831
+ __metadata("design:type", String)
68832
+ ], CreateMJOpenAppInput.prototype, "ConfigurationSchemaJSON", void 0);
68833
+ __decorate([
68834
+ Field({ nullable: true }),
68835
+ __metadata("design:type", String)
68836
+ ], CreateMJOpenAppInput.prototype, "InstalledByUserID", void 0);
68837
+ __decorate([
68838
+ Field({ nullable: true }),
68839
+ __metadata("design:type", String)
68840
+ ], CreateMJOpenAppInput.prototype, "Status", void 0);
68841
+ CreateMJOpenAppInput = __decorate([
68842
+ InputType()
68843
+ ], CreateMJOpenAppInput);
68844
+ export { CreateMJOpenAppInput };
68845
+ //****************************************************************************
68846
+ // INPUT TYPE for MJ: Open Apps
68847
+ //****************************************************************************
68848
+ let UpdateMJOpenAppInput = class UpdateMJOpenAppInput {
68849
+ };
68850
+ __decorate([
68851
+ Field(),
68852
+ __metadata("design:type", String)
68853
+ ], UpdateMJOpenAppInput.prototype, "ID", void 0);
68854
+ __decorate([
68855
+ Field({ nullable: true }),
68856
+ __metadata("design:type", String)
68857
+ ], UpdateMJOpenAppInput.prototype, "Name", void 0);
68858
+ __decorate([
68859
+ Field({ nullable: true }),
68860
+ __metadata("design:type", String)
68861
+ ], UpdateMJOpenAppInput.prototype, "DisplayName", void 0);
68862
+ __decorate([
68863
+ Field({ nullable: true }),
68864
+ __metadata("design:type", String)
68865
+ ], UpdateMJOpenAppInput.prototype, "Description", void 0);
68866
+ __decorate([
68867
+ Field({ nullable: true }),
68868
+ __metadata("design:type", String)
68869
+ ], UpdateMJOpenAppInput.prototype, "Version", void 0);
68870
+ __decorate([
68871
+ Field({ nullable: true }),
68872
+ __metadata("design:type", String)
68873
+ ], UpdateMJOpenAppInput.prototype, "Publisher", void 0);
68874
+ __decorate([
68875
+ Field({ nullable: true }),
68876
+ __metadata("design:type", String)
68877
+ ], UpdateMJOpenAppInput.prototype, "PublisherEmail", void 0);
68878
+ __decorate([
68879
+ Field({ nullable: true }),
68880
+ __metadata("design:type", String)
68881
+ ], UpdateMJOpenAppInput.prototype, "PublisherURL", void 0);
68882
+ __decorate([
68883
+ Field({ nullable: true }),
68884
+ __metadata("design:type", String)
68885
+ ], UpdateMJOpenAppInput.prototype, "RepositoryURL", void 0);
68886
+ __decorate([
68887
+ Field({ nullable: true }),
68888
+ __metadata("design:type", String)
68889
+ ], UpdateMJOpenAppInput.prototype, "SchemaName", void 0);
68890
+ __decorate([
68891
+ Field({ nullable: true }),
68892
+ __metadata("design:type", String)
68893
+ ], UpdateMJOpenAppInput.prototype, "MJVersionRange", void 0);
68894
+ __decorate([
68895
+ Field({ nullable: true }),
68896
+ __metadata("design:type", String)
68897
+ ], UpdateMJOpenAppInput.prototype, "License", void 0);
68898
+ __decorate([
68899
+ Field({ nullable: true }),
68900
+ __metadata("design:type", String)
68901
+ ], UpdateMJOpenAppInput.prototype, "Icon", void 0);
68902
+ __decorate([
68903
+ Field({ nullable: true }),
68904
+ __metadata("design:type", String)
68905
+ ], UpdateMJOpenAppInput.prototype, "Color", void 0);
68906
+ __decorate([
68907
+ Field({ nullable: true }),
68908
+ __metadata("design:type", String)
68909
+ ], UpdateMJOpenAppInput.prototype, "ManifestJSON", void 0);
68910
+ __decorate([
68911
+ Field({ nullable: true }),
68912
+ __metadata("design:type", String)
68913
+ ], UpdateMJOpenAppInput.prototype, "ConfigurationSchemaJSON", void 0);
68914
+ __decorate([
68915
+ Field({ nullable: true }),
68916
+ __metadata("design:type", String)
68917
+ ], UpdateMJOpenAppInput.prototype, "InstalledByUserID", void 0);
68918
+ __decorate([
68919
+ Field({ nullable: true }),
68920
+ __metadata("design:type", String)
68921
+ ], UpdateMJOpenAppInput.prototype, "Status", void 0);
68922
+ __decorate([
68923
+ Field(() => [KeyValuePairInput], { nullable: true }),
68924
+ __metadata("design:type", Array)
68925
+ ], UpdateMJOpenAppInput.prototype, "OldValues___", void 0);
68926
+ UpdateMJOpenAppInput = __decorate([
68927
+ InputType()
68928
+ ], UpdateMJOpenAppInput);
68929
+ export { UpdateMJOpenAppInput };
68930
+ //****************************************************************************
68931
+ // RESOLVER for MJ: Open Apps
68932
+ //****************************************************************************
68933
+ let RunMJOpenAppViewResult = class RunMJOpenAppViewResult {
68934
+ };
68935
+ __decorate([
68936
+ Field(() => [MJOpenApp_]),
68937
+ __metadata("design:type", Array)
68938
+ ], RunMJOpenAppViewResult.prototype, "Results", void 0);
68939
+ __decorate([
68940
+ Field(() => String, { nullable: true }),
68941
+ __metadata("design:type", String)
68942
+ ], RunMJOpenAppViewResult.prototype, "UserViewRunID", void 0);
68943
+ __decorate([
68944
+ Field(() => Int, { nullable: true }),
68945
+ __metadata("design:type", Number)
68946
+ ], RunMJOpenAppViewResult.prototype, "RowCount", void 0);
68947
+ __decorate([
68948
+ Field(() => Int, { nullable: true }),
68949
+ __metadata("design:type", Number)
68950
+ ], RunMJOpenAppViewResult.prototype, "TotalRowCount", void 0);
68951
+ __decorate([
68952
+ Field(() => Int, { nullable: true }),
68953
+ __metadata("design:type", Number)
68954
+ ], RunMJOpenAppViewResult.prototype, "ExecutionTime", void 0);
68955
+ __decorate([
68956
+ Field({ nullable: true }),
68957
+ __metadata("design:type", String)
68958
+ ], RunMJOpenAppViewResult.prototype, "ErrorMessage", void 0);
68959
+ __decorate([
68960
+ Field(() => Boolean, { nullable: false }),
68961
+ __metadata("design:type", Boolean)
68962
+ ], RunMJOpenAppViewResult.prototype, "Success", void 0);
68963
+ RunMJOpenAppViewResult = __decorate([
68964
+ ObjectType()
68965
+ ], RunMJOpenAppViewResult);
68966
+ export { RunMJOpenAppViewResult };
68967
+ let MJOpenAppResolver = class MJOpenAppResolver extends ResolverBase {
68968
+ async RunMJOpenAppViewByID(input, { providers, userPayload }, pubSub) {
68969
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68970
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
68971
+ }
68972
+ async RunMJOpenAppViewByName(input, { providers, userPayload }, pubSub) {
68973
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68974
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
68975
+ }
68976
+ async RunMJOpenAppDynamicView(input, { providers, userPayload }, pubSub) {
68977
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68978
+ input.EntityName = 'MJ: Open Apps';
68979
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
68980
+ }
68981
+ async MJOpenApp(ID, { dataSources, userPayload, providers }, pubSub) {
68982
+ this.CheckUserReadPermissions('MJ: Open Apps', userPayload);
68983
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68984
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
68985
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwOpenApps] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open Apps', userPayload, EntityPermissionType.Read, 'AND');
68986
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
68987
+ const result = await this.MapFieldNamesToCodeNames('MJ: Open Apps', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
68988
+ return result;
68989
+ }
68990
+ async MJOpenAppDependencies_DependsOnAppIDArray(mjopenapp_, { dataSources, userPayload, providers }, pubSub) {
68991
+ this.CheckUserReadPermissions('MJ: Open App Dependencies', userPayload);
68992
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
68993
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
68994
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwOpenAppDependencies] WHERE [DependsOnAppID]='${mjopenapp_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Dependencies', userPayload, EntityPermissionType.Read, 'AND');
68995
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
68996
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Open App Dependencies', rows, this.GetUserFromPayload(userPayload));
68997
+ return result;
68998
+ }
68999
+ async MJOpenAppInstallHistories_OpenAppIDArray(mjopenapp_, { dataSources, userPayload, providers }, pubSub) {
69000
+ this.CheckUserReadPermissions('MJ: Open App Install Histories', userPayload);
69001
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
69002
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
69003
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwOpenAppInstallHistories] WHERE [OpenAppID]='${mjopenapp_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Install Histories', userPayload, EntityPermissionType.Read, 'AND');
69004
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
69005
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Open App Install Histories', rows, this.GetUserFromPayload(userPayload));
69006
+ return result;
69007
+ }
69008
+ async MJOpenAppDependencies_OpenAppIDArray(mjopenapp_, { dataSources, userPayload, providers }, pubSub) {
69009
+ this.CheckUserReadPermissions('MJ: Open App Dependencies', userPayload);
69010
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
69011
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
69012
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwOpenAppDependencies] WHERE [OpenAppID]='${mjopenapp_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Dependencies', userPayload, EntityPermissionType.Read, 'AND');
69013
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
69014
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Open App Dependencies', rows, this.GetUserFromPayload(userPayload));
69015
+ return result;
69016
+ }
69017
+ async CreateMJOpenApp(input, { providers, userPayload }, pubSub) {
69018
+ const provider = GetReadWriteProvider(providers);
69019
+ return this.CreateRecord('MJ: Open Apps', input, provider, userPayload, pubSub);
69020
+ }
69021
+ async UpdateMJOpenApp(input, { providers, userPayload }, pubSub) {
69022
+ const provider = GetReadWriteProvider(providers);
69023
+ return this.UpdateRecord('MJ: Open Apps', input, provider, userPayload, pubSub);
69024
+ }
69025
+ async DeleteMJOpenApp(ID, options, { providers, userPayload }, pubSub) {
69026
+ const provider = GetReadWriteProvider(providers);
69027
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
69028
+ return this.DeleteRecord('MJ: Open Apps', key, options, provider, userPayload, pubSub);
69029
+ }
69030
+ };
69031
+ __decorate([
69032
+ Query(() => RunMJOpenAppViewResult),
69033
+ __param(0, Arg('input', () => RunViewByIDInput)),
69034
+ __param(1, Ctx()),
69035
+ __param(2, PubSub()),
69036
+ __metadata("design:type", Function),
69037
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
69038
+ __metadata("design:returntype", Promise)
69039
+ ], MJOpenAppResolver.prototype, "RunMJOpenAppViewByID", null);
69040
+ __decorate([
69041
+ Query(() => RunMJOpenAppViewResult),
69042
+ __param(0, Arg('input', () => RunViewByNameInput)),
69043
+ __param(1, Ctx()),
69044
+ __param(2, PubSub()),
69045
+ __metadata("design:type", Function),
69046
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
69047
+ __metadata("design:returntype", Promise)
69048
+ ], MJOpenAppResolver.prototype, "RunMJOpenAppViewByName", null);
69049
+ __decorate([
69050
+ Query(() => RunMJOpenAppViewResult),
69051
+ __param(0, Arg('input', () => RunDynamicViewInput)),
69052
+ __param(1, Ctx()),
69053
+ __param(2, PubSub()),
69054
+ __metadata("design:type", Function),
69055
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
69056
+ __metadata("design:returntype", Promise)
69057
+ ], MJOpenAppResolver.prototype, "RunMJOpenAppDynamicView", null);
69058
+ __decorate([
69059
+ Query(() => MJOpenApp_, { nullable: true }),
69060
+ __param(0, Arg('ID', () => String)),
69061
+ __param(1, Ctx()),
69062
+ __param(2, PubSub()),
69063
+ __metadata("design:type", Function),
69064
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
69065
+ __metadata("design:returntype", Promise)
69066
+ ], MJOpenAppResolver.prototype, "MJOpenApp", null);
69067
+ __decorate([
69068
+ FieldResolver(() => [MJOpenAppDependency_]),
69069
+ __param(0, Root()),
69070
+ __param(1, Ctx()),
69071
+ __param(2, PubSub()),
69072
+ __metadata("design:type", Function),
69073
+ __metadata("design:paramtypes", [MJOpenApp_, Object, PubSubEngine]),
69074
+ __metadata("design:returntype", Promise)
69075
+ ], MJOpenAppResolver.prototype, "MJOpenAppDependencies_DependsOnAppIDArray", null);
69076
+ __decorate([
69077
+ FieldResolver(() => [MJOpenAppInstallHistory_]),
69078
+ __param(0, Root()),
69079
+ __param(1, Ctx()),
69080
+ __param(2, PubSub()),
69081
+ __metadata("design:type", Function),
69082
+ __metadata("design:paramtypes", [MJOpenApp_, Object, PubSubEngine]),
69083
+ __metadata("design:returntype", Promise)
69084
+ ], MJOpenAppResolver.prototype, "MJOpenAppInstallHistories_OpenAppIDArray", null);
69085
+ __decorate([
69086
+ FieldResolver(() => [MJOpenAppDependency_]),
69087
+ __param(0, Root()),
69088
+ __param(1, Ctx()),
69089
+ __param(2, PubSub()),
69090
+ __metadata("design:type", Function),
69091
+ __metadata("design:paramtypes", [MJOpenApp_, Object, PubSubEngine]),
69092
+ __metadata("design:returntype", Promise)
69093
+ ], MJOpenAppResolver.prototype, "MJOpenAppDependencies_OpenAppIDArray", null);
69094
+ __decorate([
69095
+ Mutation(() => MJOpenApp_),
69096
+ __param(0, Arg('input', () => CreateMJOpenAppInput)),
69097
+ __param(1, Ctx()),
69098
+ __param(2, PubSub()),
69099
+ __metadata("design:type", Function),
69100
+ __metadata("design:paramtypes", [CreateMJOpenAppInput, Object, PubSubEngine]),
69101
+ __metadata("design:returntype", Promise)
69102
+ ], MJOpenAppResolver.prototype, "CreateMJOpenApp", null);
69103
+ __decorate([
69104
+ Mutation(() => MJOpenApp_),
69105
+ __param(0, Arg('input', () => UpdateMJOpenAppInput)),
69106
+ __param(1, Ctx()),
69107
+ __param(2, PubSub()),
69108
+ __metadata("design:type", Function),
69109
+ __metadata("design:paramtypes", [UpdateMJOpenAppInput, Object, PubSubEngine]),
69110
+ __metadata("design:returntype", Promise)
69111
+ ], MJOpenAppResolver.prototype, "UpdateMJOpenApp", null);
69112
+ __decorate([
69113
+ Mutation(() => MJOpenApp_),
69114
+ __param(0, Arg('ID', () => String)),
69115
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
69116
+ __param(2, Ctx()),
69117
+ __param(3, PubSub()),
69118
+ __metadata("design:type", Function),
69119
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
69120
+ __metadata("design:returntype", Promise)
69121
+ ], MJOpenAppResolver.prototype, "DeleteMJOpenApp", null);
69122
+ MJOpenAppResolver = __decorate([
69123
+ Resolver(MJOpenApp_)
69124
+ ], MJOpenAppResolver);
69125
+ export { MJOpenAppResolver };
69126
+ //****************************************************************************
68080
69127
  // ENTITY CLASS for MJ: Output Delivery Types
68081
69128
  //****************************************************************************
68082
69129
  let MJOutputDeliveryType_ = class MJOutputDeliveryType_ {
@@ -72656,10 +73703,6 @@ __decorate([
72656
73703
  MaxLength(10),
72657
73704
  __metadata("design:type", Date)
72658
73705
  ], MJRecommendationItem_.prototype, "_mj__UpdatedAt", void 0);
72659
- __decorate([
72660
- Field(),
72661
- __metadata("design:type", String)
72662
- ], MJRecommendationItem_.prototype, "Recommendation", void 0);
72663
73706
  __decorate([
72664
73707
  Field(),
72665
73708
  MaxLength(510),
@@ -73455,11 +74498,6 @@ __decorate([
73455
74498
  MaxLength(10),
73456
74499
  __metadata("design:type", Date)
73457
74500
  ], MJRecommendation_.prototype, "_mj__UpdatedAt", void 0);
73458
- __decorate([
73459
- Field(),
73460
- MaxLength(510),
73461
- __metadata("design:type", String)
73462
- ], MJRecommendation_.prototype, "RecommendationRun", void 0);
73463
74501
  __decorate([
73464
74502
  Field(),
73465
74503
  MaxLength(510),
@@ -74057,11 +75095,6 @@ __decorate([
74057
75095
  MaxLength(200),
74058
75096
  __metadata("design:type", String)
74059
75097
  ], MJRecordChange_.prototype, "User", void 0);
74060
- __decorate([
74061
- Field({ nullable: true }),
74062
- MaxLength(200),
74063
- __metadata("design:type", String)
74064
- ], MJRecordChange_.prototype, "ReplayRun", void 0);
74065
75098
  __decorate([
74066
75099
  Field({ nullable: true }),
74067
75100
  MaxLength(200),
@@ -74711,11 +75744,6 @@ __decorate([
74711
75744
  MaxLength(10),
74712
75745
  __metadata("design:type", Date)
74713
75746
  ], MJRecordMergeDeletionLog_.prototype, "_mj__UpdatedAt", void 0);
74714
- __decorate([
74715
- Field(),
74716
- MaxLength(900),
74717
- __metadata("design:type", String)
74718
- ], MJRecordMergeDeletionLog_.prototype, "RecordMergeLog", void 0);
74719
75747
  MJRecordMergeDeletionLog_ = __decorate([
74720
75748
  ObjectType({ description: `Tracks records deleted during merge operations, maintaining an audit trail of data consolidation activities.` })
74721
75749
  ], MJRecordMergeDeletionLog_);
@@ -76493,10 +77521,6 @@ __decorate([
76493
77521
  MaxLength(510),
76494
77522
  __metadata("design:type", String)
76495
77523
  ], MJReport_.prototype, "Conversation", void 0);
76496
- __decorate([
76497
- Field({ nullable: true }),
76498
- __metadata("design:type", String)
76499
- ], MJReport_.prototype, "ConversationDetail", void 0);
76500
77524
  __decorate([
76501
77525
  Field({ nullable: true }),
76502
77526
  MaxLength(510),
@@ -82153,10 +83177,6 @@ __decorate([
82153
83177
  MaxLength(510),
82154
83178
  __metadata("design:type", String)
82155
83179
  ], MJTask_.prototype, "Project", void 0);
82156
- __decorate([
82157
- Field({ nullable: true }),
82158
- __metadata("design:type", String)
82159
- ], MJTask_.prototype, "ConversationDetail", void 0);
82160
83180
  __decorate([
82161
83181
  Field({ nullable: true }),
82162
83182
  MaxLength(200),
@@ -83468,11 +84488,6 @@ __decorate([
83468
84488
  MaxLength(510),
83469
84489
  __metadata("design:type", String)
83470
84490
  ], MJTemplateParam_.prototype, "Entity", void 0);
83471
- __decorate([
83472
- Field({ nullable: true }),
83473
- MaxLength(510),
83474
- __metadata("design:type", String)
83475
- ], MJTemplateParam_.prototype, "TemplateContent", void 0);
83476
84491
  MJTemplateParam_ = __decorate([
83477
84492
  ObjectType({ description: `Parameters allowed for use inside the template` })
83478
84493
  ], MJTemplateParam_);
@@ -91667,6 +92682,14 @@ __decorate([
91667
92682
  Field(() => [MJOAuthAuthorizationState_]),
91668
92683
  __metadata("design:type", Array)
91669
92684
  ], MJUser_.prototype, "MJOAuthAuthorizationStates_UserIDArray", void 0);
92685
+ __decorate([
92686
+ Field(() => [MJOpenAppInstallHistory_]),
92687
+ __metadata("design:type", Array)
92688
+ ], MJUser_.prototype, "MJOpenAppInstallHistories_ExecutedByUserIDArray", void 0);
92689
+ __decorate([
92690
+ Field(() => [MJOpenApp_]),
92691
+ __metadata("design:type", Array)
92692
+ ], MJUser_.prototype, "MJOpenApps_InstalledByUserIDArray", void 0);
91670
92693
  __decorate([
91671
92694
  Field(() => [MJResourcePermission_]),
91672
92695
  __metadata("design:type", Array)
@@ -92480,6 +93503,24 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
92480
93503
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: O Auth Authorization States', rows, this.GetUserFromPayload(userPayload));
92481
93504
  return result;
92482
93505
  }
93506
+ async MJOpenAppInstallHistories_ExecutedByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
93507
+ this.CheckUserReadPermissions('MJ: Open App Install Histories', userPayload);
93508
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
93509
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
93510
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwOpenAppInstallHistories] WHERE [ExecutedByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Install Histories', userPayload, EntityPermissionType.Read, 'AND');
93511
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
93512
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Open App Install Histories', rows, this.GetUserFromPayload(userPayload));
93513
+ return result;
93514
+ }
93515
+ async MJOpenApps_InstalledByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
93516
+ this.CheckUserReadPermissions('MJ: Open Apps', userPayload);
93517
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
93518
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
93519
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwOpenApps] WHERE [InstalledByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open Apps', userPayload, EntityPermissionType.Read, 'AND');
93520
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
93521
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Open Apps', rows, this.GetUserFromPayload(userPayload));
93522
+ return result;
93523
+ }
92483
93524
  async MJResourcePermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
92484
93525
  this.CheckUserReadPermissions('MJ: Resource Permissions', userPayload);
92485
93526
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -93249,6 +94290,24 @@ __decorate([
93249
94290
  __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
93250
94291
  __metadata("design:returntype", Promise)
93251
94292
  ], MJUserResolverBase.prototype, "MJOAuthAuthorizationStates_UserIDArray", null);
94293
+ __decorate([
94294
+ FieldResolver(() => [MJOpenAppInstallHistory_]),
94295
+ __param(0, Root()),
94296
+ __param(1, Ctx()),
94297
+ __param(2, PubSub()),
94298
+ __metadata("design:type", Function),
94299
+ __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
94300
+ __metadata("design:returntype", Promise)
94301
+ ], MJUserResolverBase.prototype, "MJOpenAppInstallHistories_ExecutedByUserIDArray", null);
94302
+ __decorate([
94303
+ FieldResolver(() => [MJOpenApp_]),
94304
+ __param(0, Root()),
94305
+ __param(1, Ctx()),
94306
+ __param(2, PubSub()),
94307
+ __metadata("design:type", Function),
94308
+ __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
94309
+ __metadata("design:returntype", Promise)
94310
+ ], MJUserResolverBase.prototype, "MJOpenApps_InstalledByUserIDArray", null);
93252
94311
  __decorate([
93253
94312
  FieldResolver(() => [MJResourcePermission_]),
93254
94313
  __param(0, Root()),