@memberjunction/record-set-processor-base 6.2.0-edge.4 → 6.2.0-edge.6
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/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/dist/interfaces.d.ts +69 -35
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/metadata-provider-capabilities.d.ts +24 -0
- package/dist/metadata-provider-capabilities.d.ts.map +1 -0
- package/dist/metadata-provider-capabilities.js +36 -0
- package/dist/metadata-provider-capabilities.js.map +1 -0
- package/dist/recordIDs.d.ts +10 -0
- package/dist/recordIDs.d.ts.map +1 -0
- package/dist/recordIDs.js +17 -0
- package/dist/recordIDs.js.map +1 -0
- package/dist/registry.d.ts +17 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +14 -0
- package/dist/registry.js.map +1 -1
- package/dist/types.d.ts +103 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
* @module @memberjunction/record-set-processor-base
|
|
5
5
|
*/
|
|
6
6
|
export * from './types.js';
|
|
7
|
+
export * from './metadata-provider-capabilities.js';
|
|
7
8
|
export * from './interfaces.js';
|
|
8
9
|
export * from './sources/index.js';
|
|
9
10
|
export * from './registry.js';
|
|
11
|
+
export * from './recordIDs.js';
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,kCAAkC,CAAC;AACjD,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
* @module @memberjunction/record-set-processor-base
|
|
5
5
|
*/
|
|
6
6
|
export * from './types.js';
|
|
7
|
+
export * from './metadata-provider-capabilities.js';
|
|
7
8
|
export * from './interfaces.js';
|
|
8
9
|
export * from './sources/index.js';
|
|
9
10
|
export * from './registry.js';
|
|
11
|
+
export * from './recordIDs.js';
|
|
10
12
|
// The RecordProcess.RunNow Remote Operation base + RecordProcessScopeOverride/RecordProcessRunNowInput/Output
|
|
11
13
|
// are now CodeGen-emitted into @memberjunction/core-entities (generated/remote_operations.ts) from the
|
|
12
14
|
// MJ: Remote Operations metadata row.
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,8GAA8G;AAC9G,uGAAuG;AACvG,sCAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,kCAAkC,CAAC;AACjD,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,8GAA8G;AAC9G,uGAAuG;AACvG,sCAAsC"}
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @module @memberjunction/record-set-processor-base
|
|
6
6
|
*/
|
|
7
7
|
import { IMetadataProvider, UserInfo } from '@memberjunction/core';
|
|
8
|
-
import { ProcessCursor, ProcessRunSummary, ProgressInfo, RecordBatch, RecordRef, RecordResult, RunCounts, SourceTypeValue, TriggeredByValue } from './types.js';
|
|
8
|
+
import { ProcessCursor, ProcessRunStatusValue, ProcessRunSummary, ProgressInfo, RecordBatch, RecordRef, RecordResult, RunCounts, SourceTypeValue, TriggeredByValue } from './types.js';
|
|
9
9
|
/** Lightweight, persistable description of a source — used to populate the run header. */
|
|
10
10
|
export interface SourceDescriptor {
|
|
11
11
|
/** The kind of source (View / List / Filter / Array / Keyset / SingleRecord). */
|
|
@@ -38,15 +38,31 @@ export interface IRecordSetSource {
|
|
|
38
38
|
/** Per-record execution context handed to an {@link IRecordProcessor}. */
|
|
39
39
|
export interface RecordProcessorContext {
|
|
40
40
|
/** The acting user. */
|
|
41
|
-
|
|
41
|
+
ContextUser: UserInfo;
|
|
42
42
|
/** The owning provider — use this for data access (never `new Metadata()`), per the multi-provider rule. */
|
|
43
|
-
|
|
43
|
+
Provider: IMetadataProvider;
|
|
44
44
|
/** ID of the current process run, when one is being tracked. */
|
|
45
|
-
|
|
45
|
+
ProcessRunID?: string;
|
|
46
46
|
/** ID of the originating Record Process definition, when applicable. */
|
|
47
|
-
|
|
47
|
+
RecordProcessID?: string;
|
|
48
48
|
/** Target entity ID, when applicable. */
|
|
49
|
-
|
|
49
|
+
EntityID?: string;
|
|
50
|
+
/** When true, write-back overwrites values a person entered and retires their Human values (default false). */
|
|
51
|
+
OverwriteHumanValues?: boolean;
|
|
52
|
+
/** Compute-only run: Infer, FieldRules and write-back persist nothing; Action and Agent work runs for real. */
|
|
53
|
+
DryRun?: boolean;
|
|
54
|
+
/** What triggered the run (the version gate treats scheduled and on-demand runs differently). */
|
|
55
|
+
TriggeredBy?: TriggeredByValue;
|
|
56
|
+
/** Skip Dedup Cache lookups (golden-set and consistency evaluations measure the model, not the cache). */
|
|
57
|
+
BypassCache?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/** Run-level summary context passed to {@link IRecordProcessor.BuildRunSummary} when a run completes. */
|
|
60
|
+
export interface ProcessorRunSummaryContext {
|
|
61
|
+
RecordProcessID?: string;
|
|
62
|
+
Counts: RunCounts;
|
|
63
|
+
Status: ProcessRunStatusValue;
|
|
64
|
+
DryRun: boolean;
|
|
65
|
+
Results: ReadonlyArray<RecordResult>;
|
|
50
66
|
}
|
|
51
67
|
/**
|
|
52
68
|
* PROCESSOR (executor) seam — does the work for a single record and returns its outcome. Concrete
|
|
@@ -84,6 +100,22 @@ export interface IRecordProcessor {
|
|
|
84
100
|
* @param context - The run-level execution context (user, provider, run/process IDs).
|
|
85
101
|
*/
|
|
86
102
|
Preflight?(context: RecordProcessorContext): Promise<void>;
|
|
103
|
+
/** Optional hook to compute a custom basis hash for watermark change detection. */
|
|
104
|
+
ComputeBasisHash?(record: RecordRef, context: RecordProcessorContext): Promise<string | undefined>;
|
|
105
|
+
/** Optional default dry-run sample cap for this processor when none is explicitly configured. */
|
|
106
|
+
DefaultDryRunSampleSize?: number;
|
|
107
|
+
/** When true, a run that completed with one or more failed records ends with status `Failed`. */
|
|
108
|
+
FailRunOnRecordError?: boolean;
|
|
109
|
+
/** Optional hook to enrich output mapping configuration and report whether the processor has unmapped writes. */
|
|
110
|
+
PrepareOutputMapping?(mapping: Record<string, unknown> | undefined): {
|
|
111
|
+
OutputMapping?: Record<string, unknown>;
|
|
112
|
+
HasUnmappedWrites?: boolean;
|
|
113
|
+
};
|
|
114
|
+
/** Optional hook to build a processor-specific run summary (and dry-run refusal reason) at the end of a run. */
|
|
115
|
+
BuildRunSummary?(context: ProcessorRunSummaryContext): {
|
|
116
|
+
ResultSummary?: unknown;
|
|
117
|
+
WouldRefuse?: string;
|
|
118
|
+
};
|
|
87
119
|
}
|
|
88
120
|
/** Opaque handle returned by a tracker's `BeginRun`, threaded back through the other tracker calls. */
|
|
89
121
|
export interface RunHandle {
|
|
@@ -143,62 +175,64 @@ export interface IProcessRunTracker {
|
|
|
143
175
|
/** Options for a single `RecordSetProcessor.Process()` invocation. */
|
|
144
176
|
export interface RecordSetProcessOptions {
|
|
145
177
|
/** The record-set source to iterate. */
|
|
146
|
-
|
|
178
|
+
Source: IRecordSetSource;
|
|
147
179
|
/** The per-record processor (executor). */
|
|
148
|
-
|
|
180
|
+
Processor: IRecordProcessor;
|
|
149
181
|
/** Persistence tracker (defaults to `GenericProcessRunTracker` in the engine). */
|
|
150
|
-
|
|
182
|
+
Tracker?: IProcessRunTracker;
|
|
151
183
|
/** The acting user (required). */
|
|
152
|
-
|
|
184
|
+
ContextUser: UserInfo;
|
|
153
185
|
/** The owning provider; defaults to the active provider when omitted. */
|
|
154
|
-
|
|
186
|
+
Provider?: IMetadataProvider;
|
|
155
187
|
/** Optional FK to the originating Record Process definition. */
|
|
156
|
-
|
|
188
|
+
RecordProcessID?: string;
|
|
157
189
|
/** Optional FK to the owning `ScheduledJobRun` when launched by the scheduler. */
|
|
158
|
-
|
|
190
|
+
ScheduledJobRunID?: string;
|
|
159
191
|
/** Optional target entity ID (otherwise derived from the source). */
|
|
160
|
-
|
|
192
|
+
EntityID?: string;
|
|
161
193
|
/** What triggered the run (default `Manual`). */
|
|
162
|
-
|
|
194
|
+
TriggeredBy?: TriggeredByValue;
|
|
163
195
|
/** Records per batch (default 100). */
|
|
164
|
-
|
|
196
|
+
BatchSize?: number;
|
|
165
197
|
/** Maximum records processed concurrently within a batch (default 1). */
|
|
166
|
-
|
|
198
|
+
MaxConcurrency?: number;
|
|
167
199
|
/** Error-rate circuit breaker threshold, as a percentage (default 20). */
|
|
168
|
-
|
|
200
|
+
ErrorThresholdPercent?: number;
|
|
169
201
|
/** Delay between batches in milliseconds (default 0). */
|
|
170
|
-
|
|
202
|
+
DelayBetweenBatchesMs?: number;
|
|
171
203
|
/** Optional rate-limit applied once per batch before processing. */
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
204
|
+
RateLimit?: {
|
|
205
|
+
RequestsPerMinute?: number;
|
|
206
|
+
TokensPerMinute?: number;
|
|
175
207
|
};
|
|
176
208
|
/** Whether to resume from a prior checkpoint when one exists (default true). */
|
|
177
|
-
|
|
209
|
+
Resume?: boolean;
|
|
178
210
|
/** Hard cap on the number of records processed this run. */
|
|
179
|
-
|
|
211
|
+
MaxRecords?: number;
|
|
180
212
|
/** Progress callback invoked after each batch. */
|
|
181
|
-
|
|
213
|
+
OnProgress?: (progress: ProgressInfo) => void;
|
|
182
214
|
/**
|
|
183
|
-
* Budget-gate hook invoked after each batch. Return `{
|
|
215
|
+
* Budget-gate hook invoked after each batch. Return `{ Continue: false, Reason }` to pause the
|
|
184
216
|
* run (e.g. when a per-run cost/item budget is exhausted).
|
|
185
217
|
*/
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
218
|
+
OnAfterBatch?: (batch: RecordRef[], processed: number) => Promise<{
|
|
219
|
+
Continue: boolean;
|
|
220
|
+
Reason?: string;
|
|
189
221
|
} | null>;
|
|
190
222
|
/** JSON-serializable snapshot of configuration, persisted on the run header. */
|
|
191
|
-
|
|
223
|
+
Configuration?: unknown;
|
|
192
224
|
/** True when this is a dry-run (compute-only) pass — recorded on the run header so history can distinguish previews from real applies. */
|
|
193
|
-
|
|
225
|
+
DryRun?: boolean;
|
|
194
226
|
/** Whether to skip unchanged records (default false). */
|
|
195
|
-
|
|
227
|
+
SkipUnchanged?: boolean;
|
|
196
228
|
/** How unchanged records are detected: Checksum, UpdatedAt, or None (default 'Checksum'). */
|
|
197
|
-
|
|
229
|
+
WatermarkStrategy?: WatermarkStrategyValue;
|
|
198
230
|
/** Timestamp of the last run, used for 'UpdatedAt' strategy. */
|
|
199
|
-
|
|
231
|
+
LastRunAt?: Date | null;
|
|
232
|
+
/** Overwrite values a person entered (default false); such a run skips no record on its watermark. */
|
|
233
|
+
OverwriteHumanValues?: boolean;
|
|
200
234
|
}
|
|
201
|
-
/** Strategy used to detect unchanged records when
|
|
235
|
+
/** Strategy used to detect unchanged records when SkipUnchanged is enabled. */
|
|
202
236
|
export type WatermarkStrategyValue = 'Checksum' | 'UpdatedAt' | 'None';
|
|
203
237
|
export type { ProgressInfo, ProcessRunSummary };
|
|
204
238
|
//# sourceMappingURL=interfaces.d.ts.map
|
package/dist/interfaces.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EACH,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,SAAS,EACT,YAAY,EACZ,SAAS,EACT,eAAe,EACf,gBAAgB,EACnB,MAAM,SAAS,CAAC;AAEjB,0FAA0F;AAC1F,MAAM,WAAW,gBAAgB;IAC7B,iFAAiF;IACjF,UAAU,EAAE,eAAe,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAE3I,2EAA2E;IAC3E,QAAQ,IAAI,gBAAgB,CAAC;CAChC;AAED,0EAA0E;AAC1E,MAAM,WAAW,sBAAsB;IACnC,uBAAuB;IACvB,WAAW,EAAE,QAAQ,CAAC;IACtB,4GAA4G;IAC5G,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,gE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E,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Capability checks on a metadata provider that `IMetadataProvider` does not declare, and the isolated
|
|
3
|
+
* unit of work shared by transactional metadata consumers and the Record Set Processor's write-back.
|
|
4
|
+
* @module @memberjunction/record-set-processor-base
|
|
5
|
+
*/
|
|
6
|
+
import { type IEntityDataProvider, type IMetadataProvider } from '@memberjunction/core';
|
|
7
|
+
/** A metadata provider that also exposes the entity-transaction members of `IEntityDataProvider`. */
|
|
8
|
+
export type TransactionalMetadataProvider = IMetadataProvider & Pick<IEntityDataProvider, 'SupportsEntityTransactions' | 'BeginEntityTransaction'>;
|
|
9
|
+
/** Capability checks on a metadata provider, and the isolated unit of work built on them. */
|
|
10
|
+
export declare class MetadataProviderCapabilities {
|
|
11
|
+
/** Whether the provider exposes the entity-transaction members (a database provider does). */
|
|
12
|
+
static IsTransactionalProvider(p: IMetadataProvider): p is TransactionalMetadataProvider;
|
|
13
|
+
/**
|
|
14
|
+
* Runs one unit of work (a record's write-back, a version-registry lock) on its own provider instance
|
|
15
|
+
* (`CreateIndependentInstance`, released afterwards), so no other statement on the shared provider lands in its
|
|
16
|
+
* transaction. When the caller is in a transaction on `provider` (another scope's transaction does not count), the
|
|
17
|
+
* unit joins it as a savepoint and the caller owns atomicity; a provider that is not a `DatabaseProviderBase` (a
|
|
18
|
+
* client provider) runs the unit on itself.
|
|
19
|
+
* @param provider - the caller's provider
|
|
20
|
+
* @param work - the unit, given the provider every read, save and the transaction must use
|
|
21
|
+
*/
|
|
22
|
+
static RunIsolated<T>(provider: IMetadataProvider, work: (unitProvider: IMetadataProvider) => Promise<T>): Promise<T>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=metadata-provider-capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata-provider-capabilities.d.ts","sourceRoot":"","sources":["../src/metadata-provider-capabilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAwB,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9G,qGAAqG;AACrG,MAAM,MAAM,6BAA6B,GAAG,iBAAiB,GAAG,IAAI,CAAC,mBAAmB,EAAE,4BAA4B,GAAG,wBAAwB,CAAC,CAAC;AAEnJ,6FAA6F;AAC7F,qBAAa,4BAA4B;IACrC,8FAA8F;WAChF,uBAAuB,CAAC,CAAC,EAAE,iBAAiB,GAAG,CAAC,IAAI,6BAA6B;IAI/F;;;;;;;;OAQG;WACiB,WAAW,CAAC,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,YAAY,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAYrI"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Capability checks on a metadata provider that `IMetadataProvider` does not declare, and the isolated
|
|
3
|
+
* unit of work shared by transactional metadata consumers and the Record Set Processor's write-back.
|
|
4
|
+
* @module @memberjunction/record-set-processor-base
|
|
5
|
+
*/
|
|
6
|
+
import { DatabaseProviderBase } from '@memberjunction/core';
|
|
7
|
+
/** Capability checks on a metadata provider, and the isolated unit of work built on them. */
|
|
8
|
+
export class MetadataProviderCapabilities {
|
|
9
|
+
/** Whether the provider exposes the entity-transaction members (a database provider does). */
|
|
10
|
+
static IsTransactionalProvider(p) {
|
|
11
|
+
return 'BeginEntityTransaction' in p && typeof p.BeginEntityTransaction === 'function';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Runs one unit of work (a record's write-back, a version-registry lock) on its own provider instance
|
|
15
|
+
* (`CreateIndependentInstance`, released afterwards), so no other statement on the shared provider lands in its
|
|
16
|
+
* transaction. When the caller is in a transaction on `provider` (another scope's transaction does not count), the
|
|
17
|
+
* unit joins it as a savepoint and the caller owns atomicity; a provider that is not a `DatabaseProviderBase` (a
|
|
18
|
+
* client provider) runs the unit on itself.
|
|
19
|
+
* @param provider - the caller's provider
|
|
20
|
+
* @param work - the unit, given the provider every read, save and the transaction must use
|
|
21
|
+
*/
|
|
22
|
+
static async RunIsolated(provider, work) {
|
|
23
|
+
// The transaction members live on DatabaseProviderBase; any other provider (a client provider) runs the unit on itself.
|
|
24
|
+
if (!(provider instanceof DatabaseProviderBase) || (provider.CapturePostCommitToken()?.Epoch ?? null) !== null) {
|
|
25
|
+
return work(provider);
|
|
26
|
+
}
|
|
27
|
+
const unit = await provider.CreateIndependentInstance();
|
|
28
|
+
try {
|
|
29
|
+
return await work(unit);
|
|
30
|
+
}
|
|
31
|
+
finally {
|
|
32
|
+
await unit.ReleaseIndependentInstance();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=metadata-provider-capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata-provider-capabilities.js","sourceRoot":"","sources":["../src/metadata-provider-capabilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,oBAAoB,EAAoD,MAAM,sBAAsB,CAAC;AAK9G,6FAA6F;AAC7F,MAAM,OAAO,4BAA4B;IACrC,8FAA8F;IACvF,MAAM,CAAC,uBAAuB,CAAC,CAAoB;QACtD,OAAO,wBAAwB,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,sBAAsB,KAAK,UAAU,CAAC;IAC3F,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,KAAK,CAAC,WAAW,CAAI,QAA2B,EAAE,IAAqD;QACjH,wHAAwH;QACxH,IAAI,CAAC,CAAC,QAAQ,YAAY,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,sBAAsB,EAAE,EAAE,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;YAC7G,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC1B,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,yBAAyB,EAAE,CAAC;QACxD,IAAI,CAAC;YACD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;gBAAS,CAAC;YACP,MAAM,IAAI,CAAC,0BAA0B,EAAE,CAAC;QAC5C,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** In-memory matching of `RecordRef.RecordID` values against IDs a database returned. */
|
|
2
|
+
export declare class RecordIDs {
|
|
3
|
+
/**
|
|
4
|
+
* The key a record ID is matched under: a UUID normalised by case (SQL Server returns UUIDs upper-case, a caller's
|
|
5
|
+
* scope may give them lower-case), any other ID (a composite key segment, a case-sensitive natural key) unchanged.
|
|
6
|
+
* For in-memory maps only; never interpolate the result into SQL.
|
|
7
|
+
*/
|
|
8
|
+
static Key(recordID: string): string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=recordIDs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recordIDs.d.ts","sourceRoot":"","sources":["../src/recordIDs.ts"],"names":[],"mappings":"AAMA,yFAAyF;AACzF,qBAAa,SAAS;IAClB;;;;OAIG;WACW,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;CAG9C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview How a record ID is matched in memory: a UUID by its normalised form, any other key as it is.
|
|
3
|
+
* @module @memberjunction/record-set-processor-base
|
|
4
|
+
*/
|
|
5
|
+
import { IsValidUUID, NormalizeUUID } from '@memberjunction/global';
|
|
6
|
+
/** In-memory matching of `RecordRef.RecordID` values against IDs a database returned. */
|
|
7
|
+
export class RecordIDs {
|
|
8
|
+
/**
|
|
9
|
+
* The key a record ID is matched under: a UUID normalised by case (SQL Server returns UUIDs upper-case, a caller's
|
|
10
|
+
* scope may give them lower-case), any other ID (a composite key segment, a case-sensitive natural key) unchanged.
|
|
11
|
+
* For in-memory maps only; never interpolate the result into SQL.
|
|
12
|
+
*/
|
|
13
|
+
static Key(recordID) {
|
|
14
|
+
return IsValidUUID(recordID) ? NormalizeUUID(recordID) : recordID;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=recordIDs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recordIDs.js","sourceRoot":"","sources":["../src/recordIDs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEpE,yFAAyF;AACzF,MAAM,OAAO,SAAS;IAClB;;;;OAIG;IACI,MAAM,CAAC,GAAG,CAAC,QAAgB;QAC9B,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IACtE,CAAC;CACJ"}
|
package/dist/registry.d.ts
CHANGED
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module @memberjunction/record-set-processor-base
|
|
13
13
|
*/
|
|
14
|
+
import type { IMetadataProvider } from '@memberjunction/core';
|
|
14
15
|
import { BaseSingleton } from '@memberjunction/global';
|
|
15
|
-
import { IRecordProcessor } from './interfaces.js';
|
|
16
|
+
import { IProcessRunTracker, IRecordProcessor } from './interfaces.js';
|
|
16
17
|
/**
|
|
17
18
|
* The per-run context handed to a registered factory. Carries the resolved Record Process fields the
|
|
18
19
|
* factory needs to build its processor, plus the dry-run flag, WITHOUT coupling the base package to
|
|
@@ -37,6 +38,10 @@ export interface RecordProcessorBuildContext {
|
|
|
37
38
|
RecordProcessName?: string;
|
|
38
39
|
/** True when this is a dry-run (compute-only) pass — the factory should honor it when supported. */
|
|
39
40
|
DryRun?: boolean;
|
|
41
|
+
/** The run's tracker, when one was supplied, so a processor paired with its own tracker can reach it. */
|
|
42
|
+
Tracker?: IProcessRunTracker;
|
|
43
|
+
/** The active metadata provider for building the processor. */
|
|
44
|
+
Provider?: IMetadataProvider;
|
|
40
45
|
/**
|
|
41
46
|
* The loaded Record Process record itself, as an opaque object. The engine passes the real
|
|
42
47
|
* `MJRecordProcessEntity`; a factory that needs fields beyond those projected above can read them
|
|
@@ -52,6 +57,11 @@ export interface RecordProcessorBuildContext {
|
|
|
52
57
|
* error (e.g. a missing required id), exactly as the built-in work types do.
|
|
53
58
|
*/
|
|
54
59
|
export type RecordProcessorFactory = (context: RecordProcessorBuildContext) => IRecordProcessor | null | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Builds the tracker a work type's processor is paired with. Registered here so every trigger (manual,
|
|
62
|
+
* scheduled, on-change) gets it, not just callers that know to pass one. `undefined` keeps the default.
|
|
63
|
+
*/
|
|
64
|
+
export type RecordProcessorTrackerFactory = (context: RecordProcessorBuildContext) => IProcessRunTracker | null | undefined;
|
|
55
65
|
/**
|
|
56
66
|
* Process-wide registry of work-type → processor factory, used by the engine's `buildProcessor()` to
|
|
57
67
|
* resolve work types beyond its built-ins. A {@link BaseSingleton} so there is exactly one instance
|
|
@@ -63,6 +73,8 @@ export type RecordProcessorFactory = (context: RecordProcessorBuildContext) => I
|
|
|
63
73
|
export declare class RecordProcessorRegistry extends BaseSingleton<RecordProcessorRegistry> {
|
|
64
74
|
/** work-type (normalized) → factory. */
|
|
65
75
|
private readonly factories;
|
|
76
|
+
/** work-type (normalized) → the tracker its processor is paired with, when it has one. */
|
|
77
|
+
private readonly trackerFactories;
|
|
66
78
|
/** @internal — use {@link RecordProcessorRegistry.Instance}. */
|
|
67
79
|
protected constructor();
|
|
68
80
|
/** The single process-wide registry instance. */
|
|
@@ -77,6 +89,10 @@ export declare class RecordProcessorRegistry extends BaseSingleton<RecordProcess
|
|
|
77
89
|
* @param factory builds the processor for that work type from the per-run context
|
|
78
90
|
*/
|
|
79
91
|
Register(workType: string, factory: RecordProcessorFactory): void;
|
|
92
|
+
/** Register the tracker a work type's processor is paired with. Optional, independent of {@link Register}. */
|
|
93
|
+
RegisterTracker(workType: string, factory: RecordProcessorTrackerFactory): void;
|
|
94
|
+
/** The tracker registered for a work type, or undefined to use the engine's default. */
|
|
95
|
+
ResolveTracker(context: RecordProcessorBuildContext): IProcessRunTracker | undefined;
|
|
80
96
|
/** Whether a factory is registered for the given work type (case-insensitive). */
|
|
81
97
|
Has(workType: string | null | undefined): boolean;
|
|
82
98
|
/**
|
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEpE;;;;;;GAMG;AACH,MAAM,WAAW,2BAA2B;IACxC,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,4FAA4F;IAC5F,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,qFAAqF;IACrF,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6C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2B,GAAG,gBAAgB,GAAG,IAAI;IAQ7E,0FAA0F;IAC1F,IAAW,mBAAmB,IAAI,MAAM,EAAE,CAEzC;IAED,sGAAsG;IAC/F,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;CAG/C"}
|
package/dist/registry.js
CHANGED
|
@@ -26,6 +26,8 @@ export class RecordProcessorRegistry extends BaseSingleton {
|
|
|
26
26
|
super();
|
|
27
27
|
/** work-type (normalized) → factory. */
|
|
28
28
|
this.factories = new Map();
|
|
29
|
+
/** work-type (normalized) → the tracker its processor is paired with, when it has one. */
|
|
30
|
+
this.trackerFactories = new Map();
|
|
29
31
|
}
|
|
30
32
|
/** The single process-wide registry instance. */
|
|
31
33
|
static get Instance() {
|
|
@@ -48,6 +50,18 @@ export class RecordProcessorRegistry extends BaseSingleton {
|
|
|
48
50
|
}
|
|
49
51
|
this.factories.set(this.normalize(workType), factory);
|
|
50
52
|
}
|
|
53
|
+
/** Register the tracker a work type's processor is paired with. Optional, independent of {@link Register}. */
|
|
54
|
+
RegisterTracker(workType, factory) {
|
|
55
|
+
if (!workType || !workType.trim()) {
|
|
56
|
+
throw new Error('RecordProcessorRegistry.RegisterTracker: workType must be a non-empty string');
|
|
57
|
+
}
|
|
58
|
+
this.trackerFactories.set(this.normalize(workType), factory);
|
|
59
|
+
}
|
|
60
|
+
/** The tracker registered for a work type, or undefined to use the engine's default. */
|
|
61
|
+
ResolveTracker(context) {
|
|
62
|
+
const factory = this.trackerFactories.get(this.normalize(context.WorkType));
|
|
63
|
+
return factory?.(context) ?? undefined;
|
|
64
|
+
}
|
|
51
65
|
/** Whether a factory is registered for the given work type (case-insensitive). */
|
|
52
66
|
Has(workType) {
|
|
53
67
|
return workType != null && this.factories.has(this.normalize(workType));
|
package/dist/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
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,CAAC,OAAoC;QACtD,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC5E,OAAO,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC;IAC3C,CAAC;IAED,kFAAkF;IAC3E,GAAG,CAAC,QAAmC;QAC1C,OAAO,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;OAKG;IACI,OAAO,CAAC,OAAoC;QAC/C,MAAM,OAAO,GAAG,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC5G,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC;IACpC,CAAC;IAED,0FAA0F;IAC1F,IAAW,mBAAmB;QAC1B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED,sGAAsG;IAC/F,UAAU,CAAC,QAAgB;QAC9B,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3D,CAAC;CACJ"}
|
package/dist/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* carry no server-only dependencies, so they are safe to import on the client.
|
|
5
5
|
* @module @memberjunction/record-set-processor-base
|
|
6
6
|
*/
|
|
7
|
+
import type { FieldChange } from '@memberjunction/global';
|
|
7
8
|
/** A reference to a single record to be processed. */
|
|
8
9
|
export interface RecordRef {
|
|
9
10
|
/** ID of the entity this record belongs to. */
|
|
@@ -42,6 +43,10 @@ export type RecordResultStatusValue = 'Succeeded' | 'Failed' | 'Skipped';
|
|
|
42
43
|
export type TriggeredByValue = 'OnChange' | 'Schedule' | 'OnDemand' | 'Manual';
|
|
43
44
|
/** The kind of record-set source. Mirrors the `MJ: Process Runs.SourceType` value list. */
|
|
44
45
|
export type SourceTypeValue = 'View' | 'List' | 'Filter' | 'Array' | 'Keyset' | 'SingleRecord';
|
|
46
|
+
/** Whether a record write changed anything. */
|
|
47
|
+
export type RecordWriteOutcome = 'Upserted' | 'Unchanged';
|
|
48
|
+
/** Why a record failed, when the run counts it apart: an output broke its value constraint. */
|
|
49
|
+
export type RecordFailureKind = 'RejectedInvalid';
|
|
45
50
|
/** The outcome of processing a single record, returned by an {@link IRecordProcessor}. */
|
|
46
51
|
export interface RecordResult {
|
|
47
52
|
/** Whether the record succeeded, failed, or was skipped. */
|
|
@@ -50,19 +55,35 @@ export interface RecordResult {
|
|
|
50
55
|
ResultPayload?: unknown;
|
|
51
56
|
/** Error detail when `Status` is `Failed`. */
|
|
52
57
|
ErrorMessage?: string;
|
|
58
|
+
/** Set when the answer was rejected (see {@link RecordFailureKind}): the run counts it apart from other failures. */
|
|
59
|
+
FailureKind?: RecordFailureKind;
|
|
60
|
+
/** The outputs answered below their confidence floor and withheld. */
|
|
61
|
+
BelowConfidenceOutputs?: string[];
|
|
62
|
+
/** Non-fatal problems with this record's processing (e.g. its cache entry could not be stored). */
|
|
63
|
+
Warnings?: string[];
|
|
53
64
|
/** Processing duration in milliseconds (the engine fills this in if the processor does not). */
|
|
54
65
|
DurationMs?: number;
|
|
55
66
|
/** Number of attempts made for this record. */
|
|
56
67
|
AttemptCount?: number;
|
|
57
68
|
/** Deep-trace link to an Action Execution Log, when the work was an Action. */
|
|
58
69
|
ActionExecutionLogID?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Resolves once the `MJ: Action Execution Logs` row named by {@link ActionExecutionLogID} has been
|
|
72
|
+
* written. The Action engine writes that row fire-and-forget, so the ID can name a row that does not
|
|
73
|
+
* exist yet. A tracker that stores `ActionExecutionLogID` in a foreign key must not save the row
|
|
74
|
+
* before this resolves; it should queue the wait with the save rather than await it here, so the
|
|
75
|
+
* per-record loop never blocks on the log write. `RecordSetProcessor.Process` also awaits it once,
|
|
76
|
+
* before `CompleteRun`, so a run never returns while a log row is still being written, whatever the
|
|
77
|
+
* tracker. Never rejects. A live promise, never serialized; set only by the Action record processor.
|
|
78
|
+
*/
|
|
79
|
+
ActionExecutionLogPersisted?: Promise<void>;
|
|
59
80
|
/** Deep-trace link to an AI Agent Run, when the work was an Agent. */
|
|
60
81
|
AIAgentRunID?: string;
|
|
61
82
|
/** Deep-trace link to an AI Prompt Run, when the work was an Infer-and-Write-Back. */
|
|
62
83
|
AIPromptRunID?: string;
|
|
63
84
|
/**
|
|
64
85
|
* The `MJ: AI Prompts` row behind `AIPromptRunID` and `PromptVersionHash`, when it is not the Record
|
|
65
|
-
* Process's own prompt (
|
|
86
|
+
* Process's own prompt (an escalated record is answered by its target prompt).
|
|
66
87
|
* Absent means the process's own prompt.
|
|
67
88
|
*/
|
|
68
89
|
PromptID?: string;
|
|
@@ -70,8 +91,13 @@ export interface RecordResult {
|
|
|
70
91
|
PromptVersionHash?: string;
|
|
71
92
|
/** Reference to the FeatureValueCache entry when served from or saved to the cache. */
|
|
72
93
|
FeatureValueCacheID?: string;
|
|
73
|
-
/** Per-output confidence scores keyed by output Name
|
|
94
|
+
/** Per-output confidence scores keyed by output Name: the driver's own, else the answer's at each ConfidenceRef. */
|
|
74
95
|
Confidence?: Record<string, number>;
|
|
96
|
+
/** Whether this record's values and write-back changed anything. Absent on a dry run. */
|
|
97
|
+
Outcome?: RecordWriteOutcome;
|
|
98
|
+
/** True when a dry run computed the record (nothing written, no `Outcome`). */
|
|
99
|
+
DryRun?: boolean;
|
|
100
|
+
HumanValuesPreserved?: number;
|
|
75
101
|
}
|
|
76
102
|
/** Running tallies for a process run. */
|
|
77
103
|
export interface RunCounts {
|
|
@@ -84,7 +110,7 @@ export interface RunCounts {
|
|
|
84
110
|
/** Records that were skipped. */
|
|
85
111
|
Skipped: number;
|
|
86
112
|
}
|
|
87
|
-
/** Progress snapshot emitted to a run's `
|
|
113
|
+
/** Progress snapshot emitted to a run's `OnProgress` callback. */
|
|
88
114
|
export interface ProgressInfo extends RunCounts {
|
|
89
115
|
/** Known total record count, or null when the total is not known up-front. */
|
|
90
116
|
Total: number | null;
|
|
@@ -103,10 +129,84 @@ export interface ProcessRunSummary extends RunCounts {
|
|
|
103
129
|
EndTime?: Date;
|
|
104
130
|
/** Run-level error message when `Status` is `Failed`. */
|
|
105
131
|
ErrorMessage?: string;
|
|
132
|
+
/** Optional processor-specific run summary persisted as JSON in `MJ: Process Runs.ResultSummary`. */
|
|
133
|
+
ResultSummary?: unknown;
|
|
134
|
+
/** On a dry run, why a real run would be refused (e.g. a prerequisite or version gate is not met). */
|
|
135
|
+
WouldRefuse?: string;
|
|
106
136
|
}
|
|
107
137
|
/** Result returned by `RecordSetProcessor.Process()` — a run summary plus the persisted run ID. */
|
|
108
138
|
export interface ProcessRunResult extends ProcessRunSummary {
|
|
109
139
|
/** ID of the persisted `MJ: Process Runs` row, when a persisting tracker was used. */
|
|
110
140
|
ProcessRunID?: string;
|
|
111
141
|
}
|
|
142
|
+
/** Preview outcome for a single resolved tag. */
|
|
143
|
+
export interface TagWriteBackPreview {
|
|
144
|
+
tagText: string;
|
|
145
|
+
resolvedTagID?: string;
|
|
146
|
+
resolvedTagName?: string;
|
|
147
|
+
matched: boolean;
|
|
148
|
+
created: boolean;
|
|
149
|
+
rootTagID: string;
|
|
150
|
+
depth?: number;
|
|
151
|
+
error?: string;
|
|
152
|
+
}
|
|
153
|
+
/** Outcome of the engine's `ApplyOutputMapping`. */
|
|
154
|
+
export interface WriteBackResult {
|
|
155
|
+
/** True if the processed record's fields were actually updated (false on a dry-run, and when every mapped field already held its value). */
|
|
156
|
+
updatedRecord: boolean;
|
|
157
|
+
/** True when anything was written (record field, child insert/update/delete, tag). False for an identical re-run. */
|
|
158
|
+
changed: boolean;
|
|
159
|
+
/** ID of the created child record, when a single child mapping was applied (absent on a dry-run). */
|
|
160
|
+
createdChildID?: string;
|
|
161
|
+
/** IDs of created child records when childRecords (or fan-out) was applied (absent on a dry-run). */
|
|
162
|
+
createdChildIDs?: string[];
|
|
163
|
+
updatedChildIDs?: string[];
|
|
164
|
+
deletedChildIDs?: string[];
|
|
165
|
+
unchangedChildIDs?: string[];
|
|
166
|
+
/** IDs of human-owned child rows the result also proposed and that were left untouched. */
|
|
167
|
+
preservedHumanChildIDs?: string[];
|
|
168
|
+
preservedHumanFields?: string[];
|
|
169
|
+
/** Fields whose Human value a run that overwrites human values retired (the field is the processor's again). */
|
|
170
|
+
retiredHumanFields?: string[];
|
|
171
|
+
/** Mapped fields whose answer was withheld below its confidence floor: cleared where the processor wrote the value. */
|
|
172
|
+
withheldFields?: string[];
|
|
173
|
+
withheldKeptFields?: string[];
|
|
174
|
+
withheldChildEntities?: string[];
|
|
175
|
+
/** IDs of created tagged item records (absent on a dry-run). */
|
|
176
|
+
createdTaggedItemIDs?: string[];
|
|
177
|
+
/** True when this was a dry-run: values were computed (and field names validated) but NOTHING was saved. */
|
|
178
|
+
dryRun?: boolean;
|
|
179
|
+
/** On a dry-run, the fields the real write WOULD change on the processed record, with their new values. */
|
|
180
|
+
previewFields?: Record<string, unknown>;
|
|
181
|
+
/** On a dry-run with a single child mapping, the child values the real write WOULD store. */
|
|
182
|
+
previewChild?: Record<string, unknown>;
|
|
183
|
+
/** On a dry-run with child mappings, the child values the real write WOULD store (an insert's, or an update's differing ones). */
|
|
184
|
+
previewChildren?: Array<Record<string, unknown>>;
|
|
185
|
+
/** On a dry-run with tag mappings, the resolved tag previews. */
|
|
186
|
+
previewTags?: TagWriteBackPreview[];
|
|
187
|
+
/** On a dry run: what the real write would fail on. Absent when the real write would go through. */
|
|
188
|
+
previewErrors?: string[];
|
|
189
|
+
/** On a dry run: processor-deferred record values (e.g. unmapped outputs) that would be stored. Absent when none would change. */
|
|
190
|
+
previewValues?: WriteBackValuePreview[];
|
|
191
|
+
}
|
|
192
|
+
/** On a dry run, a processor-deferred value that would be stored: its name/label, previous stored value, and proposed value. */
|
|
193
|
+
export interface WriteBackValuePreview {
|
|
194
|
+
Name: string;
|
|
195
|
+
Label?: string;
|
|
196
|
+
Previous: unknown;
|
|
197
|
+
Proposed: unknown;
|
|
198
|
+
}
|
|
199
|
+
/** The `MJ: Process Run Details.ResultPayload` of a record a write-back work type (Infer, Action, Agent) processed. */
|
|
200
|
+
export interface WriteBackRunPayload {
|
|
201
|
+
/** The work's output, before the output mapping was applied. `unknown`: its shape belongs to whichever work type ran. */
|
|
202
|
+
output?: unknown;
|
|
203
|
+
/** What the output mapping wrote, or on a dry run would write. */
|
|
204
|
+
writeBack?: WriteBackResult;
|
|
205
|
+
}
|
|
206
|
+
/** The structured payload recorded on each Process Run Detail of a FieldRules run (the per-record diff). */
|
|
207
|
+
export interface FieldRulesResultPayload {
|
|
208
|
+
DryRun: boolean;
|
|
209
|
+
Changes: FieldChange[];
|
|
210
|
+
ChangedFields: string[];
|
|
211
|
+
}
|
|
112
212
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,sDAAsD;AACtD,MAAM,WAAW,SAAS;IACtB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,+FAA+F;IAC/F,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,sDAAsD;IACtD,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ClI,aAAa,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAC3C;AAED,gIAAgI;AAChI,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAED,uHAAuH;AACvH,MAAM,WAAW,mBAAmB;IAChC,yHAAyH;IACzH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kEAAkE;IAClE,SAAS,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,4GAA4G;AAC5G,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,EAAE,CAAC;CAC3B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/record-set-processor-base",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.2.0-edge.
|
|
4
|
+
"version": "6.2.0-edge.6",
|
|
5
5
|
"description": "MemberJunction: Record Set Processor Base - interfaces, types, and source adapters for batched, resumable record-set processing. Client-safe.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"author": "MemberJunction.com",
|
|
12
12
|
"license": "BUSL-1.1",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@memberjunction/core": "6.2.0-edge.
|
|
15
|
-
"@memberjunction/global": "6.2.0-edge.
|
|
14
|
+
"@memberjunction/core": "6.2.0-edge.6",
|
|
15
|
+
"@memberjunction/global": "6.2.0-edge.6"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/node": "24.10.11",
|