@mudraforge/statutory 2.9.0 → 2.10.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/types/index.d.ts CHANGED
@@ -142,6 +142,7 @@ export interface SyncResult {
142
142
  }
143
143
 
144
144
  export declare const DEFAULT_BASE_URL: string;
145
+ export declare const STATUTORY_CLIENT_VERSION: string;
145
146
  export declare const DEFAULT_LOCAL_OKF_DIR: string;
146
147
 
147
148
  export declare function getLocalManifest(okfDir?: string): any;
@@ -198,6 +199,8 @@ export declare class StatutoryClient {
198
199
  calculateTransferPricingAlp(payload?: any): any;
199
200
  evaluateSection79LossContinuity(payload?: any): any;
200
201
  revalueForeignExchangeIndAs109(payload?: any): any;
202
+ getOutcomes(provision?: string, options?: StatutoryOutcomesOptions): Promise<StatutoryOutcomesResult>;
203
+ explain(codeOrQuery: string, options?: any): any;
201
204
  }
202
205
 
203
206
  export interface CrosswalkOptions {
@@ -328,4 +331,56 @@ export declare function calculateTransferPricingAlp(payload?: any): any;
328
331
  export declare function evaluateSection79LossContinuity(payload?: any): any;
329
332
  export declare function revalueForeignExchangeIndAs109(payload?: any): any;
330
333
 
334
+ export interface StatutoryOutcome {
335
+ code: string;
336
+ category: string;
337
+ title: string;
338
+ description: string;
339
+ triggerCondition: string;
340
+ recommendedAction: string;
341
+ remedy?: string;
342
+ consequenceIfUnresolved?: string;
343
+ missingFacts?: string[];
344
+ missingFactsExplanation?: Record<string, { type: string; description: string; example: any; source: string }>;
345
+ applicableProvisions?: string[];
346
+ governingAuthority: string;
347
+ }
348
+
349
+ export interface StatutoryOutcomesOptions {
350
+ offline?: boolean;
351
+ verbose?: boolean;
352
+ baseUrl?: string;
353
+ timeoutMs?: number;
354
+ }
355
+
356
+ export interface StatutoryOutcomesResult {
357
+ status: 'SUCCESS' | 'ERROR';
358
+ source: 'LIVE_EDGE' | 'LOCAL_OKF_SUBSTRATE';
359
+ provision: string | null;
360
+ totalOutcomes: number;
361
+ outcomes: StatutoryOutcome[];
362
+ version: string;
363
+ offlineFallback?: boolean;
364
+ }
365
+
366
+ export declare const STATUTORY_OUTCOMES_DICTIONARY: StatutoryOutcome[];
367
+ export declare function getStatutoryOutcomes(
368
+ provision?: string,
369
+ options?: StatutoryOutcomesOptions
370
+ ): Promise<StatutoryOutcomesResult>;
371
+
372
+ export declare function explainStatutoryDisposition(
373
+ codeOrQuery: string,
374
+ options?: any
375
+ ): any;
376
+
377
+ export declare function enrichWithOutcomeExplanation<T extends Record<string, any>>(
378
+ result: T,
379
+ options?: { verbose?: boolean; explain?: boolean }
380
+ ): T;
381
+
382
+ export declare function ignorePackageUpdate(
383
+ versionToIgnore: string
384
+ ): { status: 'SUCCESS' | 'ERROR'; ignoredVersion: string; error?: string };
385
+
331
386