Skip to content

Commit 2c4865e

Browse files
committed
merged v4.8.0
1 parent 6a015e9 commit 2c4865e

File tree

94 files changed

+1
-233152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1
-233152
lines changed

sdmx-tck-api/src/constants/SdmxStructureType.js

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ var SDMX_STRUCTURE_TYPE = {
3232
REPORTING_TAXONOMY_MAP: { key: "REPORTING_TAXONOMY_MAP", getClass() { return "ReportingTaxonomyMap" }, isBasic: false },
3333
METADATA_PROVIDER_SCHEME: { key: "METADATA_PROVIDER_SCHEME", getClass() { return "MetadataProviderScheme" }, isBasic: false },
3434
METADATA_PROVISION_AGREEMENT: { key: "METADATA_PROVISION_AGREEMENT", getClass() { return "MetadataProvisionAgreement" }, isBasic: false },
35-
<<<<<<< HEAD
36-
DATA_CONSTRAINT: { key: "DATA_CONSTRAINT", getClass() { return "DataConstraing" }, isBasic: false }, // or true
37-
METADATA_CONSTRAINT: { key: "METADATA_CONSTRAINT", getClass() { return "MetadataConstraing" }, isBasic: false },
38-
TRANSFORMATION_SCHEME: { key: "TRANSFORMATION_SCHEME", getClass() { return "TransformationScheme" }, isBasic: false },
39-
RULESET_SCHEME: { key: "RULESET_SCHEME", getClass() { return "RulesetScheme" }, isBasic: false },
40-
USER_DEFINED_OPERATOR_SCHEME: { key: "USER_DEFINED_OPERATOR_SCHEME", getClass() { return "UserDefinedOperatorScheme" }, isBasic: false },
41-
CUSTOM_TYPE_SCHEME: { key: "CUSTOM_TYPE_SCHEME", getClass() { return "CustomTypeScheme" }, isBasic: false },
42-
NAME_PERSONALISATION_SCHEME: { key: "NAME_PERSONALISATION_SCHEME", getClass() { return "NamePersonalisationScheme" }, isBasic: false },
43-
VTL_MAPPING_SCHEME: { key: "VTL_MAPPING_SCHEME", getClass() { return "VtlMappingScheme" }, isBasic: false }
44-
=======
4535
DATA_CONSTRAINT: { key: "DATA_CONSTRAINT", getClass() { return "DataConstraint" }, isBasic: true },
4636
METADATA_CONSTRAINT: { key: "METADATA_CONSTRAINT", getClass() { return "MetadataConstraint" }, isBasic: false }
4737
// TRANSFORMATION_SCHEME: { key: "TRANSFORMATION_SCHEME", getClass() { return "TransformationScheme" }, isBasic: false },
@@ -50,7 +40,6 @@ var SDMX_STRUCTURE_TYPE = {
5040
// CUSTOM_TYPE_SCHEME: { key: "CUSTOM_TYPE_SCHEME", getClass() { return "CustomTypeScheme" }, isBasic: false },
5141
// NAME_PERSONALISATION_SCHEME: { key: "NAME_PERSONALISATION_SCHEME", getClass() { return "NamePersonalisationScheme" }, isBasic: false },
5242
// VTL_MAPPING_SCHEME: { key: "VTL_MAPPING_SCHEME", getClass() { return "VtlMappingScheme" }, isBasic: false }
53-
>>>>>>> v4.8.0
5443

5544
};
5645

@@ -145,20 +134,6 @@ SDMX_STRUCTURE_TYPE.fromRestResource = function (restResource) {
145134
return this.DATA_CONSTRAINT.key;
146135
case "metadataconstraint":
147136
return this.METADATA_CONSTRAINT.key;
148-
<<<<<<< HEAD
149-
case "transformationscheme":
150-
return this.TRANSFORMATION_SCHEME.key;
151-
case "rulesetscheme":
152-
return this.RULESET_SCHEME.key;
153-
case "userdefinedoperatorscheme":
154-
return this.USER_DEFINED_OPERATOR_SCHEME.key;
155-
case "customtypescheme":
156-
return this.CUSTOM_TYPE_SCHEME.key;
157-
case "namepersonalisationscheme":
158-
return this.NAME_PERSONALISATION_SCHEME.key;
159-
case "vtlmappingscheme":
160-
return this.VTL_MAPPING_SCHEME.key;
161-
=======
162137
// case "transformationscheme":
163138
// return this.TRANSFORMATION_SCHEME.key;
164139
// case "rulesetscheme":
@@ -171,7 +146,6 @@ SDMX_STRUCTURE_TYPE.fromRestResource = function (restResource) {
171146
// return this.NAME_PERSONALISATION_SCHEME.key;
172147
// case "vtlmappingscheme":
173148
// return this.VTL_MAPPING_SCHEME.key;
174-
>>>>>>> v4.8.0
175149
default:
176150
return null;
177151
}
@@ -235,17 +209,7 @@ SDMX_STRUCTURE_TYPE.matchPathToMaintainable = function(path){
235209
}
236210

237211
SDMX_STRUCTURE_TYPE.getMaintainableStructureTypeByClass = function (urnClass) {
238-
<<<<<<< HEAD
239-
if (urnClass == null) {
240-
throw new Error("SDMX structure type cannot be extracted from a null urn class.");
241-
}
242-
let structureType = this.getStructureTypeByClass(urnClass);
243-
if (!structureType) {
244-
throw new Error("Could not find structure type for urn class '" + urnClass + "'");
245-
}
246-
=======
247212
let structureType = this.getIdentifiableStructureTypeByClass(urnClass);
248-
>>>>>>> v4.8.0
249213
if (!this[structureType].maintainableParent) {
250214
return structureType;
251215
} else {
@@ -259,8 +223,6 @@ SDMX_STRUCTURE_TYPE.getStructureTypeByClass = function (urnClass) {
259223
);
260224
};
261225

262-
<<<<<<< HEAD
263-
=======
264226
SDMX_STRUCTURE_TYPE.getIdentifiableStructureTypeByClass = function (urnClass) {
265227
if (urnClass == null) {
266228
throw new Error("SDMX structure type cannot be extracted from a null urn class.");
@@ -272,7 +234,6 @@ SDMX_STRUCTURE_TYPE.getIdentifiableStructureTypeByClass = function (urnClass) {
272234
return structureType;
273235
};
274236

275-
>>>>>>> v4.8.0
276237
SDMX_STRUCTURE_TYPE.getMaintainableTypes = function () {
277238
let maintainableTypes = Object.keys(SDMX_STRUCTURE_TYPE).filter((key) => {
278239
return SDMX_STRUCTURE_TYPE.isMaintainable(key) === true;

sdmx-tck-api/src/constants/StructuresRestResources.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,12 @@ const STRUCTURES_REST_RESOURCE = {
3636
contentconstraint: "contentconstraint",
3737
dataconstraint: "dataconstraint",
3838
metadataconstraint: "metadataconstraint",
39-
<<<<<<< HEAD
40-
transformationscheme: "transformationscheme",
41-
rulesetscheme: "rulesetscheme",
42-
userdefinedoperatorscheme: "userdefinedoperatorscheme",
43-
customtypescheme: "customtypescheme",
44-
namepersonalisationscheme: "namepersonalisationscheme",
45-
vtlmappingscheme: "vtlmappingscheme",
46-
=======
4739
// transformationscheme: "transformationscheme",
4840
// rulesetscheme: "rulesetscheme",
4941
// userdefinedoperatorscheme: "userdefinedoperatorscheme",
5042
// customtypescheme: "customtypescheme",
5143
// namepersonalisationscheme: "namepersonalisationscheme",
5244
// vtlmappingscheme: "vtlmappingscheme",
53-
>>>>>>> v4.8.0
5445
attachmentconstraint: "attachmentconstraint",
5546
structure: "structure",
5647

@@ -99,11 +90,7 @@ const STRUCTURES_REST_RESOURCE = {
9990
resources.push(this.process);
10091
resources.push(this.categorisation);
10192
resources.push(this.structure);
102-
<<<<<<< HEAD
103-
104-
=======
10593

106-
>>>>>>> v4.8.0
10794
if (API_VERSIONS[apiVersion] <= API_VERSIONS["v1.4.0"]) {
10895
resources.push(this.hierarchicalcodelist);
10996
resources.push(this.organisationscheme);
@@ -130,21 +117,12 @@ const STRUCTURES_REST_RESOURCE = {
130117
resources.push(this.metadataprovisionagreement);
131118
resources.push(this.dataconstraint);
132119
resources.push(this.metadataconstraint);
133-
<<<<<<< HEAD
134-
resources.push(this.transformationscheme);
135-
resources.push(this.rulesetscheme);
136-
resources.push(this.userdefinedoperatorscheme);
137-
resources.push(this.customtypescheme);
138-
resources.push(this.namepersonalisationscheme);
139-
resources.push(this.vtlmappingscheme);
140-
=======
141120
// resources.push(this.transformationscheme);
142121
// resources.push(this.rulesetscheme);
143122
// resources.push(this.userdefinedoperatorscheme);
144123
// resources.push(this.customtypescheme);
145124
// resources.push(this.namepersonalisationscheme);
146125
// resources.push(this.vtlmappingscheme);
147-
>>>>>>> v4.8.0
148126
}
149127
return resources;
150128
}

0 commit comments

Comments
 (0)