@memberjunction/core-entities 5.41.0 → 5.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom/PermissionProviders/AccessControlRuleProvider.d.ts +8 -0
- package/dist/custom/PermissionProviders/AccessControlRuleProvider.d.ts.map +1 -1
- package/dist/custom/PermissionProviders/AccessControlRuleProvider.js +14 -4
- package/dist/custom/PermissionProviders/AccessControlRuleProvider.js.map +1 -1
- package/dist/engines/RemoteOperationEngineBase.d.ts +48 -0
- package/dist/engines/RemoteOperationEngineBase.d.ts.map +1 -0
- package/dist/engines/RemoteOperationEngineBase.js +85 -0
- package/dist/engines/RemoteOperationEngineBase.js.map +1 -0
- package/dist/engines/conversations.d.ts +71 -1
- package/dist/engines/conversations.d.ts.map +1 -1
- package/dist/engines/conversations.js +219 -0
- package/dist/engines/conversations.js.map +1 -1
- package/dist/generated/entity_subclasses.d.ts +1996 -5
- package/dist/generated/entity_subclasses.d.ts.map +1 -1
- package/dist/generated/entity_subclasses.js +3200 -209
- package/dist/generated/entity_subclasses.js.map +1 -1
- package/dist/generated/remote_operations.d.ts +164 -0
- package/dist/generated/remote_operations.d.ts.map +1 -0
- package/dist/generated/remote_operations.js +120 -0
- package/dist/generated/remote_operations.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,164 @@
|
|
|
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.
|
|
10
|
+
**************************************************/
|
|
11
|
+
import { BaseRemotableOperation } from "@memberjunction/core";
|
|
12
|
+
/** Input for the pause / resume / cancel control operations. */
|
|
13
|
+
export interface ProcessRunControlInput {
|
|
14
|
+
/** The `MJ: Process Runs` row to control. */
|
|
15
|
+
processRunID: string;
|
|
16
|
+
}
|
|
17
|
+
/** Output of the pause / resume / cancel control operations. */
|
|
18
|
+
export interface ProcessRunControlOutput {
|
|
19
|
+
/** The run's status after the control action. */
|
|
20
|
+
status: string;
|
|
21
|
+
}
|
|
22
|
+
/** Input for `RecordProcess.GetRunStatus`. */
|
|
23
|
+
export interface RecordProcessGetRunStatusInput {
|
|
24
|
+
/** The `MJ: Process Runs` row to query. */
|
|
25
|
+
processRunID: string;
|
|
26
|
+
}
|
|
27
|
+
/** Output of `RecordProcess.GetRunStatus` — a snapshot of the run's progress. */
|
|
28
|
+
export interface RecordProcessGetRunStatusOutput {
|
|
29
|
+
status: string;
|
|
30
|
+
processed: number;
|
|
31
|
+
total: number | null;
|
|
32
|
+
success: number;
|
|
33
|
+
error: number;
|
|
34
|
+
skipped: number;
|
|
35
|
+
}
|
|
36
|
+
/** Runtime scope override for a Record Process run (instead of the stored Scope). */
|
|
37
|
+
export type RecordProcessScopeOverride = {
|
|
38
|
+
Kind: 'records';
|
|
39
|
+
RecordIDs: string[];
|
|
40
|
+
} | {
|
|
41
|
+
Kind: 'view';
|
|
42
|
+
ViewID: string;
|
|
43
|
+
} | {
|
|
44
|
+
Kind: 'list';
|
|
45
|
+
ListID: string;
|
|
46
|
+
} | {
|
|
47
|
+
Kind: 'filter';
|
|
48
|
+
Filter?: string;
|
|
49
|
+
};
|
|
50
|
+
/** Input for `RecordProcess.RunNow`. */
|
|
51
|
+
export interface RecordProcessRunNowInput {
|
|
52
|
+
/** The `MJ: Record Processes` definition to run. */
|
|
53
|
+
recordProcessID: string;
|
|
54
|
+
/** When set, processes just this single record instead of the configured scope. */
|
|
55
|
+
singleRecordID?: string;
|
|
56
|
+
/** Compute the per-record changes WITHOUT writing (FieldRules work type) — powers the preview. */
|
|
57
|
+
dryRun?: boolean;
|
|
58
|
+
/** Runtime scope override (selected rows / a view / list / filter), used instead of the stored Scope. */
|
|
59
|
+
scope?: RecordProcessScopeOverride;
|
|
60
|
+
}
|
|
61
|
+
/** Output of `RecordProcess.RunNow` — the run summary. */
|
|
62
|
+
export interface RecordProcessRunNowOutput {
|
|
63
|
+
/** ID of the persisted `MJ: Process Runs` row. */
|
|
64
|
+
processRunID?: string;
|
|
65
|
+
/** Run-level status (`Completed` / `Failed` / `Cancelled` / …). */
|
|
66
|
+
status: string;
|
|
67
|
+
/** Records the run touched. */
|
|
68
|
+
processed: number;
|
|
69
|
+
/** Records that succeeded (in dry-run, records with a computed preview). */
|
|
70
|
+
success: number;
|
|
71
|
+
/** Records that errored. */
|
|
72
|
+
error: number;
|
|
73
|
+
/** Records skipped (no rule matched / nothing changed). */
|
|
74
|
+
skipped: number;
|
|
75
|
+
/** Run-level error detail when `status` is not `Completed`. */
|
|
76
|
+
errorMessage?: string;
|
|
77
|
+
}
|
|
78
|
+
/** Input for `Template.Run`. */
|
|
79
|
+
export interface TemplateRunInput {
|
|
80
|
+
/** The `MJ: Templates` ID to render. */
|
|
81
|
+
templateID: string;
|
|
82
|
+
/** Data the template may reference during render (the render context). Omit for none. */
|
|
83
|
+
data?: Record<string, unknown>;
|
|
84
|
+
}
|
|
85
|
+
/** Output of `Template.Run`. */
|
|
86
|
+
export interface TemplateRunOutput {
|
|
87
|
+
/** The rendered template output. */
|
|
88
|
+
output: string;
|
|
89
|
+
/** Wall-clock render time in milliseconds. */
|
|
90
|
+
executionTimeMs?: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Cancel Record Process Run
|
|
94
|
+
* 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.
|
|
95
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
96
|
+
* under 'RecordProcess.CancelRun'. This generated base provides the typed contract only (client-safe).
|
|
97
|
+
*/
|
|
98
|
+
export declare class RecordProcessCancelRunOperation extends BaseRemotableOperation<ProcessRunControlInput, ProcessRunControlOutput> {
|
|
99
|
+
readonly OperationKey = "RecordProcess.CancelRun";
|
|
100
|
+
readonly ExecutionMode: "Sync";
|
|
101
|
+
readonly RequiredScope = "recordprocess:execute";
|
|
102
|
+
readonly RequiresSystemUser = false;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Get Record Process Run Status
|
|
106
|
+
* 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.
|
|
107
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
108
|
+
* under 'RecordProcess.GetRunStatus'. This generated base provides the typed contract only (client-safe).
|
|
109
|
+
*/
|
|
110
|
+
export declare class RecordProcessGetRunStatusOperation extends BaseRemotableOperation<RecordProcessGetRunStatusInput, RecordProcessGetRunStatusOutput> {
|
|
111
|
+
readonly OperationKey = "RecordProcess.GetRunStatus";
|
|
112
|
+
readonly ExecutionMode: "Sync";
|
|
113
|
+
readonly RequiredScope = "recordprocess:execute";
|
|
114
|
+
readonly RequiresSystemUser = false;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Pause Record Process Run
|
|
118
|
+
* 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.
|
|
119
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
120
|
+
* under 'RecordProcess.PauseRun'. This generated base provides the typed contract only (client-safe).
|
|
121
|
+
*/
|
|
122
|
+
export declare class RecordProcessPauseRunOperation extends BaseRemotableOperation<ProcessRunControlInput, ProcessRunControlOutput> {
|
|
123
|
+
readonly OperationKey = "RecordProcess.PauseRun";
|
|
124
|
+
readonly ExecutionMode: "Sync";
|
|
125
|
+
readonly RequiredScope = "recordprocess:execute";
|
|
126
|
+
readonly RequiresSystemUser = false;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Resume Record Process Run
|
|
130
|
+
* Resume a paused Record Process run. Returns the run's status. Implemented by RecordProcessResumeRunOperation in @memberjunction/record-set-processor.
|
|
131
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
132
|
+
* under 'RecordProcess.ResumeRun'. This generated base provides the typed contract only (client-safe).
|
|
133
|
+
*/
|
|
134
|
+
export declare class RecordProcessResumeRunOperation extends BaseRemotableOperation<ProcessRunControlInput, ProcessRunControlOutput> {
|
|
135
|
+
readonly OperationKey = "RecordProcess.ResumeRun";
|
|
136
|
+
readonly ExecutionMode: "Sync";
|
|
137
|
+
readonly RequiredScope = "recordprocess:execute";
|
|
138
|
+
readonly RequiresSystemUser = false;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Run Record Process
|
|
142
|
+
* 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.
|
|
143
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
144
|
+
* under 'RecordProcess.RunNow'. This generated base provides the typed contract only (client-safe).
|
|
145
|
+
*/
|
|
146
|
+
export declare class RecordProcessRunNowOperation extends BaseRemotableOperation<RecordProcessRunNowInput, RecordProcessRunNowOutput> {
|
|
147
|
+
readonly OperationKey = "RecordProcess.RunNow";
|
|
148
|
+
readonly ExecutionMode: "LongRunning";
|
|
149
|
+
readonly RequiredScope = "recordprocess:execute";
|
|
150
|
+
readonly RequiresSystemUser = false;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Run Template
|
|
154
|
+
* Render a template by ID with optional render data. Returns the rendered output + wall-clock render time. Implemented by TemplateRunServerOperation in @memberjunction/templates.
|
|
155
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
156
|
+
* under 'Template.Run'. This generated base provides the typed contract only (client-safe).
|
|
157
|
+
*/
|
|
158
|
+
export declare class TemplateRunOperation extends BaseRemotableOperation<TemplateRunInput, TemplateRunOutput> {
|
|
159
|
+
readonly OperationKey = "Template.Run";
|
|
160
|
+
readonly ExecutionMode: "Sync";
|
|
161
|
+
readonly RequiredScope = "template:execute";
|
|
162
|
+
readonly RequiresSystemUser = false;
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=remote_operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote_operations.d.ts","sourceRoot":"","sources":["../../src/generated/remote_operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;mDASmD;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,gEAAgE;AAChE,MAAM,WAAW,sBAAsB;IACnC,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,gEAAgE;AAChE,MAAM,WAAW,uBAAuB;IACpC,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,8CAA8C;AAC9C,MAAM,WAAW,8BAA8B;IAC3C,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,iFAAiF;AACjF,MAAM,WAAW,+BAA+B;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,qFAAqF;AACrF,MAAM,MAAM,0BAA0B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G,MAAM,CAAU;IAChD,SAAgB,aAAa,sBAAsB;IACnD,SAAgB,kBAAkB,SAAS;CAC9C"}
|
|
@@ -0,0 +1,120 @@
|
|
|
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.
|
|
10
|
+
**************************************************/
|
|
11
|
+
import { BaseRemotableOperation } from "@memberjunction/core";
|
|
12
|
+
// ============================================================
|
|
13
|
+
// RecordProcess.CancelRun — Cancel Record Process Run
|
|
14
|
+
// ============================================================
|
|
15
|
+
/**
|
|
16
|
+
* Cancel Record Process Run
|
|
17
|
+
* 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.
|
|
18
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
19
|
+
* under 'RecordProcess.CancelRun'. This generated base provides the typed contract only (client-safe).
|
|
20
|
+
*/
|
|
21
|
+
export class RecordProcessCancelRunOperation extends BaseRemotableOperation {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.OperationKey = "RecordProcess.CancelRun";
|
|
25
|
+
this.ExecutionMode = 'Sync';
|
|
26
|
+
this.RequiredScope = "recordprocess:execute";
|
|
27
|
+
this.RequiresSystemUser = false;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
// ============================================================
|
|
31
|
+
// RecordProcess.GetRunStatus — Get Record Process Run Status
|
|
32
|
+
// ============================================================
|
|
33
|
+
/**
|
|
34
|
+
* Get Record Process Run Status
|
|
35
|
+
* 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.
|
|
36
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
37
|
+
* under 'RecordProcess.GetRunStatus'. This generated base provides the typed contract only (client-safe).
|
|
38
|
+
*/
|
|
39
|
+
export class RecordProcessGetRunStatusOperation extends BaseRemotableOperation {
|
|
40
|
+
constructor() {
|
|
41
|
+
super(...arguments);
|
|
42
|
+
this.OperationKey = "RecordProcess.GetRunStatus";
|
|
43
|
+
this.ExecutionMode = 'Sync';
|
|
44
|
+
this.RequiredScope = "recordprocess:execute";
|
|
45
|
+
this.RequiresSystemUser = false;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
// ============================================================
|
|
49
|
+
// RecordProcess.PauseRun — Pause Record Process Run
|
|
50
|
+
// ============================================================
|
|
51
|
+
/**
|
|
52
|
+
* Pause Record Process Run
|
|
53
|
+
* 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.
|
|
54
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
55
|
+
* under 'RecordProcess.PauseRun'. This generated base provides the typed contract only (client-safe).
|
|
56
|
+
*/
|
|
57
|
+
export class RecordProcessPauseRunOperation extends BaseRemotableOperation {
|
|
58
|
+
constructor() {
|
|
59
|
+
super(...arguments);
|
|
60
|
+
this.OperationKey = "RecordProcess.PauseRun";
|
|
61
|
+
this.ExecutionMode = 'Sync';
|
|
62
|
+
this.RequiredScope = "recordprocess:execute";
|
|
63
|
+
this.RequiresSystemUser = false;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
// ============================================================
|
|
67
|
+
// RecordProcess.ResumeRun — Resume Record Process Run
|
|
68
|
+
// ============================================================
|
|
69
|
+
/**
|
|
70
|
+
* Resume Record Process Run
|
|
71
|
+
* Resume a paused Record Process run. Returns the run's status. Implemented by RecordProcessResumeRunOperation in @memberjunction/record-set-processor.
|
|
72
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
73
|
+
* under 'RecordProcess.ResumeRun'. This generated base provides the typed contract only (client-safe).
|
|
74
|
+
*/
|
|
75
|
+
export class RecordProcessResumeRunOperation extends BaseRemotableOperation {
|
|
76
|
+
constructor() {
|
|
77
|
+
super(...arguments);
|
|
78
|
+
this.OperationKey = "RecordProcess.ResumeRun";
|
|
79
|
+
this.ExecutionMode = 'Sync';
|
|
80
|
+
this.RequiredScope = "recordprocess:execute";
|
|
81
|
+
this.RequiresSystemUser = false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// ============================================================
|
|
85
|
+
// RecordProcess.RunNow — Run Record Process
|
|
86
|
+
// ============================================================
|
|
87
|
+
/**
|
|
88
|
+
* Run Record Process
|
|
89
|
+
* 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.
|
|
90
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
91
|
+
* under 'RecordProcess.RunNow'. This generated base provides the typed contract only (client-safe).
|
|
92
|
+
*/
|
|
93
|
+
export class RecordProcessRunNowOperation extends BaseRemotableOperation {
|
|
94
|
+
constructor() {
|
|
95
|
+
super(...arguments);
|
|
96
|
+
this.OperationKey = "RecordProcess.RunNow";
|
|
97
|
+
this.ExecutionMode = 'LongRunning';
|
|
98
|
+
this.RequiredScope = "recordprocess:execute";
|
|
99
|
+
this.RequiresSystemUser = false;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
// ============================================================
|
|
103
|
+
// Template.Run — Run Template
|
|
104
|
+
// ============================================================
|
|
105
|
+
/**
|
|
106
|
+
* Run Template
|
|
107
|
+
* Render a template by ID with optional render data. Returns the rendered output + wall-clock render time. Implemented by TemplateRunServerOperation in @memberjunction/templates.
|
|
108
|
+
* GenerationType=Manual — the server body is supplied by a hand-authored subclass registered
|
|
109
|
+
* under 'Template.Run'. This generated base provides the typed contract only (client-safe).
|
|
110
|
+
*/
|
|
111
|
+
export class TemplateRunOperation extends BaseRemotableOperation {
|
|
112
|
+
constructor() {
|
|
113
|
+
super(...arguments);
|
|
114
|
+
this.OperationKey = "Template.Run";
|
|
115
|
+
this.ExecutionMode = 'Sync';
|
|
116
|
+
this.RequiredScope = "template:execute";
|
|
117
|
+
this.RequiresSystemUser = false;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
//# 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;;;;;;;;;mDASmD;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAmF9D,+DAA+D;AAC/D,sDAAsD;AACtD,+DAA+D;AAC/D;;;;;GAKG;AACH,MAAM,OAAO,+BAAgC,SAAQ,sBAAuE;IAA5H;;QACoB,iBAAY,GAAG,yBAAyB,CAAC;QACzC,kBAAa,GAAG,MAAe,CAAC;QAChC,kBAAa,GAAG,uBAAuB,CAAC;QACxC,uBAAkB,GAAG,KAAK,CAAC;IAC/C,CAAC;CAAA;AAED,+DAA+D;AAC/D,6DAA6D;AAC7D,+DAA+D;AAC/D;;;;;GAKG;AACH,MAAM,OAAO,kCAAmC,SAAQ,sBAAuF;IAA/I;;QACoB,iBAAY,GAAG,4BAA4B,CAAC;QAC5C,kBAAa,GAAG,MAAe,CAAC;QAChC,kBAAa,GAAG,uBAAuB,CAAC;QACxC,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,sBAAuE;IAA3H;;QACoB,iBAAY,GAAG,wBAAwB,CAAC;QACxC,kBAAa,GAAG,MAAe,CAAC;QAChC,kBAAa,GAAG,uBAAuB,CAAC;QACxC,uBAAkB,GAAG,KAAK,CAAC;IAC/C,CAAC;CAAA;AAED,+DAA+D;AAC/D,sDAAsD;AACtD,+DAA+D;AAC/D;;;;;GAKG;AACH,MAAM,OAAO,+BAAgC,SAAQ,sBAAuE;IAA5H;;QACoB,iBAAY,GAAG,yBAAyB,CAAC;QACzC,kBAAa,GAAG,MAAe,CAAC;QAChC,kBAAa,GAAG,uBAAuB,CAAC;QACxC,uBAAkB,GAAG,KAAK,CAAC;IAC/C,CAAC;CAAA;AAED,+DAA+D;AAC/D,4CAA4C;AAC5C,+DAA+D;AAC/D;;;;;GAKG;AACH,MAAM,OAAO,4BAA6B,SAAQ,sBAA2E;IAA7H;;QACoB,iBAAY,GAAG,sBAAsB,CAAC;QACtC,kBAAa,GAAG,aAAsB,CAAC;QACvC,kBAAa,GAAG,uBAAuB,CAAC;QACxC,uBAAkB,GAAG,KAAK,CAAC;IAC/C,CAAC;CAAA;AAED,+DAA+D;AAC/D,8BAA8B;AAC9B,+DAA+D;AAC/D;;;;;GAKG;AACH,MAAM,OAAO,oBAAqB,SAAQ,sBAA2D;IAArG;;QACoB,iBAAY,GAAG,cAAc,CAAC;QAC9B,kBAAa,GAAG,MAAe,CAAC;QAChC,kBAAa,GAAG,kBAAkB,CAAC;QACnC,uBAAkB,GAAG,KAAK,CAAC;IAC/C,CAAC;CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './generated/entity_subclasses.js';
|
|
2
|
+
export * from './generated/remote_operations.js';
|
|
2
3
|
export * from "./custom/MJUserViewEntityExtended.js";
|
|
3
4
|
export * from './custom/MJDashboardEntityExtended.js';
|
|
4
5
|
export * from './custom/MJListDetailEntityExtended.js';
|
|
@@ -22,6 +23,7 @@ export * from './engines/artifact-mime-resolver.js';
|
|
|
22
23
|
export * from './engines/artifact-content-storage.js';
|
|
23
24
|
export * from './engines/dashboards.js';
|
|
24
25
|
export * from './engines/EncryptionEngineBase.js';
|
|
26
|
+
export * from './engines/RemoteOperationEngineBase.js';
|
|
25
27
|
export * from './engines/UserInfoEngine.js';
|
|
26
28
|
export * from './engines/ApplicationSettingEngine.js';
|
|
27
29
|
export * from './engines/UserViewEngine.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kCAAkC,CAAA;AAEhD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,uDAAuD,CAAC;AACtE,cAAc,iEAAiE,CAAC;AAChF,cAAc,2CAA2C,CAAC;AAE1D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC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C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAE7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AAErC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './generated/entity_subclasses.js';
|
|
2
|
+
export * from './generated/remote_operations.js';
|
|
2
3
|
export * from "./custom/MJUserViewEntityExtended.js";
|
|
3
4
|
export * from './custom/MJDashboardEntityExtended.js';
|
|
4
5
|
export * from './custom/MJListDetailEntityExtended.js';
|
|
@@ -22,6 +23,7 @@ export * from './engines/artifact-mime-resolver.js';
|
|
|
22
23
|
export * from './engines/artifact-content-storage.js';
|
|
23
24
|
export * from './engines/dashboards.js';
|
|
24
25
|
export * from './engines/EncryptionEngineBase.js';
|
|
26
|
+
export * from './engines/RemoteOperationEngineBase.js';
|
|
25
27
|
export * from './engines/UserInfoEngine.js';
|
|
26
28
|
export * from './engines/ApplicationSettingEngine.js';
|
|
27
29
|
export * from './engines/UserViewEngine.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kCAAkC,CAAA;AAEhD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;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,CAAC;AAC1B,8BAA8B,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/core-entities",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.43.0",
|
|
5
5
|
"description": "Entity subclasses for the metadata layer of MemberJunction defined in the MJ_CORE schema (usually '__mj'), distributed as part of each release of MemberJunction",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"typescript": "^5.9.3"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@memberjunction/ai": "5.
|
|
25
|
-
"@memberjunction/core": "5.
|
|
26
|
-
"@memberjunction/global": "5.
|
|
27
|
-
"@memberjunction/interactive-component-types": "5.
|
|
24
|
+
"@memberjunction/ai": "5.43.0",
|
|
25
|
+
"@memberjunction/core": "5.43.0",
|
|
26
|
+
"@memberjunction/global": "5.43.0",
|
|
27
|
+
"@memberjunction/interactive-component-types": "5.43.0",
|
|
28
28
|
"rxjs": "^7.8.2",
|
|
29
29
|
"zod": "~3.24.4"
|
|
30
30
|
},
|