@mj-biz-apps/contracts-entities 0.1.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.
Files changed (46) hide show
  1. package/LICENSE +183 -0
  2. package/dist/ContractEntity.d.ts +181 -0
  3. package/dist/ContractEntity.d.ts.map +1 -0
  4. package/dist/ContractEntity.js +261 -0
  5. package/dist/ContractEntity.js.map +1 -0
  6. package/dist/ContractTemplateEntity.d.ts +50 -0
  7. package/dist/ContractTemplateEntity.d.ts.map +1 -0
  8. package/dist/ContractTemplateEntity.js +85 -0
  9. package/dist/ContractTemplateEntity.js.map +1 -0
  10. package/dist/ContractTemplateModificationEntity.d.ts +46 -0
  11. package/dist/ContractTemplateModificationEntity.d.ts.map +1 -0
  12. package/dist/ContractTemplateModificationEntity.js +72 -0
  13. package/dist/ContractTemplateModificationEntity.js.map +1 -0
  14. package/dist/ContractTemplateProvisionEntity.d.ts +45 -0
  15. package/dist/ContractTemplateProvisionEntity.d.ts.map +1 -0
  16. package/dist/ContractTemplateProvisionEntity.js +73 -0
  17. package/dist/ContractTemplateProvisionEntity.js.map +1 -0
  18. package/dist/ContractTypeEntity.d.ts +55 -0
  19. package/dist/ContractTypeEntity.d.ts.map +1 -0
  20. package/dist/ContractTypeEntity.js +82 -0
  21. package/dist/ContractTypeEntity.js.map +1 -0
  22. package/dist/contract-state.d.ts +49 -0
  23. package/dist/contract-state.d.ts.map +1 -0
  24. package/dist/contract-state.js +48 -0
  25. package/dist/contract-state.js.map +1 -0
  26. package/dist/generated/entity_subclasses.d.ts +1235 -0
  27. package/dist/generated/entity_subclasses.d.ts.map +1 -0
  28. package/dist/generated/entity_subclasses.js +1817 -0
  29. package/dist/generated/entity_subclasses.js.map +1 -0
  30. package/dist/generated/remote_operations.d.ts +1145 -0
  31. package/dist/generated/remote_operations.d.ts.map +1 -0
  32. package/dist/generated/remote_operations.js +426 -0
  33. package/dist/generated/remote_operations.js.map +1 -0
  34. package/dist/index.d.ts +30 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +49 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/required-field-prose.d.ts +48 -0
  39. package/dist/required-field-prose.d.ts.map +1 -0
  40. package/dist/required-field-prose.js +55 -0
  41. package/dist/required-field-prose.js.map +1 -0
  42. package/dist/value-list-validation.d.ts +69 -0
  43. package/dist/value-list-validation.d.ts.map +1 -0
  44. package/dist/value-list-validation.js +88 -0
  45. package/dist/value-list-validation.js.map +1 -0
  46. package/package.json +33 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote_operations.d.ts","sourceRoot":"","sources":["../../src/generated/remote_operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;mDAUmD;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,0CAA0C;AAC1C,MAAM,WAAW,0BAA0B;IACvC,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,0CAA0C;AAC1C,MAAM,WAAW,2BAA2B;IACxC,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,iGAAiG;IACjG,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAED,0CAA0C;AAC1C,MAAM,WAAW,0BAA0B;IACvC,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,0CAA0C;AAC1C,MAAM,WAAW,2BAA2B;IACxC,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,uGAAuG;IACvG,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,0EAA0E;AAC1E,MAAM,MAAM,uCAAuC,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEpF,6DAA6D;AAC7D,MAAM,WAAW,6CAA6C;IAC1D,0DAA0D;IAC1D,SAAS,EA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Aa,wBAAyB,SAAQ,sBAAsB,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;IAC7G,SAAgB,YAAY,sBAAsB;IAClD,SAAgB,aAAa,EAAG,MAAM,CAAU;IAChD,SAAgB,aAAa,uBAAuB;IACpD,SAAgB,kBAAkB,SAAS;CAC9C;AAKD;;;;;GAKG;AACH,qBAAa,oBAAqB,SAAQ,sBAAsB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;IACjG,SAAgB,YAAY,kBAAkB;IAC9C,SAAgB,aAAa,EAAG,MAAM,CAAU;IAChD,SAAgB,aAAa,sBAAsB;IACnD,SAAgB,kBAAkB,SAAS;CAC9C;AAKD;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,sBAAsB,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;IACvG,SAAgB,YAAY,oBAAoB;IAChD,SAAgB,aAAa,EAAG,MAAM,CAAU;IAChD,SAAgB,aAAa,mBAAmB;IAChD,SAAgB,kBAAkB,SAAS;CAC9C;AAKD;;;;;GAKG;AACH,qBAAa,qBAAsB,SAAQ,sBAAsB,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IACpG,SAAgB,YAAY,mBAAmB;IAC/C,SAAgB,aAAa,EAAG,MAAM,CAAU;IAChD,SAAgB,aAAa,oBAAoB;IACjD,SAAgB,kBAAkB,SAAS;CAC9C;AAKD;;;;;GAKG;AACH,qBAAa,yBAA0B,SAAQ,sBAAsB,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;IAC5G,SAAgB,YAAY,uBAAuB;IACnD,SAAgB,aAAa,EAAG,MAAM,CAAU;IAChD,SAAgB,aAAa,mBAAmB;IAChD,SAAgB,kBAAkB,SAAS;CAC9C"}
