@memberjunction/server 0.9.237 → 0.9.238
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.
|
@@ -19717,6 +19717,28 @@ let QueryCategoryResolver = class QueryCategoryResolver extends server_1.Resolve
|
|
|
19717
19717
|
async AfterUpdate(dataSource, input) {
|
|
19718
19718
|
const i = input, d = dataSource;
|
|
19719
19719
|
}
|
|
19720
|
+
async DeleteQueryCategory(ID, { dataSource, userPayload }, pubSub) {
|
|
19721
|
+
if (await this.BeforeDelete(dataSource, ID)) {
|
|
19722
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Query Categories', this.GetUserFromPayload(userPayload));
|
|
19723
|
+
await entityObject.Load(ID);
|
|
19724
|
+
const returnValue = entityObject.GetAll();
|
|
19725
|
+
if (await entityObject.Delete()) {
|
|
19726
|
+
await this.AfterDelete(dataSource, ID);
|
|
19727
|
+
return returnValue;
|
|
19728
|
+
}
|
|
19729
|
+
else
|
|
19730
|
+
return null;
|
|
19731
|
+
}
|
|
19732
|
+
else
|
|
19733
|
+
return null;
|
|
19734
|
+
}
|
|
19735
|
+
async BeforeDelete(dataSource, ID) {
|
|
19736
|
+
const i = ID, d = dataSource;
|
|
19737
|
+
return true;
|
|
19738
|
+
}
|
|
19739
|
+
async AfterDelete(dataSource, ID) {
|
|
19740
|
+
const i = ID, d = dataSource;
|
|
19741
|
+
}
|
|
19720
19742
|
};
|
|
19721
19743
|
exports.QueryCategoryResolver = QueryCategoryResolver;
|
|
19722
19744
|
__decorate([
|
|
@@ -19791,6 +19813,15 @@ __decorate([
|
|
|
19791
19813
|
__metadata("design:paramtypes", [UpdateQueryCategoryInput, Object, server_1.PubSubEngine]),
|
|
19792
19814
|
__metadata("design:returntype", Promise)
|
|
19793
19815
|
], QueryCategoryResolver.prototype, "UpdateQueryCategory", null);
|
|
19816
|
+
__decorate([
|
|
19817
|
+
(0, server_1.Mutation)(() => QueryCategory_),
|
|
19818
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
19819
|
+
__param(1, (0, server_1.Ctx)()),
|
|
19820
|
+
__param(2, (0, server_1.PubSub)()),
|
|
19821
|
+
__metadata("design:type", Function),
|
|
19822
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
19823
|
+
__metadata("design:returntype", Promise)
|
|
19824
|
+
], QueryCategoryResolver.prototype, "DeleteQueryCategory", null);
|
|
19794
19825
|
exports.QueryCategoryResolver = QueryCategoryResolver = __decorate([
|
|
19795
19826
|
(0, server_1.Resolver)(QueryCategory_)
|
|
19796
19827
|
], QueryCategoryResolver);
|
|
@@ -22968,6 +22999,28 @@ let DashboardCategoryResolver = class DashboardCategoryResolver extends server_1
|
|
|
22968
22999
|
async AfterUpdate(dataSource, input) {
|
|
22969
23000
|
const i = input, d = dataSource;
|
|
22970
23001
|
}
|
|
23002
|
+
async DeleteDashboardCategory(ID, { dataSource, userPayload }, pubSub) {
|
|
23003
|
+
if (await this.BeforeDelete(dataSource, ID)) {
|
|
23004
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Dashboard Categories', this.GetUserFromPayload(userPayload));
|
|
23005
|
+
await entityObject.Load(ID);
|
|
23006
|
+
const returnValue = entityObject.GetAll();
|
|
23007
|
+
if (await entityObject.Delete()) {
|
|
23008
|
+
await this.AfterDelete(dataSource, ID);
|
|
23009
|
+
return returnValue;
|
|
23010
|
+
}
|
|
23011
|
+
else
|
|
23012
|
+
return null;
|
|
23013
|
+
}
|
|
23014
|
+
else
|
|
23015
|
+
return null;
|
|
23016
|
+
}
|
|
23017
|
+
async BeforeDelete(dataSource, ID) {
|
|
23018
|
+
const i = ID, d = dataSource;
|
|
23019
|
+
return true;
|
|
23020
|
+
}
|
|
23021
|
+
async AfterDelete(dataSource, ID) {
|
|
23022
|
+
const i = ID, d = dataSource;
|
|
23023
|
+
}
|
|
22971
23024
|
};
|
|
22972
23025
|
exports.DashboardCategoryResolver = DashboardCategoryResolver;
|
|
22973
23026
|
__decorate([
|
|
@@ -23042,6 +23095,15 @@ __decorate([
|
|
|
23042
23095
|
__metadata("design:paramtypes", [UpdateDashboardCategoryInput, Object, server_1.PubSubEngine]),
|
|
23043
23096
|
__metadata("design:returntype", Promise)
|
|
23044
23097
|
], DashboardCategoryResolver.prototype, "UpdateDashboardCategory", null);
|
|
23098
|
+
__decorate([
|
|
23099
|
+
(0, server_1.Mutation)(() => DashboardCategory_),
|
|
23100
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
23101
|
+
__param(1, (0, server_1.Ctx)()),
|
|
23102
|
+
__param(2, (0, server_1.PubSub)()),
|
|
23103
|
+
__metadata("design:type", Function),
|
|
23104
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
23105
|
+
__metadata("design:returntype", Promise)
|
|
23106
|
+
], DashboardCategoryResolver.prototype, "DeleteDashboardCategory", null);
|
|
23045
23107
|
exports.DashboardCategoryResolver = DashboardCategoryResolver = __decorate([
|
|
23046
23108
|
(0, server_1.Resolver)(DashboardCategory_)
|
|
23047
23109
|
], DashboardCategoryResolver);
|
|
@@ -23235,6 +23297,28 @@ let ReportCategoryResolver = class ReportCategoryResolver extends server_1.Resol
|
|
|
23235
23297
|
async AfterUpdate(dataSource, input) {
|
|
23236
23298
|
const i = input, d = dataSource;
|
|
23237
23299
|
}
|
|
23300
|
+
async DeleteReportCategory(ID, { dataSource, userPayload }, pubSub) {
|
|
23301
|
+
if (await this.BeforeDelete(dataSource, ID)) {
|
|
23302
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('Report Categories', this.GetUserFromPayload(userPayload));
|
|
23303
|
+
await entityObject.Load(ID);
|
|
23304
|
+
const returnValue = entityObject.GetAll();
|
|
23305
|
+
if (await entityObject.Delete()) {
|
|
23306
|
+
await this.AfterDelete(dataSource, ID);
|
|
23307
|
+
return returnValue;
|
|
23308
|
+
}
|
|
23309
|
+
else
|
|
23310
|
+
return null;
|
|
23311
|
+
}
|
|
23312
|
+
else
|
|
23313
|
+
return null;
|
|
23314
|
+
}
|
|
23315
|
+
async BeforeDelete(dataSource, ID) {
|
|
23316
|
+
const i = ID, d = dataSource;
|
|
23317
|
+
return true;
|
|
23318
|
+
}
|
|
23319
|
+
async AfterDelete(dataSource, ID) {
|
|
23320
|
+
const i = ID, d = dataSource;
|
|
23321
|
+
}
|
|
23238
23322
|
};
|
|
23239
23323
|
exports.ReportCategoryResolver = ReportCategoryResolver;
|
|
23240
23324
|
__decorate([
|
|
@@ -23309,6 +23393,15 @@ __decorate([
|
|
|
23309
23393
|
__metadata("design:paramtypes", [UpdateReportCategoryInput, Object, server_1.PubSubEngine]),
|
|
23310
23394
|
__metadata("design:returntype", Promise)
|
|
23311
23395
|
], ReportCategoryResolver.prototype, "UpdateReportCategory", null);
|
|
23396
|
+
__decorate([
|
|
23397
|
+
(0, server_1.Mutation)(() => ReportCategory_),
|
|
23398
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
23399
|
+
__param(1, (0, server_1.Ctx)()),
|
|
23400
|
+
__param(2, (0, server_1.PubSub)()),
|
|
23401
|
+
__metadata("design:type", Function),
|
|
23402
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
23403
|
+
__metadata("design:returntype", Promise)
|
|
23404
|
+
], ReportCategoryResolver.prototype, "DeleteReportCategory", null);
|
|
23312
23405
|
exports.ReportCategoryResolver = ReportCategoryResolver = __decorate([
|
|
23313
23406
|
(0, server_1.Resolver)(ReportCategory_)
|
|
23314
23407
|
], ReportCategoryResolver);
|
|
@@ -24087,6 +24180,28 @@ let FileCategoryResolver = class FileCategoryResolver extends server_1.ResolverB
|
|
|
24087
24180
|
async AfterUpdate(dataSource, input) {
|
|
24088
24181
|
const i = input, d = dataSource;
|
|
24089
24182
|
}
|
|
24183
|
+
async DeleteFileCategory(ID, { dataSource, userPayload }, pubSub) {
|
|
24184
|
+
if (await this.BeforeDelete(dataSource, ID)) {
|
|
24185
|
+
const entityObject = await new core_1.Metadata().GetEntityObject('File Categories', this.GetUserFromPayload(userPayload));
|
|
24186
|
+
await entityObject.Load(ID);
|
|
24187
|
+
const returnValue = entityObject.GetAll();
|
|
24188
|
+
if (await entityObject.Delete()) {
|
|
24189
|
+
await this.AfterDelete(dataSource, ID);
|
|
24190
|
+
return returnValue;
|
|
24191
|
+
}
|
|
24192
|
+
else
|
|
24193
|
+
return null;
|
|
24194
|
+
}
|
|
24195
|
+
else
|
|
24196
|
+
return null;
|
|
24197
|
+
}
|
|
24198
|
+
async BeforeDelete(dataSource, ID) {
|
|
24199
|
+
const i = ID, d = dataSource;
|
|
24200
|
+
return true;
|
|
24201
|
+
}
|
|
24202
|
+
async AfterDelete(dataSource, ID) {
|
|
24203
|
+
const i = ID, d = dataSource;
|
|
24204
|
+
}
|
|
24090
24205
|
};
|
|
24091
24206
|
exports.FileCategoryResolver = FileCategoryResolver;
|
|
24092
24207
|
__decorate([
|
|
@@ -24161,6 +24276,15 @@ __decorate([
|
|
|
24161
24276
|
__metadata("design:paramtypes", [UpdateFileCategoryInput, Object, server_1.PubSubEngine]),
|
|
24162
24277
|
__metadata("design:returntype", Promise)
|
|
24163
24278
|
], FileCategoryResolver.prototype, "UpdateFileCategory", null);
|
|
24279
|
+
__decorate([
|
|
24280
|
+
(0, server_1.Mutation)(() => FileCategory_),
|
|
24281
|
+
__param(0, (0, server_1.Arg)('ID', () => server_1.Int)),
|
|
24282
|
+
__param(1, (0, server_1.Ctx)()),
|
|
24283
|
+
__param(2, (0, server_1.PubSub)()),
|
|
24284
|
+
__metadata("design:type", Function),
|
|
24285
|
+
__metadata("design:paramtypes", [Number, Object, server_1.PubSubEngine]),
|
|
24286
|
+
__metadata("design:returntype", Promise)
|
|
24287
|
+
], FileCategoryResolver.prototype, "DeleteFileCategory", null);
|
|
24164
24288
|
exports.FileCategoryResolver = FileCategoryResolver = __decorate([
|
|
24165
24289
|
(0, server_1.Resolver)(FileCategory_)
|
|
24166
24290
|
], FileCategoryResolver);
|