aboutsummaryrefslogtreecommitdiff
path: root/xsd
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-02-24 21:51:38 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-02-24 21:51:38 +0100
commit80e0623913e87c6480049520590e424a831e0401 (patch)
treeff27e1d269cac886dd06ab4f9924719f84794e38 /xsd
parent8aae5d032dd30118b6d992018391a8bd5be759e4 (diff)
downloadee-python-80e0623913e87c6480049520590e424a831e0401.tar.gz
ee-python-80e0623913e87c6480049520590e424a831e0401.tar.bz2
ee-python-80e0623913e87c6480049520590e424a831e0401.tar.xz
ee-python-80e0623913e87c6480049520590e424a831e0401.zip
Digikey: replacing requests-based code with selenium.
Adding new tools: digikey-import-parts and digikey-refresh-parts.
Diffstat (limited to 'xsd')
-rw-r--r--xsd/ee-bom.xsd54
1 files changed, 39 insertions, 15 deletions
diff --git a/xsd/ee-bom.xsd b/xsd/ee-bom.xsd
index a9a2cc1..16d18bb 100644
--- a/xsd/ee-bom.xsd
+++ b/xsd/ee-bom.xsd
@@ -9,19 +9,19 @@
<xs:complexType name="BomFile">
<xs:sequence>
- <xs:element name="parts" type="PartList" minOccurs="0" maxOccurs="1"/>
+ <xs:element name="parts" type="PartList" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
+ <xs:complexType name="DistributorInfo" abstract="true"/>
+
<xs:complexType name="Part">
<xs:sequence>
<xs:element name="schema-reference" type="xs:string"/>
<xs:element name="part-type" type="xs:anyURI"/>
- <!--
- <xs:element name="manufacturer-part-number" type="xs:string"/>
- <xs:element name="distributor-part-numbers" type="DistributorPartNumberList"/>
- -->
<xs:element name="part-numbers" type="PartNumberList"/>
+ <xs:element name="distributor-info" type="DistributorInfo"/>
+ <xs:element name="fact-sets" type="FactSetList"/>
</xs:sequence>
<xs:attribute ref="id" use="required"/>
</xs:complexType>
@@ -32,32 +32,56 @@
</xs:sequence>
</xs:complexType>
- <!--
- <xs:complexType name="DistributorPartNumber">
+ <xs:complexType name="PartNumber">
<xs:sequence>
+ <xs:element name="value" type="xs:string"/>
<xs:element name="distributor" type="xs:anyURI"/>
- <xs:element name="number" type="xs:string"/>
</xs:sequence>
</xs:complexType>
- <xs:complexType name="DistributorPartNumberList">
+ <xs:complexType name="PartNumberList">
+ <xs:sequence>
+ <xs:element name="part-number" type="PartNumber" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="FactSetList">
<xs:sequence>
- <xs:element name="distributor-part-number" type="DistributorPartNumber" maxOccurs="unbounded"/>
+ <xs:element name="fact-set" type="FactSet" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
- -->
- <xs:complexType name="PartNumber">
+ <xs:complexType name="FactSet">
<xs:sequence>
+ <xs:element name="source" type="xs:anyURI"/>
+ <xs:element name="facts" type="FactList"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="Fact">
+ <xs:sequence>
+ <xs:element name="key" type="xs:anyURI"/>
+ <xs:element name="label" type="xs:string"/>
<xs:element name="value" type="xs:string"/>
- <xs:element name="distributor" type="xs:anyURI"/>
</xs:sequence>
</xs:complexType>
- <xs:complexType name="PartNumberList">
+ <xs:complexType name="FactList">
<xs:sequence>
- <xs:element name="part-number" type="PartNumber" maxOccurs="unbounded"/>
+ <xs:element name="fact" type="Fact" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
+ <!-- Digi-Key -->
+
+ <xs:complexType name="DigikeyDistributorInfo">
+ <xs:complexContent>
+ <xs:extension base="DistributorInfo">
+ <xs:sequence>
+ <xs:element name="state" type="xs:string"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
</xs:schema>