@@ -0,0 +1,426 @@
1
+ /*************************************************
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ * Generated by MemberJunction CodeGen — Remote Operation typed bases
4
+ *
5
+ * One typed base class per "MJ: Remote Operations" row (a subclass of BaseRemotableOperation),
6
+ * emitted from the operation's metadata: OperationKey, ExecutionMode, RequiredScope, and the raw
7
+ * TypeScript Input/Output type definitions. GenerationType=Manual rows emit a typed SHELL — a
8
+ * hand-authored server subclass (registered via @RegisterClass) supplies the InternalExecute body.
9
+ * GenerationType=AI/Default rows with Approved Code emit a complete, registered class whose body imports
10
+ * the default libraries plus whatever it declared in its Libraries metadata.
11
+ **************************************************/
12
+ import { BaseRemotableOperation } from "@memberjunction/core";
13
+ // ============================================================
14
+ // AISkill.ExportMarkdown — Export AI Skill Markdown
15
+ // ============================================================
16
+ /**
17
+ * Export AI Skill Markdown
18
+ * Exports an MJ: AI Skills record to the portable SKILL.md format (frontmatter + Instructions body). Bundled Action/sub-agent IDs are resolved to their current Names for cross-instance portability. Implemented by AISkillExportMarkdownServerOperation in @memberjunction/ai-agents.
19
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
20
+ * under 'AISkill.ExportMarkdown'. This generated base provides the typed contract only (client-safe).
21
+ */
22
+ export class AISkillExportMarkdownOperation extends BaseRemotableOperation {
23
+ constructor() {
24
+ super(...arguments);
25
+ this.OperationKey = "AISkill.ExportMarkdown";
26
+ this.ExecutionMode = 'Sync';
27
+ this.RequiredScope = "aiskill:manage";
28
+ this.RequiresSystemUser = false;
29
+ }
30
+ }
31
+ // ============================================================
32
+ // AISkill.ImportMarkdown — Import AI Skill Markdown
33
+ // ============================================================
34
+ /**
35
+ * Import AI Skill Markdown
36
+ * Imports a SKILL.md document, resolving Action/sub-agent names against this instance's catalog (unresolvable names become non-fatal warnings), and creates or updates the MJ: AI Skills record plus its Action/sub-agent bundling junction rows. Implemented by AISkillImportMarkdownServerOperation in @memberjunction/ai-agents.
37
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
38
+ * under 'AISkill.ImportMarkdown'. This generated base provides the typed contract only (client-safe).
39
+ */
40
+ export class AISkillImportMarkdownOperation extends BaseRemotableOperation {
41
+ constructor() {
42
+ super(...arguments);
43
+ this.OperationKey = "AISkill.ImportMarkdown";
44
+ this.ExecutionMode = 'Sync';
45
+ this.RequiredScope = "aiskill:manage";
46
+ this.RequiresSystemUser = false;
47
+ }
48
+ }
49
+ // ============================================================
50
+ // PredictiveStudio.ControlExperimentSession — Control Experiment Session
51
+ // ============================================================
52
+ /**
53
+ * Control Experiment Session
54
+ * Pause, resume, or cancel an MJ: Experiment Sessions run (honored at the next wave checkpoint). Returns the session's status after the control action. A quick lifecycle transition over the experiment orchestrator's session state.
55
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
56
+ * under 'PredictiveStudio.ControlExperimentSession'. This generated base provides the typed contract only (client-safe).
57
+ */
58
+ export class PredictiveStudioControlExperimentSessionOperation extends BaseRemotableOperation {
59
+ constructor() {
60
+ super(...arguments);
61
+ this.OperationKey = "PredictiveStudio.ControlExperimentSession";
62
+ this.ExecutionMode = 'Sync';
63
+ this.RequiredScope = "predictive:execute";
64
+ this.RequiresSystemUser = false;
65
+ }
66
+ }
67
+ // ============================================================
68
+ // PredictiveStudio.CreateScoringProcess — Create Scoring Process
69
+ // ============================================================
70
+ /**
71
+ * Create Scoring Process
72
+ * Create an on-demand WorkType='ML Model' MJ: Record Processes row that scores a target entity's records with a trained MJ: ML Models (no schedule). The scope selects records (a saved view / a list / an entity filter / the whole entity). When outputField is supplied, the run writes the prediction into that column and a MJ: ML Model Scoring Bindings lineage row (Mode='OnDemand') is created; when omitted, output is generic (run history only) with no binding. Returns the new Record Process id, whether a write-back column was configured, and the scoring binding id (when created). The created row is then run-now via the Run Record Process operation or scheduled via the generic scheduling dialog. Delegates to createScoringProcess in @memberjunction/predictive-studio-engine.
73
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
74
+ * under 'PredictiveStudio.CreateScoringProcess'. This generated base provides the typed contract only (client-safe).
75
+ */
76
+ export class PredictiveStudioCreateScoringProcessOperation extends BaseRemotableOperation {
77
+ constructor() {
78
+ super(...arguments);
79
+ this.OperationKey = "PredictiveStudio.CreateScoringProcess";
80
+ this.ExecutionMode = 'Sync';
81
+ this.RequiredScope = "predictive:execute";
82
+ this.RequiresSystemUser = false;
83
+ }
84
+ }
85
+ // ============================================================
86
+ // PredictiveStudio.PromoteModel — Promote ML Model
87
+ // ============================================================
88
+ /**
89
+ * Promote ML Model
90
+ * Transition an MJ: ML Models row through its lifecycle (Validated / Published / Archived). Enforces the leakage sign-off gate — a model flagged for possible target leakage cannot be promoted unless signOff=true. Lifecycle-only: never edits metrics or artifact, only Status. Returns whether the model was promoted and its new status. Delegates to the ProductionModelPromotionGate in @memberjunction/predictive-studio-engine.
91
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
92
+ * under 'PredictiveStudio.PromoteModel'. This generated base provides the typed contract only (client-safe).
93
+ */
94
+ export class PredictiveStudioPromoteModelOperation extends BaseRemotableOperation {
95
+ constructor() {
96
+ super(...arguments);
97
+ this.OperationKey = "PredictiveStudio.PromoteModel";
98
+ this.ExecutionMode = 'Sync';
99
+ this.RequiredScope = "predictive:execute";
100
+ this.RequiresSystemUser = false;
101
+ }
102
+ }
103
+ // ============================================================
104
+ // PredictiveStudio.RunFeaturePipeline — Run Feature Pipeline
105
+ // ============================================================
106
+ /**
107
+ * Run Feature Pipeline
108
+ * Run a Feature Pipeline — a categorized MJ: Record Processes row — over an optional runtime scope (selected records / view / list / filter), optionally as a dry-run preview that computes feature values without writing. Returns processed/written/skipped/error counts plus the MJ: Process Runs id. Runs the underlying Record Process (no dedicated entity); delegates to the Record Process substrate.
109
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
110
+ * under 'PredictiveStudio.RunFeaturePipeline'. This generated base provides the typed contract only (client-safe).
111
+ */
112
+ export class PredictiveStudioRunFeaturePipelineOperation extends BaseRemotableOperation {
113
+ constructor() {
114
+ super(...arguments);
115
+ this.OperationKey = "PredictiveStudio.RunFeaturePipeline";
116
+ this.ExecutionMode = 'LongRunning';
117
+ this.RequiredScope = "predictive:execute";
118
+ this.RequiresSystemUser = false;
119
+ }
120
+ }
121
+ // ============================================================
122
+ // PredictiveStudio.ScoreRecordSet — Score Record Set
123
+ // ============================================================
124
+ /**
125
+ * Score Record Set
126
+ * Score a set of records with a trained MJ: ML Models row. The scope selects records (explicit ids / a saved view / a list / an entity+filter / a single record). Optionally a dry-run preview, or a write-back to the target. Returns scored/failed/skipped counts plus either the ephemeral predictions or write-back confirmation. Delegates to the MLModelInferenceProcessor scoring work type in @memberjunction/predictive-studio-engine.
127
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
128
+ * under 'PredictiveStudio.ScoreRecordSet'. This generated base provides the typed contract only (client-safe).
129
+ */
130
+ export class PredictiveStudioScoreRecordSetOperation extends BaseRemotableOperation {
131
+ constructor() {
132
+ super(...arguments);
133
+ this.OperationKey = "PredictiveStudio.ScoreRecordSet";
134
+ this.ExecutionMode = 'LongRunning';
135
+ this.RequiredScope = "predictive:execute";
136
+ this.RequiresSystemUser = false;
137
+ }
138
+ }
139
+ // ============================================================
140
+ // PredictiveStudio.StartExperimentSession — Start Experiment Session
141
+ // ============================================================
142
+ /**
143
+ * Start Experiment Session
144
+ * Start an experiment session from an approved ModelingPlanSpec — running its proposed experiments in waves under a Budget, maintaining a leaderboard. Optionally attaches to an existing MJ: Experiments definition or creates a new one. Returns the session id, experiment id, and initial status. Delegates to ExperimentOrchestrator.runSession in @memberjunction/predictive-studio-engine.
145
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
146
+ * under 'PredictiveStudio.StartExperimentSession'. This generated base provides the typed contract only (client-safe).
147
+ */
148
+ export class PredictiveStudioStartExperimentSessionOperation extends BaseRemotableOperation {
149
+ constructor() {
150
+ super(...arguments);
151
+ this.OperationKey = "PredictiveStudio.StartExperimentSession";
152
+ this.ExecutionMode = 'LongRunning';
153
+ this.RequiredScope = "predictive:execute";
154
+ this.RequiresSystemUser = false;
155
+ }
156
+ }
157
+ // ============================================================
158
+ // PredictiveStudio.TrainModel — Train ML Model
159
+ // ============================================================
160
+ /**
161
+ * Train ML Model
162
+ * Train a predictive model from an MJ: ML Training Pipelines definition. Carves a locked holdout (point-in-time/as-of aware), trains via the sidecar, persists an immutable Draft MJ: ML Models row, and flags single-feature dominance (possible target leakage). Returns the new model id, its honest holdout metrics, the leakage flag, and the model version. Delegates to TrainingEngine.trainModel in @memberjunction/predictive-studio-engine.
163
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
164
+ * under 'PredictiveStudio.TrainModel'. This generated base provides the typed contract only (client-safe).
165
+ */
166
+ export class PredictiveStudioTrainModelOperation extends BaseRemotableOperation {
167
+ constructor() {
168
+ super(...arguments);
169
+ this.OperationKey = "PredictiveStudio.TrainModel";
170
+ this.ExecutionMode = 'LongRunning';
171
+ this.RequiredScope = "predictive:execute";
172
+ this.RequiresSystemUser = false;
173
+ }
174
+ }
175
+ // ============================================================
176
+ // RecordComparison.Compare — Compare Records
177
+ // ============================================================
178
+ /**
179
+ * Compare Records
180
+ * Load a set of an entity's records (by composite key, column 0 = survivor/reference) and compute the field-level delta matrix between them. Read-only. Returns the loaded records + per-field deltas. Implemented by RecordComparisonCompareServerOperation in @memberjunction/record-comparison.
181
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
182
+ * under 'RecordComparison.Compare'. This generated base provides the typed contract only (client-safe).
183
+ */
184
+ export class RecordComparisonCompareOperation extends BaseRemotableOperation {
185
+ constructor() {
186
+ super(...arguments);
187
+ this.OperationKey = "RecordComparison.Compare";
188
+ this.ExecutionMode = 'Sync';
189
+ this.RequiresSystemUser = false;
190
+ }
191
+ }
192
+ // ============================================================
193
+ // RecordProcess.CancelRun — Cancel Record Process Run
194
+ // ============================================================
195
+ /**
196
+ * Cancel Record Process Run
197
+ * Request cancellation of a running Record Process (honored at the next checkpoint). Returns the run's status. Implemented by RecordProcessCancelRunOperation in @memberjunction/record-set-processor.
198
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
199
+ * under 'RecordProcess.CancelRun'. This generated base provides the typed contract only (client-safe).
200
+ */
201
+ export class RecordProcessCancelRunOperation extends BaseRemotableOperation {
202
+ constructor() {
203
+ super(...arguments);
204
+ this.OperationKey = "RecordProcess.CancelRun";
205
+ this.ExecutionMode = 'Sync';
206
+ this.RequiredScope = "recordprocess:execute";
207
+ this.RequiresSystemUser = false;
208
+ }
209
+ }
210
+ // ============================================================
211
+ // RecordProcess.GetRunStatus — Get Record Process Run Status
212
+ // ============================================================
213
+ /**
214
+ * Get Record Process Run Status
215
+ * Return a snapshot of a Record Process run's progress (status + processed/total/success/error/skipped counts) by ProcessRunID. Implemented by RecordProcessGetRunStatusOperation in @memberjunction/record-set-processor.
216
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
217
+ * under 'RecordProcess.GetRunStatus'. This generated base provides the typed contract only (client-safe).
218
+ */
219
+ export class RecordProcessGetRunStatusOperation extends BaseRemotableOperation {
220
+ constructor() {
221
+ super(...arguments);
222
+ this.OperationKey = "RecordProcess.GetRunStatus";
223
+ this.ExecutionMode = 'Sync';
224
+ this.RequiredScope = "recordprocess:execute";
225
+ this.RequiresSystemUser = false;
226
+ }
227
+ }
228
+ // ============================================================
229
+ // RecordProcess.PauseRun — Pause Record Process Run
230
+ // ============================================================
231
+ /**
232
+ * Pause Record Process Run
233
+ * Request a graceful pause of a running Record Process (honored at the next checkpoint). Returns the run's status. Implemented by RecordProcessPauseRunOperation in @memberjunction/record-set-processor.
234
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
235
+ * under 'RecordProcess.PauseRun'. This generated base provides the typed contract only (client-safe).
236
+ */
237
+ export class RecordProcessPauseRunOperation extends BaseRemotableOperation {
238
+ constructor() {
239
+ super(...arguments);
240
+ this.OperationKey = "RecordProcess.PauseRun";
241
+ this.ExecutionMode = 'Sync';
242
+ this.RequiredScope = "recordprocess:execute";
243
+ this.RequiresSystemUser = false;
244
+ }
245
+ }
246
+ // ============================================================
247
+ // RecordProcess.ResumeRun — Resume Record Process Run
248
+ // ============================================================
249
+ /**
250
+ * Resume Record Process Run
251
+ * Resume a paused Record Process run. Returns the run's status. Implemented by RecordProcessResumeRunOperation in @memberjunction/record-set-processor.
252
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
253
+ * under 'RecordProcess.ResumeRun'. This generated base provides the typed contract only (client-safe).
254
+ */
255
+ export class RecordProcessResumeRunOperation extends BaseRemotableOperation {
256
+ constructor() {
257
+ super(...arguments);
258
+ this.OperationKey = "RecordProcess.ResumeRun";
259
+ this.ExecutionMode = 'Sync';
260
+ this.RequiredScope = "recordprocess:execute";
261
+ this.RequiresSystemUser = false;
262
+ }
263
+ }
264
+ // ============================================================
265
+ // RecordProcess.RunNow — Run Record Process
266
+ // ============================================================
267
+ /**
268
+ * Run Record Process
269
+ * Run a Record Process on demand over an optional runtime scope (selected records / view / list / filter), optionally as a dry-run preview that computes the per-record changes without writing. Returns the run summary (status + processed/success/error/skipped counts + the MJ: Process Runs ID). Implemented by RecordProcessRunNowServerOperation in @memberjunction/record-set-processor.
270
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
271
+ * under 'RecordProcess.RunNow'. This generated base provides the typed contract only (client-safe).
272
+ */
273
+ export class RecordProcessRunNowOperation extends BaseRemotableOperation {
274
+ constructor() {
275
+ super(...arguments);
276
+ this.OperationKey = "RecordProcess.RunNow";
277
+ this.ExecutionMode = 'LongRunning';
278
+ this.RequiredScope = "recordprocess:execute";
279
+ this.RequiresSystemUser = false;
280
+ }
281
+ }
282
+ // ============================================================
283
+ // TaskGraph.Cancel — Cancel Task Graph
284
+ // ============================================================
285
+ /**
286
+ * Cancel Task Graph
287
+ * Cancel a task graph and every task in it that has not already settled. Children are cancelled before the parent so the dispatcher cannot pick up pending work mid-cancel. Terminal tasks are left untouched. Implemented by TaskGraphCancelOperation in @memberjunction/task-graph.
288
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
289
+ * under 'TaskGraph.Cancel'. This generated base provides the typed contract only (client-safe).
290
+ */
291
+ export class TaskGraphCancelOperation extends BaseRemotableOperation {
292
+ constructor() {
293
+ super(...arguments);
294
+ this.OperationKey = "TaskGraph.Cancel";
295
+ this.ExecutionMode = 'Sync';
296
+ this.RequiredScope = "taskgraph:execute";
297
+ this.RequiresSystemUser = false;
298
+ }
299
+ }
300
+ // ============================================================
301
+ // TaskGraph.GetStatus — Get Task Graph Status
302
+ // ============================================================
303
+ /**
304
+ * Get Task Graph Status
305
+ * Return a snapshot of a task graph's progress — the parent's rolled-up status and per-task states — without waiting for anything. This is how a client, an agent, or an external caller observes a running graph now that execution is durable and nobody holds a request open. Implemented by TaskGraphGetStatusOperation in @memberjunction/task-graph.
306
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
307
+ * under 'TaskGraph.GetStatus'. This generated base provides the typed contract only (client-safe).
308
+ */
309
+ export class TaskGraphGetStatusOperation extends BaseRemotableOperation {
310
+ constructor() {
311
+ super(...arguments);
312
+ this.OperationKey = "TaskGraph.GetStatus";
313
+ this.ExecutionMode = 'Sync';
314
+ this.RequiredScope = "taskgraph:read";
315
+ this.RequiresSystemUser = false;
316
+ }
317
+ }
318
+ // ============================================================
319
+ // TaskGraph.RetryTask — Retry Task
320
+ // ============================================================
321
+ /**
322
+ * Retry Task
323
+ * Return a failed task to Pending so the dispatcher runs it again, and clear any dependents it had Blocked. Unblocking is not optional: retrying a task while its dependents stay Blocked leaves the graph exactly as stuck as before. Implemented by TaskGraphRetryTaskOperation in @memberjunction/task-graph.
324
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
325
+ * under 'TaskGraph.RetryTask'. This generated base provides the typed contract only (client-safe).
326
+ */
327
+ export class TaskGraphRetryTaskOperation extends BaseRemotableOperation {
328
+ constructor() {
329
+ super(...arguments);
330
+ this.OperationKey = "TaskGraph.RetryTask";
331
+ this.ExecutionMode = 'Sync';
332
+ this.RequiredScope = "taskgraph:execute";
333
+ this.RequiresSystemUser = false;
334
+ }
335
+ }
336
+ // ============================================================
337
+ // TaskGraph.Submit — Submit Task Graph
338
+ // ============================================================
339
+ /**
340
+ * Submit Task Graph
341
+ * Validate and durably persist a dependency-ordered task graph, returning as soon as it is safe. Does NOT wait for execution: the durable dispatcher runs the graph independently, so a submitted graph outlives the submitting request, agent run, and server. Producer-agnostic — an agent, deterministic code, or a UI can all submit. Implemented by TaskGraphSubmitOperation in @memberjunction/task-graph.
342
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
343
+ * under 'TaskGraph.Submit'. This generated base provides the typed contract only (client-safe).
344
+ */
345
+ export class TaskGraphSubmitOperation extends BaseRemotableOperation {
346
+ constructor() {
347
+ super(...arguments);
348
+ this.OperationKey = "TaskGraph.Submit";
349
+ this.ExecutionMode = 'Sync';
350
+ this.RequiredScope = "taskgraph:execute";
351
+ this.RequiresSystemUser = false;
352
+ }
353
+ }
354
+ // ============================================================
355
+ // Template.Run — Run Template
356
+ // ============================================================
357
+ /**
358
+ * Run Template
359
+ * Render a template by ID with optional render data. Returns the rendered output + wall-clock render time. Implemented by TemplateRunServerOperation in @memberjunction/templates.
360
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
361
+ * under 'Template.Run'. This generated base provides the typed contract only (client-safe).
362
+ */
363
+ export class TemplateRunOperation extends BaseRemotableOperation {
364
+ constructor() {
365
+ super(...arguments);
366
+ this.OperationKey = "Template.Run";
367
+ this.ExecutionMode = 'Sync';
368
+ this.RequiredScope = "template:execute";
369
+ this.RequiresSystemUser = false;
370
+ }
371
+ }
372
+ // ============================================================
373
+ // Workflow.Draft — Draft Workflow
374
+ // ============================================================
375
+ /**
376
+ * Draft Workflow
377
+ * Draft a workflow's steps from a plain-English description. Returns a TaskGraphSpec and persists NOTHING — the draft goes to the canvas for the author to review, and only Workflow.Save commits it, which is what makes the front door's "nothing is saved until you approve it" promise true rather than merely stated. Constrained to agents that actually exist on the instance, because a workflow referencing an unknown agent cannot be saved and a draft that cannot be saved wastes the author's time. Validated with the SAME ValidateTaskGraphSpec the canvas and Workflow.Save run, so a draft that comes back cannot be rejected later for a reason drafting never checked. Implemented by WorkflowDraftServerOperation in @memberjunction/task-graph.
378
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
379
+ * under 'Workflow.Draft'. This generated base provides the typed contract only (client-safe).
380
+ */
381
+ export class WorkflowDraftOperation extends BaseRemotableOperation {
382
+ constructor() {
383
+ super(...arguments);
384
+ this.OperationKey = "Workflow.Draft";
385
+ this.ExecutionMode = 'Sync';
386
+ this.RequiredScope = "workflow:read";
387
+ this.RequiresSystemUser = false;
388
+ }
389
+ }
390
+ // ============================================================
391
+ // Workflow.Save — Save Workflow
392
+ // ============================================================
393
+ /**
394
+ * Save Workflow
395
+ * Validate and persist a workflow — its graph of steps AND the triggers that fire it — by reconciling the substrates that already exist (a Flow agent for the graph, Scheduled Jobs for schedules). Creates no new storage: there is no Workflow table, because a second definition of a scheduled thing would give the scheduler two masters. Producer-agnostic — an agent over MCP, an Action, or the workflow editor all call this. Implemented by WorkflowSaveServerOperation in @memberjunction/task-graph.
396
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
397
+ * under 'Workflow.Save'. This generated base provides the typed contract only (client-safe).
398
+ */
399
+ export class WorkflowSaveOperation extends BaseRemotableOperation {
400
+ constructor() {
401
+ super(...arguments);
402
+ this.OperationKey = "Workflow.Save";
403
+ this.ExecutionMode = 'Sync';
404
+ this.RequiredScope = "workflow:write";
405
+ this.RequiresSystemUser = false;
406
+ }
407
+ }
408
+ // ============================================================
409
+ // Workflow.Validate — Validate Workflow
410
+ // ============================================================
411
+ /**
412
+ * Validate Workflow
413
+ * Check a workflow for problems without saving it. Runs the identical validation Workflow.Save runs, so a workflow that validates here cannot be rejected for a different reason on save. Exists so an agent drafting a workflow can iterate before committing anything — the draft-then-confirm shape dry-run and Plan Mode already established. Implemented by WorkflowValidateServerOperation in @memberjunction/task-graph.
414
+ * GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
415
+ * under 'Workflow.Validate'. This generated base provides the typed contract only (client-safe).
416
+ */
417
+ export class WorkflowValidateOperation extends BaseRemotableOperation {
418
+ constructor() {
419
+ super(...arguments);
420
+ this.OperationKey = "Workflow.Validate";
421
+ this.ExecutionMode = 'Sync';
422
+ this.RequiredScope = "workflow:read";
423
+ this.RequiresSystemUser = false;
424
+ }
425
+ }
426
+ //# sourceMappingURL=remote_operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote_operations.js","sourceRoot":"","sources":["../../src/generated/remote_operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;mDAUmD;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAsuB9D,+DAA+D;AAC/D,oDAAoD;AACpD,+DAA+D;AAC/D;;;;;GAKG;AACH,MAAM,OAAO,8BAA+B,SAAQ,sBAA+E;IAAnI;;QACoB,iBAAY,GAAG,wBAAwB,CAAC;QACxC,kBAAa,GAAG,MAAe,CAAC;QAChC,kBAAa,GAAG,gBAAgB,CAAC;QACjC,uBAAkB,GAAG,KAAK,CAAC;IAC/C,CAAC;CAAA;AAED,+DAA+D;AAC/D,oDAAoD;AACpD,+DAA+D;AAC/D;;;;;GAKG;AACH,MAAM,OAAO,8BAA+B,SAAQ,sBAA+E;IAAnI;;QACoB,iBAAY,GAAG,wBAAwB,CAAC;QACxC,kBAAa,GAAG,MAAe,CAAC;QAChC,kBAAa,GAAG,gBAAgB,CAAC;QACjC,uBAAkB,GAAG,KAAK,CAAC;IAC/C,CAAC;CAAA;AAED,+DAA+D;AAC/D,yEAAyE;AACzE,+DAA+D;AAC/D;;;;;GAKG;AACH,MAAM,OAAO,iDAAkD,SAAQ,sBAAqH;IAA5L;;QACoB,iBAAY,GAAG,2CAA2C,CAAC;QAC3D,kBAAa,GAAG,MAAe,CAAC;QAChC,kBAAa,GAAG,oBAAoB,CAAC;QACrC,uBAAkB,GAAG,KAAK,CAAC;IAC/C,CAAC;CAAA;AAED,+DAA+D;AAC/D,iEAAiE;AACjE,+DAA+D;AAC/D;;;;;GAKG;AACH,MAAM,OAAO,6CAA8C,SAAQ,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A0B,SAAQ,sBAAiE;IAAhH;;QACoB,iBAAY,GAAG,mBAAmB,CAAC;QACnC,kBAAa,GAAG,MAAe,CAAC;QAChC,kBAAa,GAAG,eAAe,CAAC;QAChC,uBAAkB,GAAG,KAAK,CAAC;IAC/C,CAAC;CAAA"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @mj-biz-apps/contracts-entities — the app's ENTITY package. SHARED: browser and server both load
3
+ * it, so nothing server-only may leak in here.
4
+ *
5
+ * WHAT LIVES HERE
6
+ * src/generated/entity_subclasses.ts — written by MemberJunction CodeGen. One strongly-typed
7
+ * BaseEntity subclass + zod schema per table. COMMIT it; the committed code is what consumers
8
+ * install, and CodeGen on a clean branch is an expected no-op.
9
+ * src/*.ts — hand-written shared subclasses carrying the rules that must run in BOTH places
10
+ * (plan §6.3): validation the browser can preflight and the server enforces.
11
+ *
12
+ * PEER DEPENDENCIES (docs/template-docs/versioning-and-peer-deps.md): @memberjunction/core + global
13
+ * are PEERS (^X.Y.Z), never hard deps — exactly one copy of each may exist in a host process; a
14
+ * second copy splits MJ's class factory and silently breaks registration.
15
+ *
16
+ * NOT HERE ANY MORE: v1's `contract-draft.ts` (688 lines). A browser could not compose a contract
17
+ * tree through BaseEntity, so v1 shipped a draft payload and a remote operation to rehydrate it.
18
+ * MJ 6 related-record collections make the graph save native (plan §6.3), so the draft, its
19
+ * operation and its hydrator all died with the rebuild.
20
+ */
21
+ export * from './generated/entity_subclasses.js';
22
+ export * from './ContractEntity.js';
23
+ export * from './ContractTemplateModificationEntity.js';
24
+ export * from './ContractTemplateProvisionEntity.js';
25
+ export * from './ContractTemplateEntity.js';
26
+ export * from './required-field-prose.js';
27
+ export * from './ContractTypeEntity.js';
28
+ export * from './value-list-validation.js';
29
+ export * from './contract-state.js';
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,cAAc,+BAA+B,CAAC;AAI9C,cAAc,kBAAkB,CAAC;AAIjC,cAAc,sCAAsC,CAAC;AAIrD,cAAc,mCAAmC,CAAC;AAIlD,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AAIvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AAMxC,cAAc,kBAAkB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @mj-biz-apps/contracts-entities — the app's ENTITY package. SHARED: browser and server both load
3
+ * it, so nothing server-only may leak in here.
4
+ *
5
+ * WHAT LIVES HERE
6
+ * src/generated/entity_subclasses.ts — written by MemberJunction CodeGen. One strongly-typed
7
+ * BaseEntity subclass + zod schema per table. COMMIT it; the committed code is what consumers
8
+ * install, and CodeGen on a clean branch is an expected no-op.
9
+ * src/*.ts — hand-written shared subclasses carrying the rules that must run in BOTH places
10
+ * (plan §6.3): validation the browser can preflight and the server enforces.
11
+ *
12
+ * PEER DEPENDENCIES (docs/template-docs/versioning-and-peer-deps.md): @memberjunction/core + global
13
+ * are PEERS (^X.Y.Z), never hard deps — exactly one copy of each may exist in a host process; a
14
+ * second copy splits MJ's class factory and silently breaks registration.
15
+ *
16
+ * NOT HERE ANY MORE: v1's `contract-draft.ts` (688 lines). A browser could not compose a contract
17
+ * tree through BaseEntity, so v1 shipped a draft payload and a remote operation to rehydrate it.
18
+ * MJ 6 related-record collections make the graph save native (plan §6.3), so the draft, its
19
+ * operation and its hydrator all died with the rebuild.
20
+ */
21
+ export * from './generated/entity_subclasses.js';
22
+ /* Hand-written SHARED subclasses. Rules that must run in BOTH tiers live here, so the browser
23
+ * refuses before the round trip and the server refuses regardless (plan §6.3). */
24
+ export * from './ContractEntity.js';
25
+ /* The modification's three required fields, re-explained. It adds NO rule — the NOT NULL metadata is
26
+ * the rule — it only replaces MJ's "<field> cannot be null" with a sentence that says what to do. */
27
+ export * from './ContractTemplateModificationEntity.js';
28
+ /* The provision's required fields, re-explained. Same shape and the same shared mechanism as the
29
+ * modification's — `ProvisionText` became required in V202608200800. */
30
+ export * from './ContractTemplateProvisionEntity.js';
31
+ /* The template's publication lifecycle. Draft is editable and unreferenceable; Published is frozen by
32
+ * a trigger. The subclass carries the transition rule the trigger cannot see: publishing is one-way. */
33
+ export * from './ContractTemplateEntity.js';
34
+ export * from './required-field-prose.js';
35
+ /* The two lookup entities, which exist ONLY to validate their value-list columns — a rule MJ does not
36
+ * yet provide (MJ#3969). Deleted wholesale when it lands; see value-list-validation.ts. */
37
+ export * from './ContractTypeEntity.js';
38
+ export * from './value-list-validation.js';
39
+ /* The lifecycle rule, stated once and rendered two ways (D-19 / R-19). Exported because the UI needs
40
+ * DeriveContractState to show a state that tracks UNSAVED edits — reading the view's stored column
41
+ * would contradict the form on screen — and because StateSQL() is what the migration's CASE is checked
42
+ * against by contract-state.test.ts. */
43
+ export * from './contract-state.js';
44
+ /* NOTE on `src/generated/remote_operations.ts`: CodeGen writes it, and it is deliberately NOT
45
+ * re-exported. v2 ships zero remote operations (plan §6.3), so every symbol in that file is an
46
+ * MJ-CORE operation (AISkill, PredictiveStudio, TaskGraph, …) emitted into every app's file
47
+ * regardless of `includeSchemas`. Re-exporting them would make this package appear to own MJ core's
48
+ * write API. Filed as an upstream CodeGen scoping question — see MJ-UPSTREAM.md. */
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,cAAc,+BAA+B,CAAC;AAE9C;kFACkF;AAClF,cAAc,kBAAkB,CAAC;AAEjC;qGACqG;AACrG,cAAc,sCAAsC,CAAC;AAErD;wEACwE;AACxE,cAAc,mCAAmC,CAAC;AAElD;wGACwG;AACxG,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AAEvC;2FAC2F;AAC3F,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AAExC;;;wCAGwC;AACxC,cAAc,kBAAkB,CAAC;AAEjC;;;;oFAIoF"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @fileoverview Replacing MJ's flat "<field> cannot be null" with a sentence that says what to do.
3
+ *
4
+ * ADDS NO RULE — that distinction is the whole design, and getting it wrong here is a known trap
5
+ * (R-2 of `plans/backend-requirements.md`, withdrawn because implementing it would have produced a
6
+ * second copy of four working generated rules). Every field named by a prose map is already required
7
+ * at the database, and MJ's `EntityField.Validate()` plus CodeGen's CHECK-derived validators already
8
+ * refuse an empty one and already name the field. The rule is the metadata and the constraints;
9
+ * restating it in TypeScript would give one fact two owners.
10
+ *
11
+ * What MJ cannot know is what the user should DO about it. Its message is
12
+ * `` `${DisplayNameOrName} cannot be null` `` (`baseEntity.ts:320`) — correct, field-named, and mute on
13
+ * the only question the person in front of the form is asking.
14
+ *
15
+ * WHY THIS IS ITS OWN MODULE. It started life inside `ContractTemplateModificationEntity`. Provisions
16
+ * then needed exactly the same treatment (`ProvisionText` became required in V202608200800), which is
17
+ * the second caller of somewhat-subtle logic that has to change together — the point at which
18
+ * ORCHESTRATION.md's reuse test says bring it together rather than copy it. The prose maps stay with
19
+ * their entities, because the sentences are domain knowledge; the mechanism lives here.
20
+ *
21
+ * @module @mj-biz-apps/contracts-entities
22
+ */
23
+ import { BaseEntity, ValidationResult } from '@memberjunction/core';
24
+ /** Field name → the sentence that replaces MJ's flat one. */
25
+ export type RequiredFieldProse = Readonly<Record<string, string>>;
26
+ /**
27
+ * Swap the flat nullability prose for something actionable, and collapse duplicates, in place.
28
+ *
29
+ * WHY REPLACE AND NOT APPEND. One mistake must produce one error. Appending would leave the flat
30
+ * message beside the useful one, so a single empty field would mark itself twice.
31
+ *
32
+ * WHY COLLAPSE. A required field with a not-blank CHECK genuinely produces TWO absence errors on a
33
+ * create, and both are correct: MJ's nullability check refuses the null, and CodeGen's generated
34
+ * validator — derived from the CHECK — refuses null, empty AND whitespace, because the CHECK has to
35
+ * cover all three. Two rungs of the ladder saying the same thing about the same field; the user needs
36
+ * to be told once.
37
+ *
38
+ * WHY MATCH ON EMPTINESS RATHER THAN ON MJ'S WORDING. The obvious implementation greps the message
39
+ * text, which couples this to a string in MJ core it does not own and cannot see change. Matching on
40
+ * `Source` plus "the value really is absent" is stable across any rewording, and cannot capture the
41
+ * wrong error: the only other check MJ runs on these fields is `MaxLength`, which by construction
42
+ * fires only when a value is present.
43
+ *
44
+ * `result.Success` is deliberately not recomputed. Rewording cannot change a verdict, and collapsing
45
+ * cannot either — dropping a duplicate leaves at least one error standing for the same field.
46
+ */
47
+ export declare function ExplainMissingRequiredFields(entity: BaseEntity, result: ValidationResult, prose: RequiredFieldProse): void;
48
+ //# sourceMappingURL=required-field-prose.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"required-field-prose.d.ts","sourceRoot":"","sources":["../src/required-field-prose.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,UAAU,EAAuB,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAEzF,6DAA6D;AAC7D,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAkB1H"}