@iiasa/ixmp4-ts 0.6.0 → 0.8.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/dist/cjs/core/exceptions.js +2 -2
- package/dist/cjs/core/iamc/data.js +57 -34
- package/dist/cjs/core/iamc/variable.js +10 -0
- package/dist/cjs/core/meta.js +15 -5
- package/dist/cjs/core/model.js +10 -0
- package/dist/cjs/core/region.js +10 -0
- package/dist/cjs/core/run.js +14 -4
- package/dist/cjs/core/scenario.js +10 -0
- package/dist/cjs/core/unit.js +10 -0
- package/dist/cjs/core/utils.js +187 -55
- package/dist/cjs/data/base.js +25 -7
- package/dist/cjs/data/iamc/datapoint.js +20 -11
- package/dist/cjs/data/iamc/timeseries.js +12 -12
- package/dist/cjs/data/iamc/variable.js +9 -4
- package/dist/cjs/data/meta.js +9 -4
- package/dist/cjs/data/model.js +9 -4
- package/dist/cjs/data/region.js +9 -4
- package/dist/cjs/data/run.js +9 -4
- package/dist/cjs/data/scenario.js +9 -4
- package/dist/cjs/data/unit.js +9 -4
- package/dist/cjs/data/utils.js +4 -5
- package/dist/cjs/dataframe/dataframe.js +1 -5
- package/dist/cjs/dataframe/utils.js +4 -5
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -0
- package/dist/esm/core/iamc/data.js +51 -30
- package/dist/esm/core/iamc/variable.js +8 -0
- package/dist/esm/core/meta.js +8 -0
- package/dist/esm/core/model.js +8 -0
- package/dist/esm/core/region.js +8 -0
- package/dist/esm/core/run.js +8 -0
- package/dist/esm/core/scenario.js +8 -0
- package/dist/esm/core/unit.js +8 -0
- package/dist/esm/core/utils.js +176 -50
- package/dist/esm/data/base.js +16 -0
- package/dist/esm/data/iamc/datapoint.js +8 -1
- package/dist/esm/data/iamc/variable.js +3 -0
- package/dist/esm/data/meta.js +3 -0
- package/dist/esm/data/model.js +3 -0
- package/dist/esm/data/region.js +3 -0
- package/dist/esm/data/run.js +3 -0
- package/dist/esm/data/scenario.js +3 -0
- package/dist/esm/data/unit.js +3 -0
- package/dist/esm/dataframe/dataframe.js +1 -5
- package/dist/esm/index.js +1 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -0
- package/dist/types/core/iamc/data.d.ts +35 -5
- package/dist/types/core/iamc/variable.d.ts +6 -0
- package/dist/types/core/meta.d.ts +6 -0
- package/dist/types/core/model.d.ts +6 -0
- package/dist/types/core/region.d.ts +6 -0
- package/dist/types/core/run.d.ts +6 -0
- package/dist/types/core/scenario.d.ts +6 -0
- package/dist/types/core/unit.d.ts +6 -0
- package/dist/types/core/utils.d.ts +30 -1
- package/dist/types/data/base.d.ts +4 -0
- package/dist/types/data/iamc/datapoint.d.ts +3 -1
- package/dist/types/data/iamc/variable.d.ts +1 -0
- package/dist/types/data/meta.d.ts +1 -0
- package/dist/types/data/model.d.ts +1 -0
- package/dist/types/data/region.d.ts +1 -0
- package/dist/types/data/run.d.ts +1 -0
- package/dist/types/data/scenario.d.ts +1 -0
- package/dist/types/data/unit.d.ts +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -0
- package/package.json +4 -5
@@ -18,6 +18,7 @@ declare class VariableRepository extends BaseRepository {
|
|
18
18
|
constructor(client: AxiosInstance);
|
19
19
|
list(filter?: PlainObject): Promise<Variable[]>;
|
20
20
|
tabulate(filter?: PlainObject): Promise<DataFrame>;
|
21
|
+
count(filter?: PlainObject): Promise<number>;
|
21
22
|
create(name: string): Promise<Variable>;
|
22
23
|
get(name: string): Promise<Variable>;
|
23
24
|
}
|
@@ -29,6 +29,7 @@ declare class MetaIndicatorRepository extends BaseRepository {
|
|
29
29
|
static prefix: string;
|
30
30
|
list(filter?: PlainObject): Promise<MetaIndicator[]>;
|
31
31
|
tabulate(filter?: PlainObject, joinRunIndex?: boolean): Promise<DataFrame>;
|
32
|
+
count(filter?: PlainObject): Promise<number>;
|
32
33
|
create(run__id: number, key: string, value: string | number | boolean): Promise<MetaIndicator>;
|
33
34
|
get(runId: number, key: string): Promise<MetaIndicator>;
|
34
35
|
delete(id: number): Promise<void>;
|
@@ -18,6 +18,7 @@ declare class ModelRepository extends BaseRepository {
|
|
18
18
|
constructor(client: AxiosInstance);
|
19
19
|
list(filter?: PlainObject): Promise<Model[]>;
|
20
20
|
tabulate(filter?: PlainObject): Promise<DataFrame>;
|
21
|
+
count(filter?: PlainObject): Promise<number>;
|
21
22
|
create(name: string): Promise<Model>;
|
22
23
|
get(name: string): Promise<Model>;
|
23
24
|
}
|
@@ -20,6 +20,7 @@ declare class RegionRepository extends BaseRepository {
|
|
20
20
|
constructor(client: AxiosInstance);
|
21
21
|
list(filter?: PlainObject): Promise<Region[]>;
|
22
22
|
tabulate(filter?: PlainObject): Promise<DataFrame>;
|
23
|
+
count(filter?: PlainObject): Promise<number>;
|
23
24
|
create(name: string, hierarchy: string): Promise<Region>;
|
24
25
|
get(name: string): Promise<Region>;
|
25
26
|
delete(id: number): Promise<void>;
|
package/dist/types/data/run.d.ts
CHANGED
@@ -21,6 +21,7 @@ declare class RunRepository extends BaseRepository {
|
|
21
21
|
static prefix: string;
|
22
22
|
list(filter?: PlainObject): Promise<Run[]>;
|
23
23
|
tabulate(filter?: PlainObject): Promise<DataFrame>;
|
24
|
+
count(filter?: PlainObject): Promise<number>;
|
24
25
|
create(modelName: string, scenarioName: string): Promise<Run>;
|
25
26
|
get(modelName: string, scenarioName: string, version: number): Promise<Run>;
|
26
27
|
getDefaultVersion(modelName: string, scenarioName: string): Promise<Run>;
|
@@ -18,6 +18,7 @@ declare class ScenarioRepository extends BaseRepository {
|
|
18
18
|
constructor(client: AxiosInstance);
|
19
19
|
list(filter?: PlainObject): Promise<Scenario[]>;
|
20
20
|
tabulate(filter?: PlainObject): Promise<DataFrame>;
|
21
|
+
count(filter?: PlainObject): Promise<number>;
|
21
22
|
create(name: string): Promise<Scenario>;
|
22
23
|
get(name: string): Promise<Scenario>;
|
23
24
|
}
|
@@ -21,6 +21,7 @@ declare class UnitRepository extends BaseRepository {
|
|
21
21
|
get(name: string): Promise<Unit>;
|
22
22
|
list(filter?: PlainObject): Promise<Unit[]>;
|
23
23
|
tabulate(filter?: PlainObject): Promise<DataFrame>;
|
24
|
+
count(filter?: PlainObject): Promise<number>;
|
24
25
|
}
|
25
26
|
export { UnitRepository };
|
26
27
|
export type { UnitFilter, Unit };
|
package/dist/types/index.d.ts
CHANGED
@@ -4,7 +4,7 @@ export type { Run, RunRepository, RunFilter } from './core/run';
|
|
4
4
|
export type { Scenario, ScenarioRepository, ScenarioFilter, } from './core/scenario';
|
5
5
|
export type { Model, ModelRepository, ModelFilter } from './core/model';
|
6
6
|
export type { Region, RegionRepository, RegionFilter } from './core/region';
|
7
|
-
export type { RunIamcData, PlatformIamcData, IamcDataFilter, } from './core/iamc/data';
|
7
|
+
export type { RunIamcData, PlatformIamcData, IamcDataFilter, IamcDataResult, } from './core/iamc/data';
|
8
8
|
export type { Variable, VariableRepository, VariableFilter, } from './core/iamc/variable';
|
9
9
|
export type { Unit, UnitRepository, UnitFilter } from './core/unit';
|
10
10
|
export type { MetaIndicatorRepository, MetaIndicatorFilter } from './core/meta';
|
@@ -16,6 +16,7 @@ export type { Model as ModelModel } from './data/model';
|
|
16
16
|
export type { Region as RegionModel } from './data/region';
|
17
17
|
export type { Unit as UnitModel } from './data/unit';
|
18
18
|
export type { DataPoint as DataPointModel } from './data/iamc/datapoint';
|
19
|
+
export { DataPointType } from './data/iamc/datapoint';
|
19
20
|
export type { Variable as VariableModel } from './data/iamc/variable';
|
20
21
|
export type { TimeSeries as TimeSeriesModel } from './data/iamc/timeseries';
|
21
22
|
export type { PlatformInfo as PlatformInfoModel } from './data/info';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"root":["../../src/backend.ts","../../src/index.ts","../../src/core/base.ts","../../src/core/exceptions.ts","../../src/core/meta.ts","../../src/core/model.ts","../../src/core/platform.ts","../../src/core/region.ts","../../src/core/run.ts","../../src/core/scenario.ts","../../src/core/unit.ts","../../src/core/utils.ts","../../src/core/iamc/data.ts","../../src/core/iamc/variable.ts","../../src/data/base.ts","../../src/data/docs.ts","../../src/data/filters.ts","../../src/data/info.ts","../../src/data/meta.ts","../../src/data/model.ts","../../src/data/region.ts","../../src/data/run.ts","../../src/data/scenario.ts","../../src/data/unit.ts","../../src/data/utils.ts","../../src/data/iamc/datapoint.ts","../../src/data/iamc/index.ts","../../src/data/iamc/timeseries.ts","../../src/data/iamc/variable.ts","../../src/dataframe/dataframe.ts","../../src/dataframe/exceptions.ts","../../src/dataframe/index.ts","../../src/dataframe/utils.ts"],"version":"5.9.2"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@iiasa/ixmp4-ts",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.8.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "typescript client for ixmp4, a data warehouse for scenario analysis",
|
6
6
|
"repository": {
|
@@ -82,16 +82,15 @@
|
|
82
82
|
},
|
83
83
|
"devDependencies": {
|
84
84
|
"@nuxt/eslint-config": "^0.2.0",
|
85
|
-
"@types/
|
85
|
+
"@types/node": "^22.0.0",
|
86
86
|
"@types/webgl-ext": "^0.0.36",
|
87
87
|
"@types/webgl2": "^0.0.10",
|
88
88
|
"eslint-config-prettier": "^9.0.0",
|
89
89
|
"eslint-plugin-prettier": "^5.0.1",
|
90
90
|
"prettier": "^3.1.0",
|
91
91
|
"testcontainers": "^10.3.2",
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"vitest": "^3.1.2"
|
92
|
+
"typescript": "^5.8.2",
|
93
|
+
"vitest": "^3.2.4"
|
95
94
|
},
|
96
95
|
"dependencies": {
|
97
96
|
"axios": "^1.6.2",
|