@epam/statgpt-sdmx-toolkit 0.2.0-rc.45 → 0.2.0-rc.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/models/index.d.ts CHANGED
@@ -2,8 +2,10 @@ export * from './dataset-query-filters';
2
2
  export * from './dimension-group';
3
3
  export * from './series-filter';
4
4
  export * from './splitted-urn';
5
- export * from './structural-metadata';
6
5
  export * from './data';
6
+ export * from './structural-metadata/structural-metadata';
7
+ export * from './structural-metadata/structural-metadata-base';
8
+ export * from './structural-metadata/structural-metadata-v3';
7
9
  export * from './structural-metadata/codelist';
8
10
  export * from './structural-metadata/common-artefact-properties';
9
11
  export * from './structural-metadata/concept-scheme';
@@ -11,5 +13,4 @@ export * from './structural-metadata/constraints';
11
13
  export * from './structural-metadata/data-structure';
12
14
  export * from './structural-metadata/dataflow';
13
15
  export * from './structural-metadata/representation';
14
- export * from './structural-metadata-base';
15
16
  export * from './datasets-metadata';
@@ -1,5 +1,5 @@
1
1
  import { CommonArtefactProperty } from './common-artefact-properties';
2
- import { ElementBase } from '../structural-metadata-base';
2
+ import { ElementBase } from './structural-metadata-base';
3
3
  export interface Codelist extends CommonArtefactProperty {
4
4
  codes?: Code[];
5
5
  }
