Skip to content

Commit faf63e9

Browse files
committed
attempt to update getContract
1 parent 4ab2157 commit faf63e9

File tree

1 file changed

+58
-15
lines changed

1 file changed

+58
-15
lines changed

model/equaliq.smithy

Lines changed: 58 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ structure GetContractOutput {
8888
type: ContractType
8989

9090
@required
91-
terms: Document
91+
terms: TermsList
9292

9393
@required
94-
iq_qa: QASections
94+
qa_sections: QASectionsList
9595

9696
@required
9797
isOwner: Boolean
@@ -103,31 +103,27 @@ structure GetContractOutput {
103103
sharedWith: UserIdList
104104
}
105105

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 {
112108
member: QASection
113109
}
114110

115111
structure QASection {
116112
@required
117-
title: String
118-
113+
section: String
114+
119115
@required
120-
questions: QuestionList
116+
qa: QAList
121117
}
122118

123-
list QuestionList {
124-
member: Question
119+
list QAList {
120+
member: QA
125121
}
126122

127-
structure Question {
123+
structure QA {
128124
@required
129125
question: String
130-
126+
131127
@required
132128
answer: String
133129
}
@@ -476,6 +472,53 @@ structure PingOutput {
476472
message: String
477473
}
478474

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+
479522
// Common structures
480523
document Document
481524

0 commit comments

Comments
 (0)