@memberjunction/server 3.0.0 → 3.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.
- package/dist/config.d.ts +16 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +3 -3
- package/dist/config.js.map +1 -1
- package/dist/generated/generated.d.ts +481 -4
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +3304 -334
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +5 -2
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/generic/RunViewResolver.d.ts +5 -0
- package/dist/generic/RunViewResolver.d.ts.map +1 -1
- package/dist/generic/RunViewResolver.js +53 -4
- package/dist/generic/RunViewResolver.js.map +1 -1
- package/dist/resolvers/RunTestResolver.d.ts +2 -2
- package/dist/resolvers/RunTestResolver.d.ts.map +1 -1
- package/dist/resolvers/RunTestResolver.js +33 -11
- package/dist/resolvers/RunTestResolver.js.map +1 -1
- package/package.json +51 -45
- package/src/__tests__/setup.ts +21 -0
- package/src/config.ts +3 -3
- package/src/generated/generated.ts +1894 -21
- package/src/generic/ResolverBase.ts +6 -2
- package/src/generic/RunViewResolver.ts +55 -5
- package/src/resolvers/RunTestResolver.ts +25 -0
- package/dist/apolloServer/TransactionPlugin.d.ts +0 -4
- package/dist/apolloServer/TransactionPlugin.d.ts.map +0 -1
- package/dist/apolloServer/TransactionPlugin.js +0 -46
- package/dist/apolloServer/TransactionPlugin.js.map +0 -1
- package/dist/auth/__tests__/backward-compatibility.test.d.ts +0 -2
- package/dist/auth/__tests__/backward-compatibility.test.d.ts.map +0 -1
- package/dist/auth/__tests__/backward-compatibility.test.js +0 -135
- package/dist/auth/__tests__/backward-compatibility.test.js.map +0 -1
|
@@ -1978,6 +1978,7 @@ let MJActionParam_ = class MJActionParam_ {
|
|
|
1978
1978
|
IsRequired;
|
|
1979
1979
|
_mj__CreatedAt;
|
|
1980
1980
|
_mj__UpdatedAt;
|
|
1981
|
+
MediaModality;
|
|
1981
1982
|
Action;
|
|
1982
1983
|
EntityActionParams_ActionParamIDArray;
|
|
1983
1984
|
ScheduledActionParams_ActionParamIDArray;
|
|
@@ -2033,6 +2034,11 @@ __decorate([
|
|
|
2033
2034
|
MaxLength(10),
|
|
2034
2035
|
__metadata("design:type", Date)
|
|
2035
2036
|
], MJActionParam_.prototype, "_mj__UpdatedAt", void 0);
|
|
2037
|
+
__decorate([
|
|
2038
|
+
Field({ nullable: true, description: `Specifies the type of media this parameter outputs when ValueType is MediaOutput. Used for action discovery and validation.` }),
|
|
2039
|
+
MaxLength(40),
|
|
2040
|
+
__metadata("design:type", String)
|
|
2041
|
+
], MJActionParam_.prototype, "MediaModality", void 0);
|
|
2036
2042
|
__decorate([
|
|
2037
2043
|
Field(),
|
|
2038
2044
|
MaxLength(850),
|
|
@@ -2060,6 +2066,7 @@ let CreateMJActionParamInput = class CreateMJActionParamInput {
|
|
|
2060
2066
|
IsArray;
|
|
2061
2067
|
Description;
|
|
2062
2068
|
IsRequired;
|
|
2069
|
+
MediaModality;
|
|
2063
2070
|
};
|
|
2064
2071
|
__decorate([
|
|
2065
2072
|
Field({ nullable: true }),
|
|
@@ -2097,6 +2104,10 @@ __decorate([
|
|
|
2097
2104
|
Field(() => Boolean, { nullable: true }),
|
|
2098
2105
|
__metadata("design:type", Boolean)
|
|
2099
2106
|
], CreateMJActionParamInput.prototype, "IsRequired", void 0);
|
|
2107
|
+
__decorate([
|
|
2108
|
+
Field({ nullable: true }),
|
|
2109
|
+
__metadata("design:type", String)
|
|
2110
|
+
], CreateMJActionParamInput.prototype, "MediaModality", void 0);
|
|
2100
2111
|
CreateMJActionParamInput = __decorate([
|
|
2101
2112
|
InputType()
|
|
2102
2113
|
], CreateMJActionParamInput);
|
|
@@ -2111,6 +2122,7 @@ let UpdateMJActionParamInput = class UpdateMJActionParamInput {
|
|
|
2111
2122
|
IsArray;
|
|
2112
2123
|
Description;
|
|
2113
2124
|
IsRequired;
|
|
2125
|
+
MediaModality;
|
|
2114
2126
|
OldValues___;
|
|
2115
2127
|
};
|
|
2116
2128
|
__decorate([
|
|
@@ -2149,6 +2161,10 @@ __decorate([
|
|
|
2149
2161
|
Field(() => Boolean, { nullable: true }),
|
|
2150
2162
|
__metadata("design:type", Boolean)
|
|
2151
2163
|
], UpdateMJActionParamInput.prototype, "IsRequired", void 0);
|
|
2164
|
+
__decorate([
|
|
2165
|
+
Field({ nullable: true }),
|
|
2166
|
+
__metadata("design:type", String)
|
|
2167
|
+
], UpdateMJActionParamInput.prototype, "MediaModality", void 0);
|
|
2152
2168
|
__decorate([
|
|
2153
2169
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
2154
2170
|
__metadata("design:type", Array)
|
|
@@ -22123,6 +22139,8 @@ let MJDashboardCategory_ = class MJDashboardCategory_ {
|
|
|
22123
22139
|
RootParentID;
|
|
22124
22140
|
Dashboards_CategoryIDArray;
|
|
22125
22141
|
DashboardCategories_ParentIDArray;
|
|
22142
|
+
MJ_DashboardCategoryPermissions_DashboardCategoryIDArray;
|
|
22143
|
+
MJ_DashboardCategoryLinks_DashboardCategoryIDArray;
|
|
22126
22144
|
};
|
|
22127
22145
|
__decorate([
|
|
22128
22146
|
Field(),
|
|
@@ -22181,6 +22199,14 @@ __decorate([
|
|
|
22181
22199
|
Field(() => [MJDashboardCategory_]),
|
|
22182
22200
|
__metadata("design:type", Array)
|
|
22183
22201
|
], MJDashboardCategory_.prototype, "DashboardCategories_ParentIDArray", void 0);
|
|
22202
|
+
__decorate([
|
|
22203
|
+
Field(() => [MJDashboardCategoryPermission_]),
|
|
22204
|
+
__metadata("design:type", Array)
|
|
22205
|
+
], MJDashboardCategory_.prototype, "MJ_DashboardCategoryPermissions_DashboardCategoryIDArray", void 0);
|
|
22206
|
+
__decorate([
|
|
22207
|
+
Field(() => [MJDashboardCategoryLink_]),
|
|
22208
|
+
__metadata("design:type", Array)
|
|
22209
|
+
], MJDashboardCategory_.prototype, "MJ_DashboardCategoryLinks_DashboardCategoryIDArray", void 0);
|
|
22184
22210
|
MJDashboardCategory_ = __decorate([
|
|
22185
22211
|
ObjectType({ description: `Organizes dashboards into logical groupings for navigation and access control, supporting hierarchical categorization.` })
|
|
22186
22212
|
], MJDashboardCategory_);
|
|
@@ -22334,6 +22360,24 @@ let MJDashboardCategoryResolver = class MJDashboardCategoryResolver extends Reso
|
|
|
22334
22360
|
const result = await this.ArrayMapFieldNamesToCodeNames('Dashboard Categories', rows, this.GetUserFromPayload(userPayload));
|
|
22335
22361
|
return result;
|
|
22336
22362
|
}
|
|
22363
|
+
async MJ_DashboardCategoryPermissions_DashboardCategoryIDArray(mjdashboardcategory_, { dataSources, userPayload, providers }, pubSub) {
|
|
22364
|
+
this.CheckUserReadPermissions('MJ: Dashboard Category Permissions', userPayload);
|
|
22365
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22366
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
22367
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardCategoryPermissions] WHERE [DashboardCategoryID]='${mjdashboardcategory_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
22368
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
22369
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard Category Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
22370
|
+
return result;
|
|
22371
|
+
}
|
|
22372
|
+
async MJ_DashboardCategoryLinks_DashboardCategoryIDArray(mjdashboardcategory_, { dataSources, userPayload, providers }, pubSub) {
|
|
22373
|
+
this.CheckUserReadPermissions('MJ: Dashboard Category Links', userPayload);
|
|
22374
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22375
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
22376
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardCategoryLinks] WHERE [DashboardCategoryID]='${mjdashboardcategory_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
22377
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
22378
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard Category Links', rows, this.GetUserFromPayload(userPayload));
|
|
22379
|
+
return result;
|
|
22380
|
+
}
|
|
22337
22381
|
async CreateMJDashboardCategory(input, { providers, userPayload }, pubSub) {
|
|
22338
22382
|
const provider = GetReadWriteProvider(providers);
|
|
22339
22383
|
return this.CreateRecord('Dashboard Categories', input, provider, userPayload, pubSub);
|
|
@@ -22402,6 +22446,24 @@ __decorate([
|
|
|
22402
22446
|
__metadata("design:paramtypes", [MJDashboardCategory_, Object, PubSubEngine]),
|
|
22403
22447
|
__metadata("design:returntype", Promise)
|
|
22404
22448
|
], MJDashboardCategoryResolver.prototype, "DashboardCategories_ParentIDArray", null);
|
|
22449
|
+
__decorate([
|
|
22450
|
+
FieldResolver(() => [MJDashboardCategoryPermission_]),
|
|
22451
|
+
__param(0, Root()),
|
|
22452
|
+
__param(1, Ctx()),
|
|
22453
|
+
__param(2, PubSub()),
|
|
22454
|
+
__metadata("design:type", Function),
|
|
22455
|
+
__metadata("design:paramtypes", [MJDashboardCategory_, Object, PubSubEngine]),
|
|
22456
|
+
__metadata("design:returntype", Promise)
|
|
22457
|
+
], MJDashboardCategoryResolver.prototype, "MJ_DashboardCategoryPermissions_DashboardCategoryIDArray", null);
|
|
22458
|
+
__decorate([
|
|
22459
|
+
FieldResolver(() => [MJDashboardCategoryLink_]),
|
|
22460
|
+
__param(0, Root()),
|
|
22461
|
+
__param(1, Ctx()),
|
|
22462
|
+
__param(2, PubSub()),
|
|
22463
|
+
__metadata("design:type", Function),
|
|
22464
|
+
__metadata("design:paramtypes", [MJDashboardCategory_, Object, PubSubEngine]),
|
|
22465
|
+
__metadata("design:returntype", Promise)
|
|
22466
|
+
], MJDashboardCategoryResolver.prototype, "MJ_DashboardCategoryLinks_DashboardCategoryIDArray", null);
|
|
22405
22467
|
__decorate([
|
|
22406
22468
|
Mutation(() => MJDashboardCategory_),
|
|
22407
22469
|
__param(0, Arg('input', () => CreateMJDashboardCategoryInput)),
|
|
@@ -22455,7 +22517,9 @@ let MJDashboard_ = class MJDashboard_ {
|
|
|
22455
22517
|
Application;
|
|
22456
22518
|
Environment;
|
|
22457
22519
|
MJ_DashboardUserStates_DashboardIDArray;
|
|
22520
|
+
MJ_DashboardCategoryLinks_DashboardIDArray;
|
|
22458
22521
|
MJ_DashboardUserPreferences_DashboardIDArray;
|
|
22522
|
+
MJ_DashboardPermissions_DashboardIDArray;
|
|
22459
22523
|
};
|
|
22460
22524
|
__decorate([
|
|
22461
22525
|
Field(),
|
|
@@ -22553,10 +22617,18 @@ __decorate([
|
|
|
22553
22617
|
Field(() => [MJDashboardUserState_]),
|
|
22554
22618
|
__metadata("design:type", Array)
|
|
22555
22619
|
], MJDashboard_.prototype, "MJ_DashboardUserStates_DashboardIDArray", void 0);
|
|
22620
|
+
__decorate([
|
|
22621
|
+
Field(() => [MJDashboardCategoryLink_]),
|
|
22622
|
+
__metadata("design:type", Array)
|
|
22623
|
+
], MJDashboard_.prototype, "MJ_DashboardCategoryLinks_DashboardIDArray", void 0);
|
|
22556
22624
|
__decorate([
|
|
22557
22625
|
Field(() => [MJDashboardUserPreference_]),
|
|
22558
22626
|
__metadata("design:type", Array)
|
|
22559
22627
|
], MJDashboard_.prototype, "MJ_DashboardUserPreferences_DashboardIDArray", void 0);
|
|
22628
|
+
__decorate([
|
|
22629
|
+
Field(() => [MJDashboardPermission_]),
|
|
22630
|
+
__metadata("design:type", Array)
|
|
22631
|
+
], MJDashboard_.prototype, "MJ_DashboardPermissions_DashboardIDArray", void 0);
|
|
22560
22632
|
MJDashboard_ = __decorate([
|
|
22561
22633
|
ObjectType({ description: `Dashboards are used to group resources into a single display pane for an end-user` })
|
|
22562
22634
|
], MJDashboard_);
|
|
@@ -22781,6 +22853,15 @@ let MJDashboardResolver = class MJDashboardResolver extends ResolverBase {
|
|
|
22781
22853
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User States', rows, this.GetUserFromPayload(userPayload));
|
|
22782
22854
|
return result;
|
|
22783
22855
|
}
|
|
22856
|
+
async MJ_DashboardCategoryLinks_DashboardIDArray(mjdashboard_, { dataSources, userPayload, providers }, pubSub) {
|
|
22857
|
+
this.CheckUserReadPermissions('MJ: Dashboard Category Links', userPayload);
|
|
22858
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22859
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
22860
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardCategoryLinks] WHERE [DashboardID]='${mjdashboard_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
22861
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
22862
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard Category Links', rows, this.GetUserFromPayload(userPayload));
|
|
22863
|
+
return result;
|
|
22864
|
+
}
|
|
22784
22865
|
async MJ_DashboardUserPreferences_DashboardIDArray(mjdashboard_, { dataSources, userPayload, providers }, pubSub) {
|
|
22785
22866
|
this.CheckUserReadPermissions('MJ: Dashboard User Preferences', userPayload);
|
|
22786
22867
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -22790,6 +22871,15 @@ let MJDashboardResolver = class MJDashboardResolver extends ResolverBase {
|
|
|
22790
22871
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows, this.GetUserFromPayload(userPayload));
|
|
22791
22872
|
return result;
|
|
22792
22873
|
}
|
|
22874
|
+
async MJ_DashboardPermissions_DashboardIDArray(mjdashboard_, { dataSources, userPayload, providers }, pubSub) {
|
|
22875
|
+
this.CheckUserReadPermissions('MJ: Dashboard Permissions', userPayload);
|
|
22876
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22877
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
22878
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardPermissions] WHERE [DashboardID]='${mjdashboard_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
22879
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
22880
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
22881
|
+
return result;
|
|
22882
|
+
}
|
|
22793
22883
|
async CreateMJDashboard(input, { providers, userPayload }, pubSub) {
|
|
22794
22884
|
const provider = GetReadWriteProvider(providers);
|
|
22795
22885
|
return this.CreateRecord('Dashboards', input, provider, userPayload, pubSub);
|
|
@@ -22849,6 +22939,15 @@ __decorate([
|
|
|
22849
22939
|
__metadata("design:paramtypes", [MJDashboard_, Object, PubSubEngine]),
|
|
22850
22940
|
__metadata("design:returntype", Promise)
|
|
22851
22941
|
], MJDashboardResolver.prototype, "MJ_DashboardUserStates_DashboardIDArray", null);
|
|
22942
|
+
__decorate([
|
|
22943
|
+
FieldResolver(() => [MJDashboardCategoryLink_]),
|
|
22944
|
+
__param(0, Root()),
|
|
22945
|
+
__param(1, Ctx()),
|
|
22946
|
+
__param(2, PubSub()),
|
|
22947
|
+
__metadata("design:type", Function),
|
|
22948
|
+
__metadata("design:paramtypes", [MJDashboard_, Object, PubSubEngine]),
|
|
22949
|
+
__metadata("design:returntype", Promise)
|
|
22950
|
+
], MJDashboardResolver.prototype, "MJ_DashboardCategoryLinks_DashboardIDArray", null);
|
|
22852
22951
|
__decorate([
|
|
22853
22952
|
FieldResolver(() => [MJDashboardUserPreference_]),
|
|
22854
22953
|
__param(0, Root()),
|
|
@@ -22858,6 +22957,15 @@ __decorate([
|
|
|
22858
22957
|
__metadata("design:paramtypes", [MJDashboard_, Object, PubSubEngine]),
|
|
22859
22958
|
__metadata("design:returntype", Promise)
|
|
22860
22959
|
], MJDashboardResolver.prototype, "MJ_DashboardUserPreferences_DashboardIDArray", null);
|
|
22960
|
+
__decorate([
|
|
22961
|
+
FieldResolver(() => [MJDashboardPermission_]),
|
|
22962
|
+
__param(0, Root()),
|
|
22963
|
+
__param(1, Ctx()),
|
|
22964
|
+
__param(2, PubSub()),
|
|
22965
|
+
__metadata("design:type", Function),
|
|
22966
|
+
__metadata("design:paramtypes", [MJDashboard_, Object, PubSubEngine]),
|
|
22967
|
+
__metadata("design:returntype", Promise)
|
|
22968
|
+
], MJDashboardResolver.prototype, "MJ_DashboardPermissions_DashboardIDArray", null);
|
|
22861
22969
|
__decorate([
|
|
22862
22970
|
Mutation(() => MJDashboard_),
|
|
22863
22971
|
__param(0, Arg('input', () => CreateMJDashboardInput)),
|
|
@@ -36929,7 +37037,9 @@ let MJFile_ = class MJFile_ {
|
|
|
36929
37037
|
Category;
|
|
36930
37038
|
Provider;
|
|
36931
37039
|
FileEntityRecordLinks_FileIDArray;
|
|
37040
|
+
MJ_AIPromptRunMedias_FileIDArray;
|
|
36932
37041
|
MJ_ConversationDetailAttachments_FileIDArray;
|
|
37042
|
+
MJ_AIAgentRunMedias_FileIDArray;
|
|
36933
37043
|
};
|
|
36934
37044
|
__decorate([
|
|
36935
37045
|
Field(),
|
|
@@ -36994,10 +37104,18 @@ __decorate([
|
|
|
36994
37104
|
Field(() => [MJFileEntityRecordLink_]),
|
|
36995
37105
|
__metadata("design:type", Array)
|
|
36996
37106
|
], MJFile_.prototype, "FileEntityRecordLinks_FileIDArray", void 0);
|
|
37107
|
+
__decorate([
|
|
37108
|
+
Field(() => [MJAIPromptRunMedia_]),
|
|
37109
|
+
__metadata("design:type", Array)
|
|
37110
|
+
], MJFile_.prototype, "MJ_AIPromptRunMedias_FileIDArray", void 0);
|
|
36997
37111
|
__decorate([
|
|
36998
37112
|
Field(() => [MJConversationDetailAttachment_]),
|
|
36999
37113
|
__metadata("design:type", Array)
|
|
37000
37114
|
], MJFile_.prototype, "MJ_ConversationDetailAttachments_FileIDArray", void 0);
|
|
37115
|
+
__decorate([
|
|
37116
|
+
Field(() => [MJAIAgentRunMedia_]),
|
|
37117
|
+
__metadata("design:type", Array)
|
|
37118
|
+
], MJFile_.prototype, "MJ_AIAgentRunMedias_FileIDArray", void 0);
|
|
37001
37119
|
MJFile_ = __decorate([
|
|
37002
37120
|
ObjectType({ description: `Manages file metadata, storage locations, and access control for all files stored within or referenced by the system.` })
|
|
37003
37121
|
], MJFile_);
|
|
@@ -37172,6 +37290,15 @@ let MJFileResolver = class MJFileResolver extends ResolverBase {
|
|
|
37172
37290
|
const result = await this.ArrayMapFieldNamesToCodeNames('File Entity Record Links', rows, this.GetUserFromPayload(userPayload));
|
|
37173
37291
|
return result;
|
|
37174
37292
|
}
|
|
37293
|
+
async MJ_AIPromptRunMedias_FileIDArray(mjfile_, { dataSources, userPayload, providers }, pubSub) {
|
|
37294
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Run Medias', userPayload);
|
|
37295
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37296
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
37297
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptRunMedias] WHERE [FileID]='${mjfile_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
37298
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
37299
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Run Medias', rows, this.GetUserFromPayload(userPayload));
|
|
37300
|
+
return result;
|
|
37301
|
+
}
|
|
37175
37302
|
async MJ_ConversationDetailAttachments_FileIDArray(mjfile_, { dataSources, userPayload, providers }, pubSub) {
|
|
37176
37303
|
this.CheckUserReadPermissions('MJ: Conversation Detail Attachments', userPayload);
|
|
37177
37304
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -37181,6 +37308,15 @@ let MJFileResolver = class MJFileResolver extends ResolverBase {
|
|
|
37181
37308
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Detail Attachments', rows, this.GetUserFromPayload(userPayload));
|
|
37182
37309
|
return result;
|
|
37183
37310
|
}
|
|
37311
|
+
async MJ_AIAgentRunMedias_FileIDArray(mjfile_, { dataSources, userPayload, providers }, pubSub) {
|
|
37312
|
+
this.CheckUserReadPermissions('MJ: AI Agent Run Medias', userPayload);
|
|
37313
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37314
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
37315
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRunMedias] WHERE [FileID]='${mjfile_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
37316
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
37317
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows, this.GetUserFromPayload(userPayload));
|
|
37318
|
+
return result;
|
|
37319
|
+
}
|
|
37184
37320
|
async CreateMJFile(input, { providers, userPayload }, pubSub) {
|
|
37185
37321
|
const provider = GetReadWriteProvider(providers);
|
|
37186
37322
|
return this.CreateRecord('Files', input, provider, userPayload, pubSub);
|
|
@@ -37240,6 +37376,15 @@ __decorate([
|
|
|
37240
37376
|
__metadata("design:paramtypes", [MJFile_, Object, PubSubEngine]),
|
|
37241
37377
|
__metadata("design:returntype", Promise)
|
|
37242
37378
|
], MJFileResolver.prototype, "FileEntityRecordLinks_FileIDArray", null);
|
|
37379
|
+
__decorate([
|
|
37380
|
+
FieldResolver(() => [MJAIPromptRunMedia_]),
|
|
37381
|
+
__param(0, Root()),
|
|
37382
|
+
__param(1, Ctx()),
|
|
37383
|
+
__param(2, PubSub()),
|
|
37384
|
+
__metadata("design:type", Function),
|
|
37385
|
+
__metadata("design:paramtypes", [MJFile_, Object, PubSubEngine]),
|
|
37386
|
+
__metadata("design:returntype", Promise)
|
|
37387
|
+
], MJFileResolver.prototype, "MJ_AIPromptRunMedias_FileIDArray", null);
|
|
37243
37388
|
__decorate([
|
|
37244
37389
|
FieldResolver(() => [MJConversationDetailAttachment_]),
|
|
37245
37390
|
__param(0, Root()),
|
|
@@ -37249,6 +37394,15 @@ __decorate([
|
|
|
37249
37394
|
__metadata("design:paramtypes", [MJFile_, Object, PubSubEngine]),
|
|
37250
37395
|
__metadata("design:returntype", Promise)
|
|
37251
37396
|
], MJFileResolver.prototype, "MJ_ConversationDetailAttachments_FileIDArray", null);
|
|
37397
|
+
__decorate([
|
|
37398
|
+
FieldResolver(() => [MJAIAgentRunMedia_]),
|
|
37399
|
+
__param(0, Root()),
|
|
37400
|
+
__param(1, Ctx()),
|
|
37401
|
+
__param(2, PubSub()),
|
|
37402
|
+
__metadata("design:type", Function),
|
|
37403
|
+
__metadata("design:paramtypes", [MJFile_, Object, PubSubEngine]),
|
|
37404
|
+
__metadata("design:returntype", Promise)
|
|
37405
|
+
], MJFileResolver.prototype, "MJ_AIAgentRunMedias_FileIDArray", null);
|
|
37252
37406
|
__decorate([
|
|
37253
37407
|
Mutation(() => MJFile_),
|
|
37254
37408
|
__param(0, Arg('input', () => CreateMJFileInput)),
|
|
@@ -37281,6 +37435,343 @@ MJFileResolver = __decorate([
|
|
|
37281
37435
|
Resolver(MJFile_)
|
|
37282
37436
|
], MJFileResolver);
|
|
37283
37437
|
export { MJFileResolver };
|
|
37438
|
+
let MJflywayschemahistory_ = class MJflywayschemahistory_ {
|
|
37439
|
+
installed_rank;
|
|
37440
|
+
version;
|
|
37441
|
+
description;
|
|
37442
|
+
type;
|
|
37443
|
+
script;
|
|
37444
|
+
checksum;
|
|
37445
|
+
installed_by;
|
|
37446
|
+
installed_on;
|
|
37447
|
+
execution_time;
|
|
37448
|
+
success;
|
|
37449
|
+
_mj__CreatedAt;
|
|
37450
|
+
_mj__UpdatedAt;
|
|
37451
|
+
};
|
|
37452
|
+
__decorate([
|
|
37453
|
+
Field(() => Int),
|
|
37454
|
+
__metadata("design:type", Number)
|
|
37455
|
+
], MJflywayschemahistory_.prototype, "installed_rank", void 0);
|
|
37456
|
+
__decorate([
|
|
37457
|
+
Field({ nullable: true }),
|
|
37458
|
+
MaxLength(100),
|
|
37459
|
+
__metadata("design:type", String)
|
|
37460
|
+
], MJflywayschemahistory_.prototype, "version", void 0);
|
|
37461
|
+
__decorate([
|
|
37462
|
+
Field({ nullable: true }),
|
|
37463
|
+
MaxLength(400),
|
|
37464
|
+
__metadata("design:type", String)
|
|
37465
|
+
], MJflywayschemahistory_.prototype, "description", void 0);
|
|
37466
|
+
__decorate([
|
|
37467
|
+
Field(),
|
|
37468
|
+
MaxLength(40),
|
|
37469
|
+
__metadata("design:type", String)
|
|
37470
|
+
], MJflywayschemahistory_.prototype, "type", void 0);
|
|
37471
|
+
__decorate([
|
|
37472
|
+
Field(),
|
|
37473
|
+
MaxLength(2000),
|
|
37474
|
+
__metadata("design:type", String)
|
|
37475
|
+
], MJflywayschemahistory_.prototype, "script", void 0);
|
|
37476
|
+
__decorate([
|
|
37477
|
+
Field(() => Int, { nullable: true }),
|
|
37478
|
+
__metadata("design:type", Number)
|
|
37479
|
+
], MJflywayschemahistory_.prototype, "checksum", void 0);
|
|
37480
|
+
__decorate([
|
|
37481
|
+
Field(),
|
|
37482
|
+
MaxLength(200),
|
|
37483
|
+
__metadata("design:type", String)
|
|
37484
|
+
], MJflywayschemahistory_.prototype, "installed_by", void 0);
|
|
37485
|
+
__decorate([
|
|
37486
|
+
Field(),
|
|
37487
|
+
MaxLength(8),
|
|
37488
|
+
__metadata("design:type", Date)
|
|
37489
|
+
], MJflywayschemahistory_.prototype, "installed_on", void 0);
|
|
37490
|
+
__decorate([
|
|
37491
|
+
Field(() => Int),
|
|
37492
|
+
__metadata("design:type", Number)
|
|
37493
|
+
], MJflywayschemahistory_.prototype, "execution_time", void 0);
|
|
37494
|
+
__decorate([
|
|
37495
|
+
Field(() => Boolean),
|
|
37496
|
+
__metadata("design:type", Boolean)
|
|
37497
|
+
], MJflywayschemahistory_.prototype, "success", void 0);
|
|
37498
|
+
__decorate([
|
|
37499
|
+
Field(),
|
|
37500
|
+
MaxLength(10),
|
|
37501
|
+
__metadata("design:type", Date)
|
|
37502
|
+
], MJflywayschemahistory_.prototype, "_mj__CreatedAt", void 0);
|
|
37503
|
+
__decorate([
|
|
37504
|
+
Field(),
|
|
37505
|
+
MaxLength(10),
|
|
37506
|
+
__metadata("design:type", Date)
|
|
37507
|
+
], MJflywayschemahistory_.prototype, "_mj__UpdatedAt", void 0);
|
|
37508
|
+
MJflywayschemahistory_ = __decorate([
|
|
37509
|
+
ObjectType()
|
|
37510
|
+
], MJflywayschemahistory_);
|
|
37511
|
+
export { MJflywayschemahistory_ };
|
|
37512
|
+
let CreateMJflywayschemahistoryInput = class CreateMJflywayschemahistoryInput {
|
|
37513
|
+
installed_rank;
|
|
37514
|
+
version;
|
|
37515
|
+
description;
|
|
37516
|
+
type;
|
|
37517
|
+
script;
|
|
37518
|
+
checksum;
|
|
37519
|
+
installed_by;
|
|
37520
|
+
installed_on;
|
|
37521
|
+
execution_time;
|
|
37522
|
+
success;
|
|
37523
|
+
};
|
|
37524
|
+
__decorate([
|
|
37525
|
+
Field(() => Int, { nullable: true }),
|
|
37526
|
+
__metadata("design:type", Number)
|
|
37527
|
+
], CreateMJflywayschemahistoryInput.prototype, "installed_rank", void 0);
|
|
37528
|
+
__decorate([
|
|
37529
|
+
Field({ nullable: true }),
|
|
37530
|
+
__metadata("design:type", String)
|
|
37531
|
+
], CreateMJflywayschemahistoryInput.prototype, "version", void 0);
|
|
37532
|
+
__decorate([
|
|
37533
|
+
Field({ nullable: true }),
|
|
37534
|
+
__metadata("design:type", String)
|
|
37535
|
+
], CreateMJflywayschemahistoryInput.prototype, "description", void 0);
|
|
37536
|
+
__decorate([
|
|
37537
|
+
Field({ nullable: true }),
|
|
37538
|
+
__metadata("design:type", String)
|
|
37539
|
+
], CreateMJflywayschemahistoryInput.prototype, "type", void 0);
|
|
37540
|
+
__decorate([
|
|
37541
|
+
Field({ nullable: true }),
|
|
37542
|
+
__metadata("design:type", String)
|
|
37543
|
+
], CreateMJflywayschemahistoryInput.prototype, "script", void 0);
|
|
37544
|
+
__decorate([
|
|
37545
|
+
Field(() => Int, { nullable: true }),
|
|
37546
|
+
__metadata("design:type", Number)
|
|
37547
|
+
], CreateMJflywayschemahistoryInput.prototype, "checksum", void 0);
|
|
37548
|
+
__decorate([
|
|
37549
|
+
Field({ nullable: true }),
|
|
37550
|
+
__metadata("design:type", String)
|
|
37551
|
+
], CreateMJflywayschemahistoryInput.prototype, "installed_by", void 0);
|
|
37552
|
+
__decorate([
|
|
37553
|
+
Field({ nullable: true }),
|
|
37554
|
+
__metadata("design:type", Date)
|
|
37555
|
+
], CreateMJflywayschemahistoryInput.prototype, "installed_on", void 0);
|
|
37556
|
+
__decorate([
|
|
37557
|
+
Field(() => Int, { nullable: true }),
|
|
37558
|
+
__metadata("design:type", Number)
|
|
37559
|
+
], CreateMJflywayschemahistoryInput.prototype, "execution_time", void 0);
|
|
37560
|
+
__decorate([
|
|
37561
|
+
Field(() => Boolean, { nullable: true }),
|
|
37562
|
+
__metadata("design:type", Boolean)
|
|
37563
|
+
], CreateMJflywayschemahistoryInput.prototype, "success", void 0);
|
|
37564
|
+
CreateMJflywayschemahistoryInput = __decorate([
|
|
37565
|
+
InputType()
|
|
37566
|
+
], CreateMJflywayschemahistoryInput);
|
|
37567
|
+
export { CreateMJflywayschemahistoryInput };
|
|
37568
|
+
let UpdateMJflywayschemahistoryInput = class UpdateMJflywayschemahistoryInput {
|
|
37569
|
+
installed_rank;
|
|
37570
|
+
version;
|
|
37571
|
+
description;
|
|
37572
|
+
type;
|
|
37573
|
+
script;
|
|
37574
|
+
checksum;
|
|
37575
|
+
installed_by;
|
|
37576
|
+
installed_on;
|
|
37577
|
+
execution_time;
|
|
37578
|
+
success;
|
|
37579
|
+
OldValues___;
|
|
37580
|
+
};
|
|
37581
|
+
__decorate([
|
|
37582
|
+
Field(() => Int),
|
|
37583
|
+
__metadata("design:type", Number)
|
|
37584
|
+
], UpdateMJflywayschemahistoryInput.prototype, "installed_rank", void 0);
|
|
37585
|
+
__decorate([
|
|
37586
|
+
Field({ nullable: true }),
|
|
37587
|
+
__metadata("design:type", String)
|
|
37588
|
+
], UpdateMJflywayschemahistoryInput.prototype, "version", void 0);
|
|
37589
|
+
__decorate([
|
|
37590
|
+
Field({ nullable: true }),
|
|
37591
|
+
__metadata("design:type", String)
|
|
37592
|
+
], UpdateMJflywayschemahistoryInput.prototype, "description", void 0);
|
|
37593
|
+
__decorate([
|
|
37594
|
+
Field({ nullable: true }),
|
|
37595
|
+
__metadata("design:type", String)
|
|
37596
|
+
], UpdateMJflywayschemahistoryInput.prototype, "type", void 0);
|
|
37597
|
+
__decorate([
|
|
37598
|
+
Field({ nullable: true }),
|
|
37599
|
+
__metadata("design:type", String)
|
|
37600
|
+
], UpdateMJflywayschemahistoryInput.prototype, "script", void 0);
|
|
37601
|
+
__decorate([
|
|
37602
|
+
Field(() => Int, { nullable: true }),
|
|
37603
|
+
__metadata("design:type", Number)
|
|
37604
|
+
], UpdateMJflywayschemahistoryInput.prototype, "checksum", void 0);
|
|
37605
|
+
__decorate([
|
|
37606
|
+
Field({ nullable: true }),
|
|
37607
|
+
__metadata("design:type", String)
|
|
37608
|
+
], UpdateMJflywayschemahistoryInput.prototype, "installed_by", void 0);
|
|
37609
|
+
__decorate([
|
|
37610
|
+
Field({ nullable: true }),
|
|
37611
|
+
__metadata("design:type", Date)
|
|
37612
|
+
], UpdateMJflywayschemahistoryInput.prototype, "installed_on", void 0);
|
|
37613
|
+
__decorate([
|
|
37614
|
+
Field(() => Int, { nullable: true }),
|
|
37615
|
+
__metadata("design:type", Number)
|
|
37616
|
+
], UpdateMJflywayschemahistoryInput.prototype, "execution_time", void 0);
|
|
37617
|
+
__decorate([
|
|
37618
|
+
Field(() => Boolean, { nullable: true }),
|
|
37619
|
+
__metadata("design:type", Boolean)
|
|
37620
|
+
], UpdateMJflywayschemahistoryInput.prototype, "success", void 0);
|
|
37621
|
+
__decorate([
|
|
37622
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
37623
|
+
__metadata("design:type", Array)
|
|
37624
|
+
], UpdateMJflywayschemahistoryInput.prototype, "OldValues___", void 0);
|
|
37625
|
+
UpdateMJflywayschemahistoryInput = __decorate([
|
|
37626
|
+
InputType()
|
|
37627
|
+
], UpdateMJflywayschemahistoryInput);
|
|
37628
|
+
export { UpdateMJflywayschemahistoryInput };
|
|
37629
|
+
let RunMJflywayschemahistoryViewResult = class RunMJflywayschemahistoryViewResult {
|
|
37630
|
+
Results;
|
|
37631
|
+
UserViewRunID;
|
|
37632
|
+
RowCount;
|
|
37633
|
+
TotalRowCount;
|
|
37634
|
+
ExecutionTime;
|
|
37635
|
+
ErrorMessage;
|
|
37636
|
+
Success;
|
|
37637
|
+
};
|
|
37638
|
+
__decorate([
|
|
37639
|
+
Field(() => [MJflywayschemahistory_]),
|
|
37640
|
+
__metadata("design:type", Array)
|
|
37641
|
+
], RunMJflywayschemahistoryViewResult.prototype, "Results", void 0);
|
|
37642
|
+
__decorate([
|
|
37643
|
+
Field(() => String, { nullable: true }),
|
|
37644
|
+
__metadata("design:type", String)
|
|
37645
|
+
], RunMJflywayschemahistoryViewResult.prototype, "UserViewRunID", void 0);
|
|
37646
|
+
__decorate([
|
|
37647
|
+
Field(() => Int, { nullable: true }),
|
|
37648
|
+
__metadata("design:type", Number)
|
|
37649
|
+
], RunMJflywayschemahistoryViewResult.prototype, "RowCount", void 0);
|
|
37650
|
+
__decorate([
|
|
37651
|
+
Field(() => Int, { nullable: true }),
|
|
37652
|
+
__metadata("design:type", Number)
|
|
37653
|
+
], RunMJflywayschemahistoryViewResult.prototype, "TotalRowCount", void 0);
|
|
37654
|
+
__decorate([
|
|
37655
|
+
Field(() => Int, { nullable: true }),
|
|
37656
|
+
__metadata("design:type", Number)
|
|
37657
|
+
], RunMJflywayschemahistoryViewResult.prototype, "ExecutionTime", void 0);
|
|
37658
|
+
__decorate([
|
|
37659
|
+
Field({ nullable: true }),
|
|
37660
|
+
__metadata("design:type", String)
|
|
37661
|
+
], RunMJflywayschemahistoryViewResult.prototype, "ErrorMessage", void 0);
|
|
37662
|
+
__decorate([
|
|
37663
|
+
Field(() => Boolean, { nullable: false }),
|
|
37664
|
+
__metadata("design:type", Boolean)
|
|
37665
|
+
], RunMJflywayschemahistoryViewResult.prototype, "Success", void 0);
|
|
37666
|
+
RunMJflywayschemahistoryViewResult = __decorate([
|
|
37667
|
+
ObjectType()
|
|
37668
|
+
], RunMJflywayschemahistoryViewResult);
|
|
37669
|
+
export { RunMJflywayschemahistoryViewResult };
|
|
37670
|
+
let MJflywayschemahistoryResolver = class MJflywayschemahistoryResolver extends ResolverBase {
|
|
37671
|
+
async RunMJflywayschemahistoryViewByID(input, { providers, userPayload }, pubSub) {
|
|
37672
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37673
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
37674
|
+
}
|
|
37675
|
+
async RunMJflywayschemahistoryViewByName(input, { providers, userPayload }, pubSub) {
|
|
37676
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37677
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
37678
|
+
}
|
|
37679
|
+
async RunMJflywayschemahistoryDynamicView(input, { providers, userPayload }, pubSub) {
|
|
37680
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37681
|
+
input.EntityName = 'Flyway _schema _histories';
|
|
37682
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
37683
|
+
}
|
|
37684
|
+
async MJflywayschemahistory(installed_rank, { dataSources, userPayload, providers }, pubSub) {
|
|
37685
|
+
this.CheckUserReadPermissions('Flyway _schema _histories', userPayload);
|
|
37686
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
37687
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
37688
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwFlyway_schema_histories] WHERE [installed_rank]=${installed_rank} ` + this.getRowLevelSecurityWhereClause(provider, 'Flyway _schema _histories', userPayload, EntityPermissionType.Read, 'AND');
|
|
37689
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
37690
|
+
const result = await this.MapFieldNamesToCodeNames('Flyway _schema _histories', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
37691
|
+
return result;
|
|
37692
|
+
}
|
|
37693
|
+
async CreateMJflywayschemahistory(input, { providers, userPayload }, pubSub) {
|
|
37694
|
+
const provider = GetReadWriteProvider(providers);
|
|
37695
|
+
return this.CreateRecord('Flyway _schema _histories', input, provider, userPayload, pubSub);
|
|
37696
|
+
}
|
|
37697
|
+
async UpdateMJflywayschemahistory(input, { providers, userPayload }, pubSub) {
|
|
37698
|
+
const provider = GetReadWriteProvider(providers);
|
|
37699
|
+
return this.UpdateRecord('Flyway _schema _histories', input, provider, userPayload, pubSub);
|
|
37700
|
+
}
|
|
37701
|
+
async DeleteMJflywayschemahistory(installed_rank, options, { providers, userPayload }, pubSub) {
|
|
37702
|
+
const provider = GetReadWriteProvider(providers);
|
|
37703
|
+
const key = new CompositeKey([{ FieldName: 'installed_rank', Value: installed_rank }]);
|
|
37704
|
+
return this.DeleteRecord('Flyway _schema _histories', key, options, provider, userPayload, pubSub);
|
|
37705
|
+
}
|
|
37706
|
+
};
|
|
37707
|
+
__decorate([
|
|
37708
|
+
Query(() => RunMJflywayschemahistoryViewResult),
|
|
37709
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
37710
|
+
__param(1, Ctx()),
|
|
37711
|
+
__param(2, PubSub()),
|
|
37712
|
+
__metadata("design:type", Function),
|
|
37713
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
37714
|
+
__metadata("design:returntype", Promise)
|
|
37715
|
+
], MJflywayschemahistoryResolver.prototype, "RunMJflywayschemahistoryViewByID", null);
|
|
37716
|
+
__decorate([
|
|
37717
|
+
Query(() => RunMJflywayschemahistoryViewResult),
|
|
37718
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
37719
|
+
__param(1, Ctx()),
|
|
37720
|
+
__param(2, PubSub()),
|
|
37721
|
+
__metadata("design:type", Function),
|
|
37722
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
37723
|
+
__metadata("design:returntype", Promise)
|
|
37724
|
+
], MJflywayschemahistoryResolver.prototype, "RunMJflywayschemahistoryViewByName", null);
|
|
37725
|
+
__decorate([
|
|
37726
|
+
Query(() => RunMJflywayschemahistoryViewResult),
|
|
37727
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
37728
|
+
__param(1, Ctx()),
|
|
37729
|
+
__param(2, PubSub()),
|
|
37730
|
+
__metadata("design:type", Function),
|
|
37731
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
37732
|
+
__metadata("design:returntype", Promise)
|
|
37733
|
+
], MJflywayschemahistoryResolver.prototype, "RunMJflywayschemahistoryDynamicView", null);
|
|
37734
|
+
__decorate([
|
|
37735
|
+
Query(() => MJflywayschemahistory_, { nullable: true }),
|
|
37736
|
+
__param(0, Arg('installed_rank', () => Int)),
|
|
37737
|
+
__param(1, Ctx()),
|
|
37738
|
+
__param(2, PubSub()),
|
|
37739
|
+
__metadata("design:type", Function),
|
|
37740
|
+
__metadata("design:paramtypes", [Number, Object, PubSubEngine]),
|
|
37741
|
+
__metadata("design:returntype", Promise)
|
|
37742
|
+
], MJflywayschemahistoryResolver.prototype, "MJflywayschemahistory", null);
|
|
37743
|
+
__decorate([
|
|
37744
|
+
Mutation(() => MJflywayschemahistory_),
|
|
37745
|
+
__param(0, Arg('input', () => CreateMJflywayschemahistoryInput)),
|
|
37746
|
+
__param(1, Ctx()),
|
|
37747
|
+
__param(2, PubSub()),
|
|
37748
|
+
__metadata("design:type", Function),
|
|
37749
|
+
__metadata("design:paramtypes", [CreateMJflywayschemahistoryInput, Object, PubSubEngine]),
|
|
37750
|
+
__metadata("design:returntype", Promise)
|
|
37751
|
+
], MJflywayschemahistoryResolver.prototype, "CreateMJflywayschemahistory", null);
|
|
37752
|
+
__decorate([
|
|
37753
|
+
Mutation(() => MJflywayschemahistory_),
|
|
37754
|
+
__param(0, Arg('input', () => UpdateMJflywayschemahistoryInput)),
|
|
37755
|
+
__param(1, Ctx()),
|
|
37756
|
+
__param(2, PubSub()),
|
|
37757
|
+
__metadata("design:type", Function),
|
|
37758
|
+
__metadata("design:paramtypes", [UpdateMJflywayschemahistoryInput, Object, PubSubEngine]),
|
|
37759
|
+
__metadata("design:returntype", Promise)
|
|
37760
|
+
], MJflywayschemahistoryResolver.prototype, "UpdateMJflywayschemahistory", null);
|
|
37761
|
+
__decorate([
|
|
37762
|
+
Mutation(() => MJflywayschemahistory_),
|
|
37763
|
+
__param(0, Arg('installed_rank', () => Int)),
|
|
37764
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
37765
|
+
__param(2, Ctx()),
|
|
37766
|
+
__param(3, PubSub()),
|
|
37767
|
+
__metadata("design:type", Function),
|
|
37768
|
+
__metadata("design:paramtypes", [Number, DeleteOptionsInput, Object, PubSubEngine]),
|
|
37769
|
+
__metadata("design:returntype", Promise)
|
|
37770
|
+
], MJflywayschemahistoryResolver.prototype, "DeleteMJflywayschemahistory", null);
|
|
37771
|
+
MJflywayschemahistoryResolver = __decorate([
|
|
37772
|
+
Resolver(MJflywayschemahistory_)
|
|
37773
|
+
], MJflywayschemahistoryResolver);
|
|
37774
|
+
export { MJflywayschemahistoryResolver };
|
|
37284
37775
|
let MJGeneratedCodeCategory_ = class MJGeneratedCodeCategory_ {
|
|
37285
37776
|
ID;
|
|
37286
37777
|
Name;
|
|
@@ -43513,6 +44004,474 @@ MJAIAgentRelationshipResolver = __decorate([
|
|
|
43513
44004
|
Resolver(MJAIAgentRelationship_)
|
|
43514
44005
|
], MJAIAgentRelationshipResolver);
|
|
43515
44006
|
export { MJAIAgentRelationshipResolver };
|
|
44007
|
+
let MJAIAgentRunMedia_ = class MJAIAgentRunMedia_ {
|
|
44008
|
+
ID;
|
|
44009
|
+
AgentRunID;
|
|
44010
|
+
SourcePromptRunMediaID;
|
|
44011
|
+
ModalityID;
|
|
44012
|
+
MimeType;
|
|
44013
|
+
FileName;
|
|
44014
|
+
FileSizeBytes;
|
|
44015
|
+
Width;
|
|
44016
|
+
Height;
|
|
44017
|
+
DurationSeconds;
|
|
44018
|
+
InlineData;
|
|
44019
|
+
FileID;
|
|
44020
|
+
ThumbnailBase64;
|
|
44021
|
+
Label;
|
|
44022
|
+
Metadata;
|
|
44023
|
+
DisplayOrder;
|
|
44024
|
+
_mj__CreatedAt;
|
|
44025
|
+
_mj__UpdatedAt;
|
|
44026
|
+
Description;
|
|
44027
|
+
AgentRun;
|
|
44028
|
+
SourcePromptRunMedia;
|
|
44029
|
+
Modality;
|
|
44030
|
+
File;
|
|
44031
|
+
};
|
|
44032
|
+
__decorate([
|
|
44033
|
+
Field(),
|
|
44034
|
+
MaxLength(16),
|
|
44035
|
+
__metadata("design:type", String)
|
|
44036
|
+
], MJAIAgentRunMedia_.prototype, "ID", void 0);
|
|
44037
|
+
__decorate([
|
|
44038
|
+
Field(),
|
|
44039
|
+
MaxLength(16),
|
|
44040
|
+
__metadata("design:type", String)
|
|
44041
|
+
], MJAIAgentRunMedia_.prototype, "AgentRunID", void 0);
|
|
44042
|
+
__decorate([
|
|
44043
|
+
Field({ nullable: true }),
|
|
44044
|
+
MaxLength(16),
|
|
44045
|
+
__metadata("design:type", String)
|
|
44046
|
+
], MJAIAgentRunMedia_.prototype, "SourcePromptRunMediaID", void 0);
|
|
44047
|
+
__decorate([
|
|
44048
|
+
Field(),
|
|
44049
|
+
MaxLength(16),
|
|
44050
|
+
__metadata("design:type", String)
|
|
44051
|
+
], MJAIAgentRunMedia_.prototype, "ModalityID", void 0);
|
|
44052
|
+
__decorate([
|
|
44053
|
+
Field(),
|
|
44054
|
+
MaxLength(200),
|
|
44055
|
+
__metadata("design:type", String)
|
|
44056
|
+
], MJAIAgentRunMedia_.prototype, "MimeType", void 0);
|
|
44057
|
+
__decorate([
|
|
44058
|
+
Field({ nullable: true }),
|
|
44059
|
+
MaxLength(510),
|
|
44060
|
+
__metadata("design:type", String)
|
|
44061
|
+
], MJAIAgentRunMedia_.prototype, "FileName", void 0);
|
|
44062
|
+
__decorate([
|
|
44063
|
+
Field(() => Int, { nullable: true }),
|
|
44064
|
+
__metadata("design:type", Number)
|
|
44065
|
+
], MJAIAgentRunMedia_.prototype, "FileSizeBytes", void 0);
|
|
44066
|
+
__decorate([
|
|
44067
|
+
Field(() => Int, { nullable: true }),
|
|
44068
|
+
__metadata("design:type", Number)
|
|
44069
|
+
], MJAIAgentRunMedia_.prototype, "Width", void 0);
|
|
44070
|
+
__decorate([
|
|
44071
|
+
Field(() => Int, { nullable: true }),
|
|
44072
|
+
__metadata("design:type", Number)
|
|
44073
|
+
], MJAIAgentRunMedia_.prototype, "Height", void 0);
|
|
44074
|
+
__decorate([
|
|
44075
|
+
Field(() => Float, { nullable: true }),
|
|
44076
|
+
__metadata("design:type", Number)
|
|
44077
|
+
], MJAIAgentRunMedia_.prototype, "DurationSeconds", void 0);
|
|
44078
|
+
__decorate([
|
|
44079
|
+
Field({ nullable: true }),
|
|
44080
|
+
__metadata("design:type", String)
|
|
44081
|
+
], MJAIAgentRunMedia_.prototype, "InlineData", void 0);
|
|
44082
|
+
__decorate([
|
|
44083
|
+
Field({ nullable: true }),
|
|
44084
|
+
MaxLength(16),
|
|
44085
|
+
__metadata("design:type", String)
|
|
44086
|
+
], MJAIAgentRunMedia_.prototype, "FileID", void 0);
|
|
44087
|
+
__decorate([
|
|
44088
|
+
Field({ nullable: true }),
|
|
44089
|
+
__metadata("design:type", String)
|
|
44090
|
+
], MJAIAgentRunMedia_.prototype, "ThumbnailBase64", void 0);
|
|
44091
|
+
__decorate([
|
|
44092
|
+
Field({ nullable: true }),
|
|
44093
|
+
MaxLength(510),
|
|
44094
|
+
__metadata("design:type", String)
|
|
44095
|
+
], MJAIAgentRunMedia_.prototype, "Label", void 0);
|
|
44096
|
+
__decorate([
|
|
44097
|
+
Field({ nullable: true }),
|
|
44098
|
+
__metadata("design:type", String)
|
|
44099
|
+
], MJAIAgentRunMedia_.prototype, "Metadata", void 0);
|
|
44100
|
+
__decorate([
|
|
44101
|
+
Field(() => Int),
|
|
44102
|
+
__metadata("design:type", Number)
|
|
44103
|
+
], MJAIAgentRunMedia_.prototype, "DisplayOrder", void 0);
|
|
44104
|
+
__decorate([
|
|
44105
|
+
Field(),
|
|
44106
|
+
MaxLength(10),
|
|
44107
|
+
__metadata("design:type", Date)
|
|
44108
|
+
], MJAIAgentRunMedia_.prototype, "_mj__CreatedAt", void 0);
|
|
44109
|
+
__decorate([
|
|
44110
|
+
Field(),
|
|
44111
|
+
MaxLength(10),
|
|
44112
|
+
__metadata("design:type", Date)
|
|
44113
|
+
], MJAIAgentRunMedia_.prototype, "_mj__UpdatedAt", void 0);
|
|
44114
|
+
__decorate([
|
|
44115
|
+
Field({ nullable: true, description: `Agent notes describing what this media represents. Used for internal tracking and can be displayed in UI.` }),
|
|
44116
|
+
__metadata("design:type", String)
|
|
44117
|
+
], MJAIAgentRunMedia_.prototype, "Description", void 0);
|
|
44118
|
+
__decorate([
|
|
44119
|
+
Field({ nullable: true }),
|
|
44120
|
+
MaxLength(510),
|
|
44121
|
+
__metadata("design:type", String)
|
|
44122
|
+
], MJAIAgentRunMedia_.prototype, "AgentRun", void 0);
|
|
44123
|
+
__decorate([
|
|
44124
|
+
Field({ nullable: true }),
|
|
44125
|
+
MaxLength(510),
|
|
44126
|
+
__metadata("design:type", String)
|
|
44127
|
+
], MJAIAgentRunMedia_.prototype, "SourcePromptRunMedia", void 0);
|
|
44128
|
+
__decorate([
|
|
44129
|
+
Field(),
|
|
44130
|
+
MaxLength(100),
|
|
44131
|
+
__metadata("design:type", String)
|
|
44132
|
+
], MJAIAgentRunMedia_.prototype, "Modality", void 0);
|
|
44133
|
+
__decorate([
|
|
44134
|
+
Field({ nullable: true }),
|
|
44135
|
+
MaxLength(1000),
|
|
44136
|
+
__metadata("design:type", String)
|
|
44137
|
+
], MJAIAgentRunMedia_.prototype, "File", void 0);
|
|
44138
|
+
MJAIAgentRunMedia_ = __decorate([
|
|
44139
|
+
ObjectType()
|
|
44140
|
+
], MJAIAgentRunMedia_);
|
|
44141
|
+
export { MJAIAgentRunMedia_ };
|
|
44142
|
+
let CreateMJAIAgentRunMediaInput = class CreateMJAIAgentRunMediaInput {
|
|
44143
|
+
ID;
|
|
44144
|
+
AgentRunID;
|
|
44145
|
+
SourcePromptRunMediaID;
|
|
44146
|
+
ModalityID;
|
|
44147
|
+
MimeType;
|
|
44148
|
+
FileName;
|
|
44149
|
+
FileSizeBytes;
|
|
44150
|
+
Width;
|
|
44151
|
+
Height;
|
|
44152
|
+
DurationSeconds;
|
|
44153
|
+
InlineData;
|
|
44154
|
+
FileID;
|
|
44155
|
+
ThumbnailBase64;
|
|
44156
|
+
Label;
|
|
44157
|
+
Metadata;
|
|
44158
|
+
DisplayOrder;
|
|
44159
|
+
Description;
|
|
44160
|
+
};
|
|
44161
|
+
__decorate([
|
|
44162
|
+
Field({ nullable: true }),
|
|
44163
|
+
__metadata("design:type", String)
|
|
44164
|
+
], CreateMJAIAgentRunMediaInput.prototype, "ID", void 0);
|
|
44165
|
+
__decorate([
|
|
44166
|
+
Field({ nullable: true }),
|
|
44167
|
+
__metadata("design:type", String)
|
|
44168
|
+
], CreateMJAIAgentRunMediaInput.prototype, "AgentRunID", void 0);
|
|
44169
|
+
__decorate([
|
|
44170
|
+
Field({ nullable: true }),
|
|
44171
|
+
__metadata("design:type", String)
|
|
44172
|
+
], CreateMJAIAgentRunMediaInput.prototype, "SourcePromptRunMediaID", void 0);
|
|
44173
|
+
__decorate([
|
|
44174
|
+
Field({ nullable: true }),
|
|
44175
|
+
__metadata("design:type", String)
|
|
44176
|
+
], CreateMJAIAgentRunMediaInput.prototype, "ModalityID", void 0);
|
|
44177
|
+
__decorate([
|
|
44178
|
+
Field({ nullable: true }),
|
|
44179
|
+
__metadata("design:type", String)
|
|
44180
|
+
], CreateMJAIAgentRunMediaInput.prototype, "MimeType", void 0);
|
|
44181
|
+
__decorate([
|
|
44182
|
+
Field({ nullable: true }),
|
|
44183
|
+
__metadata("design:type", String)
|
|
44184
|
+
], CreateMJAIAgentRunMediaInput.prototype, "FileName", void 0);
|
|
44185
|
+
__decorate([
|
|
44186
|
+
Field(() => Int, { nullable: true }),
|
|
44187
|
+
__metadata("design:type", Number)
|
|
44188
|
+
], CreateMJAIAgentRunMediaInput.prototype, "FileSizeBytes", void 0);
|
|
44189
|
+
__decorate([
|
|
44190
|
+
Field(() => Int, { nullable: true }),
|
|
44191
|
+
__metadata("design:type", Number)
|
|
44192
|
+
], CreateMJAIAgentRunMediaInput.prototype, "Width", void 0);
|
|
44193
|
+
__decorate([
|
|
44194
|
+
Field(() => Int, { nullable: true }),
|
|
44195
|
+
__metadata("design:type", Number)
|
|
44196
|
+
], CreateMJAIAgentRunMediaInput.prototype, "Height", void 0);
|
|
44197
|
+
__decorate([
|
|
44198
|
+
Field(() => Float, { nullable: true }),
|
|
44199
|
+
__metadata("design:type", Number)
|
|
44200
|
+
], CreateMJAIAgentRunMediaInput.prototype, "DurationSeconds", void 0);
|
|
44201
|
+
__decorate([
|
|
44202
|
+
Field({ nullable: true }),
|
|
44203
|
+
__metadata("design:type", String)
|
|
44204
|
+
], CreateMJAIAgentRunMediaInput.prototype, "InlineData", void 0);
|
|
44205
|
+
__decorate([
|
|
44206
|
+
Field({ nullable: true }),
|
|
44207
|
+
__metadata("design:type", String)
|
|
44208
|
+
], CreateMJAIAgentRunMediaInput.prototype, "FileID", void 0);
|
|
44209
|
+
__decorate([
|
|
44210
|
+
Field({ nullable: true }),
|
|
44211
|
+
__metadata("design:type", String)
|
|
44212
|
+
], CreateMJAIAgentRunMediaInput.prototype, "ThumbnailBase64", void 0);
|
|
44213
|
+
__decorate([
|
|
44214
|
+
Field({ nullable: true }),
|
|
44215
|
+
__metadata("design:type", String)
|
|
44216
|
+
], CreateMJAIAgentRunMediaInput.prototype, "Label", void 0);
|
|
44217
|
+
__decorate([
|
|
44218
|
+
Field({ nullable: true }),
|
|
44219
|
+
__metadata("design:type", String)
|
|
44220
|
+
], CreateMJAIAgentRunMediaInput.prototype, "Metadata", void 0);
|
|
44221
|
+
__decorate([
|
|
44222
|
+
Field(() => Int, { nullable: true }),
|
|
44223
|
+
__metadata("design:type", Number)
|
|
44224
|
+
], CreateMJAIAgentRunMediaInput.prototype, "DisplayOrder", void 0);
|
|
44225
|
+
__decorate([
|
|
44226
|
+
Field({ nullable: true }),
|
|
44227
|
+
__metadata("design:type", String)
|
|
44228
|
+
], CreateMJAIAgentRunMediaInput.prototype, "Description", void 0);
|
|
44229
|
+
CreateMJAIAgentRunMediaInput = __decorate([
|
|
44230
|
+
InputType()
|
|
44231
|
+
], CreateMJAIAgentRunMediaInput);
|
|
44232
|
+
export { CreateMJAIAgentRunMediaInput };
|
|
44233
|
+
let UpdateMJAIAgentRunMediaInput = class UpdateMJAIAgentRunMediaInput {
|
|
44234
|
+
ID;
|
|
44235
|
+
AgentRunID;
|
|
44236
|
+
SourcePromptRunMediaID;
|
|
44237
|
+
ModalityID;
|
|
44238
|
+
MimeType;
|
|
44239
|
+
FileName;
|
|
44240
|
+
FileSizeBytes;
|
|
44241
|
+
Width;
|
|
44242
|
+
Height;
|
|
44243
|
+
DurationSeconds;
|
|
44244
|
+
InlineData;
|
|
44245
|
+
FileID;
|
|
44246
|
+
ThumbnailBase64;
|
|
44247
|
+
Label;
|
|
44248
|
+
Metadata;
|
|
44249
|
+
DisplayOrder;
|
|
44250
|
+
Description;
|
|
44251
|
+
OldValues___;
|
|
44252
|
+
};
|
|
44253
|
+
__decorate([
|
|
44254
|
+
Field(),
|
|
44255
|
+
__metadata("design:type", String)
|
|
44256
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "ID", void 0);
|
|
44257
|
+
__decorate([
|
|
44258
|
+
Field({ nullable: true }),
|
|
44259
|
+
__metadata("design:type", String)
|
|
44260
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "AgentRunID", void 0);
|
|
44261
|
+
__decorate([
|
|
44262
|
+
Field({ nullable: true }),
|
|
44263
|
+
__metadata("design:type", String)
|
|
44264
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "SourcePromptRunMediaID", void 0);
|
|
44265
|
+
__decorate([
|
|
44266
|
+
Field({ nullable: true }),
|
|
44267
|
+
__metadata("design:type", String)
|
|
44268
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "ModalityID", void 0);
|
|
44269
|
+
__decorate([
|
|
44270
|
+
Field({ nullable: true }),
|
|
44271
|
+
__metadata("design:type", String)
|
|
44272
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "MimeType", void 0);
|
|
44273
|
+
__decorate([
|
|
44274
|
+
Field({ nullable: true }),
|
|
44275
|
+
__metadata("design:type", String)
|
|
44276
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "FileName", void 0);
|
|
44277
|
+
__decorate([
|
|
44278
|
+
Field(() => Int, { nullable: true }),
|
|
44279
|
+
__metadata("design:type", Number)
|
|
44280
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "FileSizeBytes", void 0);
|
|
44281
|
+
__decorate([
|
|
44282
|
+
Field(() => Int, { nullable: true }),
|
|
44283
|
+
__metadata("design:type", Number)
|
|
44284
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "Width", void 0);
|
|
44285
|
+
__decorate([
|
|
44286
|
+
Field(() => Int, { nullable: true }),
|
|
44287
|
+
__metadata("design:type", Number)
|
|
44288
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "Height", void 0);
|
|
44289
|
+
__decorate([
|
|
44290
|
+
Field(() => Float, { nullable: true }),
|
|
44291
|
+
__metadata("design:type", Number)
|
|
44292
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "DurationSeconds", void 0);
|
|
44293
|
+
__decorate([
|
|
44294
|
+
Field({ nullable: true }),
|
|
44295
|
+
__metadata("design:type", String)
|
|
44296
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "InlineData", void 0);
|
|
44297
|
+
__decorate([
|
|
44298
|
+
Field({ nullable: true }),
|
|
44299
|
+
__metadata("design:type", String)
|
|
44300
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "FileID", void 0);
|
|
44301
|
+
__decorate([
|
|
44302
|
+
Field({ nullable: true }),
|
|
44303
|
+
__metadata("design:type", String)
|
|
44304
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "ThumbnailBase64", void 0);
|
|
44305
|
+
__decorate([
|
|
44306
|
+
Field({ nullable: true }),
|
|
44307
|
+
__metadata("design:type", String)
|
|
44308
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "Label", void 0);
|
|
44309
|
+
__decorate([
|
|
44310
|
+
Field({ nullable: true }),
|
|
44311
|
+
__metadata("design:type", String)
|
|
44312
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "Metadata", void 0);
|
|
44313
|
+
__decorate([
|
|
44314
|
+
Field(() => Int, { nullable: true }),
|
|
44315
|
+
__metadata("design:type", Number)
|
|
44316
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "DisplayOrder", void 0);
|
|
44317
|
+
__decorate([
|
|
44318
|
+
Field({ nullable: true }),
|
|
44319
|
+
__metadata("design:type", String)
|
|
44320
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "Description", void 0);
|
|
44321
|
+
__decorate([
|
|
44322
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
44323
|
+
__metadata("design:type", Array)
|
|
44324
|
+
], UpdateMJAIAgentRunMediaInput.prototype, "OldValues___", void 0);
|
|
44325
|
+
UpdateMJAIAgentRunMediaInput = __decorate([
|
|
44326
|
+
InputType()
|
|
44327
|
+
], UpdateMJAIAgentRunMediaInput);
|
|
44328
|
+
export { UpdateMJAIAgentRunMediaInput };
|
|
44329
|
+
let RunMJAIAgentRunMediaViewResult = class RunMJAIAgentRunMediaViewResult {
|
|
44330
|
+
Results;
|
|
44331
|
+
UserViewRunID;
|
|
44332
|
+
RowCount;
|
|
44333
|
+
TotalRowCount;
|
|
44334
|
+
ExecutionTime;
|
|
44335
|
+
ErrorMessage;
|
|
44336
|
+
Success;
|
|
44337
|
+
};
|
|
44338
|
+
__decorate([
|
|
44339
|
+
Field(() => [MJAIAgentRunMedia_]),
|
|
44340
|
+
__metadata("design:type", Array)
|
|
44341
|
+
], RunMJAIAgentRunMediaViewResult.prototype, "Results", void 0);
|
|
44342
|
+
__decorate([
|
|
44343
|
+
Field(() => String, { nullable: true }),
|
|
44344
|
+
__metadata("design:type", String)
|
|
44345
|
+
], RunMJAIAgentRunMediaViewResult.prototype, "UserViewRunID", void 0);
|
|
44346
|
+
__decorate([
|
|
44347
|
+
Field(() => Int, { nullable: true }),
|
|
44348
|
+
__metadata("design:type", Number)
|
|
44349
|
+
], RunMJAIAgentRunMediaViewResult.prototype, "RowCount", void 0);
|
|
44350
|
+
__decorate([
|
|
44351
|
+
Field(() => Int, { nullable: true }),
|
|
44352
|
+
__metadata("design:type", Number)
|
|
44353
|
+
], RunMJAIAgentRunMediaViewResult.prototype, "TotalRowCount", void 0);
|
|
44354
|
+
__decorate([
|
|
44355
|
+
Field(() => Int, { nullable: true }),
|
|
44356
|
+
__metadata("design:type", Number)
|
|
44357
|
+
], RunMJAIAgentRunMediaViewResult.prototype, "ExecutionTime", void 0);
|
|
44358
|
+
__decorate([
|
|
44359
|
+
Field({ nullable: true }),
|
|
44360
|
+
__metadata("design:type", String)
|
|
44361
|
+
], RunMJAIAgentRunMediaViewResult.prototype, "ErrorMessage", void 0);
|
|
44362
|
+
__decorate([
|
|
44363
|
+
Field(() => Boolean, { nullable: false }),
|
|
44364
|
+
__metadata("design:type", Boolean)
|
|
44365
|
+
], RunMJAIAgentRunMediaViewResult.prototype, "Success", void 0);
|
|
44366
|
+
RunMJAIAgentRunMediaViewResult = __decorate([
|
|
44367
|
+
ObjectType()
|
|
44368
|
+
], RunMJAIAgentRunMediaViewResult);
|
|
44369
|
+
export { RunMJAIAgentRunMediaViewResult };
|
|
44370
|
+
let MJAIAgentRunMediaResolver = class MJAIAgentRunMediaResolver extends ResolverBase {
|
|
44371
|
+
async RunMJAIAgentRunMediaViewByID(input, { providers, userPayload }, pubSub) {
|
|
44372
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44373
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
44374
|
+
}
|
|
44375
|
+
async RunMJAIAgentRunMediaViewByName(input, { providers, userPayload }, pubSub) {
|
|
44376
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44377
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
44378
|
+
}
|
|
44379
|
+
async RunMJAIAgentRunMediaDynamicView(input, { providers, userPayload }, pubSub) {
|
|
44380
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44381
|
+
input.EntityName = 'MJ: AI Agent Run Medias';
|
|
44382
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
44383
|
+
}
|
|
44384
|
+
async MJAIAgentRunMedia(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
44385
|
+
this.CheckUserReadPermissions('MJ: AI Agent Run Medias', userPayload);
|
|
44386
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
44387
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
44388
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRunMedias] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
44389
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
44390
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
44391
|
+
return result;
|
|
44392
|
+
}
|
|
44393
|
+
async CreateMJAIAgentRunMedia(input, { providers, userPayload }, pubSub) {
|
|
44394
|
+
const provider = GetReadWriteProvider(providers);
|
|
44395
|
+
return this.CreateRecord('MJ: AI Agent Run Medias', input, provider, userPayload, pubSub);
|
|
44396
|
+
}
|
|
44397
|
+
async UpdateMJAIAgentRunMedia(input, { providers, userPayload }, pubSub) {
|
|
44398
|
+
const provider = GetReadWriteProvider(providers);
|
|
44399
|
+
return this.UpdateRecord('MJ: AI Agent Run Medias', input, provider, userPayload, pubSub);
|
|
44400
|
+
}
|
|
44401
|
+
async DeleteMJAIAgentRunMedia(ID, options, { providers, userPayload }, pubSub) {
|
|
44402
|
+
const provider = GetReadWriteProvider(providers);
|
|
44403
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
44404
|
+
return this.DeleteRecord('MJ: AI Agent Run Medias', key, options, provider, userPayload, pubSub);
|
|
44405
|
+
}
|
|
44406
|
+
};
|
|
44407
|
+
__decorate([
|
|
44408
|
+
Query(() => RunMJAIAgentRunMediaViewResult),
|
|
44409
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
44410
|
+
__param(1, Ctx()),
|
|
44411
|
+
__param(2, PubSub()),
|
|
44412
|
+
__metadata("design:type", Function),
|
|
44413
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
44414
|
+
__metadata("design:returntype", Promise)
|
|
44415
|
+
], MJAIAgentRunMediaResolver.prototype, "RunMJAIAgentRunMediaViewByID", null);
|
|
44416
|
+
__decorate([
|
|
44417
|
+
Query(() => RunMJAIAgentRunMediaViewResult),
|
|
44418
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
44419
|
+
__param(1, Ctx()),
|
|
44420
|
+
__param(2, PubSub()),
|
|
44421
|
+
__metadata("design:type", Function),
|
|
44422
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
44423
|
+
__metadata("design:returntype", Promise)
|
|
44424
|
+
], MJAIAgentRunMediaResolver.prototype, "RunMJAIAgentRunMediaViewByName", null);
|
|
44425
|
+
__decorate([
|
|
44426
|
+
Query(() => RunMJAIAgentRunMediaViewResult),
|
|
44427
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
44428
|
+
__param(1, Ctx()),
|
|
44429
|
+
__param(2, PubSub()),
|
|
44430
|
+
__metadata("design:type", Function),
|
|
44431
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
44432
|
+
__metadata("design:returntype", Promise)
|
|
44433
|
+
], MJAIAgentRunMediaResolver.prototype, "RunMJAIAgentRunMediaDynamicView", null);
|
|
44434
|
+
__decorate([
|
|
44435
|
+
Query(() => MJAIAgentRunMedia_, { nullable: true }),
|
|
44436
|
+
__param(0, Arg('ID', () => String)),
|
|
44437
|
+
__param(1, Ctx()),
|
|
44438
|
+
__param(2, PubSub()),
|
|
44439
|
+
__metadata("design:type", Function),
|
|
44440
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
44441
|
+
__metadata("design:returntype", Promise)
|
|
44442
|
+
], MJAIAgentRunMediaResolver.prototype, "MJAIAgentRunMedia", null);
|
|
44443
|
+
__decorate([
|
|
44444
|
+
Mutation(() => MJAIAgentRunMedia_),
|
|
44445
|
+
__param(0, Arg('input', () => CreateMJAIAgentRunMediaInput)),
|
|
44446
|
+
__param(1, Ctx()),
|
|
44447
|
+
__param(2, PubSub()),
|
|
44448
|
+
__metadata("design:type", Function),
|
|
44449
|
+
__metadata("design:paramtypes", [CreateMJAIAgentRunMediaInput, Object, PubSubEngine]),
|
|
44450
|
+
__metadata("design:returntype", Promise)
|
|
44451
|
+
], MJAIAgentRunMediaResolver.prototype, "CreateMJAIAgentRunMedia", null);
|
|
44452
|
+
__decorate([
|
|
44453
|
+
Mutation(() => MJAIAgentRunMedia_),
|
|
44454
|
+
__param(0, Arg('input', () => UpdateMJAIAgentRunMediaInput)),
|
|
44455
|
+
__param(1, Ctx()),
|
|
44456
|
+
__param(2, PubSub()),
|
|
44457
|
+
__metadata("design:type", Function),
|
|
44458
|
+
__metadata("design:paramtypes", [UpdateMJAIAgentRunMediaInput, Object, PubSubEngine]),
|
|
44459
|
+
__metadata("design:returntype", Promise)
|
|
44460
|
+
], MJAIAgentRunMediaResolver.prototype, "UpdateMJAIAgentRunMedia", null);
|
|
44461
|
+
__decorate([
|
|
44462
|
+
Mutation(() => MJAIAgentRunMedia_),
|
|
44463
|
+
__param(0, Arg('ID', () => String)),
|
|
44464
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
44465
|
+
__param(2, Ctx()),
|
|
44466
|
+
__param(3, PubSub()),
|
|
44467
|
+
__metadata("design:type", Function),
|
|
44468
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
44469
|
+
__metadata("design:returntype", Promise)
|
|
44470
|
+
], MJAIAgentRunMediaResolver.prototype, "DeleteMJAIAgentRunMedia", null);
|
|
44471
|
+
MJAIAgentRunMediaResolver = __decorate([
|
|
44472
|
+
Resolver(MJAIAgentRunMedia_)
|
|
44473
|
+
], MJAIAgentRunMediaResolver);
|
|
44474
|
+
export { MJAIAgentRunMediaResolver };
|
|
43516
44475
|
let MJAIAgentRunStep_ = class MJAIAgentRunStep_ {
|
|
43517
44476
|
ID;
|
|
43518
44477
|
AgentRunID;
|
|
@@ -44108,6 +45067,7 @@ let MJAIAgentRun_ = class MJAIAgentRun_ {
|
|
|
44108
45067
|
MJ_AIAgentRuns_ParentRunIDArray;
|
|
44109
45068
|
MJ_AIAgentExamples_SourceAIAgentRunIDArray;
|
|
44110
45069
|
AIAgentNotes_SourceAIAgentRunIDArray;
|
|
45070
|
+
MJ_AIAgentRunMedias_AgentRunIDArray;
|
|
44111
45071
|
MJ_AIPromptRuns_AgentRunIDArray;
|
|
44112
45072
|
};
|
|
44113
45073
|
__decorate([
|
|
@@ -44375,6 +45335,10 @@ __decorate([
|
|
|
44375
45335
|
Field(() => [MJAIAgentNote_]),
|
|
44376
45336
|
__metadata("design:type", Array)
|
|
44377
45337
|
], MJAIAgentRun_.prototype, "AIAgentNotes_SourceAIAgentRunIDArray", void 0);
|
|
45338
|
+
__decorate([
|
|
45339
|
+
Field(() => [MJAIAgentRunMedia_]),
|
|
45340
|
+
__metadata("design:type", Array)
|
|
45341
|
+
], MJAIAgentRun_.prototype, "MJ_AIAgentRunMedias_AgentRunIDArray", void 0);
|
|
44378
45342
|
__decorate([
|
|
44379
45343
|
Field(() => [MJAIPromptRun_]),
|
|
44380
45344
|
__metadata("design:type", Array)
|
|
@@ -44890,6 +45854,15 @@ let MJAIAgentRunResolver = class MJAIAgentRunResolver extends ResolverBase {
|
|
|
44890
45854
|
const result = await this.ArrayMapFieldNamesToCodeNames('AI Agent Notes', rows, this.GetUserFromPayload(userPayload));
|
|
44891
45855
|
return result;
|
|
44892
45856
|
}
|
|
45857
|
+
async MJ_AIAgentRunMedias_AgentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
45858
|
+
this.CheckUserReadPermissions('MJ: AI Agent Run Medias', userPayload);
|
|
45859
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
45860
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
45861
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRunMedias] WHERE [AgentRunID]='${mjaiagentrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
45862
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
45863
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows, this.GetUserFromPayload(userPayload));
|
|
45864
|
+
return result;
|
|
45865
|
+
}
|
|
44893
45866
|
async MJ_AIPromptRuns_AgentRunIDArray(mjaiagentrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
44894
45867
|
this.CheckUserReadPermissions('MJ: AI Prompt Runs', userPayload);
|
|
44895
45868
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -44985,6 +45958,15 @@ __decorate([
|
|
|
44985
45958
|
__metadata("design:paramtypes", [MJAIAgentRun_, Object, PubSubEngine]),
|
|
44986
45959
|
__metadata("design:returntype", Promise)
|
|
44987
45960
|
], MJAIAgentRunResolver.prototype, "AIAgentNotes_SourceAIAgentRunIDArray", null);
|
|
45961
|
+
__decorate([
|
|
45962
|
+
FieldResolver(() => [MJAIAgentRunMedia_]),
|
|
45963
|
+
__param(0, Root()),
|
|
45964
|
+
__param(1, Ctx()),
|
|
45965
|
+
__param(2, PubSub()),
|
|
45966
|
+
__metadata("design:type", Function),
|
|
45967
|
+
__metadata("design:paramtypes", [MJAIAgentRun_, Object, PubSubEngine]),
|
|
45968
|
+
__metadata("design:returntype", Promise)
|
|
45969
|
+
], MJAIAgentRunResolver.prototype, "MJ_AIAgentRunMedias_AgentRunIDArray", null);
|
|
44988
45970
|
__decorate([
|
|
44989
45971
|
FieldResolver(() => [MJAIPromptRun_]),
|
|
44990
45972
|
__param(0, Root()),
|
|
@@ -47832,7 +48814,9 @@ let MJAIModality_ = class MJAIModality_ {
|
|
|
47832
48814
|
MJ_AIModelModalities_ModalityIDArray;
|
|
47833
48815
|
MJ_ConversationDetailAttachments_ModalityIDArray;
|
|
47834
48816
|
AIModelTypes_DefaultOutputModalityIDArray;
|
|
48817
|
+
MJ_AIPromptRunMedias_ModalityIDArray;
|
|
47835
48818
|
AIModelTypes_DefaultInputModalityIDArray;
|
|
48819
|
+
MJ_AIAgentRunMedias_ModalityIDArray;
|
|
47836
48820
|
};
|
|
47837
48821
|
__decorate([
|
|
47838
48822
|
Field(),
|
|
@@ -47902,10 +48886,18 @@ __decorate([
|
|
|
47902
48886
|
Field(() => [MJAIModelType_]),
|
|
47903
48887
|
__metadata("design:type", Array)
|
|
47904
48888
|
], MJAIModality_.prototype, "AIModelTypes_DefaultOutputModalityIDArray", void 0);
|
|
48889
|
+
__decorate([
|
|
48890
|
+
Field(() => [MJAIPromptRunMedia_]),
|
|
48891
|
+
__metadata("design:type", Array)
|
|
48892
|
+
], MJAIModality_.prototype, "MJ_AIPromptRunMedias_ModalityIDArray", void 0);
|
|
47905
48893
|
__decorate([
|
|
47906
48894
|
Field(() => [MJAIModelType_]),
|
|
47907
48895
|
__metadata("design:type", Array)
|
|
47908
48896
|
], MJAIModality_.prototype, "AIModelTypes_DefaultInputModalityIDArray", void 0);
|
|
48897
|
+
__decorate([
|
|
48898
|
+
Field(() => [MJAIAgentRunMedia_]),
|
|
48899
|
+
__metadata("design:type", Array)
|
|
48900
|
+
], MJAIModality_.prototype, "MJ_AIAgentRunMedias_ModalityIDArray", void 0);
|
|
47909
48901
|
MJAIModality_ = __decorate([
|
|
47910
48902
|
ObjectType({ description: `Master list of AI content modalities (Text, Image, Audio, Video, etc.) that models can accept as input or produce as output. New modalities can be added via INSERT without schema changes.` })
|
|
47911
48903
|
], MJAIModality_);
|
|
@@ -48117,6 +49109,15 @@ let MJAIModalityResolver = class MJAIModalityResolver extends ResolverBase {
|
|
|
48117
49109
|
const result = await this.ArrayMapFieldNamesToCodeNames('AI Model Types', rows, this.GetUserFromPayload(userPayload));
|
|
48118
49110
|
return result;
|
|
48119
49111
|
}
|
|
49112
|
+
async MJ_AIPromptRunMedias_ModalityIDArray(mjaimodality_, { dataSources, userPayload, providers }, pubSub) {
|
|
49113
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Run Medias', userPayload);
|
|
49114
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49115
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
49116
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptRunMedias] WHERE [ModalityID]='${mjaimodality_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
49117
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
49118
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Run Medias', rows, this.GetUserFromPayload(userPayload));
|
|
49119
|
+
return result;
|
|
49120
|
+
}
|
|
48120
49121
|
async AIModelTypes_DefaultInputModalityIDArray(mjaimodality_, { dataSources, userPayload, providers }, pubSub) {
|
|
48121
49122
|
this.CheckUserReadPermissions('AI Model Types', userPayload);
|
|
48122
49123
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -48126,6 +49127,15 @@ let MJAIModalityResolver = class MJAIModalityResolver extends ResolverBase {
|
|
|
48126
49127
|
const result = await this.ArrayMapFieldNamesToCodeNames('AI Model Types', rows, this.GetUserFromPayload(userPayload));
|
|
48127
49128
|
return result;
|
|
48128
49129
|
}
|
|
49130
|
+
async MJ_AIAgentRunMedias_ModalityIDArray(mjaimodality_, { dataSources, userPayload, providers }, pubSub) {
|
|
49131
|
+
this.CheckUserReadPermissions('MJ: AI Agent Run Medias', userPayload);
|
|
49132
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
49133
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
49134
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRunMedias] WHERE [ModalityID]='${mjaimodality_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
49135
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
49136
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows, this.GetUserFromPayload(userPayload));
|
|
49137
|
+
return result;
|
|
49138
|
+
}
|
|
48129
49139
|
async CreateMJAIModality(input, { providers, userPayload }, pubSub) {
|
|
48130
49140
|
const provider = GetReadWriteProvider(providers);
|
|
48131
49141
|
return this.CreateRecord('MJ: AI Modalities', input, provider, userPayload, pubSub);
|
|
@@ -48212,6 +49222,15 @@ __decorate([
|
|
|
48212
49222
|
__metadata("design:paramtypes", [MJAIModality_, Object, PubSubEngine]),
|
|
48213
49223
|
__metadata("design:returntype", Promise)
|
|
48214
49224
|
], MJAIModalityResolver.prototype, "AIModelTypes_DefaultOutputModalityIDArray", null);
|
|
49225
|
+
__decorate([
|
|
49226
|
+
FieldResolver(() => [MJAIPromptRunMedia_]),
|
|
49227
|
+
__param(0, Root()),
|
|
49228
|
+
__param(1, Ctx()),
|
|
49229
|
+
__param(2, PubSub()),
|
|
49230
|
+
__metadata("design:type", Function),
|
|
49231
|
+
__metadata("design:paramtypes", [MJAIModality_, Object, PubSubEngine]),
|
|
49232
|
+
__metadata("design:returntype", Promise)
|
|
49233
|
+
], MJAIModalityResolver.prototype, "MJ_AIPromptRunMedias_ModalityIDArray", null);
|
|
48215
49234
|
__decorate([
|
|
48216
49235
|
FieldResolver(() => [MJAIModelType_]),
|
|
48217
49236
|
__param(0, Root()),
|
|
@@ -48221,6 +49240,15 @@ __decorate([
|
|
|
48221
49240
|
__metadata("design:paramtypes", [MJAIModality_, Object, PubSubEngine]),
|
|
48222
49241
|
__metadata("design:returntype", Promise)
|
|
48223
49242
|
], MJAIModalityResolver.prototype, "AIModelTypes_DefaultInputModalityIDArray", null);
|
|
49243
|
+
__decorate([
|
|
49244
|
+
FieldResolver(() => [MJAIAgentRunMedia_]),
|
|
49245
|
+
__param(0, Root()),
|
|
49246
|
+
__param(1, Ctx()),
|
|
49247
|
+
__param(2, PubSub()),
|
|
49248
|
+
__metadata("design:type", Function),
|
|
49249
|
+
__metadata("design:paramtypes", [MJAIModality_, Object, PubSubEngine]),
|
|
49250
|
+
__metadata("design:returntype", Promise)
|
|
49251
|
+
], MJAIModalityResolver.prototype, "MJ_AIAgentRunMedias_ModalityIDArray", null);
|
|
48224
49252
|
__decorate([
|
|
48225
49253
|
Mutation(() => MJAIModality_),
|
|
48226
49254
|
__param(0, Arg('input', () => CreateMJAIModalityInput)),
|
|
@@ -50703,6 +51731,459 @@ MJAIPromptModelResolver = __decorate([
|
|
|
50703
51731
|
Resolver(MJAIPromptModel_)
|
|
50704
51732
|
], MJAIPromptModelResolver);
|
|
50705
51733
|
export { MJAIPromptModelResolver };
|
|
51734
|
+
let MJAIPromptRunMedia_ = class MJAIPromptRunMedia_ {
|
|
51735
|
+
ID;
|
|
51736
|
+
PromptRunID;
|
|
51737
|
+
ModalityID;
|
|
51738
|
+
MimeType;
|
|
51739
|
+
FileName;
|
|
51740
|
+
FileSizeBytes;
|
|
51741
|
+
Width;
|
|
51742
|
+
Height;
|
|
51743
|
+
DurationSeconds;
|
|
51744
|
+
InlineData;
|
|
51745
|
+
FileID;
|
|
51746
|
+
ThumbnailBase64;
|
|
51747
|
+
Metadata;
|
|
51748
|
+
DisplayOrder;
|
|
51749
|
+
_mj__CreatedAt;
|
|
51750
|
+
_mj__UpdatedAt;
|
|
51751
|
+
Description;
|
|
51752
|
+
PromptRun;
|
|
51753
|
+
Modality;
|
|
51754
|
+
File;
|
|
51755
|
+
MJ_AIAgentRunMedias_SourcePromptRunMediaIDArray;
|
|
51756
|
+
};
|
|
51757
|
+
__decorate([
|
|
51758
|
+
Field(),
|
|
51759
|
+
MaxLength(16),
|
|
51760
|
+
__metadata("design:type", String)
|
|
51761
|
+
], MJAIPromptRunMedia_.prototype, "ID", void 0);
|
|
51762
|
+
__decorate([
|
|
51763
|
+
Field(),
|
|
51764
|
+
MaxLength(16),
|
|
51765
|
+
__metadata("design:type", String)
|
|
51766
|
+
], MJAIPromptRunMedia_.prototype, "PromptRunID", void 0);
|
|
51767
|
+
__decorate([
|
|
51768
|
+
Field(),
|
|
51769
|
+
MaxLength(16),
|
|
51770
|
+
__metadata("design:type", String)
|
|
51771
|
+
], MJAIPromptRunMedia_.prototype, "ModalityID", void 0);
|
|
51772
|
+
__decorate([
|
|
51773
|
+
Field(),
|
|
51774
|
+
MaxLength(200),
|
|
51775
|
+
__metadata("design:type", String)
|
|
51776
|
+
], MJAIPromptRunMedia_.prototype, "MimeType", void 0);
|
|
51777
|
+
__decorate([
|
|
51778
|
+
Field({ nullable: true }),
|
|
51779
|
+
MaxLength(510),
|
|
51780
|
+
__metadata("design:type", String)
|
|
51781
|
+
], MJAIPromptRunMedia_.prototype, "FileName", void 0);
|
|
51782
|
+
__decorate([
|
|
51783
|
+
Field(() => Int, { nullable: true }),
|
|
51784
|
+
__metadata("design:type", Number)
|
|
51785
|
+
], MJAIPromptRunMedia_.prototype, "FileSizeBytes", void 0);
|
|
51786
|
+
__decorate([
|
|
51787
|
+
Field(() => Int, { nullable: true }),
|
|
51788
|
+
__metadata("design:type", Number)
|
|
51789
|
+
], MJAIPromptRunMedia_.prototype, "Width", void 0);
|
|
51790
|
+
__decorate([
|
|
51791
|
+
Field(() => Int, { nullable: true }),
|
|
51792
|
+
__metadata("design:type", Number)
|
|
51793
|
+
], MJAIPromptRunMedia_.prototype, "Height", void 0);
|
|
51794
|
+
__decorate([
|
|
51795
|
+
Field(() => Float, { nullable: true }),
|
|
51796
|
+
__metadata("design:type", Number)
|
|
51797
|
+
], MJAIPromptRunMedia_.prototype, "DurationSeconds", void 0);
|
|
51798
|
+
__decorate([
|
|
51799
|
+
Field({ nullable: true }),
|
|
51800
|
+
__metadata("design:type", String)
|
|
51801
|
+
], MJAIPromptRunMedia_.prototype, "InlineData", void 0);
|
|
51802
|
+
__decorate([
|
|
51803
|
+
Field({ nullable: true }),
|
|
51804
|
+
MaxLength(16),
|
|
51805
|
+
__metadata("design:type", String)
|
|
51806
|
+
], MJAIPromptRunMedia_.prototype, "FileID", void 0);
|
|
51807
|
+
__decorate([
|
|
51808
|
+
Field({ nullable: true }),
|
|
51809
|
+
__metadata("design:type", String)
|
|
51810
|
+
], MJAIPromptRunMedia_.prototype, "ThumbnailBase64", void 0);
|
|
51811
|
+
__decorate([
|
|
51812
|
+
Field({ nullable: true }),
|
|
51813
|
+
__metadata("design:type", String)
|
|
51814
|
+
], MJAIPromptRunMedia_.prototype, "Metadata", void 0);
|
|
51815
|
+
__decorate([
|
|
51816
|
+
Field(() => Int),
|
|
51817
|
+
__metadata("design:type", Number)
|
|
51818
|
+
], MJAIPromptRunMedia_.prototype, "DisplayOrder", void 0);
|
|
51819
|
+
__decorate([
|
|
51820
|
+
Field(),
|
|
51821
|
+
MaxLength(10),
|
|
51822
|
+
__metadata("design:type", Date)
|
|
51823
|
+
], MJAIPromptRunMedia_.prototype, "_mj__CreatedAt", void 0);
|
|
51824
|
+
__decorate([
|
|
51825
|
+
Field(),
|
|
51826
|
+
MaxLength(10),
|
|
51827
|
+
__metadata("design:type", Date)
|
|
51828
|
+
], MJAIPromptRunMedia_.prototype, "_mj__UpdatedAt", void 0);
|
|
51829
|
+
__decorate([
|
|
51830
|
+
Field({ nullable: true, description: `Description of the media generated during prompt execution. Provides context for audit trail.` }),
|
|
51831
|
+
__metadata("design:type", String)
|
|
51832
|
+
], MJAIPromptRunMedia_.prototype, "Description", void 0);
|
|
51833
|
+
__decorate([
|
|
51834
|
+
Field({ nullable: true }),
|
|
51835
|
+
MaxLength(510),
|
|
51836
|
+
__metadata("design:type", String)
|
|
51837
|
+
], MJAIPromptRunMedia_.prototype, "PromptRun", void 0);
|
|
51838
|
+
__decorate([
|
|
51839
|
+
Field(),
|
|
51840
|
+
MaxLength(100),
|
|
51841
|
+
__metadata("design:type", String)
|
|
51842
|
+
], MJAIPromptRunMedia_.prototype, "Modality", void 0);
|
|
51843
|
+
__decorate([
|
|
51844
|
+
Field({ nullable: true }),
|
|
51845
|
+
MaxLength(1000),
|
|
51846
|
+
__metadata("design:type", String)
|
|
51847
|
+
], MJAIPromptRunMedia_.prototype, "File", void 0);
|
|
51848
|
+
__decorate([
|
|
51849
|
+
Field(() => [MJAIAgentRunMedia_]),
|
|
51850
|
+
__metadata("design:type", Array)
|
|
51851
|
+
], MJAIPromptRunMedia_.prototype, "MJ_AIAgentRunMedias_SourcePromptRunMediaIDArray", void 0);
|
|
51852
|
+
MJAIPromptRunMedia_ = __decorate([
|
|
51853
|
+
ObjectType()
|
|
51854
|
+
], MJAIPromptRunMedia_);
|
|
51855
|
+
export { MJAIPromptRunMedia_ };
|
|
51856
|
+
let CreateMJAIPromptRunMediaInput = class CreateMJAIPromptRunMediaInput {
|
|
51857
|
+
ID;
|
|
51858
|
+
PromptRunID;
|
|
51859
|
+
ModalityID;
|
|
51860
|
+
MimeType;
|
|
51861
|
+
FileName;
|
|
51862
|
+
FileSizeBytes;
|
|
51863
|
+
Width;
|
|
51864
|
+
Height;
|
|
51865
|
+
DurationSeconds;
|
|
51866
|
+
InlineData;
|
|
51867
|
+
FileID;
|
|
51868
|
+
ThumbnailBase64;
|
|
51869
|
+
Metadata;
|
|
51870
|
+
DisplayOrder;
|
|
51871
|
+
Description;
|
|
51872
|
+
};
|
|
51873
|
+
__decorate([
|
|
51874
|
+
Field({ nullable: true }),
|
|
51875
|
+
__metadata("design:type", String)
|
|
51876
|
+
], CreateMJAIPromptRunMediaInput.prototype, "ID", void 0);
|
|
51877
|
+
__decorate([
|
|
51878
|
+
Field({ nullable: true }),
|
|
51879
|
+
__metadata("design:type", String)
|
|
51880
|
+
], CreateMJAIPromptRunMediaInput.prototype, "PromptRunID", void 0);
|
|
51881
|
+
__decorate([
|
|
51882
|
+
Field({ nullable: true }),
|
|
51883
|
+
__metadata("design:type", String)
|
|
51884
|
+
], CreateMJAIPromptRunMediaInput.prototype, "ModalityID", void 0);
|
|
51885
|
+
__decorate([
|
|
51886
|
+
Field({ nullable: true }),
|
|
51887
|
+
__metadata("design:type", String)
|
|
51888
|
+
], CreateMJAIPromptRunMediaInput.prototype, "MimeType", void 0);
|
|
51889
|
+
__decorate([
|
|
51890
|
+
Field({ nullable: true }),
|
|
51891
|
+
__metadata("design:type", String)
|
|
51892
|
+
], CreateMJAIPromptRunMediaInput.prototype, "FileName", void 0);
|
|
51893
|
+
__decorate([
|
|
51894
|
+
Field(() => Int, { nullable: true }),
|
|
51895
|
+
__metadata("design:type", Number)
|
|
51896
|
+
], CreateMJAIPromptRunMediaInput.prototype, "FileSizeBytes", void 0);
|
|
51897
|
+
__decorate([
|
|
51898
|
+
Field(() => Int, { nullable: true }),
|
|
51899
|
+
__metadata("design:type", Number)
|
|
51900
|
+
], CreateMJAIPromptRunMediaInput.prototype, "Width", void 0);
|
|
51901
|
+
__decorate([
|
|
51902
|
+
Field(() => Int, { nullable: true }),
|
|
51903
|
+
__metadata("design:type", Number)
|
|
51904
|
+
], CreateMJAIPromptRunMediaInput.prototype, "Height", void 0);
|
|
51905
|
+
__decorate([
|
|
51906
|
+
Field(() => Float, { nullable: true }),
|
|
51907
|
+
__metadata("design:type", Number)
|
|
51908
|
+
], CreateMJAIPromptRunMediaInput.prototype, "DurationSeconds", void 0);
|
|
51909
|
+
__decorate([
|
|
51910
|
+
Field({ nullable: true }),
|
|
51911
|
+
__metadata("design:type", String)
|
|
51912
|
+
], CreateMJAIPromptRunMediaInput.prototype, "InlineData", void 0);
|
|
51913
|
+
__decorate([
|
|
51914
|
+
Field({ nullable: true }),
|
|
51915
|
+
__metadata("design:type", String)
|
|
51916
|
+
], CreateMJAIPromptRunMediaInput.prototype, "FileID", void 0);
|
|
51917
|
+
__decorate([
|
|
51918
|
+
Field({ nullable: true }),
|
|
51919
|
+
__metadata("design:type", String)
|
|
51920
|
+
], CreateMJAIPromptRunMediaInput.prototype, "ThumbnailBase64", void 0);
|
|
51921
|
+
__decorate([
|
|
51922
|
+
Field({ nullable: true }),
|
|
51923
|
+
__metadata("design:type", String)
|
|
51924
|
+
], CreateMJAIPromptRunMediaInput.prototype, "Metadata", void 0);
|
|
51925
|
+
__decorate([
|
|
51926
|
+
Field(() => Int, { nullable: true }),
|
|
51927
|
+
__metadata("design:type", Number)
|
|
51928
|
+
], CreateMJAIPromptRunMediaInput.prototype, "DisplayOrder", void 0);
|
|
51929
|
+
__decorate([
|
|
51930
|
+
Field({ nullable: true }),
|
|
51931
|
+
__metadata("design:type", String)
|
|
51932
|
+
], CreateMJAIPromptRunMediaInput.prototype, "Description", void 0);
|
|
51933
|
+
CreateMJAIPromptRunMediaInput = __decorate([
|
|
51934
|
+
InputType()
|
|
51935
|
+
], CreateMJAIPromptRunMediaInput);
|
|
51936
|
+
export { CreateMJAIPromptRunMediaInput };
|
|
51937
|
+
let UpdateMJAIPromptRunMediaInput = class UpdateMJAIPromptRunMediaInput {
|
|
51938
|
+
ID;
|
|
51939
|
+
PromptRunID;
|
|
51940
|
+
ModalityID;
|
|
51941
|
+
MimeType;
|
|
51942
|
+
FileName;
|
|
51943
|
+
FileSizeBytes;
|
|
51944
|
+
Width;
|
|
51945
|
+
Height;
|
|
51946
|
+
DurationSeconds;
|
|
51947
|
+
InlineData;
|
|
51948
|
+
FileID;
|
|
51949
|
+
ThumbnailBase64;
|
|
51950
|
+
Metadata;
|
|
51951
|
+
DisplayOrder;
|
|
51952
|
+
Description;
|
|
51953
|
+
OldValues___;
|
|
51954
|
+
};
|
|
51955
|
+
__decorate([
|
|
51956
|
+
Field(),
|
|
51957
|
+
__metadata("design:type", String)
|
|
51958
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "ID", void 0);
|
|
51959
|
+
__decorate([
|
|
51960
|
+
Field({ nullable: true }),
|
|
51961
|
+
__metadata("design:type", String)
|
|
51962
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "PromptRunID", void 0);
|
|
51963
|
+
__decorate([
|
|
51964
|
+
Field({ nullable: true }),
|
|
51965
|
+
__metadata("design:type", String)
|
|
51966
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "ModalityID", void 0);
|
|
51967
|
+
__decorate([
|
|
51968
|
+
Field({ nullable: true }),
|
|
51969
|
+
__metadata("design:type", String)
|
|
51970
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "MimeType", void 0);
|
|
51971
|
+
__decorate([
|
|
51972
|
+
Field({ nullable: true }),
|
|
51973
|
+
__metadata("design:type", String)
|
|
51974
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "FileName", void 0);
|
|
51975
|
+
__decorate([
|
|
51976
|
+
Field(() => Int, { nullable: true }),
|
|
51977
|
+
__metadata("design:type", Number)
|
|
51978
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "FileSizeBytes", void 0);
|
|
51979
|
+
__decorate([
|
|
51980
|
+
Field(() => Int, { nullable: true }),
|
|
51981
|
+
__metadata("design:type", Number)
|
|
51982
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "Width", void 0);
|
|
51983
|
+
__decorate([
|
|
51984
|
+
Field(() => Int, { nullable: true }),
|
|
51985
|
+
__metadata("design:type", Number)
|
|
51986
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "Height", void 0);
|
|
51987
|
+
__decorate([
|
|
51988
|
+
Field(() => Float, { nullable: true }),
|
|
51989
|
+
__metadata("design:type", Number)
|
|
51990
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "DurationSeconds", void 0);
|
|
51991
|
+
__decorate([
|
|
51992
|
+
Field({ nullable: true }),
|
|
51993
|
+
__metadata("design:type", String)
|
|
51994
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "InlineData", void 0);
|
|
51995
|
+
__decorate([
|
|
51996
|
+
Field({ nullable: true }),
|
|
51997
|
+
__metadata("design:type", String)
|
|
51998
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "FileID", void 0);
|
|
51999
|
+
__decorate([
|
|
52000
|
+
Field({ nullable: true }),
|
|
52001
|
+
__metadata("design:type", String)
|
|
52002
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "ThumbnailBase64", void 0);
|
|
52003
|
+
__decorate([
|
|
52004
|
+
Field({ nullable: true }),
|
|
52005
|
+
__metadata("design:type", String)
|
|
52006
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "Metadata", void 0);
|
|
52007
|
+
__decorate([
|
|
52008
|
+
Field(() => Int, { nullable: true }),
|
|
52009
|
+
__metadata("design:type", Number)
|
|
52010
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "DisplayOrder", void 0);
|
|
52011
|
+
__decorate([
|
|
52012
|
+
Field({ nullable: true }),
|
|
52013
|
+
__metadata("design:type", String)
|
|
52014
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "Description", void 0);
|
|
52015
|
+
__decorate([
|
|
52016
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
52017
|
+
__metadata("design:type", Array)
|
|
52018
|
+
], UpdateMJAIPromptRunMediaInput.prototype, "OldValues___", void 0);
|
|
52019
|
+
UpdateMJAIPromptRunMediaInput = __decorate([
|
|
52020
|
+
InputType()
|
|
52021
|
+
], UpdateMJAIPromptRunMediaInput);
|
|
52022
|
+
export { UpdateMJAIPromptRunMediaInput };
|
|
52023
|
+
let RunMJAIPromptRunMediaViewResult = class RunMJAIPromptRunMediaViewResult {
|
|
52024
|
+
Results;
|
|
52025
|
+
UserViewRunID;
|
|
52026
|
+
RowCount;
|
|
52027
|
+
TotalRowCount;
|
|
52028
|
+
ExecutionTime;
|
|
52029
|
+
ErrorMessage;
|
|
52030
|
+
Success;
|
|
52031
|
+
};
|
|
52032
|
+
__decorate([
|
|
52033
|
+
Field(() => [MJAIPromptRunMedia_]),
|
|
52034
|
+
__metadata("design:type", Array)
|
|
52035
|
+
], RunMJAIPromptRunMediaViewResult.prototype, "Results", void 0);
|
|
52036
|
+
__decorate([
|
|
52037
|
+
Field(() => String, { nullable: true }),
|
|
52038
|
+
__metadata("design:type", String)
|
|
52039
|
+
], RunMJAIPromptRunMediaViewResult.prototype, "UserViewRunID", void 0);
|
|
52040
|
+
__decorate([
|
|
52041
|
+
Field(() => Int, { nullable: true }),
|
|
52042
|
+
__metadata("design:type", Number)
|
|
52043
|
+
], RunMJAIPromptRunMediaViewResult.prototype, "RowCount", void 0);
|
|
52044
|
+
__decorate([
|
|
52045
|
+
Field(() => Int, { nullable: true }),
|
|
52046
|
+
__metadata("design:type", Number)
|
|
52047
|
+
], RunMJAIPromptRunMediaViewResult.prototype, "TotalRowCount", void 0);
|
|
52048
|
+
__decorate([
|
|
52049
|
+
Field(() => Int, { nullable: true }),
|
|
52050
|
+
__metadata("design:type", Number)
|
|
52051
|
+
], RunMJAIPromptRunMediaViewResult.prototype, "ExecutionTime", void 0);
|
|
52052
|
+
__decorate([
|
|
52053
|
+
Field({ nullable: true }),
|
|
52054
|
+
__metadata("design:type", String)
|
|
52055
|
+
], RunMJAIPromptRunMediaViewResult.prototype, "ErrorMessage", void 0);
|
|
52056
|
+
__decorate([
|
|
52057
|
+
Field(() => Boolean, { nullable: false }),
|
|
52058
|
+
__metadata("design:type", Boolean)
|
|
52059
|
+
], RunMJAIPromptRunMediaViewResult.prototype, "Success", void 0);
|
|
52060
|
+
RunMJAIPromptRunMediaViewResult = __decorate([
|
|
52061
|
+
ObjectType()
|
|
52062
|
+
], RunMJAIPromptRunMediaViewResult);
|
|
52063
|
+
export { RunMJAIPromptRunMediaViewResult };
|
|
52064
|
+
let MJAIPromptRunMediaResolver = class MJAIPromptRunMediaResolver extends ResolverBase {
|
|
52065
|
+
async RunMJAIPromptRunMediaViewByID(input, { providers, userPayload }, pubSub) {
|
|
52066
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52067
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
52068
|
+
}
|
|
52069
|
+
async RunMJAIPromptRunMediaViewByName(input, { providers, userPayload }, pubSub) {
|
|
52070
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52071
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
52072
|
+
}
|
|
52073
|
+
async RunMJAIPromptRunMediaDynamicView(input, { providers, userPayload }, pubSub) {
|
|
52074
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52075
|
+
input.EntityName = 'MJ: AI Prompt Run Medias';
|
|
52076
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
52077
|
+
}
|
|
52078
|
+
async MJAIPromptRunMedia(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
52079
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Run Medias', userPayload);
|
|
52080
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52081
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
52082
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptRunMedias] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
52083
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
52084
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: AI Prompt Run Medias', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
52085
|
+
return result;
|
|
52086
|
+
}
|
|
52087
|
+
async MJ_AIAgentRunMedias_SourcePromptRunMediaIDArray(mjaipromptrunmedia_, { dataSources, userPayload, providers }, pubSub) {
|
|
52088
|
+
this.CheckUserReadPermissions('MJ: AI Agent Run Medias', userPayload);
|
|
52089
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
52090
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
52091
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRunMedias] WHERE [SourcePromptRunMediaID]='${mjaipromptrunmedia_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
52092
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
52093
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Medias', rows, this.GetUserFromPayload(userPayload));
|
|
52094
|
+
return result;
|
|
52095
|
+
}
|
|
52096
|
+
async CreateMJAIPromptRunMedia(input, { providers, userPayload }, pubSub) {
|
|
52097
|
+
const provider = GetReadWriteProvider(providers);
|
|
52098
|
+
return this.CreateRecord('MJ: AI Prompt Run Medias', input, provider, userPayload, pubSub);
|
|
52099
|
+
}
|
|
52100
|
+
async UpdateMJAIPromptRunMedia(input, { providers, userPayload }, pubSub) {
|
|
52101
|
+
const provider = GetReadWriteProvider(providers);
|
|
52102
|
+
return this.UpdateRecord('MJ: AI Prompt Run Medias', input, provider, userPayload, pubSub);
|
|
52103
|
+
}
|
|
52104
|
+
async DeleteMJAIPromptRunMedia(ID, options, { providers, userPayload }, pubSub) {
|
|
52105
|
+
const provider = GetReadWriteProvider(providers);
|
|
52106
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
52107
|
+
return this.DeleteRecord('MJ: AI Prompt Run Medias', key, options, provider, userPayload, pubSub);
|
|
52108
|
+
}
|
|
52109
|
+
};
|
|
52110
|
+
__decorate([
|
|
52111
|
+
Query(() => RunMJAIPromptRunMediaViewResult),
|
|
52112
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
52113
|
+
__param(1, Ctx()),
|
|
52114
|
+
__param(2, PubSub()),
|
|
52115
|
+
__metadata("design:type", Function),
|
|
52116
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
52117
|
+
__metadata("design:returntype", Promise)
|
|
52118
|
+
], MJAIPromptRunMediaResolver.prototype, "RunMJAIPromptRunMediaViewByID", null);
|
|
52119
|
+
__decorate([
|
|
52120
|
+
Query(() => RunMJAIPromptRunMediaViewResult),
|
|
52121
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
52122
|
+
__param(1, Ctx()),
|
|
52123
|
+
__param(2, PubSub()),
|
|
52124
|
+
__metadata("design:type", Function),
|
|
52125
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
52126
|
+
__metadata("design:returntype", Promise)
|
|
52127
|
+
], MJAIPromptRunMediaResolver.prototype, "RunMJAIPromptRunMediaViewByName", null);
|
|
52128
|
+
__decorate([
|
|
52129
|
+
Query(() => RunMJAIPromptRunMediaViewResult),
|
|
52130
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
52131
|
+
__param(1, Ctx()),
|
|
52132
|
+
__param(2, PubSub()),
|
|
52133
|
+
__metadata("design:type", Function),
|
|
52134
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
52135
|
+
__metadata("design:returntype", Promise)
|
|
52136
|
+
], MJAIPromptRunMediaResolver.prototype, "RunMJAIPromptRunMediaDynamicView", null);
|
|
52137
|
+
__decorate([
|
|
52138
|
+
Query(() => MJAIPromptRunMedia_, { nullable: true }),
|
|
52139
|
+
__param(0, Arg('ID', () => String)),
|
|
52140
|
+
__param(1, Ctx()),
|
|
52141
|
+
__param(2, PubSub()),
|
|
52142
|
+
__metadata("design:type", Function),
|
|
52143
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
52144
|
+
__metadata("design:returntype", Promise)
|
|
52145
|
+
], MJAIPromptRunMediaResolver.prototype, "MJAIPromptRunMedia", null);
|
|
52146
|
+
__decorate([
|
|
52147
|
+
FieldResolver(() => [MJAIAgentRunMedia_]),
|
|
52148
|
+
__param(0, Root()),
|
|
52149
|
+
__param(1, Ctx()),
|
|
52150
|
+
__param(2, PubSub()),
|
|
52151
|
+
__metadata("design:type", Function),
|
|
52152
|
+
__metadata("design:paramtypes", [MJAIPromptRunMedia_, Object, PubSubEngine]),
|
|
52153
|
+
__metadata("design:returntype", Promise)
|
|
52154
|
+
], MJAIPromptRunMediaResolver.prototype, "MJ_AIAgentRunMedias_SourcePromptRunMediaIDArray", null);
|
|
52155
|
+
__decorate([
|
|
52156
|
+
Mutation(() => MJAIPromptRunMedia_),
|
|
52157
|
+
__param(0, Arg('input', () => CreateMJAIPromptRunMediaInput)),
|
|
52158
|
+
__param(1, Ctx()),
|
|
52159
|
+
__param(2, PubSub()),
|
|
52160
|
+
__metadata("design:type", Function),
|
|
52161
|
+
__metadata("design:paramtypes", [CreateMJAIPromptRunMediaInput, Object, PubSubEngine]),
|
|
52162
|
+
__metadata("design:returntype", Promise)
|
|
52163
|
+
], MJAIPromptRunMediaResolver.prototype, "CreateMJAIPromptRunMedia", null);
|
|
52164
|
+
__decorate([
|
|
52165
|
+
Mutation(() => MJAIPromptRunMedia_),
|
|
52166
|
+
__param(0, Arg('input', () => UpdateMJAIPromptRunMediaInput)),
|
|
52167
|
+
__param(1, Ctx()),
|
|
52168
|
+
__param(2, PubSub()),
|
|
52169
|
+
__metadata("design:type", Function),
|
|
52170
|
+
__metadata("design:paramtypes", [UpdateMJAIPromptRunMediaInput, Object, PubSubEngine]),
|
|
52171
|
+
__metadata("design:returntype", Promise)
|
|
52172
|
+
], MJAIPromptRunMediaResolver.prototype, "UpdateMJAIPromptRunMedia", null);
|
|
52173
|
+
__decorate([
|
|
52174
|
+
Mutation(() => MJAIPromptRunMedia_),
|
|
52175
|
+
__param(0, Arg('ID', () => String)),
|
|
52176
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
52177
|
+
__param(2, Ctx()),
|
|
52178
|
+
__param(3, PubSub()),
|
|
52179
|
+
__metadata("design:type", Function),
|
|
52180
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
52181
|
+
__metadata("design:returntype", Promise)
|
|
52182
|
+
], MJAIPromptRunMediaResolver.prototype, "DeleteMJAIPromptRunMedia", null);
|
|
52183
|
+
MJAIPromptRunMediaResolver = __decorate([
|
|
52184
|
+
Resolver(MJAIPromptRunMedia_)
|
|
52185
|
+
], MJAIPromptRunMediaResolver);
|
|
52186
|
+
export { MJAIPromptRunMediaResolver };
|
|
50706
52187
|
let MJAIPromptRun_ = class MJAIPromptRun_ {
|
|
50707
52188
|
ID;
|
|
50708
52189
|
PromptID;
|
|
@@ -50803,6 +52284,7 @@ let MJAIPromptRun_ = class MJAIPromptRun_ {
|
|
|
50803
52284
|
RootParentID;
|
|
50804
52285
|
RootRerunFromPromptRunID;
|
|
50805
52286
|
MJ_AIPromptRuns_ParentIDArray;
|
|
52287
|
+
MJ_AIPromptRunMedias_PromptRunIDArray;
|
|
50806
52288
|
AIResultCache_PromptRunIDArray;
|
|
50807
52289
|
};
|
|
50808
52290
|
__decorate([
|
|
@@ -51246,6 +52728,10 @@ __decorate([
|
|
|
51246
52728
|
Field(() => [MJAIPromptRun_]),
|
|
51247
52729
|
__metadata("design:type", Array)
|
|
51248
52730
|
], MJAIPromptRun_.prototype, "MJ_AIPromptRuns_ParentIDArray", void 0);
|
|
52731
|
+
__decorate([
|
|
52732
|
+
Field(() => [MJAIPromptRunMedia_]),
|
|
52733
|
+
__metadata("design:type", Array)
|
|
52734
|
+
], MJAIPromptRun_.prototype, "MJ_AIPromptRunMedias_PromptRunIDArray", void 0);
|
|
51249
52735
|
__decorate([
|
|
51250
52736
|
Field(() => [MJAIResultCache_]),
|
|
51251
52737
|
__metadata("design:type", Array)
|
|
@@ -52164,6 +53650,15 @@ let MJAIPromptRunResolver = class MJAIPromptRunResolver extends ResolverBase {
|
|
|
52164
53650
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows, this.GetUserFromPayload(userPayload));
|
|
52165
53651
|
return result;
|
|
52166
53652
|
}
|
|
53653
|
+
async MJ_AIPromptRunMedias_PromptRunIDArray(mjaipromptrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
53654
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Run Medias', userPayload);
|
|
53655
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
53656
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
53657
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptRunMedias] WHERE [PromptRunID]='${mjaipromptrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Run Medias', userPayload, EntityPermissionType.Read, 'AND');
|
|
53658
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
53659
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Run Medias', rows, this.GetUserFromPayload(userPayload));
|
|
53660
|
+
return result;
|
|
53661
|
+
}
|
|
52167
53662
|
async AIResultCache_PromptRunIDArray(mjaipromptrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
52168
53663
|
this.CheckUserReadPermissions('AI Result Cache', userPayload);
|
|
52169
53664
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -52232,6 +53727,15 @@ __decorate([
|
|
|
52232
53727
|
__metadata("design:paramtypes", [MJAIPromptRun_, Object, PubSubEngine]),
|
|
52233
53728
|
__metadata("design:returntype", Promise)
|
|
52234
53729
|
], MJAIPromptRunResolver.prototype, "MJ_AIPromptRuns_ParentIDArray", null);
|
|
53730
|
+
__decorate([
|
|
53731
|
+
FieldResolver(() => [MJAIPromptRunMedia_]),
|
|
53732
|
+
__param(0, Root()),
|
|
53733
|
+
__param(1, Ctx()),
|
|
53734
|
+
__param(2, PubSub()),
|
|
53735
|
+
__metadata("design:type", Function),
|
|
53736
|
+
__metadata("design:paramtypes", [MJAIPromptRun_, Object, PubSubEngine]),
|
|
53737
|
+
__metadata("design:returntype", Promise)
|
|
53738
|
+
], MJAIPromptRunResolver.prototype, "MJ_AIPromptRunMedias_PromptRunIDArray", null);
|
|
52235
53739
|
__decorate([
|
|
52236
53740
|
FieldResolver(() => [MJAIResultCache_]),
|
|
52237
53741
|
__param(0, Root()),
|
|
@@ -59500,6 +61004,7 @@ let MJConversationDetailAttachment_ = class MJConversationDetailAttachment_ {
|
|
|
59500
61004
|
ThumbnailBase64;
|
|
59501
61005
|
_mj__CreatedAt;
|
|
59502
61006
|
_mj__UpdatedAt;
|
|
61007
|
+
Description;
|
|
59503
61008
|
ConversationDetail;
|
|
59504
61009
|
Modality;
|
|
59505
61010
|
File;
|
|
@@ -59572,6 +61077,10 @@ __decorate([
|
|
|
59572
61077
|
MaxLength(10),
|
|
59573
61078
|
__metadata("design:type", Date)
|
|
59574
61079
|
], MJConversationDetailAttachment_.prototype, "_mj__UpdatedAt", void 0);
|
|
61080
|
+
__decorate([
|
|
61081
|
+
Field({ nullable: true, description: `Description of the attachment providing context about its content and purpose.` }),
|
|
61082
|
+
__metadata("design:type", String)
|
|
61083
|
+
], MJConversationDetailAttachment_.prototype, "Description", void 0);
|
|
59575
61084
|
__decorate([
|
|
59576
61085
|
Field(),
|
|
59577
61086
|
__metadata("design:type", String)
|
|
@@ -59604,6 +61113,7 @@ let CreateMJConversationDetailAttachmentInput = class CreateMJConversationDetail
|
|
|
59604
61113
|
FileID;
|
|
59605
61114
|
DisplayOrder;
|
|
59606
61115
|
ThumbnailBase64;
|
|
61116
|
+
Description;
|
|
59607
61117
|
};
|
|
59608
61118
|
__decorate([
|
|
59609
61119
|
Field({ nullable: true }),
|
|
@@ -59657,6 +61167,10 @@ __decorate([
|
|
|
59657
61167
|
Field({ nullable: true }),
|
|
59658
61168
|
__metadata("design:type", String)
|
|
59659
61169
|
], CreateMJConversationDetailAttachmentInput.prototype, "ThumbnailBase64", void 0);
|
|
61170
|
+
__decorate([
|
|
61171
|
+
Field({ nullable: true }),
|
|
61172
|
+
__metadata("design:type", String)
|
|
61173
|
+
], CreateMJConversationDetailAttachmentInput.prototype, "Description", void 0);
|
|
59660
61174
|
CreateMJConversationDetailAttachmentInput = __decorate([
|
|
59661
61175
|
InputType()
|
|
59662
61176
|
], CreateMJConversationDetailAttachmentInput);
|
|
@@ -59675,6 +61189,7 @@ let UpdateMJConversationDetailAttachmentInput = class UpdateMJConversationDetail
|
|
|
59675
61189
|
FileID;
|
|
59676
61190
|
DisplayOrder;
|
|
59677
61191
|
ThumbnailBase64;
|
|
61192
|
+
Description;
|
|
59678
61193
|
OldValues___;
|
|
59679
61194
|
};
|
|
59680
61195
|
__decorate([
|
|
@@ -59729,6 +61244,10 @@ __decorate([
|
|
|
59729
61244
|
Field({ nullable: true }),
|
|
59730
61245
|
__metadata("design:type", String)
|
|
59731
61246
|
], UpdateMJConversationDetailAttachmentInput.prototype, "ThumbnailBase64", void 0);
|
|
61247
|
+
__decorate([
|
|
61248
|
+
Field({ nullable: true }),
|
|
61249
|
+
__metadata("design:type", String)
|
|
61250
|
+
], UpdateMJConversationDetailAttachmentInput.prototype, "Description", void 0);
|
|
59732
61251
|
__decorate([
|
|
59733
61252
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
59734
61253
|
__metadata("design:type", Array)
|
|
@@ -60621,12 +62140,1390 @@ __decorate([
|
|
|
60621
62140
|
__decorate([
|
|
60622
62141
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
60623
62142
|
__metadata("design:type", Array)
|
|
60624
|
-
], UpdateMJCredentialTypeInput.prototype, "OldValues___", void 0);
|
|
60625
|
-
UpdateMJCredentialTypeInput = __decorate([
|
|
62143
|
+
], UpdateMJCredentialTypeInput.prototype, "OldValues___", void 0);
|
|
62144
|
+
UpdateMJCredentialTypeInput = __decorate([
|
|
62145
|
+
InputType()
|
|
62146
|
+
], UpdateMJCredentialTypeInput);
|
|
62147
|
+
export { UpdateMJCredentialTypeInput };
|
|
62148
|
+
let RunMJCredentialTypeViewResult = class RunMJCredentialTypeViewResult {
|
|
62149
|
+
Results;
|
|
62150
|
+
UserViewRunID;
|
|
62151
|
+
RowCount;
|
|
62152
|
+
TotalRowCount;
|
|
62153
|
+
ExecutionTime;
|
|
62154
|
+
ErrorMessage;
|
|
62155
|
+
Success;
|
|
62156
|
+
};
|
|
62157
|
+
__decorate([
|
|
62158
|
+
Field(() => [MJCredentialType_]),
|
|
62159
|
+
__metadata("design:type", Array)
|
|
62160
|
+
], RunMJCredentialTypeViewResult.prototype, "Results", void 0);
|
|
62161
|
+
__decorate([
|
|
62162
|
+
Field(() => String, { nullable: true }),
|
|
62163
|
+
__metadata("design:type", String)
|
|
62164
|
+
], RunMJCredentialTypeViewResult.prototype, "UserViewRunID", void 0);
|
|
62165
|
+
__decorate([
|
|
62166
|
+
Field(() => Int, { nullable: true }),
|
|
62167
|
+
__metadata("design:type", Number)
|
|
62168
|
+
], RunMJCredentialTypeViewResult.prototype, "RowCount", void 0);
|
|
62169
|
+
__decorate([
|
|
62170
|
+
Field(() => Int, { nullable: true }),
|
|
62171
|
+
__metadata("design:type", Number)
|
|
62172
|
+
], RunMJCredentialTypeViewResult.prototype, "TotalRowCount", void 0);
|
|
62173
|
+
__decorate([
|
|
62174
|
+
Field(() => Int, { nullable: true }),
|
|
62175
|
+
__metadata("design:type", Number)
|
|
62176
|
+
], RunMJCredentialTypeViewResult.prototype, "ExecutionTime", void 0);
|
|
62177
|
+
__decorate([
|
|
62178
|
+
Field({ nullable: true }),
|
|
62179
|
+
__metadata("design:type", String)
|
|
62180
|
+
], RunMJCredentialTypeViewResult.prototype, "ErrorMessage", void 0);
|
|
62181
|
+
__decorate([
|
|
62182
|
+
Field(() => Boolean, { nullable: false }),
|
|
62183
|
+
__metadata("design:type", Boolean)
|
|
62184
|
+
], RunMJCredentialTypeViewResult.prototype, "Success", void 0);
|
|
62185
|
+
RunMJCredentialTypeViewResult = __decorate([
|
|
62186
|
+
ObjectType()
|
|
62187
|
+
], RunMJCredentialTypeViewResult);
|
|
62188
|
+
export { RunMJCredentialTypeViewResult };
|
|
62189
|
+
let MJCredentialTypeResolver = class MJCredentialTypeResolver extends ResolverBase {
|
|
62190
|
+
async RunMJCredentialTypeViewByID(input, { providers, userPayload }, pubSub) {
|
|
62191
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62192
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
62193
|
+
}
|
|
62194
|
+
async RunMJCredentialTypeViewByName(input, { providers, userPayload }, pubSub) {
|
|
62195
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62196
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
62197
|
+
}
|
|
62198
|
+
async RunMJCredentialTypeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
62199
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62200
|
+
input.EntityName = 'MJ: Credential Types';
|
|
62201
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
62202
|
+
}
|
|
62203
|
+
async MJCredentialType(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
62204
|
+
this.CheckUserReadPermissions('MJ: Credential Types', userPayload);
|
|
62205
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62206
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
62207
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCredentialTypes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credential Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
62208
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
62209
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Types', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
62210
|
+
return result;
|
|
62211
|
+
}
|
|
62212
|
+
async MJ_Credentials_CredentialTypeIDArray(mjcredentialtype_, { dataSources, userPayload, providers }, pubSub) {
|
|
62213
|
+
this.CheckUserReadPermissions('MJ: Credentials', userPayload);
|
|
62214
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62215
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
62216
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCredentials] WHERE [CredentialTypeID]='${mjcredentialtype_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credentials', userPayload, EntityPermissionType.Read, 'AND');
|
|
62217
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
62218
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Credentials', rows, this.GetUserFromPayload(userPayload));
|
|
62219
|
+
return result;
|
|
62220
|
+
}
|
|
62221
|
+
async MJ_AIVendors_CredentialTypeIDArray(mjcredentialtype_, { dataSources, userPayload, providers }, pubSub) {
|
|
62222
|
+
this.CheckUserReadPermissions('MJ: AI Vendors', userPayload);
|
|
62223
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62224
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
62225
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIVendors] WHERE [CredentialTypeID]='${mjcredentialtype_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Vendors', userPayload, EntityPermissionType.Read, 'AND');
|
|
62226
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
62227
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Vendors', rows, this.GetUserFromPayload(userPayload));
|
|
62228
|
+
return result;
|
|
62229
|
+
}
|
|
62230
|
+
async CreateMJCredentialType(input, { providers, userPayload }, pubSub) {
|
|
62231
|
+
const provider = GetReadWriteProvider(providers);
|
|
62232
|
+
return this.CreateRecord('MJ: Credential Types', input, provider, userPayload, pubSub);
|
|
62233
|
+
}
|
|
62234
|
+
async UpdateMJCredentialType(input, { providers, userPayload }, pubSub) {
|
|
62235
|
+
const provider = GetReadWriteProvider(providers);
|
|
62236
|
+
return this.UpdateRecord('MJ: Credential Types', input, provider, userPayload, pubSub);
|
|
62237
|
+
}
|
|
62238
|
+
async DeleteMJCredentialType(ID, options, { providers, userPayload }, pubSub) {
|
|
62239
|
+
const provider = GetReadWriteProvider(providers);
|
|
62240
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
62241
|
+
return this.DeleteRecord('MJ: Credential Types', key, options, provider, userPayload, pubSub);
|
|
62242
|
+
}
|
|
62243
|
+
};
|
|
62244
|
+
__decorate([
|
|
62245
|
+
Query(() => RunMJCredentialTypeViewResult),
|
|
62246
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
62247
|
+
__param(1, Ctx()),
|
|
62248
|
+
__param(2, PubSub()),
|
|
62249
|
+
__metadata("design:type", Function),
|
|
62250
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
62251
|
+
__metadata("design:returntype", Promise)
|
|
62252
|
+
], MJCredentialTypeResolver.prototype, "RunMJCredentialTypeViewByID", null);
|
|
62253
|
+
__decorate([
|
|
62254
|
+
Query(() => RunMJCredentialTypeViewResult),
|
|
62255
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
62256
|
+
__param(1, Ctx()),
|
|
62257
|
+
__param(2, PubSub()),
|
|
62258
|
+
__metadata("design:type", Function),
|
|
62259
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
62260
|
+
__metadata("design:returntype", Promise)
|
|
62261
|
+
], MJCredentialTypeResolver.prototype, "RunMJCredentialTypeViewByName", null);
|
|
62262
|
+
__decorate([
|
|
62263
|
+
Query(() => RunMJCredentialTypeViewResult),
|
|
62264
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
62265
|
+
__param(1, Ctx()),
|
|
62266
|
+
__param(2, PubSub()),
|
|
62267
|
+
__metadata("design:type", Function),
|
|
62268
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
62269
|
+
__metadata("design:returntype", Promise)
|
|
62270
|
+
], MJCredentialTypeResolver.prototype, "RunMJCredentialTypeDynamicView", null);
|
|
62271
|
+
__decorate([
|
|
62272
|
+
Query(() => MJCredentialType_, { nullable: true }),
|
|
62273
|
+
__param(0, Arg('ID', () => String)),
|
|
62274
|
+
__param(1, Ctx()),
|
|
62275
|
+
__param(2, PubSub()),
|
|
62276
|
+
__metadata("design:type", Function),
|
|
62277
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
62278
|
+
__metadata("design:returntype", Promise)
|
|
62279
|
+
], MJCredentialTypeResolver.prototype, "MJCredentialType", null);
|
|
62280
|
+
__decorate([
|
|
62281
|
+
FieldResolver(() => [MJCredential_]),
|
|
62282
|
+
__param(0, Root()),
|
|
62283
|
+
__param(1, Ctx()),
|
|
62284
|
+
__param(2, PubSub()),
|
|
62285
|
+
__metadata("design:type", Function),
|
|
62286
|
+
__metadata("design:paramtypes", [MJCredentialType_, Object, PubSubEngine]),
|
|
62287
|
+
__metadata("design:returntype", Promise)
|
|
62288
|
+
], MJCredentialTypeResolver.prototype, "MJ_Credentials_CredentialTypeIDArray", null);
|
|
62289
|
+
__decorate([
|
|
62290
|
+
FieldResolver(() => [MJAIVendor_]),
|
|
62291
|
+
__param(0, Root()),
|
|
62292
|
+
__param(1, Ctx()),
|
|
62293
|
+
__param(2, PubSub()),
|
|
62294
|
+
__metadata("design:type", Function),
|
|
62295
|
+
__metadata("design:paramtypes", [MJCredentialType_, Object, PubSubEngine]),
|
|
62296
|
+
__metadata("design:returntype", Promise)
|
|
62297
|
+
], MJCredentialTypeResolver.prototype, "MJ_AIVendors_CredentialTypeIDArray", null);
|
|
62298
|
+
__decorate([
|
|
62299
|
+
Mutation(() => MJCredentialType_),
|
|
62300
|
+
__param(0, Arg('input', () => CreateMJCredentialTypeInput)),
|
|
62301
|
+
__param(1, Ctx()),
|
|
62302
|
+
__param(2, PubSub()),
|
|
62303
|
+
__metadata("design:type", Function),
|
|
62304
|
+
__metadata("design:paramtypes", [CreateMJCredentialTypeInput, Object, PubSubEngine]),
|
|
62305
|
+
__metadata("design:returntype", Promise)
|
|
62306
|
+
], MJCredentialTypeResolver.prototype, "CreateMJCredentialType", null);
|
|
62307
|
+
__decorate([
|
|
62308
|
+
Mutation(() => MJCredentialType_),
|
|
62309
|
+
__param(0, Arg('input', () => UpdateMJCredentialTypeInput)),
|
|
62310
|
+
__param(1, Ctx()),
|
|
62311
|
+
__param(2, PubSub()),
|
|
62312
|
+
__metadata("design:type", Function),
|
|
62313
|
+
__metadata("design:paramtypes", [UpdateMJCredentialTypeInput, Object, PubSubEngine]),
|
|
62314
|
+
__metadata("design:returntype", Promise)
|
|
62315
|
+
], MJCredentialTypeResolver.prototype, "UpdateMJCredentialType", null);
|
|
62316
|
+
__decorate([
|
|
62317
|
+
Mutation(() => MJCredentialType_),
|
|
62318
|
+
__param(0, Arg('ID', () => String)),
|
|
62319
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
62320
|
+
__param(2, Ctx()),
|
|
62321
|
+
__param(3, PubSub()),
|
|
62322
|
+
__metadata("design:type", Function),
|
|
62323
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
62324
|
+
__metadata("design:returntype", Promise)
|
|
62325
|
+
], MJCredentialTypeResolver.prototype, "DeleteMJCredentialType", null);
|
|
62326
|
+
MJCredentialTypeResolver = __decorate([
|
|
62327
|
+
Resolver(MJCredentialType_)
|
|
62328
|
+
], MJCredentialTypeResolver);
|
|
62329
|
+
export { MJCredentialTypeResolver };
|
|
62330
|
+
let MJCredential_ = class MJCredential_ {
|
|
62331
|
+
ID;
|
|
62332
|
+
CredentialTypeID;
|
|
62333
|
+
CategoryID;
|
|
62334
|
+
Name;
|
|
62335
|
+
Description;
|
|
62336
|
+
Values;
|
|
62337
|
+
IsDefault;
|
|
62338
|
+
IsActive;
|
|
62339
|
+
ExpiresAt;
|
|
62340
|
+
LastValidatedAt;
|
|
62341
|
+
LastUsedAt;
|
|
62342
|
+
IconClass;
|
|
62343
|
+
_mj__CreatedAt;
|
|
62344
|
+
_mj__UpdatedAt;
|
|
62345
|
+
CredentialType;
|
|
62346
|
+
Category;
|
|
62347
|
+
MJ_AICredentialBindings_CredentialIDArray;
|
|
62348
|
+
};
|
|
62349
|
+
__decorate([
|
|
62350
|
+
Field(),
|
|
62351
|
+
MaxLength(16),
|
|
62352
|
+
__metadata("design:type", String)
|
|
62353
|
+
], MJCredential_.prototype, "ID", void 0);
|
|
62354
|
+
__decorate([
|
|
62355
|
+
Field({ description: `Reference to the credential type that defines the schema for this credential.` }),
|
|
62356
|
+
MaxLength(16),
|
|
62357
|
+
__metadata("design:type", String)
|
|
62358
|
+
], MJCredential_.prototype, "CredentialTypeID", void 0);
|
|
62359
|
+
__decorate([
|
|
62360
|
+
Field({ nullable: true, description: `Optional category for organizational grouping.` }),
|
|
62361
|
+
MaxLength(16),
|
|
62362
|
+
__metadata("design:type", String)
|
|
62363
|
+
], MJCredential_.prototype, "CategoryID", void 0);
|
|
62364
|
+
__decorate([
|
|
62365
|
+
Field({ description: `Human-readable name for this credential (e.g., Production SendGrid, Development OpenAI).` }),
|
|
62366
|
+
MaxLength(400),
|
|
62367
|
+
__metadata("design:type", String)
|
|
62368
|
+
], MJCredential_.prototype, "Name", void 0);
|
|
62369
|
+
__decorate([
|
|
62370
|
+
Field({ nullable: true, description: `Optional description of this credential instance.` }),
|
|
62371
|
+
__metadata("design:type", String)
|
|
62372
|
+
], MJCredential_.prototype, "Description", void 0);
|
|
62373
|
+
__decorate([
|
|
62374
|
+
Field({ description: `Encrypted JSON blob containing all credential values. This field uses MemberJunction field-level encryption.` }),
|
|
62375
|
+
__metadata("design:type", String)
|
|
62376
|
+
], MJCredential_.prototype, "Values", void 0);
|
|
62377
|
+
__decorate([
|
|
62378
|
+
Field(() => Boolean, { description: `If true, this is the default credential for its type when no specific credential is requested.` }),
|
|
62379
|
+
__metadata("design:type", Boolean)
|
|
62380
|
+
], MJCredential_.prototype, "IsDefault", void 0);
|
|
62381
|
+
__decorate([
|
|
62382
|
+
Field(() => Boolean, { description: `If false, the credential is disabled and will not be used.` }),
|
|
62383
|
+
__metadata("design:type", Boolean)
|
|
62384
|
+
], MJCredential_.prototype, "IsActive", void 0);
|
|
62385
|
+
__decorate([
|
|
62386
|
+
Field({ nullable: true, description: `Optional expiration date. Expired credentials are treated as inactive.` }),
|
|
62387
|
+
MaxLength(10),
|
|
62388
|
+
__metadata("design:type", Date)
|
|
62389
|
+
], MJCredential_.prototype, "ExpiresAt", void 0);
|
|
62390
|
+
__decorate([
|
|
62391
|
+
Field({ nullable: true, description: `Timestamp of the last successful validation against the provider.` }),
|
|
62392
|
+
MaxLength(10),
|
|
62393
|
+
__metadata("design:type", Date)
|
|
62394
|
+
], MJCredential_.prototype, "LastValidatedAt", void 0);
|
|
62395
|
+
__decorate([
|
|
62396
|
+
Field({ nullable: true, description: `Timestamp of the last time this credential was used.` }),
|
|
62397
|
+
MaxLength(10),
|
|
62398
|
+
__metadata("design:type", Date)
|
|
62399
|
+
], MJCredential_.prototype, "LastUsedAt", void 0);
|
|
62400
|
+
__decorate([
|
|
62401
|
+
Field({ nullable: true, description: `Optional Font Awesome icon class to override the type icon for this specific credential.` }),
|
|
62402
|
+
MaxLength(200),
|
|
62403
|
+
__metadata("design:type", String)
|
|
62404
|
+
], MJCredential_.prototype, "IconClass", void 0);
|
|
62405
|
+
__decorate([
|
|
62406
|
+
Field(),
|
|
62407
|
+
MaxLength(10),
|
|
62408
|
+
__metadata("design:type", Date)
|
|
62409
|
+
], MJCredential_.prototype, "_mj__CreatedAt", void 0);
|
|
62410
|
+
__decorate([
|
|
62411
|
+
Field(),
|
|
62412
|
+
MaxLength(10),
|
|
62413
|
+
__metadata("design:type", Date)
|
|
62414
|
+
], MJCredential_.prototype, "_mj__UpdatedAt", void 0);
|
|
62415
|
+
__decorate([
|
|
62416
|
+
Field(),
|
|
62417
|
+
MaxLength(200),
|
|
62418
|
+
__metadata("design:type", String)
|
|
62419
|
+
], MJCredential_.prototype, "CredentialType", void 0);
|
|
62420
|
+
__decorate([
|
|
62421
|
+
Field({ nullable: true }),
|
|
62422
|
+
MaxLength(200),
|
|
62423
|
+
__metadata("design:type", String)
|
|
62424
|
+
], MJCredential_.prototype, "Category", void 0);
|
|
62425
|
+
__decorate([
|
|
62426
|
+
Field(() => [MJAICredentialBinding_]),
|
|
62427
|
+
__metadata("design:type", Array)
|
|
62428
|
+
], MJCredential_.prototype, "MJ_AICredentialBindings_CredentialIDArray", void 0);
|
|
62429
|
+
MJCredential_ = __decorate([
|
|
62430
|
+
ObjectType({ description: `Stores credential instances with encrypted values. All access should go through CredentialEngine for proper audit logging.` })
|
|
62431
|
+
], MJCredential_);
|
|
62432
|
+
export { MJCredential_ };
|
|
62433
|
+
let CreateMJCredentialInput = class CreateMJCredentialInput {
|
|
62434
|
+
ID;
|
|
62435
|
+
CredentialTypeID;
|
|
62436
|
+
CategoryID;
|
|
62437
|
+
Name;
|
|
62438
|
+
Description;
|
|
62439
|
+
Values;
|
|
62440
|
+
IsDefault;
|
|
62441
|
+
IsActive;
|
|
62442
|
+
ExpiresAt;
|
|
62443
|
+
LastValidatedAt;
|
|
62444
|
+
LastUsedAt;
|
|
62445
|
+
IconClass;
|
|
62446
|
+
};
|
|
62447
|
+
__decorate([
|
|
62448
|
+
Field({ nullable: true }),
|
|
62449
|
+
__metadata("design:type", String)
|
|
62450
|
+
], CreateMJCredentialInput.prototype, "ID", void 0);
|
|
62451
|
+
__decorate([
|
|
62452
|
+
Field({ nullable: true }),
|
|
62453
|
+
__metadata("design:type", String)
|
|
62454
|
+
], CreateMJCredentialInput.prototype, "CredentialTypeID", void 0);
|
|
62455
|
+
__decorate([
|
|
62456
|
+
Field({ nullable: true }),
|
|
62457
|
+
__metadata("design:type", String)
|
|
62458
|
+
], CreateMJCredentialInput.prototype, "CategoryID", void 0);
|
|
62459
|
+
__decorate([
|
|
62460
|
+
Field({ nullable: true }),
|
|
62461
|
+
__metadata("design:type", String)
|
|
62462
|
+
], CreateMJCredentialInput.prototype, "Name", void 0);
|
|
62463
|
+
__decorate([
|
|
62464
|
+
Field({ nullable: true }),
|
|
62465
|
+
__metadata("design:type", String)
|
|
62466
|
+
], CreateMJCredentialInput.prototype, "Description", void 0);
|
|
62467
|
+
__decorate([
|
|
62468
|
+
Field({ nullable: true }),
|
|
62469
|
+
__metadata("design:type", String)
|
|
62470
|
+
], CreateMJCredentialInput.prototype, "Values", void 0);
|
|
62471
|
+
__decorate([
|
|
62472
|
+
Field(() => Boolean, { nullable: true }),
|
|
62473
|
+
__metadata("design:type", Boolean)
|
|
62474
|
+
], CreateMJCredentialInput.prototype, "IsDefault", void 0);
|
|
62475
|
+
__decorate([
|
|
62476
|
+
Field(() => Boolean, { nullable: true }),
|
|
62477
|
+
__metadata("design:type", Boolean)
|
|
62478
|
+
], CreateMJCredentialInput.prototype, "IsActive", void 0);
|
|
62479
|
+
__decorate([
|
|
62480
|
+
Field({ nullable: true }),
|
|
62481
|
+
__metadata("design:type", Date)
|
|
62482
|
+
], CreateMJCredentialInput.prototype, "ExpiresAt", void 0);
|
|
62483
|
+
__decorate([
|
|
62484
|
+
Field({ nullable: true }),
|
|
62485
|
+
__metadata("design:type", Date)
|
|
62486
|
+
], CreateMJCredentialInput.prototype, "LastValidatedAt", void 0);
|
|
62487
|
+
__decorate([
|
|
62488
|
+
Field({ nullable: true }),
|
|
62489
|
+
__metadata("design:type", Date)
|
|
62490
|
+
], CreateMJCredentialInput.prototype, "LastUsedAt", void 0);
|
|
62491
|
+
__decorate([
|
|
62492
|
+
Field({ nullable: true }),
|
|
62493
|
+
__metadata("design:type", String)
|
|
62494
|
+
], CreateMJCredentialInput.prototype, "IconClass", void 0);
|
|
62495
|
+
CreateMJCredentialInput = __decorate([
|
|
62496
|
+
InputType()
|
|
62497
|
+
], CreateMJCredentialInput);
|
|
62498
|
+
export { CreateMJCredentialInput };
|
|
62499
|
+
let UpdateMJCredentialInput = class UpdateMJCredentialInput {
|
|
62500
|
+
ID;
|
|
62501
|
+
CredentialTypeID;
|
|
62502
|
+
CategoryID;
|
|
62503
|
+
Name;
|
|
62504
|
+
Description;
|
|
62505
|
+
Values;
|
|
62506
|
+
IsDefault;
|
|
62507
|
+
IsActive;
|
|
62508
|
+
ExpiresAt;
|
|
62509
|
+
LastValidatedAt;
|
|
62510
|
+
LastUsedAt;
|
|
62511
|
+
IconClass;
|
|
62512
|
+
OldValues___;
|
|
62513
|
+
};
|
|
62514
|
+
__decorate([
|
|
62515
|
+
Field(),
|
|
62516
|
+
__metadata("design:type", String)
|
|
62517
|
+
], UpdateMJCredentialInput.prototype, "ID", void 0);
|
|
62518
|
+
__decorate([
|
|
62519
|
+
Field({ nullable: true }),
|
|
62520
|
+
__metadata("design:type", String)
|
|
62521
|
+
], UpdateMJCredentialInput.prototype, "CredentialTypeID", void 0);
|
|
62522
|
+
__decorate([
|
|
62523
|
+
Field({ nullable: true }),
|
|
62524
|
+
__metadata("design:type", String)
|
|
62525
|
+
], UpdateMJCredentialInput.prototype, "CategoryID", void 0);
|
|
62526
|
+
__decorate([
|
|
62527
|
+
Field({ nullable: true }),
|
|
62528
|
+
__metadata("design:type", String)
|
|
62529
|
+
], UpdateMJCredentialInput.prototype, "Name", void 0);
|
|
62530
|
+
__decorate([
|
|
62531
|
+
Field({ nullable: true }),
|
|
62532
|
+
__metadata("design:type", String)
|
|
62533
|
+
], UpdateMJCredentialInput.prototype, "Description", void 0);
|
|
62534
|
+
__decorate([
|
|
62535
|
+
Field({ nullable: true }),
|
|
62536
|
+
__metadata("design:type", String)
|
|
62537
|
+
], UpdateMJCredentialInput.prototype, "Values", void 0);
|
|
62538
|
+
__decorate([
|
|
62539
|
+
Field(() => Boolean, { nullable: true }),
|
|
62540
|
+
__metadata("design:type", Boolean)
|
|
62541
|
+
], UpdateMJCredentialInput.prototype, "IsDefault", void 0);
|
|
62542
|
+
__decorate([
|
|
62543
|
+
Field(() => Boolean, { nullable: true }),
|
|
62544
|
+
__metadata("design:type", Boolean)
|
|
62545
|
+
], UpdateMJCredentialInput.prototype, "IsActive", void 0);
|
|
62546
|
+
__decorate([
|
|
62547
|
+
Field({ nullable: true }),
|
|
62548
|
+
__metadata("design:type", Date)
|
|
62549
|
+
], UpdateMJCredentialInput.prototype, "ExpiresAt", void 0);
|
|
62550
|
+
__decorate([
|
|
62551
|
+
Field({ nullable: true }),
|
|
62552
|
+
__metadata("design:type", Date)
|
|
62553
|
+
], UpdateMJCredentialInput.prototype, "LastValidatedAt", void 0);
|
|
62554
|
+
__decorate([
|
|
62555
|
+
Field({ nullable: true }),
|
|
62556
|
+
__metadata("design:type", Date)
|
|
62557
|
+
], UpdateMJCredentialInput.prototype, "LastUsedAt", void 0);
|
|
62558
|
+
__decorate([
|
|
62559
|
+
Field({ nullable: true }),
|
|
62560
|
+
__metadata("design:type", String)
|
|
62561
|
+
], UpdateMJCredentialInput.prototype, "IconClass", void 0);
|
|
62562
|
+
__decorate([
|
|
62563
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
62564
|
+
__metadata("design:type", Array)
|
|
62565
|
+
], UpdateMJCredentialInput.prototype, "OldValues___", void 0);
|
|
62566
|
+
UpdateMJCredentialInput = __decorate([
|
|
62567
|
+
InputType()
|
|
62568
|
+
], UpdateMJCredentialInput);
|
|
62569
|
+
export { UpdateMJCredentialInput };
|
|
62570
|
+
let RunMJCredentialViewResult = class RunMJCredentialViewResult {
|
|
62571
|
+
Results;
|
|
62572
|
+
UserViewRunID;
|
|
62573
|
+
RowCount;
|
|
62574
|
+
TotalRowCount;
|
|
62575
|
+
ExecutionTime;
|
|
62576
|
+
ErrorMessage;
|
|
62577
|
+
Success;
|
|
62578
|
+
};
|
|
62579
|
+
__decorate([
|
|
62580
|
+
Field(() => [MJCredential_]),
|
|
62581
|
+
__metadata("design:type", Array)
|
|
62582
|
+
], RunMJCredentialViewResult.prototype, "Results", void 0);
|
|
62583
|
+
__decorate([
|
|
62584
|
+
Field(() => String, { nullable: true }),
|
|
62585
|
+
__metadata("design:type", String)
|
|
62586
|
+
], RunMJCredentialViewResult.prototype, "UserViewRunID", void 0);
|
|
62587
|
+
__decorate([
|
|
62588
|
+
Field(() => Int, { nullable: true }),
|
|
62589
|
+
__metadata("design:type", Number)
|
|
62590
|
+
], RunMJCredentialViewResult.prototype, "RowCount", void 0);
|
|
62591
|
+
__decorate([
|
|
62592
|
+
Field(() => Int, { nullable: true }),
|
|
62593
|
+
__metadata("design:type", Number)
|
|
62594
|
+
], RunMJCredentialViewResult.prototype, "TotalRowCount", void 0);
|
|
62595
|
+
__decorate([
|
|
62596
|
+
Field(() => Int, { nullable: true }),
|
|
62597
|
+
__metadata("design:type", Number)
|
|
62598
|
+
], RunMJCredentialViewResult.prototype, "ExecutionTime", void 0);
|
|
62599
|
+
__decorate([
|
|
62600
|
+
Field({ nullable: true }),
|
|
62601
|
+
__metadata("design:type", String)
|
|
62602
|
+
], RunMJCredentialViewResult.prototype, "ErrorMessage", void 0);
|
|
62603
|
+
__decorate([
|
|
62604
|
+
Field(() => Boolean, { nullable: false }),
|
|
62605
|
+
__metadata("design:type", Boolean)
|
|
62606
|
+
], RunMJCredentialViewResult.prototype, "Success", void 0);
|
|
62607
|
+
RunMJCredentialViewResult = __decorate([
|
|
62608
|
+
ObjectType()
|
|
62609
|
+
], RunMJCredentialViewResult);
|
|
62610
|
+
export { RunMJCredentialViewResult };
|
|
62611
|
+
let MJCredentialResolver = class MJCredentialResolver extends ResolverBase {
|
|
62612
|
+
async RunMJCredentialViewByID(input, { providers, userPayload }, pubSub) {
|
|
62613
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62614
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
62615
|
+
}
|
|
62616
|
+
async RunMJCredentialViewByName(input, { providers, userPayload }, pubSub) {
|
|
62617
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62618
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
62619
|
+
}
|
|
62620
|
+
async RunMJCredentialDynamicView(input, { providers, userPayload }, pubSub) {
|
|
62621
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62622
|
+
input.EntityName = 'MJ: Credentials';
|
|
62623
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
62624
|
+
}
|
|
62625
|
+
async MJCredential(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
62626
|
+
this.CheckUserReadPermissions('MJ: Credentials', userPayload);
|
|
62627
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62628
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
62629
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCredentials] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credentials', userPayload, EntityPermissionType.Read, 'AND');
|
|
62630
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
62631
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Credentials', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
62632
|
+
return result;
|
|
62633
|
+
}
|
|
62634
|
+
async MJ_AICredentialBindings_CredentialIDArray(mjcredential_, { dataSources, userPayload, providers }, pubSub) {
|
|
62635
|
+
this.CheckUserReadPermissions('MJ: AI Credential Bindings', userPayload);
|
|
62636
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62637
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
62638
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAICredentialBindings] WHERE [CredentialID]='${mjcredential_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Credential Bindings', userPayload, EntityPermissionType.Read, 'AND');
|
|
62639
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
62640
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Credential Bindings', rows, this.GetUserFromPayload(userPayload));
|
|
62641
|
+
return result;
|
|
62642
|
+
}
|
|
62643
|
+
async CreateMJCredential(input, { providers, userPayload }, pubSub) {
|
|
62644
|
+
const provider = GetReadWriteProvider(providers);
|
|
62645
|
+
return this.CreateRecord('MJ: Credentials', input, provider, userPayload, pubSub);
|
|
62646
|
+
}
|
|
62647
|
+
async UpdateMJCredential(input, { providers, userPayload }, pubSub) {
|
|
62648
|
+
const provider = GetReadWriteProvider(providers);
|
|
62649
|
+
return this.UpdateRecord('MJ: Credentials', input, provider, userPayload, pubSub);
|
|
62650
|
+
}
|
|
62651
|
+
async DeleteMJCredential(ID, options, { providers, userPayload }, pubSub) {
|
|
62652
|
+
const provider = GetReadWriteProvider(providers);
|
|
62653
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
62654
|
+
return this.DeleteRecord('MJ: Credentials', key, options, provider, userPayload, pubSub);
|
|
62655
|
+
}
|
|
62656
|
+
};
|
|
62657
|
+
__decorate([
|
|
62658
|
+
Query(() => RunMJCredentialViewResult),
|
|
62659
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
62660
|
+
__param(1, Ctx()),
|
|
62661
|
+
__param(2, PubSub()),
|
|
62662
|
+
__metadata("design:type", Function),
|
|
62663
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
62664
|
+
__metadata("design:returntype", Promise)
|
|
62665
|
+
], MJCredentialResolver.prototype, "RunMJCredentialViewByID", null);
|
|
62666
|
+
__decorate([
|
|
62667
|
+
Query(() => RunMJCredentialViewResult),
|
|
62668
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
62669
|
+
__param(1, Ctx()),
|
|
62670
|
+
__param(2, PubSub()),
|
|
62671
|
+
__metadata("design:type", Function),
|
|
62672
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
62673
|
+
__metadata("design:returntype", Promise)
|
|
62674
|
+
], MJCredentialResolver.prototype, "RunMJCredentialViewByName", null);
|
|
62675
|
+
__decorate([
|
|
62676
|
+
Query(() => RunMJCredentialViewResult),
|
|
62677
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
62678
|
+
__param(1, Ctx()),
|
|
62679
|
+
__param(2, PubSub()),
|
|
62680
|
+
__metadata("design:type", Function),
|
|
62681
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
62682
|
+
__metadata("design:returntype", Promise)
|
|
62683
|
+
], MJCredentialResolver.prototype, "RunMJCredentialDynamicView", null);
|
|
62684
|
+
__decorate([
|
|
62685
|
+
Query(() => MJCredential_, { nullable: true }),
|
|
62686
|
+
__param(0, Arg('ID', () => String)),
|
|
62687
|
+
__param(1, Ctx()),
|
|
62688
|
+
__param(2, PubSub()),
|
|
62689
|
+
__metadata("design:type", Function),
|
|
62690
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
62691
|
+
__metadata("design:returntype", Promise)
|
|
62692
|
+
], MJCredentialResolver.prototype, "MJCredential", null);
|
|
62693
|
+
__decorate([
|
|
62694
|
+
FieldResolver(() => [MJAICredentialBinding_]),
|
|
62695
|
+
__param(0, Root()),
|
|
62696
|
+
__param(1, Ctx()),
|
|
62697
|
+
__param(2, PubSub()),
|
|
62698
|
+
__metadata("design:type", Function),
|
|
62699
|
+
__metadata("design:paramtypes", [MJCredential_, Object, PubSubEngine]),
|
|
62700
|
+
__metadata("design:returntype", Promise)
|
|
62701
|
+
], MJCredentialResolver.prototype, "MJ_AICredentialBindings_CredentialIDArray", null);
|
|
62702
|
+
__decorate([
|
|
62703
|
+
Mutation(() => MJCredential_),
|
|
62704
|
+
__param(0, Arg('input', () => CreateMJCredentialInput)),
|
|
62705
|
+
__param(1, Ctx()),
|
|
62706
|
+
__param(2, PubSub()),
|
|
62707
|
+
__metadata("design:type", Function),
|
|
62708
|
+
__metadata("design:paramtypes", [CreateMJCredentialInput, Object, PubSubEngine]),
|
|
62709
|
+
__metadata("design:returntype", Promise)
|
|
62710
|
+
], MJCredentialResolver.prototype, "CreateMJCredential", null);
|
|
62711
|
+
__decorate([
|
|
62712
|
+
Mutation(() => MJCredential_),
|
|
62713
|
+
__param(0, Arg('input', () => UpdateMJCredentialInput)),
|
|
62714
|
+
__param(1, Ctx()),
|
|
62715
|
+
__param(2, PubSub()),
|
|
62716
|
+
__metadata("design:type", Function),
|
|
62717
|
+
__metadata("design:paramtypes", [UpdateMJCredentialInput, Object, PubSubEngine]),
|
|
62718
|
+
__metadata("design:returntype", Promise)
|
|
62719
|
+
], MJCredentialResolver.prototype, "UpdateMJCredential", null);
|
|
62720
|
+
__decorate([
|
|
62721
|
+
Mutation(() => MJCredential_),
|
|
62722
|
+
__param(0, Arg('ID', () => String)),
|
|
62723
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
62724
|
+
__param(2, Ctx()),
|
|
62725
|
+
__param(3, PubSub()),
|
|
62726
|
+
__metadata("design:type", Function),
|
|
62727
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
62728
|
+
__metadata("design:returntype", Promise)
|
|
62729
|
+
], MJCredentialResolver.prototype, "DeleteMJCredential", null);
|
|
62730
|
+
MJCredentialResolver = __decorate([
|
|
62731
|
+
Resolver(MJCredential_)
|
|
62732
|
+
], MJCredentialResolver);
|
|
62733
|
+
export { MJCredentialResolver };
|
|
62734
|
+
let MJDashboardCategoryLink_ = class MJDashboardCategoryLink_ {
|
|
62735
|
+
ID;
|
|
62736
|
+
DashboardID;
|
|
62737
|
+
UserID;
|
|
62738
|
+
DashboardCategoryID;
|
|
62739
|
+
DisplayName;
|
|
62740
|
+
Sequence;
|
|
62741
|
+
_mj__CreatedAt;
|
|
62742
|
+
_mj__UpdatedAt;
|
|
62743
|
+
Dashboard;
|
|
62744
|
+
User;
|
|
62745
|
+
DashboardCategory;
|
|
62746
|
+
};
|
|
62747
|
+
__decorate([
|
|
62748
|
+
Field(),
|
|
62749
|
+
MaxLength(16),
|
|
62750
|
+
__metadata("design:type", String)
|
|
62751
|
+
], MJDashboardCategoryLink_.prototype, "ID", void 0);
|
|
62752
|
+
__decorate([
|
|
62753
|
+
Field(),
|
|
62754
|
+
MaxLength(16),
|
|
62755
|
+
__metadata("design:type", String)
|
|
62756
|
+
], MJDashboardCategoryLink_.prototype, "DashboardID", void 0);
|
|
62757
|
+
__decorate([
|
|
62758
|
+
Field(),
|
|
62759
|
+
MaxLength(16),
|
|
62760
|
+
__metadata("design:type", String)
|
|
62761
|
+
], MJDashboardCategoryLink_.prototype, "UserID", void 0);
|
|
62762
|
+
__decorate([
|
|
62763
|
+
Field({ nullable: true, description: `The category in the user's personal folder structure. NULL means the dashboard appears at root level.` }),
|
|
62764
|
+
MaxLength(16),
|
|
62765
|
+
__metadata("design:type", String)
|
|
62766
|
+
], MJDashboardCategoryLink_.prototype, "DashboardCategoryID", void 0);
|
|
62767
|
+
__decorate([
|
|
62768
|
+
Field({ nullable: true, description: `Optional user-friendly alias for the dashboard within this user's view. If NULL, uses the original dashboard name.` }),
|
|
62769
|
+
MaxLength(510),
|
|
62770
|
+
__metadata("design:type", String)
|
|
62771
|
+
], MJDashboardCategoryLink_.prototype, "DisplayName", void 0);
|
|
62772
|
+
__decorate([
|
|
62773
|
+
Field(() => Int, { description: `Display order of this dashboard within the user's category. Lower values appear first.` }),
|
|
62774
|
+
__metadata("design:type", Number)
|
|
62775
|
+
], MJDashboardCategoryLink_.prototype, "Sequence", void 0);
|
|
62776
|
+
__decorate([
|
|
62777
|
+
Field(),
|
|
62778
|
+
MaxLength(10),
|
|
62779
|
+
__metadata("design:type", Date)
|
|
62780
|
+
], MJDashboardCategoryLink_.prototype, "_mj__CreatedAt", void 0);
|
|
62781
|
+
__decorate([
|
|
62782
|
+
Field(),
|
|
62783
|
+
MaxLength(10),
|
|
62784
|
+
__metadata("design:type", Date)
|
|
62785
|
+
], MJDashboardCategoryLink_.prototype, "_mj__UpdatedAt", void 0);
|
|
62786
|
+
__decorate([
|
|
62787
|
+
Field(),
|
|
62788
|
+
MaxLength(510),
|
|
62789
|
+
__metadata("design:type", String)
|
|
62790
|
+
], MJDashboardCategoryLink_.prototype, "Dashboard", void 0);
|
|
62791
|
+
__decorate([
|
|
62792
|
+
Field(),
|
|
62793
|
+
MaxLength(200),
|
|
62794
|
+
__metadata("design:type", String)
|
|
62795
|
+
], MJDashboardCategoryLink_.prototype, "User", void 0);
|
|
62796
|
+
__decorate([
|
|
62797
|
+
Field({ nullable: true }),
|
|
62798
|
+
MaxLength(200),
|
|
62799
|
+
__metadata("design:type", String)
|
|
62800
|
+
], MJDashboardCategoryLink_.prototype, "DashboardCategory", void 0);
|
|
62801
|
+
MJDashboardCategoryLink_ = __decorate([
|
|
62802
|
+
ObjectType({ description: `Allows users to organize shared dashboards into their own category structure. Creates a link/reference to a dashboard without duplicating it. Users can optionally provide a custom display name and control ordering within their folders.` })
|
|
62803
|
+
], MJDashboardCategoryLink_);
|
|
62804
|
+
export { MJDashboardCategoryLink_ };
|
|
62805
|
+
let CreateMJDashboardCategoryLinkInput = class CreateMJDashboardCategoryLinkInput {
|
|
62806
|
+
ID;
|
|
62807
|
+
DashboardID;
|
|
62808
|
+
UserID;
|
|
62809
|
+
DashboardCategoryID;
|
|
62810
|
+
DisplayName;
|
|
62811
|
+
Sequence;
|
|
62812
|
+
};
|
|
62813
|
+
__decorate([
|
|
62814
|
+
Field({ nullable: true }),
|
|
62815
|
+
__metadata("design:type", String)
|
|
62816
|
+
], CreateMJDashboardCategoryLinkInput.prototype, "ID", void 0);
|
|
62817
|
+
__decorate([
|
|
62818
|
+
Field({ nullable: true }),
|
|
62819
|
+
__metadata("design:type", String)
|
|
62820
|
+
], CreateMJDashboardCategoryLinkInput.prototype, "DashboardID", void 0);
|
|
62821
|
+
__decorate([
|
|
62822
|
+
Field({ nullable: true }),
|
|
62823
|
+
__metadata("design:type", String)
|
|
62824
|
+
], CreateMJDashboardCategoryLinkInput.prototype, "UserID", void 0);
|
|
62825
|
+
__decorate([
|
|
62826
|
+
Field({ nullable: true }),
|
|
62827
|
+
__metadata("design:type", String)
|
|
62828
|
+
], CreateMJDashboardCategoryLinkInput.prototype, "DashboardCategoryID", void 0);
|
|
62829
|
+
__decorate([
|
|
62830
|
+
Field({ nullable: true }),
|
|
62831
|
+
__metadata("design:type", String)
|
|
62832
|
+
], CreateMJDashboardCategoryLinkInput.prototype, "DisplayName", void 0);
|
|
62833
|
+
__decorate([
|
|
62834
|
+
Field(() => Int, { nullable: true }),
|
|
62835
|
+
__metadata("design:type", Number)
|
|
62836
|
+
], CreateMJDashboardCategoryLinkInput.prototype, "Sequence", void 0);
|
|
62837
|
+
CreateMJDashboardCategoryLinkInput = __decorate([
|
|
62838
|
+
InputType()
|
|
62839
|
+
], CreateMJDashboardCategoryLinkInput);
|
|
62840
|
+
export { CreateMJDashboardCategoryLinkInput };
|
|
62841
|
+
let UpdateMJDashboardCategoryLinkInput = class UpdateMJDashboardCategoryLinkInput {
|
|
62842
|
+
ID;
|
|
62843
|
+
DashboardID;
|
|
62844
|
+
UserID;
|
|
62845
|
+
DashboardCategoryID;
|
|
62846
|
+
DisplayName;
|
|
62847
|
+
Sequence;
|
|
62848
|
+
OldValues___;
|
|
62849
|
+
};
|
|
62850
|
+
__decorate([
|
|
62851
|
+
Field(),
|
|
62852
|
+
__metadata("design:type", String)
|
|
62853
|
+
], UpdateMJDashboardCategoryLinkInput.prototype, "ID", void 0);
|
|
62854
|
+
__decorate([
|
|
62855
|
+
Field({ nullable: true }),
|
|
62856
|
+
__metadata("design:type", String)
|
|
62857
|
+
], UpdateMJDashboardCategoryLinkInput.prototype, "DashboardID", void 0);
|
|
62858
|
+
__decorate([
|
|
62859
|
+
Field({ nullable: true }),
|
|
62860
|
+
__metadata("design:type", String)
|
|
62861
|
+
], UpdateMJDashboardCategoryLinkInput.prototype, "UserID", void 0);
|
|
62862
|
+
__decorate([
|
|
62863
|
+
Field({ nullable: true }),
|
|
62864
|
+
__metadata("design:type", String)
|
|
62865
|
+
], UpdateMJDashboardCategoryLinkInput.prototype, "DashboardCategoryID", void 0);
|
|
62866
|
+
__decorate([
|
|
62867
|
+
Field({ nullable: true }),
|
|
62868
|
+
__metadata("design:type", String)
|
|
62869
|
+
], UpdateMJDashboardCategoryLinkInput.prototype, "DisplayName", void 0);
|
|
62870
|
+
__decorate([
|
|
62871
|
+
Field(() => Int, { nullable: true }),
|
|
62872
|
+
__metadata("design:type", Number)
|
|
62873
|
+
], UpdateMJDashboardCategoryLinkInput.prototype, "Sequence", void 0);
|
|
62874
|
+
__decorate([
|
|
62875
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
62876
|
+
__metadata("design:type", Array)
|
|
62877
|
+
], UpdateMJDashboardCategoryLinkInput.prototype, "OldValues___", void 0);
|
|
62878
|
+
UpdateMJDashboardCategoryLinkInput = __decorate([
|
|
62879
|
+
InputType()
|
|
62880
|
+
], UpdateMJDashboardCategoryLinkInput);
|
|
62881
|
+
export { UpdateMJDashboardCategoryLinkInput };
|
|
62882
|
+
let RunMJDashboardCategoryLinkViewResult = class RunMJDashboardCategoryLinkViewResult {
|
|
62883
|
+
Results;
|
|
62884
|
+
UserViewRunID;
|
|
62885
|
+
RowCount;
|
|
62886
|
+
TotalRowCount;
|
|
62887
|
+
ExecutionTime;
|
|
62888
|
+
ErrorMessage;
|
|
62889
|
+
Success;
|
|
62890
|
+
};
|
|
62891
|
+
__decorate([
|
|
62892
|
+
Field(() => [MJDashboardCategoryLink_]),
|
|
62893
|
+
__metadata("design:type", Array)
|
|
62894
|
+
], RunMJDashboardCategoryLinkViewResult.prototype, "Results", void 0);
|
|
62895
|
+
__decorate([
|
|
62896
|
+
Field(() => String, { nullable: true }),
|
|
62897
|
+
__metadata("design:type", String)
|
|
62898
|
+
], RunMJDashboardCategoryLinkViewResult.prototype, "UserViewRunID", void 0);
|
|
62899
|
+
__decorate([
|
|
62900
|
+
Field(() => Int, { nullable: true }),
|
|
62901
|
+
__metadata("design:type", Number)
|
|
62902
|
+
], RunMJDashboardCategoryLinkViewResult.prototype, "RowCount", void 0);
|
|
62903
|
+
__decorate([
|
|
62904
|
+
Field(() => Int, { nullable: true }),
|
|
62905
|
+
__metadata("design:type", Number)
|
|
62906
|
+
], RunMJDashboardCategoryLinkViewResult.prototype, "TotalRowCount", void 0);
|
|
62907
|
+
__decorate([
|
|
62908
|
+
Field(() => Int, { nullable: true }),
|
|
62909
|
+
__metadata("design:type", Number)
|
|
62910
|
+
], RunMJDashboardCategoryLinkViewResult.prototype, "ExecutionTime", void 0);
|
|
62911
|
+
__decorate([
|
|
62912
|
+
Field({ nullable: true }),
|
|
62913
|
+
__metadata("design:type", String)
|
|
62914
|
+
], RunMJDashboardCategoryLinkViewResult.prototype, "ErrorMessage", void 0);
|
|
62915
|
+
__decorate([
|
|
62916
|
+
Field(() => Boolean, { nullable: false }),
|
|
62917
|
+
__metadata("design:type", Boolean)
|
|
62918
|
+
], RunMJDashboardCategoryLinkViewResult.prototype, "Success", void 0);
|
|
62919
|
+
RunMJDashboardCategoryLinkViewResult = __decorate([
|
|
62920
|
+
ObjectType()
|
|
62921
|
+
], RunMJDashboardCategoryLinkViewResult);
|
|
62922
|
+
export { RunMJDashboardCategoryLinkViewResult };
|
|
62923
|
+
let MJDashboardCategoryLinkResolver = class MJDashboardCategoryLinkResolver extends ResolverBase {
|
|
62924
|
+
async RunMJDashboardCategoryLinkViewByID(input, { providers, userPayload }, pubSub) {
|
|
62925
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62926
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
62927
|
+
}
|
|
62928
|
+
async RunMJDashboardCategoryLinkViewByName(input, { providers, userPayload }, pubSub) {
|
|
62929
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62930
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
62931
|
+
}
|
|
62932
|
+
async RunMJDashboardCategoryLinkDynamicView(input, { providers, userPayload }, pubSub) {
|
|
62933
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62934
|
+
input.EntityName = 'MJ: Dashboard Category Links';
|
|
62935
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
62936
|
+
}
|
|
62937
|
+
async MJDashboardCategoryLink(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
62938
|
+
this.CheckUserReadPermissions('MJ: Dashboard Category Links', userPayload);
|
|
62939
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
62940
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
62941
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardCategoryLinks] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
62942
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
62943
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Links', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
62944
|
+
return result;
|
|
62945
|
+
}
|
|
62946
|
+
async CreateMJDashboardCategoryLink(input, { providers, userPayload }, pubSub) {
|
|
62947
|
+
const provider = GetReadWriteProvider(providers);
|
|
62948
|
+
return this.CreateRecord('MJ: Dashboard Category Links', input, provider, userPayload, pubSub);
|
|
62949
|
+
}
|
|
62950
|
+
async UpdateMJDashboardCategoryLink(input, { providers, userPayload }, pubSub) {
|
|
62951
|
+
const provider = GetReadWriteProvider(providers);
|
|
62952
|
+
return this.UpdateRecord('MJ: Dashboard Category Links', input, provider, userPayload, pubSub);
|
|
62953
|
+
}
|
|
62954
|
+
async DeleteMJDashboardCategoryLink(ID, options, { providers, userPayload }, pubSub) {
|
|
62955
|
+
const provider = GetReadWriteProvider(providers);
|
|
62956
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
62957
|
+
return this.DeleteRecord('MJ: Dashboard Category Links', key, options, provider, userPayload, pubSub);
|
|
62958
|
+
}
|
|
62959
|
+
};
|
|
62960
|
+
__decorate([
|
|
62961
|
+
Query(() => RunMJDashboardCategoryLinkViewResult),
|
|
62962
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
62963
|
+
__param(1, Ctx()),
|
|
62964
|
+
__param(2, PubSub()),
|
|
62965
|
+
__metadata("design:type", Function),
|
|
62966
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
62967
|
+
__metadata("design:returntype", Promise)
|
|
62968
|
+
], MJDashboardCategoryLinkResolver.prototype, "RunMJDashboardCategoryLinkViewByID", null);
|
|
62969
|
+
__decorate([
|
|
62970
|
+
Query(() => RunMJDashboardCategoryLinkViewResult),
|
|
62971
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
62972
|
+
__param(1, Ctx()),
|
|
62973
|
+
__param(2, PubSub()),
|
|
62974
|
+
__metadata("design:type", Function),
|
|
62975
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
62976
|
+
__metadata("design:returntype", Promise)
|
|
62977
|
+
], MJDashboardCategoryLinkResolver.prototype, "RunMJDashboardCategoryLinkViewByName", null);
|
|
62978
|
+
__decorate([
|
|
62979
|
+
Query(() => RunMJDashboardCategoryLinkViewResult),
|
|
62980
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
62981
|
+
__param(1, Ctx()),
|
|
62982
|
+
__param(2, PubSub()),
|
|
62983
|
+
__metadata("design:type", Function),
|
|
62984
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
62985
|
+
__metadata("design:returntype", Promise)
|
|
62986
|
+
], MJDashboardCategoryLinkResolver.prototype, "RunMJDashboardCategoryLinkDynamicView", null);
|
|
62987
|
+
__decorate([
|
|
62988
|
+
Query(() => MJDashboardCategoryLink_, { nullable: true }),
|
|
62989
|
+
__param(0, Arg('ID', () => String)),
|
|
62990
|
+
__param(1, Ctx()),
|
|
62991
|
+
__param(2, PubSub()),
|
|
62992
|
+
__metadata("design:type", Function),
|
|
62993
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
62994
|
+
__metadata("design:returntype", Promise)
|
|
62995
|
+
], MJDashboardCategoryLinkResolver.prototype, "MJDashboardCategoryLink", null);
|
|
62996
|
+
__decorate([
|
|
62997
|
+
Mutation(() => MJDashboardCategoryLink_),
|
|
62998
|
+
__param(0, Arg('input', () => CreateMJDashboardCategoryLinkInput)),
|
|
62999
|
+
__param(1, Ctx()),
|
|
63000
|
+
__param(2, PubSub()),
|
|
63001
|
+
__metadata("design:type", Function),
|
|
63002
|
+
__metadata("design:paramtypes", [CreateMJDashboardCategoryLinkInput, Object, PubSubEngine]),
|
|
63003
|
+
__metadata("design:returntype", Promise)
|
|
63004
|
+
], MJDashboardCategoryLinkResolver.prototype, "CreateMJDashboardCategoryLink", null);
|
|
63005
|
+
__decorate([
|
|
63006
|
+
Mutation(() => MJDashboardCategoryLink_),
|
|
63007
|
+
__param(0, Arg('input', () => UpdateMJDashboardCategoryLinkInput)),
|
|
63008
|
+
__param(1, Ctx()),
|
|
63009
|
+
__param(2, PubSub()),
|
|
63010
|
+
__metadata("design:type", Function),
|
|
63011
|
+
__metadata("design:paramtypes", [UpdateMJDashboardCategoryLinkInput, Object, PubSubEngine]),
|
|
63012
|
+
__metadata("design:returntype", Promise)
|
|
63013
|
+
], MJDashboardCategoryLinkResolver.prototype, "UpdateMJDashboardCategoryLink", null);
|
|
63014
|
+
__decorate([
|
|
63015
|
+
Mutation(() => MJDashboardCategoryLink_),
|
|
63016
|
+
__param(0, Arg('ID', () => String)),
|
|
63017
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
63018
|
+
__param(2, Ctx()),
|
|
63019
|
+
__param(3, PubSub()),
|
|
63020
|
+
__metadata("design:type", Function),
|
|
63021
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
63022
|
+
__metadata("design:returntype", Promise)
|
|
63023
|
+
], MJDashboardCategoryLinkResolver.prototype, "DeleteMJDashboardCategoryLink", null);
|
|
63024
|
+
MJDashboardCategoryLinkResolver = __decorate([
|
|
63025
|
+
Resolver(MJDashboardCategoryLink_)
|
|
63026
|
+
], MJDashboardCategoryLinkResolver);
|
|
63027
|
+
export { MJDashboardCategoryLinkResolver };
|
|
63028
|
+
let MJDashboardCategoryPermission_ = class MJDashboardCategoryPermission_ {
|
|
63029
|
+
ID;
|
|
63030
|
+
DashboardCategoryID;
|
|
63031
|
+
UserID;
|
|
63032
|
+
CanRead;
|
|
63033
|
+
CanEdit;
|
|
63034
|
+
CanAddRemove;
|
|
63035
|
+
CanShare;
|
|
63036
|
+
SharedByUserID;
|
|
63037
|
+
_mj__CreatedAt;
|
|
63038
|
+
_mj__UpdatedAt;
|
|
63039
|
+
DashboardCategory;
|
|
63040
|
+
User;
|
|
63041
|
+
SharedByUser;
|
|
63042
|
+
};
|
|
63043
|
+
__decorate([
|
|
63044
|
+
Field(),
|
|
63045
|
+
MaxLength(16),
|
|
63046
|
+
__metadata("design:type", String)
|
|
63047
|
+
], MJDashboardCategoryPermission_.prototype, "ID", void 0);
|
|
63048
|
+
__decorate([
|
|
63049
|
+
Field(),
|
|
63050
|
+
MaxLength(16),
|
|
63051
|
+
__metadata("design:type", String)
|
|
63052
|
+
], MJDashboardCategoryPermission_.prototype, "DashboardCategoryID", void 0);
|
|
63053
|
+
__decorate([
|
|
63054
|
+
Field(),
|
|
63055
|
+
MaxLength(16),
|
|
63056
|
+
__metadata("design:type", String)
|
|
63057
|
+
], MJDashboardCategoryPermission_.prototype, "UserID", void 0);
|
|
63058
|
+
__decorate([
|
|
63059
|
+
Field(() => Boolean, { description: `Whether the user can view dashboards within this category` }),
|
|
63060
|
+
__metadata("design:type", Boolean)
|
|
63061
|
+
], MJDashboardCategoryPermission_.prototype, "CanRead", void 0);
|
|
63062
|
+
__decorate([
|
|
63063
|
+
Field(() => Boolean, { description: `Whether the user can modify dashboards within this category` }),
|
|
63064
|
+
__metadata("design:type", Boolean)
|
|
63065
|
+
], MJDashboardCategoryPermission_.prototype, "CanEdit", void 0);
|
|
63066
|
+
__decorate([
|
|
63067
|
+
Field(() => Boolean, { description: `Whether the user can add new dashboards to or remove dashboards from this category` }),
|
|
63068
|
+
__metadata("design:type", Boolean)
|
|
63069
|
+
], MJDashboardCategoryPermission_.prototype, "CanAddRemove", void 0);
|
|
63070
|
+
__decorate([
|
|
63071
|
+
Field(() => Boolean, { description: `Whether the user can share this category with other users` }),
|
|
63072
|
+
__metadata("design:type", Boolean)
|
|
63073
|
+
], MJDashboardCategoryPermission_.prototype, "CanShare", void 0);
|
|
63074
|
+
__decorate([
|
|
63075
|
+
Field({ nullable: true, description: `The user who granted this permission. NULL if shared by the category owner.` }),
|
|
63076
|
+
MaxLength(16),
|
|
63077
|
+
__metadata("design:type", String)
|
|
63078
|
+
], MJDashboardCategoryPermission_.prototype, "SharedByUserID", void 0);
|
|
63079
|
+
__decorate([
|
|
63080
|
+
Field(),
|
|
63081
|
+
MaxLength(10),
|
|
63082
|
+
__metadata("design:type", Date)
|
|
63083
|
+
], MJDashboardCategoryPermission_.prototype, "_mj__CreatedAt", void 0);
|
|
63084
|
+
__decorate([
|
|
63085
|
+
Field(),
|
|
63086
|
+
MaxLength(10),
|
|
63087
|
+
__metadata("design:type", Date)
|
|
63088
|
+
], MJDashboardCategoryPermission_.prototype, "_mj__UpdatedAt", void 0);
|
|
63089
|
+
__decorate([
|
|
63090
|
+
Field(),
|
|
63091
|
+
MaxLength(200),
|
|
63092
|
+
__metadata("design:type", String)
|
|
63093
|
+
], MJDashboardCategoryPermission_.prototype, "DashboardCategory", void 0);
|
|
63094
|
+
__decorate([
|
|
63095
|
+
Field(),
|
|
63096
|
+
MaxLength(200),
|
|
63097
|
+
__metadata("design:type", String)
|
|
63098
|
+
], MJDashboardCategoryPermission_.prototype, "User", void 0);
|
|
63099
|
+
__decorate([
|
|
63100
|
+
Field({ nullable: true }),
|
|
63101
|
+
MaxLength(200),
|
|
63102
|
+
__metadata("design:type", String)
|
|
63103
|
+
], MJDashboardCategoryPermission_.prototype, "SharedByUser", void 0);
|
|
63104
|
+
MJDashboardCategoryPermission_ = __decorate([
|
|
63105
|
+
ObjectType({ description: `Manages user permissions for dashboard categories (folders). Permissions cascade to all dashboards within the category. Enables sharing entire folders of dashboards with granular access control.` })
|
|
63106
|
+
], MJDashboardCategoryPermission_);
|
|
63107
|
+
export { MJDashboardCategoryPermission_ };
|
|
63108
|
+
let CreateMJDashboardCategoryPermissionInput = class CreateMJDashboardCategoryPermissionInput {
|
|
63109
|
+
ID;
|
|
63110
|
+
DashboardCategoryID;
|
|
63111
|
+
UserID;
|
|
63112
|
+
CanRead;
|
|
63113
|
+
CanEdit;
|
|
63114
|
+
CanAddRemove;
|
|
63115
|
+
CanShare;
|
|
63116
|
+
SharedByUserID;
|
|
63117
|
+
};
|
|
63118
|
+
__decorate([
|
|
63119
|
+
Field({ nullable: true }),
|
|
63120
|
+
__metadata("design:type", String)
|
|
63121
|
+
], CreateMJDashboardCategoryPermissionInput.prototype, "ID", void 0);
|
|
63122
|
+
__decorate([
|
|
63123
|
+
Field({ nullable: true }),
|
|
63124
|
+
__metadata("design:type", String)
|
|
63125
|
+
], CreateMJDashboardCategoryPermissionInput.prototype, "DashboardCategoryID", void 0);
|
|
63126
|
+
__decorate([
|
|
63127
|
+
Field({ nullable: true }),
|
|
63128
|
+
__metadata("design:type", String)
|
|
63129
|
+
], CreateMJDashboardCategoryPermissionInput.prototype, "UserID", void 0);
|
|
63130
|
+
__decorate([
|
|
63131
|
+
Field(() => Boolean, { nullable: true }),
|
|
63132
|
+
__metadata("design:type", Boolean)
|
|
63133
|
+
], CreateMJDashboardCategoryPermissionInput.prototype, "CanRead", void 0);
|
|
63134
|
+
__decorate([
|
|
63135
|
+
Field(() => Boolean, { nullable: true }),
|
|
63136
|
+
__metadata("design:type", Boolean)
|
|
63137
|
+
], CreateMJDashboardCategoryPermissionInput.prototype, "CanEdit", void 0);
|
|
63138
|
+
__decorate([
|
|
63139
|
+
Field(() => Boolean, { nullable: true }),
|
|
63140
|
+
__metadata("design:type", Boolean)
|
|
63141
|
+
], CreateMJDashboardCategoryPermissionInput.prototype, "CanAddRemove", void 0);
|
|
63142
|
+
__decorate([
|
|
63143
|
+
Field(() => Boolean, { nullable: true }),
|
|
63144
|
+
__metadata("design:type", Boolean)
|
|
63145
|
+
], CreateMJDashboardCategoryPermissionInput.prototype, "CanShare", void 0);
|
|
63146
|
+
__decorate([
|
|
63147
|
+
Field({ nullable: true }),
|
|
63148
|
+
__metadata("design:type", String)
|
|
63149
|
+
], CreateMJDashboardCategoryPermissionInput.prototype, "SharedByUserID", void 0);
|
|
63150
|
+
CreateMJDashboardCategoryPermissionInput = __decorate([
|
|
63151
|
+
InputType()
|
|
63152
|
+
], CreateMJDashboardCategoryPermissionInput);
|
|
63153
|
+
export { CreateMJDashboardCategoryPermissionInput };
|
|
63154
|
+
let UpdateMJDashboardCategoryPermissionInput = class UpdateMJDashboardCategoryPermissionInput {
|
|
63155
|
+
ID;
|
|
63156
|
+
DashboardCategoryID;
|
|
63157
|
+
UserID;
|
|
63158
|
+
CanRead;
|
|
63159
|
+
CanEdit;
|
|
63160
|
+
CanAddRemove;
|
|
63161
|
+
CanShare;
|
|
63162
|
+
SharedByUserID;
|
|
63163
|
+
OldValues___;
|
|
63164
|
+
};
|
|
63165
|
+
__decorate([
|
|
63166
|
+
Field(),
|
|
63167
|
+
__metadata("design:type", String)
|
|
63168
|
+
], UpdateMJDashboardCategoryPermissionInput.prototype, "ID", void 0);
|
|
63169
|
+
__decorate([
|
|
63170
|
+
Field({ nullable: true }),
|
|
63171
|
+
__metadata("design:type", String)
|
|
63172
|
+
], UpdateMJDashboardCategoryPermissionInput.prototype, "DashboardCategoryID", void 0);
|
|
63173
|
+
__decorate([
|
|
63174
|
+
Field({ nullable: true }),
|
|
63175
|
+
__metadata("design:type", String)
|
|
63176
|
+
], UpdateMJDashboardCategoryPermissionInput.prototype, "UserID", void 0);
|
|
63177
|
+
__decorate([
|
|
63178
|
+
Field(() => Boolean, { nullable: true }),
|
|
63179
|
+
__metadata("design:type", Boolean)
|
|
63180
|
+
], UpdateMJDashboardCategoryPermissionInput.prototype, "CanRead", void 0);
|
|
63181
|
+
__decorate([
|
|
63182
|
+
Field(() => Boolean, { nullable: true }),
|
|
63183
|
+
__metadata("design:type", Boolean)
|
|
63184
|
+
], UpdateMJDashboardCategoryPermissionInput.prototype, "CanEdit", void 0);
|
|
63185
|
+
__decorate([
|
|
63186
|
+
Field(() => Boolean, { nullable: true }),
|
|
63187
|
+
__metadata("design:type", Boolean)
|
|
63188
|
+
], UpdateMJDashboardCategoryPermissionInput.prototype, "CanAddRemove", void 0);
|
|
63189
|
+
__decorate([
|
|
63190
|
+
Field(() => Boolean, { nullable: true }),
|
|
63191
|
+
__metadata("design:type", Boolean)
|
|
63192
|
+
], UpdateMJDashboardCategoryPermissionInput.prototype, "CanShare", void 0);
|
|
63193
|
+
__decorate([
|
|
63194
|
+
Field({ nullable: true }),
|
|
63195
|
+
__metadata("design:type", String)
|
|
63196
|
+
], UpdateMJDashboardCategoryPermissionInput.prototype, "SharedByUserID", void 0);
|
|
63197
|
+
__decorate([
|
|
63198
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
63199
|
+
__metadata("design:type", Array)
|
|
63200
|
+
], UpdateMJDashboardCategoryPermissionInput.prototype, "OldValues___", void 0);
|
|
63201
|
+
UpdateMJDashboardCategoryPermissionInput = __decorate([
|
|
63202
|
+
InputType()
|
|
63203
|
+
], UpdateMJDashboardCategoryPermissionInput);
|
|
63204
|
+
export { UpdateMJDashboardCategoryPermissionInput };
|
|
63205
|
+
let RunMJDashboardCategoryPermissionViewResult = class RunMJDashboardCategoryPermissionViewResult {
|
|
63206
|
+
Results;
|
|
63207
|
+
UserViewRunID;
|
|
63208
|
+
RowCount;
|
|
63209
|
+
TotalRowCount;
|
|
63210
|
+
ExecutionTime;
|
|
63211
|
+
ErrorMessage;
|
|
63212
|
+
Success;
|
|
63213
|
+
};
|
|
63214
|
+
__decorate([
|
|
63215
|
+
Field(() => [MJDashboardCategoryPermission_]),
|
|
63216
|
+
__metadata("design:type", Array)
|
|
63217
|
+
], RunMJDashboardCategoryPermissionViewResult.prototype, "Results", void 0);
|
|
63218
|
+
__decorate([
|
|
63219
|
+
Field(() => String, { nullable: true }),
|
|
63220
|
+
__metadata("design:type", String)
|
|
63221
|
+
], RunMJDashboardCategoryPermissionViewResult.prototype, "UserViewRunID", void 0);
|
|
63222
|
+
__decorate([
|
|
63223
|
+
Field(() => Int, { nullable: true }),
|
|
63224
|
+
__metadata("design:type", Number)
|
|
63225
|
+
], RunMJDashboardCategoryPermissionViewResult.prototype, "RowCount", void 0);
|
|
63226
|
+
__decorate([
|
|
63227
|
+
Field(() => Int, { nullable: true }),
|
|
63228
|
+
__metadata("design:type", Number)
|
|
63229
|
+
], RunMJDashboardCategoryPermissionViewResult.prototype, "TotalRowCount", void 0);
|
|
63230
|
+
__decorate([
|
|
63231
|
+
Field(() => Int, { nullable: true }),
|
|
63232
|
+
__metadata("design:type", Number)
|
|
63233
|
+
], RunMJDashboardCategoryPermissionViewResult.prototype, "ExecutionTime", void 0);
|
|
63234
|
+
__decorate([
|
|
63235
|
+
Field({ nullable: true }),
|
|
63236
|
+
__metadata("design:type", String)
|
|
63237
|
+
], RunMJDashboardCategoryPermissionViewResult.prototype, "ErrorMessage", void 0);
|
|
63238
|
+
__decorate([
|
|
63239
|
+
Field(() => Boolean, { nullable: false }),
|
|
63240
|
+
__metadata("design:type", Boolean)
|
|
63241
|
+
], RunMJDashboardCategoryPermissionViewResult.prototype, "Success", void 0);
|
|
63242
|
+
RunMJDashboardCategoryPermissionViewResult = __decorate([
|
|
63243
|
+
ObjectType()
|
|
63244
|
+
], RunMJDashboardCategoryPermissionViewResult);
|
|
63245
|
+
export { RunMJDashboardCategoryPermissionViewResult };
|
|
63246
|
+
let MJDashboardCategoryPermissionResolver = class MJDashboardCategoryPermissionResolver extends ResolverBase {
|
|
63247
|
+
async RunMJDashboardCategoryPermissionViewByID(input, { providers, userPayload }, pubSub) {
|
|
63248
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63249
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
63250
|
+
}
|
|
63251
|
+
async RunMJDashboardCategoryPermissionViewByName(input, { providers, userPayload }, pubSub) {
|
|
63252
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63253
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
63254
|
+
}
|
|
63255
|
+
async RunMJDashboardCategoryPermissionDynamicView(input, { providers, userPayload }, pubSub) {
|
|
63256
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63257
|
+
input.EntityName = 'MJ: Dashboard Category Permissions';
|
|
63258
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
63259
|
+
}
|
|
63260
|
+
async MJDashboardCategoryPermission(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
63261
|
+
this.CheckUserReadPermissions('MJ: Dashboard Category Permissions', userPayload);
|
|
63262
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63263
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
63264
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardCategoryPermissions] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
63265
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
63266
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Category Permissions', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
63267
|
+
return result;
|
|
63268
|
+
}
|
|
63269
|
+
async CreateMJDashboardCategoryPermission(input, { providers, userPayload }, pubSub) {
|
|
63270
|
+
const provider = GetReadWriteProvider(providers);
|
|
63271
|
+
return this.CreateRecord('MJ: Dashboard Category Permissions', input, provider, userPayload, pubSub);
|
|
63272
|
+
}
|
|
63273
|
+
async UpdateMJDashboardCategoryPermission(input, { providers, userPayload }, pubSub) {
|
|
63274
|
+
const provider = GetReadWriteProvider(providers);
|
|
63275
|
+
return this.UpdateRecord('MJ: Dashboard Category Permissions', input, provider, userPayload, pubSub);
|
|
63276
|
+
}
|
|
63277
|
+
async DeleteMJDashboardCategoryPermission(ID, options, { providers, userPayload }, pubSub) {
|
|
63278
|
+
const provider = GetReadWriteProvider(providers);
|
|
63279
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
63280
|
+
return this.DeleteRecord('MJ: Dashboard Category Permissions', key, options, provider, userPayload, pubSub);
|
|
63281
|
+
}
|
|
63282
|
+
};
|
|
63283
|
+
__decorate([
|
|
63284
|
+
Query(() => RunMJDashboardCategoryPermissionViewResult),
|
|
63285
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
63286
|
+
__param(1, Ctx()),
|
|
63287
|
+
__param(2, PubSub()),
|
|
63288
|
+
__metadata("design:type", Function),
|
|
63289
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
63290
|
+
__metadata("design:returntype", Promise)
|
|
63291
|
+
], MJDashboardCategoryPermissionResolver.prototype, "RunMJDashboardCategoryPermissionViewByID", null);
|
|
63292
|
+
__decorate([
|
|
63293
|
+
Query(() => RunMJDashboardCategoryPermissionViewResult),
|
|
63294
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
63295
|
+
__param(1, Ctx()),
|
|
63296
|
+
__param(2, PubSub()),
|
|
63297
|
+
__metadata("design:type", Function),
|
|
63298
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
63299
|
+
__metadata("design:returntype", Promise)
|
|
63300
|
+
], MJDashboardCategoryPermissionResolver.prototype, "RunMJDashboardCategoryPermissionViewByName", null);
|
|
63301
|
+
__decorate([
|
|
63302
|
+
Query(() => RunMJDashboardCategoryPermissionViewResult),
|
|
63303
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
63304
|
+
__param(1, Ctx()),
|
|
63305
|
+
__param(2, PubSub()),
|
|
63306
|
+
__metadata("design:type", Function),
|
|
63307
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
63308
|
+
__metadata("design:returntype", Promise)
|
|
63309
|
+
], MJDashboardCategoryPermissionResolver.prototype, "RunMJDashboardCategoryPermissionDynamicView", null);
|
|
63310
|
+
__decorate([
|
|
63311
|
+
Query(() => MJDashboardCategoryPermission_, { nullable: true }),
|
|
63312
|
+
__param(0, Arg('ID', () => String)),
|
|
63313
|
+
__param(1, Ctx()),
|
|
63314
|
+
__param(2, PubSub()),
|
|
63315
|
+
__metadata("design:type", Function),
|
|
63316
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
63317
|
+
__metadata("design:returntype", Promise)
|
|
63318
|
+
], MJDashboardCategoryPermissionResolver.prototype, "MJDashboardCategoryPermission", null);
|
|
63319
|
+
__decorate([
|
|
63320
|
+
Mutation(() => MJDashboardCategoryPermission_),
|
|
63321
|
+
__param(0, Arg('input', () => CreateMJDashboardCategoryPermissionInput)),
|
|
63322
|
+
__param(1, Ctx()),
|
|
63323
|
+
__param(2, PubSub()),
|
|
63324
|
+
__metadata("design:type", Function),
|
|
63325
|
+
__metadata("design:paramtypes", [CreateMJDashboardCategoryPermissionInput, Object, PubSubEngine]),
|
|
63326
|
+
__metadata("design:returntype", Promise)
|
|
63327
|
+
], MJDashboardCategoryPermissionResolver.prototype, "CreateMJDashboardCategoryPermission", null);
|
|
63328
|
+
__decorate([
|
|
63329
|
+
Mutation(() => MJDashboardCategoryPermission_),
|
|
63330
|
+
__param(0, Arg('input', () => UpdateMJDashboardCategoryPermissionInput)),
|
|
63331
|
+
__param(1, Ctx()),
|
|
63332
|
+
__param(2, PubSub()),
|
|
63333
|
+
__metadata("design:type", Function),
|
|
63334
|
+
__metadata("design:paramtypes", [UpdateMJDashboardCategoryPermissionInput, Object, PubSubEngine]),
|
|
63335
|
+
__metadata("design:returntype", Promise)
|
|
63336
|
+
], MJDashboardCategoryPermissionResolver.prototype, "UpdateMJDashboardCategoryPermission", null);
|
|
63337
|
+
__decorate([
|
|
63338
|
+
Mutation(() => MJDashboardCategoryPermission_),
|
|
63339
|
+
__param(0, Arg('ID', () => String)),
|
|
63340
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
63341
|
+
__param(2, Ctx()),
|
|
63342
|
+
__param(3, PubSub()),
|
|
63343
|
+
__metadata("design:type", Function),
|
|
63344
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
63345
|
+
__metadata("design:returntype", Promise)
|
|
63346
|
+
], MJDashboardCategoryPermissionResolver.prototype, "DeleteMJDashboardCategoryPermission", null);
|
|
63347
|
+
MJDashboardCategoryPermissionResolver = __decorate([
|
|
63348
|
+
Resolver(MJDashboardCategoryPermission_)
|
|
63349
|
+
], MJDashboardCategoryPermissionResolver);
|
|
63350
|
+
export { MJDashboardCategoryPermissionResolver };
|
|
63351
|
+
let MJDashboardPartType_ = class MJDashboardPartType_ {
|
|
63352
|
+
ID;
|
|
63353
|
+
Name;
|
|
63354
|
+
Description;
|
|
63355
|
+
Icon;
|
|
63356
|
+
DriverClass;
|
|
63357
|
+
ConfigDialogClass;
|
|
63358
|
+
DefaultConfig;
|
|
63359
|
+
SortOrder;
|
|
63360
|
+
IsActive;
|
|
63361
|
+
_mj__CreatedAt;
|
|
63362
|
+
_mj__UpdatedAt;
|
|
63363
|
+
};
|
|
63364
|
+
__decorate([
|
|
63365
|
+
Field({ description: `Primary key` }),
|
|
63366
|
+
MaxLength(16),
|
|
63367
|
+
__metadata("design:type", String)
|
|
63368
|
+
], MJDashboardPartType_.prototype, "ID", void 0);
|
|
63369
|
+
__decorate([
|
|
63370
|
+
Field({ description: `Unique name for the panel type (e.g., View, Query, Artifact, WebURL, Custom)` }),
|
|
63371
|
+
MaxLength(200),
|
|
63372
|
+
__metadata("design:type", String)
|
|
63373
|
+
], MJDashboardPartType_.prototype, "Name", void 0);
|
|
63374
|
+
__decorate([
|
|
63375
|
+
Field({ nullable: true, description: `Detailed description of what this panel type displays and its capabilities` }),
|
|
63376
|
+
__metadata("design:type", String)
|
|
63377
|
+
], MJDashboardPartType_.prototype, "Description", void 0);
|
|
63378
|
+
__decorate([
|
|
63379
|
+
Field({ nullable: true, description: `Font Awesome icon class for the panel type (e.g., fa-solid fa-table)` }),
|
|
63380
|
+
MaxLength(200),
|
|
63381
|
+
__metadata("design:type", String)
|
|
63382
|
+
], MJDashboardPartType_.prototype, "Icon", void 0);
|
|
63383
|
+
__decorate([
|
|
63384
|
+
Field({ description: `The @RegisterClass name for the panel renderer component that extends DashboardBasePanelRenderer` }),
|
|
63385
|
+
MaxLength(510),
|
|
63386
|
+
__metadata("design:type", String)
|
|
63387
|
+
], MJDashboardPartType_.prototype, "DriverClass", void 0);
|
|
63388
|
+
__decorate([
|
|
63389
|
+
Field({ nullable: true, description: `The @RegisterClass name for the configuration dialog component that extends DashboardBasePanelConfigDialog` }),
|
|
63390
|
+
MaxLength(510),
|
|
63391
|
+
__metadata("design:type", String)
|
|
63392
|
+
], MJDashboardPartType_.prototype, "ConfigDialogClass", void 0);
|
|
63393
|
+
__decorate([
|
|
63394
|
+
Field({ nullable: true, description: `JSON object containing default configuration values for new panels of this type` }),
|
|
63395
|
+
__metadata("design:type", String)
|
|
63396
|
+
], MJDashboardPartType_.prototype, "DefaultConfig", void 0);
|
|
63397
|
+
__decorate([
|
|
63398
|
+
Field(() => Int, { description: `Display order in panel type selection UI (lower numbers appear first)` }),
|
|
63399
|
+
__metadata("design:type", Number)
|
|
63400
|
+
], MJDashboardPartType_.prototype, "SortOrder", void 0);
|
|
63401
|
+
__decorate([
|
|
63402
|
+
Field(() => Boolean, { description: `Whether this panel type is currently available for use` }),
|
|
63403
|
+
__metadata("design:type", Boolean)
|
|
63404
|
+
], MJDashboardPartType_.prototype, "IsActive", void 0);
|
|
63405
|
+
__decorate([
|
|
63406
|
+
Field(),
|
|
63407
|
+
MaxLength(10),
|
|
63408
|
+
__metadata("design:type", Date)
|
|
63409
|
+
], MJDashboardPartType_.prototype, "_mj__CreatedAt", void 0);
|
|
63410
|
+
__decorate([
|
|
63411
|
+
Field(),
|
|
63412
|
+
MaxLength(10),
|
|
63413
|
+
__metadata("design:type", Date)
|
|
63414
|
+
], MJDashboardPartType_.prototype, "_mj__UpdatedAt", void 0);
|
|
63415
|
+
MJDashboardPartType_ = __decorate([
|
|
63416
|
+
ObjectType({ description: `Stores available panel types for metadata-driven dashboards. Each panel type defines a driver class for rendering content and an optional config dialog for setup UI.` })
|
|
63417
|
+
], MJDashboardPartType_);
|
|
63418
|
+
export { MJDashboardPartType_ };
|
|
63419
|
+
let CreateMJDashboardPartTypeInput = class CreateMJDashboardPartTypeInput {
|
|
63420
|
+
ID;
|
|
63421
|
+
Name;
|
|
63422
|
+
Description;
|
|
63423
|
+
Icon;
|
|
63424
|
+
DriverClass;
|
|
63425
|
+
ConfigDialogClass;
|
|
63426
|
+
DefaultConfig;
|
|
63427
|
+
SortOrder;
|
|
63428
|
+
IsActive;
|
|
63429
|
+
};
|
|
63430
|
+
__decorate([
|
|
63431
|
+
Field({ nullable: true }),
|
|
63432
|
+
__metadata("design:type", String)
|
|
63433
|
+
], CreateMJDashboardPartTypeInput.prototype, "ID", void 0);
|
|
63434
|
+
__decorate([
|
|
63435
|
+
Field({ nullable: true }),
|
|
63436
|
+
__metadata("design:type", String)
|
|
63437
|
+
], CreateMJDashboardPartTypeInput.prototype, "Name", void 0);
|
|
63438
|
+
__decorate([
|
|
63439
|
+
Field({ nullable: true }),
|
|
63440
|
+
__metadata("design:type", String)
|
|
63441
|
+
], CreateMJDashboardPartTypeInput.prototype, "Description", void 0);
|
|
63442
|
+
__decorate([
|
|
63443
|
+
Field({ nullable: true }),
|
|
63444
|
+
__metadata("design:type", String)
|
|
63445
|
+
], CreateMJDashboardPartTypeInput.prototype, "Icon", void 0);
|
|
63446
|
+
__decorate([
|
|
63447
|
+
Field({ nullable: true }),
|
|
63448
|
+
__metadata("design:type", String)
|
|
63449
|
+
], CreateMJDashboardPartTypeInput.prototype, "DriverClass", void 0);
|
|
63450
|
+
__decorate([
|
|
63451
|
+
Field({ nullable: true }),
|
|
63452
|
+
__metadata("design:type", String)
|
|
63453
|
+
], CreateMJDashboardPartTypeInput.prototype, "ConfigDialogClass", void 0);
|
|
63454
|
+
__decorate([
|
|
63455
|
+
Field({ nullable: true }),
|
|
63456
|
+
__metadata("design:type", String)
|
|
63457
|
+
], CreateMJDashboardPartTypeInput.prototype, "DefaultConfig", void 0);
|
|
63458
|
+
__decorate([
|
|
63459
|
+
Field(() => Int, { nullable: true }),
|
|
63460
|
+
__metadata("design:type", Number)
|
|
63461
|
+
], CreateMJDashboardPartTypeInput.prototype, "SortOrder", void 0);
|
|
63462
|
+
__decorate([
|
|
63463
|
+
Field(() => Boolean, { nullable: true }),
|
|
63464
|
+
__metadata("design:type", Boolean)
|
|
63465
|
+
], CreateMJDashboardPartTypeInput.prototype, "IsActive", void 0);
|
|
63466
|
+
CreateMJDashboardPartTypeInput = __decorate([
|
|
63467
|
+
InputType()
|
|
63468
|
+
], CreateMJDashboardPartTypeInput);
|
|
63469
|
+
export { CreateMJDashboardPartTypeInput };
|
|
63470
|
+
let UpdateMJDashboardPartTypeInput = class UpdateMJDashboardPartTypeInput {
|
|
63471
|
+
ID;
|
|
63472
|
+
Name;
|
|
63473
|
+
Description;
|
|
63474
|
+
Icon;
|
|
63475
|
+
DriverClass;
|
|
63476
|
+
ConfigDialogClass;
|
|
63477
|
+
DefaultConfig;
|
|
63478
|
+
SortOrder;
|
|
63479
|
+
IsActive;
|
|
63480
|
+
OldValues___;
|
|
63481
|
+
};
|
|
63482
|
+
__decorate([
|
|
63483
|
+
Field(),
|
|
63484
|
+
__metadata("design:type", String)
|
|
63485
|
+
], UpdateMJDashboardPartTypeInput.prototype, "ID", void 0);
|
|
63486
|
+
__decorate([
|
|
63487
|
+
Field({ nullable: true }),
|
|
63488
|
+
__metadata("design:type", String)
|
|
63489
|
+
], UpdateMJDashboardPartTypeInput.prototype, "Name", void 0);
|
|
63490
|
+
__decorate([
|
|
63491
|
+
Field({ nullable: true }),
|
|
63492
|
+
__metadata("design:type", String)
|
|
63493
|
+
], UpdateMJDashboardPartTypeInput.prototype, "Description", void 0);
|
|
63494
|
+
__decorate([
|
|
63495
|
+
Field({ nullable: true }),
|
|
63496
|
+
__metadata("design:type", String)
|
|
63497
|
+
], UpdateMJDashboardPartTypeInput.prototype, "Icon", void 0);
|
|
63498
|
+
__decorate([
|
|
63499
|
+
Field({ nullable: true }),
|
|
63500
|
+
__metadata("design:type", String)
|
|
63501
|
+
], UpdateMJDashboardPartTypeInput.prototype, "DriverClass", void 0);
|
|
63502
|
+
__decorate([
|
|
63503
|
+
Field({ nullable: true }),
|
|
63504
|
+
__metadata("design:type", String)
|
|
63505
|
+
], UpdateMJDashboardPartTypeInput.prototype, "ConfigDialogClass", void 0);
|
|
63506
|
+
__decorate([
|
|
63507
|
+
Field({ nullable: true }),
|
|
63508
|
+
__metadata("design:type", String)
|
|
63509
|
+
], UpdateMJDashboardPartTypeInput.prototype, "DefaultConfig", void 0);
|
|
63510
|
+
__decorate([
|
|
63511
|
+
Field(() => Int, { nullable: true }),
|
|
63512
|
+
__metadata("design:type", Number)
|
|
63513
|
+
], UpdateMJDashboardPartTypeInput.prototype, "SortOrder", void 0);
|
|
63514
|
+
__decorate([
|
|
63515
|
+
Field(() => Boolean, { nullable: true }),
|
|
63516
|
+
__metadata("design:type", Boolean)
|
|
63517
|
+
], UpdateMJDashboardPartTypeInput.prototype, "IsActive", void 0);
|
|
63518
|
+
__decorate([
|
|
63519
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
63520
|
+
__metadata("design:type", Array)
|
|
63521
|
+
], UpdateMJDashboardPartTypeInput.prototype, "OldValues___", void 0);
|
|
63522
|
+
UpdateMJDashboardPartTypeInput = __decorate([
|
|
60626
63523
|
InputType()
|
|
60627
|
-
],
|
|
60628
|
-
export {
|
|
60629
|
-
let
|
|
63524
|
+
], UpdateMJDashboardPartTypeInput);
|
|
63525
|
+
export { UpdateMJDashboardPartTypeInput };
|
|
63526
|
+
let RunMJDashboardPartTypeViewResult = class RunMJDashboardPartTypeViewResult {
|
|
60630
63527
|
Results;
|
|
60631
63528
|
UserViewRunID;
|
|
60632
63529
|
RowCount;
|
|
@@ -60636,166 +63533,130 @@ let RunMJCredentialTypeViewResult = class RunMJCredentialTypeViewResult {
|
|
|
60636
63533
|
Success;
|
|
60637
63534
|
};
|
|
60638
63535
|
__decorate([
|
|
60639
|
-
Field(() => [
|
|
63536
|
+
Field(() => [MJDashboardPartType_]),
|
|
60640
63537
|
__metadata("design:type", Array)
|
|
60641
|
-
],
|
|
63538
|
+
], RunMJDashboardPartTypeViewResult.prototype, "Results", void 0);
|
|
60642
63539
|
__decorate([
|
|
60643
63540
|
Field(() => String, { nullable: true }),
|
|
60644
63541
|
__metadata("design:type", String)
|
|
60645
|
-
],
|
|
63542
|
+
], RunMJDashboardPartTypeViewResult.prototype, "UserViewRunID", void 0);
|
|
60646
63543
|
__decorate([
|
|
60647
63544
|
Field(() => Int, { nullable: true }),
|
|
60648
63545
|
__metadata("design:type", Number)
|
|
60649
|
-
],
|
|
63546
|
+
], RunMJDashboardPartTypeViewResult.prototype, "RowCount", void 0);
|
|
60650
63547
|
__decorate([
|
|
60651
63548
|
Field(() => Int, { nullable: true }),
|
|
60652
63549
|
__metadata("design:type", Number)
|
|
60653
|
-
],
|
|
63550
|
+
], RunMJDashboardPartTypeViewResult.prototype, "TotalRowCount", void 0);
|
|
60654
63551
|
__decorate([
|
|
60655
63552
|
Field(() => Int, { nullable: true }),
|
|
60656
63553
|
__metadata("design:type", Number)
|
|
60657
|
-
],
|
|
63554
|
+
], RunMJDashboardPartTypeViewResult.prototype, "ExecutionTime", void 0);
|
|
60658
63555
|
__decorate([
|
|
60659
63556
|
Field({ nullable: true }),
|
|
60660
63557
|
__metadata("design:type", String)
|
|
60661
|
-
],
|
|
63558
|
+
], RunMJDashboardPartTypeViewResult.prototype, "ErrorMessage", void 0);
|
|
60662
63559
|
__decorate([
|
|
60663
63560
|
Field(() => Boolean, { nullable: false }),
|
|
60664
63561
|
__metadata("design:type", Boolean)
|
|
60665
|
-
],
|
|
60666
|
-
|
|
63562
|
+
], RunMJDashboardPartTypeViewResult.prototype, "Success", void 0);
|
|
63563
|
+
RunMJDashboardPartTypeViewResult = __decorate([
|
|
60667
63564
|
ObjectType()
|
|
60668
|
-
],
|
|
60669
|
-
export {
|
|
60670
|
-
let
|
|
60671
|
-
async
|
|
63565
|
+
], RunMJDashboardPartTypeViewResult);
|
|
63566
|
+
export { RunMJDashboardPartTypeViewResult };
|
|
63567
|
+
let MJDashboardPartTypeResolver = class MJDashboardPartTypeResolver extends ResolverBase {
|
|
63568
|
+
async RunMJDashboardPartTypeViewByID(input, { providers, userPayload }, pubSub) {
|
|
60672
63569
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60673
63570
|
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
60674
63571
|
}
|
|
60675
|
-
async
|
|
63572
|
+
async RunMJDashboardPartTypeViewByName(input, { providers, userPayload }, pubSub) {
|
|
60676
63573
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60677
63574
|
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
60678
63575
|
}
|
|
60679
|
-
async
|
|
63576
|
+
async RunMJDashboardPartTypeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
60680
63577
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60681
|
-
input.EntityName = 'MJ:
|
|
63578
|
+
input.EntityName = 'MJ: Dashboard Part Types';
|
|
60682
63579
|
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
60683
63580
|
}
|
|
60684
|
-
async
|
|
60685
|
-
this.CheckUserReadPermissions('MJ:
|
|
60686
|
-
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60687
|
-
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
60688
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCredentialTypes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credential Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
60689
|
-
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
60690
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Credential Types', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
60691
|
-
return result;
|
|
60692
|
-
}
|
|
60693
|
-
async MJ_Credentials_CredentialTypeIDArray(mjcredentialtype_, { dataSources, userPayload, providers }, pubSub) {
|
|
60694
|
-
this.CheckUserReadPermissions('MJ: Credentials', userPayload);
|
|
60695
|
-
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60696
|
-
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
60697
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCredentials] WHERE [CredentialTypeID]='${mjcredentialtype_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credentials', userPayload, EntityPermissionType.Read, 'AND');
|
|
60698
|
-
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
60699
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Credentials', rows, this.GetUserFromPayload(userPayload));
|
|
60700
|
-
return result;
|
|
60701
|
-
}
|
|
60702
|
-
async MJ_AIVendors_CredentialTypeIDArray(mjcredentialtype_, { dataSources, userPayload, providers }, pubSub) {
|
|
60703
|
-
this.CheckUserReadPermissions('MJ: AI Vendors', userPayload);
|
|
63581
|
+
async MJDashboardPartType(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
63582
|
+
this.CheckUserReadPermissions('MJ: Dashboard Part Types', userPayload);
|
|
60704
63583
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
60705
63584
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
60706
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
63585
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardPartTypes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Part Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
60707
63586
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
60708
|
-
const result = await this.
|
|
63587
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Part Types', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
60709
63588
|
return result;
|
|
60710
63589
|
}
|
|
60711
|
-
async
|
|
63590
|
+
async CreateMJDashboardPartType(input, { providers, userPayload }, pubSub) {
|
|
60712
63591
|
const provider = GetReadWriteProvider(providers);
|
|
60713
|
-
return this.CreateRecord('MJ:
|
|
63592
|
+
return this.CreateRecord('MJ: Dashboard Part Types', input, provider, userPayload, pubSub);
|
|
60714
63593
|
}
|
|
60715
|
-
async
|
|
63594
|
+
async UpdateMJDashboardPartType(input, { providers, userPayload }, pubSub) {
|
|
60716
63595
|
const provider = GetReadWriteProvider(providers);
|
|
60717
|
-
return this.UpdateRecord('MJ:
|
|
63596
|
+
return this.UpdateRecord('MJ: Dashboard Part Types', input, provider, userPayload, pubSub);
|
|
60718
63597
|
}
|
|
60719
|
-
async
|
|
63598
|
+
async DeleteMJDashboardPartType(ID, options, { providers, userPayload }, pubSub) {
|
|
60720
63599
|
const provider = GetReadWriteProvider(providers);
|
|
60721
63600
|
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
60722
|
-
return this.DeleteRecord('MJ:
|
|
63601
|
+
return this.DeleteRecord('MJ: Dashboard Part Types', key, options, provider, userPayload, pubSub);
|
|
60723
63602
|
}
|
|
60724
63603
|
};
|
|
60725
63604
|
__decorate([
|
|
60726
|
-
Query(() =>
|
|
63605
|
+
Query(() => RunMJDashboardPartTypeViewResult),
|
|
60727
63606
|
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
60728
63607
|
__param(1, Ctx()),
|
|
60729
63608
|
__param(2, PubSub()),
|
|
60730
63609
|
__metadata("design:type", Function),
|
|
60731
63610
|
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
60732
63611
|
__metadata("design:returntype", Promise)
|
|
60733
|
-
],
|
|
63612
|
+
], MJDashboardPartTypeResolver.prototype, "RunMJDashboardPartTypeViewByID", null);
|
|
60734
63613
|
__decorate([
|
|
60735
|
-
Query(() =>
|
|
63614
|
+
Query(() => RunMJDashboardPartTypeViewResult),
|
|
60736
63615
|
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
60737
63616
|
__param(1, Ctx()),
|
|
60738
63617
|
__param(2, PubSub()),
|
|
60739
63618
|
__metadata("design:type", Function),
|
|
60740
63619
|
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
60741
63620
|
__metadata("design:returntype", Promise)
|
|
60742
|
-
],
|
|
63621
|
+
], MJDashboardPartTypeResolver.prototype, "RunMJDashboardPartTypeViewByName", null);
|
|
60743
63622
|
__decorate([
|
|
60744
|
-
Query(() =>
|
|
63623
|
+
Query(() => RunMJDashboardPartTypeViewResult),
|
|
60745
63624
|
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
60746
63625
|
__param(1, Ctx()),
|
|
60747
63626
|
__param(2, PubSub()),
|
|
60748
63627
|
__metadata("design:type", Function),
|
|
60749
63628
|
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
60750
63629
|
__metadata("design:returntype", Promise)
|
|
60751
|
-
],
|
|
63630
|
+
], MJDashboardPartTypeResolver.prototype, "RunMJDashboardPartTypeDynamicView", null);
|
|
60752
63631
|
__decorate([
|
|
60753
|
-
Query(() =>
|
|
63632
|
+
Query(() => MJDashboardPartType_, { nullable: true }),
|
|
60754
63633
|
__param(0, Arg('ID', () => String)),
|
|
60755
63634
|
__param(1, Ctx()),
|
|
60756
63635
|
__param(2, PubSub()),
|
|
60757
63636
|
__metadata("design:type", Function),
|
|
60758
63637
|
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
60759
63638
|
__metadata("design:returntype", Promise)
|
|
60760
|
-
],
|
|
60761
|
-
__decorate([
|
|
60762
|
-
FieldResolver(() => [MJCredential_]),
|
|
60763
|
-
__param(0, Root()),
|
|
60764
|
-
__param(1, Ctx()),
|
|
60765
|
-
__param(2, PubSub()),
|
|
60766
|
-
__metadata("design:type", Function),
|
|
60767
|
-
__metadata("design:paramtypes", [MJCredentialType_, Object, PubSubEngine]),
|
|
60768
|
-
__metadata("design:returntype", Promise)
|
|
60769
|
-
], MJCredentialTypeResolver.prototype, "MJ_Credentials_CredentialTypeIDArray", null);
|
|
60770
|
-
__decorate([
|
|
60771
|
-
FieldResolver(() => [MJAIVendor_]),
|
|
60772
|
-
__param(0, Root()),
|
|
60773
|
-
__param(1, Ctx()),
|
|
60774
|
-
__param(2, PubSub()),
|
|
60775
|
-
__metadata("design:type", Function),
|
|
60776
|
-
__metadata("design:paramtypes", [MJCredentialType_, Object, PubSubEngine]),
|
|
60777
|
-
__metadata("design:returntype", Promise)
|
|
60778
|
-
], MJCredentialTypeResolver.prototype, "MJ_AIVendors_CredentialTypeIDArray", null);
|
|
63639
|
+
], MJDashboardPartTypeResolver.prototype, "MJDashboardPartType", null);
|
|
60779
63640
|
__decorate([
|
|
60780
|
-
Mutation(() =>
|
|
60781
|
-
__param(0, Arg('input', () =>
|
|
63641
|
+
Mutation(() => MJDashboardPartType_),
|
|
63642
|
+
__param(0, Arg('input', () => CreateMJDashboardPartTypeInput)),
|
|
60782
63643
|
__param(1, Ctx()),
|
|
60783
63644
|
__param(2, PubSub()),
|
|
60784
63645
|
__metadata("design:type", Function),
|
|
60785
|
-
__metadata("design:paramtypes", [
|
|
63646
|
+
__metadata("design:paramtypes", [CreateMJDashboardPartTypeInput, Object, PubSubEngine]),
|
|
60786
63647
|
__metadata("design:returntype", Promise)
|
|
60787
|
-
],
|
|
63648
|
+
], MJDashboardPartTypeResolver.prototype, "CreateMJDashboardPartType", null);
|
|
60788
63649
|
__decorate([
|
|
60789
|
-
Mutation(() =>
|
|
60790
|
-
__param(0, Arg('input', () =>
|
|
63650
|
+
Mutation(() => MJDashboardPartType_),
|
|
63651
|
+
__param(0, Arg('input', () => UpdateMJDashboardPartTypeInput)),
|
|
60791
63652
|
__param(1, Ctx()),
|
|
60792
63653
|
__param(2, PubSub()),
|
|
60793
63654
|
__metadata("design:type", Function),
|
|
60794
|
-
__metadata("design:paramtypes", [
|
|
63655
|
+
__metadata("design:paramtypes", [UpdateMJDashboardPartTypeInput, Object, PubSubEngine]),
|
|
60795
63656
|
__metadata("design:returntype", Promise)
|
|
60796
|
-
],
|
|
63657
|
+
], MJDashboardPartTypeResolver.prototype, "UpdateMJDashboardPartType", null);
|
|
60797
63658
|
__decorate([
|
|
60798
|
-
Mutation(() =>
|
|
63659
|
+
Mutation(() => MJDashboardPartType_),
|
|
60799
63660
|
__param(0, Arg('ID', () => String)),
|
|
60800
63661
|
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
60801
63662
|
__param(2, Ctx()),
|
|
@@ -60803,252 +63664,189 @@ __decorate([
|
|
|
60803
63664
|
__metadata("design:type", Function),
|
|
60804
63665
|
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
60805
63666
|
__metadata("design:returntype", Promise)
|
|
60806
|
-
],
|
|
60807
|
-
|
|
60808
|
-
Resolver(
|
|
60809
|
-
],
|
|
60810
|
-
export {
|
|
60811
|
-
let
|
|
63667
|
+
], MJDashboardPartTypeResolver.prototype, "DeleteMJDashboardPartType", null);
|
|
63668
|
+
MJDashboardPartTypeResolver = __decorate([
|
|
63669
|
+
Resolver(MJDashboardPartType_)
|
|
63670
|
+
], MJDashboardPartTypeResolver);
|
|
63671
|
+
export { MJDashboardPartTypeResolver };
|
|
63672
|
+
let MJDashboardPermission_ = class MJDashboardPermission_ {
|
|
60812
63673
|
ID;
|
|
60813
|
-
|
|
60814
|
-
|
|
60815
|
-
|
|
60816
|
-
|
|
60817
|
-
|
|
60818
|
-
|
|
60819
|
-
|
|
60820
|
-
ExpiresAt;
|
|
60821
|
-
LastValidatedAt;
|
|
60822
|
-
LastUsedAt;
|
|
60823
|
-
IconClass;
|
|
63674
|
+
DashboardID;
|
|
63675
|
+
UserID;
|
|
63676
|
+
CanRead;
|
|
63677
|
+
CanEdit;
|
|
63678
|
+
CanDelete;
|
|
63679
|
+
CanShare;
|
|
63680
|
+
SharedByUserID;
|
|
60824
63681
|
_mj__CreatedAt;
|
|
60825
63682
|
_mj__UpdatedAt;
|
|
60826
|
-
|
|
60827
|
-
|
|
60828
|
-
|
|
63683
|
+
Dashboard;
|
|
63684
|
+
User;
|
|
63685
|
+
SharedByUser;
|
|
60829
63686
|
};
|
|
60830
63687
|
__decorate([
|
|
60831
63688
|
Field(),
|
|
60832
63689
|
MaxLength(16),
|
|
60833
63690
|
__metadata("design:type", String)
|
|
60834
|
-
],
|
|
63691
|
+
], MJDashboardPermission_.prototype, "ID", void 0);
|
|
60835
63692
|
__decorate([
|
|
60836
|
-
Field(
|
|
63693
|
+
Field(),
|
|
60837
63694
|
MaxLength(16),
|
|
60838
63695
|
__metadata("design:type", String)
|
|
60839
|
-
],
|
|
63696
|
+
], MJDashboardPermission_.prototype, "DashboardID", void 0);
|
|
60840
63697
|
__decorate([
|
|
60841
|
-
Field(
|
|
63698
|
+
Field(),
|
|
60842
63699
|
MaxLength(16),
|
|
60843
63700
|
__metadata("design:type", String)
|
|
60844
|
-
],
|
|
60845
|
-
__decorate([
|
|
60846
|
-
Field({ description: `Human-readable name for this credential (e.g., Production SendGrid, Development OpenAI).` }),
|
|
60847
|
-
MaxLength(400),
|
|
60848
|
-
__metadata("design:type", String)
|
|
60849
|
-
], MJCredential_.prototype, "Name", void 0);
|
|
60850
|
-
__decorate([
|
|
60851
|
-
Field({ nullable: true, description: `Optional description of this credential instance.` }),
|
|
60852
|
-
__metadata("design:type", String)
|
|
60853
|
-
], MJCredential_.prototype, "Description", void 0);
|
|
60854
|
-
__decorate([
|
|
60855
|
-
Field({ description: `Encrypted JSON blob containing all credential values. This field uses MemberJunction field-level encryption.` }),
|
|
60856
|
-
__metadata("design:type", String)
|
|
60857
|
-
], MJCredential_.prototype, "Values", void 0);
|
|
63701
|
+
], MJDashboardPermission_.prototype, "UserID", void 0);
|
|
60858
63702
|
__decorate([
|
|
60859
|
-
Field(() => Boolean, { description: `
|
|
63703
|
+
Field(() => Boolean, { description: `Whether the user can view the dashboard and its contents` }),
|
|
60860
63704
|
__metadata("design:type", Boolean)
|
|
60861
|
-
],
|
|
63705
|
+
], MJDashboardPermission_.prototype, "CanRead", void 0);
|
|
60862
63706
|
__decorate([
|
|
60863
|
-
Field(() => Boolean, { description: `
|
|
63707
|
+
Field(() => Boolean, { description: `Whether the user can modify the dashboard layout, add/remove parts, or change settings` }),
|
|
60864
63708
|
__metadata("design:type", Boolean)
|
|
60865
|
-
],
|
|
60866
|
-
__decorate([
|
|
60867
|
-
Field({ nullable: true, description: `Optional expiration date. Expired credentials are treated as inactive.` }),
|
|
60868
|
-
MaxLength(10),
|
|
60869
|
-
__metadata("design:type", Date)
|
|
60870
|
-
], MJCredential_.prototype, "ExpiresAt", void 0);
|
|
63709
|
+
], MJDashboardPermission_.prototype, "CanEdit", void 0);
|
|
60871
63710
|
__decorate([
|
|
60872
|
-
Field(
|
|
60873
|
-
|
|
60874
|
-
|
|
60875
|
-
], MJCredential_.prototype, "LastValidatedAt", void 0);
|
|
63711
|
+
Field(() => Boolean, { description: `Whether the user can delete the dashboard entirely` }),
|
|
63712
|
+
__metadata("design:type", Boolean)
|
|
63713
|
+
], MJDashboardPermission_.prototype, "CanDelete", void 0);
|
|
60876
63714
|
__decorate([
|
|
60877
|
-
Field(
|
|
60878
|
-
|
|
60879
|
-
|
|
60880
|
-
], MJCredential_.prototype, "LastUsedAt", void 0);
|
|
63715
|
+
Field(() => Boolean, { description: `Whether the user can share the dashboard with other users` }),
|
|
63716
|
+
__metadata("design:type", Boolean)
|
|
63717
|
+
], MJDashboardPermission_.prototype, "CanShare", void 0);
|
|
60881
63718
|
__decorate([
|
|
60882
|
-
Field({ nullable: true, description: `
|
|
60883
|
-
MaxLength(
|
|
63719
|
+
Field({ nullable: true, description: `The user who granted this permission. NULL if shared by the dashboard owner.` }),
|
|
63720
|
+
MaxLength(16),
|
|
60884
63721
|
__metadata("design:type", String)
|
|
60885
|
-
],
|
|
63722
|
+
], MJDashboardPermission_.prototype, "SharedByUserID", void 0);
|
|
60886
63723
|
__decorate([
|
|
60887
63724
|
Field(),
|
|
60888
63725
|
MaxLength(10),
|
|
60889
63726
|
__metadata("design:type", Date)
|
|
60890
|
-
],
|
|
63727
|
+
], MJDashboardPermission_.prototype, "_mj__CreatedAt", void 0);
|
|
60891
63728
|
__decorate([
|
|
60892
63729
|
Field(),
|
|
60893
63730
|
MaxLength(10),
|
|
60894
63731
|
__metadata("design:type", Date)
|
|
60895
|
-
],
|
|
63732
|
+
], MJDashboardPermission_.prototype, "_mj__UpdatedAt", void 0);
|
|
63733
|
+
__decorate([
|
|
63734
|
+
Field(),
|
|
63735
|
+
MaxLength(510),
|
|
63736
|
+
__metadata("design:type", String)
|
|
63737
|
+
], MJDashboardPermission_.prototype, "Dashboard", void 0);
|
|
60896
63738
|
__decorate([
|
|
60897
63739
|
Field(),
|
|
60898
63740
|
MaxLength(200),
|
|
60899
63741
|
__metadata("design:type", String)
|
|
60900
|
-
],
|
|
63742
|
+
], MJDashboardPermission_.prototype, "User", void 0);
|
|
60901
63743
|
__decorate([
|
|
60902
63744
|
Field({ nullable: true }),
|
|
60903
63745
|
MaxLength(200),
|
|
60904
63746
|
__metadata("design:type", String)
|
|
60905
|
-
],
|
|
60906
|
-
__decorate([
|
|
60907
|
-
|
|
60908
|
-
|
|
60909
|
-
|
|
60910
|
-
|
|
60911
|
-
ObjectType({ description: `Stores credential instances with encrypted values. All access should go through CredentialEngine for proper audit logging.` })
|
|
60912
|
-
], MJCredential_);
|
|
60913
|
-
export { MJCredential_ };
|
|
60914
|
-
let CreateMJCredentialInput = class CreateMJCredentialInput {
|
|
63747
|
+
], MJDashboardPermission_.prototype, "SharedByUser", void 0);
|
|
63748
|
+
MJDashboardPermission_ = __decorate([
|
|
63749
|
+
ObjectType({ description: `Manages user permissions for dashboards with granular access control (Read, Edit, Delete, Share). Each record grants a specific user access to a dashboard with configurable permission levels.` })
|
|
63750
|
+
], MJDashboardPermission_);
|
|
63751
|
+
export { MJDashboardPermission_ };
|
|
63752
|
+
let CreateMJDashboardPermissionInput = class CreateMJDashboardPermissionInput {
|
|
60915
63753
|
ID;
|
|
60916
|
-
|
|
60917
|
-
|
|
60918
|
-
|
|
60919
|
-
|
|
60920
|
-
|
|
60921
|
-
|
|
60922
|
-
|
|
60923
|
-
ExpiresAt;
|
|
60924
|
-
LastValidatedAt;
|
|
60925
|
-
LastUsedAt;
|
|
60926
|
-
IconClass;
|
|
63754
|
+
DashboardID;
|
|
63755
|
+
UserID;
|
|
63756
|
+
CanRead;
|
|
63757
|
+
CanEdit;
|
|
63758
|
+
CanDelete;
|
|
63759
|
+
CanShare;
|
|
63760
|
+
SharedByUserID;
|
|
60927
63761
|
};
|
|
60928
63762
|
__decorate([
|
|
60929
63763
|
Field({ nullable: true }),
|
|
60930
63764
|
__metadata("design:type", String)
|
|
60931
|
-
],
|
|
60932
|
-
__decorate([
|
|
60933
|
-
Field({ nullable: true }),
|
|
60934
|
-
__metadata("design:type", String)
|
|
60935
|
-
], CreateMJCredentialInput.prototype, "CredentialTypeID", void 0);
|
|
60936
|
-
__decorate([
|
|
60937
|
-
Field({ nullable: true }),
|
|
60938
|
-
__metadata("design:type", String)
|
|
60939
|
-
], CreateMJCredentialInput.prototype, "CategoryID", void 0);
|
|
60940
|
-
__decorate([
|
|
60941
|
-
Field({ nullable: true }),
|
|
60942
|
-
__metadata("design:type", String)
|
|
60943
|
-
], CreateMJCredentialInput.prototype, "Name", void 0);
|
|
63765
|
+
], CreateMJDashboardPermissionInput.prototype, "ID", void 0);
|
|
60944
63766
|
__decorate([
|
|
60945
63767
|
Field({ nullable: true }),
|
|
60946
63768
|
__metadata("design:type", String)
|
|
60947
|
-
],
|
|
63769
|
+
], CreateMJDashboardPermissionInput.prototype, "DashboardID", void 0);
|
|
60948
63770
|
__decorate([
|
|
60949
63771
|
Field({ nullable: true }),
|
|
60950
63772
|
__metadata("design:type", String)
|
|
60951
|
-
],
|
|
63773
|
+
], CreateMJDashboardPermissionInput.prototype, "UserID", void 0);
|
|
60952
63774
|
__decorate([
|
|
60953
63775
|
Field(() => Boolean, { nullable: true }),
|
|
60954
63776
|
__metadata("design:type", Boolean)
|
|
60955
|
-
],
|
|
63777
|
+
], CreateMJDashboardPermissionInput.prototype, "CanRead", void 0);
|
|
60956
63778
|
__decorate([
|
|
60957
63779
|
Field(() => Boolean, { nullable: true }),
|
|
60958
63780
|
__metadata("design:type", Boolean)
|
|
60959
|
-
],
|
|
60960
|
-
__decorate([
|
|
60961
|
-
Field({ nullable: true }),
|
|
60962
|
-
__metadata("design:type", Date)
|
|
60963
|
-
], CreateMJCredentialInput.prototype, "ExpiresAt", void 0);
|
|
63781
|
+
], CreateMJDashboardPermissionInput.prototype, "CanEdit", void 0);
|
|
60964
63782
|
__decorate([
|
|
60965
|
-
Field({ nullable: true }),
|
|
60966
|
-
__metadata("design:type",
|
|
60967
|
-
],
|
|
63783
|
+
Field(() => Boolean, { nullable: true }),
|
|
63784
|
+
__metadata("design:type", Boolean)
|
|
63785
|
+
], CreateMJDashboardPermissionInput.prototype, "CanDelete", void 0);
|
|
60968
63786
|
__decorate([
|
|
60969
|
-
Field({ nullable: true }),
|
|
60970
|
-
__metadata("design:type",
|
|
60971
|
-
],
|
|
63787
|
+
Field(() => Boolean, { nullable: true }),
|
|
63788
|
+
__metadata("design:type", Boolean)
|
|
63789
|
+
], CreateMJDashboardPermissionInput.prototype, "CanShare", void 0);
|
|
60972
63790
|
__decorate([
|
|
60973
63791
|
Field({ nullable: true }),
|
|
60974
63792
|
__metadata("design:type", String)
|
|
60975
|
-
],
|
|
60976
|
-
|
|
63793
|
+
], CreateMJDashboardPermissionInput.prototype, "SharedByUserID", void 0);
|
|
63794
|
+
CreateMJDashboardPermissionInput = __decorate([
|
|
60977
63795
|
InputType()
|
|
60978
|
-
],
|
|
60979
|
-
export {
|
|
60980
|
-
let
|
|
63796
|
+
], CreateMJDashboardPermissionInput);
|
|
63797
|
+
export { CreateMJDashboardPermissionInput };
|
|
63798
|
+
let UpdateMJDashboardPermissionInput = class UpdateMJDashboardPermissionInput {
|
|
60981
63799
|
ID;
|
|
60982
|
-
|
|
60983
|
-
|
|
60984
|
-
|
|
60985
|
-
|
|
60986
|
-
|
|
60987
|
-
|
|
60988
|
-
|
|
60989
|
-
ExpiresAt;
|
|
60990
|
-
LastValidatedAt;
|
|
60991
|
-
LastUsedAt;
|
|
60992
|
-
IconClass;
|
|
63800
|
+
DashboardID;
|
|
63801
|
+
UserID;
|
|
63802
|
+
CanRead;
|
|
63803
|
+
CanEdit;
|
|
63804
|
+
CanDelete;
|
|
63805
|
+
CanShare;
|
|
63806
|
+
SharedByUserID;
|
|
60993
63807
|
OldValues___;
|
|
60994
63808
|
};
|
|
60995
63809
|
__decorate([
|
|
60996
63810
|
Field(),
|
|
60997
63811
|
__metadata("design:type", String)
|
|
60998
|
-
],
|
|
60999
|
-
__decorate([
|
|
61000
|
-
Field({ nullable: true }),
|
|
61001
|
-
__metadata("design:type", String)
|
|
61002
|
-
], UpdateMJCredentialInput.prototype, "CredentialTypeID", void 0);
|
|
61003
|
-
__decorate([
|
|
61004
|
-
Field({ nullable: true }),
|
|
61005
|
-
__metadata("design:type", String)
|
|
61006
|
-
], UpdateMJCredentialInput.prototype, "CategoryID", void 0);
|
|
61007
|
-
__decorate([
|
|
61008
|
-
Field({ nullable: true }),
|
|
61009
|
-
__metadata("design:type", String)
|
|
61010
|
-
], UpdateMJCredentialInput.prototype, "Name", void 0);
|
|
63812
|
+
], UpdateMJDashboardPermissionInput.prototype, "ID", void 0);
|
|
61011
63813
|
__decorate([
|
|
61012
63814
|
Field({ nullable: true }),
|
|
61013
63815
|
__metadata("design:type", String)
|
|
61014
|
-
],
|
|
63816
|
+
], UpdateMJDashboardPermissionInput.prototype, "DashboardID", void 0);
|
|
61015
63817
|
__decorate([
|
|
61016
63818
|
Field({ nullable: true }),
|
|
61017
63819
|
__metadata("design:type", String)
|
|
61018
|
-
],
|
|
63820
|
+
], UpdateMJDashboardPermissionInput.prototype, "UserID", void 0);
|
|
61019
63821
|
__decorate([
|
|
61020
63822
|
Field(() => Boolean, { nullable: true }),
|
|
61021
63823
|
__metadata("design:type", Boolean)
|
|
61022
|
-
],
|
|
63824
|
+
], UpdateMJDashboardPermissionInput.prototype, "CanRead", void 0);
|
|
61023
63825
|
__decorate([
|
|
61024
63826
|
Field(() => Boolean, { nullable: true }),
|
|
61025
63827
|
__metadata("design:type", Boolean)
|
|
61026
|
-
],
|
|
63828
|
+
], UpdateMJDashboardPermissionInput.prototype, "CanEdit", void 0);
|
|
61027
63829
|
__decorate([
|
|
61028
|
-
Field({ nullable: true }),
|
|
61029
|
-
__metadata("design:type",
|
|
61030
|
-
],
|
|
61031
|
-
__decorate([
|
|
61032
|
-
Field({ nullable: true }),
|
|
61033
|
-
__metadata("design:type", Date)
|
|
61034
|
-
], UpdateMJCredentialInput.prototype, "LastValidatedAt", void 0);
|
|
63830
|
+
Field(() => Boolean, { nullable: true }),
|
|
63831
|
+
__metadata("design:type", Boolean)
|
|
63832
|
+
], UpdateMJDashboardPermissionInput.prototype, "CanDelete", void 0);
|
|
61035
63833
|
__decorate([
|
|
61036
|
-
Field({ nullable: true }),
|
|
61037
|
-
__metadata("design:type",
|
|
61038
|
-
],
|
|
63834
|
+
Field(() => Boolean, { nullable: true }),
|
|
63835
|
+
__metadata("design:type", Boolean)
|
|
63836
|
+
], UpdateMJDashboardPermissionInput.prototype, "CanShare", void 0);
|
|
61039
63837
|
__decorate([
|
|
61040
63838
|
Field({ nullable: true }),
|
|
61041
63839
|
__metadata("design:type", String)
|
|
61042
|
-
],
|
|
63840
|
+
], UpdateMJDashboardPermissionInput.prototype, "SharedByUserID", void 0);
|
|
61043
63841
|
__decorate([
|
|
61044
63842
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
61045
63843
|
__metadata("design:type", Array)
|
|
61046
|
-
],
|
|
61047
|
-
|
|
63844
|
+
], UpdateMJDashboardPermissionInput.prototype, "OldValues___", void 0);
|
|
63845
|
+
UpdateMJDashboardPermissionInput = __decorate([
|
|
61048
63846
|
InputType()
|
|
61049
|
-
],
|
|
61050
|
-
export {
|
|
61051
|
-
let
|
|
63847
|
+
], UpdateMJDashboardPermissionInput);
|
|
63848
|
+
export { UpdateMJDashboardPermissionInput };
|
|
63849
|
+
let RunMJDashboardPermissionViewResult = class RunMJDashboardPermissionViewResult {
|
|
61052
63850
|
Results;
|
|
61053
63851
|
UserViewRunID;
|
|
61054
63852
|
RowCount;
|
|
@@ -61058,148 +63856,130 @@ let RunMJCredentialViewResult = class RunMJCredentialViewResult {
|
|
|
61058
63856
|
Success;
|
|
61059
63857
|
};
|
|
61060
63858
|
__decorate([
|
|
61061
|
-
Field(() => [
|
|
63859
|
+
Field(() => [MJDashboardPermission_]),
|
|
61062
63860
|
__metadata("design:type", Array)
|
|
61063
|
-
],
|
|
63861
|
+
], RunMJDashboardPermissionViewResult.prototype, "Results", void 0);
|
|
61064
63862
|
__decorate([
|
|
61065
63863
|
Field(() => String, { nullable: true }),
|
|
61066
63864
|
__metadata("design:type", String)
|
|
61067
|
-
],
|
|
63865
|
+
], RunMJDashboardPermissionViewResult.prototype, "UserViewRunID", void 0);
|
|
61068
63866
|
__decorate([
|
|
61069
63867
|
Field(() => Int, { nullable: true }),
|
|
61070
63868
|
__metadata("design:type", Number)
|
|
61071
|
-
],
|
|
63869
|
+
], RunMJDashboardPermissionViewResult.prototype, "RowCount", void 0);
|
|
61072
63870
|
__decorate([
|
|
61073
63871
|
Field(() => Int, { nullable: true }),
|
|
61074
63872
|
__metadata("design:type", Number)
|
|
61075
|
-
],
|
|
63873
|
+
], RunMJDashboardPermissionViewResult.prototype, "TotalRowCount", void 0);
|
|
61076
63874
|
__decorate([
|
|
61077
63875
|
Field(() => Int, { nullable: true }),
|
|
61078
63876
|
__metadata("design:type", Number)
|
|
61079
|
-
],
|
|
63877
|
+
], RunMJDashboardPermissionViewResult.prototype, "ExecutionTime", void 0);
|
|
61080
63878
|
__decorate([
|
|
61081
63879
|
Field({ nullable: true }),
|
|
61082
63880
|
__metadata("design:type", String)
|
|
61083
|
-
],
|
|
63881
|
+
], RunMJDashboardPermissionViewResult.prototype, "ErrorMessage", void 0);
|
|
61084
63882
|
__decorate([
|
|
61085
63883
|
Field(() => Boolean, { nullable: false }),
|
|
61086
63884
|
__metadata("design:type", Boolean)
|
|
61087
|
-
],
|
|
61088
|
-
|
|
63885
|
+
], RunMJDashboardPermissionViewResult.prototype, "Success", void 0);
|
|
63886
|
+
RunMJDashboardPermissionViewResult = __decorate([
|
|
61089
63887
|
ObjectType()
|
|
61090
|
-
],
|
|
61091
|
-
export {
|
|
61092
|
-
let
|
|
61093
|
-
async
|
|
63888
|
+
], RunMJDashboardPermissionViewResult);
|
|
63889
|
+
export { RunMJDashboardPermissionViewResult };
|
|
63890
|
+
let MJDashboardPermissionResolver = class MJDashboardPermissionResolver extends ResolverBase {
|
|
63891
|
+
async RunMJDashboardPermissionViewByID(input, { providers, userPayload }, pubSub) {
|
|
61094
63892
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61095
63893
|
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
61096
63894
|
}
|
|
61097
|
-
async
|
|
63895
|
+
async RunMJDashboardPermissionViewByName(input, { providers, userPayload }, pubSub) {
|
|
61098
63896
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61099
63897
|
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
61100
63898
|
}
|
|
61101
|
-
async
|
|
63899
|
+
async RunMJDashboardPermissionDynamicView(input, { providers, userPayload }, pubSub) {
|
|
61102
63900
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61103
|
-
input.EntityName = 'MJ:
|
|
63901
|
+
input.EntityName = 'MJ: Dashboard Permissions';
|
|
61104
63902
|
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
61105
63903
|
}
|
|
61106
|
-
async
|
|
61107
|
-
this.CheckUserReadPermissions('MJ:
|
|
61108
|
-
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61109
|
-
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
61110
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCredentials] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Credentials', userPayload, EntityPermissionType.Read, 'AND');
|
|
61111
|
-
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
61112
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Credentials', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
61113
|
-
return result;
|
|
61114
|
-
}
|
|
61115
|
-
async MJ_AICredentialBindings_CredentialIDArray(mjcredential_, { dataSources, userPayload, providers }, pubSub) {
|
|
61116
|
-
this.CheckUserReadPermissions('MJ: AI Credential Bindings', userPayload);
|
|
63904
|
+
async MJDashboardPermission(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
63905
|
+
this.CheckUserReadPermissions('MJ: Dashboard Permissions', userPayload);
|
|
61117
63906
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61118
63907
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
61119
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
63908
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardPermissions] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
61120
63909
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
61121
|
-
const result = await this.
|
|
63910
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Dashboard Permissions', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
61122
63911
|
return result;
|
|
61123
63912
|
}
|
|
61124
|
-
async
|
|
63913
|
+
async CreateMJDashboardPermission(input, { providers, userPayload }, pubSub) {
|
|
61125
63914
|
const provider = GetReadWriteProvider(providers);
|
|
61126
|
-
return this.CreateRecord('MJ:
|
|
63915
|
+
return this.CreateRecord('MJ: Dashboard Permissions', input, provider, userPayload, pubSub);
|
|
61127
63916
|
}
|
|
61128
|
-
async
|
|
63917
|
+
async UpdateMJDashboardPermission(input, { providers, userPayload }, pubSub) {
|
|
61129
63918
|
const provider = GetReadWriteProvider(providers);
|
|
61130
|
-
return this.UpdateRecord('MJ:
|
|
63919
|
+
return this.UpdateRecord('MJ: Dashboard Permissions', input, provider, userPayload, pubSub);
|
|
61131
63920
|
}
|
|
61132
|
-
async
|
|
63921
|
+
async DeleteMJDashboardPermission(ID, options, { providers, userPayload }, pubSub) {
|
|
61133
63922
|
const provider = GetReadWriteProvider(providers);
|
|
61134
63923
|
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
61135
|
-
return this.DeleteRecord('MJ:
|
|
63924
|
+
return this.DeleteRecord('MJ: Dashboard Permissions', key, options, provider, userPayload, pubSub);
|
|
61136
63925
|
}
|
|
61137
63926
|
};
|
|
61138
63927
|
__decorate([
|
|
61139
|
-
Query(() =>
|
|
63928
|
+
Query(() => RunMJDashboardPermissionViewResult),
|
|
61140
63929
|
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
61141
63930
|
__param(1, Ctx()),
|
|
61142
63931
|
__param(2, PubSub()),
|
|
61143
63932
|
__metadata("design:type", Function),
|
|
61144
63933
|
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
61145
63934
|
__metadata("design:returntype", Promise)
|
|
61146
|
-
],
|
|
63935
|
+
], MJDashboardPermissionResolver.prototype, "RunMJDashboardPermissionViewByID", null);
|
|
61147
63936
|
__decorate([
|
|
61148
|
-
Query(() =>
|
|
63937
|
+
Query(() => RunMJDashboardPermissionViewResult),
|
|
61149
63938
|
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
61150
63939
|
__param(1, Ctx()),
|
|
61151
63940
|
__param(2, PubSub()),
|
|
61152
63941
|
__metadata("design:type", Function),
|
|
61153
63942
|
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
61154
63943
|
__metadata("design:returntype", Promise)
|
|
61155
|
-
],
|
|
63944
|
+
], MJDashboardPermissionResolver.prototype, "RunMJDashboardPermissionViewByName", null);
|
|
61156
63945
|
__decorate([
|
|
61157
|
-
Query(() =>
|
|
63946
|
+
Query(() => RunMJDashboardPermissionViewResult),
|
|
61158
63947
|
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
61159
63948
|
__param(1, Ctx()),
|
|
61160
63949
|
__param(2, PubSub()),
|
|
61161
63950
|
__metadata("design:type", Function),
|
|
61162
63951
|
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
61163
63952
|
__metadata("design:returntype", Promise)
|
|
61164
|
-
],
|
|
63953
|
+
], MJDashboardPermissionResolver.prototype, "RunMJDashboardPermissionDynamicView", null);
|
|
61165
63954
|
__decorate([
|
|
61166
|
-
Query(() =>
|
|
63955
|
+
Query(() => MJDashboardPermission_, { nullable: true }),
|
|
61167
63956
|
__param(0, Arg('ID', () => String)),
|
|
61168
63957
|
__param(1, Ctx()),
|
|
61169
63958
|
__param(2, PubSub()),
|
|
61170
63959
|
__metadata("design:type", Function),
|
|
61171
63960
|
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
61172
63961
|
__metadata("design:returntype", Promise)
|
|
61173
|
-
],
|
|
61174
|
-
__decorate([
|
|
61175
|
-
FieldResolver(() => [MJAICredentialBinding_]),
|
|
61176
|
-
__param(0, Root()),
|
|
61177
|
-
__param(1, Ctx()),
|
|
61178
|
-
__param(2, PubSub()),
|
|
61179
|
-
__metadata("design:type", Function),
|
|
61180
|
-
__metadata("design:paramtypes", [MJCredential_, Object, PubSubEngine]),
|
|
61181
|
-
__metadata("design:returntype", Promise)
|
|
61182
|
-
], MJCredentialResolver.prototype, "MJ_AICredentialBindings_CredentialIDArray", null);
|
|
63962
|
+
], MJDashboardPermissionResolver.prototype, "MJDashboardPermission", null);
|
|
61183
63963
|
__decorate([
|
|
61184
|
-
Mutation(() =>
|
|
61185
|
-
__param(0, Arg('input', () =>
|
|
63964
|
+
Mutation(() => MJDashboardPermission_),
|
|
63965
|
+
__param(0, Arg('input', () => CreateMJDashboardPermissionInput)),
|
|
61186
63966
|
__param(1, Ctx()),
|
|
61187
63967
|
__param(2, PubSub()),
|
|
61188
63968
|
__metadata("design:type", Function),
|
|
61189
|
-
__metadata("design:paramtypes", [
|
|
63969
|
+
__metadata("design:paramtypes", [CreateMJDashboardPermissionInput, Object, PubSubEngine]),
|
|
61190
63970
|
__metadata("design:returntype", Promise)
|
|
61191
|
-
],
|
|
63971
|
+
], MJDashboardPermissionResolver.prototype, "CreateMJDashboardPermission", null);
|
|
61192
63972
|
__decorate([
|
|
61193
|
-
Mutation(() =>
|
|
61194
|
-
__param(0, Arg('input', () =>
|
|
63973
|
+
Mutation(() => MJDashboardPermission_),
|
|
63974
|
+
__param(0, Arg('input', () => UpdateMJDashboardPermissionInput)),
|
|
61195
63975
|
__param(1, Ctx()),
|
|
61196
63976
|
__param(2, PubSub()),
|
|
61197
63977
|
__metadata("design:type", Function),
|
|
61198
|
-
__metadata("design:paramtypes", [
|
|
63978
|
+
__metadata("design:paramtypes", [UpdateMJDashboardPermissionInput, Object, PubSubEngine]),
|
|
61199
63979
|
__metadata("design:returntype", Promise)
|
|
61200
|
-
],
|
|
63980
|
+
], MJDashboardPermissionResolver.prototype, "UpdateMJDashboardPermission", null);
|
|
61201
63981
|
__decorate([
|
|
61202
|
-
Mutation(() =>
|
|
63982
|
+
Mutation(() => MJDashboardPermission_),
|
|
61203
63983
|
__param(0, Arg('ID', () => String)),
|
|
61204
63984
|
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
61205
63985
|
__param(2, Ctx()),
|
|
@@ -61207,11 +63987,11 @@ __decorate([
|
|
|
61207
63987
|
__metadata("design:type", Function),
|
|
61208
63988
|
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
61209
63989
|
__metadata("design:returntype", Promise)
|
|
61210
|
-
],
|
|
61211
|
-
|
|
61212
|
-
Resolver(
|
|
61213
|
-
],
|
|
61214
|
-
export {
|
|
63990
|
+
], MJDashboardPermissionResolver.prototype, "DeleteMJDashboardPermission", null);
|
|
63991
|
+
MJDashboardPermissionResolver = __decorate([
|
|
63992
|
+
Resolver(MJDashboardPermission_)
|
|
63993
|
+
], MJDashboardPermissionResolver);
|
|
63994
|
+
export { MJDashboardPermissionResolver };
|
|
61215
63995
|
let MJDashboardUserPreference_ = class MJDashboardUserPreference_ {
|
|
61216
63996
|
ID;
|
|
61217
63997
|
UserID;
|
|
@@ -68822,6 +71602,7 @@ let MJTestRun_ = class MJTestRun_ {
|
|
|
68822
71602
|
RunByUserEmail;
|
|
68823
71603
|
RunContextDetails;
|
|
68824
71604
|
TargetLogEntityID;
|
|
71605
|
+
ResolvedVariables;
|
|
68825
71606
|
Test;
|
|
68826
71607
|
TestSuiteRun;
|
|
68827
71608
|
RunByUser;
|
|
@@ -68972,6 +71753,10 @@ __decorate([
|
|
|
68972
71753
|
MaxLength(16),
|
|
68973
71754
|
__metadata("design:type", String)
|
|
68974
71755
|
], MJTestRun_.prototype, "TargetLogEntityID", void 0);
|
|
71756
|
+
__decorate([
|
|
71757
|
+
Field({ nullable: true, description: `JSON object containing the final resolved variable values used during test execution. Includes both the resolved values and the source of each value (run, suite, test, or type level). Stored for reproducibility and auditing.` }),
|
|
71758
|
+
__metadata("design:type", String)
|
|
71759
|
+
], MJTestRun_.prototype, "ResolvedVariables", void 0);
|
|
68975
71760
|
__decorate([
|
|
68976
71761
|
Field(),
|
|
68977
71762
|
MaxLength(510),
|
|
@@ -69046,6 +71831,7 @@ let CreateMJTestRunInput = class CreateMJTestRunInput {
|
|
|
69046
71831
|
RunByUserEmail;
|
|
69047
71832
|
RunContextDetails;
|
|
69048
71833
|
TargetLogEntityID;
|
|
71834
|
+
ResolvedVariables;
|
|
69049
71835
|
};
|
|
69050
71836
|
__decorate([
|
|
69051
71837
|
Field({ nullable: true }),
|
|
@@ -69163,6 +71949,10 @@ __decorate([
|
|
|
69163
71949
|
Field({ nullable: true }),
|
|
69164
71950
|
__metadata("design:type", String)
|
|
69165
71951
|
], CreateMJTestRunInput.prototype, "TargetLogEntityID", void 0);
|
|
71952
|
+
__decorate([
|
|
71953
|
+
Field({ nullable: true }),
|
|
71954
|
+
__metadata("design:type", String)
|
|
71955
|
+
], CreateMJTestRunInput.prototype, "ResolvedVariables", void 0);
|
|
69166
71956
|
CreateMJTestRunInput = __decorate([
|
|
69167
71957
|
InputType()
|
|
69168
71958
|
], CreateMJTestRunInput);
|
|
@@ -69197,6 +71987,7 @@ let UpdateMJTestRunInput = class UpdateMJTestRunInput {
|
|
|
69197
71987
|
RunByUserEmail;
|
|
69198
71988
|
RunContextDetails;
|
|
69199
71989
|
TargetLogEntityID;
|
|
71990
|
+
ResolvedVariables;
|
|
69200
71991
|
OldValues___;
|
|
69201
71992
|
};
|
|
69202
71993
|
__decorate([
|
|
@@ -69315,6 +72106,10 @@ __decorate([
|
|
|
69315
72106
|
Field({ nullable: true }),
|
|
69316
72107
|
__metadata("design:type", String)
|
|
69317
72108
|
], UpdateMJTestRunInput.prototype, "TargetLogEntityID", void 0);
|
|
72109
|
+
__decorate([
|
|
72110
|
+
Field({ nullable: true }),
|
|
72111
|
+
__metadata("design:type", String)
|
|
72112
|
+
], UpdateMJTestRunInput.prototype, "ResolvedVariables", void 0);
|
|
69318
72113
|
__decorate([
|
|
69319
72114
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
69320
72115
|
__metadata("design:type", Array)
|
|
@@ -69588,6 +72383,7 @@ let MJTestSuiteRun_ = class MJTestSuiteRun_ {
|
|
|
69588
72383
|
RunByUserName;
|
|
69589
72384
|
RunByUserEmail;
|
|
69590
72385
|
RunContextDetails;
|
|
72386
|
+
ResolvedVariables;
|
|
69591
72387
|
Suite;
|
|
69592
72388
|
RunByUser;
|
|
69593
72389
|
MJ_TestRuns_TestSuiteRunIDArray;
|
|
@@ -69720,6 +72516,10 @@ __decorate([
|
|
|
69720
72516
|
Field({ nullable: true, description: `JSON object containing extensible execution context: osType, osVersion, nodeVersion, timezone, locale, ipAddress, and CI/CD metadata (ciProvider, pipelineId, buildNumber, branch, prNumber). Allows detailed environment tracking without schema changes.` }),
|
|
69721
72517
|
__metadata("design:type", String)
|
|
69722
72518
|
], MJTestSuiteRun_.prototype, "RunContextDetails", void 0);
|
|
72519
|
+
__decorate([
|
|
72520
|
+
Field({ nullable: true, description: `JSON object containing the variable values provided at suite run level. These values were applied to all tests in the suite run and can be seen on individual TestRun.ResolvedVariables with source="suite".` }),
|
|
72521
|
+
__metadata("design:type", String)
|
|
72522
|
+
], MJTestSuiteRun_.prototype, "ResolvedVariables", void 0);
|
|
69723
72523
|
__decorate([
|
|
69724
72524
|
Field(),
|
|
69725
72525
|
MaxLength(510),
|
|
@@ -69765,6 +72565,7 @@ let CreateMJTestSuiteRunInput = class CreateMJTestSuiteRunInput {
|
|
|
69765
72565
|
RunByUserName;
|
|
69766
72566
|
RunByUserEmail;
|
|
69767
72567
|
RunContextDetails;
|
|
72568
|
+
ResolvedVariables;
|
|
69768
72569
|
};
|
|
69769
72570
|
__decorate([
|
|
69770
72571
|
Field({ nullable: true }),
|
|
@@ -69870,6 +72671,10 @@ __decorate([
|
|
|
69870
72671
|
Field({ nullable: true }),
|
|
69871
72672
|
__metadata("design:type", String)
|
|
69872
72673
|
], CreateMJTestSuiteRunInput.prototype, "RunContextDetails", void 0);
|
|
72674
|
+
__decorate([
|
|
72675
|
+
Field({ nullable: true }),
|
|
72676
|
+
__metadata("design:type", String)
|
|
72677
|
+
], CreateMJTestSuiteRunInput.prototype, "ResolvedVariables", void 0);
|
|
69873
72678
|
CreateMJTestSuiteRunInput = __decorate([
|
|
69874
72679
|
InputType()
|
|
69875
72680
|
], CreateMJTestSuiteRunInput);
|
|
@@ -69901,6 +72706,7 @@ let UpdateMJTestSuiteRunInput = class UpdateMJTestSuiteRunInput {
|
|
|
69901
72706
|
RunByUserName;
|
|
69902
72707
|
RunByUserEmail;
|
|
69903
72708
|
RunContextDetails;
|
|
72709
|
+
ResolvedVariables;
|
|
69904
72710
|
OldValues___;
|
|
69905
72711
|
};
|
|
69906
72712
|
__decorate([
|
|
@@ -70007,6 +72813,10 @@ __decorate([
|
|
|
70007
72813
|
Field({ nullable: true }),
|
|
70008
72814
|
__metadata("design:type", String)
|
|
70009
72815
|
], UpdateMJTestSuiteRunInput.prototype, "RunContextDetails", void 0);
|
|
72816
|
+
__decorate([
|
|
72817
|
+
Field({ nullable: true }),
|
|
72818
|
+
__metadata("design:type", String)
|
|
72819
|
+
], UpdateMJTestSuiteRunInput.prototype, "ResolvedVariables", void 0);
|
|
70010
72820
|
__decorate([
|
|
70011
72821
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
70012
72822
|
__metadata("design:type", Array)
|
|
@@ -70477,6 +73287,7 @@ let MJTestSuite_ = class MJTestSuite_ {
|
|
|
70477
73287
|
_mj__CreatedAt;
|
|
70478
73288
|
_mj__UpdatedAt;
|
|
70479
73289
|
MaxExecutionTimeMS;
|
|
73290
|
+
Variables;
|
|
70480
73291
|
Parent;
|
|
70481
73292
|
RootParentID;
|
|
70482
73293
|
MJ_TestSuites_ParentIDArray;
|
|
@@ -70529,6 +73340,10 @@ __decorate([
|
|
|
70529
73340
|
Field(() => Int, { nullable: true, description: `Maximum total execution time in milliseconds for the entire suite. If NULL, no suite-level timeout applies (individual test timeouts still apply). When exceeded, current test is cancelled and remaining tests are skipped.` }),
|
|
70530
73341
|
__metadata("design:type", Number)
|
|
70531
73342
|
], MJTestSuite_.prototype, "MaxExecutionTimeMS", void 0);
|
|
73343
|
+
__decorate([
|
|
73344
|
+
Field({ nullable: true, description: `JSON object containing variable values to apply to all tests in this suite. These values override test-level defaults but can be overridden by run-level values.` }),
|
|
73345
|
+
__metadata("design:type", String)
|
|
73346
|
+
], MJTestSuite_.prototype, "Variables", void 0);
|
|
70532
73347
|
__decorate([
|
|
70533
73348
|
Field({ nullable: true }),
|
|
70534
73349
|
MaxLength(510),
|
|
@@ -70564,6 +73379,7 @@ let CreateMJTestSuiteInput = class CreateMJTestSuiteInput {
|
|
|
70564
73379
|
Tags;
|
|
70565
73380
|
Configuration;
|
|
70566
73381
|
MaxExecutionTimeMS;
|
|
73382
|
+
Variables;
|
|
70567
73383
|
};
|
|
70568
73384
|
__decorate([
|
|
70569
73385
|
Field({ nullable: true }),
|
|
@@ -70597,6 +73413,10 @@ __decorate([
|
|
|
70597
73413
|
Field(() => Int, { nullable: true }),
|
|
70598
73414
|
__metadata("design:type", Number)
|
|
70599
73415
|
], CreateMJTestSuiteInput.prototype, "MaxExecutionTimeMS", void 0);
|
|
73416
|
+
__decorate([
|
|
73417
|
+
Field({ nullable: true }),
|
|
73418
|
+
__metadata("design:type", String)
|
|
73419
|
+
], CreateMJTestSuiteInput.prototype, "Variables", void 0);
|
|
70600
73420
|
CreateMJTestSuiteInput = __decorate([
|
|
70601
73421
|
InputType()
|
|
70602
73422
|
], CreateMJTestSuiteInput);
|
|
@@ -70610,6 +73430,7 @@ let UpdateMJTestSuiteInput = class UpdateMJTestSuiteInput {
|
|
|
70610
73430
|
Tags;
|
|
70611
73431
|
Configuration;
|
|
70612
73432
|
MaxExecutionTimeMS;
|
|
73433
|
+
Variables;
|
|
70613
73434
|
OldValues___;
|
|
70614
73435
|
};
|
|
70615
73436
|
__decorate([
|
|
@@ -70644,6 +73465,10 @@ __decorate([
|
|
|
70644
73465
|
Field(() => Int, { nullable: true }),
|
|
70645
73466
|
__metadata("design:type", Number)
|
|
70646
73467
|
], UpdateMJTestSuiteInput.prototype, "MaxExecutionTimeMS", void 0);
|
|
73468
|
+
__decorate([
|
|
73469
|
+
Field({ nullable: true }),
|
|
73470
|
+
__metadata("design:type", String)
|
|
73471
|
+
], UpdateMJTestSuiteInput.prototype, "Variables", void 0);
|
|
70647
73472
|
__decorate([
|
|
70648
73473
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
70649
73474
|
__metadata("design:type", Array)
|
|
@@ -70860,6 +73685,7 @@ let MJTestType_ = class MJTestType_ {
|
|
|
70860
73685
|
Status;
|
|
70861
73686
|
_mj__CreatedAt;
|
|
70862
73687
|
_mj__UpdatedAt;
|
|
73688
|
+
VariablesSchema;
|
|
70863
73689
|
MJ_TestRubrics_TypeIDArray;
|
|
70864
73690
|
MJ_Tests_TypeIDArray;
|
|
70865
73691
|
};
|
|
@@ -70897,6 +73723,10 @@ __decorate([
|
|
|
70897
73723
|
MaxLength(10),
|
|
70898
73724
|
__metadata("design:type", Date)
|
|
70899
73725
|
], MJTestType_.prototype, "_mj__UpdatedAt", void 0);
|
|
73726
|
+
__decorate([
|
|
73727
|
+
Field({ nullable: true, description: `JSON schema defining the variables available for tests of this type. Contains schemaVersion and array of variable definitions with name, displayName, description, dataType, valueSource, possibleValues, defaultValue, and required fields.` }),
|
|
73728
|
+
__metadata("design:type", String)
|
|
73729
|
+
], MJTestType_.prototype, "VariablesSchema", void 0);
|
|
70900
73730
|
__decorate([
|
|
70901
73731
|
Field(() => [MJTestRubric_]),
|
|
70902
73732
|
__metadata("design:type", Array)
|
|
@@ -70915,6 +73745,7 @@ let CreateMJTestTypeInput = class CreateMJTestTypeInput {
|
|
|
70915
73745
|
Description;
|
|
70916
73746
|
DriverClass;
|
|
70917
73747
|
Status;
|
|
73748
|
+
VariablesSchema;
|
|
70918
73749
|
};
|
|
70919
73750
|
__decorate([
|
|
70920
73751
|
Field({ nullable: true }),
|
|
@@ -70936,6 +73767,10 @@ __decorate([
|
|
|
70936
73767
|
Field({ nullable: true }),
|
|
70937
73768
|
__metadata("design:type", String)
|
|
70938
73769
|
], CreateMJTestTypeInput.prototype, "Status", void 0);
|
|
73770
|
+
__decorate([
|
|
73771
|
+
Field({ nullable: true }),
|
|
73772
|
+
__metadata("design:type", String)
|
|
73773
|
+
], CreateMJTestTypeInput.prototype, "VariablesSchema", void 0);
|
|
70939
73774
|
CreateMJTestTypeInput = __decorate([
|
|
70940
73775
|
InputType()
|
|
70941
73776
|
], CreateMJTestTypeInput);
|
|
@@ -70946,6 +73781,7 @@ let UpdateMJTestTypeInput = class UpdateMJTestTypeInput {
|
|
|
70946
73781
|
Description;
|
|
70947
73782
|
DriverClass;
|
|
70948
73783
|
Status;
|
|
73784
|
+
VariablesSchema;
|
|
70949
73785
|
OldValues___;
|
|
70950
73786
|
};
|
|
70951
73787
|
__decorate([
|
|
@@ -70968,6 +73804,10 @@ __decorate([
|
|
|
70968
73804
|
Field({ nullable: true }),
|
|
70969
73805
|
__metadata("design:type", String)
|
|
70970
73806
|
], UpdateMJTestTypeInput.prototype, "Status", void 0);
|
|
73807
|
+
__decorate([
|
|
73808
|
+
Field({ nullable: true }),
|
|
73809
|
+
__metadata("design:type", String)
|
|
73810
|
+
], UpdateMJTestTypeInput.prototype, "VariablesSchema", void 0);
|
|
70971
73811
|
__decorate([
|
|
70972
73812
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
70973
73813
|
__metadata("design:type", Array)
|
|
@@ -71175,6 +74015,7 @@ let MJTest_ = class MJTest_ {
|
|
|
71175
74015
|
_mj__UpdatedAt;
|
|
71176
74016
|
RepeatCount;
|
|
71177
74017
|
MaxExecutionTimeMS;
|
|
74018
|
+
Variables;
|
|
71178
74019
|
Type;
|
|
71179
74020
|
MJ_TestRuns_TestIDArray;
|
|
71180
74021
|
MJ_TestSuiteTests_TestIDArray;
|
|
@@ -71249,6 +74090,10 @@ __decorate([
|
|
|
71249
74090
|
Field(() => Int, { nullable: true, description: `Maximum execution time in milliseconds for this test. If NULL, uses default (300000ms = 5 minutes). Can be overridden by Configuration JSON maxExecutionTime field for backward compatibility.` }),
|
|
71250
74091
|
__metadata("design:type", Number)
|
|
71251
74092
|
], MJTest_.prototype, "MaxExecutionTimeMS", void 0);
|
|
74093
|
+
__decorate([
|
|
74094
|
+
Field({ nullable: true, description: `JSON configuration for which test type variables are exposed by this test, along with test-level defaults, locks, and value restrictions. References variables defined in the parent TestType.VariablesSchema.` }),
|
|
74095
|
+
__metadata("design:type", String)
|
|
74096
|
+
], MJTest_.prototype, "Variables", void 0);
|
|
71252
74097
|
__decorate([
|
|
71253
74098
|
Field(),
|
|
71254
74099
|
MaxLength(200),
|
|
@@ -71281,6 +74126,7 @@ let CreateMJTestInput = class CreateMJTestInput {
|
|
|
71281
74126
|
EstimatedCostUSD;
|
|
71282
74127
|
RepeatCount;
|
|
71283
74128
|
MaxExecutionTimeMS;
|
|
74129
|
+
Variables;
|
|
71284
74130
|
};
|
|
71285
74131
|
__decorate([
|
|
71286
74132
|
Field({ nullable: true }),
|
|
@@ -71338,6 +74184,10 @@ __decorate([
|
|
|
71338
74184
|
Field(() => Int, { nullable: true }),
|
|
71339
74185
|
__metadata("design:type", Number)
|
|
71340
74186
|
], CreateMJTestInput.prototype, "MaxExecutionTimeMS", void 0);
|
|
74187
|
+
__decorate([
|
|
74188
|
+
Field({ nullable: true }),
|
|
74189
|
+
__metadata("design:type", String)
|
|
74190
|
+
], CreateMJTestInput.prototype, "Variables", void 0);
|
|
71341
74191
|
CreateMJTestInput = __decorate([
|
|
71342
74192
|
InputType()
|
|
71343
74193
|
], CreateMJTestInput);
|
|
@@ -71357,6 +74207,7 @@ let UpdateMJTestInput = class UpdateMJTestInput {
|
|
|
71357
74207
|
EstimatedCostUSD;
|
|
71358
74208
|
RepeatCount;
|
|
71359
74209
|
MaxExecutionTimeMS;
|
|
74210
|
+
Variables;
|
|
71360
74211
|
OldValues___;
|
|
71361
74212
|
};
|
|
71362
74213
|
__decorate([
|
|
@@ -71415,6 +74266,10 @@ __decorate([
|
|
|
71415
74266
|
Field(() => Int, { nullable: true }),
|
|
71416
74267
|
__metadata("design:type", Number)
|
|
71417
74268
|
], UpdateMJTestInput.prototype, "MaxExecutionTimeMS", void 0);
|
|
74269
|
+
__decorate([
|
|
74270
|
+
Field({ nullable: true }),
|
|
74271
|
+
__metadata("design:type", String)
|
|
74272
|
+
], UpdateMJTestInput.prototype, "Variables", void 0);
|
|
71418
74273
|
__decorate([
|
|
71419
74274
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
71420
74275
|
__metadata("design:type", Array)
|
|
@@ -88070,8 +90925,8 @@ let MJUser_ = class MJUser_ {
|
|
|
88070
90925
|
MJ_ReportUserStates_UserIDArray;
|
|
88071
90926
|
MJ_DashboardUserPreferences_UserIDArray;
|
|
88072
90927
|
MJ_DashboardUserStates_UserIDArray;
|
|
88073
|
-
MJ_PublicLinks_UserIDArray;
|
|
88074
90928
|
MJ_ArtifactVersions_UserIDArray;
|
|
90929
|
+
MJ_PublicLinks_UserIDArray;
|
|
88075
90930
|
MJ_ScheduledJobRuns_ExecutedByUserIDArray;
|
|
88076
90931
|
MJ_ScheduledJobs_NotifyUserIDArray;
|
|
88077
90932
|
MJ_ArtifactPermissions_UserIDArray;
|
|
@@ -88080,8 +90935,11 @@ let MJUser_ = class MJUser_ {
|
|
|
88080
90935
|
MJ_TestRunFeedbacks_ReviewerUserIDArray;
|
|
88081
90936
|
MJ_TestSuiteRuns_RunByUserIDArray;
|
|
88082
90937
|
MJ_UserSettings_UserIDArray;
|
|
88083
|
-
MJ_ListInvitations_CreatedByUserIDArray;
|
|
88084
90938
|
MJ_ListShares_UserIDArray;
|
|
90939
|
+
MJ_ListInvitations_CreatedByUserIDArray;
|
|
90940
|
+
MJ_DashboardCategoryLinks_UserIDArray;
|
|
90941
|
+
MJ_DashboardCategoryPermissions_UserIDArray;
|
|
90942
|
+
MJ_DashboardPermissions_SharedByUserIDArray;
|
|
88085
90943
|
ResourcePermissions_UserIDArray;
|
|
88086
90944
|
AIAgentRequests_RequestForUserIDArray;
|
|
88087
90945
|
ConversationDetails_UserIDArray;
|
|
@@ -88091,6 +90949,8 @@ let MJUser_ = class MJUser_ {
|
|
|
88091
90949
|
MJ_CollectionPermissions_SharedByUserIDArray;
|
|
88092
90950
|
MJ_ArtifactPermissions_SharedByUserIDArray;
|
|
88093
90951
|
MJ_TestRuns_RunByUserIDArray;
|
|
90952
|
+
MJ_DashboardPermissions_UserIDArray;
|
|
90953
|
+
MJ_DashboardCategoryPermissions_SharedByUserIDArray;
|
|
88094
90954
|
MJ_AIAgentRuns_UserIDArray;
|
|
88095
90955
|
MJ_AIAgentPermissions_UserIDArray;
|
|
88096
90956
|
MJ_Collections_OwnerIDArray;
|
|
@@ -88359,14 +91219,14 @@ __decorate([
|
|
|
88359
91219
|
Field(() => [MJDashboardUserState_]),
|
|
88360
91220
|
__metadata("design:type", Array)
|
|
88361
91221
|
], MJUser_.prototype, "MJ_DashboardUserStates_UserIDArray", void 0);
|
|
88362
|
-
__decorate([
|
|
88363
|
-
Field(() => [MJPublicLink_]),
|
|
88364
|
-
__metadata("design:type", Array)
|
|
88365
|
-
], MJUser_.prototype, "MJ_PublicLinks_UserIDArray", void 0);
|
|
88366
91222
|
__decorate([
|
|
88367
91223
|
Field(() => [MJArtifactVersion_]),
|
|
88368
91224
|
__metadata("design:type", Array)
|
|
88369
91225
|
], MJUser_.prototype, "MJ_ArtifactVersions_UserIDArray", void 0);
|
|
91226
|
+
__decorate([
|
|
91227
|
+
Field(() => [MJPublicLink_]),
|
|
91228
|
+
__metadata("design:type", Array)
|
|
91229
|
+
], MJUser_.prototype, "MJ_PublicLinks_UserIDArray", void 0);
|
|
88370
91230
|
__decorate([
|
|
88371
91231
|
Field(() => [MJScheduledJobRun_]),
|
|
88372
91232
|
__metadata("design:type", Array)
|
|
@@ -88399,14 +91259,26 @@ __decorate([
|
|
|
88399
91259
|
Field(() => [MJUserSetting_]),
|
|
88400
91260
|
__metadata("design:type", Array)
|
|
88401
91261
|
], MJUser_.prototype, "MJ_UserSettings_UserIDArray", void 0);
|
|
91262
|
+
__decorate([
|
|
91263
|
+
Field(() => [MJListShare_]),
|
|
91264
|
+
__metadata("design:type", Array)
|
|
91265
|
+
], MJUser_.prototype, "MJ_ListShares_UserIDArray", void 0);
|
|
88402
91266
|
__decorate([
|
|
88403
91267
|
Field(() => [MJListInvitation_]),
|
|
88404
91268
|
__metadata("design:type", Array)
|
|
88405
91269
|
], MJUser_.prototype, "MJ_ListInvitations_CreatedByUserIDArray", void 0);
|
|
88406
91270
|
__decorate([
|
|
88407
|
-
Field(() => [
|
|
91271
|
+
Field(() => [MJDashboardCategoryLink_]),
|
|
88408
91272
|
__metadata("design:type", Array)
|
|
88409
|
-
], MJUser_.prototype, "
|
|
91273
|
+
], MJUser_.prototype, "MJ_DashboardCategoryLinks_UserIDArray", void 0);
|
|
91274
|
+
__decorate([
|
|
91275
|
+
Field(() => [MJDashboardCategoryPermission_]),
|
|
91276
|
+
__metadata("design:type", Array)
|
|
91277
|
+
], MJUser_.prototype, "MJ_DashboardCategoryPermissions_UserIDArray", void 0);
|
|
91278
|
+
__decorate([
|
|
91279
|
+
Field(() => [MJDashboardPermission_]),
|
|
91280
|
+
__metadata("design:type", Array)
|
|
91281
|
+
], MJUser_.prototype, "MJ_DashboardPermissions_SharedByUserIDArray", void 0);
|
|
88410
91282
|
__decorate([
|
|
88411
91283
|
Field(() => [MJResourcePermission_]),
|
|
88412
91284
|
__metadata("design:type", Array)
|
|
@@ -88443,6 +91315,14 @@ __decorate([
|
|
|
88443
91315
|
Field(() => [MJTestRun_]),
|
|
88444
91316
|
__metadata("design:type", Array)
|
|
88445
91317
|
], MJUser_.prototype, "MJ_TestRuns_RunByUserIDArray", void 0);
|
|
91318
|
+
__decorate([
|
|
91319
|
+
Field(() => [MJDashboardPermission_]),
|
|
91320
|
+
__metadata("design:type", Array)
|
|
91321
|
+
], MJUser_.prototype, "MJ_DashboardPermissions_UserIDArray", void 0);
|
|
91322
|
+
__decorate([
|
|
91323
|
+
Field(() => [MJDashboardCategoryPermission_]),
|
|
91324
|
+
__metadata("design:type", Array)
|
|
91325
|
+
], MJUser_.prototype, "MJ_DashboardCategoryPermissions_SharedByUserIDArray", void 0);
|
|
88446
91326
|
__decorate([
|
|
88447
91327
|
Field(() => [MJAIAgentRun_]),
|
|
88448
91328
|
__metadata("design:type", Array)
|
|
@@ -89047,22 +91927,22 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
89047
91927
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User States', rows, this.GetUserFromPayload(userPayload));
|
|
89048
91928
|
return result;
|
|
89049
91929
|
}
|
|
89050
|
-
async
|
|
89051
|
-
this.CheckUserReadPermissions('MJ:
|
|
91930
|
+
async MJ_ArtifactVersions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
91931
|
+
this.CheckUserReadPermissions('MJ: Artifact Versions', userPayload);
|
|
89052
91932
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
89053
91933
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
89054
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
91934
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwArtifactVersions] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Artifact Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
89055
91935
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
89056
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
91936
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Artifact Versions', rows, this.GetUserFromPayload(userPayload));
|
|
89057
91937
|
return result;
|
|
89058
91938
|
}
|
|
89059
|
-
async
|
|
89060
|
-
this.CheckUserReadPermissions('MJ:
|
|
91939
|
+
async MJ_PublicLinks_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
91940
|
+
this.CheckUserReadPermissions('MJ: Public Links', userPayload);
|
|
89061
91941
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
89062
91942
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
89063
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
91943
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwPublicLinks] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Public Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
89064
91944
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
89065
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
91945
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Public Links', rows, this.GetUserFromPayload(userPayload));
|
|
89066
91946
|
return result;
|
|
89067
91947
|
}
|
|
89068
91948
|
async MJ_ScheduledJobRuns_ExecutedByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -89137,6 +92017,15 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
89137
92017
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: User Settings', rows, this.GetUserFromPayload(userPayload));
|
|
89138
92018
|
return result;
|
|
89139
92019
|
}
|
|
92020
|
+
async MJ_ListShares_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
92021
|
+
this.CheckUserReadPermissions('MJ: List Shares', userPayload);
|
|
92022
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
92023
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
92024
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListShares] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
|
|
92025
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
92026
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Shares', rows, this.GetUserFromPayload(userPayload));
|
|
92027
|
+
return result;
|
|
92028
|
+
}
|
|
89140
92029
|
async MJ_ListInvitations_CreatedByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
89141
92030
|
this.CheckUserReadPermissions('MJ: List Invitations', userPayload);
|
|
89142
92031
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -89146,13 +92035,31 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
89146
92035
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Invitations', rows, this.GetUserFromPayload(userPayload));
|
|
89147
92036
|
return result;
|
|
89148
92037
|
}
|
|
89149
|
-
async
|
|
89150
|
-
this.CheckUserReadPermissions('MJ:
|
|
92038
|
+
async MJ_DashboardCategoryLinks_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
92039
|
+
this.CheckUserReadPermissions('MJ: Dashboard Category Links', userPayload);
|
|
89151
92040
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
89152
92041
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
89153
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
92042
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardCategoryLinks] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
89154
92043
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
89155
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
92044
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard Category Links', rows, this.GetUserFromPayload(userPayload));
|
|
92045
|
+
return result;
|
|
92046
|
+
}
|
|
92047
|
+
async MJ_DashboardCategoryPermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
92048
|
+
this.CheckUserReadPermissions('MJ: Dashboard Category Permissions', userPayload);
|
|
92049
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
92050
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
92051
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardCategoryPermissions] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
92052
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
92053
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard Category Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
92054
|
+
return result;
|
|
92055
|
+
}
|
|
92056
|
+
async MJ_DashboardPermissions_SharedByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
92057
|
+
this.CheckUserReadPermissions('MJ: Dashboard Permissions', userPayload);
|
|
92058
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
92059
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
92060
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardPermissions] WHERE [SharedByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
92061
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
92062
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
89156
92063
|
return result;
|
|
89157
92064
|
}
|
|
89158
92065
|
async ResourcePermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -89236,6 +92143,24 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
89236
92143
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Test Runs', rows, this.GetUserFromPayload(userPayload));
|
|
89237
92144
|
return result;
|
|
89238
92145
|
}
|
|
92146
|
+
async MJ_DashboardPermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
92147
|
+
this.CheckUserReadPermissions('MJ: Dashboard Permissions', userPayload);
|
|
92148
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
92149
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
92150
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardPermissions] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
92151
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
92152
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
92153
|
+
return result;
|
|
92154
|
+
}
|
|
92155
|
+
async MJ_DashboardCategoryPermissions_SharedByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
92156
|
+
this.CheckUserReadPermissions('MJ: Dashboard Category Permissions', userPayload);
|
|
92157
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
92158
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
92159
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardCategoryPermissions] WHERE [SharedByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard Category Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
92160
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
92161
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard Category Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
92162
|
+
return result;
|
|
92163
|
+
}
|
|
89239
92164
|
async MJ_AIAgentRuns_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
89240
92165
|
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
89241
92166
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -89700,23 +92625,23 @@ __decorate([
|
|
|
89700
92625
|
__metadata("design:returntype", Promise)
|
|
89701
92626
|
], MJUserResolverBase.prototype, "MJ_DashboardUserStates_UserIDArray", null);
|
|
89702
92627
|
__decorate([
|
|
89703
|
-
FieldResolver(() => [
|
|
92628
|
+
FieldResolver(() => [MJArtifactVersion_]),
|
|
89704
92629
|
__param(0, Root()),
|
|
89705
92630
|
__param(1, Ctx()),
|
|
89706
92631
|
__param(2, PubSub()),
|
|
89707
92632
|
__metadata("design:type", Function),
|
|
89708
92633
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
89709
92634
|
__metadata("design:returntype", Promise)
|
|
89710
|
-
], MJUserResolverBase.prototype, "
|
|
92635
|
+
], MJUserResolverBase.prototype, "MJ_ArtifactVersions_UserIDArray", null);
|
|
89711
92636
|
__decorate([
|
|
89712
|
-
FieldResolver(() => [
|
|
92637
|
+
FieldResolver(() => [MJPublicLink_]),
|
|
89713
92638
|
__param(0, Root()),
|
|
89714
92639
|
__param(1, Ctx()),
|
|
89715
92640
|
__param(2, PubSub()),
|
|
89716
92641
|
__metadata("design:type", Function),
|
|
89717
92642
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
89718
92643
|
__metadata("design:returntype", Promise)
|
|
89719
|
-
], MJUserResolverBase.prototype, "
|
|
92644
|
+
], MJUserResolverBase.prototype, "MJ_PublicLinks_UserIDArray", null);
|
|
89720
92645
|
__decorate([
|
|
89721
92646
|
FieldResolver(() => [MJScheduledJobRun_]),
|
|
89722
92647
|
__param(0, Root()),
|
|
@@ -89789,6 +92714,15 @@ __decorate([
|
|
|
89789
92714
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
89790
92715
|
__metadata("design:returntype", Promise)
|
|
89791
92716
|
], MJUserResolverBase.prototype, "MJ_UserSettings_UserIDArray", null);
|
|
92717
|
+
__decorate([
|
|
92718
|
+
FieldResolver(() => [MJListShare_]),
|
|
92719
|
+
__param(0, Root()),
|
|
92720
|
+
__param(1, Ctx()),
|
|
92721
|
+
__param(2, PubSub()),
|
|
92722
|
+
__metadata("design:type", Function),
|
|
92723
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
92724
|
+
__metadata("design:returntype", Promise)
|
|
92725
|
+
], MJUserResolverBase.prototype, "MJ_ListShares_UserIDArray", null);
|
|
89792
92726
|
__decorate([
|
|
89793
92727
|
FieldResolver(() => [MJListInvitation_]),
|
|
89794
92728
|
__param(0, Root()),
|
|
@@ -89799,14 +92733,32 @@ __decorate([
|
|
|
89799
92733
|
__metadata("design:returntype", Promise)
|
|
89800
92734
|
], MJUserResolverBase.prototype, "MJ_ListInvitations_CreatedByUserIDArray", null);
|
|
89801
92735
|
__decorate([
|
|
89802
|
-
FieldResolver(() => [
|
|
92736
|
+
FieldResolver(() => [MJDashboardCategoryLink_]),
|
|
89803
92737
|
__param(0, Root()),
|
|
89804
92738
|
__param(1, Ctx()),
|
|
89805
92739
|
__param(2, PubSub()),
|
|
89806
92740
|
__metadata("design:type", Function),
|
|
89807
92741
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
89808
92742
|
__metadata("design:returntype", Promise)
|
|
89809
|
-
], MJUserResolverBase.prototype, "
|
|
92743
|
+
], MJUserResolverBase.prototype, "MJ_DashboardCategoryLinks_UserIDArray", null);
|
|
92744
|
+
__decorate([
|
|
92745
|
+
FieldResolver(() => [MJDashboardCategoryPermission_]),
|
|
92746
|
+
__param(0, Root()),
|
|
92747
|
+
__param(1, Ctx()),
|
|
92748
|
+
__param(2, PubSub()),
|
|
92749
|
+
__metadata("design:type", Function),
|
|
92750
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
92751
|
+
__metadata("design:returntype", Promise)
|
|
92752
|
+
], MJUserResolverBase.prototype, "MJ_DashboardCategoryPermissions_UserIDArray", null);
|
|
92753
|
+
__decorate([
|
|
92754
|
+
FieldResolver(() => [MJDashboardPermission_]),
|
|
92755
|
+
__param(0, Root()),
|
|
92756
|
+
__param(1, Ctx()),
|
|
92757
|
+
__param(2, PubSub()),
|
|
92758
|
+
__metadata("design:type", Function),
|
|
92759
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
92760
|
+
__metadata("design:returntype", Promise)
|
|
92761
|
+
], MJUserResolverBase.prototype, "MJ_DashboardPermissions_SharedByUserIDArray", null);
|
|
89810
92762
|
__decorate([
|
|
89811
92763
|
FieldResolver(() => [MJResourcePermission_]),
|
|
89812
92764
|
__param(0, Root()),
|
|
@@ -89888,6 +92840,24 @@ __decorate([
|
|
|
89888
92840
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
89889
92841
|
__metadata("design:returntype", Promise)
|
|
89890
92842
|
], MJUserResolverBase.prototype, "MJ_TestRuns_RunByUserIDArray", null);
|
|
92843
|
+
__decorate([
|
|
92844
|
+
FieldResolver(() => [MJDashboardPermission_]),
|
|
92845
|
+
__param(0, Root()),
|
|
92846
|
+
__param(1, Ctx()),
|
|
92847
|
+
__param(2, PubSub()),
|
|
92848
|
+
__metadata("design:type", Function),
|
|
92849
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
92850
|
+
__metadata("design:returntype", Promise)
|
|
92851
|
+
], MJUserResolverBase.prototype, "MJ_DashboardPermissions_UserIDArray", null);
|
|
92852
|
+
__decorate([
|
|
92853
|
+
FieldResolver(() => [MJDashboardCategoryPermission_]),
|
|
92854
|
+
__param(0, Root()),
|
|
92855
|
+
__param(1, Ctx()),
|
|
92856
|
+
__param(2, PubSub()),
|
|
92857
|
+
__metadata("design:type", Function),
|
|
92858
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
92859
|
+
__metadata("design:returntype", Promise)
|
|
92860
|
+
], MJUserResolverBase.prototype, "MJ_DashboardCategoryPermissions_SharedByUserIDArray", null);
|
|
89891
92861
|
__decorate([
|
|
89892
92862
|
FieldResolver(() => [MJAIAgentRun_]),
|
|
89893
92863
|
__param(0, Root()),
|