@mj-biz-apps/issues-server 0.0.1 → 1.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/dist/generated/class-registrations-manifest.d.ts +22 -0
- package/dist/generated/class-registrations-manifest.d.ts.map +1 -0
- package/dist/generated/class-registrations-manifest.js +38 -0
- package/dist/generated/class-registrations-manifest.js.map +1 -0
- package/dist/generated/generated.d.ts +309 -0
- package/dist/generated/generated.d.ts.map +1 -0
- package/dist/generated/generated.js +1661 -0
- package/dist/generated/generated.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/package.json +39 -7
- package/README.md +0 -45
|
@@ -0,0 +1,1661 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
/********************************************************************************
|
|
14
|
+
* ALL ENTITIES - TypeGraphQL Type Class Definition - AUTO GENERATED FILE
|
|
15
|
+
* Generated Entities and Resolvers for Server
|
|
16
|
+
*
|
|
17
|
+
* >>> DO NOT MODIFY THIS FILE!!!!!!!!!!!!
|
|
18
|
+
* >>> YOUR CHANGES WILL BE OVERWRITTEN
|
|
19
|
+
* >>> THE NEXT TIME THIS FILE IS GENERATED
|
|
20
|
+
*
|
|
21
|
+
**********************************************************************************/
|
|
22
|
+
import { Arg, Ctx, Int, Query, Resolver, Field, ObjectType, FieldResolver, Root, InputType, Mutation, PubSub, PubSubEngine, ResolverBase, RunViewByIDInput, RunViewByNameInput, RunDynamicViewInput, KeyValuePairInput, DeleteOptionsInput, GetReadOnlyProvider, GetReadWriteProvider, RestoreContextInput } from '@memberjunction/server';
|
|
23
|
+
import { EntityPermissionType, CompositeKey } from '@memberjunction/core';
|
|
24
|
+
import { MaxLength } from 'class-validator';
|
|
25
|
+
//****************************************************************************
|
|
26
|
+
// ENTITY CLASS for MJ_BizApps_Issues: Issue Comments
|
|
27
|
+
//****************************************************************************
|
|
28
|
+
let mjBizAppsIssuesIssueComment_ = class mjBizAppsIssuesIssueComment_ {
|
|
29
|
+
};
|
|
30
|
+
__decorate([
|
|
31
|
+
Field({ description: `Unique identifier (UUID).` }),
|
|
32
|
+
MaxLength(36),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], mjBizAppsIssuesIssueComment_.prototype, "ID", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Field({ description: `The Issue this comment belongs to.` }),
|
|
37
|
+
MaxLength(36),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], mjBizAppsIssuesIssueComment_.prototype, "IssueID", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Field({ description: `Comment body (Markdown or plain text).` }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], mjBizAppsIssuesIssueComment_.prototype, "Body", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Field({ nullable: true, description: `The Person who authored the comment, when internal. NULL for email/external authors (use AuthorEmail).` }),
|
|
46
|
+
MaxLength(36),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], mjBizAppsIssuesIssueComment_.prototype, "AuthorPersonID", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
Field({ nullable: true, description: `Email of the comment author, used when there is no linked Person.` }),
|
|
51
|
+
MaxLength(320),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], mjBizAppsIssuesIssueComment_.prototype, "AuthorEmail", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Field({ description: `Direction/visibility of the comment (channel-agnostic): 'internal' (staff-only note, never sent), 'outbound' (customer-facing message we sent, on any channel), or 'inbound' (a message from the customer/external side captured into the thread). The delivery channel is knowable from the ticket's linked message, not here.` }),
|
|
56
|
+
MaxLength(20),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], mjBizAppsIssuesIssueComment_.prototype, "Source", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
Field(),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], mjBizAppsIssuesIssueComment_.prototype, "_mj__CreatedAt", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
Field(),
|
|
65
|
+
__metadata("design:type", Date)
|
|
66
|
+
], mjBizAppsIssuesIssueComment_.prototype, "_mj__UpdatedAt", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
Field({ nullable: true }),
|
|
69
|
+
MaxLength(201),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], mjBizAppsIssuesIssueComment_.prototype, "AuthorPerson", void 0);
|
|
72
|
+
mjBizAppsIssuesIssueComment_ = __decorate([
|
|
73
|
+
ObjectType({ description: `Threaded discussion entry on an Issue. Author is a Person when internal; AuthorEmail carries the address for email / external sources.` })
|
|
74
|
+
], mjBizAppsIssuesIssueComment_);
|
|
75
|
+
export { mjBizAppsIssuesIssueComment_ };
|
|
76
|
+
//****************************************************************************
|
|
77
|
+
// INPUT TYPE for MJ_BizApps_Issues: Issue Comments
|
|
78
|
+
//****************************************************************************
|
|
79
|
+
let CreatemjBizAppsIssuesIssueCommentInput = class CreatemjBizAppsIssuesIssueCommentInput {
|
|
80
|
+
};
|
|
81
|
+
__decorate([
|
|
82
|
+
Field({ nullable: true }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], CreatemjBizAppsIssuesIssueCommentInput.prototype, "ID", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
Field({ nullable: true }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], CreatemjBizAppsIssuesIssueCommentInput.prototype, "IssueID", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
Field({ nullable: true }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], CreatemjBizAppsIssuesIssueCommentInput.prototype, "Body", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
Field({ nullable: true }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], CreatemjBizAppsIssuesIssueCommentInput.prototype, "AuthorPersonID", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
Field({ nullable: true }),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], CreatemjBizAppsIssuesIssueCommentInput.prototype, "AuthorEmail", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
Field({ nullable: true }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], CreatemjBizAppsIssuesIssueCommentInput.prototype, "Source", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
107
|
+
__metadata("design:type", RestoreContextInput)
|
|
108
|
+
], CreatemjBizAppsIssuesIssueCommentInput.prototype, "RestoreContext___", void 0);
|
|
109
|
+
CreatemjBizAppsIssuesIssueCommentInput = __decorate([
|
|
110
|
+
InputType()
|
|
111
|
+
], CreatemjBizAppsIssuesIssueCommentInput);
|
|
112
|
+
export { CreatemjBizAppsIssuesIssueCommentInput };
|
|
113
|
+
//****************************************************************************
|
|
114
|
+
// INPUT TYPE for MJ_BizApps_Issues: Issue Comments
|
|
115
|
+
//****************************************************************************
|
|
116
|
+
let UpdatemjBizAppsIssuesIssueCommentInput = class UpdatemjBizAppsIssuesIssueCommentInput {
|
|
117
|
+
};
|
|
118
|
+
__decorate([
|
|
119
|
+
Field(),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], UpdatemjBizAppsIssuesIssueCommentInput.prototype, "ID", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
Field({ nullable: true }),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], UpdatemjBizAppsIssuesIssueCommentInput.prototype, "IssueID", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
Field({ nullable: true }),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], UpdatemjBizAppsIssuesIssueCommentInput.prototype, "Body", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
Field({ nullable: true }),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], UpdatemjBizAppsIssuesIssueCommentInput.prototype, "AuthorPersonID", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
Field({ nullable: true }),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], UpdatemjBizAppsIssuesIssueCommentInput.prototype, "AuthorEmail", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
Field({ nullable: true }),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], UpdatemjBizAppsIssuesIssueCommentInput.prototype, "Source", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
144
|
+
__metadata("design:type", Array)
|
|
145
|
+
], UpdatemjBizAppsIssuesIssueCommentInput.prototype, "OldValues___", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
148
|
+
__metadata("design:type", RestoreContextInput)
|
|
149
|
+
], UpdatemjBizAppsIssuesIssueCommentInput.prototype, "RestoreContext___", void 0);
|
|
150
|
+
UpdatemjBizAppsIssuesIssueCommentInput = __decorate([
|
|
151
|
+
InputType()
|
|
152
|
+
], UpdatemjBizAppsIssuesIssueCommentInput);
|
|
153
|
+
export { UpdatemjBizAppsIssuesIssueCommentInput };
|
|
154
|
+
//****************************************************************************
|
|
155
|
+
// RESOLVER for MJ_BizApps_Issues: Issue Comments
|
|
156
|
+
//****************************************************************************
|
|
157
|
+
let RunmjBizAppsIssuesIssueCommentViewResult = class RunmjBizAppsIssuesIssueCommentViewResult {
|
|
158
|
+
};
|
|
159
|
+
__decorate([
|
|
160
|
+
Field(() => [mjBizAppsIssuesIssueComment_]),
|
|
161
|
+
__metadata("design:type", Array)
|
|
162
|
+
], RunmjBizAppsIssuesIssueCommentViewResult.prototype, "Results", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
Field(() => String, { nullable: true }),
|
|
165
|
+
__metadata("design:type", String)
|
|
166
|
+
], RunmjBizAppsIssuesIssueCommentViewResult.prototype, "UserViewRunID", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
Field(() => Int, { nullable: true }),
|
|
169
|
+
__metadata("design:type", Number)
|
|
170
|
+
], RunmjBizAppsIssuesIssueCommentViewResult.prototype, "RowCount", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
Field(() => Int, { nullable: true }),
|
|
173
|
+
__metadata("design:type", Number)
|
|
174
|
+
], RunmjBizAppsIssuesIssueCommentViewResult.prototype, "TotalRowCount", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
Field(() => Int, { nullable: true }),
|
|
177
|
+
__metadata("design:type", Number)
|
|
178
|
+
], RunmjBizAppsIssuesIssueCommentViewResult.prototype, "ExecutionTime", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
Field({ nullable: true }),
|
|
181
|
+
__metadata("design:type", String)
|
|
182
|
+
], RunmjBizAppsIssuesIssueCommentViewResult.prototype, "ErrorMessage", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
Field(() => Boolean, { nullable: false }),
|
|
185
|
+
__metadata("design:type", Boolean)
|
|
186
|
+
], RunmjBizAppsIssuesIssueCommentViewResult.prototype, "Success", void 0);
|
|
187
|
+
RunmjBizAppsIssuesIssueCommentViewResult = __decorate([
|
|
188
|
+
ObjectType()
|
|
189
|
+
], RunmjBizAppsIssuesIssueCommentViewResult);
|
|
190
|
+
export { RunmjBizAppsIssuesIssueCommentViewResult };
|
|
191
|
+
let mjBizAppsIssuesIssueCommentResolver = class mjBizAppsIssuesIssueCommentResolver extends ResolverBase {
|
|
192
|
+
async RunmjBizAppsIssuesIssueCommentViewByID(input, { providers, userPayload }, pubSub) {
|
|
193
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
194
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
195
|
+
}
|
|
196
|
+
async RunmjBizAppsIssuesIssueCommentViewByName(input, { providers, userPayload }, pubSub) {
|
|
197
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
198
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
199
|
+
}
|
|
200
|
+
async RunmjBizAppsIssuesIssueCommentDynamicView(input, { providers, userPayload }, pubSub) {
|
|
201
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
202
|
+
input.EntityName = 'MJ_BizApps_Issues: Issue Comments';
|
|
203
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
204
|
+
}
|
|
205
|
+
async mjBizAppsIssuesIssueComment(ID, { userPayload, providers }, pubSub) {
|
|
206
|
+
this.CheckUserReadPermissions('MJ_BizApps_Issues: Issue Comments', userPayload);
|
|
207
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
208
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsIssues', 'vwIssueComments')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Issues: Issue Comments', userPayload, EntityPermissionType.Read, 'AND');
|
|
209
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
210
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Issues: Issue Comments', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
211
|
+
return result;
|
|
212
|
+
}
|
|
213
|
+
async CreatemjBizAppsIssuesIssueComment(input, { providers, userPayload }, pubSub) {
|
|
214
|
+
const provider = GetReadWriteProvider(providers);
|
|
215
|
+
return this.CreateRecord('MJ_BizApps_Issues: Issue Comments', input, provider, userPayload, pubSub);
|
|
216
|
+
}
|
|
217
|
+
async UpdatemjBizAppsIssuesIssueComment(input, { providers, userPayload }, pubSub) {
|
|
218
|
+
const provider = GetReadWriteProvider(providers);
|
|
219
|
+
return this.UpdateRecord('MJ_BizApps_Issues: Issue Comments', input, provider, userPayload, pubSub);
|
|
220
|
+
}
|
|
221
|
+
async DeletemjBizAppsIssuesIssueComment(ID, options, { providers, userPayload }, pubSub) {
|
|
222
|
+
const provider = GetReadWriteProvider(providers);
|
|
223
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
224
|
+
return this.DeleteRecord('MJ_BizApps_Issues: Issue Comments', key, options, provider, userPayload, pubSub);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
__decorate([
|
|
228
|
+
Query(() => RunmjBizAppsIssuesIssueCommentViewResult),
|
|
229
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
230
|
+
__param(1, Ctx()),
|
|
231
|
+
__param(2, PubSub()),
|
|
232
|
+
__metadata("design:type", Function),
|
|
233
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
234
|
+
__metadata("design:returntype", Promise)
|
|
235
|
+
], mjBizAppsIssuesIssueCommentResolver.prototype, "RunmjBizAppsIssuesIssueCommentViewByID", null);
|
|
236
|
+
__decorate([
|
|
237
|
+
Query(() => RunmjBizAppsIssuesIssueCommentViewResult),
|
|
238
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
239
|
+
__param(1, Ctx()),
|
|
240
|
+
__param(2, PubSub()),
|
|
241
|
+
__metadata("design:type", Function),
|
|
242
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
243
|
+
__metadata("design:returntype", Promise)
|
|
244
|
+
], mjBizAppsIssuesIssueCommentResolver.prototype, "RunmjBizAppsIssuesIssueCommentViewByName", null);
|
|
245
|
+
__decorate([
|
|
246
|
+
Query(() => RunmjBizAppsIssuesIssueCommentViewResult),
|
|
247
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
248
|
+
__param(1, Ctx()),
|
|
249
|
+
__param(2, PubSub()),
|
|
250
|
+
__metadata("design:type", Function),
|
|
251
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
252
|
+
__metadata("design:returntype", Promise)
|
|
253
|
+
], mjBizAppsIssuesIssueCommentResolver.prototype, "RunmjBizAppsIssuesIssueCommentDynamicView", null);
|
|
254
|
+
__decorate([
|
|
255
|
+
Query(() => mjBizAppsIssuesIssueComment_, { nullable: true }),
|
|
256
|
+
__param(0, Arg('ID', () => String)),
|
|
257
|
+
__param(1, Ctx()),
|
|
258
|
+
__param(2, PubSub()),
|
|
259
|
+
__metadata("design:type", Function),
|
|
260
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
261
|
+
__metadata("design:returntype", Promise)
|
|
262
|
+
], mjBizAppsIssuesIssueCommentResolver.prototype, "mjBizAppsIssuesIssueComment", null);
|
|
263
|
+
__decorate([
|
|
264
|
+
Mutation(() => mjBizAppsIssuesIssueComment_),
|
|
265
|
+
__param(0, Arg('input', () => CreatemjBizAppsIssuesIssueCommentInput)),
|
|
266
|
+
__param(1, Ctx()),
|
|
267
|
+
__param(2, PubSub()),
|
|
268
|
+
__metadata("design:type", Function),
|
|
269
|
+
__metadata("design:paramtypes", [CreatemjBizAppsIssuesIssueCommentInput, Object, PubSubEngine]),
|
|
270
|
+
__metadata("design:returntype", Promise)
|
|
271
|
+
], mjBizAppsIssuesIssueCommentResolver.prototype, "CreatemjBizAppsIssuesIssueComment", null);
|
|
272
|
+
__decorate([
|
|
273
|
+
Mutation(() => mjBizAppsIssuesIssueComment_),
|
|
274
|
+
__param(0, Arg('input', () => UpdatemjBizAppsIssuesIssueCommentInput)),
|
|
275
|
+
__param(1, Ctx()),
|
|
276
|
+
__param(2, PubSub()),
|
|
277
|
+
__metadata("design:type", Function),
|
|
278
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsIssuesIssueCommentInput, Object, PubSubEngine]),
|
|
279
|
+
__metadata("design:returntype", Promise)
|
|
280
|
+
], mjBizAppsIssuesIssueCommentResolver.prototype, "UpdatemjBizAppsIssuesIssueComment", null);
|
|
281
|
+
__decorate([
|
|
282
|
+
Mutation(() => mjBizAppsIssuesIssueComment_),
|
|
283
|
+
__param(0, Arg('ID', () => String)),
|
|
284
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
285
|
+
__param(2, Ctx()),
|
|
286
|
+
__param(3, PubSub()),
|
|
287
|
+
__metadata("design:type", Function),
|
|
288
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
289
|
+
__metadata("design:returntype", Promise)
|
|
290
|
+
], mjBizAppsIssuesIssueCommentResolver.prototype, "DeletemjBizAppsIssuesIssueComment", null);
|
|
291
|
+
mjBizAppsIssuesIssueCommentResolver = __decorate([
|
|
292
|
+
Resolver(mjBizAppsIssuesIssueComment_)
|
|
293
|
+
], mjBizAppsIssuesIssueCommentResolver);
|
|
294
|
+
export { mjBizAppsIssuesIssueCommentResolver };
|
|
295
|
+
//****************************************************************************
|
|
296
|
+
// ENTITY CLASS for MJ_BizApps_Issues: Issue Number Sequences
|
|
297
|
+
//****************************************************************************
|
|
298
|
+
let mjBizAppsIssuesIssueNumberSequence_ = class mjBizAppsIssuesIssueNumberSequence_ {
|
|
299
|
+
};
|
|
300
|
+
__decorate([
|
|
301
|
+
Field({ description: `The normalized (trim/UPPER) AppScope this counter is for, or 'ISS' when an issue has no AppScope. Primary key.` }),
|
|
302
|
+
MaxLength(50),
|
|
303
|
+
__metadata("design:type", String)
|
|
304
|
+
], mjBizAppsIssuesIssueNumberSequence_.prototype, "ScopeCode", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
Field(() => Int, { description: `The next sequence value to assign for this scope. Incremented atomically (UPDLOCK/HOLDLOCK) by spAssignNextIssueNumber.` }),
|
|
307
|
+
__metadata("design:type", Number)
|
|
308
|
+
], mjBizAppsIssuesIssueNumberSequence_.prototype, "NextSequenceNumber", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
Field(),
|
|
311
|
+
__metadata("design:type", Date)
|
|
312
|
+
], mjBizAppsIssuesIssueNumberSequence_.prototype, "_mj__CreatedAt", void 0);
|
|
313
|
+
__decorate([
|
|
314
|
+
Field(),
|
|
315
|
+
__metadata("design:type", Date)
|
|
316
|
+
], mjBizAppsIssuesIssueNumberSequence_.prototype, "_mj__UpdatedAt", void 0);
|
|
317
|
+
mjBizAppsIssuesIssueNumberSequence_ = __decorate([
|
|
318
|
+
ObjectType({ description: `Per-scope gap-free counter backing the human-readable Issue.IssueNumber. One row per normalized ScopeCode. Maintained ONLY by spAssignNextIssueNumber — never write directly.` })
|
|
319
|
+
], mjBizAppsIssuesIssueNumberSequence_);
|
|
320
|
+
export { mjBizAppsIssuesIssueNumberSequence_ };
|
|
321
|
+
//****************************************************************************
|
|
322
|
+
// INPUT TYPE for MJ_BizApps_Issues: Issue Number Sequences
|
|
323
|
+
//****************************************************************************
|
|
324
|
+
let CreatemjBizAppsIssuesIssueNumberSequenceInput = class CreatemjBizAppsIssuesIssueNumberSequenceInput {
|
|
325
|
+
};
|
|
326
|
+
__decorate([
|
|
327
|
+
Field({ nullable: true }),
|
|
328
|
+
__metadata("design:type", String)
|
|
329
|
+
], CreatemjBizAppsIssuesIssueNumberSequenceInput.prototype, "ScopeCode", void 0);
|
|
330
|
+
__decorate([
|
|
331
|
+
Field(() => Int, { nullable: true }),
|
|
332
|
+
__metadata("design:type", Number)
|
|
333
|
+
], CreatemjBizAppsIssuesIssueNumberSequenceInput.prototype, "NextSequenceNumber", void 0);
|
|
334
|
+
__decorate([
|
|
335
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
336
|
+
__metadata("design:type", RestoreContextInput)
|
|
337
|
+
], CreatemjBizAppsIssuesIssueNumberSequenceInput.prototype, "RestoreContext___", void 0);
|
|
338
|
+
CreatemjBizAppsIssuesIssueNumberSequenceInput = __decorate([
|
|
339
|
+
InputType()
|
|
340
|
+
], CreatemjBizAppsIssuesIssueNumberSequenceInput);
|
|
341
|
+
export { CreatemjBizAppsIssuesIssueNumberSequenceInput };
|
|
342
|
+
//****************************************************************************
|
|
343
|
+
// INPUT TYPE for MJ_BizApps_Issues: Issue Number Sequences
|
|
344
|
+
//****************************************************************************
|
|
345
|
+
let UpdatemjBizAppsIssuesIssueNumberSequenceInput = class UpdatemjBizAppsIssuesIssueNumberSequenceInput {
|
|
346
|
+
};
|
|
347
|
+
__decorate([
|
|
348
|
+
Field(),
|
|
349
|
+
__metadata("design:type", String)
|
|
350
|
+
], UpdatemjBizAppsIssuesIssueNumberSequenceInput.prototype, "ScopeCode", void 0);
|
|
351
|
+
__decorate([
|
|
352
|
+
Field(() => Int, { nullable: true }),
|
|
353
|
+
__metadata("design:type", Number)
|
|
354
|
+
], UpdatemjBizAppsIssuesIssueNumberSequenceInput.prototype, "NextSequenceNumber", void 0);
|
|
355
|
+
__decorate([
|
|
356
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
357
|
+
__metadata("design:type", Array)
|
|
358
|
+
], UpdatemjBizAppsIssuesIssueNumberSequenceInput.prototype, "OldValues___", void 0);
|
|
359
|
+
__decorate([
|
|
360
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
361
|
+
__metadata("design:type", RestoreContextInput)
|
|
362
|
+
], UpdatemjBizAppsIssuesIssueNumberSequenceInput.prototype, "RestoreContext___", void 0);
|
|
363
|
+
UpdatemjBizAppsIssuesIssueNumberSequenceInput = __decorate([
|
|
364
|
+
InputType()
|
|
365
|
+
], UpdatemjBizAppsIssuesIssueNumberSequenceInput);
|
|
366
|
+
export { UpdatemjBizAppsIssuesIssueNumberSequenceInput };
|
|
367
|
+
//****************************************************************************
|
|
368
|
+
// RESOLVER for MJ_BizApps_Issues: Issue Number Sequences
|
|
369
|
+
//****************************************************************************
|
|
370
|
+
let RunmjBizAppsIssuesIssueNumberSequenceViewResult = class RunmjBizAppsIssuesIssueNumberSequenceViewResult {
|
|
371
|
+
};
|
|
372
|
+
__decorate([
|
|
373
|
+
Field(() => [mjBizAppsIssuesIssueNumberSequence_]),
|
|
374
|
+
__metadata("design:type", Array)
|
|
375
|
+
], RunmjBizAppsIssuesIssueNumberSequenceViewResult.prototype, "Results", void 0);
|
|
376
|
+
__decorate([
|
|
377
|
+
Field(() => String, { nullable: true }),
|
|
378
|
+
__metadata("design:type", String)
|
|
379
|
+
], RunmjBizAppsIssuesIssueNumberSequenceViewResult.prototype, "UserViewRunID", void 0);
|
|
380
|
+
__decorate([
|
|
381
|
+
Field(() => Int, { nullable: true }),
|
|
382
|
+
__metadata("design:type", Number)
|
|
383
|
+
], RunmjBizAppsIssuesIssueNumberSequenceViewResult.prototype, "RowCount", void 0);
|
|
384
|
+
__decorate([
|
|
385
|
+
Field(() => Int, { nullable: true }),
|
|
386
|
+
__metadata("design:type", Number)
|
|
387
|
+
], RunmjBizAppsIssuesIssueNumberSequenceViewResult.prototype, "TotalRowCount", void 0);
|
|
388
|
+
__decorate([
|
|
389
|
+
Field(() => Int, { nullable: true }),
|
|
390
|
+
__metadata("design:type", Number)
|
|
391
|
+
], RunmjBizAppsIssuesIssueNumberSequenceViewResult.prototype, "ExecutionTime", void 0);
|
|
392
|
+
__decorate([
|
|
393
|
+
Field({ nullable: true }),
|
|
394
|
+
__metadata("design:type", String)
|
|
395
|
+
], RunmjBizAppsIssuesIssueNumberSequenceViewResult.prototype, "ErrorMessage", void 0);
|
|
396
|
+
__decorate([
|
|
397
|
+
Field(() => Boolean, { nullable: false }),
|
|
398
|
+
__metadata("design:type", Boolean)
|
|
399
|
+
], RunmjBizAppsIssuesIssueNumberSequenceViewResult.prototype, "Success", void 0);
|
|
400
|
+
RunmjBizAppsIssuesIssueNumberSequenceViewResult = __decorate([
|
|
401
|
+
ObjectType()
|
|
402
|
+
], RunmjBizAppsIssuesIssueNumberSequenceViewResult);
|
|
403
|
+
export { RunmjBizAppsIssuesIssueNumberSequenceViewResult };
|
|
404
|
+
let mjBizAppsIssuesIssueNumberSequenceResolver = class mjBizAppsIssuesIssueNumberSequenceResolver extends ResolverBase {
|
|
405
|
+
async RunmjBizAppsIssuesIssueNumberSequenceViewByID(input, { providers, userPayload }, pubSub) {
|
|
406
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
407
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
408
|
+
}
|
|
409
|
+
async RunmjBizAppsIssuesIssueNumberSequenceViewByName(input, { providers, userPayload }, pubSub) {
|
|
410
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
411
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
412
|
+
}
|
|
413
|
+
async RunmjBizAppsIssuesIssueNumberSequenceDynamicView(input, { providers, userPayload }, pubSub) {
|
|
414
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
415
|
+
input.EntityName = 'MJ_BizApps_Issues: Issue Number Sequences';
|
|
416
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
417
|
+
}
|
|
418
|
+
async mjBizAppsIssuesIssueNumberSequence(ScopeCode, { userPayload, providers }, pubSub) {
|
|
419
|
+
this.CheckUserReadPermissions('MJ_BizApps_Issues: Issue Number Sequences', userPayload);
|
|
420
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
421
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsIssues', 'vwIssueNumberSequences')} WHERE ${provider.QuoteIdentifier('ScopeCode')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Issues: Issue Number Sequences', userPayload, EntityPermissionType.Read, 'AND');
|
|
422
|
+
const rows = await provider.ExecuteSQL(sSQL, [ScopeCode], undefined, this.GetUserFromPayload(userPayload));
|
|
423
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Issues: Issue Number Sequences', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
424
|
+
return result;
|
|
425
|
+
}
|
|
426
|
+
async CreatemjBizAppsIssuesIssueNumberSequence(input, { providers, userPayload }, pubSub) {
|
|
427
|
+
const provider = GetReadWriteProvider(providers);
|
|
428
|
+
return this.CreateRecord('MJ_BizApps_Issues: Issue Number Sequences', input, provider, userPayload, pubSub);
|
|
429
|
+
}
|
|
430
|
+
async UpdatemjBizAppsIssuesIssueNumberSequence(input, { providers, userPayload }, pubSub) {
|
|
431
|
+
const provider = GetReadWriteProvider(providers);
|
|
432
|
+
return this.UpdateRecord('MJ_BizApps_Issues: Issue Number Sequences', input, provider, userPayload, pubSub);
|
|
433
|
+
}
|
|
434
|
+
async DeletemjBizAppsIssuesIssueNumberSequence(ScopeCode, options, { providers, userPayload }, pubSub) {
|
|
435
|
+
const provider = GetReadWriteProvider(providers);
|
|
436
|
+
const key = new CompositeKey([{ FieldName: 'ScopeCode', Value: ScopeCode }]);
|
|
437
|
+
return this.DeleteRecord('MJ_BizApps_Issues: Issue Number Sequences', key, options, provider, userPayload, pubSub);
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
__decorate([
|
|
441
|
+
Query(() => RunmjBizAppsIssuesIssueNumberSequenceViewResult),
|
|
442
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
443
|
+
__param(1, Ctx()),
|
|
444
|
+
__param(2, PubSub()),
|
|
445
|
+
__metadata("design:type", Function),
|
|
446
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
447
|
+
__metadata("design:returntype", Promise)
|
|
448
|
+
], mjBizAppsIssuesIssueNumberSequenceResolver.prototype, "RunmjBizAppsIssuesIssueNumberSequenceViewByID", null);
|
|
449
|
+
__decorate([
|
|
450
|
+
Query(() => RunmjBizAppsIssuesIssueNumberSequenceViewResult),
|
|
451
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
452
|
+
__param(1, Ctx()),
|
|
453
|
+
__param(2, PubSub()),
|
|
454
|
+
__metadata("design:type", Function),
|
|
455
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
456
|
+
__metadata("design:returntype", Promise)
|
|
457
|
+
], mjBizAppsIssuesIssueNumberSequenceResolver.prototype, "RunmjBizAppsIssuesIssueNumberSequenceViewByName", null);
|
|
458
|
+
__decorate([
|
|
459
|
+
Query(() => RunmjBizAppsIssuesIssueNumberSequenceViewResult),
|
|
460
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
461
|
+
__param(1, Ctx()),
|
|
462
|
+
__param(2, PubSub()),
|
|
463
|
+
__metadata("design:type", Function),
|
|
464
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
465
|
+
__metadata("design:returntype", Promise)
|
|
466
|
+
], mjBizAppsIssuesIssueNumberSequenceResolver.prototype, "RunmjBizAppsIssuesIssueNumberSequenceDynamicView", null);
|
|
467
|
+
__decorate([
|
|
468
|
+
Query(() => mjBizAppsIssuesIssueNumberSequence_, { nullable: true }),
|
|
469
|
+
__param(0, Arg('ScopeCode', () => String)),
|
|
470
|
+
__param(1, Ctx()),
|
|
471
|
+
__param(2, PubSub()),
|
|
472
|
+
__metadata("design:type", Function),
|
|
473
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
474
|
+
__metadata("design:returntype", Promise)
|
|
475
|
+
], mjBizAppsIssuesIssueNumberSequenceResolver.prototype, "mjBizAppsIssuesIssueNumberSequence", null);
|
|
476
|
+
__decorate([
|
|
477
|
+
Mutation(() => mjBizAppsIssuesIssueNumberSequence_),
|
|
478
|
+
__param(0, Arg('input', () => CreatemjBizAppsIssuesIssueNumberSequenceInput)),
|
|
479
|
+
__param(1, Ctx()),
|
|
480
|
+
__param(2, PubSub()),
|
|
481
|
+
__metadata("design:type", Function),
|
|
482
|
+
__metadata("design:paramtypes", [CreatemjBizAppsIssuesIssueNumberSequenceInput, Object, PubSubEngine]),
|
|
483
|
+
__metadata("design:returntype", Promise)
|
|
484
|
+
], mjBizAppsIssuesIssueNumberSequenceResolver.prototype, "CreatemjBizAppsIssuesIssueNumberSequence", null);
|
|
485
|
+
__decorate([
|
|
486
|
+
Mutation(() => mjBizAppsIssuesIssueNumberSequence_),
|
|
487
|
+
__param(0, Arg('input', () => UpdatemjBizAppsIssuesIssueNumberSequenceInput)),
|
|
488
|
+
__param(1, Ctx()),
|
|
489
|
+
__param(2, PubSub()),
|
|
490
|
+
__metadata("design:type", Function),
|
|
491
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsIssuesIssueNumberSequenceInput, Object, PubSubEngine]),
|
|
492
|
+
__metadata("design:returntype", Promise)
|
|
493
|
+
], mjBizAppsIssuesIssueNumberSequenceResolver.prototype, "UpdatemjBizAppsIssuesIssueNumberSequence", null);
|
|
494
|
+
__decorate([
|
|
495
|
+
Mutation(() => mjBizAppsIssuesIssueNumberSequence_),
|
|
496
|
+
__param(0, Arg('ScopeCode', () => String)),
|
|
497
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
498
|
+
__param(2, Ctx()),
|
|
499
|
+
__param(3, PubSub()),
|
|
500
|
+
__metadata("design:type", Function),
|
|
501
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
502
|
+
__metadata("design:returntype", Promise)
|
|
503
|
+
], mjBizAppsIssuesIssueNumberSequenceResolver.prototype, "DeletemjBizAppsIssuesIssueNumberSequence", null);
|
|
504
|
+
mjBizAppsIssuesIssueNumberSequenceResolver = __decorate([
|
|
505
|
+
Resolver(mjBizAppsIssuesIssueNumberSequence_)
|
|
506
|
+
], mjBizAppsIssuesIssueNumberSequenceResolver);
|
|
507
|
+
export { mjBizAppsIssuesIssueNumberSequenceResolver };
|
|
508
|
+
//****************************************************************************
|
|
509
|
+
// ENTITY CLASS for MJ_BizApps_Issues: Issue Status
|
|
510
|
+
//****************************************************************************
|
|
511
|
+
let mjBizAppsIssuesIssueStatus_ = class mjBizAppsIssuesIssueStatus_ {
|
|
512
|
+
};
|
|
513
|
+
__decorate([
|
|
514
|
+
Field({ description: `Unique identifier (UUID).` }),
|
|
515
|
+
MaxLength(36),
|
|
516
|
+
__metadata("design:type", String)
|
|
517
|
+
], mjBizAppsIssuesIssueStatus_.prototype, "ID", void 0);
|
|
518
|
+
__decorate([
|
|
519
|
+
Field({ description: `Display name of the status (unique). E.g. 'In Progress', 'Resolved'.` }),
|
|
520
|
+
MaxLength(100),
|
|
521
|
+
__metadata("design:type", String)
|
|
522
|
+
], mjBizAppsIssuesIssueStatus_.prototype, "Name", void 0);
|
|
523
|
+
__decorate([
|
|
524
|
+
Field({ nullable: true, description: `Detailed description of what this status means in the workflow.` }),
|
|
525
|
+
__metadata("design:type", String)
|
|
526
|
+
], mjBizAppsIssuesIssueStatus_.prototype, "Description", void 0);
|
|
527
|
+
__decorate([
|
|
528
|
+
Field(() => Int, { description: `Sort order of the status on boards and in dropdowns. Lower values appear first.` }),
|
|
529
|
+
__metadata("design:type", Number)
|
|
530
|
+
], mjBizAppsIssuesIssueStatus_.prototype, "Sequence", void 0);
|
|
531
|
+
__decorate([
|
|
532
|
+
Field(() => Boolean, { description: `Whether new issues default to this status. Exactly one status should have this set.` }),
|
|
533
|
+
__metadata("design:type", Boolean)
|
|
534
|
+
], mjBizAppsIssuesIssueStatus_.prototype, "IsDefault", void 0);
|
|
535
|
+
__decorate([
|
|
536
|
+
Field(() => Boolean, { description: `Whether this is a terminal (end) state such as Closed or Won't Fix. Terminal statuses stop SLA timers and remove the issue from active queues.` }),
|
|
537
|
+
__metadata("design:type", Boolean)
|
|
538
|
+
], mjBizAppsIssuesIssueStatus_.prototype, "IsTerminal", void 0);
|
|
539
|
+
__decorate([
|
|
540
|
+
Field({ nullable: true, description: `Hex (or token) color used to render this status as a chip / board column header.` }),
|
|
541
|
+
MaxLength(20),
|
|
542
|
+
__metadata("design:type", String)
|
|
543
|
+
], mjBizAppsIssuesIssueStatus_.prototype, "ColorCode", void 0);
|
|
544
|
+
__decorate([
|
|
545
|
+
Field(),
|
|
546
|
+
__metadata("design:type", Date)
|
|
547
|
+
], mjBizAppsIssuesIssueStatus_.prototype, "_mj__CreatedAt", void 0);
|
|
548
|
+
__decorate([
|
|
549
|
+
Field(),
|
|
550
|
+
__metadata("design:type", Date)
|
|
551
|
+
], mjBizAppsIssuesIssueStatus_.prototype, "_mj__UpdatedAt", void 0);
|
|
552
|
+
__decorate([
|
|
553
|
+
Field(() => Boolean, { description: `Whether this is the resolved-but-not-closed state (e.g. Resolved). Entering an IsResolved status stamps Issue.ResolvedAt. Distinct from IsTerminal: an issue can be resolved while still open for confirmation before it is closed.` }),
|
|
554
|
+
__metadata("design:type", Boolean)
|
|
555
|
+
], mjBizAppsIssuesIssueStatus_.prototype, "IsResolved", void 0);
|
|
556
|
+
__decorate([
|
|
557
|
+
Field(() => [mjBizAppsIssuesIssue_]),
|
|
558
|
+
__metadata("design:type", Array)
|
|
559
|
+
], mjBizAppsIssuesIssueStatus_.prototype, "mjBizAppsIssuesMJ_BizApps_Issues_Issues_StatusIDArray", void 0);
|
|
560
|
+
mjBizAppsIssuesIssueStatus_ = __decorate([
|
|
561
|
+
ObjectType({ description: `Workflow state an Issue can be in (New, Triaged, In Progress, Resolved, Closed, ...). Seeded via metadata sync, not in this migration. Drives board columns.` })
|
|
562
|
+
], mjBizAppsIssuesIssueStatus_);
|
|
563
|
+
export { mjBizAppsIssuesIssueStatus_ };
|
|
564
|
+
//****************************************************************************
|
|
565
|
+
// INPUT TYPE for MJ_BizApps_Issues: Issue Status
|
|
566
|
+
//****************************************************************************
|
|
567
|
+
let CreatemjBizAppsIssuesIssueStatusInput = class CreatemjBizAppsIssuesIssueStatusInput {
|
|
568
|
+
};
|
|
569
|
+
__decorate([
|
|
570
|
+
Field({ nullable: true }),
|
|
571
|
+
__metadata("design:type", String)
|
|
572
|
+
], CreatemjBizAppsIssuesIssueStatusInput.prototype, "ID", void 0);
|
|
573
|
+
__decorate([
|
|
574
|
+
Field({ nullable: true }),
|
|
575
|
+
__metadata("design:type", String)
|
|
576
|
+
], CreatemjBizAppsIssuesIssueStatusInput.prototype, "Name", void 0);
|
|
577
|
+
__decorate([
|
|
578
|
+
Field({ nullable: true }),
|
|
579
|
+
__metadata("design:type", String)
|
|
580
|
+
], CreatemjBizAppsIssuesIssueStatusInput.prototype, "Description", void 0);
|
|
581
|
+
__decorate([
|
|
582
|
+
Field(() => Int, { nullable: true }),
|
|
583
|
+
__metadata("design:type", Number)
|
|
584
|
+
], CreatemjBizAppsIssuesIssueStatusInput.prototype, "Sequence", void 0);
|
|
585
|
+
__decorate([
|
|
586
|
+
Field(() => Boolean, { nullable: true }),
|
|
587
|
+
__metadata("design:type", Boolean)
|
|
588
|
+
], CreatemjBizAppsIssuesIssueStatusInput.prototype, "IsDefault", void 0);
|
|
589
|
+
__decorate([
|
|
590
|
+
Field(() => Boolean, { nullable: true }),
|
|
591
|
+
__metadata("design:type", Boolean)
|
|
592
|
+
], CreatemjBizAppsIssuesIssueStatusInput.prototype, "IsTerminal", void 0);
|
|
593
|
+
__decorate([
|
|
594
|
+
Field({ nullable: true }),
|
|
595
|
+
__metadata("design:type", String)
|
|
596
|
+
], CreatemjBizAppsIssuesIssueStatusInput.prototype, "ColorCode", void 0);
|
|
597
|
+
__decorate([
|
|
598
|
+
Field(() => Boolean, { nullable: true }),
|
|
599
|
+
__metadata("design:type", Boolean)
|
|
600
|
+
], CreatemjBizAppsIssuesIssueStatusInput.prototype, "IsResolved", void 0);
|
|
601
|
+
__decorate([
|
|
602
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
603
|
+
__metadata("design:type", RestoreContextInput)
|
|
604
|
+
], CreatemjBizAppsIssuesIssueStatusInput.prototype, "RestoreContext___", void 0);
|
|
605
|
+
CreatemjBizAppsIssuesIssueStatusInput = __decorate([
|
|
606
|
+
InputType()
|
|
607
|
+
], CreatemjBizAppsIssuesIssueStatusInput);
|
|
608
|
+
export { CreatemjBizAppsIssuesIssueStatusInput };
|
|
609
|
+
//****************************************************************************
|
|
610
|
+
// INPUT TYPE for MJ_BizApps_Issues: Issue Status
|
|
611
|
+
//****************************************************************************
|
|
612
|
+
let UpdatemjBizAppsIssuesIssueStatusInput = class UpdatemjBizAppsIssuesIssueStatusInput {
|
|
613
|
+
};
|
|
614
|
+
__decorate([
|
|
615
|
+
Field(),
|
|
616
|
+
__metadata("design:type", String)
|
|
617
|
+
], UpdatemjBizAppsIssuesIssueStatusInput.prototype, "ID", void 0);
|
|
618
|
+
__decorate([
|
|
619
|
+
Field({ nullable: true }),
|
|
620
|
+
__metadata("design:type", String)
|
|
621
|
+
], UpdatemjBizAppsIssuesIssueStatusInput.prototype, "Name", void 0);
|
|
622
|
+
__decorate([
|
|
623
|
+
Field({ nullable: true }),
|
|
624
|
+
__metadata("design:type", String)
|
|
625
|
+
], UpdatemjBizAppsIssuesIssueStatusInput.prototype, "Description", void 0);
|
|
626
|
+
__decorate([
|
|
627
|
+
Field(() => Int, { nullable: true }),
|
|
628
|
+
__metadata("design:type", Number)
|
|
629
|
+
], UpdatemjBizAppsIssuesIssueStatusInput.prototype, "Sequence", void 0);
|
|
630
|
+
__decorate([
|
|
631
|
+
Field(() => Boolean, { nullable: true }),
|
|
632
|
+
__metadata("design:type", Boolean)
|
|
633
|
+
], UpdatemjBizAppsIssuesIssueStatusInput.prototype, "IsDefault", void 0);
|
|
634
|
+
__decorate([
|
|
635
|
+
Field(() => Boolean, { nullable: true }),
|
|
636
|
+
__metadata("design:type", Boolean)
|
|
637
|
+
], UpdatemjBizAppsIssuesIssueStatusInput.prototype, "IsTerminal", void 0);
|
|
638
|
+
__decorate([
|
|
639
|
+
Field({ nullable: true }),
|
|
640
|
+
__metadata("design:type", String)
|
|
641
|
+
], UpdatemjBizAppsIssuesIssueStatusInput.prototype, "ColorCode", void 0);
|
|
642
|
+
__decorate([
|
|
643
|
+
Field(() => Boolean, { nullable: true }),
|
|
644
|
+
__metadata("design:type", Boolean)
|
|
645
|
+
], UpdatemjBizAppsIssuesIssueStatusInput.prototype, "IsResolved", void 0);
|
|
646
|
+
__decorate([
|
|
647
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
648
|
+
__metadata("design:type", Array)
|
|
649
|
+
], UpdatemjBizAppsIssuesIssueStatusInput.prototype, "OldValues___", void 0);
|
|
650
|
+
__decorate([
|
|
651
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
652
|
+
__metadata("design:type", RestoreContextInput)
|
|
653
|
+
], UpdatemjBizAppsIssuesIssueStatusInput.prototype, "RestoreContext___", void 0);
|
|
654
|
+
UpdatemjBizAppsIssuesIssueStatusInput = __decorate([
|
|
655
|
+
InputType()
|
|
656
|
+
], UpdatemjBizAppsIssuesIssueStatusInput);
|
|
657
|
+
export { UpdatemjBizAppsIssuesIssueStatusInput };
|
|
658
|
+
//****************************************************************************
|
|
659
|
+
// RESOLVER for MJ_BizApps_Issues: Issue Status
|
|
660
|
+
//****************************************************************************
|
|
661
|
+
let RunmjBizAppsIssuesIssueStatusViewResult = class RunmjBizAppsIssuesIssueStatusViewResult {
|
|
662
|
+
};
|
|
663
|
+
__decorate([
|
|
664
|
+
Field(() => [mjBizAppsIssuesIssueStatus_]),
|
|
665
|
+
__metadata("design:type", Array)
|
|
666
|
+
], RunmjBizAppsIssuesIssueStatusViewResult.prototype, "Results", void 0);
|
|
667
|
+
__decorate([
|
|
668
|
+
Field(() => String, { nullable: true }),
|
|
669
|
+
__metadata("design:type", String)
|
|
670
|
+
], RunmjBizAppsIssuesIssueStatusViewResult.prototype, "UserViewRunID", void 0);
|
|
671
|
+
__decorate([
|
|
672
|
+
Field(() => Int, { nullable: true }),
|
|
673
|
+
__metadata("design:type", Number)
|
|
674
|
+
], RunmjBizAppsIssuesIssueStatusViewResult.prototype, "RowCount", void 0);
|
|
675
|
+
__decorate([
|
|
676
|
+
Field(() => Int, { nullable: true }),
|
|
677
|
+
__metadata("design:type", Number)
|
|
678
|
+
], RunmjBizAppsIssuesIssueStatusViewResult.prototype, "TotalRowCount", void 0);
|
|
679
|
+
__decorate([
|
|
680
|
+
Field(() => Int, { nullable: true }),
|
|
681
|
+
__metadata("design:type", Number)
|
|
682
|
+
], RunmjBizAppsIssuesIssueStatusViewResult.prototype, "ExecutionTime", void 0);
|
|
683
|
+
__decorate([
|
|
684
|
+
Field({ nullable: true }),
|
|
685
|
+
__metadata("design:type", String)
|
|
686
|
+
], RunmjBizAppsIssuesIssueStatusViewResult.prototype, "ErrorMessage", void 0);
|
|
687
|
+
__decorate([
|
|
688
|
+
Field(() => Boolean, { nullable: false }),
|
|
689
|
+
__metadata("design:type", Boolean)
|
|
690
|
+
], RunmjBizAppsIssuesIssueStatusViewResult.prototype, "Success", void 0);
|
|
691
|
+
RunmjBizAppsIssuesIssueStatusViewResult = __decorate([
|
|
692
|
+
ObjectType()
|
|
693
|
+
], RunmjBizAppsIssuesIssueStatusViewResult);
|
|
694
|
+
export { RunmjBizAppsIssuesIssueStatusViewResult };
|
|
695
|
+
let mjBizAppsIssuesIssueStatusResolver = class mjBizAppsIssuesIssueStatusResolver extends ResolverBase {
|
|
696
|
+
async RunmjBizAppsIssuesIssueStatusViewByID(input, { providers, userPayload }, pubSub) {
|
|
697
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
698
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
699
|
+
}
|
|
700
|
+
async RunmjBizAppsIssuesIssueStatusViewByName(input, { providers, userPayload }, pubSub) {
|
|
701
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
702
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
703
|
+
}
|
|
704
|
+
async RunmjBizAppsIssuesIssueStatusDynamicView(input, { providers, userPayload }, pubSub) {
|
|
705
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
706
|
+
input.EntityName = 'MJ_BizApps_Issues: Issue Status';
|
|
707
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
708
|
+
}
|
|
709
|
+
async mjBizAppsIssuesIssueStatus(ID, { userPayload, providers }, pubSub) {
|
|
710
|
+
this.CheckUserReadPermissions('MJ_BizApps_Issues: Issue Status', userPayload);
|
|
711
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
712
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsIssues', 'vwIssueStatus')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Issues: Issue Status', userPayload, EntityPermissionType.Read, 'AND');
|
|
713
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
714
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Issues: Issue Status', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
715
|
+
return result;
|
|
716
|
+
}
|
|
717
|
+
async mjBizAppsIssuesMJ_BizApps_Issues_Issues_StatusIDArray(mjbizappsissuesissuestatus_, { userPayload, providers }, pubSub) {
|
|
718
|
+
this.CheckUserReadPermissions('MJ_BizApps_Issues: Issues', userPayload);
|
|
719
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
720
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsIssues', 'vwIssues')} WHERE ${provider.QuoteIdentifier('StatusID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Issues: Issues', userPayload, EntityPermissionType.Read, 'AND');
|
|
721
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappsissuesissuestatus_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
722
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Issues: Issues', rows, this.GetUserFromPayload(userPayload));
|
|
723
|
+
return result;
|
|
724
|
+
}
|
|
725
|
+
async CreatemjBizAppsIssuesIssueStatus(input, { providers, userPayload }, pubSub) {
|
|
726
|
+
const provider = GetReadWriteProvider(providers);
|
|
727
|
+
return this.CreateRecord('MJ_BizApps_Issues: Issue Status', input, provider, userPayload, pubSub);
|
|
728
|
+
}
|
|
729
|
+
async UpdatemjBizAppsIssuesIssueStatus(input, { providers, userPayload }, pubSub) {
|
|
730
|
+
const provider = GetReadWriteProvider(providers);
|
|
731
|
+
return this.UpdateRecord('MJ_BizApps_Issues: Issue Status', input, provider, userPayload, pubSub);
|
|
732
|
+
}
|
|
733
|
+
async DeletemjBizAppsIssuesIssueStatus(ID, options, { providers, userPayload }, pubSub) {
|
|
734
|
+
const provider = GetReadWriteProvider(providers);
|
|
735
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
736
|
+
return this.DeleteRecord('MJ_BizApps_Issues: Issue Status', key, options, provider, userPayload, pubSub);
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
__decorate([
|
|
740
|
+
Query(() => RunmjBizAppsIssuesIssueStatusViewResult),
|
|
741
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
742
|
+
__param(1, Ctx()),
|
|
743
|
+
__param(2, PubSub()),
|
|
744
|
+
__metadata("design:type", Function),
|
|
745
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
746
|
+
__metadata("design:returntype", Promise)
|
|
747
|
+
], mjBizAppsIssuesIssueStatusResolver.prototype, "RunmjBizAppsIssuesIssueStatusViewByID", null);
|
|
748
|
+
__decorate([
|
|
749
|
+
Query(() => RunmjBizAppsIssuesIssueStatusViewResult),
|
|
750
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
751
|
+
__param(1, Ctx()),
|
|
752
|
+
__param(2, PubSub()),
|
|
753
|
+
__metadata("design:type", Function),
|
|
754
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
755
|
+
__metadata("design:returntype", Promise)
|
|
756
|
+
], mjBizAppsIssuesIssueStatusResolver.prototype, "RunmjBizAppsIssuesIssueStatusViewByName", null);
|
|
757
|
+
__decorate([
|
|
758
|
+
Query(() => RunmjBizAppsIssuesIssueStatusViewResult),
|
|
759
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
760
|
+
__param(1, Ctx()),
|
|
761
|
+
__param(2, PubSub()),
|
|
762
|
+
__metadata("design:type", Function),
|
|
763
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
764
|
+
__metadata("design:returntype", Promise)
|
|
765
|
+
], mjBizAppsIssuesIssueStatusResolver.prototype, "RunmjBizAppsIssuesIssueStatusDynamicView", null);
|
|
766
|
+
__decorate([
|
|
767
|
+
Query(() => mjBizAppsIssuesIssueStatus_, { nullable: true }),
|
|
768
|
+
__param(0, Arg('ID', () => String)),
|
|
769
|
+
__param(1, Ctx()),
|
|
770
|
+
__param(2, PubSub()),
|
|
771
|
+
__metadata("design:type", Function),
|
|
772
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
773
|
+
__metadata("design:returntype", Promise)
|
|
774
|
+
], mjBizAppsIssuesIssueStatusResolver.prototype, "mjBizAppsIssuesIssueStatus", null);
|
|
775
|
+
__decorate([
|
|
776
|
+
FieldResolver(() => [mjBizAppsIssuesIssue_]),
|
|
777
|
+
__param(0, Root()),
|
|
778
|
+
__param(1, Ctx()),
|
|
779
|
+
__param(2, PubSub()),
|
|
780
|
+
__metadata("design:type", Function),
|
|
781
|
+
__metadata("design:paramtypes", [mjBizAppsIssuesIssueStatus_, Object, PubSubEngine]),
|
|
782
|
+
__metadata("design:returntype", Promise)
|
|
783
|
+
], mjBizAppsIssuesIssueStatusResolver.prototype, "mjBizAppsIssuesMJ_BizApps_Issues_Issues_StatusIDArray", null);
|
|
784
|
+
__decorate([
|
|
785
|
+
Mutation(() => mjBizAppsIssuesIssueStatus_),
|
|
786
|
+
__param(0, Arg('input', () => CreatemjBizAppsIssuesIssueStatusInput)),
|
|
787
|
+
__param(1, Ctx()),
|
|
788
|
+
__param(2, PubSub()),
|
|
789
|
+
__metadata("design:type", Function),
|
|
790
|
+
__metadata("design:paramtypes", [CreatemjBizAppsIssuesIssueStatusInput, Object, PubSubEngine]),
|
|
791
|
+
__metadata("design:returntype", Promise)
|
|
792
|
+
], mjBizAppsIssuesIssueStatusResolver.prototype, "CreatemjBizAppsIssuesIssueStatus", null);
|
|
793
|
+
__decorate([
|
|
794
|
+
Mutation(() => mjBizAppsIssuesIssueStatus_),
|
|
795
|
+
__param(0, Arg('input', () => UpdatemjBizAppsIssuesIssueStatusInput)),
|
|
796
|
+
__param(1, Ctx()),
|
|
797
|
+
__param(2, PubSub()),
|
|
798
|
+
__metadata("design:type", Function),
|
|
799
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsIssuesIssueStatusInput, Object, PubSubEngine]),
|
|
800
|
+
__metadata("design:returntype", Promise)
|
|
801
|
+
], mjBizAppsIssuesIssueStatusResolver.prototype, "UpdatemjBizAppsIssuesIssueStatus", null);
|
|
802
|
+
__decorate([
|
|
803
|
+
Mutation(() => mjBizAppsIssuesIssueStatus_),
|
|
804
|
+
__param(0, Arg('ID', () => String)),
|
|
805
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
806
|
+
__param(2, Ctx()),
|
|
807
|
+
__param(3, PubSub()),
|
|
808
|
+
__metadata("design:type", Function),
|
|
809
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
810
|
+
__metadata("design:returntype", Promise)
|
|
811
|
+
], mjBizAppsIssuesIssueStatusResolver.prototype, "DeletemjBizAppsIssuesIssueStatus", null);
|
|
812
|
+
mjBizAppsIssuesIssueStatusResolver = __decorate([
|
|
813
|
+
Resolver(mjBizAppsIssuesIssueStatus_)
|
|
814
|
+
], mjBizAppsIssuesIssueStatusResolver);
|
|
815
|
+
export { mjBizAppsIssuesIssueStatusResolver };
|
|
816
|
+
//****************************************************************************
|
|
817
|
+
// ENTITY CLASS for MJ_BizApps_Issues: Issue Types
|
|
818
|
+
//****************************************************************************
|
|
819
|
+
let mjBizAppsIssuesIssueType_ = class mjBizAppsIssuesIssueType_ {
|
|
820
|
+
};
|
|
821
|
+
__decorate([
|
|
822
|
+
Field({ description: `Unique identifier (UUID).` }),
|
|
823
|
+
MaxLength(36),
|
|
824
|
+
__metadata("design:type", String)
|
|
825
|
+
], mjBizAppsIssuesIssueType_.prototype, "ID", void 0);
|
|
826
|
+
__decorate([
|
|
827
|
+
Field({ description: `Display name of the issue type (unique). E.g. 'Bug', 'Feature Request'.` }),
|
|
828
|
+
MaxLength(100),
|
|
829
|
+
__metadata("design:type", String)
|
|
830
|
+
], mjBizAppsIssuesIssueType_.prototype, "Name", void 0);
|
|
831
|
+
__decorate([
|
|
832
|
+
Field({ nullable: true, description: `Detailed description of what this issue type represents and when to use it.` }),
|
|
833
|
+
__metadata("design:type", String)
|
|
834
|
+
], mjBizAppsIssuesIssueType_.prototype, "Description", void 0);
|
|
835
|
+
__decorate([
|
|
836
|
+
Field({ nullable: true, description: `Font Awesome (or similar) icon class shown next to issues of this type in the UI.` }),
|
|
837
|
+
MaxLength(100),
|
|
838
|
+
__metadata("design:type", String)
|
|
839
|
+
], mjBizAppsIssuesIssueType_.prototype, "IconClass", void 0);
|
|
840
|
+
__decorate([
|
|
841
|
+
Field({ description: `Priority assigned to new issues of this type when none is specified. One of Low, Medium, High, Critical.` }),
|
|
842
|
+
MaxLength(20),
|
|
843
|
+
__metadata("design:type", String)
|
|
844
|
+
], mjBizAppsIssuesIssueType_.prototype, "DefaultPriority", void 0);
|
|
845
|
+
__decorate([
|
|
846
|
+
Field({ nullable: true, description: `bizapps-tasks TaskType used when an Issue of this type spawns work via IssueWorkService. NULL = let the caller choose.` }),
|
|
847
|
+
MaxLength(36),
|
|
848
|
+
__metadata("design:type", String)
|
|
849
|
+
], mjBizAppsIssuesIssueType_.prototype, "DefaultTaskTypeID", void 0);
|
|
850
|
+
__decorate([
|
|
851
|
+
Field({ nullable: true, description: `Action fired by IssueService when an Issue of this type is created.` }),
|
|
852
|
+
MaxLength(36),
|
|
853
|
+
__metadata("design:type", String)
|
|
854
|
+
], mjBizAppsIssuesIssueType_.prototype, "OnCreateActionID", void 0);
|
|
855
|
+
__decorate([
|
|
856
|
+
Field({ nullable: true, description: `Action fired by IssueService when an Issue of this type changes status.` }),
|
|
857
|
+
MaxLength(36),
|
|
858
|
+
__metadata("design:type", String)
|
|
859
|
+
], mjBizAppsIssuesIssueType_.prototype, "OnStatusChangeActionID", void 0);
|
|
860
|
+
__decorate([
|
|
861
|
+
Field({ nullable: true, description: `Action fired by IssueService when an Issue of this type is assigned.` }),
|
|
862
|
+
MaxLength(36),
|
|
863
|
+
__metadata("design:type", String)
|
|
864
|
+
], mjBizAppsIssuesIssueType_.prototype, "OnAssignActionID", void 0);
|
|
865
|
+
__decorate([
|
|
866
|
+
Field({ nullable: true, description: `Action fired by IssueService when an Issue of this type is closed.` }),
|
|
867
|
+
MaxLength(36),
|
|
868
|
+
__metadata("design:type", String)
|
|
869
|
+
], mjBizAppsIssuesIssueType_.prototype, "OnCloseActionID", void 0);
|
|
870
|
+
__decorate([
|
|
871
|
+
Field(() => Boolean, { description: `Whether this issue type is available for new issues. Inactive types stay on historical issues but are hidden from selection.` }),
|
|
872
|
+
__metadata("design:type", Boolean)
|
|
873
|
+
], mjBizAppsIssuesIssueType_.prototype, "IsActive", void 0);
|
|
874
|
+
__decorate([
|
|
875
|
+
Field(),
|
|
876
|
+
__metadata("design:type", Date)
|
|
877
|
+
], mjBizAppsIssuesIssueType_.prototype, "_mj__CreatedAt", void 0);
|
|
878
|
+
__decorate([
|
|
879
|
+
Field(),
|
|
880
|
+
__metadata("design:type", Date)
|
|
881
|
+
], mjBizAppsIssuesIssueType_.prototype, "_mj__UpdatedAt", void 0);
|
|
882
|
+
__decorate([
|
|
883
|
+
Field({ nullable: true }),
|
|
884
|
+
MaxLength(100),
|
|
885
|
+
__metadata("design:type", String)
|
|
886
|
+
], mjBizAppsIssuesIssueType_.prototype, "DefaultTaskType", void 0);
|
|
887
|
+
__decorate([
|
|
888
|
+
Field({ nullable: true }),
|
|
889
|
+
MaxLength(425),
|
|
890
|
+
__metadata("design:type", String)
|
|
891
|
+
], mjBizAppsIssuesIssueType_.prototype, "OnCreateAction", void 0);
|
|
892
|
+
__decorate([
|
|
893
|
+
Field({ nullable: true }),
|
|
894
|
+
MaxLength(425),
|
|
895
|
+
__metadata("design:type", String)
|
|
896
|
+
], mjBizAppsIssuesIssueType_.prototype, "OnStatusChangeAction", void 0);
|
|
897
|
+
__decorate([
|
|
898
|
+
Field({ nullable: true }),
|
|
899
|
+
MaxLength(425),
|
|
900
|
+
__metadata("design:type", String)
|
|
901
|
+
], mjBizAppsIssuesIssueType_.prototype, "OnAssignAction", void 0);
|
|
902
|
+
__decorate([
|
|
903
|
+
Field({ nullable: true }),
|
|
904
|
+
MaxLength(425),
|
|
905
|
+
__metadata("design:type", String)
|
|
906
|
+
], mjBizAppsIssuesIssueType_.prototype, "OnCloseAction", void 0);
|
|
907
|
+
__decorate([
|
|
908
|
+
Field(() => [mjBizAppsIssuesIssue_]),
|
|
909
|
+
__metadata("design:type", Array)
|
|
910
|
+
], mjBizAppsIssuesIssueType_.prototype, "mjBizAppsIssuesMJ_BizApps_Issues_Issues_IssueTypeIDArray", void 0);
|
|
911
|
+
mjBizAppsIssuesIssueType_ = __decorate([
|
|
912
|
+
ObjectType({ description: `Lifecycle automation for a class of issue (Bug, Feature Request, Question, Feedback). Mirrors the bizapps-tasks TaskType action-hook pattern: On*ActionID columns point at core [Action] records fired at the matching lifecycle event.` })
|
|
913
|
+
], mjBizAppsIssuesIssueType_);
|
|
914
|
+
export { mjBizAppsIssuesIssueType_ };
|
|
915
|
+
//****************************************************************************
|
|
916
|
+
// INPUT TYPE for MJ_BizApps_Issues: Issue Types
|
|
917
|
+
//****************************************************************************
|
|
918
|
+
let CreatemjBizAppsIssuesIssueTypeInput = class CreatemjBizAppsIssuesIssueTypeInput {
|
|
919
|
+
};
|
|
920
|
+
__decorate([
|
|
921
|
+
Field({ nullable: true }),
|
|
922
|
+
__metadata("design:type", String)
|
|
923
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "ID", void 0);
|
|
924
|
+
__decorate([
|
|
925
|
+
Field({ nullable: true }),
|
|
926
|
+
__metadata("design:type", String)
|
|
927
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "Name", void 0);
|
|
928
|
+
__decorate([
|
|
929
|
+
Field({ nullable: true }),
|
|
930
|
+
__metadata("design:type", String)
|
|
931
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "Description", void 0);
|
|
932
|
+
__decorate([
|
|
933
|
+
Field({ nullable: true }),
|
|
934
|
+
__metadata("design:type", String)
|
|
935
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "IconClass", void 0);
|
|
936
|
+
__decorate([
|
|
937
|
+
Field({ nullable: true }),
|
|
938
|
+
__metadata("design:type", String)
|
|
939
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "DefaultPriority", void 0);
|
|
940
|
+
__decorate([
|
|
941
|
+
Field({ nullable: true }),
|
|
942
|
+
__metadata("design:type", String)
|
|
943
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "DefaultTaskTypeID", void 0);
|
|
944
|
+
__decorate([
|
|
945
|
+
Field({ nullable: true }),
|
|
946
|
+
__metadata("design:type", String)
|
|
947
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "OnCreateActionID", void 0);
|
|
948
|
+
__decorate([
|
|
949
|
+
Field({ nullable: true }),
|
|
950
|
+
__metadata("design:type", String)
|
|
951
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "OnStatusChangeActionID", void 0);
|
|
952
|
+
__decorate([
|
|
953
|
+
Field({ nullable: true }),
|
|
954
|
+
__metadata("design:type", String)
|
|
955
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "OnAssignActionID", void 0);
|
|
956
|
+
__decorate([
|
|
957
|
+
Field({ nullable: true }),
|
|
958
|
+
__metadata("design:type", String)
|
|
959
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "OnCloseActionID", void 0);
|
|
960
|
+
__decorate([
|
|
961
|
+
Field(() => Boolean, { nullable: true }),
|
|
962
|
+
__metadata("design:type", Boolean)
|
|
963
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "IsActive", void 0);
|
|
964
|
+
__decorate([
|
|
965
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
966
|
+
__metadata("design:type", RestoreContextInput)
|
|
967
|
+
], CreatemjBizAppsIssuesIssueTypeInput.prototype, "RestoreContext___", void 0);
|
|
968
|
+
CreatemjBizAppsIssuesIssueTypeInput = __decorate([
|
|
969
|
+
InputType()
|
|
970
|
+
], CreatemjBizAppsIssuesIssueTypeInput);
|
|
971
|
+
export { CreatemjBizAppsIssuesIssueTypeInput };
|
|
972
|
+
//****************************************************************************
|
|
973
|
+
// INPUT TYPE for MJ_BizApps_Issues: Issue Types
|
|
974
|
+
//****************************************************************************
|
|
975
|
+
let UpdatemjBizAppsIssuesIssueTypeInput = class UpdatemjBizAppsIssuesIssueTypeInput {
|
|
976
|
+
};
|
|
977
|
+
__decorate([
|
|
978
|
+
Field(),
|
|
979
|
+
__metadata("design:type", String)
|
|
980
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "ID", void 0);
|
|
981
|
+
__decorate([
|
|
982
|
+
Field({ nullable: true }),
|
|
983
|
+
__metadata("design:type", String)
|
|
984
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "Name", void 0);
|
|
985
|
+
__decorate([
|
|
986
|
+
Field({ nullable: true }),
|
|
987
|
+
__metadata("design:type", String)
|
|
988
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "Description", void 0);
|
|
989
|
+
__decorate([
|
|
990
|
+
Field({ nullable: true }),
|
|
991
|
+
__metadata("design:type", String)
|
|
992
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "IconClass", void 0);
|
|
993
|
+
__decorate([
|
|
994
|
+
Field({ nullable: true }),
|
|
995
|
+
__metadata("design:type", String)
|
|
996
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "DefaultPriority", void 0);
|
|
997
|
+
__decorate([
|
|
998
|
+
Field({ nullable: true }),
|
|
999
|
+
__metadata("design:type", String)
|
|
1000
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "DefaultTaskTypeID", void 0);
|
|
1001
|
+
__decorate([
|
|
1002
|
+
Field({ nullable: true }),
|
|
1003
|
+
__metadata("design:type", String)
|
|
1004
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "OnCreateActionID", void 0);
|
|
1005
|
+
__decorate([
|
|
1006
|
+
Field({ nullable: true }),
|
|
1007
|
+
__metadata("design:type", String)
|
|
1008
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "OnStatusChangeActionID", void 0);
|
|
1009
|
+
__decorate([
|
|
1010
|
+
Field({ nullable: true }),
|
|
1011
|
+
__metadata("design:type", String)
|
|
1012
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "OnAssignActionID", void 0);
|
|
1013
|
+
__decorate([
|
|
1014
|
+
Field({ nullable: true }),
|
|
1015
|
+
__metadata("design:type", String)
|
|
1016
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "OnCloseActionID", void 0);
|
|
1017
|
+
__decorate([
|
|
1018
|
+
Field(() => Boolean, { nullable: true }),
|
|
1019
|
+
__metadata("design:type", Boolean)
|
|
1020
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "IsActive", void 0);
|
|
1021
|
+
__decorate([
|
|
1022
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
1023
|
+
__metadata("design:type", Array)
|
|
1024
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "OldValues___", void 0);
|
|
1025
|
+
__decorate([
|
|
1026
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
1027
|
+
__metadata("design:type", RestoreContextInput)
|
|
1028
|
+
], UpdatemjBizAppsIssuesIssueTypeInput.prototype, "RestoreContext___", void 0);
|
|
1029
|
+
UpdatemjBizAppsIssuesIssueTypeInput = __decorate([
|
|
1030
|
+
InputType()
|
|
1031
|
+
], UpdatemjBizAppsIssuesIssueTypeInput);
|
|
1032
|
+
export { UpdatemjBizAppsIssuesIssueTypeInput };
|
|
1033
|
+
//****************************************************************************
|
|
1034
|
+
// RESOLVER for MJ_BizApps_Issues: Issue Types
|
|
1035
|
+
//****************************************************************************
|
|
1036
|
+
let RunmjBizAppsIssuesIssueTypeViewResult = class RunmjBizAppsIssuesIssueTypeViewResult {
|
|
1037
|
+
};
|
|
1038
|
+
__decorate([
|
|
1039
|
+
Field(() => [mjBizAppsIssuesIssueType_]),
|
|
1040
|
+
__metadata("design:type", Array)
|
|
1041
|
+
], RunmjBizAppsIssuesIssueTypeViewResult.prototype, "Results", void 0);
|
|
1042
|
+
__decorate([
|
|
1043
|
+
Field(() => String, { nullable: true }),
|
|
1044
|
+
__metadata("design:type", String)
|
|
1045
|
+
], RunmjBizAppsIssuesIssueTypeViewResult.prototype, "UserViewRunID", void 0);
|
|
1046
|
+
__decorate([
|
|
1047
|
+
Field(() => Int, { nullable: true }),
|
|
1048
|
+
__metadata("design:type", Number)
|
|
1049
|
+
], RunmjBizAppsIssuesIssueTypeViewResult.prototype, "RowCount", void 0);
|
|
1050
|
+
__decorate([
|
|
1051
|
+
Field(() => Int, { nullable: true }),
|
|
1052
|
+
__metadata("design:type", Number)
|
|
1053
|
+
], RunmjBizAppsIssuesIssueTypeViewResult.prototype, "TotalRowCount", void 0);
|
|
1054
|
+
__decorate([
|
|
1055
|
+
Field(() => Int, { nullable: true }),
|
|
1056
|
+
__metadata("design:type", Number)
|
|
1057
|
+
], RunmjBizAppsIssuesIssueTypeViewResult.prototype, "ExecutionTime", void 0);
|
|
1058
|
+
__decorate([
|
|
1059
|
+
Field({ nullable: true }),
|
|
1060
|
+
__metadata("design:type", String)
|
|
1061
|
+
], RunmjBizAppsIssuesIssueTypeViewResult.prototype, "ErrorMessage", void 0);
|
|
1062
|
+
__decorate([
|
|
1063
|
+
Field(() => Boolean, { nullable: false }),
|
|
1064
|
+
__metadata("design:type", Boolean)
|
|
1065
|
+
], RunmjBizAppsIssuesIssueTypeViewResult.prototype, "Success", void 0);
|
|
1066
|
+
RunmjBizAppsIssuesIssueTypeViewResult = __decorate([
|
|
1067
|
+
ObjectType()
|
|
1068
|
+
], RunmjBizAppsIssuesIssueTypeViewResult);
|
|
1069
|
+
export { RunmjBizAppsIssuesIssueTypeViewResult };
|
|
1070
|
+
let mjBizAppsIssuesIssueTypeResolver = class mjBizAppsIssuesIssueTypeResolver extends ResolverBase {
|
|
1071
|
+
async RunmjBizAppsIssuesIssueTypeViewByID(input, { providers, userPayload }, pubSub) {
|
|
1072
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1073
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
1074
|
+
}
|
|
1075
|
+
async RunmjBizAppsIssuesIssueTypeViewByName(input, { providers, userPayload }, pubSub) {
|
|
1076
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1077
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
1078
|
+
}
|
|
1079
|
+
async RunmjBizAppsIssuesIssueTypeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
1080
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1081
|
+
input.EntityName = 'MJ_BizApps_Issues: Issue Types';
|
|
1082
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
1083
|
+
}
|
|
1084
|
+
async mjBizAppsIssuesIssueType(ID, { userPayload, providers }, pubSub) {
|
|
1085
|
+
this.CheckUserReadPermissions('MJ_BizApps_Issues: Issue Types', userPayload);
|
|
1086
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1087
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsIssues', 'vwIssueTypes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Issues: Issue Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
1088
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1089
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Issues: Issue Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1090
|
+
return result;
|
|
1091
|
+
}
|
|
1092
|
+
async mjBizAppsIssuesMJ_BizApps_Issues_Issues_IssueTypeIDArray(mjbizappsissuesissuetype_, { userPayload, providers }, pubSub) {
|
|
1093
|
+
this.CheckUserReadPermissions('MJ_BizApps_Issues: Issues', userPayload);
|
|
1094
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1095
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsIssues', 'vwIssues')} WHERE ${provider.QuoteIdentifier('IssueTypeID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Issues: Issues', userPayload, EntityPermissionType.Read, 'AND');
|
|
1096
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappsissuesissuetype_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1097
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Issues: Issues', rows, this.GetUserFromPayload(userPayload));
|
|
1098
|
+
return result;
|
|
1099
|
+
}
|
|
1100
|
+
async CreatemjBizAppsIssuesIssueType(input, { providers, userPayload }, pubSub) {
|
|
1101
|
+
const provider = GetReadWriteProvider(providers);
|
|
1102
|
+
return this.CreateRecord('MJ_BizApps_Issues: Issue Types', input, provider, userPayload, pubSub);
|
|
1103
|
+
}
|
|
1104
|
+
async UpdatemjBizAppsIssuesIssueType(input, { providers, userPayload }, pubSub) {
|
|
1105
|
+
const provider = GetReadWriteProvider(providers);
|
|
1106
|
+
return this.UpdateRecord('MJ_BizApps_Issues: Issue Types', input, provider, userPayload, pubSub);
|
|
1107
|
+
}
|
|
1108
|
+
async DeletemjBizAppsIssuesIssueType(ID, options, { providers, userPayload }, pubSub) {
|
|
1109
|
+
const provider = GetReadWriteProvider(providers);
|
|
1110
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
1111
|
+
return this.DeleteRecord('MJ_BizApps_Issues: Issue Types', key, options, provider, userPayload, pubSub);
|
|
1112
|
+
}
|
|
1113
|
+
};
|
|
1114
|
+
__decorate([
|
|
1115
|
+
Query(() => RunmjBizAppsIssuesIssueTypeViewResult),
|
|
1116
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
1117
|
+
__param(1, Ctx()),
|
|
1118
|
+
__param(2, PubSub()),
|
|
1119
|
+
__metadata("design:type", Function),
|
|
1120
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
1121
|
+
__metadata("design:returntype", Promise)
|
|
1122
|
+
], mjBizAppsIssuesIssueTypeResolver.prototype, "RunmjBizAppsIssuesIssueTypeViewByID", null);
|
|
1123
|
+
__decorate([
|
|
1124
|
+
Query(() => RunmjBizAppsIssuesIssueTypeViewResult),
|
|
1125
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
1126
|
+
__param(1, Ctx()),
|
|
1127
|
+
__param(2, PubSub()),
|
|
1128
|
+
__metadata("design:type", Function),
|
|
1129
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
1130
|
+
__metadata("design:returntype", Promise)
|
|
1131
|
+
], mjBizAppsIssuesIssueTypeResolver.prototype, "RunmjBizAppsIssuesIssueTypeViewByName", null);
|
|
1132
|
+
__decorate([
|
|
1133
|
+
Query(() => RunmjBizAppsIssuesIssueTypeViewResult),
|
|
1134
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
1135
|
+
__param(1, Ctx()),
|
|
1136
|
+
__param(2, PubSub()),
|
|
1137
|
+
__metadata("design:type", Function),
|
|
1138
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
1139
|
+
__metadata("design:returntype", Promise)
|
|
1140
|
+
], mjBizAppsIssuesIssueTypeResolver.prototype, "RunmjBizAppsIssuesIssueTypeDynamicView", null);
|
|
1141
|
+
__decorate([
|
|
1142
|
+
Query(() => mjBizAppsIssuesIssueType_, { nullable: true }),
|
|
1143
|
+
__param(0, Arg('ID', () => String)),
|
|
1144
|
+
__param(1, Ctx()),
|
|
1145
|
+
__param(2, PubSub()),
|
|
1146
|
+
__metadata("design:type", Function),
|
|
1147
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
1148
|
+
__metadata("design:returntype", Promise)
|
|
1149
|
+
], mjBizAppsIssuesIssueTypeResolver.prototype, "mjBizAppsIssuesIssueType", null);
|
|
1150
|
+
__decorate([
|
|
1151
|
+
FieldResolver(() => [mjBizAppsIssuesIssue_]),
|
|
1152
|
+
__param(0, Root()),
|
|
1153
|
+
__param(1, Ctx()),
|
|
1154
|
+
__param(2, PubSub()),
|
|
1155
|
+
__metadata("design:type", Function),
|
|
1156
|
+
__metadata("design:paramtypes", [mjBizAppsIssuesIssueType_, Object, PubSubEngine]),
|
|
1157
|
+
__metadata("design:returntype", Promise)
|
|
1158
|
+
], mjBizAppsIssuesIssueTypeResolver.prototype, "mjBizAppsIssuesMJ_BizApps_Issues_Issues_IssueTypeIDArray", null);
|
|
1159
|
+
__decorate([
|
|
1160
|
+
Mutation(() => mjBizAppsIssuesIssueType_),
|
|
1161
|
+
__param(0, Arg('input', () => CreatemjBizAppsIssuesIssueTypeInput)),
|
|
1162
|
+
__param(1, Ctx()),
|
|
1163
|
+
__param(2, PubSub()),
|
|
1164
|
+
__metadata("design:type", Function),
|
|
1165
|
+
__metadata("design:paramtypes", [CreatemjBizAppsIssuesIssueTypeInput, Object, PubSubEngine]),
|
|
1166
|
+
__metadata("design:returntype", Promise)
|
|
1167
|
+
], mjBizAppsIssuesIssueTypeResolver.prototype, "CreatemjBizAppsIssuesIssueType", null);
|
|
1168
|
+
__decorate([
|
|
1169
|
+
Mutation(() => mjBizAppsIssuesIssueType_),
|
|
1170
|
+
__param(0, Arg('input', () => UpdatemjBizAppsIssuesIssueTypeInput)),
|
|
1171
|
+
__param(1, Ctx()),
|
|
1172
|
+
__param(2, PubSub()),
|
|
1173
|
+
__metadata("design:type", Function),
|
|
1174
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsIssuesIssueTypeInput, Object, PubSubEngine]),
|
|
1175
|
+
__metadata("design:returntype", Promise)
|
|
1176
|
+
], mjBizAppsIssuesIssueTypeResolver.prototype, "UpdatemjBizAppsIssuesIssueType", null);
|
|
1177
|
+
__decorate([
|
|
1178
|
+
Mutation(() => mjBizAppsIssuesIssueType_),
|
|
1179
|
+
__param(0, Arg('ID', () => String)),
|
|
1180
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
1181
|
+
__param(2, Ctx()),
|
|
1182
|
+
__param(3, PubSub()),
|
|
1183
|
+
__metadata("design:type", Function),
|
|
1184
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
1185
|
+
__metadata("design:returntype", Promise)
|
|
1186
|
+
], mjBizAppsIssuesIssueTypeResolver.prototype, "DeletemjBizAppsIssuesIssueType", null);
|
|
1187
|
+
mjBizAppsIssuesIssueTypeResolver = __decorate([
|
|
1188
|
+
Resolver(mjBizAppsIssuesIssueType_)
|
|
1189
|
+
], mjBizAppsIssuesIssueTypeResolver);
|
|
1190
|
+
export { mjBizAppsIssuesIssueTypeResolver };
|
|
1191
|
+
//****************************************************************************
|
|
1192
|
+
// ENTITY CLASS for MJ_BizApps_Issues: Issues
|
|
1193
|
+
//****************************************************************************
|
|
1194
|
+
let mjBizAppsIssuesIssue_ = class mjBizAppsIssuesIssue_ {
|
|
1195
|
+
};
|
|
1196
|
+
__decorate([
|
|
1197
|
+
Field({ description: `Unique identifier (UUID).` }),
|
|
1198
|
+
MaxLength(36),
|
|
1199
|
+
__metadata("design:type", String)
|
|
1200
|
+
], mjBizAppsIssuesIssue_.prototype, "ID", void 0);
|
|
1201
|
+
__decorate([
|
|
1202
|
+
Field({ nullable: true, description: `Human-readable case identifier, format {SCOPE}-{seq} (e.g. 'MJC-42'), where SCOPE is the normalized (trim/UPPER) AppScope or 'ISS' when none. Assigned once on insert by spAssignNextIssueNumber via IssueEntityServer; immutable thereafter. UNIQUE. Per-AppScope (globally sequential across orgs sharing a scope) — Izzy layers a separate per-org TKT-#### on top.` }),
|
|
1203
|
+
MaxLength(50),
|
|
1204
|
+
__metadata("design:type", String)
|
|
1205
|
+
], mjBizAppsIssuesIssue_.prototype, "IssueNumber", void 0);
|
|
1206
|
+
__decorate([
|
|
1207
|
+
Field({ description: `Short, one-line summary of the issue.` }),
|
|
1208
|
+
MaxLength(500),
|
|
1209
|
+
__metadata("design:type", String)
|
|
1210
|
+
], mjBizAppsIssuesIssue_.prototype, "Title", void 0);
|
|
1211
|
+
__decorate([
|
|
1212
|
+
Field({ nullable: true, description: `Full description / body of the issue (Markdown or plain text).` }),
|
|
1213
|
+
__metadata("design:type", String)
|
|
1214
|
+
], mjBizAppsIssuesIssue_.prototype, "Description", void 0);
|
|
1215
|
+
__decorate([
|
|
1216
|
+
Field({ description: `The IssueType classifying this issue. Drives lifecycle action hooks and the default spawned task type.` }),
|
|
1217
|
+
MaxLength(36),
|
|
1218
|
+
__metadata("design:type", String)
|
|
1219
|
+
], mjBizAppsIssuesIssue_.prototype, "IssueTypeID", void 0);
|
|
1220
|
+
__decorate([
|
|
1221
|
+
Field({ description: `Current workflow status of the issue.` }),
|
|
1222
|
+
MaxLength(36),
|
|
1223
|
+
__metadata("design:type", String)
|
|
1224
|
+
], mjBizAppsIssuesIssue_.prototype, "StatusID", void 0);
|
|
1225
|
+
__decorate([
|
|
1226
|
+
Field({ description: `Impact of the issue (how bad it is): Low, Medium, High, Critical. Distinct from Priority.` }),
|
|
1227
|
+
MaxLength(20),
|
|
1228
|
+
__metadata("design:type", String)
|
|
1229
|
+
], mjBizAppsIssuesIssue_.prototype, "Severity", void 0);
|
|
1230
|
+
__decorate([
|
|
1231
|
+
Field({ description: `Scheduling priority (how soon to address it): Low, Medium, High, Critical. Distinct from Severity.` }),
|
|
1232
|
+
MaxLength(20),
|
|
1233
|
+
__metadata("design:type", String)
|
|
1234
|
+
], mjBizAppsIssuesIssue_.prototype, "Priority", void 0);
|
|
1235
|
+
__decorate([
|
|
1236
|
+
Field({ nullable: true, description: `The Person who raised the issue, when known internally. NULL for external/anonymous reporters (use ReporterEmail).` }),
|
|
1237
|
+
MaxLength(36),
|
|
1238
|
+
__metadata("design:type", String)
|
|
1239
|
+
], mjBizAppsIssuesIssue_.prototype, "ReporterPersonID", void 0);
|
|
1240
|
+
__decorate([
|
|
1241
|
+
Field({ nullable: true, description: `Email of the reporter, used when there is no linked Person (external feedback, email-in).` }),
|
|
1242
|
+
MaxLength(320),
|
|
1243
|
+
__metadata("design:type", String)
|
|
1244
|
+
], mjBizAppsIssuesIssue_.prototype, "ReporterEmail", void 0);
|
|
1245
|
+
__decorate([
|
|
1246
|
+
Field({ nullable: true, description: `Polymorphic assignee: the core Entity of the assignee (e.g. a Person entity or an AI Agent entity). Paired with AssigneeRecordID.` }),
|
|
1247
|
+
MaxLength(36),
|
|
1248
|
+
__metadata("design:type", String)
|
|
1249
|
+
], mjBizAppsIssuesIssue_.prototype, "AssigneeEntityID", void 0);
|
|
1250
|
+
__decorate([
|
|
1251
|
+
Field({ nullable: true, description: `Polymorphic assignee: the primary key (as string) of the assignee record within AssigneeEntityID.` }),
|
|
1252
|
+
MaxLength(450),
|
|
1253
|
+
__metadata("design:type", String)
|
|
1254
|
+
], mjBizAppsIssuesIssue_.prototype, "AssigneeRecordID", void 0);
|
|
1255
|
+
__decorate([
|
|
1256
|
+
Field({ nullable: true, description: `Polymorphic source: the core Entity of the record this issue is about (what the feedback concerns). Paired with SourceRecordID.` }),
|
|
1257
|
+
MaxLength(36),
|
|
1258
|
+
__metadata("design:type", String)
|
|
1259
|
+
], mjBizAppsIssuesIssue_.prototype, "SourceEntityID", void 0);
|
|
1260
|
+
__decorate([
|
|
1261
|
+
Field({ nullable: true, description: `Polymorphic source: the primary key (as string) of the source record within SourceEntityID.` }),
|
|
1262
|
+
MaxLength(450),
|
|
1263
|
+
__metadata("design:type", String)
|
|
1264
|
+
], mjBizAppsIssuesIssue_.prototype, "SourceRecordID", void 0);
|
|
1265
|
+
__decorate([
|
|
1266
|
+
Field({ nullable: true, description: `Which app / product this issue belongs to (free-text scope tag, e.g. 'MJC', 'Explorer').` }),
|
|
1267
|
+
MaxLength(255),
|
|
1268
|
+
__metadata("design:type", String)
|
|
1269
|
+
], mjBizAppsIssuesIssue_.prototype, "AppScope", void 0);
|
|
1270
|
+
__decorate([
|
|
1271
|
+
Field({ nullable: true, description: `Timestamp the issue was resolved (entered a resolved state). NULL while unresolved.` }),
|
|
1272
|
+
__metadata("design:type", Date)
|
|
1273
|
+
], mjBizAppsIssuesIssue_.prototype, "ResolvedAt", void 0);
|
|
1274
|
+
__decorate([
|
|
1275
|
+
Field({ nullable: true, description: `Timestamp the issue was closed (entered a terminal state). NULL while open.` }),
|
|
1276
|
+
__metadata("design:type", Date)
|
|
1277
|
+
], mjBizAppsIssuesIssue_.prototype, "ClosedAt", void 0);
|
|
1278
|
+
__decorate([
|
|
1279
|
+
Field({ nullable: true, description: `The Person who created the issue record in the system (may differ from the reporter).` }),
|
|
1280
|
+
MaxLength(36),
|
|
1281
|
+
__metadata("design:type", String)
|
|
1282
|
+
], mjBizAppsIssuesIssue_.prototype, "CreatedByPersonID", void 0);
|
|
1283
|
+
__decorate([
|
|
1284
|
+
Field(),
|
|
1285
|
+
__metadata("design:type", Date)
|
|
1286
|
+
], mjBizAppsIssuesIssue_.prototype, "_mj__CreatedAt", void 0);
|
|
1287
|
+
__decorate([
|
|
1288
|
+
Field(),
|
|
1289
|
+
__metadata("design:type", Date)
|
|
1290
|
+
], mjBizAppsIssuesIssue_.prototype, "_mj__UpdatedAt", void 0);
|
|
1291
|
+
__decorate([
|
|
1292
|
+
Field(),
|
|
1293
|
+
MaxLength(100),
|
|
1294
|
+
__metadata("design:type", String)
|
|
1295
|
+
], mjBizAppsIssuesIssue_.prototype, "IssueType", void 0);
|
|
1296
|
+
__decorate([
|
|
1297
|
+
Field(),
|
|
1298
|
+
MaxLength(100),
|
|
1299
|
+
__metadata("design:type", String)
|
|
1300
|
+
], mjBizAppsIssuesIssue_.prototype, "Status", void 0);
|
|
1301
|
+
__decorate([
|
|
1302
|
+
Field({ nullable: true }),
|
|
1303
|
+
MaxLength(201),
|
|
1304
|
+
__metadata("design:type", String)
|
|
1305
|
+
], mjBizAppsIssuesIssue_.prototype, "ReporterPerson", void 0);
|
|
1306
|
+
__decorate([
|
|
1307
|
+
Field({ nullable: true }),
|
|
1308
|
+
MaxLength(255),
|
|
1309
|
+
__metadata("design:type", String)
|
|
1310
|
+
], mjBizAppsIssuesIssue_.prototype, "AssigneeEntity", void 0);
|
|
1311
|
+
__decorate([
|
|
1312
|
+
Field({ nullable: true }),
|
|
1313
|
+
MaxLength(255),
|
|
1314
|
+
__metadata("design:type", String)
|
|
1315
|
+
], mjBizAppsIssuesIssue_.prototype, "SourceEntity", void 0);
|
|
1316
|
+
__decorate([
|
|
1317
|
+
Field({ nullable: true }),
|
|
1318
|
+
MaxLength(201),
|
|
1319
|
+
__metadata("design:type", String)
|
|
1320
|
+
], mjBizAppsIssuesIssue_.prototype, "CreatedByPerson", void 0);
|
|
1321
|
+
__decorate([
|
|
1322
|
+
Field(() => [mjBizAppsIssuesIssueComment_]),
|
|
1323
|
+
__metadata("design:type", Array)
|
|
1324
|
+
], mjBizAppsIssuesIssue_.prototype, "mjBizAppsIssuesMJ_BizApps_Issues_IssueComments_IssueIDArray", void 0);
|
|
1325
|
+
mjBizAppsIssuesIssue_ = __decorate([
|
|
1326
|
+
ObjectType({ description: `The core case / ticket / feedback record. Carries reporter, polymorphic assignee (Person or AI Agent), and a polymorphic source (any record the issue is about). Spawns bizapps-tasks Tasks for the actual work via TaskLink.` })
|
|
1327
|
+
], mjBizAppsIssuesIssue_);
|
|
1328
|
+
export { mjBizAppsIssuesIssue_ };
|
|
1329
|
+
//****************************************************************************
|
|
1330
|
+
// INPUT TYPE for MJ_BizApps_Issues: Issues
|
|
1331
|
+
//****************************************************************************
|
|
1332
|
+
let CreatemjBizAppsIssuesIssueInput = class CreatemjBizAppsIssuesIssueInput {
|
|
1333
|
+
};
|
|
1334
|
+
__decorate([
|
|
1335
|
+
Field({ nullable: true }),
|
|
1336
|
+
__metadata("design:type", String)
|
|
1337
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "ID", void 0);
|
|
1338
|
+
__decorate([
|
|
1339
|
+
Field({ nullable: true }),
|
|
1340
|
+
__metadata("design:type", String)
|
|
1341
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "IssueNumber", void 0);
|
|
1342
|
+
__decorate([
|
|
1343
|
+
Field({ nullable: true }),
|
|
1344
|
+
__metadata("design:type", String)
|
|
1345
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "Title", void 0);
|
|
1346
|
+
__decorate([
|
|
1347
|
+
Field({ nullable: true }),
|
|
1348
|
+
__metadata("design:type", String)
|
|
1349
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "Description", void 0);
|
|
1350
|
+
__decorate([
|
|
1351
|
+
Field({ nullable: true }),
|
|
1352
|
+
__metadata("design:type", String)
|
|
1353
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "IssueTypeID", void 0);
|
|
1354
|
+
__decorate([
|
|
1355
|
+
Field({ nullable: true }),
|
|
1356
|
+
__metadata("design:type", String)
|
|
1357
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "StatusID", void 0);
|
|
1358
|
+
__decorate([
|
|
1359
|
+
Field({ nullable: true }),
|
|
1360
|
+
__metadata("design:type", String)
|
|
1361
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "Severity", void 0);
|
|
1362
|
+
__decorate([
|
|
1363
|
+
Field({ nullable: true }),
|
|
1364
|
+
__metadata("design:type", String)
|
|
1365
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "Priority", void 0);
|
|
1366
|
+
__decorate([
|
|
1367
|
+
Field({ nullable: true }),
|
|
1368
|
+
__metadata("design:type", String)
|
|
1369
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "ReporterPersonID", void 0);
|
|
1370
|
+
__decorate([
|
|
1371
|
+
Field({ nullable: true }),
|
|
1372
|
+
__metadata("design:type", String)
|
|
1373
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "ReporterEmail", void 0);
|
|
1374
|
+
__decorate([
|
|
1375
|
+
Field({ nullable: true }),
|
|
1376
|
+
__metadata("design:type", String)
|
|
1377
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "AssigneeEntityID", void 0);
|
|
1378
|
+
__decorate([
|
|
1379
|
+
Field({ nullable: true }),
|
|
1380
|
+
__metadata("design:type", String)
|
|
1381
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "AssigneeRecordID", void 0);
|
|
1382
|
+
__decorate([
|
|
1383
|
+
Field({ nullable: true }),
|
|
1384
|
+
__metadata("design:type", String)
|
|
1385
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "SourceEntityID", void 0);
|
|
1386
|
+
__decorate([
|
|
1387
|
+
Field({ nullable: true }),
|
|
1388
|
+
__metadata("design:type", String)
|
|
1389
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "SourceRecordID", void 0);
|
|
1390
|
+
__decorate([
|
|
1391
|
+
Field({ nullable: true }),
|
|
1392
|
+
__metadata("design:type", String)
|
|
1393
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "AppScope", void 0);
|
|
1394
|
+
__decorate([
|
|
1395
|
+
Field({ nullable: true }),
|
|
1396
|
+
__metadata("design:type", Date)
|
|
1397
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "ResolvedAt", void 0);
|
|
1398
|
+
__decorate([
|
|
1399
|
+
Field({ nullable: true }),
|
|
1400
|
+
__metadata("design:type", Date)
|
|
1401
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "ClosedAt", void 0);
|
|
1402
|
+
__decorate([
|
|
1403
|
+
Field({ nullable: true }),
|
|
1404
|
+
__metadata("design:type", String)
|
|
1405
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "CreatedByPersonID", void 0);
|
|
1406
|
+
__decorate([
|
|
1407
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
1408
|
+
__metadata("design:type", RestoreContextInput)
|
|
1409
|
+
], CreatemjBizAppsIssuesIssueInput.prototype, "RestoreContext___", void 0);
|
|
1410
|
+
CreatemjBizAppsIssuesIssueInput = __decorate([
|
|
1411
|
+
InputType()
|
|
1412
|
+
], CreatemjBizAppsIssuesIssueInput);
|
|
1413
|
+
export { CreatemjBizAppsIssuesIssueInput };
|
|
1414
|
+
//****************************************************************************
|
|
1415
|
+
// INPUT TYPE for MJ_BizApps_Issues: Issues
|
|
1416
|
+
//****************************************************************************
|
|
1417
|
+
let UpdatemjBizAppsIssuesIssueInput = class UpdatemjBizAppsIssuesIssueInput {
|
|
1418
|
+
};
|
|
1419
|
+
__decorate([
|
|
1420
|
+
Field(),
|
|
1421
|
+
__metadata("design:type", String)
|
|
1422
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "ID", void 0);
|
|
1423
|
+
__decorate([
|
|
1424
|
+
Field({ nullable: true }),
|
|
1425
|
+
__metadata("design:type", String)
|
|
1426
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "IssueNumber", void 0);
|
|
1427
|
+
__decorate([
|
|
1428
|
+
Field({ nullable: true }),
|
|
1429
|
+
__metadata("design:type", String)
|
|
1430
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "Title", void 0);
|
|
1431
|
+
__decorate([
|
|
1432
|
+
Field({ nullable: true }),
|
|
1433
|
+
__metadata("design:type", String)
|
|
1434
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "Description", void 0);
|
|
1435
|
+
__decorate([
|
|
1436
|
+
Field({ nullable: true }),
|
|
1437
|
+
__metadata("design:type", String)
|
|
1438
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "IssueTypeID", void 0);
|
|
1439
|
+
__decorate([
|
|
1440
|
+
Field({ nullable: true }),
|
|
1441
|
+
__metadata("design:type", String)
|
|
1442
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "StatusID", void 0);
|
|
1443
|
+
__decorate([
|
|
1444
|
+
Field({ nullable: true }),
|
|
1445
|
+
__metadata("design:type", String)
|
|
1446
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "Severity", void 0);
|
|
1447
|
+
__decorate([
|
|
1448
|
+
Field({ nullable: true }),
|
|
1449
|
+
__metadata("design:type", String)
|
|
1450
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "Priority", void 0);
|
|
1451
|
+
__decorate([
|
|
1452
|
+
Field({ nullable: true }),
|
|
1453
|
+
__metadata("design:type", String)
|
|
1454
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "ReporterPersonID", void 0);
|
|
1455
|
+
__decorate([
|
|
1456
|
+
Field({ nullable: true }),
|
|
1457
|
+
__metadata("design:type", String)
|
|
1458
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "ReporterEmail", void 0);
|
|
1459
|
+
__decorate([
|
|
1460
|
+
Field({ nullable: true }),
|
|
1461
|
+
__metadata("design:type", String)
|
|
1462
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "AssigneeEntityID", void 0);
|
|
1463
|
+
__decorate([
|
|
1464
|
+
Field({ nullable: true }),
|
|
1465
|
+
__metadata("design:type", String)
|
|
1466
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "AssigneeRecordID", void 0);
|
|
1467
|
+
__decorate([
|
|
1468
|
+
Field({ nullable: true }),
|
|
1469
|
+
__metadata("design:type", String)
|
|
1470
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "SourceEntityID", void 0);
|
|
1471
|
+
__decorate([
|
|
1472
|
+
Field({ nullable: true }),
|
|
1473
|
+
__metadata("design:type", String)
|
|
1474
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "SourceRecordID", void 0);
|
|
1475
|
+
__decorate([
|
|
1476
|
+
Field({ nullable: true }),
|
|
1477
|
+
__metadata("design:type", String)
|
|
1478
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "AppScope", void 0);
|
|
1479
|
+
__decorate([
|
|
1480
|
+
Field({ nullable: true }),
|
|
1481
|
+
__metadata("design:type", Date)
|
|
1482
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "ResolvedAt", void 0);
|
|
1483
|
+
__decorate([
|
|
1484
|
+
Field({ nullable: true }),
|
|
1485
|
+
__metadata("design:type", Date)
|
|
1486
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "ClosedAt", void 0);
|
|
1487
|
+
__decorate([
|
|
1488
|
+
Field({ nullable: true }),
|
|
1489
|
+
__metadata("design:type", String)
|
|
1490
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "CreatedByPersonID", void 0);
|
|
1491
|
+
__decorate([
|
|
1492
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
1493
|
+
__metadata("design:type", Array)
|
|
1494
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "OldValues___", void 0);
|
|
1495
|
+
__decorate([
|
|
1496
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
1497
|
+
__metadata("design:type", RestoreContextInput)
|
|
1498
|
+
], UpdatemjBizAppsIssuesIssueInput.prototype, "RestoreContext___", void 0);
|
|
1499
|
+
UpdatemjBizAppsIssuesIssueInput = __decorate([
|
|
1500
|
+
InputType()
|
|
1501
|
+
], UpdatemjBizAppsIssuesIssueInput);
|
|
1502
|
+
export { UpdatemjBizAppsIssuesIssueInput };
|
|
1503
|
+
//****************************************************************************
|
|
1504
|
+
// RESOLVER for MJ_BizApps_Issues: Issues
|
|
1505
|
+
//****************************************************************************
|
|
1506
|
+
let RunmjBizAppsIssuesIssueViewResult = class RunmjBizAppsIssuesIssueViewResult {
|
|
1507
|
+
};
|
|
1508
|
+
__decorate([
|
|
1509
|
+
Field(() => [mjBizAppsIssuesIssue_]),
|
|
1510
|
+
__metadata("design:type", Array)
|
|
1511
|
+
], RunmjBizAppsIssuesIssueViewResult.prototype, "Results", void 0);
|
|
1512
|
+
__decorate([
|
|
1513
|
+
Field(() => String, { nullable: true }),
|
|
1514
|
+
__metadata("design:type", String)
|
|
1515
|
+
], RunmjBizAppsIssuesIssueViewResult.prototype, "UserViewRunID", void 0);
|
|
1516
|
+
__decorate([
|
|
1517
|
+
Field(() => Int, { nullable: true }),
|
|
1518
|
+
__metadata("design:type", Number)
|
|
1519
|
+
], RunmjBizAppsIssuesIssueViewResult.prototype, "RowCount", void 0);
|
|
1520
|
+
__decorate([
|
|
1521
|
+
Field(() => Int, { nullable: true }),
|
|
1522
|
+
__metadata("design:type", Number)
|
|
1523
|
+
], RunmjBizAppsIssuesIssueViewResult.prototype, "TotalRowCount", void 0);
|
|
1524
|
+
__decorate([
|
|
1525
|
+
Field(() => Int, { nullable: true }),
|
|
1526
|
+
__metadata("design:type", Number)
|
|
1527
|
+
], RunmjBizAppsIssuesIssueViewResult.prototype, "ExecutionTime", void 0);
|
|
1528
|
+
__decorate([
|
|
1529
|
+
Field({ nullable: true }),
|
|
1530
|
+
__metadata("design:type", String)
|
|
1531
|
+
], RunmjBizAppsIssuesIssueViewResult.prototype, "ErrorMessage", void 0);
|
|
1532
|
+
__decorate([
|
|
1533
|
+
Field(() => Boolean, { nullable: false }),
|
|
1534
|
+
__metadata("design:type", Boolean)
|
|
1535
|
+
], RunmjBizAppsIssuesIssueViewResult.prototype, "Success", void 0);
|
|
1536
|
+
RunmjBizAppsIssuesIssueViewResult = __decorate([
|
|
1537
|
+
ObjectType()
|
|
1538
|
+
], RunmjBizAppsIssuesIssueViewResult);
|
|
1539
|
+
export { RunmjBizAppsIssuesIssueViewResult };
|
|
1540
|
+
let mjBizAppsIssuesIssueResolver = class mjBizAppsIssuesIssueResolver extends ResolverBase {
|
|
1541
|
+
async RunmjBizAppsIssuesIssueViewByID(input, { providers, userPayload }, pubSub) {
|
|
1542
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1543
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
1544
|
+
}
|
|
1545
|
+
async RunmjBizAppsIssuesIssueViewByName(input, { providers, userPayload }, pubSub) {
|
|
1546
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1547
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
1548
|
+
}
|
|
1549
|
+
async RunmjBizAppsIssuesIssueDynamicView(input, { providers, userPayload }, pubSub) {
|
|
1550
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1551
|
+
input.EntityName = 'MJ_BizApps_Issues: Issues';
|
|
1552
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
1553
|
+
}
|
|
1554
|
+
async mjBizAppsIssuesIssue(ID, { userPayload, providers }, pubSub) {
|
|
1555
|
+
this.CheckUserReadPermissions('MJ_BizApps_Issues: Issues', userPayload);
|
|
1556
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1557
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsIssues', 'vwIssues')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Issues: Issues', userPayload, EntityPermissionType.Read, 'AND');
|
|
1558
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1559
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Issues: Issues', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1560
|
+
return result;
|
|
1561
|
+
}
|
|
1562
|
+
async mjBizAppsIssuesMJ_BizApps_Issues_IssueComments_IssueIDArray(mjbizappsissuesissue_, { userPayload, providers }, pubSub) {
|
|
1563
|
+
this.CheckUserReadPermissions('MJ_BizApps_Issues: Issue Comments', userPayload);
|
|
1564
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1565
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsIssues', 'vwIssueComments')} WHERE ${provider.QuoteIdentifier('IssueID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Issues: Issue Comments', userPayload, EntityPermissionType.Read, 'AND');
|
|
1566
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappsissuesissue_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1567
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Issues: Issue Comments', rows, this.GetUserFromPayload(userPayload));
|
|
1568
|
+
return result;
|
|
1569
|
+
}
|
|
1570
|
+
async CreatemjBizAppsIssuesIssue(input, { providers, userPayload }, pubSub) {
|
|
1571
|
+
const provider = GetReadWriteProvider(providers);
|
|
1572
|
+
return this.CreateRecord('MJ_BizApps_Issues: Issues', input, provider, userPayload, pubSub);
|
|
1573
|
+
}
|
|
1574
|
+
async UpdatemjBizAppsIssuesIssue(input, { providers, userPayload }, pubSub) {
|
|
1575
|
+
const provider = GetReadWriteProvider(providers);
|
|
1576
|
+
return this.UpdateRecord('MJ_BizApps_Issues: Issues', input, provider, userPayload, pubSub);
|
|
1577
|
+
}
|
|
1578
|
+
async DeletemjBizAppsIssuesIssue(ID, options, { providers, userPayload }, pubSub) {
|
|
1579
|
+
const provider = GetReadWriteProvider(providers);
|
|
1580
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
1581
|
+
return this.DeleteRecord('MJ_BizApps_Issues: Issues', key, options, provider, userPayload, pubSub);
|
|
1582
|
+
}
|
|
1583
|
+
};
|
|
1584
|
+
__decorate([
|
|
1585
|
+
Query(() => RunmjBizAppsIssuesIssueViewResult),
|
|
1586
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
1587
|
+
__param(1, Ctx()),
|
|
1588
|
+
__param(2, PubSub()),
|
|
1589
|
+
__metadata("design:type", Function),
|
|
1590
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
1591
|
+
__metadata("design:returntype", Promise)
|
|
1592
|
+
], mjBizAppsIssuesIssueResolver.prototype, "RunmjBizAppsIssuesIssueViewByID", null);
|
|
1593
|
+
__decorate([
|
|
1594
|
+
Query(() => RunmjBizAppsIssuesIssueViewResult),
|
|
1595
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
1596
|
+
__param(1, Ctx()),
|
|
1597
|
+
__param(2, PubSub()),
|
|
1598
|
+
__metadata("design:type", Function),
|
|
1599
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
1600
|
+
__metadata("design:returntype", Promise)
|
|
1601
|
+
], mjBizAppsIssuesIssueResolver.prototype, "RunmjBizAppsIssuesIssueViewByName", null);
|
|
1602
|
+
__decorate([
|
|
1603
|
+
Query(() => RunmjBizAppsIssuesIssueViewResult),
|
|
1604
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
1605
|
+
__param(1, Ctx()),
|
|
1606
|
+
__param(2, PubSub()),
|
|
1607
|
+
__metadata("design:type", Function),
|
|
1608
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
1609
|
+
__metadata("design:returntype", Promise)
|
|
1610
|
+
], mjBizAppsIssuesIssueResolver.prototype, "RunmjBizAppsIssuesIssueDynamicView", null);
|
|
1611
|
+
__decorate([
|
|
1612
|
+
Query(() => mjBizAppsIssuesIssue_, { nullable: true }),
|
|
1613
|
+
__param(0, Arg('ID', () => String)),
|
|
1614
|
+
__param(1, Ctx()),
|
|
1615
|
+
__param(2, PubSub()),
|
|
1616
|
+
__metadata("design:type", Function),
|
|
1617
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
1618
|
+
__metadata("design:returntype", Promise)
|
|
1619
|
+
], mjBizAppsIssuesIssueResolver.prototype, "mjBizAppsIssuesIssue", null);
|
|
1620
|
+
__decorate([
|
|
1621
|
+
FieldResolver(() => [mjBizAppsIssuesIssueComment_]),
|
|
1622
|
+
__param(0, Root()),
|
|
1623
|
+
__param(1, Ctx()),
|
|
1624
|
+
__param(2, PubSub()),
|
|
1625
|
+
__metadata("design:type", Function),
|
|
1626
|
+
__metadata("design:paramtypes", [mjBizAppsIssuesIssue_, Object, PubSubEngine]),
|
|
1627
|
+
__metadata("design:returntype", Promise)
|
|
1628
|
+
], mjBizAppsIssuesIssueResolver.prototype, "mjBizAppsIssuesMJ_BizApps_Issues_IssueComments_IssueIDArray", null);
|
|
1629
|
+
__decorate([
|
|
1630
|
+
Mutation(() => mjBizAppsIssuesIssue_),
|
|
1631
|
+
__param(0, Arg('input', () => CreatemjBizAppsIssuesIssueInput)),
|
|
1632
|
+
__param(1, Ctx()),
|
|
1633
|
+
__param(2, PubSub()),
|
|
1634
|
+
__metadata("design:type", Function),
|
|
1635
|
+
__metadata("design:paramtypes", [CreatemjBizAppsIssuesIssueInput, Object, PubSubEngine]),
|
|
1636
|
+
__metadata("design:returntype", Promise)
|
|
1637
|
+
], mjBizAppsIssuesIssueResolver.prototype, "CreatemjBizAppsIssuesIssue", null);
|
|
1638
|
+
__decorate([
|
|
1639
|
+
Mutation(() => mjBizAppsIssuesIssue_),
|
|
1640
|
+
__param(0, Arg('input', () => UpdatemjBizAppsIssuesIssueInput)),
|
|
1641
|
+
__param(1, Ctx()),
|
|
1642
|
+
__param(2, PubSub()),
|
|
1643
|
+
__metadata("design:type", Function),
|
|
1644
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsIssuesIssueInput, Object, PubSubEngine]),
|
|
1645
|
+
__metadata("design:returntype", Promise)
|
|
1646
|
+
], mjBizAppsIssuesIssueResolver.prototype, "UpdatemjBizAppsIssuesIssue", null);
|
|
1647
|
+
__decorate([
|
|
1648
|
+
Mutation(() => mjBizAppsIssuesIssue_),
|
|
1649
|
+
__param(0, Arg('ID', () => String)),
|
|
1650
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
1651
|
+
__param(2, Ctx()),
|
|
1652
|
+
__param(3, PubSub()),
|
|
1653
|
+
__metadata("design:type", Function),
|
|
1654
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
1655
|
+
__metadata("design:returntype", Promise)
|
|
1656
|
+
], mjBizAppsIssuesIssueResolver.prototype, "DeletemjBizAppsIssuesIssue", null);
|
|
1657
|
+
mjBizAppsIssuesIssueResolver = __decorate([
|
|
1658
|
+
Resolver(mjBizAppsIssuesIssue_)
|
|
1659
|
+
], mjBizAppsIssuesIssueResolver);
|
|
1660
|
+
export { mjBizAppsIssuesIssueResolver };
|
|
1661
|
+
//# sourceMappingURL=generated.js.map
|