Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dcc-js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
D-PTB
DCC
Development
dcc-js
Commits
856b4d84
Commit
856b4d84
authored
2 years ago
by
Moritz Jordan
Browse files
Options
Downloads
Patches
Plain Diff
feat: email not mandatory, issueDate, charsXMLList
parent
43b63193
No related branches found
No related tags found
1 merge request
!4
Update to DCC Schema V3.2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/DCC.ts
+6
-2
6 additions, 2 deletions
src/DCC.ts
with
6 additions
and
2 deletions
src/DCC.ts
+
6
−
2
View file @
856b4d84
...
@@ -160,6 +160,7 @@ export class CoreDataType extends DCCXMLElement {
...
@@ -160,6 +160,7 @@ export class CoreDataType extends DCCXMLElement {
beginPerformanceDate
:
DCCXMLDate
;
beginPerformanceDate
:
DCCXMLDate
;
endPerformanceDate
:
DCCXMLDate
;
endPerformanceDate
:
DCCXMLDate
;
performanceLocation
:
PerformanceLocationType
;
performanceLocation
:
PerformanceLocationType
;
issueDate
:
DCCXMLDate
;
previousReport
?:
HashType
;
previousReport
?:
HashType
;
constructor
(
el
:
Partial
<
CoreDataType
>
=
{})
{
constructor
(
el
:
Partial
<
CoreDataType
>
=
{})
{
...
@@ -173,6 +174,7 @@ export class CoreDataType extends DCCXMLElement {
...
@@ -173,6 +174,7 @@ export class CoreDataType extends DCCXMLElement {
this
.
beginPerformanceDate
=
new
DCCXMLDate
(
el
.
beginPerformanceDate
);
this
.
beginPerformanceDate
=
new
DCCXMLDate
(
el
.
beginPerformanceDate
);
this
.
endPerformanceDate
=
new
DCCXMLDate
(
el
.
endPerformanceDate
);
this
.
endPerformanceDate
=
new
DCCXMLDate
(
el
.
endPerformanceDate
);
this
.
performanceLocation
=
new
PerformanceLocationType
(
el
.
performanceLocation
);
this
.
performanceLocation
=
new
PerformanceLocationType
(
el
.
performanceLocation
);
if
(
el
.
issueDate
)
this
.
issueDate
=
new
DCCXMLDate
(
el
.
issueDate
);
if
(
el
.
previousReport
)
this
.
previousReport
=
new
HashType
(
el
.
previousReport
);
if
(
el
.
previousReport
)
this
.
previousReport
=
new
HashType
(
el
.
previousReport
);
}
}
}
}
...
@@ -232,7 +234,7 @@ export class ContactType extends DCCXMLElement {
...
@@ -232,7 +234,7 @@ export class ContactType extends DCCXMLElement {
_attr
:
IIdAttributes
;
_attr
:
IIdAttributes
;
name
:
TextType
;
name
:
TextType
;
eMail
:
DCCXMLElement
;
eMail
?
:
DCCXMLElement
;
phone
?:
DCCXMLElement
;
phone
?:
DCCXMLElement
;
fax
?:
DCCXMLElement
;
fax
?:
DCCXMLElement
;
location
:
LocationType
;
location
:
LocationType
;
...
@@ -241,7 +243,7 @@ export class ContactType extends DCCXMLElement {
...
@@ -241,7 +243,7 @@ export class ContactType extends DCCXMLElement {
constructor
(
el
:
Partial
<
ContactType
>
=
{})
{
constructor
(
el
:
Partial
<
ContactType
>
=
{})
{
super
(
el
);
super
(
el
);
this
.
name
=
new
TextType
(
el
.
name
);
this
.
name
=
new
TextType
(
el
.
name
);
this
.
eMail
=
new
DCCXMLElement
(
el
.
eMail
);
if
(
el
.
eMail
)
this
.
eMail
=
new
DCCXMLElement
(
el
.
eMail
);
if
(
el
.
phone
)
this
.
phone
=
new
DCCXMLElement
(
el
.
phone
);
if
(
el
.
phone
)
this
.
phone
=
new
DCCXMLElement
(
el
.
phone
);
if
(
el
.
fax
)
this
.
fax
=
new
DCCXMLElement
(
el
.
fax
);
if
(
el
.
fax
)
this
.
fax
=
new
DCCXMLElement
(
el
.
fax
);
this
.
location
=
new
LocationType
(
el
.
location
);
this
.
location
=
new
LocationType
(
el
.
location
);
...
@@ -949,6 +951,7 @@ export class QuantityType extends DCCXMLElement {
...
@@ -949,6 +951,7 @@ export class QuantityType extends DCCXMLElement {
// region choice
// region choice
noQuantity
?:
RichContentType
;
noQuantity
?:
RichContentType
;
charsXMLList
?:
DCCXMLList
;
/** Metadata element definition for a real measurement quantity.
/** Metadata element definition for a real measurement quantity.
*
*
* The following statements of a real quantity are possible.
* The following statements of a real quantity are possible.
...
@@ -1105,6 +1108,7 @@ export class QuantityType extends DCCXMLElement {
...
@@ -1105,6 +1108,7 @@ export class QuantityType extends DCCXMLElement {
// choice
// choice
if
(
el
.
noQuantity
)
this
.
noQuantity
=
new
RichContentType
(
el
.
noQuantity
);
if
(
el
.
noQuantity
)
this
.
noQuantity
=
new
RichContentType
(
el
.
noQuantity
);
else
if
(
el
.
charsXMLList
)
this
.
charsXMLList
=
new
DCCXMLList
(
el
.
charsXMLList
);
else
if
(
el
.
real
)
this
.
real
=
new
si
.
RealQuantityType
(
el
.
real
);
else
if
(
el
.
real
)
this
.
real
=
new
si
.
RealQuantityType
(
el
.
real
);
else
if
(
el
.
list
)
this
.
list
=
new
si
.
SIListType
(
el
.
list
);
else
if
(
el
.
list
)
this
.
list
=
new
si
.
SIListType
(
el
.
list
);
else
if
(
el
.
hybrid
)
this
.
hybrid
=
new
si
.
HybridType
(
el
.
hybrid
);
else
if
(
el
.
hybrid
)
this
.
hybrid
=
new
si
.
HybridType
(
el
.
hybrid
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment