Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 13 additions & 16 deletions packages/pxweb2-api-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ export { Adjustment } from './models/Adjustment';
export type { ApiFeature } from './models/ApiFeature';
export type { BasePeriod } from './models/BasePeriod';
export { ClassType } from './models/ClassType';
export type { codeListId } from './models/codeListId';
export type { CodeListInformation } from './models/CodeListInformation';
export type { CodeListMetadata } from './models/CodeListMetadata';
export type { CodeListResponse } from './models/CodeListResponse';
export type { CodeLists } from './models/CodeLists';
export type { CodeListsResponse } from './models/CodeListsResponse';
export { CodeListType } from './models/CodeListType';
export type { codelistId } from './models/codelistId';
export type { CodelistInformation } from './models/CodelistInformation';
export type { CodelistMetadata } from './models/CodelistMetadata';
export type { CodelistResponse } from './models/CodelistResponse';
export type { Codelists } from './models/Codelists';
export type { CodelistsResponse } from './models/CodelistsResponse';
export { CodelistType } from './models/CodelistType';
export type { ConfigResponse } from './models/ConfigResponse';
export type { Contact } from './models/Contact';
export { Dataset } from './models/Dataset';
Expand All @@ -26,14 +26,9 @@ export type { Discontinued } from './models/Discontinued';
export type { extension } from './models/extension';
export type { extension_dimension } from './models/extension_dimension';
export type { extension_root } from './models/extension_root';
export type { FolderContentItem } from './models/FolderContentItem';
export { FolderContentItemTypeEnum } from './models/FolderContentItemTypeEnum';
export type { FolderInformation } from './models/FolderInformation';
export type { FolderResponse } from './models/FolderResponse';
export type { Heading } from './models/Heading';
export type { href } from './models/href';
export type { id } from './models/id';
export type { include_discontinued } from './models/include_discontinued';
export type { includeDiscontinued } from './models/includeDiscontinued';
export type { jsonstat_category } from './models/jsonstat_category';
export type { jsonstat_extension_link } from './models/jsonstat_extension_link';
export type { jsonstat_link } from './models/jsonstat_link';
Expand All @@ -60,12 +55,14 @@ export type { Problem } from './models/Problem';
export type { query } from './models/query';
export type { Role } from './models/Role';
export type { SavedQuery } from './models/SavedQuery';
export type { SavedQueryResponse } from './models/SavedQueryResponse';
export type { SelectionResponse } from './models/SelectionResponse';
export type { source } from './models/source';
export type { SourceReference } from './models/SourceReference';
export type { strarray } from './models/strarray';
export type { strarray_by_str_dict } from './models/strarray_by_str_dict';
export { Table } from './models/Table';
export type { Table } from './models/Table';
export { TableCategory } from './models/TableCategory';
export type { TableResponse } from './models/TableResponse';
export type { TablesResponse } from './models/TablesResponse';
export { TimeUnit } from './models/TimeUnit';
Expand All @@ -75,7 +72,7 @@ export type { VariablePlacementType } from './models/VariablePlacementType';
export type { VariableSelection } from './models/VariableSelection';
export type { VariablesSelection } from './models/VariablesSelection';

export { CodelistsService } from './services/CodelistsService';
export { ConfigurationService } from './services/ConfigurationService';
export { NavigationService } from './services/NavigationService';
export { SavedQueriesService } from './services/SavedQueriesService';
export { TableService } from './services/TableService';
export { TablesService } from './services/TablesService';
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CodeListType } from './CodeListType';
import type { CodelistType } from './CodelistType';
import type { Link } from './Link';
export type CodeListInformation = {
export type CodelistInformation = {
/**
* The identity of the CodeList
* The identity of the codelist
*/
id: string;
/**
* A textual name for the CodeList
* A textual name for the codelist
*/
label: string;
type: CodeListType;
type: CodelistType;
/**
* Links to associated information about the code list
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CodeListType } from './CodeListType';
import type { CodelistType } from './CodelistType';
import type { Link } from './Link';
export type CodeListMetadata = {
export type CodelistMetadata = {
/**
* The identiyer for the codelist
*/
Expand All @@ -13,7 +13,7 @@ export type CodeListMetadata = {
* The textual name for the codelist.
*/
label: string;
type: CodeListType;
type: CodelistType;
links: Array<Link>;
};

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CodeListType } from './CodeListType';
import type { CodelistType } from './CodelistType';
import type { Link } from './Link';
import type { ValueMap } from './ValueMap';
export type CodeListResponse = {
export type CodelistResponse = {
/**
* The identiyer for the codelist
*/
Expand All @@ -30,7 +30,7 @@ export type CodeListResponse = {
* The value code that should be used for elimination. If not set the variable will be eliminated by summing up all values.
*/
eliminationValueCode?: string;
type: CodeListType;
type: CodelistType;
values: Array<ValueMap>;
links: Array<Link>;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Type of codelist
*/
export enum CodeListType {
export enum CodelistType {
AGGREGATION = 'Aggregation',
VALUESET = 'Valueset',
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CodeListInformation } from './CodeListInformation';
import type { CodelistInformation } from './CodelistInformation';
/**
* Available codelists for this dimension
*/
export type CodeLists = Array<CodeListInformation>;
export type Codelists = Array<CodelistInformation>;
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CodeListMetadata } from './CodeListMetadata';
import type { CodelistMetadata } from './CodelistMetadata';
import type { Link } from './Link';
export type CodeListsResponse = {
export type CodelistsResponse = {
/**
* The language code for the language used in this response
*/
language: string;
codeLists?: Array<CodeListMetadata>;
codelists?: Array<CodelistMetadata>;
links?: Array<Link>;
};

28 changes: 0 additions & 28 deletions packages/pxweb2-api-client/src/models/FolderContentItem.ts

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions packages/pxweb2-api-client/src/models/FolderInformation.ts

This file was deleted.

31 changes: 0 additions & 31 deletions packages/pxweb2-api-client/src/models/FolderResponse.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/pxweb2-api-client/src/models/Heading.ts

This file was deleted.

19 changes: 19 additions & 0 deletions packages/pxweb2-api-client/src/models/SavedQueryResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { Link } from './Link';
import type { SavedQuery } from './SavedQuery';
export type SavedQueryResponse = {
/**
* The language code for the language requested
*/
language: string;
/**
* The id of the saved query
*/
id: string;
savedQuery: SavedQuery;
links: Array<Link>;
};

35 changes: 17 additions & 18 deletions packages/pxweb2-api-client/src/models/Table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,27 @@
/* tslint:disable */
/* eslint-disable */
import type { Discontinued } from './Discontinued';
import type { FolderContentItem } from './FolderContentItem';
import type { Link } from './Link';
import type { PathElement } from './PathElement';
import type { TableCategory } from './TableCategory';
import type { TimeUnit } from './TimeUnit';
/**
* Table item
*/
export type Table = (FolderContentItem & {
export type Table = {
id: string;
/**
* Display text
*/
label: string | null;
/**
* Longer text describing node.
*/
description?: string | null;
/**
* String for sorting the contents in folder
*/
sortCode?: string;
tags?: Array<string>;
/**
* Date and time when the figures in the table was last updated, in UTC time.
Expand All @@ -24,10 +37,7 @@ export type Table = (FolderContentItem & {
* Last period
*/
lastPeriod: string | null;
/**
* Mostly for internal use. Which category table belongs to. internal, public, private or section.
*/
category?: Table.category;
category?: TableCategory;
/**
* List of varibles name
*/
Expand All @@ -53,16 +63,5 @@ export type Table = (FolderContentItem & {
* Links to ...
*/
links: Array<Link> | null;
});
export namespace Table {
/**
* Mostly for internal use. Which category table belongs to. internal, public, private or section.
*/
export enum category {
INTERNAL = 'internal',
PUBLIC = 'public',
PRIVATE = 'private',
SECTION = 'section',
}
}
};

13 changes: 13 additions & 0 deletions packages/pxweb2-api-client/src/models/TableCategory.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
/**
* Mostly for internal use. Which category table belongs to. internal, public, private or section.
*/
export enum TableCategory {
INTERNAL = 'internal',
PUBLIC = 'public',
PRIVATE = 'private',
SECTION = 'section',
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type VariableSelection = {
/**
* The identifier of the codelist that should be applied
*/
codeList?: string | null;
codelist?: string | null;
/**
* An array of string that specifies wich values sould be selected. Either as value codes or value expressions
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
/* tslint:disable */
/* eslint-disable */
/**
* Identifier for a code list
* Identifier for a codelist
*/
export type codeListId = string;
export type codelistId = string;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* eslint-disable */
import type { Adjustment } from './Adjustment';
import type { BasePeriod } from './BasePeriod';
import type { CodeLists } from './CodeLists';
import type { Codelists } from './Codelists';
import type { jsonstat_noteMandatory } from './jsonstat_noteMandatory';
import type { MeasuringType } from './MeasuringType';
import type { PriceType } from './PriceType';
Expand Down Expand Up @@ -33,7 +33,7 @@ export type extension_dimension = {
* Information about how variables are presented
*/
show?: string;
codeLists?: CodeLists;
codelists?: Codelists;
/**
* Indicates if data is stock, flow or average.
*/
Expand Down
Loading
Loading