@mj-biz-apps/common-server 5.34.0 → 5.35.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/LICENSE +183 -0
- package/dist/generated/generated.d.ts +417 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +2281 -0
- package/dist/generated/generated.js.map +1 -1
- package/package.json +9 -9
|
@@ -23,6 +23,2246 @@ import { Arg, Ctx, Int, Query, Resolver, Field, Float, ObjectType, FieldResolver
|
|
|
23
23
|
import { EntityPermissionType, CompositeKey } from '@memberjunction/core';
|
|
24
24
|
import { MaxLength } from 'class-validator';
|
|
25
25
|
//****************************************************************************
|
|
26
|
+
// ENTITY CLASS for MJ_BizApps_Common: Activities
|
|
27
|
+
//****************************************************************************
|
|
28
|
+
let mjBizAppsCommonActivity_ = class mjBizAppsCommonActivity_ {
|
|
29
|
+
};
|
|
30
|
+
__decorate([
|
|
31
|
+
Field(),
|
|
32
|
+
MaxLength(36),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], mjBizAppsCommonActivity_.prototype, "ID", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Field(),
|
|
37
|
+
MaxLength(36),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], mjBizAppsCommonActivity_.prototype, "ActivityTypeID", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Field({ description: `Sort key for every timeline. Instant events use the date/time of the event.` }),
|
|
42
|
+
__metadata("design:type", Date)
|
|
43
|
+
], mjBizAppsCommonActivity_.prototype, "StartedAt", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Field({ nullable: true, description: `End of a meeting/call. Leave null for a point-in-time log. Must be >= StartedAt when set. Duration is derived; do not store it.` }),
|
|
46
|
+
__metadata("design:type", Date)
|
|
47
|
+
], mjBizAppsCommonActivity_.prototype, "EndedAt", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
Field({ description: `Subject / one-line card title (e.g. Called Jane about renewal).` }),
|
|
50
|
+
MaxLength(500),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], mjBizAppsCommonActivity_.prototype, "Title", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
Field({ nullable: true, description: `Notes or a short excerpt. Not the full email body — that lives on an ActivityFile of Kind Body.` }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], mjBizAppsCommonActivity_.prototype, "Description", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
Field({ description: `Inbound, Outbound, or Internal. Channel lives on ActivityType; direction lives here so inbound email is a filter, not a type explosion.` }),
|
|
59
|
+
MaxLength(20),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], mjBizAppsCommonActivity_.prototype, "Direction", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
Field({ description: `Logged (default for a past event), Scheduled, Completed, Cancelled, or Failed.` }),
|
|
64
|
+
MaxLength(20),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], mjBizAppsCommonActivity_.prototype, "Status", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
Field({ nullable: true, description: `Optional disposition: Connected, LeftVoicemail, NoAnswer, NoShow, Bounced, Interested, NotInterested. A filter, not a type.` }),
|
|
69
|
+
MaxLength(40),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], mjBizAppsCommonActivity_.prototype, "Outcome", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
Field({ description: `Internal (anyone who can read a Regarding record) or Private (LoggedByUserID only, until a PermissionEngine domain exists). Manual default is Internal; synced mail should default Private in the engine.` }),
|
|
74
|
+
MaxLength(20),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], mjBizAppsCommonActivity_.prototype, "Visibility", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
Field({ description: `How the row was written: Manual, System, or Integration.` }),
|
|
79
|
+
MaxLength(20),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], mjBizAppsCommonActivity_.prototype, "Source", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
Field({ nullable: true, description: `Provider name for idempotent sync (Microsoft365, Gmail, Zoom). Required when ExternalID is set.` }),
|
|
84
|
+
MaxLength(80),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], mjBizAppsCommonActivity_.prototype, "SourceSystem", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
Field({ nullable: true, description: `Provider message/event id. Unique with SourceSystem where set — never dedup by subject.` }),
|
|
89
|
+
MaxLength(400),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], mjBizAppsCommonActivity_.prototype, "ExternalID", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
Field({ nullable: true, description: `Email or calendar thread id used to group replies.` }),
|
|
94
|
+
MaxLength(400),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], mjBizAppsCommonActivity_.prototype, "ExternalThreadID", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
Field({ nullable: true }),
|
|
99
|
+
MaxLength(36),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], mjBizAppsCommonActivity_.prototype, "ParentActivityID", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
Field(),
|
|
104
|
+
MaxLength(36),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], mjBizAppsCommonActivity_.prototype, "LoggedByUserID", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
Field({ nullable: true, description: `Meeting place as text. Optional AddressID is the structured location.` }),
|
|
109
|
+
MaxLength(500),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], mjBizAppsCommonActivity_.prototype, "Location", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
Field({ nullable: true }),
|
|
114
|
+
MaxLength(36),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], mjBizAppsCommonActivity_.prototype, "AddressID", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
Field({ nullable: true }),
|
|
119
|
+
MaxLength(36),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], mjBizAppsCommonActivity_.prototype, "ActivitySyncConnectionID", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
Field({ nullable: true, description: `JSON extras that are not query predicates: MessageID, InReplyTo, MeetingURL, Mailbox, Folder, CalendarEventID. See ActivityDetails.` }),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], mjBizAppsCommonActivity_.prototype, "Details", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
Field(),
|
|
128
|
+
__metadata("design:type", Date)
|
|
129
|
+
], mjBizAppsCommonActivity_.prototype, "_mj__CreatedAt", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
Field(),
|
|
132
|
+
__metadata("design:type", Date)
|
|
133
|
+
], mjBizAppsCommonActivity_.prototype, "_mj__UpdatedAt", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
Field(),
|
|
136
|
+
MaxLength(100),
|
|
137
|
+
__metadata("design:type", String)
|
|
138
|
+
], mjBizAppsCommonActivity_.prototype, "ActivityType", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
Field({ nullable: true }),
|
|
141
|
+
MaxLength(500),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], mjBizAppsCommonActivity_.prototype, "ParentActivity", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
Field(),
|
|
146
|
+
MaxLength(100),
|
|
147
|
+
__metadata("design:type", String)
|
|
148
|
+
], mjBizAppsCommonActivity_.prototype, "LoggedByUser", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
Field({ nullable: true }),
|
|
151
|
+
MaxLength(255),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], mjBizAppsCommonActivity_.prototype, "Address", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
Field({ nullable: true }),
|
|
156
|
+
MaxLength(200),
|
|
157
|
+
__metadata("design:type", String)
|
|
158
|
+
], mjBizAppsCommonActivity_.prototype, "ActivitySyncConnection", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
Field(() => Float, { nullable: true }),
|
|
161
|
+
__metadata("design:type", Number)
|
|
162
|
+
], mjBizAppsCommonActivity_.prototype, "_mj__Latitude", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
Field(() => Float, { nullable: true }),
|
|
165
|
+
__metadata("design:type", Number)
|
|
166
|
+
], mjBizAppsCommonActivity_.prototype, "_mj__Longitude", void 0);
|
|
167
|
+
__decorate([
|
|
168
|
+
Field({ nullable: true }),
|
|
169
|
+
MaxLength(36),
|
|
170
|
+
__metadata("design:type", String)
|
|
171
|
+
], mjBizAppsCommonActivity_.prototype, "RootParentActivityID", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
Field(() => Int, { nullable: true }),
|
|
174
|
+
__metadata("design:type", Number)
|
|
175
|
+
], mjBizAppsCommonActivity_.prototype, "ParentActivityIDDepth", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
Field({ nullable: true }),
|
|
178
|
+
__metadata("design:type", String)
|
|
179
|
+
], mjBizAppsCommonActivity_.prototype, "ParentActivityIDPath", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
Field(() => Boolean, { nullable: true }),
|
|
182
|
+
__metadata("design:type", Boolean)
|
|
183
|
+
], mjBizAppsCommonActivity_.prototype, "ParentActivityIDIsLeaf", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
Field(() => Int, { nullable: true }),
|
|
186
|
+
__metadata("design:type", Number)
|
|
187
|
+
], mjBizAppsCommonActivity_.prototype, "ParentActivityIDChildCount", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
Field(() => [mjBizAppsCommonActivity_]),
|
|
190
|
+
__metadata("design:type", Array)
|
|
191
|
+
], mjBizAppsCommonActivity_.prototype, "mjBizAppsCommonActivities_ParentActivityIDArray", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
Field(() => [mjBizAppsCommonActivityFile_]),
|
|
194
|
+
__metadata("design:type", Array)
|
|
195
|
+
], mjBizAppsCommonActivity_.prototype, "mjBizAppsCommonActivityFiles_ActivityIDArray", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
Field(() => [mjBizAppsCommonActivityLink_]),
|
|
198
|
+
__metadata("design:type", Array)
|
|
199
|
+
], mjBizAppsCommonActivity_.prototype, "mjBizAppsCommonActivityLinks_ActivityIDArray", void 0);
|
|
200
|
+
mjBizAppsCommonActivity_ = __decorate([
|
|
201
|
+
ObjectType({ description: `One interaction that happened between people, about records. Timeline card — not a blob store, not a task, not field-level audit. Duration is derived from StartedAt/EndedAt.` })
|
|
202
|
+
], mjBizAppsCommonActivity_);
|
|
203
|
+
export { mjBizAppsCommonActivity_ };
|
|
204
|
+
//****************************************************************************
|
|
205
|
+
// INPUT TYPE for MJ_BizApps_Common: Activities
|
|
206
|
+
//****************************************************************************
|
|
207
|
+
let CreatemjBizAppsCommonActivityInput = class CreatemjBizAppsCommonActivityInput {
|
|
208
|
+
};
|
|
209
|
+
__decorate([
|
|
210
|
+
Field({ nullable: true }),
|
|
211
|
+
__metadata("design:type", String)
|
|
212
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "ID", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
Field({ nullable: true }),
|
|
215
|
+
__metadata("design:type", String)
|
|
216
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "ActivityTypeID", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
Field({ nullable: true }),
|
|
219
|
+
__metadata("design:type", Date)
|
|
220
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "StartedAt", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
Field({ nullable: true }),
|
|
223
|
+
__metadata("design:type", Date)
|
|
224
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "EndedAt", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
Field({ nullable: true }),
|
|
227
|
+
__metadata("design:type", String)
|
|
228
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "Title", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
Field({ nullable: true }),
|
|
231
|
+
__metadata("design:type", String)
|
|
232
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "Description", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
Field({ nullable: true }),
|
|
235
|
+
__metadata("design:type", String)
|
|
236
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "Direction", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
Field({ nullable: true }),
|
|
239
|
+
__metadata("design:type", String)
|
|
240
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "Status", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
Field({ nullable: true }),
|
|
243
|
+
__metadata("design:type", String)
|
|
244
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "Outcome", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
Field({ nullable: true }),
|
|
247
|
+
__metadata("design:type", String)
|
|
248
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "Visibility", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
Field({ nullable: true }),
|
|
251
|
+
__metadata("design:type", String)
|
|
252
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "Source", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
Field({ nullable: true }),
|
|
255
|
+
__metadata("design:type", String)
|
|
256
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "SourceSystem", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
Field({ nullable: true }),
|
|
259
|
+
__metadata("design:type", String)
|
|
260
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "ExternalID", void 0);
|
|
261
|
+
__decorate([
|
|
262
|
+
Field({ nullable: true }),
|
|
263
|
+
__metadata("design:type", String)
|
|
264
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "ExternalThreadID", void 0);
|
|
265
|
+
__decorate([
|
|
266
|
+
Field({ nullable: true }),
|
|
267
|
+
__metadata("design:type", String)
|
|
268
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "ParentActivityID", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
Field({ nullable: true }),
|
|
271
|
+
__metadata("design:type", String)
|
|
272
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "LoggedByUserID", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
Field({ nullable: true }),
|
|
275
|
+
__metadata("design:type", String)
|
|
276
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "Location", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
Field({ nullable: true }),
|
|
279
|
+
__metadata("design:type", String)
|
|
280
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "AddressID", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
Field({ nullable: true }),
|
|
283
|
+
__metadata("design:type", String)
|
|
284
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "ActivitySyncConnectionID", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
Field({ nullable: true }),
|
|
287
|
+
__metadata("design:type", String)
|
|
288
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "Details", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
291
|
+
__metadata("design:type", RestoreContextInput)
|
|
292
|
+
], CreatemjBizAppsCommonActivityInput.prototype, "RestoreContext___", void 0);
|
|
293
|
+
CreatemjBizAppsCommonActivityInput = __decorate([
|
|
294
|
+
InputType()
|
|
295
|
+
], CreatemjBizAppsCommonActivityInput);
|
|
296
|
+
export { CreatemjBizAppsCommonActivityInput };
|
|
297
|
+
//****************************************************************************
|
|
298
|
+
// INPUT TYPE for MJ_BizApps_Common: Activities
|
|
299
|
+
//****************************************************************************
|
|
300
|
+
let UpdatemjBizAppsCommonActivityInput = class UpdatemjBizAppsCommonActivityInput {
|
|
301
|
+
};
|
|
302
|
+
__decorate([
|
|
303
|
+
Field(),
|
|
304
|
+
__metadata("design:type", String)
|
|
305
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "ID", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
Field({ nullable: true }),
|
|
308
|
+
__metadata("design:type", String)
|
|
309
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "ActivityTypeID", void 0);
|
|
310
|
+
__decorate([
|
|
311
|
+
Field({ nullable: true }),
|
|
312
|
+
__metadata("design:type", Date)
|
|
313
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "StartedAt", void 0);
|
|
314
|
+
__decorate([
|
|
315
|
+
Field({ nullable: true }),
|
|
316
|
+
__metadata("design:type", Date)
|
|
317
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "EndedAt", void 0);
|
|
318
|
+
__decorate([
|
|
319
|
+
Field({ nullable: true }),
|
|
320
|
+
__metadata("design:type", String)
|
|
321
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "Title", void 0);
|
|
322
|
+
__decorate([
|
|
323
|
+
Field({ nullable: true }),
|
|
324
|
+
__metadata("design:type", String)
|
|
325
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "Description", void 0);
|
|
326
|
+
__decorate([
|
|
327
|
+
Field({ nullable: true }),
|
|
328
|
+
__metadata("design:type", String)
|
|
329
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "Direction", void 0);
|
|
330
|
+
__decorate([
|
|
331
|
+
Field({ nullable: true }),
|
|
332
|
+
__metadata("design:type", String)
|
|
333
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "Status", void 0);
|
|
334
|
+
__decorate([
|
|
335
|
+
Field({ nullable: true }),
|
|
336
|
+
__metadata("design:type", String)
|
|
337
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "Outcome", void 0);
|
|
338
|
+
__decorate([
|
|
339
|
+
Field({ nullable: true }),
|
|
340
|
+
__metadata("design:type", String)
|
|
341
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "Visibility", void 0);
|
|
342
|
+
__decorate([
|
|
343
|
+
Field({ nullable: true }),
|
|
344
|
+
__metadata("design:type", String)
|
|
345
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "Source", void 0);
|
|
346
|
+
__decorate([
|
|
347
|
+
Field({ nullable: true }),
|
|
348
|
+
__metadata("design:type", String)
|
|
349
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "SourceSystem", void 0);
|
|
350
|
+
__decorate([
|
|
351
|
+
Field({ nullable: true }),
|
|
352
|
+
__metadata("design:type", String)
|
|
353
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "ExternalID", void 0);
|
|
354
|
+
__decorate([
|
|
355
|
+
Field({ nullable: true }),
|
|
356
|
+
__metadata("design:type", String)
|
|
357
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "ExternalThreadID", void 0);
|
|
358
|
+
__decorate([
|
|
359
|
+
Field({ nullable: true }),
|
|
360
|
+
__metadata("design:type", String)
|
|
361
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "ParentActivityID", void 0);
|
|
362
|
+
__decorate([
|
|
363
|
+
Field({ nullable: true }),
|
|
364
|
+
__metadata("design:type", String)
|
|
365
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "LoggedByUserID", void 0);
|
|
366
|
+
__decorate([
|
|
367
|
+
Field({ nullable: true }),
|
|
368
|
+
__metadata("design:type", String)
|
|
369
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "Location", void 0);
|
|
370
|
+
__decorate([
|
|
371
|
+
Field({ nullable: true }),
|
|
372
|
+
__metadata("design:type", String)
|
|
373
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "AddressID", void 0);
|
|
374
|
+
__decorate([
|
|
375
|
+
Field({ nullable: true }),
|
|
376
|
+
__metadata("design:type", String)
|
|
377
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "ActivitySyncConnectionID", void 0);
|
|
378
|
+
__decorate([
|
|
379
|
+
Field({ nullable: true }),
|
|
380
|
+
__metadata("design:type", String)
|
|
381
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "Details", void 0);
|
|
382
|
+
__decorate([
|
|
383
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
384
|
+
__metadata("design:type", Array)
|
|
385
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "OldValues___", void 0);
|
|
386
|
+
__decorate([
|
|
387
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
388
|
+
__metadata("design:type", RestoreContextInput)
|
|
389
|
+
], UpdatemjBizAppsCommonActivityInput.prototype, "RestoreContext___", void 0);
|
|
390
|
+
UpdatemjBizAppsCommonActivityInput = __decorate([
|
|
391
|
+
InputType()
|
|
392
|
+
], UpdatemjBizAppsCommonActivityInput);
|
|
393
|
+
export { UpdatemjBizAppsCommonActivityInput };
|
|
394
|
+
//****************************************************************************
|
|
395
|
+
// RESOLVER for MJ_BizApps_Common: Activities
|
|
396
|
+
//****************************************************************************
|
|
397
|
+
let RunmjBizAppsCommonActivityViewResult = class RunmjBizAppsCommonActivityViewResult {
|
|
398
|
+
};
|
|
399
|
+
__decorate([
|
|
400
|
+
Field(() => [mjBizAppsCommonActivity_]),
|
|
401
|
+
__metadata("design:type", Array)
|
|
402
|
+
], RunmjBizAppsCommonActivityViewResult.prototype, "Results", void 0);
|
|
403
|
+
__decorate([
|
|
404
|
+
Field(() => String, { nullable: true }),
|
|
405
|
+
__metadata("design:type", String)
|
|
406
|
+
], RunmjBizAppsCommonActivityViewResult.prototype, "UserViewRunID", void 0);
|
|
407
|
+
__decorate([
|
|
408
|
+
Field(() => Int, { nullable: true }),
|
|
409
|
+
__metadata("design:type", Number)
|
|
410
|
+
], RunmjBizAppsCommonActivityViewResult.prototype, "RowCount", void 0);
|
|
411
|
+
__decorate([
|
|
412
|
+
Field(() => Int, { nullable: true }),
|
|
413
|
+
__metadata("design:type", Number)
|
|
414
|
+
], RunmjBizAppsCommonActivityViewResult.prototype, "TotalRowCount", void 0);
|
|
415
|
+
__decorate([
|
|
416
|
+
Field(() => Int, { nullable: true }),
|
|
417
|
+
__metadata("design:type", Number)
|
|
418
|
+
], RunmjBizAppsCommonActivityViewResult.prototype, "ExecutionTime", void 0);
|
|
419
|
+
__decorate([
|
|
420
|
+
Field({ nullable: true }),
|
|
421
|
+
__metadata("design:type", String)
|
|
422
|
+
], RunmjBizAppsCommonActivityViewResult.prototype, "ErrorMessage", void 0);
|
|
423
|
+
__decorate([
|
|
424
|
+
Field(() => Boolean, { nullable: false }),
|
|
425
|
+
__metadata("design:type", Boolean)
|
|
426
|
+
], RunmjBizAppsCommonActivityViewResult.prototype, "Success", void 0);
|
|
427
|
+
RunmjBizAppsCommonActivityViewResult = __decorate([
|
|
428
|
+
ObjectType()
|
|
429
|
+
], RunmjBizAppsCommonActivityViewResult);
|
|
430
|
+
export { RunmjBizAppsCommonActivityViewResult };
|
|
431
|
+
let mjBizAppsCommonActivityResolver = class mjBizAppsCommonActivityResolver extends ResolverBase {
|
|
432
|
+
async RunmjBizAppsCommonActivityViewByID(input, { providers, userPayload }, pubSub) {
|
|
433
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
434
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
435
|
+
}
|
|
436
|
+
async RunmjBizAppsCommonActivityViewByName(input, { providers, userPayload }, pubSub) {
|
|
437
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
438
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
439
|
+
}
|
|
440
|
+
async RunmjBizAppsCommonActivityDynamicView(input, { providers, userPayload }, pubSub) {
|
|
441
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
442
|
+
input.EntityName = 'MJ_BizApps_Common: Activities';
|
|
443
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
444
|
+
}
|
|
445
|
+
async mjBizAppsCommonActivity(ID, { userPayload, providers }, pubSub) {
|
|
446
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activities', userPayload);
|
|
447
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
448
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivities')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activities', userPayload, EntityPermissionType.Read, 'AND');
|
|
449
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
450
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Activities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
451
|
+
return result;
|
|
452
|
+
}
|
|
453
|
+
async mjBizAppsCommonActivities_ParentActivityIDArray(mjbizappscommonactivity_, { userPayload, providers }, pubSub) {
|
|
454
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activities', userPayload);
|
|
455
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
456
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivities')} WHERE ${provider.QuoteIdentifier('ParentActivityID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activities', userPayload, EntityPermissionType.Read, 'AND');
|
|
457
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappscommonactivity_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
458
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Common: Activities', rows, this.GetUserFromPayload(userPayload));
|
|
459
|
+
return result;
|
|
460
|
+
}
|
|
461
|
+
async mjBizAppsCommonActivityFiles_ActivityIDArray(mjbizappscommonactivity_, { userPayload, providers }, pubSub) {
|
|
462
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activity Files', userPayload);
|
|
463
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
464
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivityFiles')} WHERE ${provider.QuoteIdentifier('ActivityID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activity Files', userPayload, EntityPermissionType.Read, 'AND');
|
|
465
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappscommonactivity_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
466
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Common: Activity Files', rows, this.GetUserFromPayload(userPayload));
|
|
467
|
+
return result;
|
|
468
|
+
}
|
|
469
|
+
async mjBizAppsCommonActivityLinks_ActivityIDArray(mjbizappscommonactivity_, { userPayload, providers }, pubSub) {
|
|
470
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activity Links', userPayload);
|
|
471
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
472
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivityLinks')} WHERE ${provider.QuoteIdentifier('ActivityID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activity Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
473
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappscommonactivity_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
474
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Common: Activity Links', rows, this.GetUserFromPayload(userPayload));
|
|
475
|
+
return result;
|
|
476
|
+
}
|
|
477
|
+
async CreatemjBizAppsCommonActivity(input, { providers, userPayload }, pubSub) {
|
|
478
|
+
const provider = GetReadWriteProvider(providers);
|
|
479
|
+
return this.CreateRecord('MJ_BizApps_Common: Activities', input, provider, userPayload, pubSub);
|
|
480
|
+
}
|
|
481
|
+
async UpdatemjBizAppsCommonActivity(input, { providers, userPayload }, pubSub) {
|
|
482
|
+
const provider = GetReadWriteProvider(providers);
|
|
483
|
+
return this.UpdateRecord('MJ_BizApps_Common: Activities', input, provider, userPayload, pubSub);
|
|
484
|
+
}
|
|
485
|
+
async DeletemjBizAppsCommonActivity(ID, options, { providers, userPayload }, pubSub) {
|
|
486
|
+
const provider = GetReadWriteProvider(providers);
|
|
487
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
488
|
+
return this.DeleteRecord('MJ_BizApps_Common: Activities', key, options, provider, userPayload, pubSub);
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
__decorate([
|
|
492
|
+
Query(() => RunmjBizAppsCommonActivityViewResult),
|
|
493
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
494
|
+
__param(1, Ctx()),
|
|
495
|
+
__param(2, PubSub()),
|
|
496
|
+
__metadata("design:type", Function),
|
|
497
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
498
|
+
__metadata("design:returntype", Promise)
|
|
499
|
+
], mjBizAppsCommonActivityResolver.prototype, "RunmjBizAppsCommonActivityViewByID", null);
|
|
500
|
+
__decorate([
|
|
501
|
+
Query(() => RunmjBizAppsCommonActivityViewResult),
|
|
502
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
503
|
+
__param(1, Ctx()),
|
|
504
|
+
__param(2, PubSub()),
|
|
505
|
+
__metadata("design:type", Function),
|
|
506
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
507
|
+
__metadata("design:returntype", Promise)
|
|
508
|
+
], mjBizAppsCommonActivityResolver.prototype, "RunmjBizAppsCommonActivityViewByName", null);
|
|
509
|
+
__decorate([
|
|
510
|
+
Query(() => RunmjBizAppsCommonActivityViewResult),
|
|
511
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
512
|
+
__param(1, Ctx()),
|
|
513
|
+
__param(2, PubSub()),
|
|
514
|
+
__metadata("design:type", Function),
|
|
515
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
516
|
+
__metadata("design:returntype", Promise)
|
|
517
|
+
], mjBizAppsCommonActivityResolver.prototype, "RunmjBizAppsCommonActivityDynamicView", null);
|
|
518
|
+
__decorate([
|
|
519
|
+
Query(() => mjBizAppsCommonActivity_, { nullable: true }),
|
|
520
|
+
__param(0, Arg('ID', () => String)),
|
|
521
|
+
__param(1, Ctx()),
|
|
522
|
+
__param(2, PubSub()),
|
|
523
|
+
__metadata("design:type", Function),
|
|
524
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
525
|
+
__metadata("design:returntype", Promise)
|
|
526
|
+
], mjBizAppsCommonActivityResolver.prototype, "mjBizAppsCommonActivity", null);
|
|
527
|
+
__decorate([
|
|
528
|
+
FieldResolver(() => [mjBizAppsCommonActivity_]),
|
|
529
|
+
__param(0, Root()),
|
|
530
|
+
__param(1, Ctx()),
|
|
531
|
+
__param(2, PubSub()),
|
|
532
|
+
__metadata("design:type", Function),
|
|
533
|
+
__metadata("design:paramtypes", [mjBizAppsCommonActivity_, Object, PubSubEngine]),
|
|
534
|
+
__metadata("design:returntype", Promise)
|
|
535
|
+
], mjBizAppsCommonActivityResolver.prototype, "mjBizAppsCommonActivities_ParentActivityIDArray", null);
|
|
536
|
+
__decorate([
|
|
537
|
+
FieldResolver(() => [mjBizAppsCommonActivityFile_]),
|
|
538
|
+
__param(0, Root()),
|
|
539
|
+
__param(1, Ctx()),
|
|
540
|
+
__param(2, PubSub()),
|
|
541
|
+
__metadata("design:type", Function),
|
|
542
|
+
__metadata("design:paramtypes", [mjBizAppsCommonActivity_, Object, PubSubEngine]),
|
|
543
|
+
__metadata("design:returntype", Promise)
|
|
544
|
+
], mjBizAppsCommonActivityResolver.prototype, "mjBizAppsCommonActivityFiles_ActivityIDArray", null);
|
|
545
|
+
__decorate([
|
|
546
|
+
FieldResolver(() => [mjBizAppsCommonActivityLink_]),
|
|
547
|
+
__param(0, Root()),
|
|
548
|
+
__param(1, Ctx()),
|
|
549
|
+
__param(2, PubSub()),
|
|
550
|
+
__metadata("design:type", Function),
|
|
551
|
+
__metadata("design:paramtypes", [mjBizAppsCommonActivity_, Object, PubSubEngine]),
|
|
552
|
+
__metadata("design:returntype", Promise)
|
|
553
|
+
], mjBizAppsCommonActivityResolver.prototype, "mjBizAppsCommonActivityLinks_ActivityIDArray", null);
|
|
554
|
+
__decorate([
|
|
555
|
+
Mutation(() => mjBizAppsCommonActivity_),
|
|
556
|
+
__param(0, Arg('input', () => CreatemjBizAppsCommonActivityInput)),
|
|
557
|
+
__param(1, Ctx()),
|
|
558
|
+
__param(2, PubSub()),
|
|
559
|
+
__metadata("design:type", Function),
|
|
560
|
+
__metadata("design:paramtypes", [CreatemjBizAppsCommonActivityInput, Object, PubSubEngine]),
|
|
561
|
+
__metadata("design:returntype", Promise)
|
|
562
|
+
], mjBizAppsCommonActivityResolver.prototype, "CreatemjBizAppsCommonActivity", null);
|
|
563
|
+
__decorate([
|
|
564
|
+
Mutation(() => mjBizAppsCommonActivity_),
|
|
565
|
+
__param(0, Arg('input', () => UpdatemjBizAppsCommonActivityInput)),
|
|
566
|
+
__param(1, Ctx()),
|
|
567
|
+
__param(2, PubSub()),
|
|
568
|
+
__metadata("design:type", Function),
|
|
569
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsCommonActivityInput, Object, PubSubEngine]),
|
|
570
|
+
__metadata("design:returntype", Promise)
|
|
571
|
+
], mjBizAppsCommonActivityResolver.prototype, "UpdatemjBizAppsCommonActivity", null);
|
|
572
|
+
__decorate([
|
|
573
|
+
Mutation(() => mjBizAppsCommonActivity_),
|
|
574
|
+
__param(0, Arg('ID', () => String)),
|
|
575
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
576
|
+
__param(2, Ctx()),
|
|
577
|
+
__param(3, PubSub()),
|
|
578
|
+
__metadata("design:type", Function),
|
|
579
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
580
|
+
__metadata("design:returntype", Promise)
|
|
581
|
+
], mjBizAppsCommonActivityResolver.prototype, "DeletemjBizAppsCommonActivity", null);
|
|
582
|
+
mjBizAppsCommonActivityResolver = __decorate([
|
|
583
|
+
Resolver(mjBizAppsCommonActivity_)
|
|
584
|
+
], mjBizAppsCommonActivityResolver);
|
|
585
|
+
export { mjBizAppsCommonActivityResolver };
|
|
586
|
+
//****************************************************************************
|
|
587
|
+
// ENTITY CLASS for MJ_BizApps_Common: Activity Files
|
|
588
|
+
//****************************************************************************
|
|
589
|
+
let mjBizAppsCommonActivityFile_ = class mjBizAppsCommonActivityFile_ {
|
|
590
|
+
};
|
|
591
|
+
__decorate([
|
|
592
|
+
Field(),
|
|
593
|
+
MaxLength(36),
|
|
594
|
+
__metadata("design:type", String)
|
|
595
|
+
], mjBizAppsCommonActivityFile_.prototype, "ID", void 0);
|
|
596
|
+
__decorate([
|
|
597
|
+
Field(),
|
|
598
|
+
MaxLength(36),
|
|
599
|
+
__metadata("design:type", String)
|
|
600
|
+
], mjBizAppsCommonActivityFile_.prototype, "ActivityID", void 0);
|
|
601
|
+
__decorate([
|
|
602
|
+
Field(),
|
|
603
|
+
MaxLength(36),
|
|
604
|
+
__metadata("design:type", String)
|
|
605
|
+
], mjBizAppsCommonActivityFile_.prototype, "FileID", void 0);
|
|
606
|
+
__decorate([
|
|
607
|
+
Field({ description: `Body (full MIME/HTML, at most one per activity), Attachment, or Ics.` }),
|
|
608
|
+
MaxLength(20),
|
|
609
|
+
__metadata("design:type", String)
|
|
610
|
+
], mjBizAppsCommonActivityFile_.prototype, "Kind", void 0);
|
|
611
|
+
__decorate([
|
|
612
|
+
Field(() => Int, { description: `Display order of attachments.` }),
|
|
613
|
+
__metadata("design:type", Number)
|
|
614
|
+
], mjBizAppsCommonActivityFile_.prototype, "Sequence", void 0);
|
|
615
|
+
__decorate([
|
|
616
|
+
Field(),
|
|
617
|
+
__metadata("design:type", Date)
|
|
618
|
+
], mjBizAppsCommonActivityFile_.prototype, "_mj__CreatedAt", void 0);
|
|
619
|
+
__decorate([
|
|
620
|
+
Field(),
|
|
621
|
+
__metadata("design:type", Date)
|
|
622
|
+
], mjBizAppsCommonActivityFile_.prototype, "_mj__UpdatedAt", void 0);
|
|
623
|
+
__decorate([
|
|
624
|
+
Field(),
|
|
625
|
+
MaxLength(500),
|
|
626
|
+
__metadata("design:type", String)
|
|
627
|
+
], mjBizAppsCommonActivityFile_.prototype, "File", void 0);
|
|
628
|
+
mjBizAppsCommonActivityFile_ = __decorate([
|
|
629
|
+
ObjectType({ description: `Join from an Activity to an MJ File. Kind Body is the full MIME/HTML (at most one per activity); Attachment and Ics are extras. Deleting the activity drops the join, not the File.` })
|
|
630
|
+
], mjBizAppsCommonActivityFile_);
|
|
631
|
+
export { mjBizAppsCommonActivityFile_ };
|
|
632
|
+
//****************************************************************************
|
|
633
|
+
// INPUT TYPE for MJ_BizApps_Common: Activity Files
|
|
634
|
+
//****************************************************************************
|
|
635
|
+
let CreatemjBizAppsCommonActivityFileInput = class CreatemjBizAppsCommonActivityFileInput {
|
|
636
|
+
};
|
|
637
|
+
__decorate([
|
|
638
|
+
Field({ nullable: true }),
|
|
639
|
+
__metadata("design:type", String)
|
|
640
|
+
], CreatemjBizAppsCommonActivityFileInput.prototype, "ID", void 0);
|
|
641
|
+
__decorate([
|
|
642
|
+
Field({ nullable: true }),
|
|
643
|
+
__metadata("design:type", String)
|
|
644
|
+
], CreatemjBizAppsCommonActivityFileInput.prototype, "ActivityID", void 0);
|
|
645
|
+
__decorate([
|
|
646
|
+
Field({ nullable: true }),
|
|
647
|
+
__metadata("design:type", String)
|
|
648
|
+
], CreatemjBizAppsCommonActivityFileInput.prototype, "FileID", void 0);
|
|
649
|
+
__decorate([
|
|
650
|
+
Field({ nullable: true }),
|
|
651
|
+
__metadata("design:type", String)
|
|
652
|
+
], CreatemjBizAppsCommonActivityFileInput.prototype, "Kind", void 0);
|
|
653
|
+
__decorate([
|
|
654
|
+
Field(() => Int, { nullable: true }),
|
|
655
|
+
__metadata("design:type", Number)
|
|
656
|
+
], CreatemjBizAppsCommonActivityFileInput.prototype, "Sequence", void 0);
|
|
657
|
+
__decorate([
|
|
658
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
659
|
+
__metadata("design:type", RestoreContextInput)
|
|
660
|
+
], CreatemjBizAppsCommonActivityFileInput.prototype, "RestoreContext___", void 0);
|
|
661
|
+
CreatemjBizAppsCommonActivityFileInput = __decorate([
|
|
662
|
+
InputType()
|
|
663
|
+
], CreatemjBizAppsCommonActivityFileInput);
|
|
664
|
+
export { CreatemjBizAppsCommonActivityFileInput };
|
|
665
|
+
//****************************************************************************
|
|
666
|
+
// INPUT TYPE for MJ_BizApps_Common: Activity Files
|
|
667
|
+
//****************************************************************************
|
|
668
|
+
let UpdatemjBizAppsCommonActivityFileInput = class UpdatemjBizAppsCommonActivityFileInput {
|
|
669
|
+
};
|
|
670
|
+
__decorate([
|
|
671
|
+
Field(),
|
|
672
|
+
__metadata("design:type", String)
|
|
673
|
+
], UpdatemjBizAppsCommonActivityFileInput.prototype, "ID", void 0);
|
|
674
|
+
__decorate([
|
|
675
|
+
Field({ nullable: true }),
|
|
676
|
+
__metadata("design:type", String)
|
|
677
|
+
], UpdatemjBizAppsCommonActivityFileInput.prototype, "ActivityID", void 0);
|
|
678
|
+
__decorate([
|
|
679
|
+
Field({ nullable: true }),
|
|
680
|
+
__metadata("design:type", String)
|
|
681
|
+
], UpdatemjBizAppsCommonActivityFileInput.prototype, "FileID", void 0);
|
|
682
|
+
__decorate([
|
|
683
|
+
Field({ nullable: true }),
|
|
684
|
+
__metadata("design:type", String)
|
|
685
|
+
], UpdatemjBizAppsCommonActivityFileInput.prototype, "Kind", void 0);
|
|
686
|
+
__decorate([
|
|
687
|
+
Field(() => Int, { nullable: true }),
|
|
688
|
+
__metadata("design:type", Number)
|
|
689
|
+
], UpdatemjBizAppsCommonActivityFileInput.prototype, "Sequence", void 0);
|
|
690
|
+
__decorate([
|
|
691
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
692
|
+
__metadata("design:type", Array)
|
|
693
|
+
], UpdatemjBizAppsCommonActivityFileInput.prototype, "OldValues___", void 0);
|
|
694
|
+
__decorate([
|
|
695
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
696
|
+
__metadata("design:type", RestoreContextInput)
|
|
697
|
+
], UpdatemjBizAppsCommonActivityFileInput.prototype, "RestoreContext___", void 0);
|
|
698
|
+
UpdatemjBizAppsCommonActivityFileInput = __decorate([
|
|
699
|
+
InputType()
|
|
700
|
+
], UpdatemjBizAppsCommonActivityFileInput);
|
|
701
|
+
export { UpdatemjBizAppsCommonActivityFileInput };
|
|
702
|
+
//****************************************************************************
|
|
703
|
+
// RESOLVER for MJ_BizApps_Common: Activity Files
|
|
704
|
+
//****************************************************************************
|
|
705
|
+
let RunmjBizAppsCommonActivityFileViewResult = class RunmjBizAppsCommonActivityFileViewResult {
|
|
706
|
+
};
|
|
707
|
+
__decorate([
|
|
708
|
+
Field(() => [mjBizAppsCommonActivityFile_]),
|
|
709
|
+
__metadata("design:type", Array)
|
|
710
|
+
], RunmjBizAppsCommonActivityFileViewResult.prototype, "Results", void 0);
|
|
711
|
+
__decorate([
|
|
712
|
+
Field(() => String, { nullable: true }),
|
|
713
|
+
__metadata("design:type", String)
|
|
714
|
+
], RunmjBizAppsCommonActivityFileViewResult.prototype, "UserViewRunID", void 0);
|
|
715
|
+
__decorate([
|
|
716
|
+
Field(() => Int, { nullable: true }),
|
|
717
|
+
__metadata("design:type", Number)
|
|
718
|
+
], RunmjBizAppsCommonActivityFileViewResult.prototype, "RowCount", void 0);
|
|
719
|
+
__decorate([
|
|
720
|
+
Field(() => Int, { nullable: true }),
|
|
721
|
+
__metadata("design:type", Number)
|
|
722
|
+
], RunmjBizAppsCommonActivityFileViewResult.prototype, "TotalRowCount", void 0);
|
|
723
|
+
__decorate([
|
|
724
|
+
Field(() => Int, { nullable: true }),
|
|
725
|
+
__metadata("design:type", Number)
|
|
726
|
+
], RunmjBizAppsCommonActivityFileViewResult.prototype, "ExecutionTime", void 0);
|
|
727
|
+
__decorate([
|
|
728
|
+
Field({ nullable: true }),
|
|
729
|
+
__metadata("design:type", String)
|
|
730
|
+
], RunmjBizAppsCommonActivityFileViewResult.prototype, "ErrorMessage", void 0);
|
|
731
|
+
__decorate([
|
|
732
|
+
Field(() => Boolean, { nullable: false }),
|
|
733
|
+
__metadata("design:type", Boolean)
|
|
734
|
+
], RunmjBizAppsCommonActivityFileViewResult.prototype, "Success", void 0);
|
|
735
|
+
RunmjBizAppsCommonActivityFileViewResult = __decorate([
|
|
736
|
+
ObjectType()
|
|
737
|
+
], RunmjBizAppsCommonActivityFileViewResult);
|
|
738
|
+
export { RunmjBizAppsCommonActivityFileViewResult };
|
|
739
|
+
let mjBizAppsCommonActivityFileResolver = class mjBizAppsCommonActivityFileResolver extends ResolverBase {
|
|
740
|
+
async RunmjBizAppsCommonActivityFileViewByID(input, { providers, userPayload }, pubSub) {
|
|
741
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
742
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
743
|
+
}
|
|
744
|
+
async RunmjBizAppsCommonActivityFileViewByName(input, { providers, userPayload }, pubSub) {
|
|
745
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
746
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
747
|
+
}
|
|
748
|
+
async RunmjBizAppsCommonActivityFileDynamicView(input, { providers, userPayload }, pubSub) {
|
|
749
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
750
|
+
input.EntityName = 'MJ_BizApps_Common: Activity Files';
|
|
751
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
752
|
+
}
|
|
753
|
+
async mjBizAppsCommonActivityFile(ID, { userPayload, providers }, pubSub) {
|
|
754
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activity Files', userPayload);
|
|
755
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
756
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivityFiles')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activity Files', userPayload, EntityPermissionType.Read, 'AND');
|
|
757
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
758
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Activity Files', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
759
|
+
return result;
|
|
760
|
+
}
|
|
761
|
+
async CreatemjBizAppsCommonActivityFile(input, { providers, userPayload }, pubSub) {
|
|
762
|
+
const provider = GetReadWriteProvider(providers);
|
|
763
|
+
return this.CreateRecord('MJ_BizApps_Common: Activity Files', input, provider, userPayload, pubSub);
|
|
764
|
+
}
|
|
765
|
+
async UpdatemjBizAppsCommonActivityFile(input, { providers, userPayload }, pubSub) {
|
|
766
|
+
const provider = GetReadWriteProvider(providers);
|
|
767
|
+
return this.UpdateRecord('MJ_BizApps_Common: Activity Files', input, provider, userPayload, pubSub);
|
|
768
|
+
}
|
|
769
|
+
async DeletemjBizAppsCommonActivityFile(ID, options, { providers, userPayload }, pubSub) {
|
|
770
|
+
const provider = GetReadWriteProvider(providers);
|
|
771
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
772
|
+
return this.DeleteRecord('MJ_BizApps_Common: Activity Files', key, options, provider, userPayload, pubSub);
|
|
773
|
+
}
|
|
774
|
+
};
|
|
775
|
+
__decorate([
|
|
776
|
+
Query(() => RunmjBizAppsCommonActivityFileViewResult),
|
|
777
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
778
|
+
__param(1, Ctx()),
|
|
779
|
+
__param(2, PubSub()),
|
|
780
|
+
__metadata("design:type", Function),
|
|
781
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
782
|
+
__metadata("design:returntype", Promise)
|
|
783
|
+
], mjBizAppsCommonActivityFileResolver.prototype, "RunmjBizAppsCommonActivityFileViewByID", null);
|
|
784
|
+
__decorate([
|
|
785
|
+
Query(() => RunmjBizAppsCommonActivityFileViewResult),
|
|
786
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
787
|
+
__param(1, Ctx()),
|
|
788
|
+
__param(2, PubSub()),
|
|
789
|
+
__metadata("design:type", Function),
|
|
790
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
791
|
+
__metadata("design:returntype", Promise)
|
|
792
|
+
], mjBizAppsCommonActivityFileResolver.prototype, "RunmjBizAppsCommonActivityFileViewByName", null);
|
|
793
|
+
__decorate([
|
|
794
|
+
Query(() => RunmjBizAppsCommonActivityFileViewResult),
|
|
795
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
796
|
+
__param(1, Ctx()),
|
|
797
|
+
__param(2, PubSub()),
|
|
798
|
+
__metadata("design:type", Function),
|
|
799
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
800
|
+
__metadata("design:returntype", Promise)
|
|
801
|
+
], mjBizAppsCommonActivityFileResolver.prototype, "RunmjBizAppsCommonActivityFileDynamicView", null);
|
|
802
|
+
__decorate([
|
|
803
|
+
Query(() => mjBizAppsCommonActivityFile_, { nullable: true }),
|
|
804
|
+
__param(0, Arg('ID', () => String)),
|
|
805
|
+
__param(1, Ctx()),
|
|
806
|
+
__param(2, PubSub()),
|
|
807
|
+
__metadata("design:type", Function),
|
|
808
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
809
|
+
__metadata("design:returntype", Promise)
|
|
810
|
+
], mjBizAppsCommonActivityFileResolver.prototype, "mjBizAppsCommonActivityFile", null);
|
|
811
|
+
__decorate([
|
|
812
|
+
Mutation(() => mjBizAppsCommonActivityFile_),
|
|
813
|
+
__param(0, Arg('input', () => CreatemjBizAppsCommonActivityFileInput)),
|
|
814
|
+
__param(1, Ctx()),
|
|
815
|
+
__param(2, PubSub()),
|
|
816
|
+
__metadata("design:type", Function),
|
|
817
|
+
__metadata("design:paramtypes", [CreatemjBizAppsCommonActivityFileInput, Object, PubSubEngine]),
|
|
818
|
+
__metadata("design:returntype", Promise)
|
|
819
|
+
], mjBizAppsCommonActivityFileResolver.prototype, "CreatemjBizAppsCommonActivityFile", null);
|
|
820
|
+
__decorate([
|
|
821
|
+
Mutation(() => mjBizAppsCommonActivityFile_),
|
|
822
|
+
__param(0, Arg('input', () => UpdatemjBizAppsCommonActivityFileInput)),
|
|
823
|
+
__param(1, Ctx()),
|
|
824
|
+
__param(2, PubSub()),
|
|
825
|
+
__metadata("design:type", Function),
|
|
826
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsCommonActivityFileInput, Object, PubSubEngine]),
|
|
827
|
+
__metadata("design:returntype", Promise)
|
|
828
|
+
], mjBizAppsCommonActivityFileResolver.prototype, "UpdatemjBizAppsCommonActivityFile", null);
|
|
829
|
+
__decorate([
|
|
830
|
+
Mutation(() => mjBizAppsCommonActivityFile_),
|
|
831
|
+
__param(0, Arg('ID', () => String)),
|
|
832
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
833
|
+
__param(2, Ctx()),
|
|
834
|
+
__param(3, PubSub()),
|
|
835
|
+
__metadata("design:type", Function),
|
|
836
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
837
|
+
__metadata("design:returntype", Promise)
|
|
838
|
+
], mjBizAppsCommonActivityFileResolver.prototype, "DeletemjBizAppsCommonActivityFile", null);
|
|
839
|
+
mjBizAppsCommonActivityFileResolver = __decorate([
|
|
840
|
+
Resolver(mjBizAppsCommonActivityFile_)
|
|
841
|
+
], mjBizAppsCommonActivityFileResolver);
|
|
842
|
+
export { mjBizAppsCommonActivityFileResolver };
|
|
843
|
+
//****************************************************************************
|
|
844
|
+
// ENTITY CLASS for MJ_BizApps_Common: Activity Links
|
|
845
|
+
//****************************************************************************
|
|
846
|
+
let mjBizAppsCommonActivityLink_ = class mjBizAppsCommonActivityLink_ {
|
|
847
|
+
};
|
|
848
|
+
__decorate([
|
|
849
|
+
Field(),
|
|
850
|
+
MaxLength(36),
|
|
851
|
+
__metadata("design:type", String)
|
|
852
|
+
], mjBizAppsCommonActivityLink_.prototype, "ID", void 0);
|
|
853
|
+
__decorate([
|
|
854
|
+
Field(),
|
|
855
|
+
MaxLength(36),
|
|
856
|
+
__metadata("design:type", String)
|
|
857
|
+
], mjBizAppsCommonActivityLink_.prototype, "ActivityID", void 0);
|
|
858
|
+
__decorate([
|
|
859
|
+
Field({ description: `Why this record is on the activity: Regarding (what it is about), Participant, From/To/Cc/Bcc, Organizer/Attendee, or LoggedFor (the mailbox it was filed under).` }),
|
|
860
|
+
MaxLength(30),
|
|
861
|
+
__metadata("design:type", String)
|
|
862
|
+
], mjBizAppsCommonActivityLink_.prototype, "Role", void 0);
|
|
863
|
+
__decorate([
|
|
864
|
+
Field({ nullable: true }),
|
|
865
|
+
MaxLength(36),
|
|
866
|
+
__metadata("design:type", String)
|
|
867
|
+
], mjBizAppsCommonActivityLink_.prototype, "EntityID", void 0);
|
|
868
|
+
__decorate([
|
|
869
|
+
Field({ nullable: true, description: `Primary key of the resolved record. NVARCHAR so composite keys work. Required with EntityID; must be null when the link is an unresolved identity.` }),
|
|
870
|
+
MaxLength(450),
|
|
871
|
+
__metadata("design:type", String)
|
|
872
|
+
], mjBizAppsCommonActivityLink_.prototype, "RecordID", void 0);
|
|
873
|
+
__decorate([
|
|
874
|
+
Field({ nullable: true, description: `Email, Phone, or ExternalUser. Set with IdentityValue when the participant has not been matched to a Person/Org yet.` }),
|
|
875
|
+
MaxLength(20),
|
|
876
|
+
__metadata("design:type", String)
|
|
877
|
+
], mjBizAppsCommonActivityLink_.prototype, "IdentityKind", void 0);
|
|
878
|
+
__decorate([
|
|
879
|
+
Field({ nullable: true, description: `The unmatched address, phone, or provider user id. A later matcher stamps EntityID/RecordID from ContactMethod.Value and clears these.` }),
|
|
880
|
+
MaxLength(320),
|
|
881
|
+
__metadata("design:type", String)
|
|
882
|
+
], mjBizAppsCommonActivityLink_.prototype, "IdentityValue", void 0);
|
|
883
|
+
__decorate([
|
|
884
|
+
Field(() => Int, { description: `Display order within a role (To, then Cc, …).` }),
|
|
885
|
+
__metadata("design:type", Number)
|
|
886
|
+
], mjBizAppsCommonActivityLink_.prototype, "Sequence", void 0);
|
|
887
|
+
__decorate([
|
|
888
|
+
Field(),
|
|
889
|
+
__metadata("design:type", Date)
|
|
890
|
+
], mjBizAppsCommonActivityLink_.prototype, "_mj__CreatedAt", void 0);
|
|
891
|
+
__decorate([
|
|
892
|
+
Field(),
|
|
893
|
+
__metadata("design:type", Date)
|
|
894
|
+
], mjBizAppsCommonActivityLink_.prototype, "_mj__UpdatedAt", void 0);
|
|
895
|
+
__decorate([
|
|
896
|
+
Field({ nullable: true }),
|
|
897
|
+
MaxLength(255),
|
|
898
|
+
__metadata("design:type", String)
|
|
899
|
+
], mjBizAppsCommonActivityLink_.prototype, "Entity", void 0);
|
|
900
|
+
mjBizAppsCommonActivityLink_ = __decorate([
|
|
901
|
+
ObjectType({ description: `Attaches an Activity to a resolved MJ record (EntityID + RecordID) or an unresolved identity (email/phone/external user) the matcher has not stamped yet. Role says whether the link is Regarding, a participant, or an email/meeting mailbox role.` })
|
|
902
|
+
], mjBizAppsCommonActivityLink_);
|
|
903
|
+
export { mjBizAppsCommonActivityLink_ };
|
|
904
|
+
//****************************************************************************
|
|
905
|
+
// INPUT TYPE for MJ_BizApps_Common: Activity Links
|
|
906
|
+
//****************************************************************************
|
|
907
|
+
let CreatemjBizAppsCommonActivityLinkInput = class CreatemjBizAppsCommonActivityLinkInput {
|
|
908
|
+
};
|
|
909
|
+
__decorate([
|
|
910
|
+
Field({ nullable: true }),
|
|
911
|
+
__metadata("design:type", String)
|
|
912
|
+
], CreatemjBizAppsCommonActivityLinkInput.prototype, "ID", void 0);
|
|
913
|
+
__decorate([
|
|
914
|
+
Field({ nullable: true }),
|
|
915
|
+
__metadata("design:type", String)
|
|
916
|
+
], CreatemjBizAppsCommonActivityLinkInput.prototype, "ActivityID", void 0);
|
|
917
|
+
__decorate([
|
|
918
|
+
Field({ nullable: true }),
|
|
919
|
+
__metadata("design:type", String)
|
|
920
|
+
], CreatemjBizAppsCommonActivityLinkInput.prototype, "Role", void 0);
|
|
921
|
+
__decorate([
|
|
922
|
+
Field({ nullable: true }),
|
|
923
|
+
__metadata("design:type", String)
|
|
924
|
+
], CreatemjBizAppsCommonActivityLinkInput.prototype, "EntityID", void 0);
|
|
925
|
+
__decorate([
|
|
926
|
+
Field({ nullable: true }),
|
|
927
|
+
__metadata("design:type", String)
|
|
928
|
+
], CreatemjBizAppsCommonActivityLinkInput.prototype, "RecordID", void 0);
|
|
929
|
+
__decorate([
|
|
930
|
+
Field({ nullable: true }),
|
|
931
|
+
__metadata("design:type", String)
|
|
932
|
+
], CreatemjBizAppsCommonActivityLinkInput.prototype, "IdentityKind", void 0);
|
|
933
|
+
__decorate([
|
|
934
|
+
Field({ nullable: true }),
|
|
935
|
+
__metadata("design:type", String)
|
|
936
|
+
], CreatemjBizAppsCommonActivityLinkInput.prototype, "IdentityValue", void 0);
|
|
937
|
+
__decorate([
|
|
938
|
+
Field(() => Int, { nullable: true }),
|
|
939
|
+
__metadata("design:type", Number)
|
|
940
|
+
], CreatemjBizAppsCommonActivityLinkInput.prototype, "Sequence", void 0);
|
|
941
|
+
__decorate([
|
|
942
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
943
|
+
__metadata("design:type", RestoreContextInput)
|
|
944
|
+
], CreatemjBizAppsCommonActivityLinkInput.prototype, "RestoreContext___", void 0);
|
|
945
|
+
CreatemjBizAppsCommonActivityLinkInput = __decorate([
|
|
946
|
+
InputType()
|
|
947
|
+
], CreatemjBizAppsCommonActivityLinkInput);
|
|
948
|
+
export { CreatemjBizAppsCommonActivityLinkInput };
|
|
949
|
+
//****************************************************************************
|
|
950
|
+
// INPUT TYPE for MJ_BizApps_Common: Activity Links
|
|
951
|
+
//****************************************************************************
|
|
952
|
+
let UpdatemjBizAppsCommonActivityLinkInput = class UpdatemjBizAppsCommonActivityLinkInput {
|
|
953
|
+
};
|
|
954
|
+
__decorate([
|
|
955
|
+
Field(),
|
|
956
|
+
__metadata("design:type", String)
|
|
957
|
+
], UpdatemjBizAppsCommonActivityLinkInput.prototype, "ID", void 0);
|
|
958
|
+
__decorate([
|
|
959
|
+
Field({ nullable: true }),
|
|
960
|
+
__metadata("design:type", String)
|
|
961
|
+
], UpdatemjBizAppsCommonActivityLinkInput.prototype, "ActivityID", void 0);
|
|
962
|
+
__decorate([
|
|
963
|
+
Field({ nullable: true }),
|
|
964
|
+
__metadata("design:type", String)
|
|
965
|
+
], UpdatemjBizAppsCommonActivityLinkInput.prototype, "Role", void 0);
|
|
966
|
+
__decorate([
|
|
967
|
+
Field({ nullable: true }),
|
|
968
|
+
__metadata("design:type", String)
|
|
969
|
+
], UpdatemjBizAppsCommonActivityLinkInput.prototype, "EntityID", void 0);
|
|
970
|
+
__decorate([
|
|
971
|
+
Field({ nullable: true }),
|
|
972
|
+
__metadata("design:type", String)
|
|
973
|
+
], UpdatemjBizAppsCommonActivityLinkInput.prototype, "RecordID", void 0);
|
|
974
|
+
__decorate([
|
|
975
|
+
Field({ nullable: true }),
|
|
976
|
+
__metadata("design:type", String)
|
|
977
|
+
], UpdatemjBizAppsCommonActivityLinkInput.prototype, "IdentityKind", void 0);
|
|
978
|
+
__decorate([
|
|
979
|
+
Field({ nullable: true }),
|
|
980
|
+
__metadata("design:type", String)
|
|
981
|
+
], UpdatemjBizAppsCommonActivityLinkInput.prototype, "IdentityValue", void 0);
|
|
982
|
+
__decorate([
|
|
983
|
+
Field(() => Int, { nullable: true }),
|
|
984
|
+
__metadata("design:type", Number)
|
|
985
|
+
], UpdatemjBizAppsCommonActivityLinkInput.prototype, "Sequence", void 0);
|
|
986
|
+
__decorate([
|
|
987
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
988
|
+
__metadata("design:type", Array)
|
|
989
|
+
], UpdatemjBizAppsCommonActivityLinkInput.prototype, "OldValues___", void 0);
|
|
990
|
+
__decorate([
|
|
991
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
992
|
+
__metadata("design:type", RestoreContextInput)
|
|
993
|
+
], UpdatemjBizAppsCommonActivityLinkInput.prototype, "RestoreContext___", void 0);
|
|
994
|
+
UpdatemjBizAppsCommonActivityLinkInput = __decorate([
|
|
995
|
+
InputType()
|
|
996
|
+
], UpdatemjBizAppsCommonActivityLinkInput);
|
|
997
|
+
export { UpdatemjBizAppsCommonActivityLinkInput };
|
|
998
|
+
//****************************************************************************
|
|
999
|
+
// RESOLVER for MJ_BizApps_Common: Activity Links
|
|
1000
|
+
//****************************************************************************
|
|
1001
|
+
let RunmjBizAppsCommonActivityLinkViewResult = class RunmjBizAppsCommonActivityLinkViewResult {
|
|
1002
|
+
};
|
|
1003
|
+
__decorate([
|
|
1004
|
+
Field(() => [mjBizAppsCommonActivityLink_]),
|
|
1005
|
+
__metadata("design:type", Array)
|
|
1006
|
+
], RunmjBizAppsCommonActivityLinkViewResult.prototype, "Results", void 0);
|
|
1007
|
+
__decorate([
|
|
1008
|
+
Field(() => String, { nullable: true }),
|
|
1009
|
+
__metadata("design:type", String)
|
|
1010
|
+
], RunmjBizAppsCommonActivityLinkViewResult.prototype, "UserViewRunID", void 0);
|
|
1011
|
+
__decorate([
|
|
1012
|
+
Field(() => Int, { nullable: true }),
|
|
1013
|
+
__metadata("design:type", Number)
|
|
1014
|
+
], RunmjBizAppsCommonActivityLinkViewResult.prototype, "RowCount", void 0);
|
|
1015
|
+
__decorate([
|
|
1016
|
+
Field(() => Int, { nullable: true }),
|
|
1017
|
+
__metadata("design:type", Number)
|
|
1018
|
+
], RunmjBizAppsCommonActivityLinkViewResult.prototype, "TotalRowCount", void 0);
|
|
1019
|
+
__decorate([
|
|
1020
|
+
Field(() => Int, { nullable: true }),
|
|
1021
|
+
__metadata("design:type", Number)
|
|
1022
|
+
], RunmjBizAppsCommonActivityLinkViewResult.prototype, "ExecutionTime", void 0);
|
|
1023
|
+
__decorate([
|
|
1024
|
+
Field({ nullable: true }),
|
|
1025
|
+
__metadata("design:type", String)
|
|
1026
|
+
], RunmjBizAppsCommonActivityLinkViewResult.prototype, "ErrorMessage", void 0);
|
|
1027
|
+
__decorate([
|
|
1028
|
+
Field(() => Boolean, { nullable: false }),
|
|
1029
|
+
__metadata("design:type", Boolean)
|
|
1030
|
+
], RunmjBizAppsCommonActivityLinkViewResult.prototype, "Success", void 0);
|
|
1031
|
+
RunmjBizAppsCommonActivityLinkViewResult = __decorate([
|
|
1032
|
+
ObjectType()
|
|
1033
|
+
], RunmjBizAppsCommonActivityLinkViewResult);
|
|
1034
|
+
export { RunmjBizAppsCommonActivityLinkViewResult };
|
|
1035
|
+
let mjBizAppsCommonActivityLinkResolver = class mjBizAppsCommonActivityLinkResolver extends ResolverBase {
|
|
1036
|
+
async RunmjBizAppsCommonActivityLinkViewByID(input, { providers, userPayload }, pubSub) {
|
|
1037
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1038
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
1039
|
+
}
|
|
1040
|
+
async RunmjBizAppsCommonActivityLinkViewByName(input, { providers, userPayload }, pubSub) {
|
|
1041
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1042
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
1043
|
+
}
|
|
1044
|
+
async RunmjBizAppsCommonActivityLinkDynamicView(input, { providers, userPayload }, pubSub) {
|
|
1045
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1046
|
+
input.EntityName = 'MJ_BizApps_Common: Activity Links';
|
|
1047
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
1048
|
+
}
|
|
1049
|
+
async mjBizAppsCommonActivityLink(ID, { userPayload, providers }, pubSub) {
|
|
1050
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activity Links', userPayload);
|
|
1051
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1052
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivityLinks')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activity Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
1053
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1054
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Activity Links', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1055
|
+
return result;
|
|
1056
|
+
}
|
|
1057
|
+
async CreatemjBizAppsCommonActivityLink(input, { providers, userPayload }, pubSub) {
|
|
1058
|
+
const provider = GetReadWriteProvider(providers);
|
|
1059
|
+
return this.CreateRecord('MJ_BizApps_Common: Activity Links', input, provider, userPayload, pubSub);
|
|
1060
|
+
}
|
|
1061
|
+
async UpdatemjBizAppsCommonActivityLink(input, { providers, userPayload }, pubSub) {
|
|
1062
|
+
const provider = GetReadWriteProvider(providers);
|
|
1063
|
+
return this.UpdateRecord('MJ_BizApps_Common: Activity Links', input, provider, userPayload, pubSub);
|
|
1064
|
+
}
|
|
1065
|
+
async DeletemjBizAppsCommonActivityLink(ID, options, { providers, userPayload }, pubSub) {
|
|
1066
|
+
const provider = GetReadWriteProvider(providers);
|
|
1067
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
1068
|
+
return this.DeleteRecord('MJ_BizApps_Common: Activity Links', key, options, provider, userPayload, pubSub);
|
|
1069
|
+
}
|
|
1070
|
+
};
|
|
1071
|
+
__decorate([
|
|
1072
|
+
Query(() => RunmjBizAppsCommonActivityLinkViewResult),
|
|
1073
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
1074
|
+
__param(1, Ctx()),
|
|
1075
|
+
__param(2, PubSub()),
|
|
1076
|
+
__metadata("design:type", Function),
|
|
1077
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
1078
|
+
__metadata("design:returntype", Promise)
|
|
1079
|
+
], mjBizAppsCommonActivityLinkResolver.prototype, "RunmjBizAppsCommonActivityLinkViewByID", null);
|
|
1080
|
+
__decorate([
|
|
1081
|
+
Query(() => RunmjBizAppsCommonActivityLinkViewResult),
|
|
1082
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
1083
|
+
__param(1, Ctx()),
|
|
1084
|
+
__param(2, PubSub()),
|
|
1085
|
+
__metadata("design:type", Function),
|
|
1086
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
1087
|
+
__metadata("design:returntype", Promise)
|
|
1088
|
+
], mjBizAppsCommonActivityLinkResolver.prototype, "RunmjBizAppsCommonActivityLinkViewByName", null);
|
|
1089
|
+
__decorate([
|
|
1090
|
+
Query(() => RunmjBizAppsCommonActivityLinkViewResult),
|
|
1091
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
1092
|
+
__param(1, Ctx()),
|
|
1093
|
+
__param(2, PubSub()),
|
|
1094
|
+
__metadata("design:type", Function),
|
|
1095
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
1096
|
+
__metadata("design:returntype", Promise)
|
|
1097
|
+
], mjBizAppsCommonActivityLinkResolver.prototype, "RunmjBizAppsCommonActivityLinkDynamicView", null);
|
|
1098
|
+
__decorate([
|
|
1099
|
+
Query(() => mjBizAppsCommonActivityLink_, { nullable: true }),
|
|
1100
|
+
__param(0, Arg('ID', () => String)),
|
|
1101
|
+
__param(1, Ctx()),
|
|
1102
|
+
__param(2, PubSub()),
|
|
1103
|
+
__metadata("design:type", Function),
|
|
1104
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
1105
|
+
__metadata("design:returntype", Promise)
|
|
1106
|
+
], mjBizAppsCommonActivityLinkResolver.prototype, "mjBizAppsCommonActivityLink", null);
|
|
1107
|
+
__decorate([
|
|
1108
|
+
Mutation(() => mjBizAppsCommonActivityLink_),
|
|
1109
|
+
__param(0, Arg('input', () => CreatemjBizAppsCommonActivityLinkInput)),
|
|
1110
|
+
__param(1, Ctx()),
|
|
1111
|
+
__param(2, PubSub()),
|
|
1112
|
+
__metadata("design:type", Function),
|
|
1113
|
+
__metadata("design:paramtypes", [CreatemjBizAppsCommonActivityLinkInput, Object, PubSubEngine]),
|
|
1114
|
+
__metadata("design:returntype", Promise)
|
|
1115
|
+
], mjBizAppsCommonActivityLinkResolver.prototype, "CreatemjBizAppsCommonActivityLink", null);
|
|
1116
|
+
__decorate([
|
|
1117
|
+
Mutation(() => mjBizAppsCommonActivityLink_),
|
|
1118
|
+
__param(0, Arg('input', () => UpdatemjBizAppsCommonActivityLinkInput)),
|
|
1119
|
+
__param(1, Ctx()),
|
|
1120
|
+
__param(2, PubSub()),
|
|
1121
|
+
__metadata("design:type", Function),
|
|
1122
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsCommonActivityLinkInput, Object, PubSubEngine]),
|
|
1123
|
+
__metadata("design:returntype", Promise)
|
|
1124
|
+
], mjBizAppsCommonActivityLinkResolver.prototype, "UpdatemjBizAppsCommonActivityLink", null);
|
|
1125
|
+
__decorate([
|
|
1126
|
+
Mutation(() => mjBizAppsCommonActivityLink_),
|
|
1127
|
+
__param(0, Arg('ID', () => String)),
|
|
1128
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
1129
|
+
__param(2, Ctx()),
|
|
1130
|
+
__param(3, PubSub()),
|
|
1131
|
+
__metadata("design:type", Function),
|
|
1132
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
1133
|
+
__metadata("design:returntype", Promise)
|
|
1134
|
+
], mjBizAppsCommonActivityLinkResolver.prototype, "DeletemjBizAppsCommonActivityLink", null);
|
|
1135
|
+
mjBizAppsCommonActivityLinkResolver = __decorate([
|
|
1136
|
+
Resolver(mjBizAppsCommonActivityLink_)
|
|
1137
|
+
], mjBizAppsCommonActivityLinkResolver);
|
|
1138
|
+
export { mjBizAppsCommonActivityLinkResolver };
|
|
1139
|
+
//****************************************************************************
|
|
1140
|
+
// ENTITY CLASS for MJ_BizApps_Common: Activity Sync Connections
|
|
1141
|
+
//****************************************************************************
|
|
1142
|
+
let mjBizAppsCommonActivitySyncConnection_ = class mjBizAppsCommonActivitySyncConnection_ {
|
|
1143
|
+
};
|
|
1144
|
+
__decorate([
|
|
1145
|
+
Field(),
|
|
1146
|
+
MaxLength(36),
|
|
1147
|
+
__metadata("design:type", String)
|
|
1148
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "ID", void 0);
|
|
1149
|
+
__decorate([
|
|
1150
|
+
Field({ description: `Display name of the connection (e.g. Amith / Microsoft 365).` }),
|
|
1151
|
+
MaxLength(200),
|
|
1152
|
+
__metadata("design:type", String)
|
|
1153
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "Name", void 0);
|
|
1154
|
+
__decorate([
|
|
1155
|
+
Field({ description: `Microsoft365, Gmail, Zoom, or Generic. Widen the CHECK when a new first-class provider lands.` }),
|
|
1156
|
+
MaxLength(40),
|
|
1157
|
+
__metadata("design:type", String)
|
|
1158
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "Provider", void 0);
|
|
1159
|
+
__decorate([
|
|
1160
|
+
Field({ description: `Active, Paused, Error, or Disabled.` }),
|
|
1161
|
+
MaxLength(20),
|
|
1162
|
+
__metadata("design:type", String)
|
|
1163
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "Status", void 0);
|
|
1164
|
+
__decorate([
|
|
1165
|
+
Field({ description: `Inbound (pull into CRM), Outbound, or Bidirectional.` }),
|
|
1166
|
+
MaxLength(20),
|
|
1167
|
+
__metadata("design:type", String)
|
|
1168
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "Direction", void 0);
|
|
1169
|
+
__decorate([
|
|
1170
|
+
Field(),
|
|
1171
|
+
MaxLength(36),
|
|
1172
|
+
__metadata("design:type", String)
|
|
1173
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "OwnerUserID", void 0);
|
|
1174
|
+
__decorate([
|
|
1175
|
+
Field({ nullable: true, description: `MJ Credentials engine key. NEVER a secret value at rest.` }),
|
|
1176
|
+
MaxLength(200),
|
|
1177
|
+
__metadata("design:type", String)
|
|
1178
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "CredentialsRef", void 0);
|
|
1179
|
+
__decorate([
|
|
1180
|
+
Field({ nullable: true, description: `Mailbox address this connection reads (jane@acme.com).` }),
|
|
1181
|
+
MaxLength(320),
|
|
1182
|
+
__metadata("design:type", String)
|
|
1183
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "Mailbox", void 0);
|
|
1184
|
+
__decorate([
|
|
1185
|
+
Field({ nullable: true, description: `When the engine last completed a sync for this connection.` }),
|
|
1186
|
+
__metadata("design:type", Date)
|
|
1187
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "LastSyncAt", void 0);
|
|
1188
|
+
__decorate([
|
|
1189
|
+
Field({ nullable: true, description: `Most recent sync error, if Status is Error.` }),
|
|
1190
|
+
__metadata("design:type", String)
|
|
1191
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "LastError", void 0);
|
|
1192
|
+
__decorate([
|
|
1193
|
+
Field({ nullable: true, description: `JSON provider extras (TenantID, MailboxFolder, CalendarID, IncludeCalendar, IncludeMail). See ActivitySyncConnectionSettings.` }),
|
|
1194
|
+
__metadata("design:type", String)
|
|
1195
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "Settings", void 0);
|
|
1196
|
+
__decorate([
|
|
1197
|
+
Field(),
|
|
1198
|
+
__metadata("design:type", Date)
|
|
1199
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "_mj__CreatedAt", void 0);
|
|
1200
|
+
__decorate([
|
|
1201
|
+
Field(),
|
|
1202
|
+
__metadata("design:type", Date)
|
|
1203
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "_mj__UpdatedAt", void 0);
|
|
1204
|
+
__decorate([
|
|
1205
|
+
Field(),
|
|
1206
|
+
MaxLength(100),
|
|
1207
|
+
__metadata("design:type", String)
|
|
1208
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "OwnerUser", void 0);
|
|
1209
|
+
__decorate([
|
|
1210
|
+
Field(() => [mjBizAppsCommonActivitySyncRule_]),
|
|
1211
|
+
__metadata("design:type", Array)
|
|
1212
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "mjBizAppsCommonActivitySyncRules_ActivitySyncConnectionIDArray", void 0);
|
|
1213
|
+
__decorate([
|
|
1214
|
+
Field(() => [mjBizAppsCommonActivity_]),
|
|
1215
|
+
__metadata("design:type", Array)
|
|
1216
|
+
], mjBizAppsCommonActivitySyncConnection_.prototype, "mjBizAppsCommonActivities_ActivitySyncConnectionIDArray", void 0);
|
|
1217
|
+
mjBizAppsCommonActivitySyncConnection_ = __decorate([
|
|
1218
|
+
ObjectType({ description: `A mailbox, calendar, or other provider connection that writes Activities. CredentialsRef is an MJ Credentials engine key — never a secret at rest.` })
|
|
1219
|
+
], mjBizAppsCommonActivitySyncConnection_);
|
|
1220
|
+
export { mjBizAppsCommonActivitySyncConnection_ };
|
|
1221
|
+
//****************************************************************************
|
|
1222
|
+
// INPUT TYPE for MJ_BizApps_Common: Activity Sync Connections
|
|
1223
|
+
//****************************************************************************
|
|
1224
|
+
let CreatemjBizAppsCommonActivitySyncConnectionInput = class CreatemjBizAppsCommonActivitySyncConnectionInput {
|
|
1225
|
+
};
|
|
1226
|
+
__decorate([
|
|
1227
|
+
Field({ nullable: true }),
|
|
1228
|
+
__metadata("design:type", String)
|
|
1229
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "ID", void 0);
|
|
1230
|
+
__decorate([
|
|
1231
|
+
Field({ nullable: true }),
|
|
1232
|
+
__metadata("design:type", String)
|
|
1233
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Name", void 0);
|
|
1234
|
+
__decorate([
|
|
1235
|
+
Field({ nullable: true }),
|
|
1236
|
+
__metadata("design:type", String)
|
|
1237
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Provider", void 0);
|
|
1238
|
+
__decorate([
|
|
1239
|
+
Field({ nullable: true }),
|
|
1240
|
+
__metadata("design:type", String)
|
|
1241
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Status", void 0);
|
|
1242
|
+
__decorate([
|
|
1243
|
+
Field({ nullable: true }),
|
|
1244
|
+
__metadata("design:type", String)
|
|
1245
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Direction", void 0);
|
|
1246
|
+
__decorate([
|
|
1247
|
+
Field({ nullable: true }),
|
|
1248
|
+
__metadata("design:type", String)
|
|
1249
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "OwnerUserID", void 0);
|
|
1250
|
+
__decorate([
|
|
1251
|
+
Field({ nullable: true }),
|
|
1252
|
+
__metadata("design:type", String)
|
|
1253
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "CredentialsRef", void 0);
|
|
1254
|
+
__decorate([
|
|
1255
|
+
Field({ nullable: true }),
|
|
1256
|
+
__metadata("design:type", String)
|
|
1257
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Mailbox", void 0);
|
|
1258
|
+
__decorate([
|
|
1259
|
+
Field({ nullable: true }),
|
|
1260
|
+
__metadata("design:type", Date)
|
|
1261
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "LastSyncAt", void 0);
|
|
1262
|
+
__decorate([
|
|
1263
|
+
Field({ nullable: true }),
|
|
1264
|
+
__metadata("design:type", String)
|
|
1265
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "LastError", void 0);
|
|
1266
|
+
__decorate([
|
|
1267
|
+
Field({ nullable: true }),
|
|
1268
|
+
__metadata("design:type", String)
|
|
1269
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Settings", void 0);
|
|
1270
|
+
__decorate([
|
|
1271
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
1272
|
+
__metadata("design:type", RestoreContextInput)
|
|
1273
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput.prototype, "RestoreContext___", void 0);
|
|
1274
|
+
CreatemjBizAppsCommonActivitySyncConnectionInput = __decorate([
|
|
1275
|
+
InputType()
|
|
1276
|
+
], CreatemjBizAppsCommonActivitySyncConnectionInput);
|
|
1277
|
+
export { CreatemjBizAppsCommonActivitySyncConnectionInput };
|
|
1278
|
+
//****************************************************************************
|
|
1279
|
+
// INPUT TYPE for MJ_BizApps_Common: Activity Sync Connections
|
|
1280
|
+
//****************************************************************************
|
|
1281
|
+
let UpdatemjBizAppsCommonActivitySyncConnectionInput = class UpdatemjBizAppsCommonActivitySyncConnectionInput {
|
|
1282
|
+
};
|
|
1283
|
+
__decorate([
|
|
1284
|
+
Field(),
|
|
1285
|
+
__metadata("design:type", String)
|
|
1286
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "ID", void 0);
|
|
1287
|
+
__decorate([
|
|
1288
|
+
Field({ nullable: true }),
|
|
1289
|
+
__metadata("design:type", String)
|
|
1290
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Name", void 0);
|
|
1291
|
+
__decorate([
|
|
1292
|
+
Field({ nullable: true }),
|
|
1293
|
+
__metadata("design:type", String)
|
|
1294
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Provider", void 0);
|
|
1295
|
+
__decorate([
|
|
1296
|
+
Field({ nullable: true }),
|
|
1297
|
+
__metadata("design:type", String)
|
|
1298
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Status", void 0);
|
|
1299
|
+
__decorate([
|
|
1300
|
+
Field({ nullable: true }),
|
|
1301
|
+
__metadata("design:type", String)
|
|
1302
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Direction", void 0);
|
|
1303
|
+
__decorate([
|
|
1304
|
+
Field({ nullable: true }),
|
|
1305
|
+
__metadata("design:type", String)
|
|
1306
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "OwnerUserID", void 0);
|
|
1307
|
+
__decorate([
|
|
1308
|
+
Field({ nullable: true }),
|
|
1309
|
+
__metadata("design:type", String)
|
|
1310
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "CredentialsRef", void 0);
|
|
1311
|
+
__decorate([
|
|
1312
|
+
Field({ nullable: true }),
|
|
1313
|
+
__metadata("design:type", String)
|
|
1314
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Mailbox", void 0);
|
|
1315
|
+
__decorate([
|
|
1316
|
+
Field({ nullable: true }),
|
|
1317
|
+
__metadata("design:type", Date)
|
|
1318
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "LastSyncAt", void 0);
|
|
1319
|
+
__decorate([
|
|
1320
|
+
Field({ nullable: true }),
|
|
1321
|
+
__metadata("design:type", String)
|
|
1322
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "LastError", void 0);
|
|
1323
|
+
__decorate([
|
|
1324
|
+
Field({ nullable: true }),
|
|
1325
|
+
__metadata("design:type", String)
|
|
1326
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "Settings", void 0);
|
|
1327
|
+
__decorate([
|
|
1328
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
1329
|
+
__metadata("design:type", Array)
|
|
1330
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "OldValues___", void 0);
|
|
1331
|
+
__decorate([
|
|
1332
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
1333
|
+
__metadata("design:type", RestoreContextInput)
|
|
1334
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput.prototype, "RestoreContext___", void 0);
|
|
1335
|
+
UpdatemjBizAppsCommonActivitySyncConnectionInput = __decorate([
|
|
1336
|
+
InputType()
|
|
1337
|
+
], UpdatemjBizAppsCommonActivitySyncConnectionInput);
|
|
1338
|
+
export { UpdatemjBizAppsCommonActivitySyncConnectionInput };
|
|
1339
|
+
//****************************************************************************
|
|
1340
|
+
// RESOLVER for MJ_BizApps_Common: Activity Sync Connections
|
|
1341
|
+
//****************************************************************************
|
|
1342
|
+
let RunmjBizAppsCommonActivitySyncConnectionViewResult = class RunmjBizAppsCommonActivitySyncConnectionViewResult {
|
|
1343
|
+
};
|
|
1344
|
+
__decorate([
|
|
1345
|
+
Field(() => [mjBizAppsCommonActivitySyncConnection_]),
|
|
1346
|
+
__metadata("design:type", Array)
|
|
1347
|
+
], RunmjBizAppsCommonActivitySyncConnectionViewResult.prototype, "Results", void 0);
|
|
1348
|
+
__decorate([
|
|
1349
|
+
Field(() => String, { nullable: true }),
|
|
1350
|
+
__metadata("design:type", String)
|
|
1351
|
+
], RunmjBizAppsCommonActivitySyncConnectionViewResult.prototype, "UserViewRunID", void 0);
|
|
1352
|
+
__decorate([
|
|
1353
|
+
Field(() => Int, { nullable: true }),
|
|
1354
|
+
__metadata("design:type", Number)
|
|
1355
|
+
], RunmjBizAppsCommonActivitySyncConnectionViewResult.prototype, "RowCount", void 0);
|
|
1356
|
+
__decorate([
|
|
1357
|
+
Field(() => Int, { nullable: true }),
|
|
1358
|
+
__metadata("design:type", Number)
|
|
1359
|
+
], RunmjBizAppsCommonActivitySyncConnectionViewResult.prototype, "TotalRowCount", void 0);
|
|
1360
|
+
__decorate([
|
|
1361
|
+
Field(() => Int, { nullable: true }),
|
|
1362
|
+
__metadata("design:type", Number)
|
|
1363
|
+
], RunmjBizAppsCommonActivitySyncConnectionViewResult.prototype, "ExecutionTime", void 0);
|
|
1364
|
+
__decorate([
|
|
1365
|
+
Field({ nullable: true }),
|
|
1366
|
+
__metadata("design:type", String)
|
|
1367
|
+
], RunmjBizAppsCommonActivitySyncConnectionViewResult.prototype, "ErrorMessage", void 0);
|
|
1368
|
+
__decorate([
|
|
1369
|
+
Field(() => Boolean, { nullable: false }),
|
|
1370
|
+
__metadata("design:type", Boolean)
|
|
1371
|
+
], RunmjBizAppsCommonActivitySyncConnectionViewResult.prototype, "Success", void 0);
|
|
1372
|
+
RunmjBizAppsCommonActivitySyncConnectionViewResult = __decorate([
|
|
1373
|
+
ObjectType()
|
|
1374
|
+
], RunmjBizAppsCommonActivitySyncConnectionViewResult);
|
|
1375
|
+
export { RunmjBizAppsCommonActivitySyncConnectionViewResult };
|
|
1376
|
+
let mjBizAppsCommonActivitySyncConnectionResolver = class mjBizAppsCommonActivitySyncConnectionResolver extends ResolverBase {
|
|
1377
|
+
async RunmjBizAppsCommonActivitySyncConnectionViewByID(input, { providers, userPayload }, pubSub) {
|
|
1378
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1379
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
1380
|
+
}
|
|
1381
|
+
async RunmjBizAppsCommonActivitySyncConnectionViewByName(input, { providers, userPayload }, pubSub) {
|
|
1382
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1383
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
1384
|
+
}
|
|
1385
|
+
async RunmjBizAppsCommonActivitySyncConnectionDynamicView(input, { providers, userPayload }, pubSub) {
|
|
1386
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1387
|
+
input.EntityName = 'MJ_BizApps_Common: Activity Sync Connections';
|
|
1388
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
1389
|
+
}
|
|
1390
|
+
async mjBizAppsCommonActivitySyncConnection(ID, { userPayload, providers }, pubSub) {
|
|
1391
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activity Sync Connections', userPayload);
|
|
1392
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1393
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivitySyncConnections')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activity Sync Connections', userPayload, EntityPermissionType.Read, 'AND');
|
|
1394
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1395
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Activity Sync Connections', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1396
|
+
return result;
|
|
1397
|
+
}
|
|
1398
|
+
async mjBizAppsCommonActivitySyncRules_ActivitySyncConnectionIDArray(mjbizappscommonactivitysyncconnection_, { userPayload, providers }, pubSub) {
|
|
1399
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activity Sync Rules', userPayload);
|
|
1400
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1401
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivitySyncRules')} WHERE ${provider.QuoteIdentifier('ActivitySyncConnectionID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activity Sync Rules', userPayload, EntityPermissionType.Read, 'AND');
|
|
1402
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappscommonactivitysyncconnection_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1403
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Common: Activity Sync Rules', rows, this.GetUserFromPayload(userPayload));
|
|
1404
|
+
return result;
|
|
1405
|
+
}
|
|
1406
|
+
async mjBizAppsCommonActivities_ActivitySyncConnectionIDArray(mjbizappscommonactivitysyncconnection_, { userPayload, providers }, pubSub) {
|
|
1407
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activities', userPayload);
|
|
1408
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1409
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivities')} WHERE ${provider.QuoteIdentifier('ActivitySyncConnectionID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activities', userPayload, EntityPermissionType.Read, 'AND');
|
|
1410
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappscommonactivitysyncconnection_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1411
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Common: Activities', rows, this.GetUserFromPayload(userPayload));
|
|
1412
|
+
return result;
|
|
1413
|
+
}
|
|
1414
|
+
async CreatemjBizAppsCommonActivitySyncConnection(input, { providers, userPayload }, pubSub) {
|
|
1415
|
+
const provider = GetReadWriteProvider(providers);
|
|
1416
|
+
return this.CreateRecord('MJ_BizApps_Common: Activity Sync Connections', input, provider, userPayload, pubSub);
|
|
1417
|
+
}
|
|
1418
|
+
async UpdatemjBizAppsCommonActivitySyncConnection(input, { providers, userPayload }, pubSub) {
|
|
1419
|
+
const provider = GetReadWriteProvider(providers);
|
|
1420
|
+
return this.UpdateRecord('MJ_BizApps_Common: Activity Sync Connections', input, provider, userPayload, pubSub);
|
|
1421
|
+
}
|
|
1422
|
+
async DeletemjBizAppsCommonActivitySyncConnection(ID, options, { providers, userPayload }, pubSub) {
|
|
1423
|
+
const provider = GetReadWriteProvider(providers);
|
|
1424
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
1425
|
+
return this.DeleteRecord('MJ_BizApps_Common: Activity Sync Connections', key, options, provider, userPayload, pubSub);
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1428
|
+
__decorate([
|
|
1429
|
+
Query(() => RunmjBizAppsCommonActivitySyncConnectionViewResult),
|
|
1430
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
1431
|
+
__param(1, Ctx()),
|
|
1432
|
+
__param(2, PubSub()),
|
|
1433
|
+
__metadata("design:type", Function),
|
|
1434
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
1435
|
+
__metadata("design:returntype", Promise)
|
|
1436
|
+
], mjBizAppsCommonActivitySyncConnectionResolver.prototype, "RunmjBizAppsCommonActivitySyncConnectionViewByID", null);
|
|
1437
|
+
__decorate([
|
|
1438
|
+
Query(() => RunmjBizAppsCommonActivitySyncConnectionViewResult),
|
|
1439
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
1440
|
+
__param(1, Ctx()),
|
|
1441
|
+
__param(2, PubSub()),
|
|
1442
|
+
__metadata("design:type", Function),
|
|
1443
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
1444
|
+
__metadata("design:returntype", Promise)
|
|
1445
|
+
], mjBizAppsCommonActivitySyncConnectionResolver.prototype, "RunmjBizAppsCommonActivitySyncConnectionViewByName", null);
|
|
1446
|
+
__decorate([
|
|
1447
|
+
Query(() => RunmjBizAppsCommonActivitySyncConnectionViewResult),
|
|
1448
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
1449
|
+
__param(1, Ctx()),
|
|
1450
|
+
__param(2, PubSub()),
|
|
1451
|
+
__metadata("design:type", Function),
|
|
1452
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
1453
|
+
__metadata("design:returntype", Promise)
|
|
1454
|
+
], mjBizAppsCommonActivitySyncConnectionResolver.prototype, "RunmjBizAppsCommonActivitySyncConnectionDynamicView", null);
|
|
1455
|
+
__decorate([
|
|
1456
|
+
Query(() => mjBizAppsCommonActivitySyncConnection_, { nullable: true }),
|
|
1457
|
+
__param(0, Arg('ID', () => String)),
|
|
1458
|
+
__param(1, Ctx()),
|
|
1459
|
+
__param(2, PubSub()),
|
|
1460
|
+
__metadata("design:type", Function),
|
|
1461
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
1462
|
+
__metadata("design:returntype", Promise)
|
|
1463
|
+
], mjBizAppsCommonActivitySyncConnectionResolver.prototype, "mjBizAppsCommonActivitySyncConnection", null);
|
|
1464
|
+
__decorate([
|
|
1465
|
+
FieldResolver(() => [mjBizAppsCommonActivitySyncRule_]),
|
|
1466
|
+
__param(0, Root()),
|
|
1467
|
+
__param(1, Ctx()),
|
|
1468
|
+
__param(2, PubSub()),
|
|
1469
|
+
__metadata("design:type", Function),
|
|
1470
|
+
__metadata("design:paramtypes", [mjBizAppsCommonActivitySyncConnection_, Object, PubSubEngine]),
|
|
1471
|
+
__metadata("design:returntype", Promise)
|
|
1472
|
+
], mjBizAppsCommonActivitySyncConnectionResolver.prototype, "mjBizAppsCommonActivitySyncRules_ActivitySyncConnectionIDArray", null);
|
|
1473
|
+
__decorate([
|
|
1474
|
+
FieldResolver(() => [mjBizAppsCommonActivity_]),
|
|
1475
|
+
__param(0, Root()),
|
|
1476
|
+
__param(1, Ctx()),
|
|
1477
|
+
__param(2, PubSub()),
|
|
1478
|
+
__metadata("design:type", Function),
|
|
1479
|
+
__metadata("design:paramtypes", [mjBizAppsCommonActivitySyncConnection_, Object, PubSubEngine]),
|
|
1480
|
+
__metadata("design:returntype", Promise)
|
|
1481
|
+
], mjBizAppsCommonActivitySyncConnectionResolver.prototype, "mjBizAppsCommonActivities_ActivitySyncConnectionIDArray", null);
|
|
1482
|
+
__decorate([
|
|
1483
|
+
Mutation(() => mjBizAppsCommonActivitySyncConnection_),
|
|
1484
|
+
__param(0, Arg('input', () => CreatemjBizAppsCommonActivitySyncConnectionInput)),
|
|
1485
|
+
__param(1, Ctx()),
|
|
1486
|
+
__param(2, PubSub()),
|
|
1487
|
+
__metadata("design:type", Function),
|
|
1488
|
+
__metadata("design:paramtypes", [CreatemjBizAppsCommonActivitySyncConnectionInput, Object, PubSubEngine]),
|
|
1489
|
+
__metadata("design:returntype", Promise)
|
|
1490
|
+
], mjBizAppsCommonActivitySyncConnectionResolver.prototype, "CreatemjBizAppsCommonActivitySyncConnection", null);
|
|
1491
|
+
__decorate([
|
|
1492
|
+
Mutation(() => mjBizAppsCommonActivitySyncConnection_),
|
|
1493
|
+
__param(0, Arg('input', () => UpdatemjBizAppsCommonActivitySyncConnectionInput)),
|
|
1494
|
+
__param(1, Ctx()),
|
|
1495
|
+
__param(2, PubSub()),
|
|
1496
|
+
__metadata("design:type", Function),
|
|
1497
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsCommonActivitySyncConnectionInput, Object, PubSubEngine]),
|
|
1498
|
+
__metadata("design:returntype", Promise)
|
|
1499
|
+
], mjBizAppsCommonActivitySyncConnectionResolver.prototype, "UpdatemjBizAppsCommonActivitySyncConnection", null);
|
|
1500
|
+
__decorate([
|
|
1501
|
+
Mutation(() => mjBizAppsCommonActivitySyncConnection_),
|
|
1502
|
+
__param(0, Arg('ID', () => String)),
|
|
1503
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
1504
|
+
__param(2, Ctx()),
|
|
1505
|
+
__param(3, PubSub()),
|
|
1506
|
+
__metadata("design:type", Function),
|
|
1507
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
1508
|
+
__metadata("design:returntype", Promise)
|
|
1509
|
+
], mjBizAppsCommonActivitySyncConnectionResolver.prototype, "DeletemjBizAppsCommonActivitySyncConnection", null);
|
|
1510
|
+
mjBizAppsCommonActivitySyncConnectionResolver = __decorate([
|
|
1511
|
+
Resolver(mjBizAppsCommonActivitySyncConnection_)
|
|
1512
|
+
], mjBizAppsCommonActivitySyncConnectionResolver);
|
|
1513
|
+
export { mjBizAppsCommonActivitySyncConnectionResolver };
|
|
1514
|
+
//****************************************************************************
|
|
1515
|
+
// ENTITY CLASS for MJ_BizApps_Common: Activity Sync Rules
|
|
1516
|
+
//****************************************************************************
|
|
1517
|
+
let mjBizAppsCommonActivitySyncRule_ = class mjBizAppsCommonActivitySyncRule_ {
|
|
1518
|
+
};
|
|
1519
|
+
__decorate([
|
|
1520
|
+
Field(),
|
|
1521
|
+
MaxLength(36),
|
|
1522
|
+
__metadata("design:type", String)
|
|
1523
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "ID", void 0);
|
|
1524
|
+
__decorate([
|
|
1525
|
+
Field(),
|
|
1526
|
+
MaxLength(36),
|
|
1527
|
+
__metadata("design:type", String)
|
|
1528
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "ActivitySyncConnectionID", void 0);
|
|
1529
|
+
__decorate([
|
|
1530
|
+
Field({ description: `Display name of the rule.` }),
|
|
1531
|
+
MaxLength(200),
|
|
1532
|
+
__metadata("design:type", String)
|
|
1533
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "Name", void 0);
|
|
1534
|
+
__decorate([
|
|
1535
|
+
Field(() => Boolean, { description: `0 skips the rule without deleting it.` }),
|
|
1536
|
+
__metadata("design:type", Boolean)
|
|
1537
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "IsEnabled", void 0);
|
|
1538
|
+
__decorate([
|
|
1539
|
+
Field(() => Int, { description: `Evaluation order within the connection. Lower first.` }),
|
|
1540
|
+
__metadata("design:type", Number)
|
|
1541
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "Sequence", void 0);
|
|
1542
|
+
__decorate([
|
|
1543
|
+
Field({ description: `Include or Exclude matching items. With no rules, the engine syncs everything the connection can see.` }),
|
|
1544
|
+
MaxLength(20),
|
|
1545
|
+
__metadata("design:type", String)
|
|
1546
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "Action", void 0);
|
|
1547
|
+
__decorate([
|
|
1548
|
+
Field({ nullable: true }),
|
|
1549
|
+
MaxLength(36),
|
|
1550
|
+
__metadata("design:type", String)
|
|
1551
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "ActivityTypeID", void 0);
|
|
1552
|
+
__decorate([
|
|
1553
|
+
Field({ nullable: true, description: `Optional direction filter (Inbound / Outbound / Internal). Null = any.` }),
|
|
1554
|
+
MaxLength(20),
|
|
1555
|
+
__metadata("design:type", String)
|
|
1556
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "Direction", void 0);
|
|
1557
|
+
__decorate([
|
|
1558
|
+
Field({ nullable: true, description: `Inclusive lower bound of the sync window. Null = no lower bound.` }),
|
|
1559
|
+
__metadata("design:type", Date)
|
|
1560
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "DateFrom", void 0);
|
|
1561
|
+
__decorate([
|
|
1562
|
+
Field({ nullable: true, description: `Inclusive upper bound of the sync window. Null = no upper bound.` }),
|
|
1563
|
+
__metadata("design:type", Date)
|
|
1564
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "DateTo", void 0);
|
|
1565
|
+
__decorate([
|
|
1566
|
+
Field(() => Boolean, { description: `1 = also pull attachments into ActivityFile rows.` }),
|
|
1567
|
+
__metadata("design:type", Boolean)
|
|
1568
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "IncludeAttachments", void 0);
|
|
1569
|
+
__decorate([
|
|
1570
|
+
Field({ nullable: true, description: `JSON match extras: Folders, ExcludeFolders, Domains, ExcludeDomains, ParticipantMustMatchContactMethod, SubjectContains, SubjectExcludes. See ActivitySyncRuleFilter.` }),
|
|
1571
|
+
__metadata("design:type", String)
|
|
1572
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "Filter", void 0);
|
|
1573
|
+
__decorate([
|
|
1574
|
+
Field(),
|
|
1575
|
+
__metadata("design:type", Date)
|
|
1576
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "_mj__CreatedAt", void 0);
|
|
1577
|
+
__decorate([
|
|
1578
|
+
Field(),
|
|
1579
|
+
__metadata("design:type", Date)
|
|
1580
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "_mj__UpdatedAt", void 0);
|
|
1581
|
+
__decorate([
|
|
1582
|
+
Field(),
|
|
1583
|
+
MaxLength(200),
|
|
1584
|
+
__metadata("design:type", String)
|
|
1585
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "ActivitySyncConnection", void 0);
|
|
1586
|
+
__decorate([
|
|
1587
|
+
Field({ nullable: true }),
|
|
1588
|
+
MaxLength(100),
|
|
1589
|
+
__metadata("design:type", String)
|
|
1590
|
+
], mjBizAppsCommonActivitySyncRule_.prototype, "ActivityType", void 0);
|
|
1591
|
+
mjBizAppsCommonActivitySyncRule_ = __decorate([
|
|
1592
|
+
ObjectType({ description: `Include/exclude rule for an ActivitySyncConnection: type, direction, date window, attachments, plus a JSON Filter (folders, domains, participant-must-match-ContactMethod).` })
|
|
1593
|
+
], mjBizAppsCommonActivitySyncRule_);
|
|
1594
|
+
export { mjBizAppsCommonActivitySyncRule_ };
|
|
1595
|
+
//****************************************************************************
|
|
1596
|
+
// INPUT TYPE for MJ_BizApps_Common: Activity Sync Rules
|
|
1597
|
+
//****************************************************************************
|
|
1598
|
+
let CreatemjBizAppsCommonActivitySyncRuleInput = class CreatemjBizAppsCommonActivitySyncRuleInput {
|
|
1599
|
+
};
|
|
1600
|
+
__decorate([
|
|
1601
|
+
Field({ nullable: true }),
|
|
1602
|
+
__metadata("design:type", String)
|
|
1603
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "ID", void 0);
|
|
1604
|
+
__decorate([
|
|
1605
|
+
Field({ nullable: true }),
|
|
1606
|
+
__metadata("design:type", String)
|
|
1607
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "ActivitySyncConnectionID", void 0);
|
|
1608
|
+
__decorate([
|
|
1609
|
+
Field({ nullable: true }),
|
|
1610
|
+
__metadata("design:type", String)
|
|
1611
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "Name", void 0);
|
|
1612
|
+
__decorate([
|
|
1613
|
+
Field(() => Boolean, { nullable: true }),
|
|
1614
|
+
__metadata("design:type", Boolean)
|
|
1615
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "IsEnabled", void 0);
|
|
1616
|
+
__decorate([
|
|
1617
|
+
Field(() => Int, { nullable: true }),
|
|
1618
|
+
__metadata("design:type", Number)
|
|
1619
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "Sequence", void 0);
|
|
1620
|
+
__decorate([
|
|
1621
|
+
Field({ nullable: true }),
|
|
1622
|
+
__metadata("design:type", String)
|
|
1623
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "Action", void 0);
|
|
1624
|
+
__decorate([
|
|
1625
|
+
Field({ nullable: true }),
|
|
1626
|
+
__metadata("design:type", String)
|
|
1627
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "ActivityTypeID", void 0);
|
|
1628
|
+
__decorate([
|
|
1629
|
+
Field({ nullable: true }),
|
|
1630
|
+
__metadata("design:type", String)
|
|
1631
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "Direction", void 0);
|
|
1632
|
+
__decorate([
|
|
1633
|
+
Field({ nullable: true }),
|
|
1634
|
+
__metadata("design:type", Date)
|
|
1635
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "DateFrom", void 0);
|
|
1636
|
+
__decorate([
|
|
1637
|
+
Field({ nullable: true }),
|
|
1638
|
+
__metadata("design:type", Date)
|
|
1639
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "DateTo", void 0);
|
|
1640
|
+
__decorate([
|
|
1641
|
+
Field(() => Boolean, { nullable: true }),
|
|
1642
|
+
__metadata("design:type", Boolean)
|
|
1643
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "IncludeAttachments", void 0);
|
|
1644
|
+
__decorate([
|
|
1645
|
+
Field({ nullable: true }),
|
|
1646
|
+
__metadata("design:type", String)
|
|
1647
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "Filter", void 0);
|
|
1648
|
+
__decorate([
|
|
1649
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
1650
|
+
__metadata("design:type", RestoreContextInput)
|
|
1651
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput.prototype, "RestoreContext___", void 0);
|
|
1652
|
+
CreatemjBizAppsCommonActivitySyncRuleInput = __decorate([
|
|
1653
|
+
InputType()
|
|
1654
|
+
], CreatemjBizAppsCommonActivitySyncRuleInput);
|
|
1655
|
+
export { CreatemjBizAppsCommonActivitySyncRuleInput };
|
|
1656
|
+
//****************************************************************************
|
|
1657
|
+
// INPUT TYPE for MJ_BizApps_Common: Activity Sync Rules
|
|
1658
|
+
//****************************************************************************
|
|
1659
|
+
let UpdatemjBizAppsCommonActivitySyncRuleInput = class UpdatemjBizAppsCommonActivitySyncRuleInput {
|
|
1660
|
+
};
|
|
1661
|
+
__decorate([
|
|
1662
|
+
Field(),
|
|
1663
|
+
__metadata("design:type", String)
|
|
1664
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "ID", void 0);
|
|
1665
|
+
__decorate([
|
|
1666
|
+
Field({ nullable: true }),
|
|
1667
|
+
__metadata("design:type", String)
|
|
1668
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "ActivitySyncConnectionID", void 0);
|
|
1669
|
+
__decorate([
|
|
1670
|
+
Field({ nullable: true }),
|
|
1671
|
+
__metadata("design:type", String)
|
|
1672
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "Name", void 0);
|
|
1673
|
+
__decorate([
|
|
1674
|
+
Field(() => Boolean, { nullable: true }),
|
|
1675
|
+
__metadata("design:type", Boolean)
|
|
1676
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "IsEnabled", void 0);
|
|
1677
|
+
__decorate([
|
|
1678
|
+
Field(() => Int, { nullable: true }),
|
|
1679
|
+
__metadata("design:type", Number)
|
|
1680
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "Sequence", void 0);
|
|
1681
|
+
__decorate([
|
|
1682
|
+
Field({ nullable: true }),
|
|
1683
|
+
__metadata("design:type", String)
|
|
1684
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "Action", void 0);
|
|
1685
|
+
__decorate([
|
|
1686
|
+
Field({ nullable: true }),
|
|
1687
|
+
__metadata("design:type", String)
|
|
1688
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "ActivityTypeID", void 0);
|
|
1689
|
+
__decorate([
|
|
1690
|
+
Field({ nullable: true }),
|
|
1691
|
+
__metadata("design:type", String)
|
|
1692
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "Direction", void 0);
|
|
1693
|
+
__decorate([
|
|
1694
|
+
Field({ nullable: true }),
|
|
1695
|
+
__metadata("design:type", Date)
|
|
1696
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "DateFrom", void 0);
|
|
1697
|
+
__decorate([
|
|
1698
|
+
Field({ nullable: true }),
|
|
1699
|
+
__metadata("design:type", Date)
|
|
1700
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "DateTo", void 0);
|
|
1701
|
+
__decorate([
|
|
1702
|
+
Field(() => Boolean, { nullable: true }),
|
|
1703
|
+
__metadata("design:type", Boolean)
|
|
1704
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "IncludeAttachments", void 0);
|
|
1705
|
+
__decorate([
|
|
1706
|
+
Field({ nullable: true }),
|
|
1707
|
+
__metadata("design:type", String)
|
|
1708
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "Filter", void 0);
|
|
1709
|
+
__decorate([
|
|
1710
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
1711
|
+
__metadata("design:type", Array)
|
|
1712
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "OldValues___", void 0);
|
|
1713
|
+
__decorate([
|
|
1714
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
1715
|
+
__metadata("design:type", RestoreContextInput)
|
|
1716
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput.prototype, "RestoreContext___", void 0);
|
|
1717
|
+
UpdatemjBizAppsCommonActivitySyncRuleInput = __decorate([
|
|
1718
|
+
InputType()
|
|
1719
|
+
], UpdatemjBizAppsCommonActivitySyncRuleInput);
|
|
1720
|
+
export { UpdatemjBizAppsCommonActivitySyncRuleInput };
|
|
1721
|
+
//****************************************************************************
|
|
1722
|
+
// RESOLVER for MJ_BizApps_Common: Activity Sync Rules
|
|
1723
|
+
//****************************************************************************
|
|
1724
|
+
let RunmjBizAppsCommonActivitySyncRuleViewResult = class RunmjBizAppsCommonActivitySyncRuleViewResult {
|
|
1725
|
+
};
|
|
1726
|
+
__decorate([
|
|
1727
|
+
Field(() => [mjBizAppsCommonActivitySyncRule_]),
|
|
1728
|
+
__metadata("design:type", Array)
|
|
1729
|
+
], RunmjBizAppsCommonActivitySyncRuleViewResult.prototype, "Results", void 0);
|
|
1730
|
+
__decorate([
|
|
1731
|
+
Field(() => String, { nullable: true }),
|
|
1732
|
+
__metadata("design:type", String)
|
|
1733
|
+
], RunmjBizAppsCommonActivitySyncRuleViewResult.prototype, "UserViewRunID", void 0);
|
|
1734
|
+
__decorate([
|
|
1735
|
+
Field(() => Int, { nullable: true }),
|
|
1736
|
+
__metadata("design:type", Number)
|
|
1737
|
+
], RunmjBizAppsCommonActivitySyncRuleViewResult.prototype, "RowCount", void 0);
|
|
1738
|
+
__decorate([
|
|
1739
|
+
Field(() => Int, { nullable: true }),
|
|
1740
|
+
__metadata("design:type", Number)
|
|
1741
|
+
], RunmjBizAppsCommonActivitySyncRuleViewResult.prototype, "TotalRowCount", void 0);
|
|
1742
|
+
__decorate([
|
|
1743
|
+
Field(() => Int, { nullable: true }),
|
|
1744
|
+
__metadata("design:type", Number)
|
|
1745
|
+
], RunmjBizAppsCommonActivitySyncRuleViewResult.prototype, "ExecutionTime", void 0);
|
|
1746
|
+
__decorate([
|
|
1747
|
+
Field({ nullable: true }),
|
|
1748
|
+
__metadata("design:type", String)
|
|
1749
|
+
], RunmjBizAppsCommonActivitySyncRuleViewResult.prototype, "ErrorMessage", void 0);
|
|
1750
|
+
__decorate([
|
|
1751
|
+
Field(() => Boolean, { nullable: false }),
|
|
1752
|
+
__metadata("design:type", Boolean)
|
|
1753
|
+
], RunmjBizAppsCommonActivitySyncRuleViewResult.prototype, "Success", void 0);
|
|
1754
|
+
RunmjBizAppsCommonActivitySyncRuleViewResult = __decorate([
|
|
1755
|
+
ObjectType()
|
|
1756
|
+
], RunmjBizAppsCommonActivitySyncRuleViewResult);
|
|
1757
|
+
export { RunmjBizAppsCommonActivitySyncRuleViewResult };
|
|
1758
|
+
let mjBizAppsCommonActivitySyncRuleResolver = class mjBizAppsCommonActivitySyncRuleResolver extends ResolverBase {
|
|
1759
|
+
async RunmjBizAppsCommonActivitySyncRuleViewByID(input, { providers, userPayload }, pubSub) {
|
|
1760
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1761
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
1762
|
+
}
|
|
1763
|
+
async RunmjBizAppsCommonActivitySyncRuleViewByName(input, { providers, userPayload }, pubSub) {
|
|
1764
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1765
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
1766
|
+
}
|
|
1767
|
+
async RunmjBizAppsCommonActivitySyncRuleDynamicView(input, { providers, userPayload }, pubSub) {
|
|
1768
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1769
|
+
input.EntityName = 'MJ_BizApps_Common: Activity Sync Rules';
|
|
1770
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
1771
|
+
}
|
|
1772
|
+
async mjBizAppsCommonActivitySyncRule(ID, { userPayload, providers }, pubSub) {
|
|
1773
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activity Sync Rules', userPayload);
|
|
1774
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1775
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivitySyncRules')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activity Sync Rules', userPayload, EntityPermissionType.Read, 'AND');
|
|
1776
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
1777
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Activity Sync Rules', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
1778
|
+
return result;
|
|
1779
|
+
}
|
|
1780
|
+
async CreatemjBizAppsCommonActivitySyncRule(input, { providers, userPayload }, pubSub) {
|
|
1781
|
+
const provider = GetReadWriteProvider(providers);
|
|
1782
|
+
return this.CreateRecord('MJ_BizApps_Common: Activity Sync Rules', input, provider, userPayload, pubSub);
|
|
1783
|
+
}
|
|
1784
|
+
async UpdatemjBizAppsCommonActivitySyncRule(input, { providers, userPayload }, pubSub) {
|
|
1785
|
+
const provider = GetReadWriteProvider(providers);
|
|
1786
|
+
return this.UpdateRecord('MJ_BizApps_Common: Activity Sync Rules', input, provider, userPayload, pubSub);
|
|
1787
|
+
}
|
|
1788
|
+
async DeletemjBizAppsCommonActivitySyncRule(ID, options, { providers, userPayload }, pubSub) {
|
|
1789
|
+
const provider = GetReadWriteProvider(providers);
|
|
1790
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
1791
|
+
return this.DeleteRecord('MJ_BizApps_Common: Activity Sync Rules', key, options, provider, userPayload, pubSub);
|
|
1792
|
+
}
|
|
1793
|
+
};
|
|
1794
|
+
__decorate([
|
|
1795
|
+
Query(() => RunmjBizAppsCommonActivitySyncRuleViewResult),
|
|
1796
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
1797
|
+
__param(1, Ctx()),
|
|
1798
|
+
__param(2, PubSub()),
|
|
1799
|
+
__metadata("design:type", Function),
|
|
1800
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
1801
|
+
__metadata("design:returntype", Promise)
|
|
1802
|
+
], mjBizAppsCommonActivitySyncRuleResolver.prototype, "RunmjBizAppsCommonActivitySyncRuleViewByID", null);
|
|
1803
|
+
__decorate([
|
|
1804
|
+
Query(() => RunmjBizAppsCommonActivitySyncRuleViewResult),
|
|
1805
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
1806
|
+
__param(1, Ctx()),
|
|
1807
|
+
__param(2, PubSub()),
|
|
1808
|
+
__metadata("design:type", Function),
|
|
1809
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
1810
|
+
__metadata("design:returntype", Promise)
|
|
1811
|
+
], mjBizAppsCommonActivitySyncRuleResolver.prototype, "RunmjBizAppsCommonActivitySyncRuleViewByName", null);
|
|
1812
|
+
__decorate([
|
|
1813
|
+
Query(() => RunmjBizAppsCommonActivitySyncRuleViewResult),
|
|
1814
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
1815
|
+
__param(1, Ctx()),
|
|
1816
|
+
__param(2, PubSub()),
|
|
1817
|
+
__metadata("design:type", Function),
|
|
1818
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
1819
|
+
__metadata("design:returntype", Promise)
|
|
1820
|
+
], mjBizAppsCommonActivitySyncRuleResolver.prototype, "RunmjBizAppsCommonActivitySyncRuleDynamicView", null);
|
|
1821
|
+
__decorate([
|
|
1822
|
+
Query(() => mjBizAppsCommonActivitySyncRule_, { nullable: true }),
|
|
1823
|
+
__param(0, Arg('ID', () => String)),
|
|
1824
|
+
__param(1, Ctx()),
|
|
1825
|
+
__param(2, PubSub()),
|
|
1826
|
+
__metadata("design:type", Function),
|
|
1827
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
1828
|
+
__metadata("design:returntype", Promise)
|
|
1829
|
+
], mjBizAppsCommonActivitySyncRuleResolver.prototype, "mjBizAppsCommonActivitySyncRule", null);
|
|
1830
|
+
__decorate([
|
|
1831
|
+
Mutation(() => mjBizAppsCommonActivitySyncRule_),
|
|
1832
|
+
__param(0, Arg('input', () => CreatemjBizAppsCommonActivitySyncRuleInput)),
|
|
1833
|
+
__param(1, Ctx()),
|
|
1834
|
+
__param(2, PubSub()),
|
|
1835
|
+
__metadata("design:type", Function),
|
|
1836
|
+
__metadata("design:paramtypes", [CreatemjBizAppsCommonActivitySyncRuleInput, Object, PubSubEngine]),
|
|
1837
|
+
__metadata("design:returntype", Promise)
|
|
1838
|
+
], mjBizAppsCommonActivitySyncRuleResolver.prototype, "CreatemjBizAppsCommonActivitySyncRule", null);
|
|
1839
|
+
__decorate([
|
|
1840
|
+
Mutation(() => mjBizAppsCommonActivitySyncRule_),
|
|
1841
|
+
__param(0, Arg('input', () => UpdatemjBizAppsCommonActivitySyncRuleInput)),
|
|
1842
|
+
__param(1, Ctx()),
|
|
1843
|
+
__param(2, PubSub()),
|
|
1844
|
+
__metadata("design:type", Function),
|
|
1845
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsCommonActivitySyncRuleInput, Object, PubSubEngine]),
|
|
1846
|
+
__metadata("design:returntype", Promise)
|
|
1847
|
+
], mjBizAppsCommonActivitySyncRuleResolver.prototype, "UpdatemjBizAppsCommonActivitySyncRule", null);
|
|
1848
|
+
__decorate([
|
|
1849
|
+
Mutation(() => mjBizAppsCommonActivitySyncRule_),
|
|
1850
|
+
__param(0, Arg('ID', () => String)),
|
|
1851
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
1852
|
+
__param(2, Ctx()),
|
|
1853
|
+
__param(3, PubSub()),
|
|
1854
|
+
__metadata("design:type", Function),
|
|
1855
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
1856
|
+
__metadata("design:returntype", Promise)
|
|
1857
|
+
], mjBizAppsCommonActivitySyncRuleResolver.prototype, "DeletemjBizAppsCommonActivitySyncRule", null);
|
|
1858
|
+
mjBizAppsCommonActivitySyncRuleResolver = __decorate([
|
|
1859
|
+
Resolver(mjBizAppsCommonActivitySyncRule_)
|
|
1860
|
+
], mjBizAppsCommonActivitySyncRuleResolver);
|
|
1861
|
+
export { mjBizAppsCommonActivitySyncRuleResolver };
|
|
1862
|
+
//****************************************************************************
|
|
1863
|
+
// ENTITY CLASS for MJ_BizApps_Common: Activity Types
|
|
1864
|
+
//****************************************************************************
|
|
1865
|
+
let mjBizAppsCommonActivityType_ = class mjBizAppsCommonActivityType_ {
|
|
1866
|
+
};
|
|
1867
|
+
__decorate([
|
|
1868
|
+
Field(),
|
|
1869
|
+
MaxLength(36),
|
|
1870
|
+
__metadata("design:type", String)
|
|
1871
|
+
], mjBizAppsCommonActivityType_.prototype, "ID", void 0);
|
|
1872
|
+
__decorate([
|
|
1873
|
+
Field({ description: `Stable key targeted by sync and code (Email, Call, Meeting, Note, SMS, Chat). Unique. Names can be renamed; codes cannot.` }),
|
|
1874
|
+
MaxLength(50),
|
|
1875
|
+
__metadata("design:type", String)
|
|
1876
|
+
], mjBizAppsCommonActivityType_.prototype, "Code", void 0);
|
|
1877
|
+
__decorate([
|
|
1878
|
+
Field({ description: `Display name for the picker and timeline.` }),
|
|
1879
|
+
MaxLength(100),
|
|
1880
|
+
__metadata("design:type", String)
|
|
1881
|
+
], mjBizAppsCommonActivityType_.prototype, "Name", void 0);
|
|
1882
|
+
__decorate([
|
|
1883
|
+
Field({ nullable: true, description: `Optional longer description of the type.` }),
|
|
1884
|
+
__metadata("design:type", String)
|
|
1885
|
+
], mjBizAppsCommonActivityType_.prototype, "Description", void 0);
|
|
1886
|
+
__decorate([
|
|
1887
|
+
Field({ nullable: true }),
|
|
1888
|
+
MaxLength(36),
|
|
1889
|
+
__metadata("design:type", String)
|
|
1890
|
+
], mjBizAppsCommonActivityType_.prototype, "ParentID", void 0);
|
|
1891
|
+
__decorate([
|
|
1892
|
+
Field({ nullable: true, description: `Font Awesome class for timeline chrome (e.g. fa-solid fa-envelope).` }),
|
|
1893
|
+
MaxLength(100),
|
|
1894
|
+
__metadata("design:type", String)
|
|
1895
|
+
], mjBizAppsCommonActivityType_.prototype, "IconClass", void 0);
|
|
1896
|
+
__decorate([
|
|
1897
|
+
Field({ nullable: true, description: `Optional categorical color for timeline chrome. Not a design-token — this is stored per type.` }),
|
|
1898
|
+
MaxLength(30),
|
|
1899
|
+
__metadata("design:type", String)
|
|
1900
|
+
], mjBizAppsCommonActivityType_.prototype, "Color", void 0);
|
|
1901
|
+
__decorate([
|
|
1902
|
+
Field(() => Int, { description: `Picker sort order. Lower first.` }),
|
|
1903
|
+
__metadata("design:type", Number)
|
|
1904
|
+
], mjBizAppsCommonActivityType_.prototype, "Sequence", void 0);
|
|
1905
|
+
__decorate([
|
|
1906
|
+
Field(() => Boolean, { description: `1 = seeded system type the sync engine may assume (Email, Call, Meeting, Note, SMS, Chat). Clients add children with IsSystem = 0.` }),
|
|
1907
|
+
__metadata("design:type", Boolean)
|
|
1908
|
+
], mjBizAppsCommonActivityType_.prototype, "IsSystem", void 0);
|
|
1909
|
+
__decorate([
|
|
1910
|
+
Field(() => Boolean, { description: `0 hides the type from the picker without deleting historical activities.` }),
|
|
1911
|
+
__metadata("design:type", Boolean)
|
|
1912
|
+
], mjBizAppsCommonActivityType_.prototype, "IsActive", void 0);
|
|
1913
|
+
__decorate([
|
|
1914
|
+
Field(),
|
|
1915
|
+
__metadata("design:type", Date)
|
|
1916
|
+
], mjBizAppsCommonActivityType_.prototype, "_mj__CreatedAt", void 0);
|
|
1917
|
+
__decorate([
|
|
1918
|
+
Field(),
|
|
1919
|
+
__metadata("design:type", Date)
|
|
1920
|
+
], mjBizAppsCommonActivityType_.prototype, "_mj__UpdatedAt", void 0);
|
|
1921
|
+
__decorate([
|
|
1922
|
+
Field({ nullable: true }),
|
|
1923
|
+
MaxLength(100),
|
|
1924
|
+
__metadata("design:type", String)
|
|
1925
|
+
], mjBizAppsCommonActivityType_.prototype, "Parent", void 0);
|
|
1926
|
+
__decorate([
|
|
1927
|
+
Field({ nullable: true }),
|
|
1928
|
+
MaxLength(36),
|
|
1929
|
+
__metadata("design:type", String)
|
|
1930
|
+
], mjBizAppsCommonActivityType_.prototype, "RootParentID", void 0);
|
|
1931
|
+
__decorate([
|
|
1932
|
+
Field(() => Int, { nullable: true }),
|
|
1933
|
+
__metadata("design:type", Number)
|
|
1934
|
+
], mjBizAppsCommonActivityType_.prototype, "ParentIDDepth", void 0);
|
|
1935
|
+
__decorate([
|
|
1936
|
+
Field({ nullable: true }),
|
|
1937
|
+
__metadata("design:type", String)
|
|
1938
|
+
], mjBizAppsCommonActivityType_.prototype, "ParentIDPath", void 0);
|
|
1939
|
+
__decorate([
|
|
1940
|
+
Field(() => Boolean, { nullable: true }),
|
|
1941
|
+
__metadata("design:type", Boolean)
|
|
1942
|
+
], mjBizAppsCommonActivityType_.prototype, "ParentIDIsLeaf", void 0);
|
|
1943
|
+
__decorate([
|
|
1944
|
+
Field(() => Int, { nullable: true }),
|
|
1945
|
+
__metadata("design:type", Number)
|
|
1946
|
+
], mjBizAppsCommonActivityType_.prototype, "ParentIDChildCount", void 0);
|
|
1947
|
+
__decorate([
|
|
1948
|
+
Field(() => [mjBizAppsCommonActivity_]),
|
|
1949
|
+
__metadata("design:type", Array)
|
|
1950
|
+
], mjBizAppsCommonActivityType_.prototype, "mjBizAppsCommonActivities_ActivityTypeIDArray", void 0);
|
|
1951
|
+
__decorate([
|
|
1952
|
+
Field(() => [mjBizAppsCommonActivitySyncRule_]),
|
|
1953
|
+
__metadata("design:type", Array)
|
|
1954
|
+
], mjBizAppsCommonActivityType_.prototype, "mjBizAppsCommonActivitySyncRules_ActivityTypeIDArray", void 0);
|
|
1955
|
+
__decorate([
|
|
1956
|
+
Field(() => [mjBizAppsCommonActivityType_]),
|
|
1957
|
+
__metadata("design:type", Array)
|
|
1958
|
+
], mjBizAppsCommonActivityType_.prototype, "mjBizAppsCommonActivityTypes_ParentIDArray", void 0);
|
|
1959
|
+
mjBizAppsCommonActivityType_ = __decorate([
|
|
1960
|
+
ObjectType({ description: `Lookup of interaction channels (Email, Call, Meeting, Note, SMS, Chat). Hierarchy is picker-only; direction lives on Activity. Code is the stable key — sync and code target Code, never Name.` })
|
|
1961
|
+
], mjBizAppsCommonActivityType_);
|
|
1962
|
+
export { mjBizAppsCommonActivityType_ };
|
|
1963
|
+
//****************************************************************************
|
|
1964
|
+
// INPUT TYPE for MJ_BizApps_Common: Activity Types
|
|
1965
|
+
//****************************************************************************
|
|
1966
|
+
let CreatemjBizAppsCommonActivityTypeInput = class CreatemjBizAppsCommonActivityTypeInput {
|
|
1967
|
+
};
|
|
1968
|
+
__decorate([
|
|
1969
|
+
Field({ nullable: true }),
|
|
1970
|
+
__metadata("design:type", String)
|
|
1971
|
+
], CreatemjBizAppsCommonActivityTypeInput.prototype, "ID", void 0);
|
|
1972
|
+
__decorate([
|
|
1973
|
+
Field({ nullable: true }),
|
|
1974
|
+
__metadata("design:type", String)
|
|
1975
|
+
], CreatemjBizAppsCommonActivityTypeInput.prototype, "Code", void 0);
|
|
1976
|
+
__decorate([
|
|
1977
|
+
Field({ nullable: true }),
|
|
1978
|
+
__metadata("design:type", String)
|
|
1979
|
+
], CreatemjBizAppsCommonActivityTypeInput.prototype, "Name", void 0);
|
|
1980
|
+
__decorate([
|
|
1981
|
+
Field({ nullable: true }),
|
|
1982
|
+
__metadata("design:type", String)
|
|
1983
|
+
], CreatemjBizAppsCommonActivityTypeInput.prototype, "Description", void 0);
|
|
1984
|
+
__decorate([
|
|
1985
|
+
Field({ nullable: true }),
|
|
1986
|
+
__metadata("design:type", String)
|
|
1987
|
+
], CreatemjBizAppsCommonActivityTypeInput.prototype, "ParentID", void 0);
|
|
1988
|
+
__decorate([
|
|
1989
|
+
Field({ nullable: true }),
|
|
1990
|
+
__metadata("design:type", String)
|
|
1991
|
+
], CreatemjBizAppsCommonActivityTypeInput.prototype, "IconClass", void 0);
|
|
1992
|
+
__decorate([
|
|
1993
|
+
Field({ nullable: true }),
|
|
1994
|
+
__metadata("design:type", String)
|
|
1995
|
+
], CreatemjBizAppsCommonActivityTypeInput.prototype, "Color", void 0);
|
|
1996
|
+
__decorate([
|
|
1997
|
+
Field(() => Int, { nullable: true }),
|
|
1998
|
+
__metadata("design:type", Number)
|
|
1999
|
+
], CreatemjBizAppsCommonActivityTypeInput.prototype, "Sequence", void 0);
|
|
2000
|
+
__decorate([
|
|
2001
|
+
Field(() => Boolean, { nullable: true }),
|
|
2002
|
+
__metadata("design:type", Boolean)
|
|
2003
|
+
], CreatemjBizAppsCommonActivityTypeInput.prototype, "IsSystem", void 0);
|
|
2004
|
+
__decorate([
|
|
2005
|
+
Field(() => Boolean, { nullable: true }),
|
|
2006
|
+
__metadata("design:type", Boolean)
|
|
2007
|
+
], CreatemjBizAppsCommonActivityTypeInput.prototype, "IsActive", void 0);
|
|
2008
|
+
__decorate([
|
|
2009
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
2010
|
+
__metadata("design:type", RestoreContextInput)
|
|
2011
|
+
], CreatemjBizAppsCommonActivityTypeInput.prototype, "RestoreContext___", void 0);
|
|
2012
|
+
CreatemjBizAppsCommonActivityTypeInput = __decorate([
|
|
2013
|
+
InputType()
|
|
2014
|
+
], CreatemjBizAppsCommonActivityTypeInput);
|
|
2015
|
+
export { CreatemjBizAppsCommonActivityTypeInput };
|
|
2016
|
+
//****************************************************************************
|
|
2017
|
+
// INPUT TYPE for MJ_BizApps_Common: Activity Types
|
|
2018
|
+
//****************************************************************************
|
|
2019
|
+
let UpdatemjBizAppsCommonActivityTypeInput = class UpdatemjBizAppsCommonActivityTypeInput {
|
|
2020
|
+
};
|
|
2021
|
+
__decorate([
|
|
2022
|
+
Field(),
|
|
2023
|
+
__metadata("design:type", String)
|
|
2024
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "ID", void 0);
|
|
2025
|
+
__decorate([
|
|
2026
|
+
Field({ nullable: true }),
|
|
2027
|
+
__metadata("design:type", String)
|
|
2028
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "Code", void 0);
|
|
2029
|
+
__decorate([
|
|
2030
|
+
Field({ nullable: true }),
|
|
2031
|
+
__metadata("design:type", String)
|
|
2032
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "Name", void 0);
|
|
2033
|
+
__decorate([
|
|
2034
|
+
Field({ nullable: true }),
|
|
2035
|
+
__metadata("design:type", String)
|
|
2036
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "Description", void 0);
|
|
2037
|
+
__decorate([
|
|
2038
|
+
Field({ nullable: true }),
|
|
2039
|
+
__metadata("design:type", String)
|
|
2040
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "ParentID", void 0);
|
|
2041
|
+
__decorate([
|
|
2042
|
+
Field({ nullable: true }),
|
|
2043
|
+
__metadata("design:type", String)
|
|
2044
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "IconClass", void 0);
|
|
2045
|
+
__decorate([
|
|
2046
|
+
Field({ nullable: true }),
|
|
2047
|
+
__metadata("design:type", String)
|
|
2048
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "Color", void 0);
|
|
2049
|
+
__decorate([
|
|
2050
|
+
Field(() => Int, { nullable: true }),
|
|
2051
|
+
__metadata("design:type", Number)
|
|
2052
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "Sequence", void 0);
|
|
2053
|
+
__decorate([
|
|
2054
|
+
Field(() => Boolean, { nullable: true }),
|
|
2055
|
+
__metadata("design:type", Boolean)
|
|
2056
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "IsSystem", void 0);
|
|
2057
|
+
__decorate([
|
|
2058
|
+
Field(() => Boolean, { nullable: true }),
|
|
2059
|
+
__metadata("design:type", Boolean)
|
|
2060
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "IsActive", void 0);
|
|
2061
|
+
__decorate([
|
|
2062
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
2063
|
+
__metadata("design:type", Array)
|
|
2064
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "OldValues___", void 0);
|
|
2065
|
+
__decorate([
|
|
2066
|
+
Field(() => RestoreContextInput, { nullable: true }),
|
|
2067
|
+
__metadata("design:type", RestoreContextInput)
|
|
2068
|
+
], UpdatemjBizAppsCommonActivityTypeInput.prototype, "RestoreContext___", void 0);
|
|
2069
|
+
UpdatemjBizAppsCommonActivityTypeInput = __decorate([
|
|
2070
|
+
InputType()
|
|
2071
|
+
], UpdatemjBizAppsCommonActivityTypeInput);
|
|
2072
|
+
export { UpdatemjBizAppsCommonActivityTypeInput };
|
|
2073
|
+
//****************************************************************************
|
|
2074
|
+
// RESOLVER for MJ_BizApps_Common: Activity Types
|
|
2075
|
+
//****************************************************************************
|
|
2076
|
+
let RunmjBizAppsCommonActivityTypeViewResult = class RunmjBizAppsCommonActivityTypeViewResult {
|
|
2077
|
+
};
|
|
2078
|
+
__decorate([
|
|
2079
|
+
Field(() => [mjBizAppsCommonActivityType_]),
|
|
2080
|
+
__metadata("design:type", Array)
|
|
2081
|
+
], RunmjBizAppsCommonActivityTypeViewResult.prototype, "Results", void 0);
|
|
2082
|
+
__decorate([
|
|
2083
|
+
Field(() => String, { nullable: true }),
|
|
2084
|
+
__metadata("design:type", String)
|
|
2085
|
+
], RunmjBizAppsCommonActivityTypeViewResult.prototype, "UserViewRunID", void 0);
|
|
2086
|
+
__decorate([
|
|
2087
|
+
Field(() => Int, { nullable: true }),
|
|
2088
|
+
__metadata("design:type", Number)
|
|
2089
|
+
], RunmjBizAppsCommonActivityTypeViewResult.prototype, "RowCount", void 0);
|
|
2090
|
+
__decorate([
|
|
2091
|
+
Field(() => Int, { nullable: true }),
|
|
2092
|
+
__metadata("design:type", Number)
|
|
2093
|
+
], RunmjBizAppsCommonActivityTypeViewResult.prototype, "TotalRowCount", void 0);
|
|
2094
|
+
__decorate([
|
|
2095
|
+
Field(() => Int, { nullable: true }),
|
|
2096
|
+
__metadata("design:type", Number)
|
|
2097
|
+
], RunmjBizAppsCommonActivityTypeViewResult.prototype, "ExecutionTime", void 0);
|
|
2098
|
+
__decorate([
|
|
2099
|
+
Field({ nullable: true }),
|
|
2100
|
+
__metadata("design:type", String)
|
|
2101
|
+
], RunmjBizAppsCommonActivityTypeViewResult.prototype, "ErrorMessage", void 0);
|
|
2102
|
+
__decorate([
|
|
2103
|
+
Field(() => Boolean, { nullable: false }),
|
|
2104
|
+
__metadata("design:type", Boolean)
|
|
2105
|
+
], RunmjBizAppsCommonActivityTypeViewResult.prototype, "Success", void 0);
|
|
2106
|
+
RunmjBizAppsCommonActivityTypeViewResult = __decorate([
|
|
2107
|
+
ObjectType()
|
|
2108
|
+
], RunmjBizAppsCommonActivityTypeViewResult);
|
|
2109
|
+
export { RunmjBizAppsCommonActivityTypeViewResult };
|
|
2110
|
+
let mjBizAppsCommonActivityTypeResolver = class mjBizAppsCommonActivityTypeResolver extends ResolverBase {
|
|
2111
|
+
async RunmjBizAppsCommonActivityTypeViewByID(input, { providers, userPayload }, pubSub) {
|
|
2112
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2113
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
2114
|
+
}
|
|
2115
|
+
async RunmjBizAppsCommonActivityTypeViewByName(input, { providers, userPayload }, pubSub) {
|
|
2116
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2117
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
2118
|
+
}
|
|
2119
|
+
async RunmjBizAppsCommonActivityTypeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
2120
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2121
|
+
input.EntityName = 'MJ_BizApps_Common: Activity Types';
|
|
2122
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
2123
|
+
}
|
|
2124
|
+
async mjBizAppsCommonActivityType(ID, { userPayload, providers }, pubSub) {
|
|
2125
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activity Types', userPayload);
|
|
2126
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2127
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivityTypes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activity Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
2128
|
+
const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
|
|
2129
|
+
const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Common: Activity Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
|
|
2130
|
+
return result;
|
|
2131
|
+
}
|
|
2132
|
+
async mjBizAppsCommonActivities_ActivityTypeIDArray(mjbizappscommonactivitytype_, { userPayload, providers }, pubSub) {
|
|
2133
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activities', userPayload);
|
|
2134
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2135
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivities')} WHERE ${provider.QuoteIdentifier('ActivityTypeID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activities', userPayload, EntityPermissionType.Read, 'AND');
|
|
2136
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappscommonactivitytype_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
2137
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Common: Activities', rows, this.GetUserFromPayload(userPayload));
|
|
2138
|
+
return result;
|
|
2139
|
+
}
|
|
2140
|
+
async mjBizAppsCommonActivitySyncRules_ActivityTypeIDArray(mjbizappscommonactivitytype_, { userPayload, providers }, pubSub) {
|
|
2141
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activity Sync Rules', userPayload);
|
|
2142
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2143
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivitySyncRules')} WHERE ${provider.QuoteIdentifier('ActivityTypeID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activity Sync Rules', userPayload, EntityPermissionType.Read, 'AND');
|
|
2144
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappscommonactivitytype_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
2145
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Common: Activity Sync Rules', rows, this.GetUserFromPayload(userPayload));
|
|
2146
|
+
return result;
|
|
2147
|
+
}
|
|
2148
|
+
async mjBizAppsCommonActivityTypes_ParentIDArray(mjbizappscommonactivitytype_, { userPayload, providers }, pubSub) {
|
|
2149
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activity Types', userPayload);
|
|
2150
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
2151
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivityTypes')} WHERE ${provider.QuoteIdentifier('ParentID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activity Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
2152
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappscommonactivitytype_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
2153
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Common: Activity Types', rows, this.GetUserFromPayload(userPayload));
|
|
2154
|
+
return result;
|
|
2155
|
+
}
|
|
2156
|
+
async CreatemjBizAppsCommonActivityType(input, { providers, userPayload }, pubSub) {
|
|
2157
|
+
const provider = GetReadWriteProvider(providers);
|
|
2158
|
+
return this.CreateRecord('MJ_BizApps_Common: Activity Types', input, provider, userPayload, pubSub);
|
|
2159
|
+
}
|
|
2160
|
+
async UpdatemjBizAppsCommonActivityType(input, { providers, userPayload }, pubSub) {
|
|
2161
|
+
const provider = GetReadWriteProvider(providers);
|
|
2162
|
+
return this.UpdateRecord('MJ_BizApps_Common: Activity Types', input, provider, userPayload, pubSub);
|
|
2163
|
+
}
|
|
2164
|
+
async DeletemjBizAppsCommonActivityType(ID, options, { providers, userPayload }, pubSub) {
|
|
2165
|
+
const provider = GetReadWriteProvider(providers);
|
|
2166
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
2167
|
+
return this.DeleteRecord('MJ_BizApps_Common: Activity Types', key, options, provider, userPayload, pubSub);
|
|
2168
|
+
}
|
|
2169
|
+
};
|
|
2170
|
+
__decorate([
|
|
2171
|
+
Query(() => RunmjBizAppsCommonActivityTypeViewResult),
|
|
2172
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
2173
|
+
__param(1, Ctx()),
|
|
2174
|
+
__param(2, PubSub()),
|
|
2175
|
+
__metadata("design:type", Function),
|
|
2176
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
2177
|
+
__metadata("design:returntype", Promise)
|
|
2178
|
+
], mjBizAppsCommonActivityTypeResolver.prototype, "RunmjBizAppsCommonActivityTypeViewByID", null);
|
|
2179
|
+
__decorate([
|
|
2180
|
+
Query(() => RunmjBizAppsCommonActivityTypeViewResult),
|
|
2181
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
2182
|
+
__param(1, Ctx()),
|
|
2183
|
+
__param(2, PubSub()),
|
|
2184
|
+
__metadata("design:type", Function),
|
|
2185
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
2186
|
+
__metadata("design:returntype", Promise)
|
|
2187
|
+
], mjBizAppsCommonActivityTypeResolver.prototype, "RunmjBizAppsCommonActivityTypeViewByName", null);
|
|
2188
|
+
__decorate([
|
|
2189
|
+
Query(() => RunmjBizAppsCommonActivityTypeViewResult),
|
|
2190
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
2191
|
+
__param(1, Ctx()),
|
|
2192
|
+
__param(2, PubSub()),
|
|
2193
|
+
__metadata("design:type", Function),
|
|
2194
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
2195
|
+
__metadata("design:returntype", Promise)
|
|
2196
|
+
], mjBizAppsCommonActivityTypeResolver.prototype, "RunmjBizAppsCommonActivityTypeDynamicView", null);
|
|
2197
|
+
__decorate([
|
|
2198
|
+
Query(() => mjBizAppsCommonActivityType_, { nullable: true }),
|
|
2199
|
+
__param(0, Arg('ID', () => String)),
|
|
2200
|
+
__param(1, Ctx()),
|
|
2201
|
+
__param(2, PubSub()),
|
|
2202
|
+
__metadata("design:type", Function),
|
|
2203
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
2204
|
+
__metadata("design:returntype", Promise)
|
|
2205
|
+
], mjBizAppsCommonActivityTypeResolver.prototype, "mjBizAppsCommonActivityType", null);
|
|
2206
|
+
__decorate([
|
|
2207
|
+
FieldResolver(() => [mjBizAppsCommonActivity_]),
|
|
2208
|
+
__param(0, Root()),
|
|
2209
|
+
__param(1, Ctx()),
|
|
2210
|
+
__param(2, PubSub()),
|
|
2211
|
+
__metadata("design:type", Function),
|
|
2212
|
+
__metadata("design:paramtypes", [mjBizAppsCommonActivityType_, Object, PubSubEngine]),
|
|
2213
|
+
__metadata("design:returntype", Promise)
|
|
2214
|
+
], mjBizAppsCommonActivityTypeResolver.prototype, "mjBizAppsCommonActivities_ActivityTypeIDArray", null);
|
|
2215
|
+
__decorate([
|
|
2216
|
+
FieldResolver(() => [mjBizAppsCommonActivitySyncRule_]),
|
|
2217
|
+
__param(0, Root()),
|
|
2218
|
+
__param(1, Ctx()),
|
|
2219
|
+
__param(2, PubSub()),
|
|
2220
|
+
__metadata("design:type", Function),
|
|
2221
|
+
__metadata("design:paramtypes", [mjBizAppsCommonActivityType_, Object, PubSubEngine]),
|
|
2222
|
+
__metadata("design:returntype", Promise)
|
|
2223
|
+
], mjBizAppsCommonActivityTypeResolver.prototype, "mjBizAppsCommonActivitySyncRules_ActivityTypeIDArray", null);
|
|
2224
|
+
__decorate([
|
|
2225
|
+
FieldResolver(() => [mjBizAppsCommonActivityType_]),
|
|
2226
|
+
__param(0, Root()),
|
|
2227
|
+
__param(1, Ctx()),
|
|
2228
|
+
__param(2, PubSub()),
|
|
2229
|
+
__metadata("design:type", Function),
|
|
2230
|
+
__metadata("design:paramtypes", [mjBizAppsCommonActivityType_, Object, PubSubEngine]),
|
|
2231
|
+
__metadata("design:returntype", Promise)
|
|
2232
|
+
], mjBizAppsCommonActivityTypeResolver.prototype, "mjBizAppsCommonActivityTypes_ParentIDArray", null);
|
|
2233
|
+
__decorate([
|
|
2234
|
+
Mutation(() => mjBizAppsCommonActivityType_),
|
|
2235
|
+
__param(0, Arg('input', () => CreatemjBizAppsCommonActivityTypeInput)),
|
|
2236
|
+
__param(1, Ctx()),
|
|
2237
|
+
__param(2, PubSub()),
|
|
2238
|
+
__metadata("design:type", Function),
|
|
2239
|
+
__metadata("design:paramtypes", [CreatemjBizAppsCommonActivityTypeInput, Object, PubSubEngine]),
|
|
2240
|
+
__metadata("design:returntype", Promise)
|
|
2241
|
+
], mjBizAppsCommonActivityTypeResolver.prototype, "CreatemjBizAppsCommonActivityType", null);
|
|
2242
|
+
__decorate([
|
|
2243
|
+
Mutation(() => mjBizAppsCommonActivityType_),
|
|
2244
|
+
__param(0, Arg('input', () => UpdatemjBizAppsCommonActivityTypeInput)),
|
|
2245
|
+
__param(1, Ctx()),
|
|
2246
|
+
__param(2, PubSub()),
|
|
2247
|
+
__metadata("design:type", Function),
|
|
2248
|
+
__metadata("design:paramtypes", [UpdatemjBizAppsCommonActivityTypeInput, Object, PubSubEngine]),
|
|
2249
|
+
__metadata("design:returntype", Promise)
|
|
2250
|
+
], mjBizAppsCommonActivityTypeResolver.prototype, "UpdatemjBizAppsCommonActivityType", null);
|
|
2251
|
+
__decorate([
|
|
2252
|
+
Mutation(() => mjBizAppsCommonActivityType_),
|
|
2253
|
+
__param(0, Arg('ID', () => String)),
|
|
2254
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
2255
|
+
__param(2, Ctx()),
|
|
2256
|
+
__param(3, PubSub()),
|
|
2257
|
+
__metadata("design:type", Function),
|
|
2258
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
2259
|
+
__metadata("design:returntype", Promise)
|
|
2260
|
+
], mjBizAppsCommonActivityTypeResolver.prototype, "DeletemjBizAppsCommonActivityType", null);
|
|
2261
|
+
mjBizAppsCommonActivityTypeResolver = __decorate([
|
|
2262
|
+
Resolver(mjBizAppsCommonActivityType_)
|
|
2263
|
+
], mjBizAppsCommonActivityTypeResolver);
|
|
2264
|
+
export { mjBizAppsCommonActivityTypeResolver };
|
|
2265
|
+
//****************************************************************************
|
|
26
2266
|
// ENTITY CLASS for MJ_BizApps_Common: Address Links
|
|
27
2267
|
//****************************************************************************
|
|
28
2268
|
let mjBizAppsCommonAddressLink_ = class mjBizAppsCommonAddressLink_ {
|
|
@@ -663,6 +2903,10 @@ __decorate([
|
|
|
663
2903
|
Field(() => [mjBizAppsCommonAddressLink_]),
|
|
664
2904
|
__metadata("design:type", Array)
|
|
665
2905
|
], mjBizAppsCommonAddress_.prototype, "mjBizAppsCommonAddressLinks_AddressIDArray", void 0);
|
|
2906
|
+
__decorate([
|
|
2907
|
+
Field(() => [mjBizAppsCommonActivity_]),
|
|
2908
|
+
__metadata("design:type", Array)
|
|
2909
|
+
], mjBizAppsCommonAddress_.prototype, "mjBizAppsCommonActivities_AddressIDArray", void 0);
|
|
666
2910
|
mjBizAppsCommonAddress_ = __decorate([
|
|
667
2911
|
ObjectType({ description: `Standalone physical address records linked to entities via AddressLink for sharing across people and organizations` })
|
|
668
2912
|
], mjBizAppsCommonAddress_);
|
|
@@ -847,6 +3091,14 @@ let mjBizAppsCommonAddressResolver = class mjBizAppsCommonAddressResolver extend
|
|
|
847
3091
|
}
|
|
848
3092
|
// Relationship to MJ_BizApps_Orders: Order Headers not generated: its GraphQL type is not declared in this file.
|
|
849
3093
|
// Relationship to MJ_BizApps_Orders: Event Products not generated: its GraphQL type is not declared in this file.
|
|
3094
|
+
async mjBizAppsCommonActivities_AddressIDArray(mjbizappscommonaddress_, { userPayload, providers }, pubSub) {
|
|
3095
|
+
this.CheckUserReadPermissions('MJ_BizApps_Common: Activities', userPayload);
|
|
3096
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3097
|
+
const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsCommon', 'vwActivities')} WHERE ${provider.QuoteIdentifier('AddressID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Common: Activities', userPayload, EntityPermissionType.Read, 'AND');
|
|
3098
|
+
const rows = await provider.ExecuteSQL(sSQL, [mjbizappscommonaddress_.ID], undefined, this.GetUserFromPayload(userPayload));
|
|
3099
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ_BizApps_Common: Activities', rows, this.GetUserFromPayload(userPayload));
|
|
3100
|
+
return result;
|
|
3101
|
+
}
|
|
850
3102
|
async CreatemjBizAppsCommonAddress(input, { providers, userPayload }, pubSub) {
|
|
851
3103
|
const provider = GetReadWriteProvider(providers);
|
|
852
3104
|
return this.CreateRecord('MJ_BizApps_Common: Addresses', input, provider, userPayload, pubSub);
|
|
@@ -906,6 +3158,15 @@ __decorate([
|
|
|
906
3158
|
__metadata("design:paramtypes", [mjBizAppsCommonAddress_, Object, PubSubEngine]),
|
|
907
3159
|
__metadata("design:returntype", Promise)
|
|
908
3160
|
], mjBizAppsCommonAddressResolver.prototype, "mjBizAppsCommonAddressLinks_AddressIDArray", null);
|
|
3161
|
+
__decorate([
|
|
3162
|
+
FieldResolver(() => [mjBizAppsCommonActivity_]),
|
|
3163
|
+
__param(0, Root()),
|
|
3164
|
+
__param(1, Ctx()),
|
|
3165
|
+
__param(2, PubSub()),
|
|
3166
|
+
__metadata("design:type", Function),
|
|
3167
|
+
__metadata("design:paramtypes", [mjBizAppsCommonAddress_, Object, PubSubEngine]),
|
|
3168
|
+
__metadata("design:returntype", Promise)
|
|
3169
|
+
], mjBizAppsCommonAddressResolver.prototype, "mjBizAppsCommonActivities_AddressIDArray", null);
|
|
909
3170
|
__decorate([
|
|
910
3171
|
Mutation(() => mjBizAppsCommonAddress_),
|
|
911
3172
|
__param(0, Arg('input', () => CreatemjBizAppsCommonAddressInput)),
|
|
@@ -1898,6 +4159,22 @@ __decorate([
|
|
|
1898
4159
|
MaxLength(36),
|
|
1899
4160
|
__metadata("design:type", String)
|
|
1900
4161
|
], mjBizAppsCommonOrganization_.prototype, "RootParentID", void 0);
|
|
4162
|
+
__decorate([
|
|
4163
|
+
Field(() => Int, { nullable: true }),
|
|
4164
|
+
__metadata("design:type", Number)
|
|
4165
|
+
], mjBizAppsCommonOrganization_.prototype, "ParentIDDepth", void 0);
|
|
4166
|
+
__decorate([
|
|
4167
|
+
Field({ nullable: true }),
|
|
4168
|
+
__metadata("design:type", String)
|
|
4169
|
+
], mjBizAppsCommonOrganization_.prototype, "ParentIDPath", void 0);
|
|
4170
|
+
__decorate([
|
|
4171
|
+
Field(() => Boolean, { nullable: true }),
|
|
4172
|
+
__metadata("design:type", Boolean)
|
|
4173
|
+
], mjBizAppsCommonOrganization_.prototype, "ParentIDIsLeaf", void 0);
|
|
4174
|
+
__decorate([
|
|
4175
|
+
Field(() => Int, { nullable: true }),
|
|
4176
|
+
__metadata("design:type", Number)
|
|
4177
|
+
], mjBizAppsCommonOrganization_.prototype, "ParentIDChildCount", void 0);
|
|
1901
4178
|
__decorate([
|
|
1902
4179
|
Field({ nullable: true }),
|
|
1903
4180
|
MaxLength(255),
|
|
@@ -2764,8 +5041,11 @@ let mjBizAppsCommonPersonResolver = class mjBizAppsCommonPersonResolver extends
|
|
|
2764
5041
|
// Relationship to MJ_BizApps_Tasks: Task Assignments not generated: its GraphQL type is not declared in this file.
|
|
2765
5042
|
// Relationship to MJ_BizApps_Tasks: Task Activities not generated: its GraphQL type is not declared in this file.
|
|
2766
5043
|
// Relationship to MJ_BizApps_Tasks: Tasks not generated: its GraphQL type is not declared in this file.
|
|
5044
|
+
// Relationship to MJ_BizApps_Issues: Issue Comments not generated: its GraphQL type is not declared in this file.
|
|
2767
5045
|
// Relationship to MJ_BizApps_Tasks: Task Decisions not generated: its GraphQL type is not declared in this file.
|
|
5046
|
+
// Relationship to MJ_BizApps_Issues: Issues not generated: its GraphQL type is not declared in this file.
|
|
2768
5047
|
// Relationship to MJ_BizApps_Orders: Customer Tax Exemptions not generated: its GraphQL type is not declared in this file.
|
|
5048
|
+
// Relationship to MJ_BizApps_Issues: Issues not generated: its GraphQL type is not declared in this file.
|
|
2769
5049
|
// Relationship to MJ_BizApps_Orders: Stored Value Accounts not generated: its GraphQL type is not declared in this file.
|
|
2770
5050
|
// Relationship to MJ_BizApps_Orders: Order Lines not generated: its GraphQL type is not declared in this file.
|
|
2771
5051
|
// Relationship to MJ_BizApps_Orders: Payment Headers not generated: its GraphQL type is not declared in this file.
|
|
@@ -2777,6 +5057,7 @@ let mjBizAppsCommonPersonResolver = class mjBizAppsCommonPersonResolver extends
|
|
|
2777
5057
|
// Relationship to MJ_BizApps_Orders: Payment Intents not generated: its GraphQL type is not declared in this file.
|
|
2778
5058
|
// Relationship to MJ_BizApps_Orders: Customer Payment Methods not generated: its GraphQL type is not declared in this file.
|
|
2779
5059
|
// Relationship to MJ_BizApps_Orders: Entitlement Grants not generated: its GraphQL type is not declared in this file.
|
|
5060
|
+
// Relationship to MJ_BizApps_Orders: Event Order Lines not generated: its GraphQL type is not declared in this file.
|
|
2780
5061
|
async CreatemjBizAppsCommonPerson(input, { providers, userPayload }, pubSub) {
|
|
2781
5062
|
const provider = GetReadWriteProvider(providers);
|
|
2782
5063
|
return this.CreateRecord('MJ_BizApps_Common: People', input, provider, userPayload, pubSub);
|