@pactosigna/schemas 0.1.6 → 0.1.7

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.
@@ -1,9 +1,20 @@
1
+ import { z } from 'zod';
2
+
1
3
  /**
2
- * Common types and enums shared across contexts
4
+ * Common Zod enum schemas shared across multiple schema files.
5
+ *
6
+ * Extracted from index.ts to avoid circular dependencies when other
7
+ * schema files (e.g. frameworks.ts) need to reference these enums
8
+ * while also being re-exported from index.ts.
3
9
  */
4
10
 
5
- type DocumentType = 'user_need' | 'requirement' | 'architecture' | 'detailed_design' | 'test_protocol' | 'test_report' | 'sop' | 'work_instruction' | 'policy' | 'usability_risk' | 'software_risk' | 'security_risk' | 'haz_soe_software' | 'haz_soe_security' | 'hazardous_situation' | 'harm' | 'hazard_category' | 'usability_plan' | 'use_specification' | 'task_analysis' | 'usability_evaluation' | 'summative_evaluation' | 'risk_management_plan' | 'software_development_plan' | 'software_maintenance_plan' | 'soup_register' | 'anomaly' | 'cybersecurity_plan' | 'sbom' | 'clinical_evaluation_plan' | 'clinical_evaluation_report' | 'post_market_surveillance_plan' | 'post_market_feedback' | 'labeling' | 'product_development_plan' | 'intended_use' | 'release_plan' | 'design_review' | 'release_notes' | 'supplier' | 'audit_schedule' | 'audit_report' | 'management_review' | 'software_test_plan';
6
- type LinkType = 'derives_from' | 'implements' | 'verified_by' | 'mitigates' | 'parent_of' | 'related_to' | 'leads_to' | 'results_in' | 'analyzes';
11
+ declare const SafetyClassSchema: z.ZodEnum<["A", "B", "C"]>;
12
+ declare const DocumentTypeSchema: z.ZodEnum<["user_need", "requirement", "architecture", "detailed_design", "test_protocol", "test_report", "sop", "work_instruction", "policy", "usability_risk", "software_risk", "security_risk", "haz_soe_software", "haz_soe_security", "hazardous_situation", "harm", "hazard_category", "usability_plan", "use_specification", "task_analysis", "usability_evaluation", "summative_evaluation", "risk_management_plan", "software_development_plan", "software_maintenance_plan", "soup_register", "anomaly", "cybersecurity_plan", "sbom", "clinical_evaluation_plan", "clinical_evaluation_report", "post_market_surveillance_plan", "post_market_feedback", "labeling", "product_development_plan", "intended_use", "release_plan", "design_review", "release_notes", "supplier", "audit_schedule", "audit_report", "management_review", "software_test_plan"]>;
13
+ declare const DocumentStatusSchema: z.ZodEnum<["draft", "in_review", "approved", "obsolete", "example"]>;
14
+ declare const LinkTypeSchema: z.ZodEnum<["derives_from", "implements", "verified_by", "mitigates", "parent_of", "related_to", "leads_to", "results_in", "analyzes"]>;
15
+ declare const AcceptabilityStatusSchema: z.ZodEnum<["acceptable", "review_required", "unacceptable"]>;
16
+
17
+ type DocumentType = z.infer<typeof DocumentTypeSchema>;
7
18
 
8
19
  /**
9
20
  * Document Type Patterns
@@ -61,4 +72,4 @@ declare function inferDocumentType(filePath: string, documentId: string): {
61
72
  category?: string;
62
73
  } | null;
63
74
 
64
- export { type DocumentType as D, FOLDER_RULES as F, JSON_SBOM_FOLDERS as J, type LinkType as L, NON_REGULATED_FOLDERS as N, type FolderRule as a, findFolderRule as f, inferDocumentType as i };
75
+ export { AcceptabilityStatusSchema as A, DocumentTypeSchema as D, FOLDER_RULES as F, JSON_SBOM_FOLDERS as J, LinkTypeSchema as L, NON_REGULATED_FOLDERS as N, SafetyClassSchema as S, DocumentStatusSchema as a, type FolderRule as b, findFolderRule as f, inferDocumentType as i };
@@ -1 +1,2 @@
1
- export { F as FOLDER_RULES, a as FolderRule, J as JSON_SBOM_FOLDERS, N as NON_REGULATED_FOLDERS, f as findFolderRule, i as inferDocumentType } from './document-type-patterns-JuAGFi_j.js';
1
+ export { F as FOLDER_RULES, b as FolderRule, J as JSON_SBOM_FOLDERS, N as NON_REGULATED_FOLDERS, f as findFolderRule, i as inferDocumentType } from './document-type-patterns-B_ahiCEa.js';
2
+ import 'zod';