@mudraforge/statutory 2.6.0 → 2.8.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/CHANGELOG.md +46 -0
- package/README.md +60 -27
- package/bin/cli.js +368 -18
- package/docs/CORPUS_QUALITY.md +19 -6
- package/docs/PROVENANCE.md +33 -0
- package/okf/manifest.json +1 -1
- package/okf.publication.json +1 -1
- package/package.json +3 -2
- package/src/index.js +1162 -2
- package/types/index.d.ts +104 -0
package/types/index.d.ts
CHANGED
|
@@ -189,8 +189,112 @@ export declare class StatutoryClient {
|
|
|
189
189
|
listSections(): Promise<SectionSummary[]>;
|
|
190
190
|
checkUpdates(): Promise<UpdateInfo>;
|
|
191
191
|
sync(): Promise<SyncResult>;
|
|
192
|
+
crosswalk(section: string, options?: CrosswalkOptions): CrosswalkResult;
|
|
193
|
+
diff(options?: StatutoryDiffOptions): StatutoryDiffResult;
|
|
194
|
+
verify(targetDir?: string): any;
|
|
195
|
+
doctor(options?: any): Promise<any>;
|
|
192
196
|
}
|
|
193
197
|
|
|
198
|
+
export interface CrosswalkOptions {
|
|
199
|
+
creditDate?: string;
|
|
200
|
+
paymentDate?: string;
|
|
201
|
+
asOfDate?: string;
|
|
202
|
+
date?: string;
|
|
203
|
+
okfDir?: string;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface CrosswalkProvision {
|
|
207
|
+
act: string;
|
|
208
|
+
sectionCode: string;
|
|
209
|
+
statutorySection: string;
|
|
210
|
+
title: string;
|
|
211
|
+
threshold?: string;
|
|
212
|
+
standardRate?: string;
|
|
213
|
+
penaltyRate?: string;
|
|
214
|
+
challan?: string;
|
|
215
|
+
returnForm?: string;
|
|
216
|
+
effectiveDate?: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface CrosswalkResult {
|
|
220
|
+
status: 'SUCCESS' | 'ERROR';
|
|
221
|
+
isValid: boolean;
|
|
222
|
+
querySection: string;
|
|
223
|
+
triggerDate: string;
|
|
224
|
+
triggerReason: string;
|
|
225
|
+
triggerDescription: string;
|
|
226
|
+
creditDate: string | null;
|
|
227
|
+
paymentDate: string | null;
|
|
228
|
+
transitionCutoffDate: string;
|
|
229
|
+
governingAct: string;
|
|
230
|
+
applicableSection: string;
|
|
231
|
+
temporalStatus: 'GOVERNED_BY_1961_ACT' | 'GOVERNED_BY_2025_ACT' | 'SUNSET_OMITTED';
|
|
232
|
+
savingsApplied: boolean;
|
|
233
|
+
isOmittedSunset: boolean;
|
|
234
|
+
crosswalk: {
|
|
235
|
+
id: string;
|
|
236
|
+
domain: string;
|
|
237
|
+
predecessor: CrosswalkProvision;
|
|
238
|
+
successor: CrosswalkProvision;
|
|
239
|
+
savingsAuthority: {
|
|
240
|
+
statute: string;
|
|
241
|
+
subsidiary: string;
|
|
242
|
+
legalPrinciple: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
legalAnalysis: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface StatutoryDiffOptions {
|
|
249
|
+
section?: string;
|
|
250
|
+
since?: string;
|
|
251
|
+
domain?: string;
|
|
252
|
+
okfDir?: string;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export interface StatutoryAmendment {
|
|
256
|
+
id: string;
|
|
257
|
+
sectionCode: string;
|
|
258
|
+
domain: string;
|
|
259
|
+
title: string;
|
|
260
|
+
effectiveDate: string;
|
|
261
|
+
amendmentType: string;
|
|
262
|
+
statute: string;
|
|
263
|
+
legalAuthority: string;
|
|
264
|
+
previousValue: string;
|
|
265
|
+
amendedValue: string;
|
|
266
|
+
changeSummary: string;
|
|
267
|
+
statutoryImpact: string;
|
|
268
|
+
aliases?: string[];
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface StatutoryDiffResult {
|
|
272
|
+
status: 'SUCCESS' | 'ERROR';
|
|
273
|
+
filterSection: string | null;
|
|
274
|
+
filterSince: string | null;
|
|
275
|
+
filterDomain: string | null;
|
|
276
|
+
totalAmendments: number;
|
|
277
|
+
amendments: StatutoryAmendment[];
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export declare function crosswalkStatute(
|
|
281
|
+
sectionCode: string,
|
|
282
|
+
options?: CrosswalkOptions
|
|
283
|
+
): CrosswalkResult;
|
|
284
|
+
|
|
285
|
+
export declare function getStatutoryDiff(
|
|
286
|
+
options?: StatutoryDiffOptions
|
|
287
|
+
): StatutoryDiffResult;
|
|
288
|
+
|
|
289
|
+
export declare function verifyLocalSubstrate(
|
|
290
|
+
okfDir?: string,
|
|
291
|
+
options?: any
|
|
292
|
+
): any;
|
|
293
|
+
|
|
294
|
+
export declare function runStatutoryDoctor(
|
|
295
|
+
options?: any
|
|
296
|
+
): Promise<any>;
|
|
297
|
+
|
|
194
298
|
export interface TaxIdentifierResult {
|
|
195
299
|
isValid: boolean;
|
|
196
300
|
checksumValid?: boolean;
|