@finsys/core 4.8.0 → 4.9.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/index.cjs CHANGED
@@ -33,6 +33,7 @@ __export(index_exports, {
33
33
  ADAPTER_CATEGORY_IDS: () => ADAPTER_CATEGORY_IDS,
34
34
  ALL_AGGREGATION_OPS: () => ALL_AGGREGATION_OPS,
35
35
  AdapterError: () => AdapterError,
36
+ AdapterExecutionMode: () => AdapterExecutionMode,
36
37
  BASE_FIELD_SPECS: () => BASE_FIELD_SPECS,
37
38
  BasicFormField: () => BasicFormField,
38
39
  DEFAULT_VALIDATOR_DEFINITIONS: () => DEFAULT_VALIDATOR_DEFINITIONS,
@@ -66,6 +67,7 @@ __export(index_exports, {
66
67
  categoryForField: () => categoryForField,
67
68
  categorySchemaOf: () => categorySchemaOf,
68
69
  evaluateExpression: () => evaluateExpression,
70
+ executionModeOf: () => executionModeOf,
69
71
  extractTimePeriods: () => extractTimePeriods,
70
72
  factOf: () => factOf,
71
73
  formatDocumentSize: () => formatDocumentSize,
@@ -12053,11 +12055,38 @@ function assertAdapterCategory(id) {
12053
12055
  }
12054
12056
  return id;
12055
12057
  }
12058
+
12059
+ // src/adapter-manifest.ts
12060
+ var AdapterExecutionMode = /* @__PURE__ */ ((AdapterExecutionMode2) => {
12061
+ AdapterExecutionMode2["Runnable"] = "runnable";
12062
+ AdapterExecutionMode2["DeclarationOnly"] = "declaration-only";
12063
+ AdapterExecutionMode2["ExternallyAsserted"] = "externally-asserted";
12064
+ return AdapterExecutionMode2;
12065
+ })(AdapterExecutionMode || {});
12066
+ function executionModeOf(manifest) {
12067
+ const implementationType = manifest.implementation.type;
12068
+ switch (implementationType) {
12069
+ case "declarative":
12070
+ case "typescript":
12071
+ return "runnable" /* Runnable */;
12072
+ case "form-intake":
12073
+ case "manual-override":
12074
+ case "extraction-pipeline":
12075
+ return "declaration-only" /* DeclarationOnly */;
12076
+ case "external-assertion":
12077
+ return "externally-asserted" /* ExternallyAsserted */;
12078
+ default: {
12079
+ const unhandled = implementationType;
12080
+ throw new Error(`unknown adapter implementation type: ${String(unhandled)}`);
12081
+ }
12082
+ }
12083
+ }
12056
12084
  // Annotate the CommonJS export names for ESM import in node:
12057
12085
  0 && (module.exports = {
12058
12086
  ADAPTER_CATEGORY_IDS,
12059
12087
  ALL_AGGREGATION_OPS,
12060
12088
  AdapterError,
12089
+ AdapterExecutionMode,
12061
12090
  BASE_FIELD_SPECS,
12062
12091
  BasicFormField,
12063
12092
  DEFAULT_VALIDATOR_DEFINITIONS,
@@ -12091,6 +12120,7 @@ function assertAdapterCategory(id) {
12091
12120
  categoryForField,
12092
12121
  categorySchemaOf,
12093
12122
  evaluateExpression,
12123
+ executionModeOf,
12094
12124
  extractTimePeriods,
12095
12125
  factOf,
12096
12126
  formatDocumentSize,