@memberjunction/server 1.8.0 → 2.0.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/CHANGELOG.json +160 -1
- package/CHANGELOG.md +34 -2
- package/package.json +30 -39
- package/src/apolloServer/index.ts +0 -1
- package/src/auth/newUsers.ts +4 -3
- package/src/context.ts +19 -27
- package/src/entitySubclasses/entityPermissions.server.ts +3 -3
- package/src/generated/generated.ts +13440 -12226
- package/src/generic/ResolverBase.ts +297 -172
- package/src/generic/RunViewResolver.ts +204 -14
- package/src/index.ts +18 -19
- package/src/resolvers/AskSkipResolver.ts +44 -44
- package/src/resolvers/ColorResolver.ts +3 -14
- package/src/resolvers/DatasetResolver.ts +4 -4
- package/src/resolvers/EntityCommunicationsResolver.ts +42 -20
- package/src/resolvers/FileCategoryResolver.ts +2 -2
- package/src/resolvers/FileResolver.ts +6 -4
- package/src/resolvers/MergeRecordsResolver.ts +3 -2
- package/src/resolvers/PotentialDuplicateRecordResolver.ts +48 -40
- package/src/resolvers/QueryResolver.ts +2 -2
- package/src/resolvers/ReportResolver.ts +6 -6
- package/src/resolvers/UserFavoriteResolver.ts +8 -8
- package/src/resolvers/UserResolver.ts +3 -1
- package/src/resolvers/UserViewResolver.ts +1 -1
- package/src/types.ts +21 -0
- package/tsconfig.json +3 -4
- package/dist/apolloServer/TransactionPlugin.d.ts +0 -4
- package/dist/apolloServer/TransactionPlugin.d.ts.map +0 -1
- package/dist/apolloServer/TransactionPlugin.js +0 -49
- package/dist/apolloServer/TransactionPlugin.js.map +0 -1
- package/dist/apolloServer/index.d.ts +0 -11
- package/dist/apolloServer/index.d.ts.map +0 -1
- package/dist/apolloServer/index.js +0 -27
- package/dist/apolloServer/index.js.map +0 -1
- package/dist/auth/exampleNewUserSubClass.d.ts +0 -6
- package/dist/auth/exampleNewUserSubClass.d.ts.map +0 -1
- package/dist/auth/exampleNewUserSubClass.js +0 -54
- package/dist/auth/exampleNewUserSubClass.js.map +0 -1
- package/dist/auth/index.d.ts +0 -30
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js +0 -129
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/newUsers.d.ts +0 -5
- package/dist/auth/newUsers.d.ts.map +0 -1
- package/dist/auth/newUsers.js +0 -66
- package/dist/auth/newUsers.js.map +0 -1
- package/dist/auth/tokenExpiredError.d.ts +0 -5
- package/dist/auth/tokenExpiredError.d.ts.map +0 -1
- package/dist/auth/tokenExpiredError.js +0 -16
- package/dist/auth/tokenExpiredError.js.map +0 -1
- package/dist/cache.d.ts +0 -3
- package/dist/cache.d.ts.map +0 -1
- package/dist/cache.js +0 -11
- package/dist/cache.js.map +0 -1
- package/dist/config.d.ts +0 -196
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -72
- package/dist/config.js.map +0 -1
- package/dist/context.d.ts +0 -17
- package/dist/context.d.ts.map +0 -1
- package/dist/context.js +0 -114
- package/dist/context.js.map +0 -1
- package/dist/directives/Public.d.ts +0 -4
- package/dist/directives/Public.d.ts.map +0 -1
- package/dist/directives/Public.js +0 -34
- package/dist/directives/Public.js.map +0 -1
- package/dist/directives/index.d.ts +0 -2
- package/dist/directives/index.d.ts.map +0 -1
- package/dist/directives/index.js +0 -18
- package/dist/directives/index.js.map +0 -1
- package/dist/entitySubclasses/DuplicateRunEntity.server.d.ts +0 -6
- package/dist/entitySubclasses/DuplicateRunEntity.server.d.ts.map +0 -1
- package/dist/entitySubclasses/DuplicateRunEntity.server.js +0 -37
- package/dist/entitySubclasses/DuplicateRunEntity.server.js.map +0 -1
- package/dist/entitySubclasses/EntityBehavior.server.d.ts +0 -29
- package/dist/entitySubclasses/EntityBehavior.server.d.ts.map +0 -1
- package/dist/entitySubclasses/EntityBehavior.server.js +0 -213
- package/dist/entitySubclasses/EntityBehavior.server.js.map +0 -1
- package/dist/entitySubclasses/entityPermissions.server.d.ts +0 -23
- package/dist/entitySubclasses/entityPermissions.server.d.ts.map +0 -1
- package/dist/entitySubclasses/entityPermissions.server.js +0 -99
- package/dist/entitySubclasses/entityPermissions.server.js.map +0 -1
- package/dist/entitySubclasses/userViewEntity.server.d.ts +0 -13
- package/dist/entitySubclasses/userViewEntity.server.d.ts.map +0 -1
- package/dist/entitySubclasses/userViewEntity.server.js +0 -164
- package/dist/entitySubclasses/userViewEntity.server.js.map +0 -1
- package/dist/generated/generated.d.ts +0 -6420
- package/dist/generated/generated.d.ts.map +0 -1
- package/dist/generated/generated.js +0 -34770
- package/dist/generated/generated.js.map +0 -1
- package/dist/generic/DeleteOptionsInput.d.ts +0 -5
- package/dist/generic/DeleteOptionsInput.d.ts.map +0 -1
- package/dist/generic/DeleteOptionsInput.js +0 -28
- package/dist/generic/DeleteOptionsInput.js.map +0 -1
- package/dist/generic/KeyInputOutputTypes.d.ts +0 -16
- package/dist/generic/KeyInputOutputTypes.d.ts.map +0 -1
- package/dist/generic/KeyInputOutputTypes.js +0 -62
- package/dist/generic/KeyInputOutputTypes.js.map +0 -1
- package/dist/generic/KeyValuePairInput.d.ts +0 -5
- package/dist/generic/KeyValuePairInput.d.ts.map +0 -1
- package/dist/generic/KeyValuePairInput.js +0 -28
- package/dist/generic/KeyValuePairInput.js.map +0 -1
- package/dist/generic/PushStatusResolver.d.ts +0 -14
- package/dist/generic/PushStatusResolver.d.ts.map +0 -1
- package/dist/generic/PushStatusResolver.js +0 -58
- package/dist/generic/PushStatusResolver.js.map +0 -1
- package/dist/generic/ResolverBase.d.ts +0 -37
- package/dist/generic/ResolverBase.d.ts.map +0 -1
- package/dist/generic/ResolverBase.js +0 -468
- package/dist/generic/ResolverBase.js.map +0 -1
- package/dist/generic/RunViewResolver.d.ts +0 -88
- package/dist/generic/RunViewResolver.d.ts.map +0 -1
- package/dist/generic/RunViewResolver.js +0 -443
- package/dist/generic/RunViewResolver.js.map +0 -1
- package/dist/index.d.ts +0 -28
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -145
- package/dist/index.js.map +0 -1
- package/dist/orm.d.ts +0 -4
- package/dist/orm.d.ts.map +0 -1
- package/dist/orm.js +0 -34
- package/dist/orm.js.map +0 -1
- package/dist/resolvers/AskSkipResolver.d.ts +0 -54
- package/dist/resolvers/AskSkipResolver.d.ts.map +0 -1
- package/dist/resolvers/AskSkipResolver.js +0 -800
- package/dist/resolvers/AskSkipResolver.js.map +0 -1
- package/dist/resolvers/ColorResolver.d.ts +0 -22
- package/dist/resolvers/ColorResolver.d.ts.map +0 -1
- package/dist/resolvers/ColorResolver.js +0 -94
- package/dist/resolvers/ColorResolver.js.map +0 -1
- package/dist/resolvers/DatasetResolver.d.ts +0 -42
- package/dist/resolvers/DatasetResolver.d.ts.map +0 -1
- package/dist/resolvers/DatasetResolver.js +0 -168
- package/dist/resolvers/DatasetResolver.js.map +0 -1
- package/dist/resolvers/EntityCommunicationsResolver.d.ts +0 -49
- package/dist/resolvers/EntityCommunicationsResolver.d.ts.map +0 -1
- package/dist/resolvers/EntityCommunicationsResolver.js +0 -228
- package/dist/resolvers/EntityCommunicationsResolver.js.map +0 -1
- package/dist/resolvers/EntityRecordNameResolver.d.ts +0 -21
- package/dist/resolvers/EntityRecordNameResolver.d.ts.map +0 -1
- package/dist/resolvers/EntityRecordNameResolver.js +0 -113
- package/dist/resolvers/EntityRecordNameResolver.js.map +0 -1
- package/dist/resolvers/EntityResolver.d.ts +0 -6
- package/dist/resolvers/EntityResolver.d.ts.map +0 -1
- package/dist/resolvers/EntityResolver.js +0 -60
- package/dist/resolvers/EntityResolver.js.map +0 -1
- package/dist/resolvers/FileCategoryResolver.d.ts +0 -6
- package/dist/resolvers/FileCategoryResolver.d.ts.map +0 -1
- package/dist/resolvers/FileCategoryResolver.js +0 -65
- package/dist/resolvers/FileCategoryResolver.js.map +0 -1
- package/dist/resolvers/FileResolver.d.ts +0 -24
- package/dist/resolvers/FileResolver.d.ts.map +0 -1
- package/dist/resolvers/FileResolver.js +0 -162
- package/dist/resolvers/FileResolver.js.map +0 -1
- package/dist/resolvers/MergeRecordsResolver.d.ts +0 -59
- package/dist/resolvers/MergeRecordsResolver.d.ts.map +0 -1
- package/dist/resolvers/MergeRecordsResolver.js +0 -256
- package/dist/resolvers/MergeRecordsResolver.js.map +0 -1
- package/dist/resolvers/PotentialDuplicateRecordResolver.d.ts +0 -29
- package/dist/resolvers/PotentialDuplicateRecordResolver.d.ts.map +0 -1
- package/dist/resolvers/PotentialDuplicateRecordResolver.js +0 -127
- package/dist/resolvers/PotentialDuplicateRecordResolver.js.map +0 -1
- package/dist/resolvers/QueryResolver.d.ts +0 -13
- package/dist/resolvers/QueryResolver.d.ts.map +0 -1
- package/dist/resolvers/QueryResolver.js +0 -74
- package/dist/resolvers/QueryResolver.js.map +0 -1
- package/dist/resolvers/ReportResolver.d.ts +0 -20
- package/dist/resolvers/ReportResolver.d.ts.map +0 -1
- package/dist/resolvers/ReportResolver.js +0 -175
- package/dist/resolvers/ReportResolver.js.map +0 -1
- package/dist/resolvers/UserFavoriteResolver.d.ts +0 -42
- package/dist/resolvers/UserFavoriteResolver.d.ts.map +0 -1
- package/dist/resolvers/UserFavoriteResolver.js +0 -221
- package/dist/resolvers/UserFavoriteResolver.js.map +0 -1
- package/dist/resolvers/UserResolver.d.ts +0 -10
- package/dist/resolvers/UserResolver.d.ts.map +0 -1
- package/dist/resolvers/UserResolver.js +0 -72
- package/dist/resolvers/UserResolver.js.map +0 -1
- package/dist/resolvers/UserViewResolver.d.ts +0 -13
- package/dist/resolvers/UserViewResolver.d.ts.map +0 -1
- package/dist/resolvers/UserViewResolver.js +0 -102
- package/dist/resolvers/UserViewResolver.js.map +0 -1
- package/dist/types.d.ts +0 -17
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
- package/dist/util.d.ts +0 -4
- package/dist/util.d.ts.map +0 -1
- package/dist/util.js +0 -89
- package/dist/util.js.map +0 -1
- package/src/entitySubclasses/EntityBehavior.server.ts +0 -241
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.RunViewResolver = exports.RunViewResult = exports.RunViewResultRow = exports.RunDynamicViewInput = exports.RunViewByNameInput = exports.RunViewByIDInput = void 0;
|
|
16
|
-
const type_graphql_1 = require("type-graphql");
|
|
17
|
-
const ResolverBase_1 = require("./ResolverBase");
|
|
18
|
-
let RunViewByIDInput = class RunViewByIDInput {
|
|
19
|
-
};
|
|
20
|
-
exports.RunViewByIDInput = RunViewByIDInput;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], RunViewByIDInput.prototype, "ViewID", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
27
|
-
nullable: true,
|
|
28
|
-
description: 'Optional, pass in a valid condition to append to the view WHERE clause. For example, UpdatedAt >= Some Date - if not provided, no filter is applied',
|
|
29
|
-
}),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], RunViewByIDInput.prototype, "ExtraFilter", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
34
|
-
nullable: true,
|
|
35
|
-
description: 'Optional, pass in a valid order by clause sort the results on the server. For example, CreatedAt DESC to order by row creation date in reverse order. Any Valid SQL Order By clause is okay - if not provided, no server-side sorting is applied',
|
|
36
|
-
}),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], RunViewByIDInput.prototype, "OrderBy", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, type_graphql_1.Field)(() => [String], {
|
|
41
|
-
nullable: true,
|
|
42
|
-
description: 'Optional, array of entity field names, if not provided, ID and all other columns used in the view columns are returned. If provided, only the fields in the array are returned.',
|
|
43
|
-
}),
|
|
44
|
-
__metadata("design:type", Array)
|
|
45
|
-
], RunViewByIDInput.prototype, "Fields", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true }),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], RunViewByIDInput.prototype, "UserSearchString", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int, { nullable: true, description: 'Pass in a UserViewRun ID value to exclude all records from that run from results' }),
|
|
52
|
-
__metadata("design:type", Number)
|
|
53
|
-
], RunViewByIDInput.prototype, "ExcludeUserViewRunID", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
56
|
-
nullable: true,
|
|
57
|
-
description: 'Pass in a valid condition to append to the view WHERE clause to override the Exclude List. For example, UpdatedAt >= Some Date',
|
|
58
|
-
}),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], RunViewByIDInput.prototype, "OverrideExcludeFilter", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, type_graphql_1.Field)(() => Boolean, {
|
|
63
|
-
nullable: true,
|
|
64
|
-
description: 'If set to True, the results of this view are saved into a new UserViewRun record and the UserViewRun.ID is passed back in the results.',
|
|
65
|
-
}),
|
|
66
|
-
__metadata("design:type", Boolean)
|
|
67
|
-
], RunViewByIDInput.prototype, "SaveViewResults", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, type_graphql_1.Field)(() => Boolean, {
|
|
70
|
-
nullable: true,
|
|
71
|
-
description: 'if set to true, the resulting data will filter out ANY records that were ever returned by this view, when the SaveViewResults property was set to true. This is useful if you want to run a particular view over time and make sure the results returned each time are new to the view.',
|
|
72
|
-
}),
|
|
73
|
-
__metadata("design:type", Boolean)
|
|
74
|
-
], RunViewByIDInput.prototype, "ExcludeDataFromAllPriorViewRuns", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, type_graphql_1.Field)(() => Boolean, {
|
|
77
|
-
nullable: true,
|
|
78
|
-
description: 'if set to true, if there IS any UserViewMaxRows property set for the entity in question, it will be IGNORED. This is useful in scenarios where you want to programmatically run a view and get ALL the data back, regardless of the MaxRows setting on the entity.',
|
|
79
|
-
}),
|
|
80
|
-
__metadata("design:type", Boolean)
|
|
81
|
-
], RunViewByIDInput.prototype, "IgnoreMaxRows", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int, {
|
|
84
|
-
nullable: true,
|
|
85
|
-
description: 'if a value > 0 is provided, and IgnoreMaxRows is set to false, this value is used for the max rows to be returned by the view.',
|
|
86
|
-
}),
|
|
87
|
-
__metadata("design:type", Number)
|
|
88
|
-
], RunViewByIDInput.prototype, "MaxRows", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, type_graphql_1.Field)(() => Boolean, {
|
|
91
|
-
nullable: true,
|
|
92
|
-
description: 'If set to true, an Audit Log record will be created for the view run, regardless of the property settings in the entity for auditing view runs',
|
|
93
|
-
}),
|
|
94
|
-
__metadata("design:type", Boolean)
|
|
95
|
-
], RunViewByIDInput.prototype, "ForceAuditLog", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
98
|
-
nullable: true,
|
|
99
|
-
description: "if provided and either ForceAuditLog is set, or the entity's property settings for logging view runs are set to true, this will be used as the Audit Log Description.",
|
|
100
|
-
}),
|
|
101
|
-
__metadata("design:type", String)
|
|
102
|
-
], RunViewByIDInput.prototype, "AuditLogDescription", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
105
|
-
nullable: true,
|
|
106
|
-
description: 'Optional, pass in entity_object, simple, or count_only as options to specify the type of result you want back. Defaults to simple if not provided',
|
|
107
|
-
}),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], RunViewByIDInput.prototype, "ResultType", void 0);
|
|
110
|
-
exports.RunViewByIDInput = RunViewByIDInput = __decorate([
|
|
111
|
-
(0, type_graphql_1.InputType)()
|
|
112
|
-
], RunViewByIDInput);
|
|
113
|
-
let RunViewByNameInput = class RunViewByNameInput {
|
|
114
|
-
};
|
|
115
|
-
exports.RunViewByNameInput = RunViewByNameInput;
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, type_graphql_1.Field)(() => String),
|
|
118
|
-
__metadata("design:type", String)
|
|
119
|
-
], RunViewByNameInput.prototype, "ViewName", void 0);
|
|
120
|
-
__decorate([
|
|
121
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
122
|
-
nullable: true,
|
|
123
|
-
description: 'Optional, pass in a valid condition to append to the view WHERE clause. For example, UpdatedAt >= Some Date - if not provided, no filter is applied',
|
|
124
|
-
}),
|
|
125
|
-
__metadata("design:type", String)
|
|
126
|
-
], RunViewByNameInput.prototype, "ExtraFilter", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
129
|
-
nullable: true,
|
|
130
|
-
description: 'Optional, pass in a valid order by clause sort the results on the server. For example, CreatedAt DESC to order by row creation date in reverse order. Any Valid SQL Order By clause is okay - if not provided, no server-side sorting is applied',
|
|
131
|
-
}),
|
|
132
|
-
__metadata("design:type", String)
|
|
133
|
-
], RunViewByNameInput.prototype, "OrderBy", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
(0, type_graphql_1.Field)(() => [String], {
|
|
136
|
-
nullable: true,
|
|
137
|
-
description: 'Optional, array of entity field names, if not provided, ID and all other columns used in the view are returned. If provided, only the fields in the array are returned.',
|
|
138
|
-
}),
|
|
139
|
-
__metadata("design:type", Array)
|
|
140
|
-
], RunViewByNameInput.prototype, "Fields", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true }),
|
|
143
|
-
__metadata("design:type", String)
|
|
144
|
-
], RunViewByNameInput.prototype, "UserSearchString", void 0);
|
|
145
|
-
__decorate([
|
|
146
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int, { nullable: true, description: 'Pass in a UserViewRun ID value to exclude all records from that run from results' }),
|
|
147
|
-
__metadata("design:type", Number)
|
|
148
|
-
], RunViewByNameInput.prototype, "ExcludeUserViewRunID", void 0);
|
|
149
|
-
__decorate([
|
|
150
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
151
|
-
nullable: true,
|
|
152
|
-
description: 'Pass in a valid condition to append to the view WHERE clause to override the Exclude List. For example, UpdatedAt >= Some Date',
|
|
153
|
-
}),
|
|
154
|
-
__metadata("design:type", String)
|
|
155
|
-
], RunViewByNameInput.prototype, "OverrideExcludeFilter", void 0);
|
|
156
|
-
__decorate([
|
|
157
|
-
(0, type_graphql_1.Field)(() => Boolean, {
|
|
158
|
-
nullable: true,
|
|
159
|
-
description: 'If set to True, the results of this view are saved into a new UserViewRun record and the UserViewRun.ID is passed back in the results.',
|
|
160
|
-
}),
|
|
161
|
-
__metadata("design:type", Boolean)
|
|
162
|
-
], RunViewByNameInput.prototype, "SaveViewResults", void 0);
|
|
163
|
-
__decorate([
|
|
164
|
-
(0, type_graphql_1.Field)(() => Boolean, {
|
|
165
|
-
nullable: true,
|
|
166
|
-
description: 'if set to true, the resulting data will filter out ANY records that were ever returned by this view, when the SaveViewResults property was set to true. This is useful if you want to run a particular view over time and make sure the results returned each time are new to the view.',
|
|
167
|
-
}),
|
|
168
|
-
__metadata("design:type", Boolean)
|
|
169
|
-
], RunViewByNameInput.prototype, "ExcludeDataFromAllPriorViewRuns", void 0);
|
|
170
|
-
__decorate([
|
|
171
|
-
(0, type_graphql_1.Field)(() => Boolean, {
|
|
172
|
-
nullable: true,
|
|
173
|
-
description: 'if set to true, if there IS any UserViewMaxRows property set for the entity in question, it will be IGNORED. This is useful in scenarios where you want to programmatically run a view and get ALL the data back, regardless of the MaxRows setting on the entity.',
|
|
174
|
-
}),
|
|
175
|
-
__metadata("design:type", Boolean)
|
|
176
|
-
], RunViewByNameInput.prototype, "IgnoreMaxRows", void 0);
|
|
177
|
-
__decorate([
|
|
178
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int, {
|
|
179
|
-
nullable: true,
|
|
180
|
-
description: 'if a value > 0 is provided, and IgnoreMaxRows is set to false, this value is used for the max rows to be returned by the view.',
|
|
181
|
-
}),
|
|
182
|
-
__metadata("design:type", Number)
|
|
183
|
-
], RunViewByNameInput.prototype, "MaxRows", void 0);
|
|
184
|
-
__decorate([
|
|
185
|
-
(0, type_graphql_1.Field)(() => Boolean, {
|
|
186
|
-
nullable: true,
|
|
187
|
-
description: 'If set to true, an Audit Log record will be created for the view run, regardless of the property settings in the entity for auditing view runs',
|
|
188
|
-
}),
|
|
189
|
-
__metadata("design:type", Boolean)
|
|
190
|
-
], RunViewByNameInput.prototype, "ForceAuditLog", void 0);
|
|
191
|
-
__decorate([
|
|
192
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
193
|
-
nullable: true,
|
|
194
|
-
description: "if provided and either ForceAuditLog is set, or the entity's property settings for logging view runs are set to true, this will be used as the Audit Log Description.",
|
|
195
|
-
}),
|
|
196
|
-
__metadata("design:type", String)
|
|
197
|
-
], RunViewByNameInput.prototype, "AuditLogDescription", void 0);
|
|
198
|
-
__decorate([
|
|
199
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
200
|
-
nullable: true,
|
|
201
|
-
description: 'Optional, pass in entity_object, simple, or count_only as options to specify the type of result you want back. Defaults to simple if not provided',
|
|
202
|
-
}),
|
|
203
|
-
__metadata("design:type", String)
|
|
204
|
-
], RunViewByNameInput.prototype, "ResultType", void 0);
|
|
205
|
-
exports.RunViewByNameInput = RunViewByNameInput = __decorate([
|
|
206
|
-
(0, type_graphql_1.InputType)()
|
|
207
|
-
], RunViewByNameInput);
|
|
208
|
-
let RunDynamicViewInput = class RunDynamicViewInput {
|
|
209
|
-
};
|
|
210
|
-
exports.RunDynamicViewInput = RunDynamicViewInput;
|
|
211
|
-
__decorate([
|
|
212
|
-
(0, type_graphql_1.Field)(() => String),
|
|
213
|
-
__metadata("design:type", String)
|
|
214
|
-
], RunDynamicViewInput.prototype, "EntityName", void 0);
|
|
215
|
-
__decorate([
|
|
216
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
217
|
-
nullable: true,
|
|
218
|
-
description: 'Optional, pass in a valid condition to use as the view WHERE clause. For example, UpdatedAt >= Some Date - if not provided, no filter is applied',
|
|
219
|
-
}),
|
|
220
|
-
__metadata("design:type", String)
|
|
221
|
-
], RunDynamicViewInput.prototype, "ExtraFilter", void 0);
|
|
222
|
-
__decorate([
|
|
223
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
224
|
-
nullable: true,
|
|
225
|
-
description: 'Optional, pass in a valid order by clause sort the results on the server. For example, CreatedAt DESC to order by row creation date in reverse order. Any Valid SQL Order By clause is okay - if not provided, no server-side sorting is applied',
|
|
226
|
-
}),
|
|
227
|
-
__metadata("design:type", String)
|
|
228
|
-
], RunDynamicViewInput.prototype, "OrderBy", void 0);
|
|
229
|
-
__decorate([
|
|
230
|
-
(0, type_graphql_1.Field)(() => [String], {
|
|
231
|
-
nullable: true,
|
|
232
|
-
description: 'Optional, array of entity field names, if not provided, all columns are returned. If provided, only the fields in the array are returned.',
|
|
233
|
-
}),
|
|
234
|
-
__metadata("design:type", Array)
|
|
235
|
-
], RunDynamicViewInput.prototype, "Fields", void 0);
|
|
236
|
-
__decorate([
|
|
237
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true }),
|
|
238
|
-
__metadata("design:type", String)
|
|
239
|
-
], RunDynamicViewInput.prototype, "UserSearchString", void 0);
|
|
240
|
-
__decorate([
|
|
241
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int, { nullable: true, description: 'Pass in a UserViewRun ID value to exclude all records from that run from results' }),
|
|
242
|
-
__metadata("design:type", Number)
|
|
243
|
-
], RunDynamicViewInput.prototype, "ExcludeUserViewRunID", void 0);
|
|
244
|
-
__decorate([
|
|
245
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
246
|
-
nullable: true,
|
|
247
|
-
description: 'Pass in a valid condition to append to the view WHERE clause to override the Exclude List. For example, UpdatedAt >= Some Date',
|
|
248
|
-
}),
|
|
249
|
-
__metadata("design:type", String)
|
|
250
|
-
], RunDynamicViewInput.prototype, "OverrideExcludeFilter", void 0);
|
|
251
|
-
__decorate([
|
|
252
|
-
(0, type_graphql_1.Field)(() => Boolean, {
|
|
253
|
-
nullable: true,
|
|
254
|
-
description: 'if set to true, if there IS any UserViewMaxRows property set for the entity in question, it will be IGNORED. This is useful in scenarios where you want to programmatically run a view and get ALL the data back, regardless of the MaxRows setting on the entity.',
|
|
255
|
-
}),
|
|
256
|
-
__metadata("design:type", Boolean)
|
|
257
|
-
], RunDynamicViewInput.prototype, "IgnoreMaxRows", void 0);
|
|
258
|
-
__decorate([
|
|
259
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int, {
|
|
260
|
-
nullable: true,
|
|
261
|
-
description: 'if a value > 0 is provided, and IgnoreMaxRows is set to false, this value is used for the max rows to be returned by the view.',
|
|
262
|
-
}),
|
|
263
|
-
__metadata("design:type", Number)
|
|
264
|
-
], RunDynamicViewInput.prototype, "MaxRows", void 0);
|
|
265
|
-
__decorate([
|
|
266
|
-
(0, type_graphql_1.Field)(() => Boolean, {
|
|
267
|
-
nullable: true,
|
|
268
|
-
description: 'If set to true, an Audit Log record will be created for the view run, regardless of the property settings in the entity for auditing view runs',
|
|
269
|
-
}),
|
|
270
|
-
__metadata("design:type", Boolean)
|
|
271
|
-
], RunDynamicViewInput.prototype, "ForceAuditLog", void 0);
|
|
272
|
-
__decorate([
|
|
273
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
274
|
-
nullable: true,
|
|
275
|
-
description: "if provided and either ForceAuditLog is set, or the entity's property settings for logging view runs are set to true, this will be used as the Audit Log Description.",
|
|
276
|
-
}),
|
|
277
|
-
__metadata("design:type", String)
|
|
278
|
-
], RunDynamicViewInput.prototype, "AuditLogDescription", void 0);
|
|
279
|
-
__decorate([
|
|
280
|
-
(0, type_graphql_1.Field)(() => String, {
|
|
281
|
-
nullable: true,
|
|
282
|
-
description: 'Optional, pass in entity_object, simple, or count_only as options to specify the type of result you want back. Defaults to simple if not provided',
|
|
283
|
-
}),
|
|
284
|
-
__metadata("design:type", String)
|
|
285
|
-
], RunDynamicViewInput.prototype, "ResultType", void 0);
|
|
286
|
-
exports.RunDynamicViewInput = RunDynamicViewInput = __decorate([
|
|
287
|
-
(0, type_graphql_1.InputType)()
|
|
288
|
-
], RunDynamicViewInput);
|
|
289
|
-
let RunViewResultRow = class RunViewResultRow {
|
|
290
|
-
};
|
|
291
|
-
exports.RunViewResultRow = RunViewResultRow;
|
|
292
|
-
__decorate([
|
|
293
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int),
|
|
294
|
-
__metadata("design:type", Number)
|
|
295
|
-
], RunViewResultRow.prototype, "ID", void 0);
|
|
296
|
-
__decorate([
|
|
297
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int),
|
|
298
|
-
__metadata("design:type", Number)
|
|
299
|
-
], RunViewResultRow.prototype, "EntityID", void 0);
|
|
300
|
-
__decorate([
|
|
301
|
-
(0, type_graphql_1.Field)(() => String),
|
|
302
|
-
__metadata("design:type", String)
|
|
303
|
-
], RunViewResultRow.prototype, "Data", void 0);
|
|
304
|
-
exports.RunViewResultRow = RunViewResultRow = __decorate([
|
|
305
|
-
(0, type_graphql_1.ObjectType)()
|
|
306
|
-
], RunViewResultRow);
|
|
307
|
-
let RunViewResult = class RunViewResult {
|
|
308
|
-
};
|
|
309
|
-
exports.RunViewResult = RunViewResult;
|
|
310
|
-
__decorate([
|
|
311
|
-
(0, type_graphql_1.Field)(() => [RunViewResultRow]),
|
|
312
|
-
__metadata("design:type", Array)
|
|
313
|
-
], RunViewResult.prototype, "Results", void 0);
|
|
314
|
-
__decorate([
|
|
315
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int, { nullable: true }),
|
|
316
|
-
__metadata("design:type", Number)
|
|
317
|
-
], RunViewResult.prototype, "UserViewRunID", void 0);
|
|
318
|
-
__decorate([
|
|
319
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int, { nullable: true }),
|
|
320
|
-
__metadata("design:type", Number)
|
|
321
|
-
], RunViewResult.prototype, "RowCount", void 0);
|
|
322
|
-
__decorate([
|
|
323
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int, { nullable: true }),
|
|
324
|
-
__metadata("design:type", Number)
|
|
325
|
-
], RunViewResult.prototype, "TotalRowCount", void 0);
|
|
326
|
-
__decorate([
|
|
327
|
-
(0, type_graphql_1.Field)(() => type_graphql_1.Int, { nullable: true }),
|
|
328
|
-
__metadata("design:type", Number)
|
|
329
|
-
], RunViewResult.prototype, "ExecutionTime", void 0);
|
|
330
|
-
__decorate([
|
|
331
|
-
(0, type_graphql_1.Field)(() => String, { nullable: true }),
|
|
332
|
-
__metadata("design:type", String)
|
|
333
|
-
], RunViewResult.prototype, "ErrorMessage", void 0);
|
|
334
|
-
__decorate([
|
|
335
|
-
(0, type_graphql_1.Field)(() => Boolean, { nullable: false }),
|
|
336
|
-
__metadata("design:type", Boolean)
|
|
337
|
-
], RunViewResult.prototype, "Success", void 0);
|
|
338
|
-
exports.RunViewResult = RunViewResult = __decorate([
|
|
339
|
-
(0, type_graphql_1.ObjectType)()
|
|
340
|
-
], RunViewResult);
|
|
341
|
-
let RunViewResolver = class RunViewResolver extends ResolverBase_1.ResolverBase {
|
|
342
|
-
async RunViewByName(input, { dataSource, userPayload }, pubSub) {
|
|
343
|
-
try {
|
|
344
|
-
const rawData = await super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
345
|
-
if (rawData === null)
|
|
346
|
-
return null;
|
|
347
|
-
const entityId = await dataSource.query(`SELECT EntityID from [${this.MJCoreSchema}].vwUserViews WHERE Name='${input.ViewName}'`);
|
|
348
|
-
const returnData = this.processRawData(rawData.Results, entityId[0].EntityID);
|
|
349
|
-
return {
|
|
350
|
-
Results: returnData,
|
|
351
|
-
UserViewRunID: rawData?.UserViewRunID,
|
|
352
|
-
RowCount: rawData?.RowCount,
|
|
353
|
-
TotalRowCount: rawData?.TotalRowCount,
|
|
354
|
-
ExecutionTime: rawData?.ExecutionTime,
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
catch (err) {
|
|
358
|
-
console.log(err);
|
|
359
|
-
return null;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
async RunViewByID(input, { dataSource, userPayload }, pubSub) {
|
|
363
|
-
try {
|
|
364
|
-
const rawData = await super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
365
|
-
if (rawData === null)
|
|
366
|
-
return null;
|
|
367
|
-
const entityId = await dataSource.query(`SELECT EntityID from [${this.MJCoreSchema}].vwUserViews WHERE ID=${input.ViewID}`);
|
|
368
|
-
const returnData = this.processRawData(rawData.Results, entityId[0].EntityID);
|
|
369
|
-
return {
|
|
370
|
-
Results: returnData,
|
|
371
|
-
UserViewRunID: rawData?.UserViewRunID,
|
|
372
|
-
RowCount: rawData?.RowCount,
|
|
373
|
-
TotalRowCount: rawData?.TotalRowCount,
|
|
374
|
-
ExecutionTime: rawData?.ExecutionTime,
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
catch (err) {
|
|
378
|
-
console.log(err);
|
|
379
|
-
return null;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
async RunDynamicView(input, { dataSource, userPayload }, pubSub) {
|
|
383
|
-
try {
|
|
384
|
-
const rawData = await super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
385
|
-
if (rawData === null)
|
|
386
|
-
return null;
|
|
387
|
-
const entityId = await dataSource.query(`SELECT ID from [${this.MJCoreSchema}].vwEntities WHERE Name='${input.EntityName}'`);
|
|
388
|
-
const returnData = this.processRawData(rawData.Results, entityId[0].EntityID);
|
|
389
|
-
return {
|
|
390
|
-
Results: returnData,
|
|
391
|
-
UserViewRunID: rawData?.UserViewRunID,
|
|
392
|
-
RowCount: rawData?.RowCount,
|
|
393
|
-
TotalRowCount: rawData?.TotalRowCount,
|
|
394
|
-
ExecutionTime: rawData?.ExecutionTime,
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
catch (err) {
|
|
398
|
-
console.log(err);
|
|
399
|
-
return null;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
processRawData(rawData, entityId) {
|
|
403
|
-
const returnResult = [];
|
|
404
|
-
for (let i = 0; i < rawData.length; i++) {
|
|
405
|
-
const row = rawData[i];
|
|
406
|
-
returnResult.push({
|
|
407
|
-
ID: row.ID,
|
|
408
|
-
EntityID: entityId,
|
|
409
|
-
Data: JSON.stringify(row),
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
return returnResult;
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
exports.RunViewResolver = RunViewResolver;
|
|
416
|
-
__decorate([
|
|
417
|
-
(0, type_graphql_1.Query)(() => RunViewResult),
|
|
418
|
-
__param(0, (0, type_graphql_1.Arg)('input', () => RunViewByNameInput)),
|
|
419
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
420
|
-
__metadata("design:type", Function),
|
|
421
|
-
__metadata("design:paramtypes", [RunViewByNameInput, Object, type_graphql_1.PubSubEngine]),
|
|
422
|
-
__metadata("design:returntype", Promise)
|
|
423
|
-
], RunViewResolver.prototype, "RunViewByName", null);
|
|
424
|
-
__decorate([
|
|
425
|
-
(0, type_graphql_1.Query)(() => RunViewResult),
|
|
426
|
-
__param(0, (0, type_graphql_1.Arg)('input', () => RunViewByIDInput)),
|
|
427
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
428
|
-
__metadata("design:type", Function),
|
|
429
|
-
__metadata("design:paramtypes", [RunViewByIDInput, Object, type_graphql_1.PubSubEngine]),
|
|
430
|
-
__metadata("design:returntype", Promise)
|
|
431
|
-
], RunViewResolver.prototype, "RunViewByID", null);
|
|
432
|
-
__decorate([
|
|
433
|
-
(0, type_graphql_1.Query)(() => RunViewResult),
|
|
434
|
-
__param(0, (0, type_graphql_1.Arg)('input', () => RunDynamicViewInput)),
|
|
435
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
436
|
-
__metadata("design:type", Function),
|
|
437
|
-
__metadata("design:paramtypes", [RunDynamicViewInput, Object, type_graphql_1.PubSubEngine]),
|
|
438
|
-
__metadata("design:returntype", Promise)
|
|
439
|
-
], RunViewResolver.prototype, "RunDynamicView", null);
|
|
440
|
-
exports.RunViewResolver = RunViewResolver = __decorate([
|
|
441
|
-
(0, type_graphql_1.Resolver)(RunViewResultRow)
|
|
442
|
-
], RunViewResolver);
|
|
443
|
-
//# sourceMappingURL=RunViewResolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RunViewResolver.js","sourceRoot":"","sources":["../../src/generic/RunViewResolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA0G;AAE1G,iDAA8C;AAavC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAsF5B,CAAA;AAtFY,4CAAgB;AAE3B;IADC,IAAA,oBAAK,EA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AAE,CAAA;;qCADyC,kBAAkB,UAEzD,2BAAY;;oDAmBrB;AAGK;IADL,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,aAAa,CAAC;IAExB,WAAA,IAAA,kBAAG,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAA;IACpC,WAAA,IAAA,kBAAG,GAAE,CAAA;;qCADuC,gBAAgB,UAErD,2BAAY;;kDAmBrB;AAGK;IADL,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,aAAa,CAAC;IAExB,WAAA,IAAA,kBAAG,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAA;IACvC,WAAA,IAAA,kBAAG,GAAE,CAAA;;qCAD0C,mBAAmB,UAE3D,2BAAY;;qDAmBrB;0BA1EU,eAAe;IAD3B,IAAA,uBAAQ,EAAC,gBAAgB,CAAC;GACd,eAAe,CAwF3B"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
|
-
export { MaxLength } from 'class-validator';
|
|
3
|
-
export * from 'type-graphql';
|
|
4
|
-
export { NewUserBase } from './auth/newUsers';
|
|
5
|
-
export { configInfo } from './config';
|
|
6
|
-
export * from './directives';
|
|
7
|
-
export * from './entitySubclasses/userViewEntity.server';
|
|
8
|
-
export * from './entitySubclasses/entityPermissions.server';
|
|
9
|
-
export * from './entitySubclasses/DuplicateRunEntity.server';
|
|
10
|
-
export * from './entitySubclasses/EntityBehavior.server';
|
|
11
|
-
export * from './types';
|
|
12
|
-
export { TokenExpiredError } from './auth';
|
|
13
|
-
export * from './generic/PushStatusResolver';
|
|
14
|
-
export * from './generic/ResolverBase';
|
|
15
|
-
export * from './generic/RunViewResolver';
|
|
16
|
-
export * from './generic/KeyValuePairInput';
|
|
17
|
-
export * from './generic/KeyInputOutputTypes';
|
|
18
|
-
export * from './generic/DeleteOptionsInput';
|
|
19
|
-
export * from './resolvers/AskSkipResolver';
|
|
20
|
-
export * from './resolvers/ColorResolver';
|
|
21
|
-
export * from './resolvers/DatasetResolver';
|
|
22
|
-
export * from './resolvers/EntityRecordNameResolver';
|
|
23
|
-
export * from './resolvers/MergeRecordsResolver';
|
|
24
|
-
export * from './resolvers/ReportResolver';
|
|
25
|
-
export * from './generated/generated';
|
|
26
|
-
export declare const serve: (resolverPaths: Array<string>) => Promise<void>;
|
|
27
|
-
export default serve;
|
|
28
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,kBAAkB,CAAC;AAqB1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,0CAA0C,CAAC;AACzD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,8BAA8B,CAAC;AAE7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAE3C,cAAc,uBAAuB,CAAA;AAMrC,eAAO,MAAM,KAAK,kBAAyB,MAAM,MAAM,CAAC,kBA2FvD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.serve = exports.TokenExpiredError = exports.configInfo = exports.NewUserBase = exports.MaxLength = void 0;
|
|
33
|
-
const dotenv_1 = __importDefault(require("dotenv"));
|
|
34
|
-
dotenv_1.default.config();
|
|
35
|
-
const express4_1 = require("@apollo/server/express4");
|
|
36
|
-
const schema_1 = require("@graphql-tools/schema");
|
|
37
|
-
const core_1 = require("@memberjunction/core");
|
|
38
|
-
const sqlserver_dataprovider_1 = require("@memberjunction/sqlserver-dataprovider");
|
|
39
|
-
const body_parser_1 = require("body-parser");
|
|
40
|
-
const cors_1 = __importDefault(require("cors"));
|
|
41
|
-
const express_1 = __importDefault(require("express"));
|
|
42
|
-
const fast_glob_1 = require("fast-glob");
|
|
43
|
-
const ws_1 = require("graphql-ws/lib/use/ws");
|
|
44
|
-
const node_http_1 = require("node:http");
|
|
45
|
-
const node_path_1 = require("node:path");
|
|
46
|
-
require("reflect-metadata");
|
|
47
|
-
const rxjs_1 = require("rxjs");
|
|
48
|
-
const type_graphql_1 = require("type-graphql");
|
|
49
|
-
const typeorm_1 = require("typeorm");
|
|
50
|
-
const ws_2 = require("ws");
|
|
51
|
-
const apolloServer_1 = __importDefault(require("./apolloServer"));
|
|
52
|
-
const config_1 = require("./config");
|
|
53
|
-
const context_1 = require("./context");
|
|
54
|
-
const directives_1 = require("./directives");
|
|
55
|
-
const orm_1 = __importDefault(require("./orm"));
|
|
56
|
-
const actions_1 = require("@memberjunction/actions");
|
|
57
|
-
(0, actions_1.LoadActionEntityServer)();
|
|
58
|
-
const core_actions_1 = require("@memberjunction/core-actions");
|
|
59
|
-
(0, core_actions_1.LoadGeneratedActions)();
|
|
60
|
-
const cacheRefreshInterval = config_1.configInfo.databaseSettings.metadataCacheRefreshInterval;
|
|
61
|
-
var class_validator_1 = require("class-validator");
|
|
62
|
-
Object.defineProperty(exports, "MaxLength", { enumerable: true, get: function () { return class_validator_1.MaxLength; } });
|
|
63
|
-
__exportStar(require("type-graphql"), exports);
|
|
64
|
-
var newUsers_1 = require("./auth/newUsers");
|
|
65
|
-
Object.defineProperty(exports, "NewUserBase", { enumerable: true, get: function () { return newUsers_1.NewUserBase; } });
|
|
66
|
-
var config_2 = require("./config");
|
|
67
|
-
Object.defineProperty(exports, "configInfo", { enumerable: true, get: function () { return config_2.configInfo; } });
|
|
68
|
-
__exportStar(require("./directives"), exports);
|
|
69
|
-
__exportStar(require("./entitySubclasses/userViewEntity.server"), exports);
|
|
70
|
-
__exportStar(require("./entitySubclasses/entityPermissions.server"), exports);
|
|
71
|
-
__exportStar(require("./entitySubclasses/DuplicateRunEntity.server"), exports);
|
|
72
|
-
__exportStar(require("./entitySubclasses/EntityBehavior.server"), exports);
|
|
73
|
-
__exportStar(require("./types"), exports);
|
|
74
|
-
var auth_1 = require("./auth");
|
|
75
|
-
Object.defineProperty(exports, "TokenExpiredError", { enumerable: true, get: function () { return auth_1.TokenExpiredError; } });
|
|
76
|
-
__exportStar(require("./generic/PushStatusResolver"), exports);
|
|
77
|
-
__exportStar(require("./generic/ResolverBase"), exports);
|
|
78
|
-
__exportStar(require("./generic/RunViewResolver"), exports);
|
|
79
|
-
__exportStar(require("./generic/KeyValuePairInput"), exports);
|
|
80
|
-
__exportStar(require("./generic/KeyInputOutputTypes"), exports);
|
|
81
|
-
__exportStar(require("./generic/DeleteOptionsInput"), exports);
|
|
82
|
-
__exportStar(require("./resolvers/AskSkipResolver"), exports);
|
|
83
|
-
__exportStar(require("./resolvers/ColorResolver"), exports);
|
|
84
|
-
__exportStar(require("./resolvers/DatasetResolver"), exports);
|
|
85
|
-
__exportStar(require("./resolvers/EntityRecordNameResolver"), exports);
|
|
86
|
-
__exportStar(require("./resolvers/MergeRecordsResolver"), exports);
|
|
87
|
-
__exportStar(require("./resolvers/ReportResolver"), exports);
|
|
88
|
-
__exportStar(require("./generated/generated"), exports);
|
|
89
|
-
const node_path_2 = require("node:path");
|
|
90
|
-
const localPath = (p) => (0, node_path_2.resolve)(__dirname, p);
|
|
91
|
-
const serve = async (resolverPaths) => {
|
|
92
|
-
const localResolverPaths = [
|
|
93
|
-
'resolvers/**/*Resolver.{js,ts}',
|
|
94
|
-
'generic/*Resolver.{js,ts}',
|
|
95
|
-
'generated/generated.{js,ts}'
|
|
96
|
-
].map(localPath);
|
|
97
|
-
const combinedResolverPaths = [...resolverPaths, ...localResolverPaths];
|
|
98
|
-
const replaceBackslashes = node_path_1.sep === '\\';
|
|
99
|
-
const paths = combinedResolverPaths.flatMap((path) => (0, fast_glob_1.globSync)(replaceBackslashes ? path.replace(/\\/g, '/') : path));
|
|
100
|
-
if (paths.length === 0) {
|
|
101
|
-
console.warn(`No resolvers found in ${combinedResolverPaths.join(', ')}`);
|
|
102
|
-
console.log({ combinedResolverPaths, paths, cwd: process.cwd() });
|
|
103
|
-
}
|
|
104
|
-
const dataSource = new typeorm_1.DataSource((0, orm_1.default)(paths));
|
|
105
|
-
const setupComplete$ = new rxjs_1.ReplaySubject(1);
|
|
106
|
-
await dataSource.initialize();
|
|
107
|
-
const config = new sqlserver_dataprovider_1.SQLServerProviderConfigData(dataSource, '', config_1.mj_core_schema, cacheRefreshInterval);
|
|
108
|
-
await (0, sqlserver_dataprovider_1.setupSQLServerClient)(config);
|
|
109
|
-
const md = new core_1.Metadata();
|
|
110
|
-
console.log(`Data Source has been initialized. ${md?.Entities ? md.Entities.length : 0} entities loaded.`);
|
|
111
|
-
setupComplete$.next(true);
|
|
112
|
-
const dynamicModules = await Promise.all(paths.map((modulePath) => Promise.resolve(`${modulePath.replace(/\.[jt]s$/, '')}`).then(s => __importStar(require(s)))));
|
|
113
|
-
const resolvers = dynamicModules.flatMap((module) => Object.values(module).filter((value) => typeof value === 'function'));
|
|
114
|
-
const schema = directives_1.publicDirective.transformer((0, schema_1.mergeSchemas)({
|
|
115
|
-
schemas: [
|
|
116
|
-
(0, type_graphql_1.buildSchemaSync)({
|
|
117
|
-
resolvers,
|
|
118
|
-
validate: false,
|
|
119
|
-
scalarsMap: [{ type: Date, scalar: type_graphql_1.GraphQLTimestamp }],
|
|
120
|
-
emitSchemaFile: config_1.websiteRunFromPackage !== 1,
|
|
121
|
-
}),
|
|
122
|
-
],
|
|
123
|
-
typeDefs: [directives_1.publicDirective.typeDefs],
|
|
124
|
-
}));
|
|
125
|
-
const app = (0, express_1.default)();
|
|
126
|
-
const httpServer = (0, node_http_1.createServer)(app);
|
|
127
|
-
const webSocketServer = new ws_2.WebSocketServer({ server: httpServer, path: config_1.graphqlRootPath });
|
|
128
|
-
const serverCleanup = (0, ws_1.useServer)({
|
|
129
|
-
schema,
|
|
130
|
-
context: async ({ connectionParams }) => {
|
|
131
|
-
const userPayload = await (0, context_1.getUserPayload)(String(connectionParams?.Authorization), undefined, dataSource);
|
|
132
|
-
return { userPayload };
|
|
133
|
-
},
|
|
134
|
-
}, webSocketServer);
|
|
135
|
-
const apolloServer = (0, apolloServer_1.default)({ schema }, { httpServer, serverCleanup });
|
|
136
|
-
await apolloServer.start();
|
|
137
|
-
app.use(config_1.graphqlRootPath, (0, cors_1.default)(), (0, body_parser_1.json)({ limit: '50mb' }), (0, express4_1.expressMiddleware)(apolloServer, {
|
|
138
|
-
context: (0, context_1.contextFunction)({ setupComplete$, dataSource }),
|
|
139
|
-
}));
|
|
140
|
-
await new Promise((resolve) => httpServer.listen({ port: config_1.graphqlPort }, resolve));
|
|
141
|
-
console.log(`🚀 Server ready at http://localhost:${config_1.graphqlPort}/`);
|
|
142
|
-
};
|
|
143
|
-
exports.serve = serve;
|
|
144
|
-
exports.default = exports.serve;
|
|
145
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA4B;AAE5B,gBAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,sDAA4D;AAC5D,kDAAqD;AACrD,+CAAgD;AAChD,mFAAsH;AACtH,6CAAmC;AACnC,gDAAwB;AAC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