@memberjunction/server 2.121.0 → 2.122.1
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.map +1 -1
- package/dist/agents/skip-sdk.js +42 -52
- package/dist/agents/skip-sdk.js.map +1 -1
- package/dist/auth/BaseAuthProvider.d.ts +1 -0
- package/dist/auth/BaseAuthProvider.d.ts.map +1 -1
- package/dist/auth/BaseAuthProvider.js +46 -3
- package/dist/auth/BaseAuthProvider.js.map +1 -1
- package/dist/auth/newUsers.d.ts.map +1 -1
- package/dist/auth/newUsers.js +23 -10
- package/dist/auth/newUsers.js.map +1 -1
- package/dist/generated/generated.d.ts +91 -4
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +539 -34
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/AskSkipResolver.d.ts.map +1 -1
- package/dist/resolvers/AskSkipResolver.js +47 -64
- package/dist/resolvers/AskSkipResolver.js.map +1 -1
- package/dist/resolvers/CreateQueryResolver.d.ts +39 -8
- package/dist/resolvers/CreateQueryResolver.d.ts.map +1 -1
- package/dist/resolvers/CreateQueryResolver.js +329 -77
- package/dist/resolvers/CreateQueryResolver.js.map +1 -1
- package/package.json +41 -41
- package/src/agents/skip-sdk.ts +42 -53
- package/src/auth/BaseAuthProvider.ts +68 -5
- package/src/auth/newUsers.ts +30 -11
- package/src/generated/generated.ts +344 -27
- package/src/generic/RunViewResolver.ts +793 -793
- package/src/resolvers/AskSkipResolver.ts +47 -64
- package/src/resolvers/CreateQueryResolver.ts +262 -72
- package/src/resolvers/QueryResolver.ts +275 -275
|
@@ -9925,11 +9925,11 @@ let MJEnvironment_ = class MJEnvironment_ {
|
|
|
9925
9925
|
Settings;
|
|
9926
9926
|
_mj__CreatedAt;
|
|
9927
9927
|
_mj__UpdatedAt;
|
|
9928
|
-
MJ_Projects_EnvironmentIDArray;
|
|
9929
9928
|
MJ_Collections_EnvironmentIDArray;
|
|
9929
|
+
MJ_Projects_EnvironmentIDArray;
|
|
9930
9930
|
MJ_Artifacts_EnvironmentIDArray;
|
|
9931
|
-
MJ_Tasks_EnvironmentIDArray;
|
|
9932
9931
|
Dashboards_EnvironmentIDArray;
|
|
9932
|
+
MJ_Tasks_EnvironmentIDArray;
|
|
9933
9933
|
Reports_EnvironmentIDArray;
|
|
9934
9934
|
Conversations_EnvironmentIDArray;
|
|
9935
9935
|
};
|
|
@@ -9965,26 +9965,26 @@ __decorate([
|
|
|
9965
9965
|
MaxLength(10),
|
|
9966
9966
|
__metadata("design:type", Date)
|
|
9967
9967
|
], MJEnvironment_.prototype, "_mj__UpdatedAt", void 0);
|
|
9968
|
-
__decorate([
|
|
9969
|
-
Field(() => [MJProject_]),
|
|
9970
|
-
__metadata("design:type", Array)
|
|
9971
|
-
], MJEnvironment_.prototype, "MJ_Projects_EnvironmentIDArray", void 0);
|
|
9972
9968
|
__decorate([
|
|
9973
9969
|
Field(() => [MJCollection_]),
|
|
9974
9970
|
__metadata("design:type", Array)
|
|
9975
9971
|
], MJEnvironment_.prototype, "MJ_Collections_EnvironmentIDArray", void 0);
|
|
9976
9972
|
__decorate([
|
|
9977
|
-
Field(() => [
|
|
9973
|
+
Field(() => [MJProject_]),
|
|
9978
9974
|
__metadata("design:type", Array)
|
|
9979
|
-
], MJEnvironment_.prototype, "
|
|
9975
|
+
], MJEnvironment_.prototype, "MJ_Projects_EnvironmentIDArray", void 0);
|
|
9980
9976
|
__decorate([
|
|
9981
|
-
Field(() => [
|
|
9977
|
+
Field(() => [MJArtifact_]),
|
|
9982
9978
|
__metadata("design:type", Array)
|
|
9983
|
-
], MJEnvironment_.prototype, "
|
|
9979
|
+
], MJEnvironment_.prototype, "MJ_Artifacts_EnvironmentIDArray", void 0);
|
|
9984
9980
|
__decorate([
|
|
9985
9981
|
Field(() => [MJDashboard_]),
|
|
9986
9982
|
__metadata("design:type", Array)
|
|
9987
9983
|
], MJEnvironment_.prototype, "Dashboards_EnvironmentIDArray", void 0);
|
|
9984
|
+
__decorate([
|
|
9985
|
+
Field(() => [MJTask_]),
|
|
9986
|
+
__metadata("design:type", Array)
|
|
9987
|
+
], MJEnvironment_.prototype, "MJ_Tasks_EnvironmentIDArray", void 0);
|
|
9988
9988
|
__decorate([
|
|
9989
9989
|
Field(() => [MJReport_]),
|
|
9990
9990
|
__metadata("design:type", Array)
|
|
@@ -10128,22 +10128,22 @@ let MJEnvironmentResolver = class MJEnvironmentResolver extends ResolverBase {
|
|
|
10128
10128
|
const result = this.MapFieldNamesToCodeNames('MJ: Environments', rows && rows.length > 0 ? rows[0] : {});
|
|
10129
10129
|
return result;
|
|
10130
10130
|
}
|
|
10131
|
-
async
|
|
10132
|
-
this.CheckUserReadPermissions('MJ:
|
|
10131
|
+
async MJ_Collections_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
10132
|
+
this.CheckUserReadPermissions('MJ: Collections', userPayload);
|
|
10133
10133
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10134
10134
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10135
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10135
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCollections] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collections', userPayload, EntityPermissionType.Read, 'AND');
|
|
10136
10136
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
10137
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
10137
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Collections', rows);
|
|
10138
10138
|
return result;
|
|
10139
10139
|
}
|
|
10140
|
-
async
|
|
10141
|
-
this.CheckUserReadPermissions('MJ:
|
|
10140
|
+
async MJ_Projects_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
10141
|
+
this.CheckUserReadPermissions('MJ: Projects', userPayload);
|
|
10142
10142
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10143
10143
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10144
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10144
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwProjects] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Projects', userPayload, EntityPermissionType.Read, 'AND');
|
|
10145
10145
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
10146
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
10146
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Projects', rows);
|
|
10147
10147
|
return result;
|
|
10148
10148
|
}
|
|
10149
10149
|
async MJ_Artifacts_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -10155,22 +10155,22 @@ let MJEnvironmentResolver = class MJEnvironmentResolver extends ResolverBase {
|
|
|
10155
10155
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Artifacts', rows);
|
|
10156
10156
|
return result;
|
|
10157
10157
|
}
|
|
10158
|
-
async
|
|
10159
|
-
this.CheckUserReadPermissions('
|
|
10158
|
+
async Dashboards_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
10159
|
+
this.CheckUserReadPermissions('Dashboards', userPayload);
|
|
10160
10160
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10161
10161
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10162
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10162
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboards] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Dashboards', userPayload, EntityPermissionType.Read, 'AND');
|
|
10163
10163
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
10164
|
-
const result = this.ArrayMapFieldNamesToCodeNames('
|
|
10164
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Dashboards', rows);
|
|
10165
10165
|
return result;
|
|
10166
10166
|
}
|
|
10167
|
-
async
|
|
10168
|
-
this.CheckUserReadPermissions('
|
|
10167
|
+
async MJ_Tasks_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
10168
|
+
this.CheckUserReadPermissions('MJ: Tasks', userPayload);
|
|
10169
10169
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
10170
10170
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10171
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10171
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTasks] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
10172
10172
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
10173
|
-
const result = this.ArrayMapFieldNamesToCodeNames('
|
|
10173
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Tasks', rows);
|
|
10174
10174
|
return result;
|
|
10175
10175
|
}
|
|
10176
10176
|
async Reports_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -10242,23 +10242,23 @@ __decorate([
|
|
|
10242
10242
|
__metadata("design:returntype", Promise)
|
|
10243
10243
|
], MJEnvironmentResolver.prototype, "MJEnvironment", null);
|
|
10244
10244
|
__decorate([
|
|
10245
|
-
FieldResolver(() => [
|
|
10245
|
+
FieldResolver(() => [MJCollection_]),
|
|
10246
10246
|
__param(0, Root()),
|
|
10247
10247
|
__param(1, Ctx()),
|
|
10248
10248
|
__param(2, PubSub()),
|
|
10249
10249
|
__metadata("design:type", Function),
|
|
10250
10250
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
10251
10251
|
__metadata("design:returntype", Promise)
|
|
10252
|
-
], MJEnvironmentResolver.prototype, "
|
|
10252
|
+
], MJEnvironmentResolver.prototype, "MJ_Collections_EnvironmentIDArray", null);
|
|
10253
10253
|
__decorate([
|
|
10254
|
-
FieldResolver(() => [
|
|
10254
|
+
FieldResolver(() => [MJProject_]),
|
|
10255
10255
|
__param(0, Root()),
|
|
10256
10256
|
__param(1, Ctx()),
|
|
10257
10257
|
__param(2, PubSub()),
|
|
10258
10258
|
__metadata("design:type", Function),
|
|
10259
10259
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
10260
10260
|
__metadata("design:returntype", Promise)
|
|
10261
|
-
], MJEnvironmentResolver.prototype, "
|
|
10261
|
+
], MJEnvironmentResolver.prototype, "MJ_Projects_EnvironmentIDArray", null);
|
|
10262
10262
|
__decorate([
|
|
10263
10263
|
FieldResolver(() => [MJArtifact_]),
|
|
10264
10264
|
__param(0, Root()),
|
|
@@ -10269,23 +10269,23 @@ __decorate([
|
|
|
10269
10269
|
__metadata("design:returntype", Promise)
|
|
10270
10270
|
], MJEnvironmentResolver.prototype, "MJ_Artifacts_EnvironmentIDArray", null);
|
|
10271
10271
|
__decorate([
|
|
10272
|
-
FieldResolver(() => [
|
|
10272
|
+
FieldResolver(() => [MJDashboard_]),
|
|
10273
10273
|
__param(0, Root()),
|
|
10274
10274
|
__param(1, Ctx()),
|
|
10275
10275
|
__param(2, PubSub()),
|
|
10276
10276
|
__metadata("design:type", Function),
|
|
10277
10277
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
10278
10278
|
__metadata("design:returntype", Promise)
|
|
10279
|
-
], MJEnvironmentResolver.prototype, "
|
|
10279
|
+
], MJEnvironmentResolver.prototype, "Dashboards_EnvironmentIDArray", null);
|
|
10280
10280
|
__decorate([
|
|
10281
|
-
FieldResolver(() => [
|
|
10281
|
+
FieldResolver(() => [MJTask_]),
|
|
10282
10282
|
__param(0, Root()),
|
|
10283
10283
|
__param(1, Ctx()),
|
|
10284
10284
|
__param(2, PubSub()),
|
|
10285
10285
|
__metadata("design:type", Function),
|
|
10286
10286
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
10287
10287
|
__metadata("design:returntype", Promise)
|
|
10288
|
-
], MJEnvironmentResolver.prototype, "
|
|
10288
|
+
], MJEnvironmentResolver.prototype, "MJ_Tasks_EnvironmentIDArray", null);
|
|
10289
10289
|
__decorate([
|
|
10290
10290
|
FieldResolver(() => [MJReport_]),
|
|
10291
10291
|
__param(0, Root()),
|
|
@@ -19000,6 +19000,8 @@ let MJEntityField_ = class MJEntityField_ {
|
|
|
19000
19000
|
AutoUpdateIsNameField;
|
|
19001
19001
|
AutoUpdateDefaultInView;
|
|
19002
19002
|
AutoUpdateCategory;
|
|
19003
|
+
AutoUpdateDisplayName;
|
|
19004
|
+
AutoUpdateIncludeInUserSearchAPI;
|
|
19003
19005
|
FieldCodeName;
|
|
19004
19006
|
Entity;
|
|
19005
19007
|
SchemaName;
|
|
@@ -19225,6 +19227,14 @@ __decorate([
|
|
|
19225
19227
|
Field(() => Boolean, { description: `When 1, allows system/LLM to auto-update Category; when 0, user has locked this field` }),
|
|
19226
19228
|
__metadata("design:type", Boolean)
|
|
19227
19229
|
], MJEntityField_.prototype, "AutoUpdateCategory", void 0);
|
|
19230
|
+
__decorate([
|
|
19231
|
+
Field(() => Boolean, { description: `When 1, allows system/LLM to auto-update DisplayName during CodeGen; when 0, user has locked this field` }),
|
|
19232
|
+
__metadata("design:type", Boolean)
|
|
19233
|
+
], MJEntityField_.prototype, "AutoUpdateDisplayName", void 0);
|
|
19234
|
+
__decorate([
|
|
19235
|
+
Field(() => Boolean, { description: `When 1, allows system/LLM to auto-update IncludeInUserSearchAPI during CodeGen; when 0, user has locked this field` }),
|
|
19236
|
+
__metadata("design:type", Boolean)
|
|
19237
|
+
], MJEntityField_.prototype, "AutoUpdateIncludeInUserSearchAPI", void 0);
|
|
19228
19238
|
__decorate([
|
|
19229
19239
|
Field({ nullable: true }),
|
|
19230
19240
|
__metadata("design:type", String)
|
|
@@ -19328,6 +19338,8 @@ let CreateMJEntityFieldInput = class CreateMJEntityFieldInput {
|
|
|
19328
19338
|
AutoUpdateIsNameField;
|
|
19329
19339
|
AutoUpdateDefaultInView;
|
|
19330
19340
|
AutoUpdateCategory;
|
|
19341
|
+
AutoUpdateDisplayName;
|
|
19342
|
+
AutoUpdateIncludeInUserSearchAPI;
|
|
19331
19343
|
};
|
|
19332
19344
|
__decorate([
|
|
19333
19345
|
Field({ nullable: true }),
|
|
@@ -19465,6 +19477,14 @@ __decorate([
|
|
|
19465
19477
|
Field(() => Boolean, { nullable: true }),
|
|
19466
19478
|
__metadata("design:type", Boolean)
|
|
19467
19479
|
], CreateMJEntityFieldInput.prototype, "AutoUpdateCategory", void 0);
|
|
19480
|
+
__decorate([
|
|
19481
|
+
Field(() => Boolean, { nullable: true }),
|
|
19482
|
+
__metadata("design:type", Boolean)
|
|
19483
|
+
], CreateMJEntityFieldInput.prototype, "AutoUpdateDisplayName", void 0);
|
|
19484
|
+
__decorate([
|
|
19485
|
+
Field(() => Boolean, { nullable: true }),
|
|
19486
|
+
__metadata("design:type", Boolean)
|
|
19487
|
+
], CreateMJEntityFieldInput.prototype, "AutoUpdateIncludeInUserSearchAPI", void 0);
|
|
19468
19488
|
CreateMJEntityFieldInput = __decorate([
|
|
19469
19489
|
InputType()
|
|
19470
19490
|
], CreateMJEntityFieldInput);
|
|
@@ -19504,6 +19524,8 @@ let UpdateMJEntityFieldInput = class UpdateMJEntityFieldInput {
|
|
|
19504
19524
|
AutoUpdateIsNameField;
|
|
19505
19525
|
AutoUpdateDefaultInView;
|
|
19506
19526
|
AutoUpdateCategory;
|
|
19527
|
+
AutoUpdateDisplayName;
|
|
19528
|
+
AutoUpdateIncludeInUserSearchAPI;
|
|
19507
19529
|
OldValues___;
|
|
19508
19530
|
};
|
|
19509
19531
|
__decorate([
|
|
@@ -19642,6 +19664,14 @@ __decorate([
|
|
|
19642
19664
|
Field(() => Boolean, { nullable: true }),
|
|
19643
19665
|
__metadata("design:type", Boolean)
|
|
19644
19666
|
], UpdateMJEntityFieldInput.prototype, "AutoUpdateCategory", void 0);
|
|
19667
|
+
__decorate([
|
|
19668
|
+
Field(() => Boolean, { nullable: true }),
|
|
19669
|
+
__metadata("design:type", Boolean)
|
|
19670
|
+
], UpdateMJEntityFieldInput.prototype, "AutoUpdateDisplayName", void 0);
|
|
19671
|
+
__decorate([
|
|
19672
|
+
Field(() => Boolean, { nullable: true }),
|
|
19673
|
+
__metadata("design:type", Boolean)
|
|
19674
|
+
], UpdateMJEntityFieldInput.prototype, "AutoUpdateIncludeInUserSearchAPI", void 0);
|
|
19645
19675
|
__decorate([
|
|
19646
19676
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
19647
19677
|
__metadata("design:type", Array)
|
|
@@ -21883,6 +21913,7 @@ let MJUser_ = class MJUser_ {
|
|
|
21883
21913
|
MJ_ConversationDetailRatings_UserIDArray;
|
|
21884
21914
|
MJ_TestRunFeedbacks_ReviewerUserIDArray;
|
|
21885
21915
|
MJ_TestSuiteRuns_RunByUserIDArray;
|
|
21916
|
+
MJ_UserSettings_UserIDArray;
|
|
21886
21917
|
ResourcePermissions_UserIDArray;
|
|
21887
21918
|
AIAgentRequests_RequestForUserIDArray;
|
|
21888
21919
|
ConversationDetails_UserIDArray;
|
|
@@ -22196,6 +22227,10 @@ __decorate([
|
|
|
22196
22227
|
Field(() => [MJTestSuiteRun_]),
|
|
22197
22228
|
__metadata("design:type", Array)
|
|
22198
22229
|
], MJUser_.prototype, "MJ_TestSuiteRuns_RunByUserIDArray", void 0);
|
|
22230
|
+
__decorate([
|
|
22231
|
+
Field(() => [MJUserSetting_]),
|
|
22232
|
+
__metadata("design:type", Array)
|
|
22233
|
+
], MJUser_.prototype, "MJ_UserSettings_UserIDArray", void 0);
|
|
22199
22234
|
__decorate([
|
|
22200
22235
|
Field(() => [MJResourcePermission_]),
|
|
22201
22236
|
__metadata("design:type", Array)
|
|
@@ -22917,6 +22952,15 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
22917
22952
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Suite Runs', rows);
|
|
22918
22953
|
return result;
|
|
22919
22954
|
}
|
|
22955
|
+
async MJ_UserSettings_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
22956
|
+
this.CheckUserReadPermissions('MJ: User Settings', userPayload);
|
|
22957
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22958
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
22959
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserSettings] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
22960
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
22961
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: User Settings', rows);
|
|
22962
|
+
return result;
|
|
22963
|
+
}
|
|
22920
22964
|
async ResourcePermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
22921
22965
|
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|
|
22922
22966
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -23542,6 +23586,15 @@ __decorate([
|
|
|
23542
23586
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
23543
23587
|
__metadata("design:returntype", Promise)
|
|
23544
23588
|
], MJUserResolverBase.prototype, "MJ_TestSuiteRuns_RunByUserIDArray", null);
|
|
23589
|
+
__decorate([
|
|
23590
|
+
FieldResolver(() => [MJUserSetting_]),
|
|
23591
|
+
__param(0, Root()),
|
|
23592
|
+
__param(1, Ctx()),
|
|
23593
|
+
__param(2, PubSub()),
|
|
23594
|
+
__metadata("design:type", Function),
|
|
23595
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
23596
|
+
__metadata("design:returntype", Promise)
|
|
23597
|
+
], MJUserResolverBase.prototype, "MJ_UserSettings_UserIDArray", null);
|
|
23545
23598
|
__decorate([
|
|
23546
23599
|
FieldResolver(() => [MJResourcePermission_]),
|
|
23547
23600
|
__param(0, Root()),
|
|
@@ -24673,6 +24726,7 @@ let MJUserView_ = class MJUserView_ {
|
|
|
24673
24726
|
_mj__CreatedAt;
|
|
24674
24727
|
_mj__UpdatedAt;
|
|
24675
24728
|
Thumbnail;
|
|
24729
|
+
CardState;
|
|
24676
24730
|
UserName;
|
|
24677
24731
|
UserFirstLast;
|
|
24678
24732
|
UserEmail;
|
|
@@ -24774,6 +24828,10 @@ __decorate([
|
|
|
24774
24828
|
Field({ nullable: true, description: `Thumbnail image for the user view that can be displayed in gallery views. Can contain either a URL to an image file or a Base64-encoded image string.` }),
|
|
24775
24829
|
__metadata("design:type", String)
|
|
24776
24830
|
], MJUserView_.prototype, "Thumbnail", void 0);
|
|
24831
|
+
__decorate([
|
|
24832
|
+
Field({ nullable: true, description: `JSON configuration for card display mode in Data Explorer. Stores card layout settings including title field, subtitle, display fields, thumbnails, and layout density. When null, defaults are derived from entity metadata. See CardState interface in packages/Angular/Generic/entity-viewer/src/lib/types.ts for the current schema definition.` }),
|
|
24833
|
+
__metadata("design:type", String)
|
|
24834
|
+
], MJUserView_.prototype, "CardState", void 0);
|
|
24777
24835
|
__decorate([
|
|
24778
24836
|
Field(),
|
|
24779
24837
|
MaxLength(200),
|
|
@@ -24840,6 +24898,7 @@ let CreateMJUserViewInput = class CreateMJUserViewInput {
|
|
|
24840
24898
|
CustomWhereClause;
|
|
24841
24899
|
SortState;
|
|
24842
24900
|
Thumbnail;
|
|
24901
|
+
CardState;
|
|
24843
24902
|
};
|
|
24844
24903
|
__decorate([
|
|
24845
24904
|
Field({ nullable: true }),
|
|
@@ -24917,6 +24976,10 @@ __decorate([
|
|
|
24917
24976
|
Field({ nullable: true }),
|
|
24918
24977
|
__metadata("design:type", String)
|
|
24919
24978
|
], CreateMJUserViewInput.prototype, "Thumbnail", void 0);
|
|
24979
|
+
__decorate([
|
|
24980
|
+
Field({ nullable: true }),
|
|
24981
|
+
__metadata("design:type", String)
|
|
24982
|
+
], CreateMJUserViewInput.prototype, "CardState", void 0);
|
|
24920
24983
|
CreateMJUserViewInput = __decorate([
|
|
24921
24984
|
InputType()
|
|
24922
24985
|
], CreateMJUserViewInput);
|
|
@@ -24941,6 +25004,7 @@ let UpdateMJUserViewInput = class UpdateMJUserViewInput {
|
|
|
24941
25004
|
CustomWhereClause;
|
|
24942
25005
|
SortState;
|
|
24943
25006
|
Thumbnail;
|
|
25007
|
+
CardState;
|
|
24944
25008
|
OldValues___;
|
|
24945
25009
|
};
|
|
24946
25010
|
__decorate([
|
|
@@ -25019,6 +25083,10 @@ __decorate([
|
|
|
25019
25083
|
Field({ nullable: true }),
|
|
25020
25084
|
__metadata("design:type", String)
|
|
25021
25085
|
], UpdateMJUserViewInput.prototype, "Thumbnail", void 0);
|
|
25086
|
+
__decorate([
|
|
25087
|
+
Field({ nullable: true }),
|
|
25088
|
+
__metadata("design:type", String)
|
|
25089
|
+
], UpdateMJUserViewInput.prototype, "CardState", void 0);
|
|
25022
25090
|
__decorate([
|
|
25023
25091
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
25024
25092
|
__metadata("design:type", Array)
|
|
@@ -26345,6 +26413,16 @@ let MJApplication_ = class MJApplication_ {
|
|
|
26345
26413
|
_mj__CreatedAt;
|
|
26346
26414
|
_mj__UpdatedAt;
|
|
26347
26415
|
SchemaAutoAddNewEntities;
|
|
26416
|
+
Color;
|
|
26417
|
+
DefaultNavItems;
|
|
26418
|
+
ClassName;
|
|
26419
|
+
DefaultSequence;
|
|
26420
|
+
Status;
|
|
26421
|
+
NavigationStyle;
|
|
26422
|
+
TopNavLocation;
|
|
26423
|
+
HideNavBarIconWhenActive;
|
|
26424
|
+
Path;
|
|
26425
|
+
AutoUpdatePath;
|
|
26348
26426
|
ApplicationEntities_ApplicationIDArray;
|
|
26349
26427
|
UserApplications_ApplicationIDArray;
|
|
26350
26428
|
ApplicationSettings_ApplicationIDArray;
|
|
@@ -26388,6 +26466,52 @@ __decorate([
|
|
|
26388
26466
|
Field({ nullable: true, description: `Comma-delimited list of schema names where entities will be automatically added to the application when created in those schemas` }),
|
|
26389
26467
|
__metadata("design:type", String)
|
|
26390
26468
|
], MJApplication_.prototype, "SchemaAutoAddNewEntities", void 0);
|
|
26469
|
+
__decorate([
|
|
26470
|
+
Field({ nullable: true, description: `Hex color code for visual theming (e.g., #4caf50)` }),
|
|
26471
|
+
MaxLength(40),
|
|
26472
|
+
__metadata("design:type", String)
|
|
26473
|
+
], MJApplication_.prototype, "Color", void 0);
|
|
26474
|
+
__decorate([
|
|
26475
|
+
Field({ nullable: true, description: `JSON array of default navigation items for this application. Parsed by BaseApplication.GetNavItems()` }),
|
|
26476
|
+
__metadata("design:type", String)
|
|
26477
|
+
], MJApplication_.prototype, "DefaultNavItems", void 0);
|
|
26478
|
+
__decorate([
|
|
26479
|
+
Field({ nullable: true, description: `TypeScript class name for ClassFactory registration (e.g., CRMApplication)` }),
|
|
26480
|
+
MaxLength(510),
|
|
26481
|
+
__metadata("design:type", String)
|
|
26482
|
+
], MJApplication_.prototype, "ClassName", void 0);
|
|
26483
|
+
__decorate([
|
|
26484
|
+
Field(() => Int, { description: `Default sequence position when adding this application to a new user's User Applications. Lower values appear first. Used when DefaultForNewUser is true.` }),
|
|
26485
|
+
__metadata("design:type", Number)
|
|
26486
|
+
], MJApplication_.prototype, "DefaultSequence", void 0);
|
|
26487
|
+
__decorate([
|
|
26488
|
+
Field({ description: `Application lifecycle status. Pending = not yet ready, Active = available for use, Disabled = temporarily unavailable, Deprecated = being phased out. Only Active applications are shown to users.` }),
|
|
26489
|
+
MaxLength(40),
|
|
26490
|
+
__metadata("design:type", String)
|
|
26491
|
+
], MJApplication_.prototype, "Status", void 0);
|
|
26492
|
+
__decorate([
|
|
26493
|
+
Field({ description: `How the application appears in navigation. App Switcher = only in dropdown menu, Nav Bar = permanent icon in top nav, Both = shown in both locations.` }),
|
|
26494
|
+
MaxLength(40),
|
|
26495
|
+
__metadata("design:type", String)
|
|
26496
|
+
], MJApplication_.prototype, "NavigationStyle", void 0);
|
|
26497
|
+
__decorate([
|
|
26498
|
+
Field({ nullable: true, description: `Position of the permanent nav icon when NavigationStyle is Nav Bar or Both. Left of App Switcher = appears before the app switcher, Left of User Menu = appears near the user avatar. Ignored when NavigationStyle is App Switcher.` }),
|
|
26499
|
+
MaxLength(60),
|
|
26500
|
+
__metadata("design:type", String)
|
|
26501
|
+
], MJApplication_.prototype, "TopNavLocation", void 0);
|
|
26502
|
+
__decorate([
|
|
26503
|
+
Field(() => Boolean, { description: `When true, the Nav Bar icon for this application is hidden when the application is active. Useful for launcher-style apps like Home that should only be visible when the user is NOT in that app. Only applies when NavigationStyle is Nav Bar or Both.` }),
|
|
26504
|
+
__metadata("design:type", Boolean)
|
|
26505
|
+
], MJApplication_.prototype, "HideNavBarIconWhenActive", void 0);
|
|
26506
|
+
__decorate([
|
|
26507
|
+
Field({ description: `URL-friendly slug for the application (e.g., "data-explorer" for "Data Explorer"). Used in URLs instead of the full Name. Auto-generated from Name when AutoUpdatePath is true. Must be unique across all applications.` }),
|
|
26508
|
+
MaxLength(200),
|
|
26509
|
+
__metadata("design:type", String)
|
|
26510
|
+
], MJApplication_.prototype, "Path", void 0);
|
|
26511
|
+
__decorate([
|
|
26512
|
+
Field(() => Boolean, { description: `When true, Path is automatically generated from Name on save. Set to false to manually control the Path value. Defaults to true for new applications.` }),
|
|
26513
|
+
__metadata("design:type", Boolean)
|
|
26514
|
+
], MJApplication_.prototype, "AutoUpdatePath", void 0);
|
|
26391
26515
|
__decorate([
|
|
26392
26516
|
Field(() => [MJApplicationEntity_]),
|
|
26393
26517
|
__metadata("design:type", Array)
|
|
@@ -26419,6 +26543,16 @@ let CreateMJApplicationInput = class CreateMJApplicationInput {
|
|
|
26419
26543
|
Icon;
|
|
26420
26544
|
DefaultForNewUser;
|
|
26421
26545
|
SchemaAutoAddNewEntities;
|
|
26546
|
+
Color;
|
|
26547
|
+
DefaultNavItems;
|
|
26548
|
+
ClassName;
|
|
26549
|
+
DefaultSequence;
|
|
26550
|
+
Status;
|
|
26551
|
+
NavigationStyle;
|
|
26552
|
+
TopNavLocation;
|
|
26553
|
+
HideNavBarIconWhenActive;
|
|
26554
|
+
Path;
|
|
26555
|
+
AutoUpdatePath;
|
|
26422
26556
|
};
|
|
26423
26557
|
__decorate([
|
|
26424
26558
|
Field({ nullable: true }),
|
|
@@ -26444,6 +26578,46 @@ __decorate([
|
|
|
26444
26578
|
Field({ nullable: true }),
|
|
26445
26579
|
__metadata("design:type", String)
|
|
26446
26580
|
], CreateMJApplicationInput.prototype, "SchemaAutoAddNewEntities", void 0);
|
|
26581
|
+
__decorate([
|
|
26582
|
+
Field({ nullable: true }),
|
|
26583
|
+
__metadata("design:type", String)
|
|
26584
|
+
], CreateMJApplicationInput.prototype, "Color", void 0);
|
|
26585
|
+
__decorate([
|
|
26586
|
+
Field({ nullable: true }),
|
|
26587
|
+
__metadata("design:type", String)
|
|
26588
|
+
], CreateMJApplicationInput.prototype, "DefaultNavItems", void 0);
|
|
26589
|
+
__decorate([
|
|
26590
|
+
Field({ nullable: true }),
|
|
26591
|
+
__metadata("design:type", String)
|
|
26592
|
+
], CreateMJApplicationInput.prototype, "ClassName", void 0);
|
|
26593
|
+
__decorate([
|
|
26594
|
+
Field(() => Int, { nullable: true }),
|
|
26595
|
+
__metadata("design:type", Number)
|
|
26596
|
+
], CreateMJApplicationInput.prototype, "DefaultSequence", void 0);
|
|
26597
|
+
__decorate([
|
|
26598
|
+
Field({ nullable: true }),
|
|
26599
|
+
__metadata("design:type", String)
|
|
26600
|
+
], CreateMJApplicationInput.prototype, "Status", void 0);
|
|
26601
|
+
__decorate([
|
|
26602
|
+
Field({ nullable: true }),
|
|
26603
|
+
__metadata("design:type", String)
|
|
26604
|
+
], CreateMJApplicationInput.prototype, "NavigationStyle", void 0);
|
|
26605
|
+
__decorate([
|
|
26606
|
+
Field({ nullable: true }),
|
|
26607
|
+
__metadata("design:type", String)
|
|
26608
|
+
], CreateMJApplicationInput.prototype, "TopNavLocation", void 0);
|
|
26609
|
+
__decorate([
|
|
26610
|
+
Field(() => Boolean, { nullable: true }),
|
|
26611
|
+
__metadata("design:type", Boolean)
|
|
26612
|
+
], CreateMJApplicationInput.prototype, "HideNavBarIconWhenActive", void 0);
|
|
26613
|
+
__decorate([
|
|
26614
|
+
Field({ nullable: true }),
|
|
26615
|
+
__metadata("design:type", String)
|
|
26616
|
+
], CreateMJApplicationInput.prototype, "Path", void 0);
|
|
26617
|
+
__decorate([
|
|
26618
|
+
Field(() => Boolean, { nullable: true }),
|
|
26619
|
+
__metadata("design:type", Boolean)
|
|
26620
|
+
], CreateMJApplicationInput.prototype, "AutoUpdatePath", void 0);
|
|
26447
26621
|
CreateMJApplicationInput = __decorate([
|
|
26448
26622
|
InputType()
|
|
26449
26623
|
], CreateMJApplicationInput);
|
|
@@ -26455,6 +26629,16 @@ let UpdateMJApplicationInput = class UpdateMJApplicationInput {
|
|
|
26455
26629
|
Icon;
|
|
26456
26630
|
DefaultForNewUser;
|
|
26457
26631
|
SchemaAutoAddNewEntities;
|
|
26632
|
+
Color;
|
|
26633
|
+
DefaultNavItems;
|
|
26634
|
+
ClassName;
|
|
26635
|
+
DefaultSequence;
|
|
26636
|
+
Status;
|
|
26637
|
+
NavigationStyle;
|
|
26638
|
+
TopNavLocation;
|
|
26639
|
+
HideNavBarIconWhenActive;
|
|
26640
|
+
Path;
|
|
26641
|
+
AutoUpdatePath;
|
|
26458
26642
|
OldValues___;
|
|
26459
26643
|
};
|
|
26460
26644
|
__decorate([
|
|
@@ -26481,6 +26665,46 @@ __decorate([
|
|
|
26481
26665
|
Field({ nullable: true }),
|
|
26482
26666
|
__metadata("design:type", String)
|
|
26483
26667
|
], UpdateMJApplicationInput.prototype, "SchemaAutoAddNewEntities", void 0);
|
|
26668
|
+
__decorate([
|
|
26669
|
+
Field({ nullable: true }),
|
|
26670
|
+
__metadata("design:type", String)
|
|
26671
|
+
], UpdateMJApplicationInput.prototype, "Color", void 0);
|
|
26672
|
+
__decorate([
|
|
26673
|
+
Field({ nullable: true }),
|
|
26674
|
+
__metadata("design:type", String)
|
|
26675
|
+
], UpdateMJApplicationInput.prototype, "DefaultNavItems", void 0);
|
|
26676
|
+
__decorate([
|
|
26677
|
+
Field({ nullable: true }),
|
|
26678
|
+
__metadata("design:type", String)
|
|
26679
|
+
], UpdateMJApplicationInput.prototype, "ClassName", void 0);
|
|
26680
|
+
__decorate([
|
|
26681
|
+
Field(() => Int, { nullable: true }),
|
|
26682
|
+
__metadata("design:type", Number)
|
|
26683
|
+
], UpdateMJApplicationInput.prototype, "DefaultSequence", void 0);
|
|
26684
|
+
__decorate([
|
|
26685
|
+
Field({ nullable: true }),
|
|
26686
|
+
__metadata("design:type", String)
|
|
26687
|
+
], UpdateMJApplicationInput.prototype, "Status", void 0);
|
|
26688
|
+
__decorate([
|
|
26689
|
+
Field({ nullable: true }),
|
|
26690
|
+
__metadata("design:type", String)
|
|
26691
|
+
], UpdateMJApplicationInput.prototype, "NavigationStyle", void 0);
|
|
26692
|
+
__decorate([
|
|
26693
|
+
Field({ nullable: true }),
|
|
26694
|
+
__metadata("design:type", String)
|
|
26695
|
+
], UpdateMJApplicationInput.prototype, "TopNavLocation", void 0);
|
|
26696
|
+
__decorate([
|
|
26697
|
+
Field(() => Boolean, { nullable: true }),
|
|
26698
|
+
__metadata("design:type", Boolean)
|
|
26699
|
+
], UpdateMJApplicationInput.prototype, "HideNavBarIconWhenActive", void 0);
|
|
26700
|
+
__decorate([
|
|
26701
|
+
Field({ nullable: true }),
|
|
26702
|
+
__metadata("design:type", String)
|
|
26703
|
+
], UpdateMJApplicationInput.prototype, "Path", void 0);
|
|
26704
|
+
__decorate([
|
|
26705
|
+
Field(() => Boolean, { nullable: true }),
|
|
26706
|
+
__metadata("design:type", Boolean)
|
|
26707
|
+
], UpdateMJApplicationInput.prototype, "AutoUpdatePath", void 0);
|
|
26484
26708
|
__decorate([
|
|
26485
26709
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
26486
26710
|
__metadata("design:type", Array)
|
|
@@ -38418,6 +38642,7 @@ let MJResourceType_ = class MJResourceType_ {
|
|
|
38418
38642
|
_mj__CreatedAt;
|
|
38419
38643
|
_mj__UpdatedAt;
|
|
38420
38644
|
CategoryEntityID;
|
|
38645
|
+
DriverClass;
|
|
38421
38646
|
Entity;
|
|
38422
38647
|
CategoryEntity;
|
|
38423
38648
|
WorkspaceItems_ResourceTypeIDArray;
|
|
@@ -38469,6 +38694,11 @@ __decorate([
|
|
|
38469
38694
|
MaxLength(16),
|
|
38470
38695
|
__metadata("design:type", String)
|
|
38471
38696
|
], MJResourceType_.prototype, "CategoryEntityID", void 0);
|
|
38697
|
+
__decorate([
|
|
38698
|
+
Field({ nullable: true, description: `The Angular component class name to instantiate for this resource type. NULL for Custom resource type (uses NavItem DriverClass instead).` }),
|
|
38699
|
+
MaxLength(510),
|
|
38700
|
+
__metadata("design:type", String)
|
|
38701
|
+
], MJResourceType_.prototype, "DriverClass", void 0);
|
|
38472
38702
|
__decorate([
|
|
38473
38703
|
Field({ nullable: true }),
|
|
38474
38704
|
MaxLength(510),
|
|
@@ -38507,6 +38737,7 @@ let CreateMJResourceTypeInput = class CreateMJResourceTypeInput {
|
|
|
38507
38737
|
Icon;
|
|
38508
38738
|
EntityID;
|
|
38509
38739
|
CategoryEntityID;
|
|
38740
|
+
DriverClass;
|
|
38510
38741
|
};
|
|
38511
38742
|
__decorate([
|
|
38512
38743
|
Field({ nullable: true }),
|
|
@@ -38536,6 +38767,10 @@ __decorate([
|
|
|
38536
38767
|
Field({ nullable: true }),
|
|
38537
38768
|
__metadata("design:type", String)
|
|
38538
38769
|
], CreateMJResourceTypeInput.prototype, "CategoryEntityID", void 0);
|
|
38770
|
+
__decorate([
|
|
38771
|
+
Field({ nullable: true }),
|
|
38772
|
+
__metadata("design:type", String)
|
|
38773
|
+
], CreateMJResourceTypeInput.prototype, "DriverClass", void 0);
|
|
38539
38774
|
CreateMJResourceTypeInput = __decorate([
|
|
38540
38775
|
InputType()
|
|
38541
38776
|
], CreateMJResourceTypeInput);
|
|
@@ -38548,6 +38783,7 @@ let UpdateMJResourceTypeInput = class UpdateMJResourceTypeInput {
|
|
|
38548
38783
|
Icon;
|
|
38549
38784
|
EntityID;
|
|
38550
38785
|
CategoryEntityID;
|
|
38786
|
+
DriverClass;
|
|
38551
38787
|
OldValues___;
|
|
38552
38788
|
};
|
|
38553
38789
|
__decorate([
|
|
@@ -38578,6 +38814,10 @@ __decorate([
|
|
|
38578
38814
|
Field({ nullable: true }),
|
|
38579
38815
|
__metadata("design:type", String)
|
|
38580
38816
|
], UpdateMJResourceTypeInput.prototype, "CategoryEntityID", void 0);
|
|
38817
|
+
__decorate([
|
|
38818
|
+
Field({ nullable: true }),
|
|
38819
|
+
__metadata("design:type", String)
|
|
38820
|
+
], UpdateMJResourceTypeInput.prototype, "DriverClass", void 0);
|
|
38581
38821
|
__decorate([
|
|
38582
38822
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
38583
38823
|
__metadata("design:type", Array)
|
|
@@ -39386,6 +39626,7 @@ let MJWorkspace_ = class MJWorkspace_ {
|
|
|
39386
39626
|
UserID;
|
|
39387
39627
|
_mj__CreatedAt;
|
|
39388
39628
|
_mj__UpdatedAt;
|
|
39629
|
+
Configuration;
|
|
39389
39630
|
User;
|
|
39390
39631
|
WorkspaceItems_WorkSpaceIDArray;
|
|
39391
39632
|
};
|
|
@@ -39418,6 +39659,10 @@ __decorate([
|
|
|
39418
39659
|
MaxLength(10),
|
|
39419
39660
|
__metadata("design:type", Date)
|
|
39420
39661
|
], MJWorkspace_.prototype, "_mj__UpdatedAt", void 0);
|
|
39662
|
+
__decorate([
|
|
39663
|
+
Field({ nullable: true, description: `JSON blob containing all workspace state: tabs, layout configuration, theme preferences, and active tab. Replaces WorkspaceItem table.` }),
|
|
39664
|
+
__metadata("design:type", String)
|
|
39665
|
+
], MJWorkspace_.prototype, "Configuration", void 0);
|
|
39421
39666
|
__decorate([
|
|
39422
39667
|
Field(),
|
|
39423
39668
|
MaxLength(200),
|
|
@@ -39436,6 +39681,7 @@ let CreateMJWorkspaceInput = class CreateMJWorkspaceInput {
|
|
|
39436
39681
|
Name;
|
|
39437
39682
|
Description;
|
|
39438
39683
|
UserID;
|
|
39684
|
+
Configuration;
|
|
39439
39685
|
};
|
|
39440
39686
|
__decorate([
|
|
39441
39687
|
Field({ nullable: true }),
|
|
@@ -39453,6 +39699,10 @@ __decorate([
|
|
|
39453
39699
|
Field({ nullable: true }),
|
|
39454
39700
|
__metadata("design:type", String)
|
|
39455
39701
|
], CreateMJWorkspaceInput.prototype, "UserID", void 0);
|
|
39702
|
+
__decorate([
|
|
39703
|
+
Field({ nullable: true }),
|
|
39704
|
+
__metadata("design:type", String)
|
|
39705
|
+
], CreateMJWorkspaceInput.prototype, "Configuration", void 0);
|
|
39456
39706
|
CreateMJWorkspaceInput = __decorate([
|
|
39457
39707
|
InputType()
|
|
39458
39708
|
], CreateMJWorkspaceInput);
|
|
@@ -39462,6 +39712,7 @@ let UpdateMJWorkspaceInput = class UpdateMJWorkspaceInput {
|
|
|
39462
39712
|
Name;
|
|
39463
39713
|
Description;
|
|
39464
39714
|
UserID;
|
|
39715
|
+
Configuration;
|
|
39465
39716
|
OldValues___;
|
|
39466
39717
|
};
|
|
39467
39718
|
__decorate([
|
|
@@ -39480,6 +39731,10 @@ __decorate([
|
|
|
39480
39731
|
Field({ nullable: true }),
|
|
39481
39732
|
__metadata("design:type", String)
|
|
39482
39733
|
], UpdateMJWorkspaceInput.prototype, "UserID", void 0);
|
|
39734
|
+
__decorate([
|
|
39735
|
+
Field({ nullable: true }),
|
|
39736
|
+
__metadata("design:type", String)
|
|
39737
|
+
], UpdateMJWorkspaceInput.prototype, "Configuration", void 0);
|
|
39483
39738
|
__decorate([
|
|
39484
39739
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
39485
39740
|
__metadata("design:type", Array)
|
|
@@ -84941,6 +85196,256 @@ MJAIConfigurationParamResolver = __decorate([
|
|
|
84941
85196
|
Resolver(MJAIConfigurationParam_)
|
|
84942
85197
|
], MJAIConfigurationParamResolver);
|
|
84943
85198
|
export { MJAIConfigurationParamResolver };
|
|
85199
|
+
let MJUserSetting_ = class MJUserSetting_ {
|
|
85200
|
+
ID;
|
|
85201
|
+
UserID;
|
|
85202
|
+
Setting;
|
|
85203
|
+
Value;
|
|
85204
|
+
_mj__CreatedAt;
|
|
85205
|
+
_mj__UpdatedAt;
|
|
85206
|
+
User;
|
|
85207
|
+
};
|
|
85208
|
+
__decorate([
|
|
85209
|
+
Field(),
|
|
85210
|
+
MaxLength(16),
|
|
85211
|
+
__metadata("design:type", String)
|
|
85212
|
+
], MJUserSetting_.prototype, "ID", void 0);
|
|
85213
|
+
__decorate([
|
|
85214
|
+
Field({ description: `The user this setting belongs to.` }),
|
|
85215
|
+
MaxLength(16),
|
|
85216
|
+
__metadata("design:type", String)
|
|
85217
|
+
], MJUserSetting_.prototype, "UserID", void 0);
|
|
85218
|
+
__decorate([
|
|
85219
|
+
Field({ description: `The setting key/name. Use namespaced keys like "DataExplorer.ViewMode" or "Dashboard.AI.CollapsedSections" to avoid collisions.` }),
|
|
85220
|
+
MaxLength(510),
|
|
85221
|
+
__metadata("design:type", String)
|
|
85222
|
+
], MJUserSetting_.prototype, "Setting", void 0);
|
|
85223
|
+
__decorate([
|
|
85224
|
+
Field({ nullable: true, description: `The setting value. Can be simple text, numbers, booleans, or JSON for complex configuration objects.` }),
|
|
85225
|
+
__metadata("design:type", String)
|
|
85226
|
+
], MJUserSetting_.prototype, "Value", void 0);
|
|
85227
|
+
__decorate([
|
|
85228
|
+
Field(),
|
|
85229
|
+
MaxLength(10),
|
|
85230
|
+
__metadata("design:type", Date)
|
|
85231
|
+
], MJUserSetting_.prototype, "_mj__CreatedAt", void 0);
|
|
85232
|
+
__decorate([
|
|
85233
|
+
Field(),
|
|
85234
|
+
MaxLength(10),
|
|
85235
|
+
__metadata("design:type", Date)
|
|
85236
|
+
], MJUserSetting_.prototype, "_mj__UpdatedAt", void 0);
|
|
85237
|
+
__decorate([
|
|
85238
|
+
Field(),
|
|
85239
|
+
MaxLength(200),
|
|
85240
|
+
__metadata("design:type", String)
|
|
85241
|
+
], MJUserSetting_.prototype, "User", void 0);
|
|
85242
|
+
MJUserSetting_ = __decorate([
|
|
85243
|
+
ObjectType({ description: `Generic key-value store for per-user settings. Allows any application or feature to persist user preferences.` })
|
|
85244
|
+
], MJUserSetting_);
|
|
85245
|
+
export { MJUserSetting_ };
|
|
85246
|
+
let CreateMJUserSettingInput = class CreateMJUserSettingInput {
|
|
85247
|
+
ID;
|
|
85248
|
+
UserID;
|
|
85249
|
+
Setting;
|
|
85250
|
+
Value;
|
|
85251
|
+
};
|
|
85252
|
+
__decorate([
|
|
85253
|
+
Field({ nullable: true }),
|
|
85254
|
+
__metadata("design:type", String)
|
|
85255
|
+
], CreateMJUserSettingInput.prototype, "ID", void 0);
|
|
85256
|
+
__decorate([
|
|
85257
|
+
Field({ nullable: true }),
|
|
85258
|
+
__metadata("design:type", String)
|
|
85259
|
+
], CreateMJUserSettingInput.prototype, "UserID", void 0);
|
|
85260
|
+
__decorate([
|
|
85261
|
+
Field({ nullable: true }),
|
|
85262
|
+
__metadata("design:type", String)
|
|
85263
|
+
], CreateMJUserSettingInput.prototype, "Setting", void 0);
|
|
85264
|
+
__decorate([
|
|
85265
|
+
Field({ nullable: true }),
|
|
85266
|
+
__metadata("design:type", String)
|
|
85267
|
+
], CreateMJUserSettingInput.prototype, "Value", void 0);
|
|
85268
|
+
CreateMJUserSettingInput = __decorate([
|
|
85269
|
+
InputType()
|
|
85270
|
+
], CreateMJUserSettingInput);
|
|
85271
|
+
export { CreateMJUserSettingInput };
|
|
85272
|
+
let UpdateMJUserSettingInput = class UpdateMJUserSettingInput {
|
|
85273
|
+
ID;
|
|
85274
|
+
UserID;
|
|
85275
|
+
Setting;
|
|
85276
|
+
Value;
|
|
85277
|
+
OldValues___;
|
|
85278
|
+
};
|
|
85279
|
+
__decorate([
|
|
85280
|
+
Field(),
|
|
85281
|
+
__metadata("design:type", String)
|
|
85282
|
+
], UpdateMJUserSettingInput.prototype, "ID", void 0);
|
|
85283
|
+
__decorate([
|
|
85284
|
+
Field({ nullable: true }),
|
|
85285
|
+
__metadata("design:type", String)
|
|
85286
|
+
], UpdateMJUserSettingInput.prototype, "UserID", void 0);
|
|
85287
|
+
__decorate([
|
|
85288
|
+
Field({ nullable: true }),
|
|
85289
|
+
__metadata("design:type", String)
|
|
85290
|
+
], UpdateMJUserSettingInput.prototype, "Setting", void 0);
|
|
85291
|
+
__decorate([
|
|
85292
|
+
Field({ nullable: true }),
|
|
85293
|
+
__metadata("design:type", String)
|
|
85294
|
+
], UpdateMJUserSettingInput.prototype, "Value", void 0);
|
|
85295
|
+
__decorate([
|
|
85296
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
85297
|
+
__metadata("design:type", Array)
|
|
85298
|
+
], UpdateMJUserSettingInput.prototype, "OldValues___", void 0);
|
|
85299
|
+
UpdateMJUserSettingInput = __decorate([
|
|
85300
|
+
InputType()
|
|
85301
|
+
], UpdateMJUserSettingInput);
|
|
85302
|
+
export { UpdateMJUserSettingInput };
|
|
85303
|
+
let RunMJUserSettingViewResult = class RunMJUserSettingViewResult {
|
|
85304
|
+
Results;
|
|
85305
|
+
UserViewRunID;
|
|
85306
|
+
RowCount;
|
|
85307
|
+
TotalRowCount;
|
|
85308
|
+
ExecutionTime;
|
|
85309
|
+
ErrorMessage;
|
|
85310
|
+
Success;
|
|
85311
|
+
};
|
|
85312
|
+
__decorate([
|
|
85313
|
+
Field(() => [MJUserSetting_]),
|
|
85314
|
+
__metadata("design:type", Array)
|
|
85315
|
+
], RunMJUserSettingViewResult.prototype, "Results", void 0);
|
|
85316
|
+
__decorate([
|
|
85317
|
+
Field(() => String, { nullable: true }),
|
|
85318
|
+
__metadata("design:type", String)
|
|
85319
|
+
], RunMJUserSettingViewResult.prototype, "UserViewRunID", void 0);
|
|
85320
|
+
__decorate([
|
|
85321
|
+
Field(() => Int, { nullable: true }),
|
|
85322
|
+
__metadata("design:type", Number)
|
|
85323
|
+
], RunMJUserSettingViewResult.prototype, "RowCount", void 0);
|
|
85324
|
+
__decorate([
|
|
85325
|
+
Field(() => Int, { nullable: true }),
|
|
85326
|
+
__metadata("design:type", Number)
|
|
85327
|
+
], RunMJUserSettingViewResult.prototype, "TotalRowCount", void 0);
|
|
85328
|
+
__decorate([
|
|
85329
|
+
Field(() => Int, { nullable: true }),
|
|
85330
|
+
__metadata("design:type", Number)
|
|
85331
|
+
], RunMJUserSettingViewResult.prototype, "ExecutionTime", void 0);
|
|
85332
|
+
__decorate([
|
|
85333
|
+
Field({ nullable: true }),
|
|
85334
|
+
__metadata("design:type", String)
|
|
85335
|
+
], RunMJUserSettingViewResult.prototype, "ErrorMessage", void 0);
|
|
85336
|
+
__decorate([
|
|
85337
|
+
Field(() => Boolean, { nullable: false }),
|
|
85338
|
+
__metadata("design:type", Boolean)
|
|
85339
|
+
], RunMJUserSettingViewResult.prototype, "Success", void 0);
|
|
85340
|
+
RunMJUserSettingViewResult = __decorate([
|
|
85341
|
+
ObjectType()
|
|
85342
|
+
], RunMJUserSettingViewResult);
|
|
85343
|
+
export { RunMJUserSettingViewResult };
|
|
85344
|
+
let MJUserSettingResolver = class MJUserSettingResolver extends ResolverBase {
|
|
85345
|
+
async RunMJUserSettingViewByID(input, { providers, userPayload }, pubSub) {
|
|
85346
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
85347
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
85348
|
+
}
|
|
85349
|
+
async RunMJUserSettingViewByName(input, { providers, userPayload }, pubSub) {
|
|
85350
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
85351
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
85352
|
+
}
|
|
85353
|
+
async RunMJUserSettingDynamicView(input, { providers, userPayload }, pubSub) {
|
|
85354
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
85355
|
+
input.EntityName = 'MJ: User Settings';
|
|
85356
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
85357
|
+
}
|
|
85358
|
+
async MJUserSetting(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
85359
|
+
this.CheckUserReadPermissions('MJ: User Settings', userPayload);
|
|
85360
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
85361
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
85362
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserSettings] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Settings', userPayload, EntityPermissionType.Read, 'AND');
|
|
85363
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
85364
|
+
const result = this.MapFieldNamesToCodeNames('MJ: User Settings', rows && rows.length > 0 ? rows[0] : {});
|
|
85365
|
+
return result;
|
|
85366
|
+
}
|
|
85367
|
+
async CreateMJUserSetting(input, { providers, userPayload }, pubSub) {
|
|
85368
|
+
const provider = GetReadWriteProvider(providers);
|
|
85369
|
+
return this.CreateRecord('MJ: User Settings', input, provider, userPayload, pubSub);
|
|
85370
|
+
}
|
|
85371
|
+
async UpdateMJUserSetting(input, { providers, userPayload }, pubSub) {
|
|
85372
|
+
const provider = GetReadWriteProvider(providers);
|
|
85373
|
+
return this.UpdateRecord('MJ: User Settings', input, provider, userPayload, pubSub);
|
|
85374
|
+
}
|
|
85375
|
+
async DeleteMJUserSetting(ID, options, { providers, userPayload }, pubSub) {
|
|
85376
|
+
const provider = GetReadWriteProvider(providers);
|
|
85377
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
85378
|
+
return this.DeleteRecord('MJ: User Settings', key, options, provider, userPayload, pubSub);
|
|
85379
|
+
}
|
|
85380
|
+
};
|
|
85381
|
+
__decorate([
|
|
85382
|
+
Query(() => RunMJUserSettingViewResult),
|
|
85383
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
85384
|
+
__param(1, Ctx()),
|
|
85385
|
+
__param(2, PubSub()),
|
|
85386
|
+
__metadata("design:type", Function),
|
|
85387
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
85388
|
+
__metadata("design:returntype", Promise)
|
|
85389
|
+
], MJUserSettingResolver.prototype, "RunMJUserSettingViewByID", null);
|
|
85390
|
+
__decorate([
|
|
85391
|
+
Query(() => RunMJUserSettingViewResult),
|
|
85392
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
85393
|
+
__param(1, Ctx()),
|
|
85394
|
+
__param(2, PubSub()),
|
|
85395
|
+
__metadata("design:type", Function),
|
|
85396
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
85397
|
+
__metadata("design:returntype", Promise)
|
|
85398
|
+
], MJUserSettingResolver.prototype, "RunMJUserSettingViewByName", null);
|
|
85399
|
+
__decorate([
|
|
85400
|
+
Query(() => RunMJUserSettingViewResult),
|
|
85401
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
85402
|
+
__param(1, Ctx()),
|
|
85403
|
+
__param(2, PubSub()),
|
|
85404
|
+
__metadata("design:type", Function),
|
|
85405
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
85406
|
+
__metadata("design:returntype", Promise)
|
|
85407
|
+
], MJUserSettingResolver.prototype, "RunMJUserSettingDynamicView", null);
|
|
85408
|
+
__decorate([
|
|
85409
|
+
Query(() => MJUserSetting_, { nullable: true }),
|
|
85410
|
+
__param(0, Arg('ID', () => String)),
|
|
85411
|
+
__param(1, Ctx()),
|
|
85412
|
+
__param(2, PubSub()),
|
|
85413
|
+
__metadata("design:type", Function),
|
|
85414
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
85415
|
+
__metadata("design:returntype", Promise)
|
|
85416
|
+
], MJUserSettingResolver.prototype, "MJUserSetting", null);
|
|
85417
|
+
__decorate([
|
|
85418
|
+
Mutation(() => MJUserSetting_),
|
|
85419
|
+
__param(0, Arg('input', () => CreateMJUserSettingInput)),
|
|
85420
|
+
__param(1, Ctx()),
|
|
85421
|
+
__param(2, PubSub()),
|
|
85422
|
+
__metadata("design:type", Function),
|
|
85423
|
+
__metadata("design:paramtypes", [CreateMJUserSettingInput, Object, PubSubEngine]),
|
|
85424
|
+
__metadata("design:returntype", Promise)
|
|
85425
|
+
], MJUserSettingResolver.prototype, "CreateMJUserSetting", null);
|
|
85426
|
+
__decorate([
|
|
85427
|
+
Mutation(() => MJUserSetting_),
|
|
85428
|
+
__param(0, Arg('input', () => UpdateMJUserSettingInput)),
|
|
85429
|
+
__param(1, Ctx()),
|
|
85430
|
+
__param(2, PubSub()),
|
|
85431
|
+
__metadata("design:type", Function),
|
|
85432
|
+
__metadata("design:paramtypes", [UpdateMJUserSettingInput, Object, PubSubEngine]),
|
|
85433
|
+
__metadata("design:returntype", Promise)
|
|
85434
|
+
], MJUserSettingResolver.prototype, "UpdateMJUserSetting", null);
|
|
85435
|
+
__decorate([
|
|
85436
|
+
Mutation(() => MJUserSetting_),
|
|
85437
|
+
__param(0, Arg('ID', () => String)),
|
|
85438
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
85439
|
+
__param(2, Ctx()),
|
|
85440
|
+
__param(3, PubSub()),
|
|
85441
|
+
__metadata("design:type", Function),
|
|
85442
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
85443
|
+
__metadata("design:returntype", Promise)
|
|
85444
|
+
], MJUserSettingResolver.prototype, "DeleteMJUserSetting", null);
|
|
85445
|
+
MJUserSettingResolver = __decorate([
|
|
85446
|
+
Resolver(MJUserSetting_)
|
|
85447
|
+
], MJUserSettingResolver);
|
|
85448
|
+
export { MJUserSettingResolver };
|
|
84944
85449
|
let MJArtifactVersionAttribute_ = class MJArtifactVersionAttribute_ {
|
|
84945
85450
|
ID;
|
|
84946
85451
|
ArtifactVersionID;
|