@mj-biz-apps/contracts-server 0.5.0 → 0.7.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.
@@ -1,1970 +1,7 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- var __param = (this && this.__param) || function (paramIndex, decorator) {
11
- return function (target, key) { decorator(target, key, paramIndex); }
12
- };
13
1
  /********************************************************************************
14
- * ALL ENTITIES - TypeGraphQL Type Class Definition - AUTO GENERATED FILE
15
- * Generated Entities and Resolvers for Server
16
- *
17
- * >>> DO NOT MODIFY THIS FILE!!!!!!!!!!!!
18
- * >>> YOUR CHANGES WILL BE OVERWRITTEN
19
- * >>> THE NEXT TIME THIS FILE IS GENERATED
2
+ * GraphQL server barrel — AUTO GENERATED. Do not edit.
3
+ * Re-exports one file per schema.
20
4
  *
21
5
  **********************************************************************************/
22
- import { Arg, Ctx, Int, Query, Resolver, Field, Float, ObjectType, InputType, Mutation, PubSub, PubSubEngine, ResolverBase, RunViewByIDInput, RunViewByNameInput, RunDynamicViewInput, KeyValuePairInput, DeleteOptionsInput, GetReadOnlyProvider, GetReadWriteProvider, RestoreContextInput } from '@memberjunction/server';
23
- import { EntityPermissionType, CompositeKey } from '@memberjunction/core';
24
- import { MaxLength } from 'class-validator';
25
- //****************************************************************************
26
- // ENTITY CLASS for MJ_BizApps_Contracts: Contract Template Modifications
27
- //****************************************************************************
28
- let mjBizAppsContractsContractTemplateModification_ = class mjBizAppsContractsContractTemplateModification_ {
29
- };
30
- __decorate([
31
- Field(),
32
- MaxLength(36),
33
- __metadata("design:type", String)
34
- ], mjBizAppsContractsContractTemplateModification_.prototype, "ID", void 0);
35
- __decorate([
36
- Field(),
37
- MaxLength(36),
38
- __metadata("design:type", String)
39
- ], mjBizAppsContractsContractTemplateModification_.prototype, "ContractID", void 0);
40
- __decorate([
41
- Field({ description: `The provision being modified — the structured identifier, and the only one. A server rule enforces what this replaces: the provision must belong to a template this contract incorporates.` }),
42
- MaxLength(36),
43
- __metadata("design:type", String)
44
- ], mjBizAppsContractsContractTemplateModification_.prototype, "ContractTemplateProvisionID", void 0);
45
- __decorate([
46
- Field({ description: `What this contract says INSTEAD of the standard clause. Read as a pair with ContractTemplateProvision.ProvisionText.` }),
47
- __metadata("design:type", String)
48
- ], mjBizAppsContractsContractTemplateModification_.prototype, "ModificationText", void 0);
49
- __decorate([
50
- Field({ nullable: true, description: `Optional working note, e.g. who negotiated it.` }),
51
- __metadata("design:type", String)
52
- ], mjBizAppsContractsContractTemplateModification_.prototype, "Notes", void 0);
53
- __decorate([
54
- Field(),
55
- __metadata("design:type", Date)
56
- ], mjBizAppsContractsContractTemplateModification_.prototype, "_mj__CreatedAt", void 0);
57
- __decorate([
58
- Field(),
59
- __metadata("design:type", Date)
60
- ], mjBizAppsContractsContractTemplateModification_.prototype, "_mj__UpdatedAt", void 0);
61
- __decorate([
62
- Field({ nullable: true }),
63
- MaxLength(50),
64
- __metadata("design:type", String)
65
- ], mjBizAppsContractsContractTemplateModification_.prototype, "Contract", void 0);
66
- __decorate([
67
- Field(),
68
- MaxLength(20),
69
- __metadata("design:type", String)
70
- ], mjBizAppsContractsContractTemplateModification_.prototype, "ContractTemplateProvision", void 0);
71
- mjBizAppsContractsContractTemplateModification_ = __decorate([
72
- ObjectType({ description: `What THIS contract changed about the standard agreement. Deliberately lean: it names a provision and carries what the contract says instead. Carries no ContractTemplateID — the provision belongs to exactly one template in every future, so the template derives through the provision, and a stored copy of a derivation can only agree or lie.` })
73
- ], mjBizAppsContractsContractTemplateModification_);
74
- export { mjBizAppsContractsContractTemplateModification_ };
75
- //****************************************************************************
76
- // INPUT TYPE for MJ_BizApps_Contracts: Contract Template Modifications
77
- //****************************************************************************
78
- let CreatemjBizAppsContractsContractTemplateModificationInput = class CreatemjBizAppsContractsContractTemplateModificationInput {
79
- };
80
- __decorate([
81
- Field({ nullable: true }),
82
- __metadata("design:type", String)
83
- ], CreatemjBizAppsContractsContractTemplateModificationInput.prototype, "ID", void 0);
84
- __decorate([
85
- Field({ nullable: true }),
86
- __metadata("design:type", String)
87
- ], CreatemjBizAppsContractsContractTemplateModificationInput.prototype, "ContractID", void 0);
88
- __decorate([
89
- Field({ nullable: true }),
90
- __metadata("design:type", String)
91
- ], CreatemjBizAppsContractsContractTemplateModificationInput.prototype, "ContractTemplateProvisionID", void 0);
92
- __decorate([
93
- Field({ nullable: true }),
94
- __metadata("design:type", String)
95
- ], CreatemjBizAppsContractsContractTemplateModificationInput.prototype, "ModificationText", void 0);
96
- __decorate([
97
- Field({ nullable: true }),
98
- __metadata("design:type", String)
99
- ], CreatemjBizAppsContractsContractTemplateModificationInput.prototype, "Notes", void 0);
100
- __decorate([
101
- Field(() => RestoreContextInput, { nullable: true }),
102
- __metadata("design:type", RestoreContextInput)
103
- ], CreatemjBizAppsContractsContractTemplateModificationInput.prototype, "RestoreContext___", void 0);
104
- CreatemjBizAppsContractsContractTemplateModificationInput = __decorate([
105
- InputType()
106
- ], CreatemjBizAppsContractsContractTemplateModificationInput);
107
- export { CreatemjBizAppsContractsContractTemplateModificationInput };
108
- //****************************************************************************
109
- // INPUT TYPE for MJ_BizApps_Contracts: Contract Template Modifications
110
- //****************************************************************************
111
- let UpdatemjBizAppsContractsContractTemplateModificationInput = class UpdatemjBizAppsContractsContractTemplateModificationInput {
112
- };
113
- __decorate([
114
- Field(),
115
- __metadata("design:type", String)
116
- ], UpdatemjBizAppsContractsContractTemplateModificationInput.prototype, "ID", void 0);
117
- __decorate([
118
- Field({ nullable: true }),
119
- __metadata("design:type", String)
120
- ], UpdatemjBizAppsContractsContractTemplateModificationInput.prototype, "ContractID", void 0);
121
- __decorate([
122
- Field({ nullable: true }),
123
- __metadata("design:type", String)
124
- ], UpdatemjBizAppsContractsContractTemplateModificationInput.prototype, "ContractTemplateProvisionID", void 0);
125
- __decorate([
126
- Field({ nullable: true }),
127
- __metadata("design:type", String)
128
- ], UpdatemjBizAppsContractsContractTemplateModificationInput.prototype, "ModificationText", void 0);
129
- __decorate([
130
- Field({ nullable: true }),
131
- __metadata("design:type", String)
132
- ], UpdatemjBizAppsContractsContractTemplateModificationInput.prototype, "Notes", void 0);
133
- __decorate([
134
- Field(() => [KeyValuePairInput], { nullable: true }),
135
- __metadata("design:type", Array)
136
- ], UpdatemjBizAppsContractsContractTemplateModificationInput.prototype, "OldValues___", void 0);
137
- __decorate([
138
- Field(() => RestoreContextInput, { nullable: true }),
139
- __metadata("design:type", RestoreContextInput)
140
- ], UpdatemjBizAppsContractsContractTemplateModificationInput.prototype, "RestoreContext___", void 0);
141
- UpdatemjBizAppsContractsContractTemplateModificationInput = __decorate([
142
- InputType()
143
- ], UpdatemjBizAppsContractsContractTemplateModificationInput);
144
- export { UpdatemjBizAppsContractsContractTemplateModificationInput };
145
- //****************************************************************************
146
- // RESOLVER for MJ_BizApps_Contracts: Contract Template Modifications
147
- //****************************************************************************
148
- let RunmjBizAppsContractsContractTemplateModificationViewResult = class RunmjBizAppsContractsContractTemplateModificationViewResult {
149
- };
150
- __decorate([
151
- Field(() => [mjBizAppsContractsContractTemplateModification_]),
152
- __metadata("design:type", Array)
153
- ], RunmjBizAppsContractsContractTemplateModificationViewResult.prototype, "Results", void 0);
154
- __decorate([
155
- Field(() => String, { nullable: true }),
156
- __metadata("design:type", String)
157
- ], RunmjBizAppsContractsContractTemplateModificationViewResult.prototype, "UserViewRunID", void 0);
158
- __decorate([
159
- Field(() => Int, { nullable: true }),
160
- __metadata("design:type", Number)
161
- ], RunmjBizAppsContractsContractTemplateModificationViewResult.prototype, "RowCount", void 0);
162
- __decorate([
163
- Field(() => Int, { nullable: true }),
164
- __metadata("design:type", Number)
165
- ], RunmjBizAppsContractsContractTemplateModificationViewResult.prototype, "TotalRowCount", void 0);
166
- __decorate([
167
- Field(() => Int, { nullable: true }),
168
- __metadata("design:type", Number)
169
- ], RunmjBizAppsContractsContractTemplateModificationViewResult.prototype, "ExecutionTime", void 0);
170
- __decorate([
171
- Field({ nullable: true }),
172
- __metadata("design:type", String)
173
- ], RunmjBizAppsContractsContractTemplateModificationViewResult.prototype, "ErrorMessage", void 0);
174
- __decorate([
175
- Field(() => Boolean, { nullable: false }),
176
- __metadata("design:type", Boolean)
177
- ], RunmjBizAppsContractsContractTemplateModificationViewResult.prototype, "Success", void 0);
178
- RunmjBizAppsContractsContractTemplateModificationViewResult = __decorate([
179
- ObjectType()
180
- ], RunmjBizAppsContractsContractTemplateModificationViewResult);
181
- export { RunmjBizAppsContractsContractTemplateModificationViewResult };
182
- let mjBizAppsContractsContractTemplateModificationResolver = class mjBizAppsContractsContractTemplateModificationResolver extends ResolverBase {
183
- async RunmjBizAppsContractsContractTemplateModificationViewByID(input, { providers, userPayload }, pubSub) {
184
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
185
- return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
186
- }
187
- async RunmjBizAppsContractsContractTemplateModificationViewByName(input, { providers, userPayload }, pubSub) {
188
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
189
- return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
190
- }
191
- async RunmjBizAppsContractsContractTemplateModificationDynamicView(input, { providers, userPayload }, pubSub) {
192
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
193
- input.EntityName = 'MJ_BizApps_Contracts: Contract Template Modifications';
194
- return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
195
- }
196
- async mjBizAppsContractsContractTemplateModification(ID, { userPayload, providers }, pubSub) {
197
- this.CheckUserReadPermissions('MJ_BizApps_Contracts: Contract Template Modifications', userPayload);
198
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
199
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsContracts', 'vwContractTemplateModifications')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Contracts: Contract Template Modifications', userPayload, EntityPermissionType.Read, 'AND');
200
- const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
201
- const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Contracts: Contract Template Modifications', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
202
- return result;
203
- }
204
- async CreatemjBizAppsContractsContractTemplateModification(input, { providers, userPayload }, pubSub) {
205
- const provider = GetReadWriteProvider(providers);
206
- return this.CreateRecord('MJ_BizApps_Contracts: Contract Template Modifications', input, provider, userPayload, pubSub);
207
- }
208
- async UpdatemjBizAppsContractsContractTemplateModification(input, { providers, userPayload }, pubSub) {
209
- const provider = GetReadWriteProvider(providers);
210
- return this.UpdateRecord('MJ_BizApps_Contracts: Contract Template Modifications', input, provider, userPayload, pubSub);
211
- }
212
- async DeletemjBizAppsContractsContractTemplateModification(ID, options, { providers, userPayload }, pubSub) {
213
- const provider = GetReadWriteProvider(providers);
214
- const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
215
- return this.DeleteRecord('MJ_BizApps_Contracts: Contract Template Modifications', key, options, provider, userPayload, pubSub);
216
- }
217
- };
218
- __decorate([
219
- Query(() => RunmjBizAppsContractsContractTemplateModificationViewResult),
220
- __param(0, Arg('input', () => RunViewByIDInput)),
221
- __param(1, Ctx()),
222
- __param(2, PubSub()),
223
- __metadata("design:type", Function),
224
- __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
225
- __metadata("design:returntype", Promise)
226
- ], mjBizAppsContractsContractTemplateModificationResolver.prototype, "RunmjBizAppsContractsContractTemplateModificationViewByID", null);
227
- __decorate([
228
- Query(() => RunmjBizAppsContractsContractTemplateModificationViewResult),
229
- __param(0, Arg('input', () => RunViewByNameInput)),
230
- __param(1, Ctx()),
231
- __param(2, PubSub()),
232
- __metadata("design:type", Function),
233
- __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
234
- __metadata("design:returntype", Promise)
235
- ], mjBizAppsContractsContractTemplateModificationResolver.prototype, "RunmjBizAppsContractsContractTemplateModificationViewByName", null);
236
- __decorate([
237
- Query(() => RunmjBizAppsContractsContractTemplateModificationViewResult),
238
- __param(0, Arg('input', () => RunDynamicViewInput)),
239
- __param(1, Ctx()),
240
- __param(2, PubSub()),
241
- __metadata("design:type", Function),
242
- __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
243
- __metadata("design:returntype", Promise)
244
- ], mjBizAppsContractsContractTemplateModificationResolver.prototype, "RunmjBizAppsContractsContractTemplateModificationDynamicView", null);
245
- __decorate([
246
- Query(() => mjBizAppsContractsContractTemplateModification_, { nullable: true }),
247
- __param(0, Arg('ID', () => String)),
248
- __param(1, Ctx()),
249
- __param(2, PubSub()),
250
- __metadata("design:type", Function),
251
- __metadata("design:paramtypes", [String, Object, PubSubEngine]),
252
- __metadata("design:returntype", Promise)
253
- ], mjBizAppsContractsContractTemplateModificationResolver.prototype, "mjBizAppsContractsContractTemplateModification", null);
254
- __decorate([
255
- Mutation(() => mjBizAppsContractsContractTemplateModification_),
256
- __param(0, Arg('input', () => CreatemjBizAppsContractsContractTemplateModificationInput)),
257
- __param(1, Ctx()),
258
- __param(2, PubSub()),
259
- __metadata("design:type", Function),
260
- __metadata("design:paramtypes", [CreatemjBizAppsContractsContractTemplateModificationInput, Object, PubSubEngine]),
261
- __metadata("design:returntype", Promise)
262
- ], mjBizAppsContractsContractTemplateModificationResolver.prototype, "CreatemjBizAppsContractsContractTemplateModification", null);
263
- __decorate([
264
- Mutation(() => mjBizAppsContractsContractTemplateModification_),
265
- __param(0, Arg('input', () => UpdatemjBizAppsContractsContractTemplateModificationInput)),
266
- __param(1, Ctx()),
267
- __param(2, PubSub()),
268
- __metadata("design:type", Function),
269
- __metadata("design:paramtypes", [UpdatemjBizAppsContractsContractTemplateModificationInput, Object, PubSubEngine]),
270
- __metadata("design:returntype", Promise)
271
- ], mjBizAppsContractsContractTemplateModificationResolver.prototype, "UpdatemjBizAppsContractsContractTemplateModification", null);
272
- __decorate([
273
- Mutation(() => mjBizAppsContractsContractTemplateModification_),
274
- __param(0, Arg('ID', () => String)),
275
- __param(1, Arg('options___', () => DeleteOptionsInput)),
276
- __param(2, Ctx()),
277
- __param(3, PubSub()),
278
- __metadata("design:type", Function),
279
- __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
280
- __metadata("design:returntype", Promise)
281
- ], mjBizAppsContractsContractTemplateModificationResolver.prototype, "DeletemjBizAppsContractsContractTemplateModification", null);
282
- mjBizAppsContractsContractTemplateModificationResolver = __decorate([
283
- Resolver(mjBizAppsContractsContractTemplateModification_)
284
- ], mjBizAppsContractsContractTemplateModificationResolver);
285
- export { mjBizAppsContractsContractTemplateModificationResolver };
286
- //****************************************************************************
287
- // ENTITY CLASS for MJ_BizApps_Contracts: Contract Template Provisions
288
- //****************************************************************************
289
- let mjBizAppsContractsContractTemplateProvision_ = class mjBizAppsContractsContractTemplateProvision_ {
290
- };
291
- __decorate([
292
- Field(),
293
- MaxLength(36),
294
- __metadata("design:type", String)
295
- ], mjBizAppsContractsContractTemplateProvision_.prototype, "ID", void 0);
296
- __decorate([
297
- Field(),
298
- MaxLength(36),
299
- __metadata("design:type", String)
300
- ], mjBizAppsContractsContractTemplateProvision_.prototype, "ContractTemplateID", void 0);
301
- __decorate([
302
- Field({ description: `The clause number as the document writes it, e.g. "3.5(b)". Unique within its template.` }),
303
- MaxLength(20),
304
- __metadata("design:type", String)
305
- ], mjBizAppsContractsContractTemplateProvision_.prototype, "ProvisionNumber", void 0);
306
- __decorate([
307
- Field({ description: `The clause heading, e.g. "Limitation of Liability". This plus the number is what a person picks from.` }),
308
- MaxLength(200),
309
- __metadata("design:type", String)
310
- ], mjBizAppsContractsContractTemplateProvision_.prototype, "Title", void 0);
311
- __decorate([
312
- Field({ description: `The STANDARD wording of this clause. Read as a pair with ContractTemplateModification.ModificationText, which holds what a given contract says instead — a dispute needs the comparison, not either half.` }),
313
- __metadata("design:type", String)
314
- ], mjBizAppsContractsContractTemplateProvision_.prototype, "ProvisionText", void 0);
315
- __decorate([
316
- Field({ nullable: true }),
317
- __metadata("design:type", String)
318
- ], mjBizAppsContractsContractTemplateProvision_.prototype, "Description", void 0);
319
- __decorate([
320
- Field({ nullable: true, description: `Collation key derived from ProvisionNumber: every run of digits zero-padded to six places, everything else upper-cased. Makes a plain SQL ORDER BY produce natural order ('1.9' before '1.10'), which ordering by ProvisionNumber cannot. READ-ONLY -- a persisted computed column; nobody should be able to set a sort key. Replaced the hand-maintained Sequence column, which had already collided in the seeded data.` }),
321
- MaxLength(200),
322
- __metadata("design:type", String)
323
- ], mjBizAppsContractsContractTemplateProvision_.prototype, "ProvisionSortKey", void 0);
324
- __decorate([
325
- Field(),
326
- __metadata("design:type", Date)
327
- ], mjBizAppsContractsContractTemplateProvision_.prototype, "_mj__CreatedAt", void 0);
328
- __decorate([
329
- Field(),
330
- __metadata("design:type", Date)
331
- ], mjBizAppsContractsContractTemplateProvision_.prototype, "_mj__UpdatedAt", void 0);
332
- __decorate([
333
- Field(),
334
- MaxLength(200),
335
- __metadata("design:type", String)
336
- ], mjBizAppsContractsContractTemplateProvision_.prototype, "ContractTemplate", void 0);
337
- mjBizAppsContractsContractTemplateProvision_ = __decorate([
338
- ObjectType({ description: `The numbered clause list of a template version, and the home of all standard contract text. Hangs off ContractTemplate rather than standing alone because provision numbering belongs to a VERSION — the moment a new version renumbers, a single global list is wrong.` })
339
- ], mjBizAppsContractsContractTemplateProvision_);
340
- export { mjBizAppsContractsContractTemplateProvision_ };
341
- //****************************************************************************
342
- // INPUT TYPE for MJ_BizApps_Contracts: Contract Template Provisions
343
- //****************************************************************************
344
- let CreatemjBizAppsContractsContractTemplateProvisionInput = class CreatemjBizAppsContractsContractTemplateProvisionInput {
345
- };
346
- __decorate([
347
- Field({ nullable: true }),
348
- __metadata("design:type", String)
349
- ], CreatemjBizAppsContractsContractTemplateProvisionInput.prototype, "ID", void 0);
350
- __decorate([
351
- Field({ nullable: true }),
352
- __metadata("design:type", String)
353
- ], CreatemjBizAppsContractsContractTemplateProvisionInput.prototype, "ContractTemplateID", void 0);
354
- __decorate([
355
- Field({ nullable: true }),
356
- __metadata("design:type", String)
357
- ], CreatemjBizAppsContractsContractTemplateProvisionInput.prototype, "ProvisionNumber", void 0);
358
- __decorate([
359
- Field({ nullable: true }),
360
- __metadata("design:type", String)
361
- ], CreatemjBizAppsContractsContractTemplateProvisionInput.prototype, "Title", void 0);
362
- __decorate([
363
- Field({ nullable: true }),
364
- __metadata("design:type", String)
365
- ], CreatemjBizAppsContractsContractTemplateProvisionInput.prototype, "ProvisionText", void 0);
366
- __decorate([
367
- Field({ nullable: true }),
368
- __metadata("design:type", String)
369
- ], CreatemjBizAppsContractsContractTemplateProvisionInput.prototype, "Description", void 0);
370
- __decorate([
371
- Field(() => RestoreContextInput, { nullable: true }),
372
- __metadata("design:type", RestoreContextInput)
373
- ], CreatemjBizAppsContractsContractTemplateProvisionInput.prototype, "RestoreContext___", void 0);
374
- CreatemjBizAppsContractsContractTemplateProvisionInput = __decorate([
375
- InputType()
376
- ], CreatemjBizAppsContractsContractTemplateProvisionInput);
377
- export { CreatemjBizAppsContractsContractTemplateProvisionInput };
378
- //****************************************************************************
379
- // INPUT TYPE for MJ_BizApps_Contracts: Contract Template Provisions
380
- //****************************************************************************
381
- let UpdatemjBizAppsContractsContractTemplateProvisionInput = class UpdatemjBizAppsContractsContractTemplateProvisionInput {
382
- };
383
- __decorate([
384
- Field(),
385
- __metadata("design:type", String)
386
- ], UpdatemjBizAppsContractsContractTemplateProvisionInput.prototype, "ID", void 0);
387
- __decorate([
388
- Field({ nullable: true }),
389
- __metadata("design:type", String)
390
- ], UpdatemjBizAppsContractsContractTemplateProvisionInput.prototype, "ContractTemplateID", void 0);
391
- __decorate([
392
- Field({ nullable: true }),
393
- __metadata("design:type", String)
394
- ], UpdatemjBizAppsContractsContractTemplateProvisionInput.prototype, "ProvisionNumber", void 0);
395
- __decorate([
396
- Field({ nullable: true }),
397
- __metadata("design:type", String)
398
- ], UpdatemjBizAppsContractsContractTemplateProvisionInput.prototype, "Title", void 0);
399
- __decorate([
400
- Field({ nullable: true }),
401
- __metadata("design:type", String)
402
- ], UpdatemjBizAppsContractsContractTemplateProvisionInput.prototype, "ProvisionText", void 0);
403
- __decorate([
404
- Field({ nullable: true }),
405
- __metadata("design:type", String)
406
- ], UpdatemjBizAppsContractsContractTemplateProvisionInput.prototype, "Description", void 0);
407
- __decorate([
408
- Field(() => [KeyValuePairInput], { nullable: true }),
409
- __metadata("design:type", Array)
410
- ], UpdatemjBizAppsContractsContractTemplateProvisionInput.prototype, "OldValues___", void 0);
411
- __decorate([
412
- Field(() => RestoreContextInput, { nullable: true }),
413
- __metadata("design:type", RestoreContextInput)
414
- ], UpdatemjBizAppsContractsContractTemplateProvisionInput.prototype, "RestoreContext___", void 0);
415
- UpdatemjBizAppsContractsContractTemplateProvisionInput = __decorate([
416
- InputType()
417
- ], UpdatemjBizAppsContractsContractTemplateProvisionInput);
418
- export { UpdatemjBizAppsContractsContractTemplateProvisionInput };
419
- //****************************************************************************
420
- // RESOLVER for MJ_BizApps_Contracts: Contract Template Provisions
421
- //****************************************************************************
422
- let RunmjBizAppsContractsContractTemplateProvisionViewResult = class RunmjBizAppsContractsContractTemplateProvisionViewResult {
423
- };
424
- __decorate([
425
- Field(() => [mjBizAppsContractsContractTemplateProvision_]),
426
- __metadata("design:type", Array)
427
- ], RunmjBizAppsContractsContractTemplateProvisionViewResult.prototype, "Results", void 0);
428
- __decorate([
429
- Field(() => String, { nullable: true }),
430
- __metadata("design:type", String)
431
- ], RunmjBizAppsContractsContractTemplateProvisionViewResult.prototype, "UserViewRunID", void 0);
432
- __decorate([
433
- Field(() => Int, { nullable: true }),
434
- __metadata("design:type", Number)
435
- ], RunmjBizAppsContractsContractTemplateProvisionViewResult.prototype, "RowCount", void 0);
436
- __decorate([
437
- Field(() => Int, { nullable: true }),
438
- __metadata("design:type", Number)
439
- ], RunmjBizAppsContractsContractTemplateProvisionViewResult.prototype, "TotalRowCount", void 0);
440
- __decorate([
441
- Field(() => Int, { nullable: true }),
442
- __metadata("design:type", Number)
443
- ], RunmjBizAppsContractsContractTemplateProvisionViewResult.prototype, "ExecutionTime", void 0);
444
- __decorate([
445
- Field({ nullable: true }),
446
- __metadata("design:type", String)
447
- ], RunmjBizAppsContractsContractTemplateProvisionViewResult.prototype, "ErrorMessage", void 0);
448
- __decorate([
449
- Field(() => Boolean, { nullable: false }),
450
- __metadata("design:type", Boolean)
451
- ], RunmjBizAppsContractsContractTemplateProvisionViewResult.prototype, "Success", void 0);
452
- RunmjBizAppsContractsContractTemplateProvisionViewResult = __decorate([
453
- ObjectType()
454
- ], RunmjBizAppsContractsContractTemplateProvisionViewResult);
455
- export { RunmjBizAppsContractsContractTemplateProvisionViewResult };
456
- let mjBizAppsContractsContractTemplateProvisionResolver = class mjBizAppsContractsContractTemplateProvisionResolver extends ResolverBase {
457
- async RunmjBizAppsContractsContractTemplateProvisionViewByID(input, { providers, userPayload }, pubSub) {
458
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
459
- return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
460
- }
461
- async RunmjBizAppsContractsContractTemplateProvisionViewByName(input, { providers, userPayload }, pubSub) {
462
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
463
- return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
464
- }
465
- async RunmjBizAppsContractsContractTemplateProvisionDynamicView(input, { providers, userPayload }, pubSub) {
466
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
467
- input.EntityName = 'MJ_BizApps_Contracts: Contract Template Provisions';
468
- return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
469
- }
470
- async mjBizAppsContractsContractTemplateProvision(ID, { userPayload, providers }, pubSub) {
471
- this.CheckUserReadPermissions('MJ_BizApps_Contracts: Contract Template Provisions', userPayload);
472
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
473
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsContracts', 'vwContractTemplateProvisions')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Contracts: Contract Template Provisions', userPayload, EntityPermissionType.Read, 'AND');
474
- const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
475
- const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Contracts: Contract Template Provisions', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
476
- return result;
477
- }
478
- async CreatemjBizAppsContractsContractTemplateProvision(input, { providers, userPayload }, pubSub) {
479
- const provider = GetReadWriteProvider(providers);
480
- return this.CreateRecord('MJ_BizApps_Contracts: Contract Template Provisions', input, provider, userPayload, pubSub);
481
- }
482
- async UpdatemjBizAppsContractsContractTemplateProvision(input, { providers, userPayload }, pubSub) {
483
- const provider = GetReadWriteProvider(providers);
484
- return this.UpdateRecord('MJ_BizApps_Contracts: Contract Template Provisions', input, provider, userPayload, pubSub);
485
- }
486
- async DeletemjBizAppsContractsContractTemplateProvision(ID, options, { providers, userPayload }, pubSub) {
487
- const provider = GetReadWriteProvider(providers);
488
- const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
489
- return this.DeleteRecord('MJ_BizApps_Contracts: Contract Template Provisions', key, options, provider, userPayload, pubSub);
490
- }
491
- };
492
- __decorate([
493
- Query(() => RunmjBizAppsContractsContractTemplateProvisionViewResult),
494
- __param(0, Arg('input', () => RunViewByIDInput)),
495
- __param(1, Ctx()),
496
- __param(2, PubSub()),
497
- __metadata("design:type", Function),
498
- __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
499
- __metadata("design:returntype", Promise)
500
- ], mjBizAppsContractsContractTemplateProvisionResolver.prototype, "RunmjBizAppsContractsContractTemplateProvisionViewByID", null);
501
- __decorate([
502
- Query(() => RunmjBizAppsContractsContractTemplateProvisionViewResult),
503
- __param(0, Arg('input', () => RunViewByNameInput)),
504
- __param(1, Ctx()),
505
- __param(2, PubSub()),
506
- __metadata("design:type", Function),
507
- __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
508
- __metadata("design:returntype", Promise)
509
- ], mjBizAppsContractsContractTemplateProvisionResolver.prototype, "RunmjBizAppsContractsContractTemplateProvisionViewByName", null);
510
- __decorate([
511
- Query(() => RunmjBizAppsContractsContractTemplateProvisionViewResult),
512
- __param(0, Arg('input', () => RunDynamicViewInput)),
513
- __param(1, Ctx()),
514
- __param(2, PubSub()),
515
- __metadata("design:type", Function),
516
- __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
517
- __metadata("design:returntype", Promise)
518
- ], mjBizAppsContractsContractTemplateProvisionResolver.prototype, "RunmjBizAppsContractsContractTemplateProvisionDynamicView", null);
519
- __decorate([
520
- Query(() => mjBizAppsContractsContractTemplateProvision_, { nullable: true }),
521
- __param(0, Arg('ID', () => String)),
522
- __param(1, Ctx()),
523
- __param(2, PubSub()),
524
- __metadata("design:type", Function),
525
- __metadata("design:paramtypes", [String, Object, PubSubEngine]),
526
- __metadata("design:returntype", Promise)
527
- ], mjBizAppsContractsContractTemplateProvisionResolver.prototype, "mjBizAppsContractsContractTemplateProvision", null);
528
- __decorate([
529
- Mutation(() => mjBizAppsContractsContractTemplateProvision_),
530
- __param(0, Arg('input', () => CreatemjBizAppsContractsContractTemplateProvisionInput)),
531
- __param(1, Ctx()),
532
- __param(2, PubSub()),
533
- __metadata("design:type", Function),
534
- __metadata("design:paramtypes", [CreatemjBizAppsContractsContractTemplateProvisionInput, Object, PubSubEngine]),
535
- __metadata("design:returntype", Promise)
536
- ], mjBizAppsContractsContractTemplateProvisionResolver.prototype, "CreatemjBizAppsContractsContractTemplateProvision", null);
537
- __decorate([
538
- Mutation(() => mjBizAppsContractsContractTemplateProvision_),
539
- __param(0, Arg('input', () => UpdatemjBizAppsContractsContractTemplateProvisionInput)),
540
- __param(1, Ctx()),
541
- __param(2, PubSub()),
542
- __metadata("design:type", Function),
543
- __metadata("design:paramtypes", [UpdatemjBizAppsContractsContractTemplateProvisionInput, Object, PubSubEngine]),
544
- __metadata("design:returntype", Promise)
545
- ], mjBizAppsContractsContractTemplateProvisionResolver.prototype, "UpdatemjBizAppsContractsContractTemplateProvision", null);
546
- __decorate([
547
- Mutation(() => mjBizAppsContractsContractTemplateProvision_),
548
- __param(0, Arg('ID', () => String)),
549
- __param(1, Arg('options___', () => DeleteOptionsInput)),
550
- __param(2, Ctx()),
551
- __param(3, PubSub()),
552
- __metadata("design:type", Function),
553
- __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
554
- __metadata("design:returntype", Promise)
555
- ], mjBizAppsContractsContractTemplateProvisionResolver.prototype, "DeletemjBizAppsContractsContractTemplateProvision", null);
556
- mjBizAppsContractsContractTemplateProvisionResolver = __decorate([
557
- Resolver(mjBizAppsContractsContractTemplateProvision_)
558
- ], mjBizAppsContractsContractTemplateProvisionResolver);
559
- export { mjBizAppsContractsContractTemplateProvisionResolver };
560
- //****************************************************************************
561
- // ENTITY CLASS for MJ_BizApps_Contracts: Contract Template Types
562
- //****************************************************************************
563
- let mjBizAppsContractsContractTemplateType_ = class mjBizAppsContractsContractTemplateType_ {
564
- };
565
- __decorate([
566
- Field(),
567
- MaxLength(36),
568
- __metadata("design:type", String)
569
- ], mjBizAppsContractsContractTemplateType_.prototype, "ID", void 0);
570
- __decorate([
571
- Field(),
572
- MaxLength(100),
573
- __metadata("design:type", String)
574
- ], mjBizAppsContractsContractTemplateType_.prototype, "Name", void 0);
575
- __decorate([
576
- Field({ nullable: true }),
577
- __metadata("design:type", String)
578
- ], mjBizAppsContractsContractTemplateType_.prototype, "Description", void 0);
579
- __decorate([
580
- Field({ description: `Active | Inactive. Retiring a type hides it from pickers without touching the templates that used it.` }),
581
- MaxLength(10),
582
- __metadata("design:type", String)
583
- ], mjBizAppsContractsContractTemplateType_.prototype, "Status", void 0);
584
- __decorate([
585
- Field(),
586
- __metadata("design:type", Date)
587
- ], mjBizAppsContractsContractTemplateType_.prototype, "_mj__CreatedAt", void 0);
588
- __decorate([
589
- Field(),
590
- __metadata("design:type", Date)
591
- ], mjBizAppsContractsContractTemplateType_.prototype, "_mj__UpdatedAt", void 0);
592
- mjBizAppsContractsContractTemplateType_ = __decorate([
593
- ObjectType({ description: `The kind of standard agreement (Master Agreement, Statement of Work). A lookup TABLE rather than a CHECK because the list is additive at runtime and a business user should be able to add one without a migration. Carries no behaviour.` })
594
- ], mjBizAppsContractsContractTemplateType_);
595
- export { mjBizAppsContractsContractTemplateType_ };
596
- //****************************************************************************
597
- // INPUT TYPE for MJ_BizApps_Contracts: Contract Template Types
598
- //****************************************************************************
599
- let CreatemjBizAppsContractsContractTemplateTypeInput = class CreatemjBizAppsContractsContractTemplateTypeInput {
600
- };
601
- __decorate([
602
- Field({ nullable: true }),
603
- __metadata("design:type", String)
604
- ], CreatemjBizAppsContractsContractTemplateTypeInput.prototype, "ID", void 0);
605
- __decorate([
606
- Field({ nullable: true }),
607
- __metadata("design:type", String)
608
- ], CreatemjBizAppsContractsContractTemplateTypeInput.prototype, "Name", void 0);
609
- __decorate([
610
- Field({ nullable: true }),
611
- __metadata("design:type", String)
612
- ], CreatemjBizAppsContractsContractTemplateTypeInput.prototype, "Description", void 0);
613
- __decorate([
614
- Field({ nullable: true }),
615
- __metadata("design:type", String)
616
- ], CreatemjBizAppsContractsContractTemplateTypeInput.prototype, "Status", void 0);
617
- __decorate([
618
- Field(() => RestoreContextInput, { nullable: true }),
619
- __metadata("design:type", RestoreContextInput)
620
- ], CreatemjBizAppsContractsContractTemplateTypeInput.prototype, "RestoreContext___", void 0);
621
- CreatemjBizAppsContractsContractTemplateTypeInput = __decorate([
622
- InputType()
623
- ], CreatemjBizAppsContractsContractTemplateTypeInput);
624
- export { CreatemjBizAppsContractsContractTemplateTypeInput };
625
- //****************************************************************************
626
- // INPUT TYPE for MJ_BizApps_Contracts: Contract Template Types
627
- //****************************************************************************
628
- let UpdatemjBizAppsContractsContractTemplateTypeInput = class UpdatemjBizAppsContractsContractTemplateTypeInput {
629
- };
630
- __decorate([
631
- Field(),
632
- __metadata("design:type", String)
633
- ], UpdatemjBizAppsContractsContractTemplateTypeInput.prototype, "ID", void 0);
634
- __decorate([
635
- Field({ nullable: true }),
636
- __metadata("design:type", String)
637
- ], UpdatemjBizAppsContractsContractTemplateTypeInput.prototype, "Name", void 0);
638
- __decorate([
639
- Field({ nullable: true }),
640
- __metadata("design:type", String)
641
- ], UpdatemjBizAppsContractsContractTemplateTypeInput.prototype, "Description", void 0);
642
- __decorate([
643
- Field({ nullable: true }),
644
- __metadata("design:type", String)
645
- ], UpdatemjBizAppsContractsContractTemplateTypeInput.prototype, "Status", void 0);
646
- __decorate([
647
- Field(() => [KeyValuePairInput], { nullable: true }),
648
- __metadata("design:type", Array)
649
- ], UpdatemjBizAppsContractsContractTemplateTypeInput.prototype, "OldValues___", void 0);
650
- __decorate([
651
- Field(() => RestoreContextInput, { nullable: true }),
652
- __metadata("design:type", RestoreContextInput)
653
- ], UpdatemjBizAppsContractsContractTemplateTypeInput.prototype, "RestoreContext___", void 0);
654
- UpdatemjBizAppsContractsContractTemplateTypeInput = __decorate([
655
- InputType()
656
- ], UpdatemjBizAppsContractsContractTemplateTypeInput);
657
- export { UpdatemjBizAppsContractsContractTemplateTypeInput };
658
- //****************************************************************************
659
- // RESOLVER for MJ_BizApps_Contracts: Contract Template Types
660
- //****************************************************************************
661
- let RunmjBizAppsContractsContractTemplateTypeViewResult = class RunmjBizAppsContractsContractTemplateTypeViewResult {
662
- };
663
- __decorate([
664
- Field(() => [mjBizAppsContractsContractTemplateType_]),
665
- __metadata("design:type", Array)
666
- ], RunmjBizAppsContractsContractTemplateTypeViewResult.prototype, "Results", void 0);
667
- __decorate([
668
- Field(() => String, { nullable: true }),
669
- __metadata("design:type", String)
670
- ], RunmjBizAppsContractsContractTemplateTypeViewResult.prototype, "UserViewRunID", void 0);
671
- __decorate([
672
- Field(() => Int, { nullable: true }),
673
- __metadata("design:type", Number)
674
- ], RunmjBizAppsContractsContractTemplateTypeViewResult.prototype, "RowCount", void 0);
675
- __decorate([
676
- Field(() => Int, { nullable: true }),
677
- __metadata("design:type", Number)
678
- ], RunmjBizAppsContractsContractTemplateTypeViewResult.prototype, "TotalRowCount", void 0);
679
- __decorate([
680
- Field(() => Int, { nullable: true }),
681
- __metadata("design:type", Number)
682
- ], RunmjBizAppsContractsContractTemplateTypeViewResult.prototype, "ExecutionTime", void 0);
683
- __decorate([
684
- Field({ nullable: true }),
685
- __metadata("design:type", String)
686
- ], RunmjBizAppsContractsContractTemplateTypeViewResult.prototype, "ErrorMessage", void 0);
687
- __decorate([
688
- Field(() => Boolean, { nullable: false }),
689
- __metadata("design:type", Boolean)
690
- ], RunmjBizAppsContractsContractTemplateTypeViewResult.prototype, "Success", void 0);
691
- RunmjBizAppsContractsContractTemplateTypeViewResult = __decorate([
692
- ObjectType()
693
- ], RunmjBizAppsContractsContractTemplateTypeViewResult);
694
- export { RunmjBizAppsContractsContractTemplateTypeViewResult };
695
- let mjBizAppsContractsContractTemplateTypeResolver = class mjBizAppsContractsContractTemplateTypeResolver extends ResolverBase {
696
- async RunmjBizAppsContractsContractTemplateTypeViewByID(input, { providers, userPayload }, pubSub) {
697
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
698
- return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
699
- }
700
- async RunmjBizAppsContractsContractTemplateTypeViewByName(input, { providers, userPayload }, pubSub) {
701
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
702
- return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
703
- }
704
- async RunmjBizAppsContractsContractTemplateTypeDynamicView(input, { providers, userPayload }, pubSub) {
705
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
706
- input.EntityName = 'MJ_BizApps_Contracts: Contract Template Types';
707
- return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
708
- }
709
- async mjBizAppsContractsContractTemplateType(ID, { userPayload, providers }, pubSub) {
710
- this.CheckUserReadPermissions('MJ_BizApps_Contracts: Contract Template Types', userPayload);
711
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
712
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsContracts', 'vwContractTemplateTypes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Contracts: Contract Template Types', userPayload, EntityPermissionType.Read, 'AND');
713
- const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
714
- const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Contracts: Contract Template Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
715
- return result;
716
- }
717
- async CreatemjBizAppsContractsContractTemplateType(input, { providers, userPayload }, pubSub) {
718
- const provider = GetReadWriteProvider(providers);
719
- return this.CreateRecord('MJ_BizApps_Contracts: Contract Template Types', input, provider, userPayload, pubSub);
720
- }
721
- async UpdatemjBizAppsContractsContractTemplateType(input, { providers, userPayload }, pubSub) {
722
- const provider = GetReadWriteProvider(providers);
723
- return this.UpdateRecord('MJ_BizApps_Contracts: Contract Template Types', input, provider, userPayload, pubSub);
724
- }
725
- async DeletemjBizAppsContractsContractTemplateType(ID, options, { providers, userPayload }, pubSub) {
726
- const provider = GetReadWriteProvider(providers);
727
- const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
728
- return this.DeleteRecord('MJ_BizApps_Contracts: Contract Template Types', key, options, provider, userPayload, pubSub);
729
- }
730
- };
731
- __decorate([
732
- Query(() => RunmjBizAppsContractsContractTemplateTypeViewResult),
733
- __param(0, Arg('input', () => RunViewByIDInput)),
734
- __param(1, Ctx()),
735
- __param(2, PubSub()),
736
- __metadata("design:type", Function),
737
- __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
738
- __metadata("design:returntype", Promise)
739
- ], mjBizAppsContractsContractTemplateTypeResolver.prototype, "RunmjBizAppsContractsContractTemplateTypeViewByID", null);
740
- __decorate([
741
- Query(() => RunmjBizAppsContractsContractTemplateTypeViewResult),
742
- __param(0, Arg('input', () => RunViewByNameInput)),
743
- __param(1, Ctx()),
744
- __param(2, PubSub()),
745
- __metadata("design:type", Function),
746
- __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
747
- __metadata("design:returntype", Promise)
748
- ], mjBizAppsContractsContractTemplateTypeResolver.prototype, "RunmjBizAppsContractsContractTemplateTypeViewByName", null);
749
- __decorate([
750
- Query(() => RunmjBizAppsContractsContractTemplateTypeViewResult),
751
- __param(0, Arg('input', () => RunDynamicViewInput)),
752
- __param(1, Ctx()),
753
- __param(2, PubSub()),
754
- __metadata("design:type", Function),
755
- __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
756
- __metadata("design:returntype", Promise)
757
- ], mjBizAppsContractsContractTemplateTypeResolver.prototype, "RunmjBizAppsContractsContractTemplateTypeDynamicView", null);
758
- __decorate([
759
- Query(() => mjBizAppsContractsContractTemplateType_, { nullable: true }),
760
- __param(0, Arg('ID', () => String)),
761
- __param(1, Ctx()),
762
- __param(2, PubSub()),
763
- __metadata("design:type", Function),
764
- __metadata("design:paramtypes", [String, Object, PubSubEngine]),
765
- __metadata("design:returntype", Promise)
766
- ], mjBizAppsContractsContractTemplateTypeResolver.prototype, "mjBizAppsContractsContractTemplateType", null);
767
- __decorate([
768
- Mutation(() => mjBizAppsContractsContractTemplateType_),
769
- __param(0, Arg('input', () => CreatemjBizAppsContractsContractTemplateTypeInput)),
770
- __param(1, Ctx()),
771
- __param(2, PubSub()),
772
- __metadata("design:type", Function),
773
- __metadata("design:paramtypes", [CreatemjBizAppsContractsContractTemplateTypeInput, Object, PubSubEngine]),
774
- __metadata("design:returntype", Promise)
775
- ], mjBizAppsContractsContractTemplateTypeResolver.prototype, "CreatemjBizAppsContractsContractTemplateType", null);
776
- __decorate([
777
- Mutation(() => mjBizAppsContractsContractTemplateType_),
778
- __param(0, Arg('input', () => UpdatemjBizAppsContractsContractTemplateTypeInput)),
779
- __param(1, Ctx()),
780
- __param(2, PubSub()),
781
- __metadata("design:type", Function),
782
- __metadata("design:paramtypes", [UpdatemjBizAppsContractsContractTemplateTypeInput, Object, PubSubEngine]),
783
- __metadata("design:returntype", Promise)
784
- ], mjBizAppsContractsContractTemplateTypeResolver.prototype, "UpdatemjBizAppsContractsContractTemplateType", null);
785
- __decorate([
786
- Mutation(() => mjBizAppsContractsContractTemplateType_),
787
- __param(0, Arg('ID', () => String)),
788
- __param(1, Arg('options___', () => DeleteOptionsInput)),
789
- __param(2, Ctx()),
790
- __param(3, PubSub()),
791
- __metadata("design:type", Function),
792
- __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
793
- __metadata("design:returntype", Promise)
794
- ], mjBizAppsContractsContractTemplateTypeResolver.prototype, "DeletemjBizAppsContractsContractTemplateType", null);
795
- mjBizAppsContractsContractTemplateTypeResolver = __decorate([
796
- Resolver(mjBizAppsContractsContractTemplateType_)
797
- ], mjBizAppsContractsContractTemplateTypeResolver);
798
- export { mjBizAppsContractsContractTemplateTypeResolver };
799
- //****************************************************************************
800
- // ENTITY CLASS for MJ_BizApps_Contracts: Contract Templates
801
- //****************************************************************************
802
- let mjBizAppsContractsContractTemplate_ = class mjBizAppsContractsContractTemplate_ {
803
- };
804
- __decorate([
805
- Field(),
806
- MaxLength(36),
807
- __metadata("design:type", String)
808
- ], mjBizAppsContractsContractTemplate_.prototype, "ID", void 0);
809
- __decorate([
810
- Field(),
811
- MaxLength(200),
812
- __metadata("design:type", String)
813
- ], mjBizAppsContractsContractTemplate_.prototype, "Name", void 0);
814
- __decorate([
815
- Field(),
816
- MaxLength(36),
817
- __metadata("design:type", String)
818
- ], mjBizAppsContractsContractTemplate_.prototype, "ContractTemplateTypeID", void 0);
819
- __decorate([
820
- Field({ nullable: true, description: `The version the document names itself, e.g. "v6". Free text, because it is the documents own label rather than something we derive.` }),
821
- MaxLength(50),
822
- __metadata("design:type", String)
823
- ], mjBizAppsContractsContractTemplate_.prototype, "VersionLabel", void 0);
824
- __decorate([
825
- Field({ nullable: true, description: `When this version started being offered. NOT an effective date: a template becomes effective for a customer when THAT customer signs it, never on a calendar date. Naming it EffectiveDate would invite exactly the wrong query.` }),
826
- __metadata("design:type", Date)
827
- ], mjBizAppsContractsContractTemplate_.prototype, "IntroducedDate", void 0);
828
- __decorate([
829
- Field({ nullable: true, description: `The dated public URL a customer can open to read the standard terms. NULLABLE: reachability is enforceable by nothing (a well-formed dead link passes any format check), and the real rule is "a URL OR an attached file" — the file half attaching through __mj.FileEntityRecordLink, which cannot reference a record that does not exist yet, so on CREATE it is unsatisfiable in principle. A template with neither is INCOMPLETE rather than invalid; the derived IsUsable column on vwContractTemplates is what says so.` }),
830
- MaxLength(1000),
831
- __metadata("design:type", String)
832
- ], mjBizAppsContractsContractTemplate_.prototype, "SourceURL", void 0);
833
- __decorate([
834
- Field({ nullable: true }),
835
- __metadata("design:type", String)
836
- ], mjBizAppsContractsContractTemplate_.prototype, "Description", void 0);
837
- __decorate([
838
- Field({ description: `Publication lifecycle. 'Draft' -- freely editable, provisions may be added, changed and removed, and a contract may not NEWLY reference it. 'Published' -- the provisions are frozen against INSERT, UPDATE and DELETE by trg_ContractTemplateProvision_Immutability, and contracts may reference it. Publishing is ONE-WAY (enforced in ContractTemplateEntity): to change published terms, publish a new version -- that is what VersionLabel exists for. Existing references are never invalidated by this column; only new ones are policed, the same way ContractType.Status works.` }),
839
- MaxLength(20),
840
- __metadata("design:type", String)
841
- ], mjBizAppsContractsContractTemplate_.prototype, "Status", void 0);
842
- __decorate([
843
- Field(),
844
- __metadata("design:type", Date)
845
- ], mjBizAppsContractsContractTemplate_.prototype, "_mj__CreatedAt", void 0);
846
- __decorate([
847
- Field(),
848
- __metadata("design:type", Date)
849
- ], mjBizAppsContractsContractTemplate_.prototype, "_mj__UpdatedAt", void 0);
850
- __decorate([
851
- Field(),
852
- MaxLength(100),
853
- __metadata("design:type", String)
854
- ], mjBizAppsContractsContractTemplate_.prototype, "ContractTemplateType", void 0);
855
- __decorate([
856
- Field(() => Boolean, { nullable: true }),
857
- __metadata("design:type", Boolean)
858
- ], mjBizAppsContractsContractTemplate_.prototype, "IsUsable", void 0);
859
- mjBizAppsContractsContractTemplate_ = __decorate([
860
- ObjectType({ description: `One VERSION of a standard agreement — in practice the Master Agreement. Versions matter because each is published at its own dated URL that never goes away, so a customer stays bound to the text they signed. Carries no prose of its own: every clauses standard wording lives on its ContractTemplateProvision row.` })
861
- ], mjBizAppsContractsContractTemplate_);
862
- export { mjBizAppsContractsContractTemplate_ };
863
- //****************************************************************************
864
- // INPUT TYPE for MJ_BizApps_Contracts: Contract Templates
865
- //****************************************************************************
866
- let CreatemjBizAppsContractsContractTemplateInput = class CreatemjBizAppsContractsContractTemplateInput {
867
- };
868
- __decorate([
869
- Field({ nullable: true }),
870
- __metadata("design:type", String)
871
- ], CreatemjBizAppsContractsContractTemplateInput.prototype, "ID", void 0);
872
- __decorate([
873
- Field({ nullable: true }),
874
- __metadata("design:type", String)
875
- ], CreatemjBizAppsContractsContractTemplateInput.prototype, "Name", void 0);
876
- __decorate([
877
- Field({ nullable: true }),
878
- __metadata("design:type", String)
879
- ], CreatemjBizAppsContractsContractTemplateInput.prototype, "ContractTemplateTypeID", void 0);
880
- __decorate([
881
- Field({ nullable: true }),
882
- __metadata("design:type", String)
883
- ], CreatemjBizAppsContractsContractTemplateInput.prototype, "VersionLabel", void 0);
884
- __decorate([
885
- Field({ nullable: true }),
886
- __metadata("design:type", Date)
887
- ], CreatemjBizAppsContractsContractTemplateInput.prototype, "IntroducedDate", void 0);
888
- __decorate([
889
- Field({ nullable: true }),
890
- __metadata("design:type", String)
891
- ], CreatemjBizAppsContractsContractTemplateInput.prototype, "SourceURL", void 0);
892
- __decorate([
893
- Field({ nullable: true }),
894
- __metadata("design:type", String)
895
- ], CreatemjBizAppsContractsContractTemplateInput.prototype, "Description", void 0);
896
- __decorate([
897
- Field({ nullable: true }),
898
- __metadata("design:type", String)
899
- ], CreatemjBizAppsContractsContractTemplateInput.prototype, "Status", void 0);
900
- __decorate([
901
- Field(() => RestoreContextInput, { nullable: true }),
902
- __metadata("design:type", RestoreContextInput)
903
- ], CreatemjBizAppsContractsContractTemplateInput.prototype, "RestoreContext___", void 0);
904
- CreatemjBizAppsContractsContractTemplateInput = __decorate([
905
- InputType()
906
- ], CreatemjBizAppsContractsContractTemplateInput);
907
- export { CreatemjBizAppsContractsContractTemplateInput };
908
- //****************************************************************************
909
- // INPUT TYPE for MJ_BizApps_Contracts: Contract Templates
910
- //****************************************************************************
911
- let UpdatemjBizAppsContractsContractTemplateInput = class UpdatemjBizAppsContractsContractTemplateInput {
912
- };
913
- __decorate([
914
- Field(),
915
- __metadata("design:type", String)
916
- ], UpdatemjBizAppsContractsContractTemplateInput.prototype, "ID", void 0);
917
- __decorate([
918
- Field({ nullable: true }),
919
- __metadata("design:type", String)
920
- ], UpdatemjBizAppsContractsContractTemplateInput.prototype, "Name", void 0);
921
- __decorate([
922
- Field({ nullable: true }),
923
- __metadata("design:type", String)
924
- ], UpdatemjBizAppsContractsContractTemplateInput.prototype, "ContractTemplateTypeID", void 0);
925
- __decorate([
926
- Field({ nullable: true }),
927
- __metadata("design:type", String)
928
- ], UpdatemjBizAppsContractsContractTemplateInput.prototype, "VersionLabel", void 0);
929
- __decorate([
930
- Field({ nullable: true }),
931
- __metadata("design:type", Date)
932
- ], UpdatemjBizAppsContractsContractTemplateInput.prototype, "IntroducedDate", void 0);
933
- __decorate([
934
- Field({ nullable: true }),
935
- __metadata("design:type", String)
936
- ], UpdatemjBizAppsContractsContractTemplateInput.prototype, "SourceURL", void 0);
937
- __decorate([
938
- Field({ nullable: true }),
939
- __metadata("design:type", String)
940
- ], UpdatemjBizAppsContractsContractTemplateInput.prototype, "Description", void 0);
941
- __decorate([
942
- Field({ nullable: true }),
943
- __metadata("design:type", String)
944
- ], UpdatemjBizAppsContractsContractTemplateInput.prototype, "Status", void 0);
945
- __decorate([
946
- Field(() => [KeyValuePairInput], { nullable: true }),
947
- __metadata("design:type", Array)
948
- ], UpdatemjBizAppsContractsContractTemplateInput.prototype, "OldValues___", void 0);
949
- __decorate([
950
- Field(() => RestoreContextInput, { nullable: true }),
951
- __metadata("design:type", RestoreContextInput)
952
- ], UpdatemjBizAppsContractsContractTemplateInput.prototype, "RestoreContext___", void 0);
953
- UpdatemjBizAppsContractsContractTemplateInput = __decorate([
954
- InputType()
955
- ], UpdatemjBizAppsContractsContractTemplateInput);
956
- export { UpdatemjBizAppsContractsContractTemplateInput };
957
- //****************************************************************************
958
- // RESOLVER for MJ_BizApps_Contracts: Contract Templates
959
- //****************************************************************************
960
- let RunmjBizAppsContractsContractTemplateViewResult = class RunmjBizAppsContractsContractTemplateViewResult {
961
- };
962
- __decorate([
963
- Field(() => [mjBizAppsContractsContractTemplate_]),
964
- __metadata("design:type", Array)
965
- ], RunmjBizAppsContractsContractTemplateViewResult.prototype, "Results", void 0);
966
- __decorate([
967
- Field(() => String, { nullable: true }),
968
- __metadata("design:type", String)
969
- ], RunmjBizAppsContractsContractTemplateViewResult.prototype, "UserViewRunID", void 0);
970
- __decorate([
971
- Field(() => Int, { nullable: true }),
972
- __metadata("design:type", Number)
973
- ], RunmjBizAppsContractsContractTemplateViewResult.prototype, "RowCount", void 0);
974
- __decorate([
975
- Field(() => Int, { nullable: true }),
976
- __metadata("design:type", Number)
977
- ], RunmjBizAppsContractsContractTemplateViewResult.prototype, "TotalRowCount", void 0);
978
- __decorate([
979
- Field(() => Int, { nullable: true }),
980
- __metadata("design:type", Number)
981
- ], RunmjBizAppsContractsContractTemplateViewResult.prototype, "ExecutionTime", void 0);
982
- __decorate([
983
- Field({ nullable: true }),
984
- __metadata("design:type", String)
985
- ], RunmjBizAppsContractsContractTemplateViewResult.prototype, "ErrorMessage", void 0);
986
- __decorate([
987
- Field(() => Boolean, { nullable: false }),
988
- __metadata("design:type", Boolean)
989
- ], RunmjBizAppsContractsContractTemplateViewResult.prototype, "Success", void 0);
990
- RunmjBizAppsContractsContractTemplateViewResult = __decorate([
991
- ObjectType()
992
- ], RunmjBizAppsContractsContractTemplateViewResult);
993
- export { RunmjBizAppsContractsContractTemplateViewResult };
994
- let mjBizAppsContractsContractTemplateResolver = class mjBizAppsContractsContractTemplateResolver extends ResolverBase {
995
- async RunmjBizAppsContractsContractTemplateViewByID(input, { providers, userPayload }, pubSub) {
996
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
997
- return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
998
- }
999
- async RunmjBizAppsContractsContractTemplateViewByName(input, { providers, userPayload }, pubSub) {
1000
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1001
- return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
1002
- }
1003
- async RunmjBizAppsContractsContractTemplateDynamicView(input, { providers, userPayload }, pubSub) {
1004
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1005
- input.EntityName = 'MJ_BizApps_Contracts: Contract Templates';
1006
- return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
1007
- }
1008
- async mjBizAppsContractsContractTemplate(ID, { userPayload, providers }, pubSub) {
1009
- this.CheckUserReadPermissions('MJ_BizApps_Contracts: Contract Templates', userPayload);
1010
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1011
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsContracts', 'vwContractTemplates')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Contracts: Contract Templates', userPayload, EntityPermissionType.Read, 'AND');
1012
- const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
1013
- const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Contracts: Contract Templates', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
1014
- return result;
1015
- }
1016
- async CreatemjBizAppsContractsContractTemplate(input, { providers, userPayload }, pubSub) {
1017
- const provider = GetReadWriteProvider(providers);
1018
- return this.CreateRecord('MJ_BizApps_Contracts: Contract Templates', input, provider, userPayload, pubSub);
1019
- }
1020
- async UpdatemjBizAppsContractsContractTemplate(input, { providers, userPayload }, pubSub) {
1021
- const provider = GetReadWriteProvider(providers);
1022
- return this.UpdateRecord('MJ_BizApps_Contracts: Contract Templates', input, provider, userPayload, pubSub);
1023
- }
1024
- async DeletemjBizAppsContractsContractTemplate(ID, options, { providers, userPayload }, pubSub) {
1025
- const provider = GetReadWriteProvider(providers);
1026
- const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
1027
- return this.DeleteRecord('MJ_BizApps_Contracts: Contract Templates', key, options, provider, userPayload, pubSub);
1028
- }
1029
- };
1030
- __decorate([
1031
- Query(() => RunmjBizAppsContractsContractTemplateViewResult),
1032
- __param(0, Arg('input', () => RunViewByIDInput)),
1033
- __param(1, Ctx()),
1034
- __param(2, PubSub()),
1035
- __metadata("design:type", Function),
1036
- __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
1037
- __metadata("design:returntype", Promise)
1038
- ], mjBizAppsContractsContractTemplateResolver.prototype, "RunmjBizAppsContractsContractTemplateViewByID", null);
1039
- __decorate([
1040
- Query(() => RunmjBizAppsContractsContractTemplateViewResult),
1041
- __param(0, Arg('input', () => RunViewByNameInput)),
1042
- __param(1, Ctx()),
1043
- __param(2, PubSub()),
1044
- __metadata("design:type", Function),
1045
- __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
1046
- __metadata("design:returntype", Promise)
1047
- ], mjBizAppsContractsContractTemplateResolver.prototype, "RunmjBizAppsContractsContractTemplateViewByName", null);
1048
- __decorate([
1049
- Query(() => RunmjBizAppsContractsContractTemplateViewResult),
1050
- __param(0, Arg('input', () => RunDynamicViewInput)),
1051
- __param(1, Ctx()),
1052
- __param(2, PubSub()),
1053
- __metadata("design:type", Function),
1054
- __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
1055
- __metadata("design:returntype", Promise)
1056
- ], mjBizAppsContractsContractTemplateResolver.prototype, "RunmjBizAppsContractsContractTemplateDynamicView", null);
1057
- __decorate([
1058
- Query(() => mjBizAppsContractsContractTemplate_, { nullable: true }),
1059
- __param(0, Arg('ID', () => String)),
1060
- __param(1, Ctx()),
1061
- __param(2, PubSub()),
1062
- __metadata("design:type", Function),
1063
- __metadata("design:paramtypes", [String, Object, PubSubEngine]),
1064
- __metadata("design:returntype", Promise)
1065
- ], mjBizAppsContractsContractTemplateResolver.prototype, "mjBizAppsContractsContractTemplate", null);
1066
- __decorate([
1067
- Mutation(() => mjBizAppsContractsContractTemplate_),
1068
- __param(0, Arg('input', () => CreatemjBizAppsContractsContractTemplateInput)),
1069
- __param(1, Ctx()),
1070
- __param(2, PubSub()),
1071
- __metadata("design:type", Function),
1072
- __metadata("design:paramtypes", [CreatemjBizAppsContractsContractTemplateInput, Object, PubSubEngine]),
1073
- __metadata("design:returntype", Promise)
1074
- ], mjBizAppsContractsContractTemplateResolver.prototype, "CreatemjBizAppsContractsContractTemplate", null);
1075
- __decorate([
1076
- Mutation(() => mjBizAppsContractsContractTemplate_),
1077
- __param(0, Arg('input', () => UpdatemjBizAppsContractsContractTemplateInput)),
1078
- __param(1, Ctx()),
1079
- __param(2, PubSub()),
1080
- __metadata("design:type", Function),
1081
- __metadata("design:paramtypes", [UpdatemjBizAppsContractsContractTemplateInput, Object, PubSubEngine]),
1082
- __metadata("design:returntype", Promise)
1083
- ], mjBizAppsContractsContractTemplateResolver.prototype, "UpdatemjBizAppsContractsContractTemplate", null);
1084
- __decorate([
1085
- Mutation(() => mjBizAppsContractsContractTemplate_),
1086
- __param(0, Arg('ID', () => String)),
1087
- __param(1, Arg('options___', () => DeleteOptionsInput)),
1088
- __param(2, Ctx()),
1089
- __param(3, PubSub()),
1090
- __metadata("design:type", Function),
1091
- __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
1092
- __metadata("design:returntype", Promise)
1093
- ], mjBizAppsContractsContractTemplateResolver.prototype, "DeletemjBizAppsContractsContractTemplate", null);
1094
- mjBizAppsContractsContractTemplateResolver = __decorate([
1095
- Resolver(mjBizAppsContractsContractTemplate_)
1096
- ], mjBizAppsContractsContractTemplateResolver);
1097
- export { mjBizAppsContractsContractTemplateResolver };
1098
- //****************************************************************************
1099
- // ENTITY CLASS for MJ_BizApps_Contracts: Contract Types
1100
- //****************************************************************************
1101
- let mjBizAppsContractsContractType_ = class mjBizAppsContractsContractType_ {
1102
- };
1103
- __decorate([
1104
- Field(),
1105
- MaxLength(36),
1106
- __metadata("design:type", String)
1107
- ], mjBizAppsContractsContractType_.prototype, "ID", void 0);
1108
- __decorate([
1109
- Field(),
1110
- MaxLength(100),
1111
- __metadata("design:type", String)
1112
- ], mjBizAppsContractsContractType_.prototype, "Name", void 0);
1113
- __decorate([
1114
- Field({ nullable: true }),
1115
- __metadata("design:type", String)
1116
- ], mjBizAppsContractsContractType_.prototype, "Description", void 0);
1117
- __decorate([
1118
- Field(() => Boolean, { description: `Whether paper is ever expected for this kind of contract. No for a Payment Link, which has an implied agreement and no signature. This is what stops such a contract asking forever for a document that will never arrive: "awaiting the document" is DERIVED as requires-it AND no-linked-file, never stored and never a status value.` }),
1119
- __metadata("design:type", Boolean)
1120
- ], mjBizAppsContractsContractType_.prototype, "RequiresExecutedDocument", void 0);
1121
- __decorate([
1122
- Field({ description: `Active | Inactive.` }),
1123
- MaxLength(10),
1124
- __metadata("design:type", String)
1125
- ], mjBizAppsContractsContractType_.prototype, "Status", void 0);
1126
- __decorate([
1127
- Field(() => Boolean, { description: `This type of contract may NOT name a ParentContractID -- it is a root agreement. Enforced in ContractEntityServer.ValidateAsync. Mutually exclusive with MustBeChild (CK_ContractType_RootOrChild); both false means no restriction on where in the tree this type may sit, which is the honest default.` }),
1128
- __metadata("design:type", Boolean)
1129
- ], mjBizAppsContractsContractType_.prototype, "MustBeRoot", void 0);
1130
- __decorate([
1131
- Field(() => Boolean, { description: `This type of contract MUST name a ParentContractID -- a Change Order that amends nothing is not a change order, and would never appear in the original agreement's lineage. Enforced in ContractEntityServer.ValidateAsync. Mutually exclusive with MustBeRoot.` }),
1132
- __metadata("design:type", Boolean)
1133
- ], mjBizAppsContractsContractType_.prototype, "MustBeChild", void 0);
1134
- __decorate([
1135
- Field(() => Boolean, { description: `This type of contract must carry its own ContractTemplateID -- the standard terms it incorporates. On the TYPE rather than inferred from the placement flags, because 'where in the tree' and 'does it need its own paper' are different questions and a future type could want any combination.` }),
1136
- __metadata("design:type", Boolean)
1137
- ], mjBizAppsContractsContractType_.prototype, "TemplateRequired", void 0);
1138
- __decorate([
1139
- Field(() => Boolean, { nullable: true, description: `Seeds Contract.AutoRenew when a new contract picks this type. NULL means the type has no opinion and the contract is left alone — which is why this is nullable where the contract's own column is not. Copied once, on an unsaved contract; never consulted afterwards and never enforced.` }),
1140
- __metadata("design:type", Boolean)
1141
- ], mjBizAppsContractsContractType_.prototype, "DefaultAutoRenew", void 0);
1142
- __decorate([
1143
- Field(() => Int, { nullable: true, description: `Seeds Contract.RenewalNoticeDays — the notice WE owe the customer before a renewal price change. NULL means no default. A starting point for whoever reads the paper, not a term of any agreement.` }),
1144
- __metadata("design:type", Number)
1145
- ], mjBizAppsContractsContractType_.prototype, "DefaultRenewalNoticeDays", void 0);
1146
- __decorate([
1147
- Field(() => Int, { nullable: true, description: `Seeds Contract.CancellationWindowDays — the notice the CUSTOMER owes us to cancel. Deliberately a separate default from the renewal notice even where a type sets them equal: one obligation is ours and the other theirs, and a single default would hide that.` }),
1148
- __metadata("design:type", Number)
1149
- ], mjBizAppsContractsContractType_.prototype, "DefaultCancellationWindowDays", void 0);
1150
- __decorate([
1151
- Field(() => Float, { nullable: true, description: `Seeds Contract.AnnualIncreasePercent — the year-over-year uplift this kind of agreement usually carries. NULL means no default. Same precision as the column it seeds, so a legal default can never seed an unsaveable contract.` }),
1152
- __metadata("design:type", Number)
1153
- ], mjBizAppsContractsContractType_.prototype, "DefaultAnnualIncreasePercent", void 0);
1154
- __decorate([
1155
- Field(),
1156
- __metadata("design:type", Date)
1157
- ], mjBizAppsContractsContractType_.prototype, "_mj__CreatedAt", void 0);
1158
- __decorate([
1159
- Field(),
1160
- __metadata("design:type", Date)
1161
- ], mjBizAppsContractsContractType_.prototype, "_mj__UpdatedAt", void 0);
1162
- mjBizAppsContractsContractType_ = __decorate([
1163
- ObjectType({ description: `The kind of paper: Order Form, Statement of Work, Payment Link, Change Order. A lookup TABLE for the same reason as ContractTemplateType.` })
1164
- ], mjBizAppsContractsContractType_);
1165
- export { mjBizAppsContractsContractType_ };
1166
- //****************************************************************************
1167
- // INPUT TYPE for MJ_BizApps_Contracts: Contract Types
1168
- //****************************************************************************
1169
- let CreatemjBizAppsContractsContractTypeInput = class CreatemjBizAppsContractsContractTypeInput {
1170
- };
1171
- __decorate([
1172
- Field({ nullable: true }),
1173
- __metadata("design:type", String)
1174
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "ID", void 0);
1175
- __decorate([
1176
- Field({ nullable: true }),
1177
- __metadata("design:type", String)
1178
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "Name", void 0);
1179
- __decorate([
1180
- Field({ nullable: true }),
1181
- __metadata("design:type", String)
1182
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "Description", void 0);
1183
- __decorate([
1184
- Field(() => Boolean, { nullable: true }),
1185
- __metadata("design:type", Boolean)
1186
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "RequiresExecutedDocument", void 0);
1187
- __decorate([
1188
- Field({ nullable: true }),
1189
- __metadata("design:type", String)
1190
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "Status", void 0);
1191
- __decorate([
1192
- Field(() => Boolean, { nullable: true }),
1193
- __metadata("design:type", Boolean)
1194
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "MustBeRoot", void 0);
1195
- __decorate([
1196
- Field(() => Boolean, { nullable: true }),
1197
- __metadata("design:type", Boolean)
1198
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "MustBeChild", void 0);
1199
- __decorate([
1200
- Field(() => Boolean, { nullable: true }),
1201
- __metadata("design:type", Boolean)
1202
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "TemplateRequired", void 0);
1203
- __decorate([
1204
- Field(() => Boolean, { nullable: true }),
1205
- __metadata("design:type", Boolean)
1206
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "DefaultAutoRenew", void 0);
1207
- __decorate([
1208
- Field(() => Int, { nullable: true }),
1209
- __metadata("design:type", Number)
1210
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "DefaultRenewalNoticeDays", void 0);
1211
- __decorate([
1212
- Field(() => Int, { nullable: true }),
1213
- __metadata("design:type", Number)
1214
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "DefaultCancellationWindowDays", void 0);
1215
- __decorate([
1216
- Field(() => Float, { nullable: true }),
1217
- __metadata("design:type", Number)
1218
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "DefaultAnnualIncreasePercent", void 0);
1219
- __decorate([
1220
- Field(() => RestoreContextInput, { nullable: true }),
1221
- __metadata("design:type", RestoreContextInput)
1222
- ], CreatemjBizAppsContractsContractTypeInput.prototype, "RestoreContext___", void 0);
1223
- CreatemjBizAppsContractsContractTypeInput = __decorate([
1224
- InputType()
1225
- ], CreatemjBizAppsContractsContractTypeInput);
1226
- export { CreatemjBizAppsContractsContractTypeInput };
1227
- //****************************************************************************
1228
- // INPUT TYPE for MJ_BizApps_Contracts: Contract Types
1229
- //****************************************************************************
1230
- let UpdatemjBizAppsContractsContractTypeInput = class UpdatemjBizAppsContractsContractTypeInput {
1231
- };
1232
- __decorate([
1233
- Field(),
1234
- __metadata("design:type", String)
1235
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "ID", void 0);
1236
- __decorate([
1237
- Field({ nullable: true }),
1238
- __metadata("design:type", String)
1239
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "Name", void 0);
1240
- __decorate([
1241
- Field({ nullable: true }),
1242
- __metadata("design:type", String)
1243
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "Description", void 0);
1244
- __decorate([
1245
- Field(() => Boolean, { nullable: true }),
1246
- __metadata("design:type", Boolean)
1247
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "RequiresExecutedDocument", void 0);
1248
- __decorate([
1249
- Field({ nullable: true }),
1250
- __metadata("design:type", String)
1251
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "Status", void 0);
1252
- __decorate([
1253
- Field(() => Boolean, { nullable: true }),
1254
- __metadata("design:type", Boolean)
1255
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "MustBeRoot", void 0);
1256
- __decorate([
1257
- Field(() => Boolean, { nullable: true }),
1258
- __metadata("design:type", Boolean)
1259
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "MustBeChild", void 0);
1260
- __decorate([
1261
- Field(() => Boolean, { nullable: true }),
1262
- __metadata("design:type", Boolean)
1263
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "TemplateRequired", void 0);
1264
- __decorate([
1265
- Field(() => Boolean, { nullable: true }),
1266
- __metadata("design:type", Boolean)
1267
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "DefaultAutoRenew", void 0);
1268
- __decorate([
1269
- Field(() => Int, { nullable: true }),
1270
- __metadata("design:type", Number)
1271
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "DefaultRenewalNoticeDays", void 0);
1272
- __decorate([
1273
- Field(() => Int, { nullable: true }),
1274
- __metadata("design:type", Number)
1275
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "DefaultCancellationWindowDays", void 0);
1276
- __decorate([
1277
- Field(() => Float, { nullable: true }),
1278
- __metadata("design:type", Number)
1279
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "DefaultAnnualIncreasePercent", void 0);
1280
- __decorate([
1281
- Field(() => [KeyValuePairInput], { nullable: true }),
1282
- __metadata("design:type", Array)
1283
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "OldValues___", void 0);
1284
- __decorate([
1285
- Field(() => RestoreContextInput, { nullable: true }),
1286
- __metadata("design:type", RestoreContextInput)
1287
- ], UpdatemjBizAppsContractsContractTypeInput.prototype, "RestoreContext___", void 0);
1288
- UpdatemjBizAppsContractsContractTypeInput = __decorate([
1289
- InputType()
1290
- ], UpdatemjBizAppsContractsContractTypeInput);
1291
- export { UpdatemjBizAppsContractsContractTypeInput };
1292
- //****************************************************************************
1293
- // RESOLVER for MJ_BizApps_Contracts: Contract Types
1294
- //****************************************************************************
1295
- let RunmjBizAppsContractsContractTypeViewResult = class RunmjBizAppsContractsContractTypeViewResult {
1296
- };
1297
- __decorate([
1298
- Field(() => [mjBizAppsContractsContractType_]),
1299
- __metadata("design:type", Array)
1300
- ], RunmjBizAppsContractsContractTypeViewResult.prototype, "Results", void 0);
1301
- __decorate([
1302
- Field(() => String, { nullable: true }),
1303
- __metadata("design:type", String)
1304
- ], RunmjBizAppsContractsContractTypeViewResult.prototype, "UserViewRunID", void 0);
1305
- __decorate([
1306
- Field(() => Int, { nullable: true }),
1307
- __metadata("design:type", Number)
1308
- ], RunmjBizAppsContractsContractTypeViewResult.prototype, "RowCount", void 0);
1309
- __decorate([
1310
- Field(() => Int, { nullable: true }),
1311
- __metadata("design:type", Number)
1312
- ], RunmjBizAppsContractsContractTypeViewResult.prototype, "TotalRowCount", void 0);
1313
- __decorate([
1314
- Field(() => Int, { nullable: true }),
1315
- __metadata("design:type", Number)
1316
- ], RunmjBizAppsContractsContractTypeViewResult.prototype, "ExecutionTime", void 0);
1317
- __decorate([
1318
- Field({ nullable: true }),
1319
- __metadata("design:type", String)
1320
- ], RunmjBizAppsContractsContractTypeViewResult.prototype, "ErrorMessage", void 0);
1321
- __decorate([
1322
- Field(() => Boolean, { nullable: false }),
1323
- __metadata("design:type", Boolean)
1324
- ], RunmjBizAppsContractsContractTypeViewResult.prototype, "Success", void 0);
1325
- RunmjBizAppsContractsContractTypeViewResult = __decorate([
1326
- ObjectType()
1327
- ], RunmjBizAppsContractsContractTypeViewResult);
1328
- export { RunmjBizAppsContractsContractTypeViewResult };
1329
- let mjBizAppsContractsContractTypeResolver = class mjBizAppsContractsContractTypeResolver extends ResolverBase {
1330
- async RunmjBizAppsContractsContractTypeViewByID(input, { providers, userPayload }, pubSub) {
1331
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1332
- return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
1333
- }
1334
- async RunmjBizAppsContractsContractTypeViewByName(input, { providers, userPayload }, pubSub) {
1335
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1336
- return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
1337
- }
1338
- async RunmjBizAppsContractsContractTypeDynamicView(input, { providers, userPayload }, pubSub) {
1339
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1340
- input.EntityName = 'MJ_BizApps_Contracts: Contract Types';
1341
- return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
1342
- }
1343
- async mjBizAppsContractsContractType(ID, { userPayload, providers }, pubSub) {
1344
- this.CheckUserReadPermissions('MJ_BizApps_Contracts: Contract Types', userPayload);
1345
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1346
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsContracts', 'vwContractTypes')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Contracts: Contract Types', userPayload, EntityPermissionType.Read, 'AND');
1347
- const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
1348
- const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Contracts: Contract Types', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
1349
- return result;
1350
- }
1351
- async CreatemjBizAppsContractsContractType(input, { providers, userPayload }, pubSub) {
1352
- const provider = GetReadWriteProvider(providers);
1353
- return this.CreateRecord('MJ_BizApps_Contracts: Contract Types', input, provider, userPayload, pubSub);
1354
- }
1355
- async UpdatemjBizAppsContractsContractType(input, { providers, userPayload }, pubSub) {
1356
- const provider = GetReadWriteProvider(providers);
1357
- return this.UpdateRecord('MJ_BizApps_Contracts: Contract Types', input, provider, userPayload, pubSub);
1358
- }
1359
- async DeletemjBizAppsContractsContractType(ID, options, { providers, userPayload }, pubSub) {
1360
- const provider = GetReadWriteProvider(providers);
1361
- const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
1362
- return this.DeleteRecord('MJ_BizApps_Contracts: Contract Types', key, options, provider, userPayload, pubSub);
1363
- }
1364
- };
1365
- __decorate([
1366
- Query(() => RunmjBizAppsContractsContractTypeViewResult),
1367
- __param(0, Arg('input', () => RunViewByIDInput)),
1368
- __param(1, Ctx()),
1369
- __param(2, PubSub()),
1370
- __metadata("design:type", Function),
1371
- __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
1372
- __metadata("design:returntype", Promise)
1373
- ], mjBizAppsContractsContractTypeResolver.prototype, "RunmjBizAppsContractsContractTypeViewByID", null);
1374
- __decorate([
1375
- Query(() => RunmjBizAppsContractsContractTypeViewResult),
1376
- __param(0, Arg('input', () => RunViewByNameInput)),
1377
- __param(1, Ctx()),
1378
- __param(2, PubSub()),
1379
- __metadata("design:type", Function),
1380
- __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
1381
- __metadata("design:returntype", Promise)
1382
- ], mjBizAppsContractsContractTypeResolver.prototype, "RunmjBizAppsContractsContractTypeViewByName", null);
1383
- __decorate([
1384
- Query(() => RunmjBizAppsContractsContractTypeViewResult),
1385
- __param(0, Arg('input', () => RunDynamicViewInput)),
1386
- __param(1, Ctx()),
1387
- __param(2, PubSub()),
1388
- __metadata("design:type", Function),
1389
- __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
1390
- __metadata("design:returntype", Promise)
1391
- ], mjBizAppsContractsContractTypeResolver.prototype, "RunmjBizAppsContractsContractTypeDynamicView", null);
1392
- __decorate([
1393
- Query(() => mjBizAppsContractsContractType_, { nullable: true }),
1394
- __param(0, Arg('ID', () => String)),
1395
- __param(1, Ctx()),
1396
- __param(2, PubSub()),
1397
- __metadata("design:type", Function),
1398
- __metadata("design:paramtypes", [String, Object, PubSubEngine]),
1399
- __metadata("design:returntype", Promise)
1400
- ], mjBizAppsContractsContractTypeResolver.prototype, "mjBizAppsContractsContractType", null);
1401
- __decorate([
1402
- Mutation(() => mjBizAppsContractsContractType_),
1403
- __param(0, Arg('input', () => CreatemjBizAppsContractsContractTypeInput)),
1404
- __param(1, Ctx()),
1405
- __param(2, PubSub()),
1406
- __metadata("design:type", Function),
1407
- __metadata("design:paramtypes", [CreatemjBizAppsContractsContractTypeInput, Object, PubSubEngine]),
1408
- __metadata("design:returntype", Promise)
1409
- ], mjBizAppsContractsContractTypeResolver.prototype, "CreatemjBizAppsContractsContractType", null);
1410
- __decorate([
1411
- Mutation(() => mjBizAppsContractsContractType_),
1412
- __param(0, Arg('input', () => UpdatemjBizAppsContractsContractTypeInput)),
1413
- __param(1, Ctx()),
1414
- __param(2, PubSub()),
1415
- __metadata("design:type", Function),
1416
- __metadata("design:paramtypes", [UpdatemjBizAppsContractsContractTypeInput, Object, PubSubEngine]),
1417
- __metadata("design:returntype", Promise)
1418
- ], mjBizAppsContractsContractTypeResolver.prototype, "UpdatemjBizAppsContractsContractType", null);
1419
- __decorate([
1420
- Mutation(() => mjBizAppsContractsContractType_),
1421
- __param(0, Arg('ID', () => String)),
1422
- __param(1, Arg('options___', () => DeleteOptionsInput)),
1423
- __param(2, Ctx()),
1424
- __param(3, PubSub()),
1425
- __metadata("design:type", Function),
1426
- __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
1427
- __metadata("design:returntype", Promise)
1428
- ], mjBizAppsContractsContractTypeResolver.prototype, "DeletemjBizAppsContractsContractType", null);
1429
- mjBizAppsContractsContractTypeResolver = __decorate([
1430
- Resolver(mjBizAppsContractsContractType_)
1431
- ], mjBizAppsContractsContractTypeResolver);
1432
- export { mjBizAppsContractsContractTypeResolver };
1433
- //****************************************************************************
1434
- // ENTITY CLASS for MJ_BizApps_Contracts: Contracts
1435
- //****************************************************************************
1436
- let mjBizAppsContractsContract_ = class mjBizAppsContractsContract_ {
1437
- };
1438
- __decorate([
1439
- Field(),
1440
- MaxLength(36),
1441
- __metadata("design:type", String)
1442
- ], mjBizAppsContractsContract_.prototype, "ID", void 0);
1443
- __decorate([
1444
- Field({ nullable: true, description: `CTR-000001, minted by spAssignNextContractNumber from the seq_ContractNumber database SEQUENCE. Unique. NULLABLE at the schema level because MJ cannot express 'NOT NULL, assigned by the server on insert' -- ContractEntityServer.Save() is what guarantees every contract has one. Gaps are normal and are not to be 'fixed': a save that fails after taking a number leaves one behind, and UQ_Contract_ContractNumber is what guarantees no two contracts share a number.` }),
1445
- MaxLength(50),
1446
- __metadata("design:type", String)
1447
- ], mjBizAppsContractsContract_.prototype, "ContractNumber", void 0);
1448
- __decorate([
1449
- Field(),
1450
- MaxLength(36),
1451
- __metadata("design:type", String)
1452
- ], mjBizAppsContractsContract_.prototype, "ContractTypeID", void 0);
1453
- __decorate([
1454
- Field({ description: `The SELLING company (__mj.Company) — which of OUR entities holds this agreement. Not the customer. Stored rather than derived because it is not reliably recoverable from the deal.` }),
1455
- MaxLength(36),
1456
- __metadata("design:type", String)
1457
- ], mjBizAppsContractsContract_.prototype, "CompanyID", void 0);
1458
- __decorate([
1459
- Field({ description: `The customer. NOT NULL: contracts are B2B here by definition, and the individual case lives entirely in orders. v1 allowed an organization-or-person XOR; that is gone.` }),
1460
- MaxLength(36),
1461
- __metadata("design:type", String)
1462
- ], mjBizAppsContractsContract_.prototype, "CustomerOrganizationID", void 0);
1463
- __decorate([
1464
- Field({ nullable: true, description: `Their named contact, optional.` }),
1465
- MaxLength(36),
1466
- __metadata("design:type", String)
1467
- ], mjBizAppsContractsContract_.prototype, "PrimaryContactPersonID", void 0);
1468
- __decorate([
1469
- Field({ nullable: true, description: `The agreement version this contract incorporates. Nullable because a contract created automatically at Closed Won has none until finance reads the PDF.` }),
1470
- MaxLength(36),
1471
- __metadata("design:type", String)
1472
- ], mjBizAppsContractsContract_.prototype, "ContractTemplateID", void 0);
1473
- __decorate([
1474
- Field({ nullable: true, description: `Polymorphic reference part 1: the MJ Entity of the record that CREATED this contract, in practice Deals. A real foreign key to __mj.Entity — this is the half that is enforced, and the half that lets MJ resolve the pair generically. Same pattern accounting uses for JournalEntry provenance.` }),
1475
- MaxLength(36),
1476
- __metadata("design:type", String)
1477
- ], mjBizAppsContractsContract_.prototype, "CreatingEntityID", void 0);
1478
- __decorate([
1479
- Field({ nullable: true, description: `Polymorphic reference part 2: the creating records id. Soft by nature — it points at a record owned by an app this repo has no knowledge of. Set together with CreatingEntityID or not at all.` }),
1480
- MaxLength(450),
1481
- __metadata("design:type", String)
1482
- ], mjBizAppsContractsContract_.prototype, "CreatingRecordID", void 0);
1483
- __decorate([
1484
- Field({ nullable: true, description: `The contract this one amends. How a change order attaches: a change order is signed paper with its own PDF, dates and modifications, so it reuses this entity rather than getting one of its own. The original stays in force.` }),
1485
- MaxLength(36),
1486
- __metadata("design:type", String)
1487
- ], mjBizAppsContractsContract_.prototype, "ParentContractID", void 0);
1488
- __decorate([
1489
- Field({ nullable: true, description: `The contract that REPLACED this one, where an agreement was re-papered rather than amended. Also the sole source of the derived Superseded state, which is why the old CHECK tying it to a Status column disappeared with that column.` }),
1490
- MaxLength(36),
1491
- __metadata("design:type", String)
1492
- ], mjBizAppsContractsContract_.prototype, "SupersededByContractID", void 0);
1493
- __decorate([
1494
- Field({ nullable: true, description: `Direct link to the document in the signing provider (PandaDoc). The fallback that works before any integration exists, and when a storage sync has broken.` }),
1495
- MaxLength(1000),
1496
- __metadata("design:type", String)
1497
- ], mjBizAppsContractsContract_.prototype, "SigningProviderURL", void 0);
1498
- __decorate([
1499
- Field({ nullable: true, description: `When the agreement takes effect.` }),
1500
- __metadata("design:type", Date)
1501
- ], mjBizAppsContractsContract_.prototype, "EffectiveDate", void 0);
1502
- __decorate([
1503
- Field({ nullable: true, description: `When it was signed. May legitimately PRECEDE EffectiveDate — sign in December for a January start is the ordinary case. There is deliberately no constraint ordering the two; v1 had one and it rejected exactly the data a correct contract produces.` }),
1504
- __metadata("design:type", Date)
1505
- ], mjBizAppsContractsContract_.prototype, "ExecutedDate", void 0);
1506
- __decorate([
1507
- Field({ nullable: true, description: `When the current term ends. This is what drives the renewal watchlist and every expiry projection.` }),
1508
- __metadata("design:type", Date)
1509
- ], mjBizAppsContractsContract_.prototype, "EndDate", void 0);
1510
- __decorate([
1511
- Field({ nullable: true, description: `When the agreement ended early. Stored rather than derived: it is only recoverable from a successors effective date, and a contract can end with no successor at all when a customer simply leaves.` }),
1512
- __metadata("design:type", Date)
1513
- ], mjBizAppsContractsContract_.prototype, "TerminatedDate", void 0);
1514
- __decorate([
1515
- Field(() => Boolean, { description: `Whether the agreement auto-renews, AS THE PAPER STATES IT. True or false, no third state. Distinct from the subscriptions operational setting in orders, which someone can change later; when the two disagree that is a finding, not a bug.` }),
1516
- __metadata("design:type", Boolean)
1517
- ], mjBizAppsContractsContract_.prototype, "AutoRenew", void 0);
1518
- __decorate([
1519
- Field(() => Int, { nullable: true, description: `Days of written notice we owe before a renewal price change, as stated in the agreement. NOT the same field as CancellationWindowDays even though many agreements set them equal — conflating them silently is how a notice obligation gets missed.` }),
1520
- __metadata("design:type", Number)
1521
- ], mjBizAppsContractsContract_.prototype, "RenewalNoticeDays", void 0);
1522
- __decorate([
1523
- Field(() => Int, { nullable: true, description: `Days of notice the customer owes to cancel without renewing.` }),
1524
- __metadata("design:type", Number)
1525
- ], mjBizAppsContractsContract_.prototype, "CancellationWindowDays", void 0);
1526
- __decorate([
1527
- Field(() => Float, { nullable: true, description: `The negotiated year-over-year uplift. Exists here because it exists nowhere else: the orders schema has no escalation concept of any kind, which is why a two-year agreement stepping up 10% in year two is recorded in no other system.` }),
1528
- __metadata("design:type", Number)
1529
- ], mjBizAppsContractsContract_.prototype, "AnnualIncreasePercent", void 0);
1530
- __decorate([
1531
- Field(() => Boolean, { description: `Whether the standard agreement was changed for this customer. ASSERTED by a person, not derived — its job is to say "go read the PDF" BEFORE anyone has recorded the modifications, and a derived flag would read false for every contract nobody has processed yet. One direction IS enforced server-side: if modification rows exist this must be true. It is never cleared automatically.` }),
1532
- __metadata("design:type", Boolean)
1533
- ], mjBizAppsContractsContract_.prototype, "HasModifications", void 0);
1534
- __decorate([
1535
- Field({ nullable: true }),
1536
- __metadata("design:type", String)
1537
- ], mjBizAppsContractsContract_.prototype, "Description", void 0);
1538
- __decorate([
1539
- Field({ nullable: true, description: `Free-text working notes for whoever is processing the contract.` }),
1540
- __metadata("design:type", String)
1541
- ], mjBizAppsContractsContract_.prototype, "Notes", void 0);
1542
- __decorate([
1543
- Field(),
1544
- __metadata("design:type", Date)
1545
- ], mjBizAppsContractsContract_.prototype, "_mj__CreatedAt", void 0);
1546
- __decorate([
1547
- Field(),
1548
- __metadata("design:type", Date)
1549
- ], mjBizAppsContractsContract_.prototype, "_mj__UpdatedAt", void 0);
1550
- __decorate([
1551
- Field(),
1552
- MaxLength(100),
1553
- __metadata("design:type", String)
1554
- ], mjBizAppsContractsContract_.prototype, "ContractType", void 0);
1555
- __decorate([
1556
- Field(),
1557
- MaxLength(50),
1558
- __metadata("design:type", String)
1559
- ], mjBizAppsContractsContract_.prototype, "Company", void 0);
1560
- __decorate([
1561
- Field(),
1562
- MaxLength(255),
1563
- __metadata("design:type", String)
1564
- ], mjBizAppsContractsContract_.prototype, "CustomerOrganization", void 0);
1565
- __decorate([
1566
- Field({ nullable: true }),
1567
- MaxLength(100),
1568
- __metadata("design:type", String)
1569
- ], mjBizAppsContractsContract_.prototype, "PrimaryContactPerson", void 0);
1570
- __decorate([
1571
- Field({ nullable: true }),
1572
- MaxLength(200),
1573
- __metadata("design:type", String)
1574
- ], mjBizAppsContractsContract_.prototype, "ContractTemplate", void 0);
1575
- __decorate([
1576
- Field({ nullable: true }),
1577
- MaxLength(255),
1578
- __metadata("design:type", String)
1579
- ], mjBizAppsContractsContract_.prototype, "CreatingEntity", void 0);
1580
- __decorate([
1581
- Field({ nullable: true }),
1582
- MaxLength(50),
1583
- __metadata("design:type", String)
1584
- ], mjBizAppsContractsContract_.prototype, "ParentContract", void 0);
1585
- __decorate([
1586
- Field({ nullable: true }),
1587
- MaxLength(50),
1588
- __metadata("design:type", String)
1589
- ], mjBizAppsContractsContract_.prototype, "SupersededByContract", void 0);
1590
- __decorate([
1591
- Field(),
1592
- MaxLength(10),
1593
- __metadata("design:type", String)
1594
- ], mjBizAppsContractsContract_.prototype, "State", void 0);
1595
- __decorate([
1596
- Field(() => Boolean, { nullable: true }),
1597
- __metadata("design:type", Boolean)
1598
- ], mjBizAppsContractsContract_.prototype, "IsAwaitingDocument", void 0);
1599
- __decorate([
1600
- Field(() => Int, { nullable: true }),
1601
- __metadata("design:type", Number)
1602
- ], mjBizAppsContractsContract_.prototype, "DaysToEnd", void 0);
1603
- __decorate([
1604
- Field({ nullable: true }),
1605
- __metadata("design:type", Date)
1606
- ], mjBizAppsContractsContract_.prototype, "RenewalNoticeDeadline", void 0);
1607
- __decorate([
1608
- Field(() => Boolean, { nullable: true }),
1609
- __metadata("design:type", Boolean)
1610
- ], mjBizAppsContractsContract_.prototype, "IsInCancellationWindow", void 0);
1611
- mjBizAppsContractsContract_ = __decorate([
1612
- ObjectType({ description: `The signed agreement — one row per piece of signed (or implied) paper, and the centre of the app. Carries NO hard reference to a Deal: sales creates contracts, so sales depends on this app and a reference upward would invert the dependency graph. The link is the typed polymorphic pair CreatingEntityID + CreatingRecordID.` })
1613
- ], mjBizAppsContractsContract_);
1614
- export { mjBizAppsContractsContract_ };
1615
- //****************************************************************************
1616
- // INPUT TYPE for MJ_BizApps_Contracts: Contracts
1617
- //****************************************************************************
1618
- let CreatemjBizAppsContractsContractInput = class CreatemjBizAppsContractsContractInput {
1619
- };
1620
- __decorate([
1621
- Field({ nullable: true }),
1622
- __metadata("design:type", String)
1623
- ], CreatemjBizAppsContractsContractInput.prototype, "ID", void 0);
1624
- __decorate([
1625
- Field({ nullable: true }),
1626
- __metadata("design:type", String)
1627
- ], CreatemjBizAppsContractsContractInput.prototype, "ContractNumber", void 0);
1628
- __decorate([
1629
- Field({ nullable: true }),
1630
- __metadata("design:type", String)
1631
- ], CreatemjBizAppsContractsContractInput.prototype, "ContractTypeID", void 0);
1632
- __decorate([
1633
- Field({ nullable: true }),
1634
- __metadata("design:type", String)
1635
- ], CreatemjBizAppsContractsContractInput.prototype, "CompanyID", void 0);
1636
- __decorate([
1637
- Field({ nullable: true }),
1638
- __metadata("design:type", String)
1639
- ], CreatemjBizAppsContractsContractInput.prototype, "CustomerOrganizationID", void 0);
1640
- __decorate([
1641
- Field({ nullable: true }),
1642
- __metadata("design:type", String)
1643
- ], CreatemjBizAppsContractsContractInput.prototype, "PrimaryContactPersonID", void 0);
1644
- __decorate([
1645
- Field({ nullable: true }),
1646
- __metadata("design:type", String)
1647
- ], CreatemjBizAppsContractsContractInput.prototype, "ContractTemplateID", void 0);
1648
- __decorate([
1649
- Field({ nullable: true }),
1650
- __metadata("design:type", String)
1651
- ], CreatemjBizAppsContractsContractInput.prototype, "CreatingEntityID", void 0);
1652
- __decorate([
1653
- Field({ nullable: true }),
1654
- __metadata("design:type", String)
1655
- ], CreatemjBizAppsContractsContractInput.prototype, "CreatingRecordID", void 0);
1656
- __decorate([
1657
- Field({ nullable: true }),
1658
- __metadata("design:type", String)
1659
- ], CreatemjBizAppsContractsContractInput.prototype, "ParentContractID", void 0);
1660
- __decorate([
1661
- Field({ nullable: true }),
1662
- __metadata("design:type", String)
1663
- ], CreatemjBizAppsContractsContractInput.prototype, "SupersededByContractID", void 0);
1664
- __decorate([
1665
- Field({ nullable: true }),
1666
- __metadata("design:type", String)
1667
- ], CreatemjBizAppsContractsContractInput.prototype, "SigningProviderURL", void 0);
1668
- __decorate([
1669
- Field({ nullable: true }),
1670
- __metadata("design:type", Date)
1671
- ], CreatemjBizAppsContractsContractInput.prototype, "EffectiveDate", void 0);
1672
- __decorate([
1673
- Field({ nullable: true }),
1674
- __metadata("design:type", Date)
1675
- ], CreatemjBizAppsContractsContractInput.prototype, "ExecutedDate", void 0);
1676
- __decorate([
1677
- Field({ nullable: true }),
1678
- __metadata("design:type", Date)
1679
- ], CreatemjBizAppsContractsContractInput.prototype, "EndDate", void 0);
1680
- __decorate([
1681
- Field({ nullable: true }),
1682
- __metadata("design:type", Date)
1683
- ], CreatemjBizAppsContractsContractInput.prototype, "TerminatedDate", void 0);
1684
- __decorate([
1685
- Field(() => Boolean, { nullable: true }),
1686
- __metadata("design:type", Boolean)
1687
- ], CreatemjBizAppsContractsContractInput.prototype, "AutoRenew", void 0);
1688
- __decorate([
1689
- Field(() => Int, { nullable: true }),
1690
- __metadata("design:type", Number)
1691
- ], CreatemjBizAppsContractsContractInput.prototype, "RenewalNoticeDays", void 0);
1692
- __decorate([
1693
- Field(() => Int, { nullable: true }),
1694
- __metadata("design:type", Number)
1695
- ], CreatemjBizAppsContractsContractInput.prototype, "CancellationWindowDays", void 0);
1696
- __decorate([
1697
- Field(() => Float, { nullable: true }),
1698
- __metadata("design:type", Number)
1699
- ], CreatemjBizAppsContractsContractInput.prototype, "AnnualIncreasePercent", void 0);
1700
- __decorate([
1701
- Field(() => Boolean, { nullable: true }),
1702
- __metadata("design:type", Boolean)
1703
- ], CreatemjBizAppsContractsContractInput.prototype, "HasModifications", void 0);
1704
- __decorate([
1705
- Field({ nullable: true }),
1706
- __metadata("design:type", String)
1707
- ], CreatemjBizAppsContractsContractInput.prototype, "Description", void 0);
1708
- __decorate([
1709
- Field({ nullable: true }),
1710
- __metadata("design:type", String)
1711
- ], CreatemjBizAppsContractsContractInput.prototype, "Notes", void 0);
1712
- __decorate([
1713
- Field(() => RestoreContextInput, { nullable: true }),
1714
- __metadata("design:type", RestoreContextInput)
1715
- ], CreatemjBizAppsContractsContractInput.prototype, "RestoreContext___", void 0);
1716
- CreatemjBizAppsContractsContractInput = __decorate([
1717
- InputType()
1718
- ], CreatemjBizAppsContractsContractInput);
1719
- export { CreatemjBizAppsContractsContractInput };
1720
- //****************************************************************************
1721
- // INPUT TYPE for MJ_BizApps_Contracts: Contracts
1722
- //****************************************************************************
1723
- let UpdatemjBizAppsContractsContractInput = class UpdatemjBizAppsContractsContractInput {
1724
- };
1725
- __decorate([
1726
- Field(),
1727
- __metadata("design:type", String)
1728
- ], UpdatemjBizAppsContractsContractInput.prototype, "ID", void 0);
1729
- __decorate([
1730
- Field({ nullable: true }),
1731
- __metadata("design:type", String)
1732
- ], UpdatemjBizAppsContractsContractInput.prototype, "ContractNumber", void 0);
1733
- __decorate([
1734
- Field({ nullable: true }),
1735
- __metadata("design:type", String)
1736
- ], UpdatemjBizAppsContractsContractInput.prototype, "ContractTypeID", void 0);
1737
- __decorate([
1738
- Field({ nullable: true }),
1739
- __metadata("design:type", String)
1740
- ], UpdatemjBizAppsContractsContractInput.prototype, "CompanyID", void 0);
1741
- __decorate([
1742
- Field({ nullable: true }),
1743
- __metadata("design:type", String)
1744
- ], UpdatemjBizAppsContractsContractInput.prototype, "CustomerOrganizationID", void 0);
1745
- __decorate([
1746
- Field({ nullable: true }),
1747
- __metadata("design:type", String)
1748
- ], UpdatemjBizAppsContractsContractInput.prototype, "PrimaryContactPersonID", void 0);
1749
- __decorate([
1750
- Field({ nullable: true }),
1751
- __metadata("design:type", String)
1752
- ], UpdatemjBizAppsContractsContractInput.prototype, "ContractTemplateID", void 0);
1753
- __decorate([
1754
- Field({ nullable: true }),
1755
- __metadata("design:type", String)
1756
- ], UpdatemjBizAppsContractsContractInput.prototype, "CreatingEntityID", void 0);
1757
- __decorate([
1758
- Field({ nullable: true }),
1759
- __metadata("design:type", String)
1760
- ], UpdatemjBizAppsContractsContractInput.prototype, "CreatingRecordID", void 0);
1761
- __decorate([
1762
- Field({ nullable: true }),
1763
- __metadata("design:type", String)
1764
- ], UpdatemjBizAppsContractsContractInput.prototype, "ParentContractID", void 0);
1765
- __decorate([
1766
- Field({ nullable: true }),
1767
- __metadata("design:type", String)
1768
- ], UpdatemjBizAppsContractsContractInput.prototype, "SupersededByContractID", void 0);
1769
- __decorate([
1770
- Field({ nullable: true }),
1771
- __metadata("design:type", String)
1772
- ], UpdatemjBizAppsContractsContractInput.prototype, "SigningProviderURL", void 0);
1773
- __decorate([
1774
- Field({ nullable: true }),
1775
- __metadata("design:type", Date)
1776
- ], UpdatemjBizAppsContractsContractInput.prototype, "EffectiveDate", void 0);
1777
- __decorate([
1778
- Field({ nullable: true }),
1779
- __metadata("design:type", Date)
1780
- ], UpdatemjBizAppsContractsContractInput.prototype, "ExecutedDate", void 0);
1781
- __decorate([
1782
- Field({ nullable: true }),
1783
- __metadata("design:type", Date)
1784
- ], UpdatemjBizAppsContractsContractInput.prototype, "EndDate", void 0);
1785
- __decorate([
1786
- Field({ nullable: true }),
1787
- __metadata("design:type", Date)
1788
- ], UpdatemjBizAppsContractsContractInput.prototype, "TerminatedDate", void 0);
1789
- __decorate([
1790
- Field(() => Boolean, { nullable: true }),
1791
- __metadata("design:type", Boolean)
1792
- ], UpdatemjBizAppsContractsContractInput.prototype, "AutoRenew", void 0);
1793
- __decorate([
1794
- Field(() => Int, { nullable: true }),
1795
- __metadata("design:type", Number)
1796
- ], UpdatemjBizAppsContractsContractInput.prototype, "RenewalNoticeDays", void 0);
1797
- __decorate([
1798
- Field(() => Int, { nullable: true }),
1799
- __metadata("design:type", Number)
1800
- ], UpdatemjBizAppsContractsContractInput.prototype, "CancellationWindowDays", void 0);
1801
- __decorate([
1802
- Field(() => Float, { nullable: true }),
1803
- __metadata("design:type", Number)
1804
- ], UpdatemjBizAppsContractsContractInput.prototype, "AnnualIncreasePercent", void 0);
1805
- __decorate([
1806
- Field(() => Boolean, { nullable: true }),
1807
- __metadata("design:type", Boolean)
1808
- ], UpdatemjBizAppsContractsContractInput.prototype, "HasModifications", void 0);
1809
- __decorate([
1810
- Field({ nullable: true }),
1811
- __metadata("design:type", String)
1812
- ], UpdatemjBizAppsContractsContractInput.prototype, "Description", void 0);
1813
- __decorate([
1814
- Field({ nullable: true }),
1815
- __metadata("design:type", String)
1816
- ], UpdatemjBizAppsContractsContractInput.prototype, "Notes", void 0);
1817
- __decorate([
1818
- Field(() => [KeyValuePairInput], { nullable: true }),
1819
- __metadata("design:type", Array)
1820
- ], UpdatemjBizAppsContractsContractInput.prototype, "OldValues___", void 0);
1821
- __decorate([
1822
- Field(() => RestoreContextInput, { nullable: true }),
1823
- __metadata("design:type", RestoreContextInput)
1824
- ], UpdatemjBizAppsContractsContractInput.prototype, "RestoreContext___", void 0);
1825
- UpdatemjBizAppsContractsContractInput = __decorate([
1826
- InputType()
1827
- ], UpdatemjBizAppsContractsContractInput);
1828
- export { UpdatemjBizAppsContractsContractInput };
1829
- //****************************************************************************
1830
- // RESOLVER for MJ_BizApps_Contracts: Contracts
1831
- //****************************************************************************
1832
- let RunmjBizAppsContractsContractViewResult = class RunmjBizAppsContractsContractViewResult {
1833
- };
1834
- __decorate([
1835
- Field(() => [mjBizAppsContractsContract_]),
1836
- __metadata("design:type", Array)
1837
- ], RunmjBizAppsContractsContractViewResult.prototype, "Results", void 0);
1838
- __decorate([
1839
- Field(() => String, { nullable: true }),
1840
- __metadata("design:type", String)
1841
- ], RunmjBizAppsContractsContractViewResult.prototype, "UserViewRunID", void 0);
1842
- __decorate([
1843
- Field(() => Int, { nullable: true }),
1844
- __metadata("design:type", Number)
1845
- ], RunmjBizAppsContractsContractViewResult.prototype, "RowCount", void 0);
1846
- __decorate([
1847
- Field(() => Int, { nullable: true }),
1848
- __metadata("design:type", Number)
1849
- ], RunmjBizAppsContractsContractViewResult.prototype, "TotalRowCount", void 0);
1850
- __decorate([
1851
- Field(() => Int, { nullable: true }),
1852
- __metadata("design:type", Number)
1853
- ], RunmjBizAppsContractsContractViewResult.prototype, "ExecutionTime", void 0);
1854
- __decorate([
1855
- Field({ nullable: true }),
1856
- __metadata("design:type", String)
1857
- ], RunmjBizAppsContractsContractViewResult.prototype, "ErrorMessage", void 0);
1858
- __decorate([
1859
- Field(() => Boolean, { nullable: false }),
1860
- __metadata("design:type", Boolean)
1861
- ], RunmjBizAppsContractsContractViewResult.prototype, "Success", void 0);
1862
- RunmjBizAppsContractsContractViewResult = __decorate([
1863
- ObjectType()
1864
- ], RunmjBizAppsContractsContractViewResult);
1865
- export { RunmjBizAppsContractsContractViewResult };
1866
- let mjBizAppsContractsContractResolver = class mjBizAppsContractsContractResolver extends ResolverBase {
1867
- async RunmjBizAppsContractsContractViewByID(input, { providers, userPayload }, pubSub) {
1868
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1869
- return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
1870
- }
1871
- async RunmjBizAppsContractsContractViewByName(input, { providers, userPayload }, pubSub) {
1872
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1873
- return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
1874
- }
1875
- async RunmjBizAppsContractsContractDynamicView(input, { providers, userPayload }, pubSub) {
1876
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1877
- input.EntityName = 'MJ_BizApps_Contracts: Contracts';
1878
- return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
1879
- }
1880
- async mjBizAppsContractsContract(ID, { userPayload, providers }, pubSub) {
1881
- this.CheckUserReadPermissions('MJ_BizApps_Contracts: Contracts', userPayload);
1882
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
1883
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView('__mj_BizAppsContracts', 'vwContracts')} WHERE ${provider.QuoteIdentifier('ID')}=${provider.BuildParameterPlaceholder(0)} ` + this.getRowLevelSecurityWhereClause(provider, 'MJ_BizApps_Contracts: Contracts', userPayload, EntityPermissionType.Read, 'AND');
1884
- const rows = await provider.ExecuteSQL(sSQL, [ID], undefined, this.GetUserFromPayload(userPayload));
1885
- const result = await this.MapFieldNamesToCodeNames('MJ_BizApps_Contracts: Contracts', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
1886
- return result;
1887
- }
1888
- async CreatemjBizAppsContractsContract(input, { providers, userPayload }, pubSub) {
1889
- const provider = GetReadWriteProvider(providers);
1890
- return this.CreateRecord('MJ_BizApps_Contracts: Contracts', input, provider, userPayload, pubSub);
1891
- }
1892
- async UpdatemjBizAppsContractsContract(input, { providers, userPayload }, pubSub) {
1893
- const provider = GetReadWriteProvider(providers);
1894
- return this.UpdateRecord('MJ_BizApps_Contracts: Contracts', input, provider, userPayload, pubSub);
1895
- }
1896
- async DeletemjBizAppsContractsContract(ID, options, { providers, userPayload }, pubSub) {
1897
- const provider = GetReadWriteProvider(providers);
1898
- const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
1899
- return this.DeleteRecord('MJ_BizApps_Contracts: Contracts', key, options, provider, userPayload, pubSub);
1900
- }
1901
- };
1902
- __decorate([
1903
- Query(() => RunmjBizAppsContractsContractViewResult),
1904
- __param(0, Arg('input', () => RunViewByIDInput)),
1905
- __param(1, Ctx()),
1906
- __param(2, PubSub()),
1907
- __metadata("design:type", Function),
1908
- __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
1909
- __metadata("design:returntype", Promise)
1910
- ], mjBizAppsContractsContractResolver.prototype, "RunmjBizAppsContractsContractViewByID", null);
1911
- __decorate([
1912
- Query(() => RunmjBizAppsContractsContractViewResult),
1913
- __param(0, Arg('input', () => RunViewByNameInput)),
1914
- __param(1, Ctx()),
1915
- __param(2, PubSub()),
1916
- __metadata("design:type", Function),
1917
- __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
1918
- __metadata("design:returntype", Promise)
1919
- ], mjBizAppsContractsContractResolver.prototype, "RunmjBizAppsContractsContractViewByName", null);
1920
- __decorate([
1921
- Query(() => RunmjBizAppsContractsContractViewResult),
1922
- __param(0, Arg('input', () => RunDynamicViewInput)),
1923
- __param(1, Ctx()),
1924
- __param(2, PubSub()),
1925
- __metadata("design:type", Function),
1926
- __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
1927
- __metadata("design:returntype", Promise)
1928
- ], mjBizAppsContractsContractResolver.prototype, "RunmjBizAppsContractsContractDynamicView", null);
1929
- __decorate([
1930
- Query(() => mjBizAppsContractsContract_, { nullable: true }),
1931
- __param(0, Arg('ID', () => String)),
1932
- __param(1, Ctx()),
1933
- __param(2, PubSub()),
1934
- __metadata("design:type", Function),
1935
- __metadata("design:paramtypes", [String, Object, PubSubEngine]),
1936
- __metadata("design:returntype", Promise)
1937
- ], mjBizAppsContractsContractResolver.prototype, "mjBizAppsContractsContract", null);
1938
- __decorate([
1939
- Mutation(() => mjBizAppsContractsContract_),
1940
- __param(0, Arg('input', () => CreatemjBizAppsContractsContractInput)),
1941
- __param(1, Ctx()),
1942
- __param(2, PubSub()),
1943
- __metadata("design:type", Function),
1944
- __metadata("design:paramtypes", [CreatemjBizAppsContractsContractInput, Object, PubSubEngine]),
1945
- __metadata("design:returntype", Promise)
1946
- ], mjBizAppsContractsContractResolver.prototype, "CreatemjBizAppsContractsContract", null);
1947
- __decorate([
1948
- Mutation(() => mjBizAppsContractsContract_),
1949
- __param(0, Arg('input', () => UpdatemjBizAppsContractsContractInput)),
1950
- __param(1, Ctx()),
1951
- __param(2, PubSub()),
1952
- __metadata("design:type", Function),
1953
- __metadata("design:paramtypes", [UpdatemjBizAppsContractsContractInput, Object, PubSubEngine]),
1954
- __metadata("design:returntype", Promise)
1955
- ], mjBizAppsContractsContractResolver.prototype, "UpdatemjBizAppsContractsContract", null);
1956
- __decorate([
1957
- Mutation(() => mjBizAppsContractsContract_),
1958
- __param(0, Arg('ID', () => String)),
1959
- __param(1, Arg('options___', () => DeleteOptionsInput)),
1960
- __param(2, Ctx()),
1961
- __param(3, PubSub()),
1962
- __metadata("design:type", Function),
1963
- __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
1964
- __metadata("design:returntype", Promise)
1965
- ], mjBizAppsContractsContractResolver.prototype, "DeletemjBizAppsContractsContract", null);
1966
- mjBizAppsContractsContractResolver = __decorate([
1967
- Resolver(mjBizAppsContractsContract_)
1968
- ], mjBizAppsContractsContractResolver);
1969
- export { mjBizAppsContractsContractResolver };
6
+ export * from './graphql-schemas/__mj_BizAppsContracts.js';
1970
7
  //# sourceMappingURL=generated.js.map