@epam/statgpt-sdmx-toolkit 0.2.0-rc.8 → 0.2.0
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/api/availability-api.d.ts +1 -1
- package/api/dataset-api.d.ts +1 -1
- package/api/sdmx-api-client.d.ts +2 -2
- package/api/sdmx-config.d.ts +1 -0
- package/index.cjs +2 -2
- package/index.mjs +750 -717
- package/models/datasets-metadata.d.ts +33 -0
- package/models/index.d.ts +4 -2
- package/models/structural-metadata/codelist.d.ts +1 -1
- package/models/structural-metadata/common-artefact-properties.d.ts +1 -1
- package/models/structural-metadata/concept-scheme.d.ts +1 -1
- package/models/structural-metadata/constraints-v3.d.ts +16 -0
- package/models/structural-metadata/data-structure.d.ts +1 -1
- package/models/structural-metadata/structural-metadata-v3.d.ts +16 -0
- package/models/structural-metadata/structural-metadata.d.ts +16 -0
- package/package.json +3 -3
- package/utils/build-dataset-dimensions-metadata-map.d.ts +2 -0
- package/utils/constraint.d.ts +1 -1
- package/utils/get-dimensions.d.ts +1 -1
- package/utils/get-structure-components.d.ts +2 -2
- package/utils/index.d.ts +1 -0
- package/utils/map-availability.d.ts +3 -0
- package/utils/time-series-count.d.ts +1 -1
- package/utils/urn.d.ts +1 -1
- package/models/structural-metadata.d.ts +0 -16
- /package/models/{structural-metadata-base.d.ts → structural-metadata/structural-metadata-base.d.ts} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface DeploymentDatasetsResponseData {
|
|
2
|
+
datasets: ChannelDataset[];
|
|
3
|
+
}
|
|
4
|
+
export interface ChannelDataset {
|
|
5
|
+
dataset: Dataset;
|
|
6
|
+
}
|
|
7
|
+
export interface Dataset {
|
|
8
|
+
details: DatasetDetails;
|
|
9
|
+
}
|
|
10
|
+
export interface DatasetDetails {
|
|
11
|
+
urn: Urn;
|
|
12
|
+
dimensions: Record<string, DimensionConfig>;
|
|
13
|
+
}
|
|
14
|
+
export interface Urn {
|
|
15
|
+
version: string;
|
|
16
|
+
agencyId: string;
|
|
17
|
+
resourceId: string;
|
|
18
|
+
}
|
|
19
|
+
export type DimensionTypeKey = 'NON_INDICATOR' | 'INDICATOR' | 'TIME_PERIOD' | (string & {});
|
|
20
|
+
export interface DimensionConfig {
|
|
21
|
+
alias: string | null;
|
|
22
|
+
subtype?: string | null;
|
|
23
|
+
allValues: DimensionAllValues | null;
|
|
24
|
+
dimensionType: DimensionTypeKey;
|
|
25
|
+
}
|
|
26
|
+
export interface DimensionAllValues {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
description: string;
|
|
30
|
+
}
|
|
31
|
+
export type ShortUrn = string;
|
|
32
|
+
export type DimensionKey = string;
|
|
33
|
+
export type DatasetDimensionsMetadataMap = Record<ShortUrn, Record<DimensionKey, DimensionConfig>>;
|
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,4 +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 './
|
|
16
|
+
export * from './datasets-metadata';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonArtefactProperty } from './common-artefact-properties';
|
|
2
|
-
import { ElementBase } from '
|
|
2
|
+
import { ElementBase } from './structural-metadata-base';
|
|
3
3
|
export interface Codelist extends CommonArtefactProperty {
|
|
4
4
|
codes?: Code[];
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonArtefactProperty } from './common-artefact-properties';
|
|
2
2
|
import { Representation } from './representation';
|
|
3
|
-
import { ElementBase } from '
|
|
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 '
|
|
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
|
|
3
|
+
"version": "0.2.0",
|
|
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
|
|
18
|
-
"@epam/statgpt-shared-toolkit": "0.2.0
|
|
17
|
+
"@epam/statgpt-dial-toolkit": "0.2.0",
|
|
18
|
+
"@epam/statgpt-shared-toolkit": "0.2.0",
|
|
19
19
|
"compare-versions": "^6.1.1"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/utils/constraint.d.ts
CHANGED
|
@@ -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>;
|
package/utils/index.d.ts
CHANGED
|
@@ -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;
|
package/utils/urn.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ArtifactChildUrnParsed, SplittedUrn } from '../models/splitted-urn';
|
|
2
2
|
export declare const getKeyFromUrn: (urn?: string | null) => string | undefined;
|
|
3
|
-
export declare const splitUrn: (urn?: string
|
|
3
|
+
export declare const splitUrn: (urn?: string) => SplittedUrn;
|
|
4
4
|
export declare const getChildParsedUrn: (childUrn: string) => ArtifactChildUrnParsed;
|
|
5
5
|
export declare const generateShortUrn: (id?: string, version?: string, agency?: string) => 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
|
-
}
|
/package/models/{structural-metadata-base.d.ts → structural-metadata/structural-metadata-base.d.ts}
RENAMED
|
File without changes
|