File tree Expand file tree Collapse file tree 1 file changed +58
-15
lines changed Expand file tree Collapse file tree 1 file changed +58
-15
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,10 @@ structure GetContractOutput {
88
88
type : ContractType
89
89
90
90
@required
91
- terms : Document
91
+ terms : TermsList
92
92
93
93
@required
94
- iq_qa : QASections
94
+ qa_sections : QASectionsList
95
95
96
96
@required
97
97
isOwner : Boolean
@@ -103,31 +103,27 @@ structure GetContractOutput {
103
103
sharedWith : UserIdList
104
104
}
105
105
106
- structure QASections {
107
- @required
108
- sections : SectionList
109
- }
110
-
111
- list SectionList {
106
+ // Define QA Section format to match existing implementation
107
+ list QASectionsList {
112
108
member : QASection
113
109
}
114
110
115
111
structure QASection {
116
112
@required
117
- title : String
118
-
113
+ section : String
114
+
119
115
@required
120
- questions : QuestionList
116
+ qa : QAList
121
117
}
122
118
123
- list QuestionList {
124
- member : Question
119
+ list QAList {
120
+ member : QA
125
121
}
126
122
127
- structure Question {
123
+ structure QA {
128
124
@required
129
125
question : String
130
-
126
+
131
127
@required
132
128
answer : String
133
129
}
@@ -476,6 +472,53 @@ structure PingOutput {
476
472
message : String
477
473
}
478
474
475
+ // Contract Terms structures
476
+ list TermsList {
477
+ member : Term
478
+ }
479
+
480
+ structure Term {
481
+ @required
482
+ name : String
483
+
484
+ @required
485
+ definition : String
486
+
487
+ @required
488
+ unitType : String
489
+
490
+ citation : String
491
+
492
+ fixedValues : FixedValueTermInference
493
+
494
+ // Additional properties will be serialized as part of the Document
495
+ }
496
+
497
+ structure FixedValueTermInference {
498
+ @required
499
+ primary : FixedTermValue
500
+
501
+ subterms : FixedTermValueList
502
+ }
503
+
504
+ list FixedTermValueList {
505
+ member : FixedTermValue
506
+ }
507
+
508
+ structure FixedTermValue {
509
+ @required
510
+ unit : String
511
+
512
+ @required
513
+ value : String
514
+
515
+ name : String
516
+
517
+ numericValue : Float
518
+
519
+ condition : String
520
+ }
521
+
479
522
// Common structures
480
523
document Document
481
524
You can’t perform that action at this time.
0 commit comments