@memberjunction/server 0.9.164 → 0.9.166
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/build.log.json +6 -0
- package/dist/generated/generated.js +138 -41
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/AskSkipResolver.js +145 -43
- package/dist/resolvers/AskSkipResolver.js.map +1 -1
- package/package.json +6 -6
- package/src/generated/generated.ts +99 -37
- package/src/resolvers/AskSkipResolver.ts +178 -47
package/build.log.json
CHANGED
|
@@ -2967,6 +2967,10 @@ __decorate([
|
|
|
2967
2967
|
(0, server_1.Field)({ nullable: true }),
|
|
2968
2968
|
__metadata("design:type", String)
|
|
2969
2969
|
], EntityField_.prototype, "Description", void 0);
|
|
2970
|
+
__decorate([
|
|
2971
|
+
(0, server_1.Field)(() => Boolean, { description: 'When set to 1 (default), whenever a description is modified in the column within the underlying view (first choice) or table (second choice), the Description column in the entity field definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity field definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.' }),
|
|
2972
|
+
__metadata("design:type", Boolean)
|
|
2973
|
+
], EntityField_.prototype, "AutoUpdateDescription", void 0);
|
|
2970
2974
|
__decorate([
|
|
2971
2975
|
(0, server_1.Field)(() => Boolean),
|
|
2972
2976
|
__metadata("design:type", Boolean)
|
|
@@ -3176,6 +3180,10 @@ __decorate([
|
|
|
3176
3180
|
(0, server_1.Field)({ nullable: true }),
|
|
3177
3181
|
__metadata("design:type", String)
|
|
3178
3182
|
], CreateEntityFieldInput.prototype, "Description", void 0);
|
|
3183
|
+
__decorate([
|
|
3184
|
+
(0, server_1.Field)(() => Boolean),
|
|
3185
|
+
__metadata("design:type", Boolean)
|
|
3186
|
+
], CreateEntityFieldInput.prototype, "AutoUpdateDescription", void 0);
|
|
3179
3187
|
__decorate([
|
|
3180
3188
|
(0, server_1.Field)(() => Boolean),
|
|
3181
3189
|
__metadata("design:type", Boolean)
|
|
@@ -3274,6 +3282,10 @@ __decorate([
|
|
|
3274
3282
|
(0, server_1.Field)({ nullable: true }),
|
|
3275
3283
|
__metadata("design:type", String)
|
|
3276
3284
|
], UpdateEntityFieldInput.prototype, "Description", void 0);
|
|
3285
|
+
__decorate([
|
|
3286
|
+
(0, server_1.Field)(() => Boolean),
|
|
3287
|
+
__metadata("design:type", Boolean)
|
|
3288
|
+
], UpdateEntityFieldInput.prototype, "AutoUpdateDescription", void 0);
|
|
3277
3289
|
__decorate([
|
|
3278
3290
|
(0, server_1.Field)(() => Boolean),
|
|
3279
3291
|
__metadata("design:type", Boolean)
|
|
@@ -3593,6 +3605,10 @@ __decorate([
|
|
|
3593
3605
|
(0, server_1.Field)({ nullable: true }),
|
|
3594
3606
|
__metadata("design:type", String)
|
|
3595
3607
|
], Entity_.prototype, "Description", void 0);
|
|
3608
|
+
__decorate([
|
|
3609
|
+
(0, server_1.Field)(() => Boolean, { description: 'When set to 1 (default), whenever a description is modified in the underlying view (first choice) or table (second choice), the Description column in the entity definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.' }),
|
|
3610
|
+
__metadata("design:type", Boolean)
|
|
3611
|
+
], Entity_.prototype, "AutoUpdateDescription", void 0);
|
|
3596
3612
|
__decorate([
|
|
3597
3613
|
(0, server_1.Field)(),
|
|
3598
3614
|
(0, class_validator_1.MaxLength)(510),
|
|
@@ -3868,6 +3884,10 @@ __decorate([
|
|
|
3868
3884
|
(0, server_1.Field)(() => [EntityDocument_]),
|
|
3869
3885
|
__metadata("design:type", Array)
|
|
3870
3886
|
], Entity_.prototype, "EntityDocumentsArray", void 0);
|
|
3887
|
+
__decorate([
|
|
3888
|
+
(0, server_1.Field)(() => [DataContextItem_]),
|
|
3889
|
+
__metadata("design:type", Array)
|
|
3890
|
+
], Entity_.prototype, "DataContextItemsArray", void 0);
|
|
3871
3891
|
exports.Entity_ = Entity_ = __decorate([
|
|
3872
3892
|
(0, server_1.ObjectType)({ description: 'Metadata about all of the entities in the system. This information is managed by CodeGen, don\'t modify the parts that come from SQL Server' })
|
|
3873
3893
|
], Entity_);
|
|
@@ -3894,6 +3914,10 @@ __decorate([
|
|
|
3894
3914
|
(0, server_1.Field)({ nullable: true }),
|
|
3895
3915
|
__metadata("design:type", String)
|
|
3896
3916
|
], CreateEntityInput.prototype, "Description", void 0);
|
|
3917
|
+
__decorate([
|
|
3918
|
+
(0, server_1.Field)(() => Boolean),
|
|
3919
|
+
__metadata("design:type", Boolean)
|
|
3920
|
+
], CreateEntityInput.prototype, "AutoUpdateDescription", void 0);
|
|
3897
3921
|
__decorate([
|
|
3898
3922
|
(0, server_1.Field)(),
|
|
3899
3923
|
__metadata("design:type", String)
|
|
@@ -4044,6 +4068,10 @@ __decorate([
|
|
|
4044
4068
|
(0, server_1.Field)({ nullable: true }),
|
|
4045
4069
|
__metadata("design:type", String)
|
|
4046
4070
|
], UpdateEntityInput.prototype, "Description", void 0);
|
|
4071
|
+
__decorate([
|
|
4072
|
+
(0, server_1.Field)(() => Boolean),
|
|
4073
|
+
__metadata("design:type", Boolean)
|
|
4074
|
+
], UpdateEntityInput.prototype, "AutoUpdateDescription", void 0);
|
|
4047
4075
|
__decorate([
|
|
4048
4076
|
(0, server_1.Field)(),
|
|
4049
4077
|
__metadata("design:type", String)
|
|
@@ -4366,6 +4394,12 @@ let EntityResolverBase = class EntityResolverBase extends server_1.ResolverBase
|
|
|
4366
4394
|
const result = this.ArrayMapFieldNamesToCodeNames('Entity Documents', await dataSource.query(sSQL));
|
|
4367
4395
|
return result;
|
|
4368
4396
|
}
|
|
4397
|
+
async DataContextItemsArray(entity_, { dataSource, userPayload }, pubSub) {
|
|
4398
|
+
this.CheckUserReadPermissions('Data Context Items', userPayload);
|
|
4399
|
+
const sSQL = `SELECT * FROM [admin].[vwDataContextItems] WHERE [EntityID]=${entity_.ID} ` + this.getRowLevelSecurityWhereClause('Data Context Items', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
4400
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Data Context Items', await dataSource.query(sSQL));
|
|
4401
|
+
return result;
|
|
4402
|
+
}
|
|
4369
4403
|
async CreateEntity(input, { dataSource, userPayload }, pubSub) {
|
|
4370
4404
|
if (await this.BeforeCreate(dataSource, input)) {
|
|
4371
4405
|
const entityObject = await new core_1.Metadata().GetEntityObject('Entities', this.GetUserFromPayload(userPayload));
|
|
@@ -4682,6 +4716,15 @@ __decorate([
|
|
|
4682
4716
|
__metadata("design:paramtypes", [Entity_, Object, server_1.PubSubEngine]),
|
|
4683
4717
|
__metadata("design:returntype", Promise)
|
|
4684
4718
|
], EntityResolverBase.prototype, "EntityDocumentsArray", null);
|
|
4719
|
+
__decorate([
|
|
4720
|
+
(0, server_1.FieldResolver)(() => [DataContextItem_]),
|
|
4721
|
+
__param(0, (0, server_1.Root)()),
|
|
4722
|
+
__param(1, (0, server_1.Ctx)()),
|
|
4723
|
+
__param(2, (0, server_1.PubSub)()),
|
|
4724
|
+
__metadata("design:type", Function),
|
|
4725
|
+
__metadata("design:paramtypes", [Entity_, Object, server_1.PubSubEngine]),
|
|
4726
|
+
__metadata("design:returntype", Promise)
|
|
4727
|
+
], EntityResolverBase.prototype, "DataContextItemsArray", null);
|
|
4685
4728
|
__decorate([
|
|
4686
4729
|
(0, server_1.Mutation)(() => Entity_),
|
|
4687
4730
|
__param(0, (0, server_1.Arg)('input', () => CreateEntityInput)),
|
|
@@ -6234,6 +6277,10 @@ __decorate([
|
|
|
6234
6277
|
(0, server_1.Field)(() => [UserViewRun_]),
|
|
6235
6278
|
__metadata("design:type", Array)
|
|
6236
6279
|
], UserView_.prototype, "UserViewRunsArray", void 0);
|
|
6280
|
+
__decorate([
|
|
6281
|
+
(0, server_1.Field)(() => [DataContextItem_]),
|
|
6282
|
+
__metadata("design:type", Array)
|
|
6283
|
+
], UserView_.prototype, "DataContextItemsArray", void 0);
|
|
6237
6284
|
exports.UserView_ = UserView_ = __decorate([
|
|
6238
6285
|
(0, server_1.ObjectType)({ description: 'User Views contain the metadata for the user viewing system of entity data' })
|
|
6239
6286
|
], UserView_);
|
|
@@ -6450,6 +6497,12 @@ let UserViewResolverBase = class UserViewResolverBase extends server_1.ResolverB
|
|
|
6450
6497
|
const result = this.ArrayMapFieldNamesToCodeNames('User View Runs', await dataSource.query(sSQL));
|
|
6451
6498
|
return result;
|
|
6452
6499
|
}
|
|
6500
|
+
async DataContextItemsArray(userview_, { dataSource, userPayload }, pubSub) {
|
|
6501
|
+
this.CheckUserReadPermissions('Data Context Items', userPayload);
|
|
6502
|
+
const sSQL = `SELECT * FROM [admin].[vwDataContextItems] WHERE [ViewID]=${userview_.ID} ` + this.getRowLevelSecurityWhereClause('Data Context Items', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
6503
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Data Context Items', await dataSource.query(sSQL));
|
|
6504
|
+
return result;
|
|
6505
|
+
}
|
|
6453
6506
|
async CreateUserView(input, { dataSource, userPayload }, pubSub) {
|
|
6454
6507
|
if (await this.BeforeCreate(dataSource, input)) {
|
|
6455
6508
|
const entityObject = await new core_1.Metadata().GetEntityObject('User Views', this.GetUserFromPayload(userPayload));
|
|
@@ -6578,6 +6631,15 @@ __decorate([
|
|
|
6578
6631
|
__metadata("design:paramtypes", [UserView_, Object, server_1.PubSubEngine]),
|
|
6579
6632
|
__metadata("design:returntype", Promise)
|
|
6580
6633
|
], UserViewResolverBase.prototype, "UserViewRunsArray", null);
|
|
6634
|
+
__decorate([
|
|
6635
|
+
(0, server_1.FieldResolver)(() => [DataContextItem_]),
|
|
6636
|
+
__param(0, (0, server_1.Root)()),
|
|
6637
|
+
__param(1, (0, server_1.Ctx)()),
|
|
6638
|
+
__param(2, (0, server_1.PubSub)()),
|
|
6639
|
+
__metadata("design:type", Function),
|
|
6640
|
+
__metadata("design:paramtypes", [UserView_, Object, server_1.PubSubEngine]),
|
|
6641
|
+
__metadata("design:returntype", Promise)
|
|
6642
|
+
], UserViewResolverBase.prototype, "DataContextItemsArray", null);
|
|
6581
6643
|
__decorate([
|
|
6582
6644
|
(0, server_1.Mutation)(() => UserView_),
|
|
6583
6645
|
__param(0, (0, server_1.Arg)('input', () => CreateUserViewInput)),
|
|
@@ -8915,11 +8977,6 @@ __decorate([
|
|
|
8915
8977
|
(0, class_validator_1.MaxLength)(8),
|
|
8916
8978
|
__metadata("design:type", Date)
|
|
8917
8979
|
], List_.prototype, "UpdatedAt", void 0);
|
|
8918
|
-
__decorate([
|
|
8919
|
-
(0, server_1.Field)({ nullable: true }),
|
|
8920
|
-
(0, class_validator_1.MaxLength)(510),
|
|
8921
|
-
__metadata("design:type", String)
|
|
8922
|
-
], List_.prototype, "Entity", void 0);
|
|
8923
8980
|
__decorate([
|
|
8924
8981
|
(0, server_1.Field)(),
|
|
8925
8982
|
(0, class_validator_1.MaxLength)(200),
|
|
@@ -11173,11 +11230,6 @@ __decorate([
|
|
|
11173
11230
|
(0, class_validator_1.MaxLength)(200),
|
|
11174
11231
|
__metadata("design:type", String)
|
|
11175
11232
|
], AuditLog_.prototype, "User", void 0);
|
|
11176
|
-
__decorate([
|
|
11177
|
-
(0, server_1.Field)({ nullable: true }),
|
|
11178
|
-
(0, class_validator_1.MaxLength)(510),
|
|
11179
|
-
__metadata("design:type", String)
|
|
11180
|
-
], AuditLog_.prototype, "Entity", void 0);
|
|
11181
11233
|
exports.AuditLog_ = AuditLog_ = __decorate([
|
|
11182
11234
|
(0, server_1.ObjectType)()
|
|
11183
11235
|
], AuditLog_);
|
|
@@ -15926,11 +15978,6 @@ __decorate([
|
|
|
15926
15978
|
(0, class_validator_1.MaxLength)(510),
|
|
15927
15979
|
__metadata("design:type", String)
|
|
15928
15980
|
], TaggedItem_.prototype, "Tag", void 0);
|
|
15929
|
-
__decorate([
|
|
15930
|
-
(0, server_1.Field)(),
|
|
15931
|
-
(0, class_validator_1.MaxLength)(510),
|
|
15932
|
-
__metadata("design:type", String)
|
|
15933
|
-
], TaggedItem_.prototype, "Entity", void 0);
|
|
15934
15981
|
exports.TaggedItem_ = TaggedItem_ = __decorate([
|
|
15935
15982
|
(0, server_1.ObjectType)()
|
|
15936
15983
|
], TaggedItem_);
|
|
@@ -18410,11 +18457,6 @@ __decorate([
|
|
|
18410
18457
|
(0, class_validator_1.MaxLength)(8),
|
|
18411
18458
|
__metadata("design:type", Date)
|
|
18412
18459
|
], CompanyIntegrationRecordMap_.prototype, "UpdatedAt", void 0);
|
|
18413
|
-
__decorate([
|
|
18414
|
-
(0, server_1.Field)(),
|
|
18415
|
-
(0, class_validator_1.MaxLength)(510),
|
|
18416
|
-
__metadata("design:type", String)
|
|
18417
|
-
], CompanyIntegrationRecordMap_.prototype, "Entity", void 0);
|
|
18418
18460
|
exports.CompanyIntegrationRecordMap_ = CompanyIntegrationRecordMap_ = __decorate([
|
|
18419
18461
|
(0, server_1.ObjectType)()
|
|
18420
18462
|
], CompanyIntegrationRecordMap_);
|
|
@@ -19259,11 +19301,6 @@ __decorate([
|
|
|
19259
19301
|
(0, class_validator_1.MaxLength)(510),
|
|
19260
19302
|
__metadata("design:type", String)
|
|
19261
19303
|
], QueryField_.prototype, "Query", void 0);
|
|
19262
|
-
__decorate([
|
|
19263
|
-
(0, server_1.Field)({ nullable: true }),
|
|
19264
|
-
(0, class_validator_1.MaxLength)(510),
|
|
19265
|
-
__metadata("design:type", String)
|
|
19266
|
-
], QueryField_.prototype, "SourceEntity", void 0);
|
|
19267
19304
|
exports.QueryField_ = QueryField_ = __decorate([
|
|
19268
19305
|
(0, server_1.ObjectType)()
|
|
19269
19306
|
], QueryField_);
|
|
@@ -19845,6 +19882,10 @@ __decorate([
|
|
|
19845
19882
|
(0, server_1.Field)(() => [QueryPermission_]),
|
|
19846
19883
|
__metadata("design:type", Array)
|
|
19847
19884
|
], Query_.prototype, "QueryPermissionsArray", void 0);
|
|
19885
|
+
__decorate([
|
|
19886
|
+
(0, server_1.Field)(() => [DataContextItem_]),
|
|
19887
|
+
__metadata("design:type", Array)
|
|
19888
|
+
], Query_.prototype, "DataContextItemsArray", void 0);
|
|
19848
19889
|
exports.Query_ = Query_ = __decorate([
|
|
19849
19890
|
(0, server_1.ObjectType)()
|
|
19850
19891
|
], Query_);
|
|
@@ -19991,6 +20032,12 @@ let QueryResolver = class QueryResolver extends server_1.ResolverBase {
|
|
|
19991
20032
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Permissions', await dataSource.query(sSQL));
|
|
19992
20033
|
return result;
|
|
19993
20034
|
}
|
|
20035
|
+
async DataContextItemsArray(query_, { dataSource, userPayload }, pubSub) {
|
|
20036
|
+
this.CheckUserReadPermissions('Data Context Items', userPayload);
|
|
20037
|
+
const sSQL = `SELECT * FROM [admin].[vwDataContextItems] WHERE [QueryID]=${query_.ID} ` + this.getRowLevelSecurityWhereClause('Data Context Items', userPayload, core_1.EntityPermissionType.Read, 'AND');
|
|
20038
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Data Context Items', await dataSource.query(sSQL));
|
|
20039
|
+
return result;
|
|
20040
|
+
}
|
|
19994
20041
|
async CreateQuery(input, { dataSource, userPayload }, pubSub) {
|
|
19995
20042
|
if (await this.BeforeCreate(dataSource, input)) {
|
|
19996
20043
|
const entityObject = await new core_1.Metadata().GetEntityObject('Queries', this.GetUserFromPayload(userPayload));
|
|
@@ -20088,6 +20135,15 @@ __decorate([
|
|
|
20088
20135
|
__metadata("design:paramtypes", [Query_, Object, server_1.PubSubEngine]),
|
|
20089
20136
|
__metadata("design:returntype", Promise)
|
|
20090
20137
|
], QueryResolver.prototype, "QueryPermissionsArray", null);
|
|
20138
|
+
__decorate([
|
|
20139
|
+
(0, server_1.FieldResolver)(() => [DataContextItem_]),
|
|
20140
|
+
__param(0, (0, server_1.Root)()),
|
|
20141
|
+
__param(1, (0, server_1.Ctx)()),
|
|
20142
|
+
__param(2, (0, server_1.PubSub)()),
|
|
20143
|
+
__metadata("design:type", Function),
|
|
20144
|
+
__metadata("design:paramtypes", [Query_, Object, server_1.PubSubEngine]),
|
|
20145
|
+
__metadata("design:returntype", Promise)
|
|
20146
|
+
], QueryResolver.prototype, "DataContextItemsArray", null);
|
|
20091
20147
|
__decorate([
|
|
20092
20148
|
(0, server_1.Mutation)(() => Query_),
|
|
20093
20149
|
__param(0, (0, server_1.Arg)('input', () => CreateQueryInput)),
|
|
@@ -20820,7 +20876,7 @@ __decorate([
|
|
|
20820
20876
|
__metadata("design:type", Date)
|
|
20821
20877
|
], EntityDocumentRun_.prototype, "EndedAt", void 0);
|
|
20822
20878
|
__decorate([
|
|
20823
|
-
(0, server_1.Field)(),
|
|
20879
|
+
(0, server_1.Field)({ description: 'Can be Pending, In Progress, Completed, or Failed' }),
|
|
20824
20880
|
(0, class_validator_1.MaxLength)(30),
|
|
20825
20881
|
__metadata("design:type", String)
|
|
20826
20882
|
], EntityDocumentRun_.prototype, "Status", void 0);
|
|
@@ -21611,11 +21667,6 @@ __decorate([
|
|
|
21611
21667
|
(0, class_validator_1.MaxLength)(8),
|
|
21612
21668
|
__metadata("design:type", Date)
|
|
21613
21669
|
], EntityDocument_.prototype, "UpdatedAt", void 0);
|
|
21614
|
-
__decorate([
|
|
21615
|
-
(0, server_1.Field)(),
|
|
21616
|
-
(0, class_validator_1.MaxLength)(510),
|
|
21617
|
-
__metadata("design:type", String)
|
|
21618
|
-
], EntityDocument_.prototype, "Entity", void 0);
|
|
21619
21670
|
__decorate([
|
|
21620
21671
|
(0, server_1.Field)(),
|
|
21621
21672
|
(0, class_validator_1.MaxLength)(200),
|
|
@@ -21858,28 +21909,40 @@ __decorate([
|
|
|
21858
21909
|
__metadata("design:type", Number)
|
|
21859
21910
|
], DataContextItem_.prototype, "ID", void 0);
|
|
21860
21911
|
__decorate([
|
|
21861
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
21912
|
+
(0, server_1.Field)(() => server_1.Int, { description: 'Foreign key to the DataContext table' }),
|
|
21862
21913
|
__metadata("design:type", Number)
|
|
21863
21914
|
], DataContextItem_.prototype, "DataContextID", void 0);
|
|
21864
21915
|
__decorate([
|
|
21865
|
-
(0, server_1.Field)(),
|
|
21916
|
+
(0, server_1.Field)({ description: 'The type of the item, either "view", "query", "full_entity", "single_record", or "sql"' }),
|
|
21866
21917
|
(0, class_validator_1.MaxLength)(100),
|
|
21867
21918
|
__metadata("design:type", String)
|
|
21868
21919
|
], DataContextItem_.prototype, "Type", void 0);
|
|
21869
21920
|
__decorate([
|
|
21870
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
21921
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true, description: 'Only used if Type=\'view\'' }),
|
|
21922
|
+
__metadata("design:type", Number)
|
|
21923
|
+
], DataContextItem_.prototype, "ViewID", void 0);
|
|
21924
|
+
__decorate([
|
|
21925
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true, description: 'Only used if Type=\'query\'' }),
|
|
21926
|
+
__metadata("design:type", Number)
|
|
21927
|
+
], DataContextItem_.prototype, "QueryID", void 0);
|
|
21928
|
+
__decorate([
|
|
21929
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true, description: 'Used if type=\'full_entity\' or type=\'single_record\'' }),
|
|
21930
|
+
__metadata("design:type", Number)
|
|
21931
|
+
], DataContextItem_.prototype, "EntityID", void 0);
|
|
21932
|
+
__decorate([
|
|
21933
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true, description: 'The ID for the record, only used when Type=\'single_record\'' }),
|
|
21871
21934
|
__metadata("design:type", Number)
|
|
21872
21935
|
], DataContextItem_.prototype, "RecordID", void 0);
|
|
21873
21936
|
__decorate([
|
|
21874
|
-
(0, server_1.Field)({ nullable: true }),
|
|
21937
|
+
(0, server_1.Field)({ nullable: true, description: 'Only used when Type=sql' }),
|
|
21875
21938
|
__metadata("design:type", String)
|
|
21876
21939
|
], DataContextItem_.prototype, "SQL", void 0);
|
|
21877
21940
|
__decorate([
|
|
21878
|
-
(0, server_1.Field)({ nullable: true }),
|
|
21941
|
+
(0, server_1.Field)({ nullable: true, description: 'Optionally used to cache results of an item. This can be used for performance optimization, and also for having snapshots of data for historical comparisons.' }),
|
|
21879
21942
|
__metadata("design:type", String)
|
|
21880
21943
|
], DataContextItem_.prototype, "DataJSON", void 0);
|
|
21881
21944
|
__decorate([
|
|
21882
|
-
(0, server_1.Field)({ nullable: true }),
|
|
21945
|
+
(0, server_1.Field)({ nullable: true, description: 'If DataJSON is populated, this field will show the date the the data was captured' }),
|
|
21883
21946
|
(0, class_validator_1.MaxLength)(8),
|
|
21884
21947
|
__metadata("design:type", Date)
|
|
21885
21948
|
], DataContextItem_.prototype, "LastRefreshedAt", void 0);
|
|
@@ -21898,8 +21961,18 @@ __decorate([
|
|
|
21898
21961
|
(0, class_validator_1.MaxLength)(510),
|
|
21899
21962
|
__metadata("design:type", String)
|
|
21900
21963
|
], DataContextItem_.prototype, "DataContext", void 0);
|
|
21964
|
+
__decorate([
|
|
21965
|
+
(0, server_1.Field)({ nullable: true }),
|
|
21966
|
+
(0, class_validator_1.MaxLength)(200),
|
|
21967
|
+
__metadata("design:type", String)
|
|
21968
|
+
], DataContextItem_.prototype, "View", void 0);
|
|
21969
|
+
__decorate([
|
|
21970
|
+
(0, server_1.Field)({ nullable: true }),
|
|
21971
|
+
(0, class_validator_1.MaxLength)(510),
|
|
21972
|
+
__metadata("design:type", String)
|
|
21973
|
+
], DataContextItem_.prototype, "Query", void 0);
|
|
21901
21974
|
exports.DataContextItem_ = DataContextItem_ = __decorate([
|
|
21902
|
-
(0, server_1.ObjectType)()
|
|
21975
|
+
(0, server_1.ObjectType)({ description: 'Data Context Items store information about each item within a Data Context. Each item stores a link to a view, query, or raw sql statement and can optionally cache the JSON representing the last run of that data object as well.' })
|
|
21903
21976
|
], DataContextItem_);
|
|
21904
21977
|
let CreateDataContextItemInput = class CreateDataContextItemInput {
|
|
21905
21978
|
};
|
|
@@ -21913,7 +21986,19 @@ __decorate([
|
|
|
21913
21986
|
__metadata("design:type", String)
|
|
21914
21987
|
], CreateDataContextItemInput.prototype, "Type", void 0);
|
|
21915
21988
|
__decorate([
|
|
21916
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
21989
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
21990
|
+
__metadata("design:type", Number)
|
|
21991
|
+
], CreateDataContextItemInput.prototype, "ViewID", void 0);
|
|
21992
|
+
__decorate([
|
|
21993
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
21994
|
+
__metadata("design:type", Number)
|
|
21995
|
+
], CreateDataContextItemInput.prototype, "QueryID", void 0);
|
|
21996
|
+
__decorate([
|
|
21997
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
21998
|
+
__metadata("design:type", Number)
|
|
21999
|
+
], CreateDataContextItemInput.prototype, "EntityID", void 0);
|
|
22000
|
+
__decorate([
|
|
22001
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
21917
22002
|
__metadata("design:type", Number)
|
|
21918
22003
|
], CreateDataContextItemInput.prototype, "RecordID", void 0);
|
|
21919
22004
|
__decorate([
|
|
@@ -21947,7 +22032,19 @@ __decorate([
|
|
|
21947
22032
|
__metadata("design:type", String)
|
|
21948
22033
|
], UpdateDataContextItemInput.prototype, "Type", void 0);
|
|
21949
22034
|
__decorate([
|
|
21950
|
-
(0, server_1.Field)(() => server_1.Int),
|
|
22035
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22036
|
+
__metadata("design:type", Number)
|
|
22037
|
+
], UpdateDataContextItemInput.prototype, "ViewID", void 0);
|
|
22038
|
+
__decorate([
|
|
22039
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22040
|
+
__metadata("design:type", Number)
|
|
22041
|
+
], UpdateDataContextItemInput.prototype, "QueryID", void 0);
|
|
22042
|
+
__decorate([
|
|
22043
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
22044
|
+
__metadata("design:type", Number)
|
|
22045
|
+
], UpdateDataContextItemInput.prototype, "EntityID", void 0);
|
|
22046
|
+
__decorate([
|
|
22047
|
+
(0, server_1.Field)(() => server_1.Int, { nullable: true }),
|
|
21951
22048
|
__metadata("design:type", Number)
|
|
21952
22049
|
], UpdateDataContextItemInput.prototype, "RecordID", void 0);
|
|
21953
22050
|
__decorate([
|
|
@@ -22161,7 +22258,7 @@ __decorate([
|
|
|
22161
22258
|
__metadata("design:type", Array)
|
|
22162
22259
|
], DataContext_.prototype, "DataContextItemsArray", void 0);
|
|
22163
22260
|
exports.DataContext_ = DataContext_ = __decorate([
|
|
22164
|
-
(0, server_1.ObjectType)()
|
|
22261
|
+
(0, server_1.ObjectType)({ description: 'Data Contexts are a primitive within the MemberJunction architecture. They store information about data contexts which are groups of data including views, queries, or raw SQL statements. Data contexts can be used in conversations, reports and more.' })
|
|
22165
22262
|
], DataContext_);
|
|
22166
22263
|
let CreateDataContextInput = class CreateDataContextInput {
|
|
22167
22264
|
};
|