@memberjunction/server 2.131.0 → 2.133.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.
|
@@ -39763,6 +39763,8 @@ let MJList_ = class MJList_ {
|
|
|
39763
39763
|
CompanyIntegration;
|
|
39764
39764
|
ListDetails_ListIDArray;
|
|
39765
39765
|
DuplicateRuns_SourceListIDArray;
|
|
39766
|
+
MJ_ListShares_ListIDArray;
|
|
39767
|
+
MJ_ListInvitations_ListIDArray;
|
|
39766
39768
|
};
|
|
39767
39769
|
__decorate([
|
|
39768
39770
|
Field(),
|
|
@@ -39841,6 +39843,14 @@ __decorate([
|
|
|
39841
39843
|
Field(() => [MJDuplicateRun_]),
|
|
39842
39844
|
__metadata("design:type", Array)
|
|
39843
39845
|
], MJList_.prototype, "DuplicateRuns_SourceListIDArray", void 0);
|
|
39846
|
+
__decorate([
|
|
39847
|
+
Field(() => [MJListShare_]),
|
|
39848
|
+
__metadata("design:type", Array)
|
|
39849
|
+
], MJList_.prototype, "MJ_ListShares_ListIDArray", void 0);
|
|
39850
|
+
__decorate([
|
|
39851
|
+
Field(() => [MJListInvitation_]),
|
|
39852
|
+
__metadata("design:type", Array)
|
|
39853
|
+
], MJList_.prototype, "MJ_ListInvitations_ListIDArray", void 0);
|
|
39844
39854
|
MJList_ = __decorate([
|
|
39845
39855
|
ObjectType({ description: `Static lists are useful for controlling a set of data for a given entity. These can be used programatically for applications like logging and tracking long-running tasks and also by end users for tracking any particular list of records they want to directly control the set.` })
|
|
39846
39856
|
], MJList_);
|
|
@@ -40024,6 +40034,24 @@ let MJListResolver = class MJListResolver extends ResolverBase {
|
|
|
40024
40034
|
const result = await this.ArrayMapFieldNamesToCodeNames('Duplicate Runs', rows, this.GetUserFromPayload(userPayload));
|
|
40025
40035
|
return result;
|
|
40026
40036
|
}
|
|
40037
|
+
async MJ_ListShares_ListIDArray(mjlist_, { dataSources, userPayload, providers }, pubSub) {
|
|
40038
|
+
this.CheckUserReadPermissions('MJ: List Shares', userPayload);
|
|
40039
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40040
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
40041
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListShares] WHERE [ListID]='${mjlist_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
|
|
40042
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
40043
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Shares', rows, this.GetUserFromPayload(userPayload));
|
|
40044
|
+
return result;
|
|
40045
|
+
}
|
|
40046
|
+
async MJ_ListInvitations_ListIDArray(mjlist_, { dataSources, userPayload, providers }, pubSub) {
|
|
40047
|
+
this.CheckUserReadPermissions('MJ: List Invitations', userPayload);
|
|
40048
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
40049
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
40050
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListInvitations] WHERE [ListID]='${mjlist_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Invitations', userPayload, EntityPermissionType.Read, 'AND');
|
|
40051
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
40052
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Invitations', rows, this.GetUserFromPayload(userPayload));
|
|
40053
|
+
return result;
|
|
40054
|
+
}
|
|
40027
40055
|
async CreateMJList(input, { providers, userPayload }, pubSub) {
|
|
40028
40056
|
const provider = GetReadWriteProvider(providers);
|
|
40029
40057
|
return this.CreateRecord('Lists', input, provider, userPayload, pubSub);
|
|
@@ -40092,6 +40120,24 @@ __decorate([
|
|
|
40092
40120
|
__metadata("design:paramtypes", [MJList_, Object, PubSubEngine]),
|
|
40093
40121
|
__metadata("design:returntype", Promise)
|
|
40094
40122
|
], MJListResolver.prototype, "DuplicateRuns_SourceListIDArray", null);
|
|
40123
|
+
__decorate([
|
|
40124
|
+
FieldResolver(() => [MJListShare_]),
|
|
40125
|
+
__param(0, Root()),
|
|
40126
|
+
__param(1, Ctx()),
|
|
40127
|
+
__param(2, PubSub()),
|
|
40128
|
+
__metadata("design:type", Function),
|
|
40129
|
+
__metadata("design:paramtypes", [MJList_, Object, PubSubEngine]),
|
|
40130
|
+
__metadata("design:returntype", Promise)
|
|
40131
|
+
], MJListResolver.prototype, "MJ_ListShares_ListIDArray", null);
|
|
40132
|
+
__decorate([
|
|
40133
|
+
FieldResolver(() => [MJListInvitation_]),
|
|
40134
|
+
__param(0, Root()),
|
|
40135
|
+
__param(1, Ctx()),
|
|
40136
|
+
__param(2, PubSub()),
|
|
40137
|
+
__metadata("design:type", Function),
|
|
40138
|
+
__metadata("design:paramtypes", [MJList_, Object, PubSubEngine]),
|
|
40139
|
+
__metadata("design:returntype", Promise)
|
|
40140
|
+
], MJListResolver.prototype, "MJ_ListInvitations_ListIDArray", null);
|
|
40095
40141
|
__decorate([
|
|
40096
40142
|
Mutation(() => MJList_),
|
|
40097
40143
|
__param(0, Arg('input', () => CreateMJListInput)),
|
|
@@ -63070,6 +63116,600 @@ MJEnvironmentResolver = __decorate([
|
|
|
63070
63116
|
Resolver(MJEnvironment_)
|
|
63071
63117
|
], MJEnvironmentResolver);
|
|
63072
63118
|
export { MJEnvironmentResolver };
|
|
63119
|
+
let MJListInvitation_ = class MJListInvitation_ {
|
|
63120
|
+
ID;
|
|
63121
|
+
ListID;
|
|
63122
|
+
Email;
|
|
63123
|
+
Role;
|
|
63124
|
+
Token;
|
|
63125
|
+
ExpiresAt;
|
|
63126
|
+
CreatedByUserID;
|
|
63127
|
+
Status;
|
|
63128
|
+
_mj__CreatedAt;
|
|
63129
|
+
_mj__UpdatedAt;
|
|
63130
|
+
List;
|
|
63131
|
+
CreatedByUser;
|
|
63132
|
+
};
|
|
63133
|
+
__decorate([
|
|
63134
|
+
Field({ description: `Unique identifier for the invitation.` }),
|
|
63135
|
+
MaxLength(16),
|
|
63136
|
+
__metadata("design:type", String)
|
|
63137
|
+
], MJListInvitation_.prototype, "ID", void 0);
|
|
63138
|
+
__decorate([
|
|
63139
|
+
Field({ description: `The list the user is being invited to.` }),
|
|
63140
|
+
MaxLength(16),
|
|
63141
|
+
__metadata("design:type", String)
|
|
63142
|
+
], MJListInvitation_.prototype, "ListID", void 0);
|
|
63143
|
+
__decorate([
|
|
63144
|
+
Field({ description: `Email address of the invitee.` }),
|
|
63145
|
+
MaxLength(510),
|
|
63146
|
+
__metadata("design:type", String)
|
|
63147
|
+
], MJListInvitation_.prototype, "Email", void 0);
|
|
63148
|
+
__decorate([
|
|
63149
|
+
Field({ description: `The role to be assigned upon acceptance (Editor or Viewer).` }),
|
|
63150
|
+
MaxLength(100),
|
|
63151
|
+
__metadata("design:type", String)
|
|
63152
|
+
], MJListInvitation_.prototype, "Role", void 0);
|
|
63153
|
+
__decorate([
|
|
63154
|
+
Field({ description: `Security token for validating the invitation.` }),
|
|
63155
|
+
MaxLength(200),
|
|
63156
|
+
__metadata("design:type", String)
|
|
63157
|
+
], MJListInvitation_.prototype, "Token", void 0);
|
|
63158
|
+
__decorate([
|
|
63159
|
+
Field({ description: `When the invitation expires.` }),
|
|
63160
|
+
MaxLength(8),
|
|
63161
|
+
__metadata("design:type", Date)
|
|
63162
|
+
], MJListInvitation_.prototype, "ExpiresAt", void 0);
|
|
63163
|
+
__decorate([
|
|
63164
|
+
Field({ description: `The user who created the invitation.` }),
|
|
63165
|
+
MaxLength(16),
|
|
63166
|
+
__metadata("design:type", String)
|
|
63167
|
+
], MJListInvitation_.prototype, "CreatedByUserID", void 0);
|
|
63168
|
+
__decorate([
|
|
63169
|
+
Field({ description: `Status of the invitation (Pending, Accepted, Expired, Revoked).` }),
|
|
63170
|
+
MaxLength(40),
|
|
63171
|
+
__metadata("design:type", String)
|
|
63172
|
+
], MJListInvitation_.prototype, "Status", void 0);
|
|
63173
|
+
__decorate([
|
|
63174
|
+
Field(),
|
|
63175
|
+
MaxLength(10),
|
|
63176
|
+
__metadata("design:type", Date)
|
|
63177
|
+
], MJListInvitation_.prototype, "_mj__CreatedAt", void 0);
|
|
63178
|
+
__decorate([
|
|
63179
|
+
Field(),
|
|
63180
|
+
MaxLength(10),
|
|
63181
|
+
__metadata("design:type", Date)
|
|
63182
|
+
], MJListInvitation_.prototype, "_mj__UpdatedAt", void 0);
|
|
63183
|
+
__decorate([
|
|
63184
|
+
Field(),
|
|
63185
|
+
MaxLength(200),
|
|
63186
|
+
__metadata("design:type", String)
|
|
63187
|
+
], MJListInvitation_.prototype, "List", void 0);
|
|
63188
|
+
__decorate([
|
|
63189
|
+
Field(),
|
|
63190
|
+
MaxLength(200),
|
|
63191
|
+
__metadata("design:type", String)
|
|
63192
|
+
], MJListInvitation_.prototype, "CreatedByUser", void 0);
|
|
63193
|
+
MJListInvitation_ = __decorate([
|
|
63194
|
+
ObjectType({ description: `Tracks pending invitations for users to access lists, including external users via email.` })
|
|
63195
|
+
], MJListInvitation_);
|
|
63196
|
+
export { MJListInvitation_ };
|
|
63197
|
+
let CreateMJListInvitationInput = class CreateMJListInvitationInput {
|
|
63198
|
+
ID;
|
|
63199
|
+
ListID;
|
|
63200
|
+
Email;
|
|
63201
|
+
Role;
|
|
63202
|
+
Token;
|
|
63203
|
+
ExpiresAt;
|
|
63204
|
+
CreatedByUserID;
|
|
63205
|
+
Status;
|
|
63206
|
+
};
|
|
63207
|
+
__decorate([
|
|
63208
|
+
Field({ nullable: true }),
|
|
63209
|
+
__metadata("design:type", String)
|
|
63210
|
+
], CreateMJListInvitationInput.prototype, "ID", void 0);
|
|
63211
|
+
__decorate([
|
|
63212
|
+
Field({ nullable: true }),
|
|
63213
|
+
__metadata("design:type", String)
|
|
63214
|
+
], CreateMJListInvitationInput.prototype, "ListID", void 0);
|
|
63215
|
+
__decorate([
|
|
63216
|
+
Field({ nullable: true }),
|
|
63217
|
+
__metadata("design:type", String)
|
|
63218
|
+
], CreateMJListInvitationInput.prototype, "Email", void 0);
|
|
63219
|
+
__decorate([
|
|
63220
|
+
Field({ nullable: true }),
|
|
63221
|
+
__metadata("design:type", String)
|
|
63222
|
+
], CreateMJListInvitationInput.prototype, "Role", void 0);
|
|
63223
|
+
__decorate([
|
|
63224
|
+
Field({ nullable: true }),
|
|
63225
|
+
__metadata("design:type", String)
|
|
63226
|
+
], CreateMJListInvitationInput.prototype, "Token", void 0);
|
|
63227
|
+
__decorate([
|
|
63228
|
+
Field({ nullable: true }),
|
|
63229
|
+
__metadata("design:type", Date)
|
|
63230
|
+
], CreateMJListInvitationInput.prototype, "ExpiresAt", void 0);
|
|
63231
|
+
__decorate([
|
|
63232
|
+
Field({ nullable: true }),
|
|
63233
|
+
__metadata("design:type", String)
|
|
63234
|
+
], CreateMJListInvitationInput.prototype, "CreatedByUserID", void 0);
|
|
63235
|
+
__decorate([
|
|
63236
|
+
Field({ nullable: true }),
|
|
63237
|
+
__metadata("design:type", String)
|
|
63238
|
+
], CreateMJListInvitationInput.prototype, "Status", void 0);
|
|
63239
|
+
CreateMJListInvitationInput = __decorate([
|
|
63240
|
+
InputType()
|
|
63241
|
+
], CreateMJListInvitationInput);
|
|
63242
|
+
export { CreateMJListInvitationInput };
|
|
63243
|
+
let UpdateMJListInvitationInput = class UpdateMJListInvitationInput {
|
|
63244
|
+
ID;
|
|
63245
|
+
ListID;
|
|
63246
|
+
Email;
|
|
63247
|
+
Role;
|
|
63248
|
+
Token;
|
|
63249
|
+
ExpiresAt;
|
|
63250
|
+
CreatedByUserID;
|
|
63251
|
+
Status;
|
|
63252
|
+
OldValues___;
|
|
63253
|
+
};
|
|
63254
|
+
__decorate([
|
|
63255
|
+
Field(),
|
|
63256
|
+
__metadata("design:type", String)
|
|
63257
|
+
], UpdateMJListInvitationInput.prototype, "ID", void 0);
|
|
63258
|
+
__decorate([
|
|
63259
|
+
Field({ nullable: true }),
|
|
63260
|
+
__metadata("design:type", String)
|
|
63261
|
+
], UpdateMJListInvitationInput.prototype, "ListID", void 0);
|
|
63262
|
+
__decorate([
|
|
63263
|
+
Field({ nullable: true }),
|
|
63264
|
+
__metadata("design:type", String)
|
|
63265
|
+
], UpdateMJListInvitationInput.prototype, "Email", void 0);
|
|
63266
|
+
__decorate([
|
|
63267
|
+
Field({ nullable: true }),
|
|
63268
|
+
__metadata("design:type", String)
|
|
63269
|
+
], UpdateMJListInvitationInput.prototype, "Role", void 0);
|
|
63270
|
+
__decorate([
|
|
63271
|
+
Field({ nullable: true }),
|
|
63272
|
+
__metadata("design:type", String)
|
|
63273
|
+
], UpdateMJListInvitationInput.prototype, "Token", void 0);
|
|
63274
|
+
__decorate([
|
|
63275
|
+
Field({ nullable: true }),
|
|
63276
|
+
__metadata("design:type", Date)
|
|
63277
|
+
], UpdateMJListInvitationInput.prototype, "ExpiresAt", void 0);
|
|
63278
|
+
__decorate([
|
|
63279
|
+
Field({ nullable: true }),
|
|
63280
|
+
__metadata("design:type", String)
|
|
63281
|
+
], UpdateMJListInvitationInput.prototype, "CreatedByUserID", void 0);
|
|
63282
|
+
__decorate([
|
|
63283
|
+
Field({ nullable: true }),
|
|
63284
|
+
__metadata("design:type", String)
|
|
63285
|
+
], UpdateMJListInvitationInput.prototype, "Status", void 0);
|
|
63286
|
+
__decorate([
|
|
63287
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
63288
|
+
__metadata("design:type", Array)
|
|
63289
|
+
], UpdateMJListInvitationInput.prototype, "OldValues___", void 0);
|
|
63290
|
+
UpdateMJListInvitationInput = __decorate([
|
|
63291
|
+
InputType()
|
|
63292
|
+
], UpdateMJListInvitationInput);
|
|
63293
|
+
export { UpdateMJListInvitationInput };
|
|
63294
|
+
let RunMJListInvitationViewResult = class RunMJListInvitationViewResult {
|
|
63295
|
+
Results;
|
|
63296
|
+
UserViewRunID;
|
|
63297
|
+
RowCount;
|
|
63298
|
+
TotalRowCount;
|
|
63299
|
+
ExecutionTime;
|
|
63300
|
+
ErrorMessage;
|
|
63301
|
+
Success;
|
|
63302
|
+
};
|
|
63303
|
+
__decorate([
|
|
63304
|
+
Field(() => [MJListInvitation_]),
|
|
63305
|
+
__metadata("design:type", Array)
|
|
63306
|
+
], RunMJListInvitationViewResult.prototype, "Results", void 0);
|
|
63307
|
+
__decorate([
|
|
63308
|
+
Field(() => String, { nullable: true }),
|
|
63309
|
+
__metadata("design:type", String)
|
|
63310
|
+
], RunMJListInvitationViewResult.prototype, "UserViewRunID", void 0);
|
|
63311
|
+
__decorate([
|
|
63312
|
+
Field(() => Int, { nullable: true }),
|
|
63313
|
+
__metadata("design:type", Number)
|
|
63314
|
+
], RunMJListInvitationViewResult.prototype, "RowCount", void 0);
|
|
63315
|
+
__decorate([
|
|
63316
|
+
Field(() => Int, { nullable: true }),
|
|
63317
|
+
__metadata("design:type", Number)
|
|
63318
|
+
], RunMJListInvitationViewResult.prototype, "TotalRowCount", void 0);
|
|
63319
|
+
__decorate([
|
|
63320
|
+
Field(() => Int, { nullable: true }),
|
|
63321
|
+
__metadata("design:type", Number)
|
|
63322
|
+
], RunMJListInvitationViewResult.prototype, "ExecutionTime", void 0);
|
|
63323
|
+
__decorate([
|
|
63324
|
+
Field({ nullable: true }),
|
|
63325
|
+
__metadata("design:type", String)
|
|
63326
|
+
], RunMJListInvitationViewResult.prototype, "ErrorMessage", void 0);
|
|
63327
|
+
__decorate([
|
|
63328
|
+
Field(() => Boolean, { nullable: false }),
|
|
63329
|
+
__metadata("design:type", Boolean)
|
|
63330
|
+
], RunMJListInvitationViewResult.prototype, "Success", void 0);
|
|
63331
|
+
RunMJListInvitationViewResult = __decorate([
|
|
63332
|
+
ObjectType()
|
|
63333
|
+
], RunMJListInvitationViewResult);
|
|
63334
|
+
export { RunMJListInvitationViewResult };
|
|
63335
|
+
let MJListInvitationResolver = class MJListInvitationResolver extends ResolverBase {
|
|
63336
|
+
async RunMJListInvitationViewByID(input, { providers, userPayload }, pubSub) {
|
|
63337
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63338
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
63339
|
+
}
|
|
63340
|
+
async RunMJListInvitationViewByName(input, { providers, userPayload }, pubSub) {
|
|
63341
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63342
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
63343
|
+
}
|
|
63344
|
+
async RunMJListInvitationDynamicView(input, { providers, userPayload }, pubSub) {
|
|
63345
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63346
|
+
input.EntityName = 'MJ: List Invitations';
|
|
63347
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
63348
|
+
}
|
|
63349
|
+
async MJListInvitation(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
63350
|
+
this.CheckUserReadPermissions('MJ: List Invitations', userPayload);
|
|
63351
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63352
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
63353
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListInvitations] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Invitations', userPayload, EntityPermissionType.Read, 'AND');
|
|
63354
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
63355
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Invitations', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
63356
|
+
return result;
|
|
63357
|
+
}
|
|
63358
|
+
async CreateMJListInvitation(input, { providers, userPayload }, pubSub) {
|
|
63359
|
+
const provider = GetReadWriteProvider(providers);
|
|
63360
|
+
return this.CreateRecord('MJ: List Invitations', input, provider, userPayload, pubSub);
|
|
63361
|
+
}
|
|
63362
|
+
async UpdateMJListInvitation(input, { providers, userPayload }, pubSub) {
|
|
63363
|
+
const provider = GetReadWriteProvider(providers);
|
|
63364
|
+
return this.UpdateRecord('MJ: List Invitations', input, provider, userPayload, pubSub);
|
|
63365
|
+
}
|
|
63366
|
+
async DeleteMJListInvitation(ID, options, { providers, userPayload }, pubSub) {
|
|
63367
|
+
const provider = GetReadWriteProvider(providers);
|
|
63368
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
63369
|
+
return this.DeleteRecord('MJ: List Invitations', key, options, provider, userPayload, pubSub);
|
|
63370
|
+
}
|
|
63371
|
+
};
|
|
63372
|
+
__decorate([
|
|
63373
|
+
Query(() => RunMJListInvitationViewResult),
|
|
63374
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
63375
|
+
__param(1, Ctx()),
|
|
63376
|
+
__param(2, PubSub()),
|
|
63377
|
+
__metadata("design:type", Function),
|
|
63378
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
63379
|
+
__metadata("design:returntype", Promise)
|
|
63380
|
+
], MJListInvitationResolver.prototype, "RunMJListInvitationViewByID", null);
|
|
63381
|
+
__decorate([
|
|
63382
|
+
Query(() => RunMJListInvitationViewResult),
|
|
63383
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
63384
|
+
__param(1, Ctx()),
|
|
63385
|
+
__param(2, PubSub()),
|
|
63386
|
+
__metadata("design:type", Function),
|
|
63387
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
63388
|
+
__metadata("design:returntype", Promise)
|
|
63389
|
+
], MJListInvitationResolver.prototype, "RunMJListInvitationViewByName", null);
|
|
63390
|
+
__decorate([
|
|
63391
|
+
Query(() => RunMJListInvitationViewResult),
|
|
63392
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
63393
|
+
__param(1, Ctx()),
|
|
63394
|
+
__param(2, PubSub()),
|
|
63395
|
+
__metadata("design:type", Function),
|
|
63396
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
63397
|
+
__metadata("design:returntype", Promise)
|
|
63398
|
+
], MJListInvitationResolver.prototype, "RunMJListInvitationDynamicView", null);
|
|
63399
|
+
__decorate([
|
|
63400
|
+
Query(() => MJListInvitation_, { nullable: true }),
|
|
63401
|
+
__param(0, Arg('ID', () => String)),
|
|
63402
|
+
__param(1, Ctx()),
|
|
63403
|
+
__param(2, PubSub()),
|
|
63404
|
+
__metadata("design:type", Function),
|
|
63405
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
63406
|
+
__metadata("design:returntype", Promise)
|
|
63407
|
+
], MJListInvitationResolver.prototype, "MJListInvitation", null);
|
|
63408
|
+
__decorate([
|
|
63409
|
+
Mutation(() => MJListInvitation_),
|
|
63410
|
+
__param(0, Arg('input', () => CreateMJListInvitationInput)),
|
|
63411
|
+
__param(1, Ctx()),
|
|
63412
|
+
__param(2, PubSub()),
|
|
63413
|
+
__metadata("design:type", Function),
|
|
63414
|
+
__metadata("design:paramtypes", [CreateMJListInvitationInput, Object, PubSubEngine]),
|
|
63415
|
+
__metadata("design:returntype", Promise)
|
|
63416
|
+
], MJListInvitationResolver.prototype, "CreateMJListInvitation", null);
|
|
63417
|
+
__decorate([
|
|
63418
|
+
Mutation(() => MJListInvitation_),
|
|
63419
|
+
__param(0, Arg('input', () => UpdateMJListInvitationInput)),
|
|
63420
|
+
__param(1, Ctx()),
|
|
63421
|
+
__param(2, PubSub()),
|
|
63422
|
+
__metadata("design:type", Function),
|
|
63423
|
+
__metadata("design:paramtypes", [UpdateMJListInvitationInput, Object, PubSubEngine]),
|
|
63424
|
+
__metadata("design:returntype", Promise)
|
|
63425
|
+
], MJListInvitationResolver.prototype, "UpdateMJListInvitation", null);
|
|
63426
|
+
__decorate([
|
|
63427
|
+
Mutation(() => MJListInvitation_),
|
|
63428
|
+
__param(0, Arg('ID', () => String)),
|
|
63429
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
63430
|
+
__param(2, Ctx()),
|
|
63431
|
+
__param(3, PubSub()),
|
|
63432
|
+
__metadata("design:type", Function),
|
|
63433
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
63434
|
+
__metadata("design:returntype", Promise)
|
|
63435
|
+
], MJListInvitationResolver.prototype, "DeleteMJListInvitation", null);
|
|
63436
|
+
MJListInvitationResolver = __decorate([
|
|
63437
|
+
Resolver(MJListInvitation_)
|
|
63438
|
+
], MJListInvitationResolver);
|
|
63439
|
+
export { MJListInvitationResolver };
|
|
63440
|
+
let MJListShare_ = class MJListShare_ {
|
|
63441
|
+
ID;
|
|
63442
|
+
ListID;
|
|
63443
|
+
UserID;
|
|
63444
|
+
Role;
|
|
63445
|
+
Status;
|
|
63446
|
+
_mj__CreatedAt;
|
|
63447
|
+
_mj__UpdatedAt;
|
|
63448
|
+
List;
|
|
63449
|
+
User;
|
|
63450
|
+
};
|
|
63451
|
+
__decorate([
|
|
63452
|
+
Field({ description: `Unique identifier for the share record.` }),
|
|
63453
|
+
MaxLength(16),
|
|
63454
|
+
__metadata("design:type", String)
|
|
63455
|
+
], MJListShare_.prototype, "ID", void 0);
|
|
63456
|
+
__decorate([
|
|
63457
|
+
Field({ description: `The list being shared.` }),
|
|
63458
|
+
MaxLength(16),
|
|
63459
|
+
__metadata("design:type", String)
|
|
63460
|
+
], MJListShare_.prototype, "ListID", void 0);
|
|
63461
|
+
__decorate([
|
|
63462
|
+
Field({ description: `The user receiving access to the list.` }),
|
|
63463
|
+
MaxLength(16),
|
|
63464
|
+
__metadata("design:type", String)
|
|
63465
|
+
], MJListShare_.prototype, "UserID", void 0);
|
|
63466
|
+
__decorate([
|
|
63467
|
+
Field({ description: `The permission level granted (Editor or Viewer).` }),
|
|
63468
|
+
MaxLength(100),
|
|
63469
|
+
__metadata("design:type", String)
|
|
63470
|
+
], MJListShare_.prototype, "Role", void 0);
|
|
63471
|
+
__decorate([
|
|
63472
|
+
Field({ description: `Current status of the share (Active or Pending).` }),
|
|
63473
|
+
MaxLength(40),
|
|
63474
|
+
__metadata("design:type", String)
|
|
63475
|
+
], MJListShare_.prototype, "Status", void 0);
|
|
63476
|
+
__decorate([
|
|
63477
|
+
Field(),
|
|
63478
|
+
MaxLength(10),
|
|
63479
|
+
__metadata("design:type", Date)
|
|
63480
|
+
], MJListShare_.prototype, "_mj__CreatedAt", void 0);
|
|
63481
|
+
__decorate([
|
|
63482
|
+
Field(),
|
|
63483
|
+
MaxLength(10),
|
|
63484
|
+
__metadata("design:type", Date)
|
|
63485
|
+
], MJListShare_.prototype, "_mj__UpdatedAt", void 0);
|
|
63486
|
+
__decorate([
|
|
63487
|
+
Field(),
|
|
63488
|
+
MaxLength(200),
|
|
63489
|
+
__metadata("design:type", String)
|
|
63490
|
+
], MJListShare_.prototype, "List", void 0);
|
|
63491
|
+
__decorate([
|
|
63492
|
+
Field(),
|
|
63493
|
+
MaxLength(200),
|
|
63494
|
+
__metadata("design:type", String)
|
|
63495
|
+
], MJListShare_.prototype, "User", void 0);
|
|
63496
|
+
MJListShare_ = __decorate([
|
|
63497
|
+
ObjectType({ description: `Manages user access and permissions for shared lists.` })
|
|
63498
|
+
], MJListShare_);
|
|
63499
|
+
export { MJListShare_ };
|
|
63500
|
+
let CreateMJListShareInput = class CreateMJListShareInput {
|
|
63501
|
+
ID;
|
|
63502
|
+
ListID;
|
|
63503
|
+
UserID;
|
|
63504
|
+
Role;
|
|
63505
|
+
Status;
|
|
63506
|
+
};
|
|
63507
|
+
__decorate([
|
|
63508
|
+
Field({ nullable: true }),
|
|
63509
|
+
__metadata("design:type", String)
|
|
63510
|
+
], CreateMJListShareInput.prototype, "ID", void 0);
|
|
63511
|
+
__decorate([
|
|
63512
|
+
Field({ nullable: true }),
|
|
63513
|
+
__metadata("design:type", String)
|
|
63514
|
+
], CreateMJListShareInput.prototype, "ListID", void 0);
|
|
63515
|
+
__decorate([
|
|
63516
|
+
Field({ nullable: true }),
|
|
63517
|
+
__metadata("design:type", String)
|
|
63518
|
+
], CreateMJListShareInput.prototype, "UserID", void 0);
|
|
63519
|
+
__decorate([
|
|
63520
|
+
Field({ nullable: true }),
|
|
63521
|
+
__metadata("design:type", String)
|
|
63522
|
+
], CreateMJListShareInput.prototype, "Role", void 0);
|
|
63523
|
+
__decorate([
|
|
63524
|
+
Field({ nullable: true }),
|
|
63525
|
+
__metadata("design:type", String)
|
|
63526
|
+
], CreateMJListShareInput.prototype, "Status", void 0);
|
|
63527
|
+
CreateMJListShareInput = __decorate([
|
|
63528
|
+
InputType()
|
|
63529
|
+
], CreateMJListShareInput);
|
|
63530
|
+
export { CreateMJListShareInput };
|
|
63531
|
+
let UpdateMJListShareInput = class UpdateMJListShareInput {
|
|
63532
|
+
ID;
|
|
63533
|
+
ListID;
|
|
63534
|
+
UserID;
|
|
63535
|
+
Role;
|
|
63536
|
+
Status;
|
|
63537
|
+
OldValues___;
|
|
63538
|
+
};
|
|
63539
|
+
__decorate([
|
|
63540
|
+
Field(),
|
|
63541
|
+
__metadata("design:type", String)
|
|
63542
|
+
], UpdateMJListShareInput.prototype, "ID", void 0);
|
|
63543
|
+
__decorate([
|
|
63544
|
+
Field({ nullable: true }),
|
|
63545
|
+
__metadata("design:type", String)
|
|
63546
|
+
], UpdateMJListShareInput.prototype, "ListID", void 0);
|
|
63547
|
+
__decorate([
|
|
63548
|
+
Field({ nullable: true }),
|
|
63549
|
+
__metadata("design:type", String)
|
|
63550
|
+
], UpdateMJListShareInput.prototype, "UserID", void 0);
|
|
63551
|
+
__decorate([
|
|
63552
|
+
Field({ nullable: true }),
|
|
63553
|
+
__metadata("design:type", String)
|
|
63554
|
+
], UpdateMJListShareInput.prototype, "Role", void 0);
|
|
63555
|
+
__decorate([
|
|
63556
|
+
Field({ nullable: true }),
|
|
63557
|
+
__metadata("design:type", String)
|
|
63558
|
+
], UpdateMJListShareInput.prototype, "Status", void 0);
|
|
63559
|
+
__decorate([
|
|
63560
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
63561
|
+
__metadata("design:type", Array)
|
|
63562
|
+
], UpdateMJListShareInput.prototype, "OldValues___", void 0);
|
|
63563
|
+
UpdateMJListShareInput = __decorate([
|
|
63564
|
+
InputType()
|
|
63565
|
+
], UpdateMJListShareInput);
|
|
63566
|
+
export { UpdateMJListShareInput };
|
|
63567
|
+
let RunMJListShareViewResult = class RunMJListShareViewResult {
|
|
63568
|
+
Results;
|
|
63569
|
+
UserViewRunID;
|
|
63570
|
+
RowCount;
|
|
63571
|
+
TotalRowCount;
|
|
63572
|
+
ExecutionTime;
|
|
63573
|
+
ErrorMessage;
|
|
63574
|
+
Success;
|
|
63575
|
+
};
|
|
63576
|
+
__decorate([
|
|
63577
|
+
Field(() => [MJListShare_]),
|
|
63578
|
+
__metadata("design:type", Array)
|
|
63579
|
+
], RunMJListShareViewResult.prototype, "Results", void 0);
|
|
63580
|
+
__decorate([
|
|
63581
|
+
Field(() => String, { nullable: true }),
|
|
63582
|
+
__metadata("design:type", String)
|
|
63583
|
+
], RunMJListShareViewResult.prototype, "UserViewRunID", void 0);
|
|
63584
|
+
__decorate([
|
|
63585
|
+
Field(() => Int, { nullable: true }),
|
|
63586
|
+
__metadata("design:type", Number)
|
|
63587
|
+
], RunMJListShareViewResult.prototype, "RowCount", void 0);
|
|
63588
|
+
__decorate([
|
|
63589
|
+
Field(() => Int, { nullable: true }),
|
|
63590
|
+
__metadata("design:type", Number)
|
|
63591
|
+
], RunMJListShareViewResult.prototype, "TotalRowCount", void 0);
|
|
63592
|
+
__decorate([
|
|
63593
|
+
Field(() => Int, { nullable: true }),
|
|
63594
|
+
__metadata("design:type", Number)
|
|
63595
|
+
], RunMJListShareViewResult.prototype, "ExecutionTime", void 0);
|
|
63596
|
+
__decorate([
|
|
63597
|
+
Field({ nullable: true }),
|
|
63598
|
+
__metadata("design:type", String)
|
|
63599
|
+
], RunMJListShareViewResult.prototype, "ErrorMessage", void 0);
|
|
63600
|
+
__decorate([
|
|
63601
|
+
Field(() => Boolean, { nullable: false }),
|
|
63602
|
+
__metadata("design:type", Boolean)
|
|
63603
|
+
], RunMJListShareViewResult.prototype, "Success", void 0);
|
|
63604
|
+
RunMJListShareViewResult = __decorate([
|
|
63605
|
+
ObjectType()
|
|
63606
|
+
], RunMJListShareViewResult);
|
|
63607
|
+
export { RunMJListShareViewResult };
|
|
63608
|
+
let MJListShareResolver = class MJListShareResolver extends ResolverBase {
|
|
63609
|
+
async RunMJListShareViewByID(input, { providers, userPayload }, pubSub) {
|
|
63610
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63611
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
63612
|
+
}
|
|
63613
|
+
async RunMJListShareViewByName(input, { providers, userPayload }, pubSub) {
|
|
63614
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63615
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
63616
|
+
}
|
|
63617
|
+
async RunMJListShareDynamicView(input, { providers, userPayload }, pubSub) {
|
|
63618
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63619
|
+
input.EntityName = 'MJ: List Shares';
|
|
63620
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
63621
|
+
}
|
|
63622
|
+
async MJListShare(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
63623
|
+
this.CheckUserReadPermissions('MJ: List Shares', userPayload);
|
|
63624
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63625
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
63626
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListShares] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
|
|
63627
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
63628
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: List Shares', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
63629
|
+
return result;
|
|
63630
|
+
}
|
|
63631
|
+
async CreateMJListShare(input, { providers, userPayload }, pubSub) {
|
|
63632
|
+
const provider = GetReadWriteProvider(providers);
|
|
63633
|
+
return this.CreateRecord('MJ: List Shares', input, provider, userPayload, pubSub);
|
|
63634
|
+
}
|
|
63635
|
+
async UpdateMJListShare(input, { providers, userPayload }, pubSub) {
|
|
63636
|
+
const provider = GetReadWriteProvider(providers);
|
|
63637
|
+
return this.UpdateRecord('MJ: List Shares', input, provider, userPayload, pubSub);
|
|
63638
|
+
}
|
|
63639
|
+
async DeleteMJListShare(ID, options, { providers, userPayload }, pubSub) {
|
|
63640
|
+
const provider = GetReadWriteProvider(providers);
|
|
63641
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
63642
|
+
return this.DeleteRecord('MJ: List Shares', key, options, provider, userPayload, pubSub);
|
|
63643
|
+
}
|
|
63644
|
+
};
|
|
63645
|
+
__decorate([
|
|
63646
|
+
Query(() => RunMJListShareViewResult),
|
|
63647
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
63648
|
+
__param(1, Ctx()),
|
|
63649
|
+
__param(2, PubSub()),
|
|
63650
|
+
__metadata("design:type", Function),
|
|
63651
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
63652
|
+
__metadata("design:returntype", Promise)
|
|
63653
|
+
], MJListShareResolver.prototype, "RunMJListShareViewByID", null);
|
|
63654
|
+
__decorate([
|
|
63655
|
+
Query(() => RunMJListShareViewResult),
|
|
63656
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
63657
|
+
__param(1, Ctx()),
|
|
63658
|
+
__param(2, PubSub()),
|
|
63659
|
+
__metadata("design:type", Function),
|
|
63660
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
63661
|
+
__metadata("design:returntype", Promise)
|
|
63662
|
+
], MJListShareResolver.prototype, "RunMJListShareViewByName", null);
|
|
63663
|
+
__decorate([
|
|
63664
|
+
Query(() => RunMJListShareViewResult),
|
|
63665
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
63666
|
+
__param(1, Ctx()),
|
|
63667
|
+
__param(2, PubSub()),
|
|
63668
|
+
__metadata("design:type", Function),
|
|
63669
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
63670
|
+
__metadata("design:returntype", Promise)
|
|
63671
|
+
], MJListShareResolver.prototype, "RunMJListShareDynamicView", null);
|
|
63672
|
+
__decorate([
|
|
63673
|
+
Query(() => MJListShare_, { nullable: true }),
|
|
63674
|
+
__param(0, Arg('ID', () => String)),
|
|
63675
|
+
__param(1, Ctx()),
|
|
63676
|
+
__param(2, PubSub()),
|
|
63677
|
+
__metadata("design:type", Function),
|
|
63678
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
63679
|
+
__metadata("design:returntype", Promise)
|
|
63680
|
+
], MJListShareResolver.prototype, "MJListShare", null);
|
|
63681
|
+
__decorate([
|
|
63682
|
+
Mutation(() => MJListShare_),
|
|
63683
|
+
__param(0, Arg('input', () => CreateMJListShareInput)),
|
|
63684
|
+
__param(1, Ctx()),
|
|
63685
|
+
__param(2, PubSub()),
|
|
63686
|
+
__metadata("design:type", Function),
|
|
63687
|
+
__metadata("design:paramtypes", [CreateMJListShareInput, Object, PubSubEngine]),
|
|
63688
|
+
__metadata("design:returntype", Promise)
|
|
63689
|
+
], MJListShareResolver.prototype, "CreateMJListShare", null);
|
|
63690
|
+
__decorate([
|
|
63691
|
+
Mutation(() => MJListShare_),
|
|
63692
|
+
__param(0, Arg('input', () => UpdateMJListShareInput)),
|
|
63693
|
+
__param(1, Ctx()),
|
|
63694
|
+
__param(2, PubSub()),
|
|
63695
|
+
__metadata("design:type", Function),
|
|
63696
|
+
__metadata("design:paramtypes", [UpdateMJListShareInput, Object, PubSubEngine]),
|
|
63697
|
+
__metadata("design:returntype", Promise)
|
|
63698
|
+
], MJListShareResolver.prototype, "UpdateMJListShare", null);
|
|
63699
|
+
__decorate([
|
|
63700
|
+
Mutation(() => MJListShare_),
|
|
63701
|
+
__param(0, Arg('ID', () => String)),
|
|
63702
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
63703
|
+
__param(2, Ctx()),
|
|
63704
|
+
__param(3, PubSub()),
|
|
63705
|
+
__metadata("design:type", Function),
|
|
63706
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
63707
|
+
__metadata("design:returntype", Promise)
|
|
63708
|
+
], MJListShareResolver.prototype, "DeleteMJListShare", null);
|
|
63709
|
+
MJListShareResolver = __decorate([
|
|
63710
|
+
Resolver(MJListShare_)
|
|
63711
|
+
], MJListShareResolver);
|
|
63712
|
+
export { MJListShareResolver };
|
|
63073
63713
|
let MJProject_ = class MJProject_ {
|
|
63074
63714
|
ID;
|
|
63075
63715
|
EnvironmentID;
|
|
@@ -87274,6 +87914,8 @@ let MJUser_ = class MJUser_ {
|
|
|
87274
87914
|
MJ_TestRunFeedbacks_ReviewerUserIDArray;
|
|
87275
87915
|
MJ_TestSuiteRuns_RunByUserIDArray;
|
|
87276
87916
|
MJ_UserSettings_UserIDArray;
|
|
87917
|
+
MJ_ListInvitations_CreatedByUserIDArray;
|
|
87918
|
+
MJ_ListShares_UserIDArray;
|
|
87277
87919
|
ResourcePermissions_UserIDArray;
|
|
87278
87920
|
AIAgentRequests_RequestForUserIDArray;
|
|
87279
87921
|
ConversationDetails_UserIDArray;
|
|
@@ -87591,6 +88233,14 @@ __decorate([
|
|
|
87591
88233
|
Field(() => [MJUserSetting_]),
|
|
87592
88234
|
__metadata("design:type", Array)
|
|
87593
88235
|
], MJUser_.prototype, "MJ_UserSettings_UserIDArray", void 0);
|
|
88236
|
+
__decorate([
|
|
88237
|
+
Field(() => [MJListInvitation_]),
|
|
88238
|
+
__metadata("design:type", Array)
|
|
88239
|
+
], MJUser_.prototype, "MJ_ListInvitations_CreatedByUserIDArray", void 0);
|
|
88240
|
+
__decorate([
|
|
88241
|
+
Field(() => [MJListShare_]),
|
|
88242
|
+
__metadata("design:type", Array)
|
|
88243
|
+
], MJUser_.prototype, "MJ_ListShares_UserIDArray", void 0);
|
|
87594
88244
|
__decorate([
|
|
87595
88245
|
Field(() => [MJResourcePermission_]),
|
|
87596
88246
|
__metadata("design:type", Array)
|
|
@@ -88321,6 +88971,24 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
88321
88971
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: User Settings', rows, this.GetUserFromPayload(userPayload));
|
|
88322
88972
|
return result;
|
|
88323
88973
|
}
|
|
88974
|
+
async MJ_ListInvitations_CreatedByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
88975
|
+
this.CheckUserReadPermissions('MJ: List Invitations', userPayload);
|
|
88976
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
88977
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
88978
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListInvitations] WHERE [CreatedByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Invitations', userPayload, EntityPermissionType.Read, 'AND');
|
|
88979
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
88980
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Invitations', rows, this.GetUserFromPayload(userPayload));
|
|
88981
|
+
return result;
|
|
88982
|
+
}
|
|
88983
|
+
async MJ_ListShares_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
88984
|
+
this.CheckUserReadPermissions('MJ: List Shares', userPayload);
|
|
88985
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
88986
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
88987
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListShares] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
|
|
88988
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
88989
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Shares', rows, this.GetUserFromPayload(userPayload));
|
|
88990
|
+
return result;
|
|
88991
|
+
}
|
|
88324
88992
|
async ResourcePermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
88325
88993
|
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|
|
88326
88994
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -88955,6 +89623,24 @@ __decorate([
|
|
|
88955
89623
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
88956
89624
|
__metadata("design:returntype", Promise)
|
|
88957
89625
|
], MJUserResolverBase.prototype, "MJ_UserSettings_UserIDArray", null);
|
|
89626
|
+
__decorate([
|
|
89627
|
+
FieldResolver(() => [MJListInvitation_]),
|
|
89628
|
+
__param(0, Root()),
|
|
89629
|
+
__param(1, Ctx()),
|
|
89630
|
+
__param(2, PubSub()),
|
|
89631
|
+
__metadata("design:type", Function),
|
|
89632
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
89633
|
+
__metadata("design:returntype", Promise)
|
|
89634
|
+
], MJUserResolverBase.prototype, "MJ_ListInvitations_CreatedByUserIDArray", null);
|
|
89635
|
+
__decorate([
|
|
89636
|
+
FieldResolver(() => [MJListShare_]),
|
|
89637
|
+
__param(0, Root()),
|
|
89638
|
+
__param(1, Ctx()),
|
|
89639
|
+
__param(2, PubSub()),
|
|
89640
|
+
__metadata("design:type", Function),
|
|
89641
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
89642
|
+
__metadata("design:returntype", Promise)
|
|
89643
|
+
], MJUserResolverBase.prototype, "MJ_ListShares_UserIDArray", null);
|
|
88958
89644
|
__decorate([
|
|
88959
89645
|
FieldResolver(() => [MJResourcePermission_]),
|
|
88960
89646
|
__param(0, Root()),
|