@@ -1,4 +1,4 @@
1
- import { Annotation, ElementBase, Link } from '../structural-metadata-base';
1
+ import { Annotation, ElementBase, Link } from './structural-metadata-base';
2
2
  export interface CommonArtefactProperty extends ElementBase {
3
3
  agencyID?: string;
4
4
  version?: string;
@@ -1,6 +1,6 @@
1
1
  import { CommonArtefactProperty } from './common-artefact-properties';
2
2
  import { Representation } from './representation';
3
- import { ElementBase } from '../structural-metadata-base';
3
+ import { ElementBase } from './structural-metadata-base';
4
4
  export interface ConceptScheme extends CommonArtefactProperty {
5
5
  concepts?: Concept[];
6
6
  }
@@ -0,0 +1,16 @@
1
+ import { CommonArtefactProperty } from './common-artefact-properties';
2
+ export interface DataConstraintsV3 extends CommonArtefactProperty {
3
+ cubeRegions?: CubeRegionV3[];
4
+ }
5
+ export interface CubeRegionV3 {
6
+ keyValues: Component[];
7
+ include: boolean;
8
+ }
9
+ export interface Component {
10
+ include: boolean;
11
+ id: string;
12
+ values: ComponentValue[];
13
+ }
14
+ export interface ComponentValue {
15
+ value: string;
16
+ }
@@ -1,5 +1,5 @@
1
1
  import { CommonArtefactProperty } from './common-artefact-properties';
2
- import { Annotation, Link } from '../structural-metadata-base';
2
+ import { Annotation, Link } from './structural-metadata-base';
3
3
  import { Representation } from './representation';
4
4
  export interface DataStructure extends CommonArtefactProperty {
5
5
  dataStructureComponents?: DataStructureComponents;
@@ -0,0 +1,16 @@
1
+ import { Codelist } from './codelist';
2
+ import { ConceptScheme } from './concept-scheme';
3
+ import { DataStructure, MetadataStructure } from './data-structure';
4
+ import { Dataflow } from './dataflow';
5
+ import { DataConstraintsV3 } from './constraints-v3';
6
+ export interface StructuralMetaDataV3 {
7
+ data: StructuralDataV3;
8
+ }
9
+ export interface StructuralDataV3 {
10
+ codelists?: Codelist[];
11
+ conceptSchemes?: ConceptScheme[];
12
+ dataConstraints?: DataConstraintsV3[];
13
+ dataflows?: Dataflow[];
14
+ dataStructures?: DataStructure[];
15
+ metadataStructures?: MetadataStructure[];
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Codelist } from './codelist';
2
+ import { ConceptScheme } from './concept-scheme';
3
+ import { DataConstraints } from './constraints';
4
+ import { DataStructure, MetadataStructure } from './data-structure';
5
+ import { Dataflow } from './dataflow';
6
+ export interface StructuralMetaData {
7
+ data: StructuralData;
8
+ }
9
+ export interface StructuralData {
10
+ codelists?: Codelist[];
11
+ conceptSchemes?: ConceptScheme[];
12
+ dataConstraints?: DataConstraints[];
13
+ dataflows?: Dataflow[];
14
+ dataStructures?: DataStructure[];
15
+ metadataStructures?: MetadataStructure[];
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/statgpt-sdmx-toolkit",
3
- "version": "0.2.0-rc.45",
3
+ "version": "0.2.0-rc.47",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {
@@ -14,8 +14,8 @@
14
14
  "module": "./index.mjs",
15
15
  "types": "./index.d.ts",
16
16
  "dependencies": {
17
- "@epam/statgpt-dial-toolkit": "0.2.0-rc.45",
18
- "@epam/statgpt-shared-toolkit": "0.2.0-rc.45",
17
+ "@epam/statgpt-dial-toolkit": "0.2.0-rc.47",
18
+ "@epam/statgpt-shared-toolkit": "0.2.0-rc.47",
19
19
  "compare-versions": "^6.1.1"
20
20
  }
21
21
  }
@@ -1,5 +1,5 @@
1
1
  import { DataConstraints } from '../models/structural-metadata/constraints';
2
- import { Annotation } from '../models/structural-metadata-base';
2
+ import { Annotation } from '../models/structural-metadata/structural-metadata-base';
3
3
  import { TimeRange, DataQuery } from '../../../shared-toolkit/src/index';
4
4
  import { Codelist } from '../models/structural-metadata/codelist';
5
5
  import { SeriesFilterDto } from '../models';
@@ -1,4 +1,4 @@
1
- import { StructuralData } from '../models/structural-metadata';
1
+ import { StructuralData } from '../models/structural-metadata/structural-metadata';
2
2
  import { Dimension, DimensionList } from '../models/structural-metadata/data-structure';
3
3
  import { DataMessage } from '../models/data/data-message';
4
4
  import { StructureItemBase } from '../models/data/structure';
@@ -1,4 +1,4 @@
1
- import { StructuralData } from '../models/structural-metadata';
1
+ import { StructuralData } from '../models/structural-metadata/structural-metadata';
2
2
  import { Codelist } from '../models/structural-metadata/codelist';
3
- import { ElementBase } from '../models/structural-metadata-base';
3
+ import { ElementBase } from '../models/structural-metadata/structural-metadata-base';
4
4
  export declare const getStructureComponentsMap: (data?: StructuralData) => Map<string, Codelist | ElementBase>;
@@ -0,0 +1,3 @@
1
+ import { StructuralMetaDataV3 } from '../models/structural-metadata/structural-metadata-v3';
2
+ import { StructuralMetaData } from '../models/structural-metadata/structural-metadata';
3
+ export declare function mapAvailabilityV3ToPlus(data: StructuralMetaDataV3): StructuralMetaData;
@@ -1,2 +1,2 @@
1
- import { Annotation } from '../models/structural-metadata-base';
1
+ import { Annotation } from '../models/structural-metadata/structural-metadata-base';
2
2
  export declare const getTimeSeriesCount: (annotations: Annotation[] | undefined) => string;
@@ -1,16 +0,0 @@
1
- import { Codelist } from './structural-metadata/codelist';
2
- import { ConceptScheme } from './structural-metadata/concept-scheme';
3
- import { DataConstraints } from './structural-metadata/constraints';
4
- import { DataStructure, MetadataStructure } from './structural-metadata/data-structure';
5
- import { Dataflow } from './structural-metadata/dataflow';
6
- export interface StructuralMetaData {
7
- data: StructuralData;
8
- }
9
- export interface StructuralData {
10
- codelists?: Codelist[];
11
- conceptSchemes?: ConceptScheme[];
12
- dataConstraints?: DataConstraints[];
13
- dataflows?: Dataflow[];
14
- dataStructures?: DataStructure[];
15
- metadataStructures?: MetadataStructure[];
16
- }